diff --git a/googleapiclient-stubs/_apis/accesscontextmanager/v1/resources.pyi b/googleapiclient-stubs/_apis/accesscontextmanager/v1/resources.pyi index 162f279a..fa8e8b03 100644 --- a/googleapiclient-stubs/_apis/accesscontextmanager/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/accesscontextmanager/v1/resources.pyi @@ -274,6 +274,7 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource): *, name: str, body: GcpUserAccessBinding = ..., + append: bool = ..., updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi b/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi index 70e0fbc2..5f9e3a76 100644 --- a/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi @@ -32,7 +32,7 @@ class AccessScope(typing_extensions.TypedDict, total=False): @typing.type_check_only class AccessSettings(typing_extensions.TypedDict, total=False): accessLevels: _list[str] - reauthSettings: ReauthSettings + sessionSettings: SessionSettings @typing.type_check_only class ApiOperation(typing_extensions.TypedDict, total=False): @@ -150,10 +150,12 @@ class EgressFrom(typing_extensions.TypedDict, total=False): class EgressPolicy(typing_extensions.TypedDict, total=False): egressFrom: EgressFrom egressTo: EgressTo + title: str @typing.type_check_only class EgressSource(typing_extensions.TypedDict, total=False): accessLevel: str + resource: str @typing.type_check_only class EgressTo(typing_extensions.TypedDict, total=False): @@ -177,9 +179,9 @@ class GcpUserAccessBinding(typing_extensions.TypedDict, total=False): dryRunAccessLevels: _list[str] groupKey: str name: str - reauthSettings: ReauthSettings restrictedClientApplications: _list[Application] scopedAccessSettings: _list[ScopedAccessSettings] + sessionSettings: SessionSettings @typing.type_check_only class GcpUserAccessBindingOperationMetadata( @@ -209,6 +211,7 @@ class IngressFrom(typing_extensions.TypedDict, total=False): class IngressPolicy(typing_extensions.TypedDict, total=False): ingressFrom: IngressFrom ingressTo: IngressTo + title: str @typing.type_check_only class IngressSource(typing_extensions.TypedDict, total=False): @@ -289,16 +292,6 @@ 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] @@ -326,6 +319,7 @@ class ScopedAccessSettings(typing_extensions.TypedDict, total=False): @typing.type_check_only class ServicePerimeter(typing_extensions.TypedDict, total=False): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" @@ -344,6 +338,16 @@ class ServicePerimeterConfig(typing_extensions.TypedDict, total=False): restrictedServices: _list[str] vpcAccessibleServices: VpcAccessibleServices +@typing.type_check_only +class SessionSettings(typing_extensions.TypedDict, total=False): + maxInactivity: str + sessionLength: str + sessionLengthEnabled: bool + sessionReauthMethod: typing_extensions.Literal[ + "SESSION_REAUTH_METHOD_UNSPECIFIED", "LOGIN", "SECURITY_KEY", "PASSWORD" + ] + useOidcMaxAge: bool + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy diff --git a/googleapiclient-stubs/_apis/admin/directory_v1/schemas.pyi b/googleapiclient-stubs/_apis/admin/directory_v1/schemas.pyi index c04d03c7..1f206371 100644 --- a/googleapiclient-stubs/_apis/admin/directory_v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/admin/directory_v1/schemas.pyi @@ -144,6 +144,11 @@ class Buildings(typing_extensions.TypedDict, total=False): kind: str nextPageToken: str +@typing.type_check_only +class ByteUsage(typing_extensions.TypedDict, total=False): + capacityBytes: str + usedBytes: str + @typing.type_check_only class CalendarResource(typing_extensions.TypedDict, total=False): buildingId: str @@ -229,6 +234,7 @@ class ChromeOsDevice(typing_extensions.TypedDict, total=False): "education", "kioskUpgrade", ] + diskSpaceUsage: ByteUsage diskVolumeReports: _list[dict[str, typing.Any]] dockMacAddress: str etag: str @@ -696,6 +702,7 @@ class Role(typing_extensions.TypedDict, total=False): class RoleAssignment(typing_extensions.TypedDict, total=False): assignedTo: str assigneeType: typing_extensions.Literal["user", "group"] + condition: str etag: str kind: str orgUnitId: str diff --git a/googleapiclient-stubs/_apis/adsense/v2/resources.pyi b/googleapiclient-stubs/_apis/adsense/v2/resources.pyi index 7c73afa0..b2454a5b 100644 --- a/googleapiclient-stubs/_apis/adsense/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/adsense/v2/resources.pyi @@ -293,6 +293,7 @@ class AdsenseResource(googleapiclient.discovery.Resource): "AD_UNIT_SIZE_CODE", "CUSTOM_CHANNEL_NAME", "CUSTOM_CHANNEL_ID", + "HOSTED_CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", "PAGE_URL", @@ -344,6 +345,7 @@ class AdsenseResource(googleapiclient.discovery.Resource): "AD_UNIT_SIZE_CODE", "CUSTOM_CHANNEL_NAME", "CUSTOM_CHANNEL_ID", + "HOSTED_CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", "PAGE_URL", @@ -507,6 +509,7 @@ class AdsenseResource(googleapiclient.discovery.Resource): "AD_UNIT_SIZE_CODE", "CUSTOM_CHANNEL_NAME", "CUSTOM_CHANNEL_ID", + "HOSTED_CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", "PAGE_URL", @@ -558,6 +561,7 @@ class AdsenseResource(googleapiclient.discovery.Resource): "AD_UNIT_SIZE_CODE", "CUSTOM_CHANNEL_NAME", "CUSTOM_CHANNEL_ID", + "HOSTED_CUSTOM_CHANNEL_ID", "OWNED_SITE_DOMAIN_NAME", "OWNED_SITE_ID", "PAGE_URL", diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi index 990dd4f8..a9f9b227 100644 --- a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi @@ -13,6 +13,75 @@ _list = list @typing.type_check_only class AdSensePlatformResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PlatformsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ChildAccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SitesResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPlatformChildSitesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPlatformChildSitesResponseHttpRequest, + previous_response: ListPlatformChildSitesResponse, + ) -> ListPlatformChildSitesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: PlatformChildSite = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> PlatformChildSiteHttpRequest: ... + + def sites(self) -> SitesResource: ... + + @typing.type_check_only + class GroupsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPlatformGroupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPlatformGroupsResponseHttpRequest, + previous_response: ListPlatformGroupsResponse, + ) -> ListPlatformGroupsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> PlatformHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPlatformsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPlatformsResponseHttpRequest, + previous_response: ListPlatformsResponse, + ) -> ListPlatformsResponseHttpRequest | None: ... + def childAccounts(self) -> ChildAccountsResource: ... + def groups(self) -> GroupsResource: ... + + def platforms(self) -> PlatformsResource: ... + @typing.type_check_only class PlatformsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -95,6 +164,7 @@ class AdSensePlatformResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... def platforms(self) -> PlatformsResource: ... @typing.type_check_only @@ -137,6 +207,30 @@ class ListAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListAccountsResponse: ... +@typing.type_check_only +class ListPlatformChildSitesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPlatformChildSitesResponse: ... + +@typing.type_check_only +class ListPlatformGroupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPlatformGroupsResponse: ... + +@typing.type_check_only +class ListPlatformsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPlatformsResponse: ... + @typing.type_check_only class ListSitesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -153,6 +247,22 @@ class LookupAccountResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> LookupAccountResponse: ... +@typing.type_check_only +class PlatformHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Platform: ... + +@typing.type_check_only +class PlatformChildSiteHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> PlatformChildSite: ... + @typing.type_check_only class RequestSiteReviewResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi index 4f04cbe4..c3492c4f 100644 --- a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi @@ -35,6 +35,10 @@ class CloseAccountRequest(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class CloseAccountResponse(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Decimal(typing_extensions.TypedDict, total=False): + value: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -56,6 +60,21 @@ class ListAccountsResponse(typing_extensions.TypedDict, total=False): accounts: _list[Account] nextPageToken: str +@typing.type_check_only +class ListPlatformChildSitesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + platformChildSites: _list[PlatformChildSite] + +@typing.type_check_only +class ListPlatformGroupsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + platformGroups: _list[PlatformGroup] + +@typing.type_check_only +class ListPlatformsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + platforms: _list[Platform] + @typing.type_check_only class ListSitesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -65,6 +84,24 @@ class ListSitesResponse(typing_extensions.TypedDict, total=False): class LookupAccountResponse(typing_extensions.TypedDict, total=False): name: str +@typing.type_check_only +class Platform(typing_extensions.TypedDict, total=False): + defaultPlatformGroup: str + description: str + name: str + +@typing.type_check_only +class PlatformChildSite(typing_extensions.TypedDict, total=False): + domain: str + name: str + platformGroup: str + +@typing.type_check_only +class PlatformGroup(typing_extensions.TypedDict, total=False): + description: str + name: str + revshareMillipercent: Decimal + @typing.type_check_only class RequestSiteReviewResponse(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi b/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi index 4cb3d61d..b23f1a0c 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi @@ -130,6 +130,16 @@ class AiplatformResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1GenerateContentResponseHttpRequest: ... + @typing.type_check_only + class MediaResource(googleapiclient.discovery.Resource): + def upload( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1UploadRagFileRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1UploadRagFileResponseHttpRequest: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -177,6 +187,45 @@ class AiplatformResource(googleapiclient.discovery.Resource): | None ): ... + @typing.type_check_only + class CachedContentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1CachedContent = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1CachedContentHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1CachedContentHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1ListCachedContentsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1ListCachedContentsResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1ListCachedContentsResponse, + ) -> ( + GoogleCloudAiplatformV1ListCachedContentsResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1CachedContent = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1CachedContentHttpRequest: ... + @typing.type_check_only class CustomJobsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -778,6 +827,16 @@ class AiplatformResource(googleapiclient.discovery.Resource): @typing.type_check_only class EndpointsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ChatResource(googleapiclient.discovery.Resource): + def completions( + self, + *, + endpoint: str, + body: GoogleApiHttpBody = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -860,6 +919,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1ExplainRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1ExplainResponseHttpRequest: ... + def fetchPredictOperation( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1FetchPredictOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def generateContent( self, *, @@ -908,6 +974,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1PredictRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1PredictResponseHttpRequest: ... + def predictLongRunning( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1PredictLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def rawPredict( self, *, @@ -943,6 +1016,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1UndeployModelRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def update( + self, + *, + name: str, + body: GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def chat(self) -> ChatResource: ... def operations(self) -> OperationsResource: ... @typing.type_check_only @@ -977,6 +1058,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, timeout: str = ..., **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... + def batchCreate( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1BatchCreateFeaturesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def create( self, *, @@ -3042,6 +3130,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1StartNotebookRuntimeRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def stop( + self, + *, + name: str, + body: GoogleCloudAiplatformV1StopNotebookRuntimeRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def upgrade( self, *, @@ -3264,6 +3359,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1CountTokensRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1CountTokensResponseHttpRequest: ... + def fetchPredictOperation( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1FetchPredictOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def generateContent( self, *, @@ -3278,6 +3380,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1PredictRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1PredictResponseHttpRequest: ... + def predictLongRunning( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1PredictLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def rawPredict( self, *, @@ -3309,6 +3418,223 @@ class AiplatformResource(googleapiclient.discovery.Resource): def models(self) -> ModelsResource: ... + @typing.type_check_only + class RagCorporaResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(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: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class RagFilesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(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: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> ( + GoogleLongrunningListOperationsResponseHttpRequest | None + ): ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1RagFileHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1ImportRagFilesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1ListRagFilesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1ListRagFilesResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1ListRagFilesResponse, + ) -> ( + GoogleCloudAiplatformV1ListRagFilesResponseHttpRequest | None + ): ... + def operations(self) -> OperationsResource: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1RagCorpus = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1RagCorpusHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1ListRagCorporaResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1ListRagCorporaResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1ListRagCorporaResponse, + ) -> ( + GoogleCloudAiplatformV1ListRagCorporaResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1RagCorpus = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def operations(self) -> OperationsResource: ... + def ragFiles(self) -> RagFilesResource: ... + + @typing.type_check_only + class ReasoningEnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(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: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1ReasoningEngine = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1ReasoningEngineHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1ListReasoningEnginesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1ListReasoningEnginesResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1ListReasoningEnginesResponse, + ) -> ( + GoogleCloudAiplatformV1ListReasoningEnginesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1ReasoningEngine = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def query( + self, + *, + name: str, + body: GoogleCloudAiplatformV1QueryReasoningEngineRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1QueryReasoningEngineResponseHttpRequest: ... + def streamQuery( + self, + *, + name: str, + body: GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... + def operations(self) -> OperationsResource: ... + @typing.type_check_only class SchedulesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -4173,6 +4499,20 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> GoogleLongrunningOperationHttpRequest: ... def operations(self) -> OperationsResource: ... + def augmentPrompt( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1AugmentPromptRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1AugmentPromptResponseHttpRequest: ... + def corroborateContent( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1CorroborateContentRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1CorroborateContentResponseHttpRequest: ... def evaluateInstances( self, *, @@ -4197,7 +4537,15 @@ class AiplatformResource(googleapiclient.discovery.Resource): previous_request: GoogleCloudLocationListLocationsResponseHttpRequest, previous_response: GoogleCloudLocationListLocationsResponse, ) -> GoogleCloudLocationListLocationsResponseHttpRequest | None: ... + def retrieveContexts( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1RetrieveContextsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1RetrieveContextsResponseHttpRequest: ... def batchPredictionJobs(self) -> BatchPredictionJobsResource: ... + def cachedContents(self) -> CachedContentsResource: ... def customJobs(self) -> CustomJobsResource: ... def dataLabelingJobs(self) -> DataLabelingJobsResource: ... def datasets(self) -> DatasetsResource: ... @@ -4223,6 +4571,8 @@ class AiplatformResource(googleapiclient.discovery.Resource): def persistentResources(self) -> PersistentResourcesResource: ... def pipelineJobs(self) -> PipelineJobsResource: ... def publishers(self) -> PublishersResource: ... + def ragCorpora(self) -> RagCorporaResource: ... + def reasoningEngines(self) -> ReasoningEnginesResource: ... def schedules(self) -> SchedulesResource: ... def specialistPools(self) -> SpecialistPoolsResource: ... def studies(self) -> StudiesResource: ... @@ -4230,6 +4580,16 @@ class AiplatformResource(googleapiclient.discovery.Resource): def trainingPipelines(self) -> TrainingPipelinesResource: ... def tuningJobs(self) -> TuningJobsResource: ... + def getCacheConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1CacheConfigHttpRequest: ... + def updateCacheConfig( + self, + *, + name: str, + body: GoogleCloudAiplatformV1CacheConfig = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def locations(self) -> LocationsResource: ... @typing.type_check_only @@ -4296,6 +4656,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def datasets(self) -> DatasetsResource: ... def endpoints(self) -> EndpointsResource: ... + def media(self) -> MediaResource: ... def projects(self) -> ProjectsResource: ... def publishers(self) -> PublishersResource: ... @@ -4355,6 +4716,16 @@ class GoogleCloudAiplatformV1ArtifactHttpRequest(googleapiclient.http.HttpReques num_retries: int = 0, ) -> GoogleCloudAiplatformV1Artifact: ... +@typing.type_check_only +class GoogleCloudAiplatformV1AugmentPromptResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1AugmentPromptResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1BatchCreateTensorboardRunsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -4405,6 +4776,22 @@ class GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponseHttpReque num_retries: int = 0, ) -> GoogleCloudAiplatformV1BatchReadTensorboardTimeSeriesDataResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1CacheConfigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1CacheConfig: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1CachedContentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1CachedContent: ... + @typing.type_check_only class GoogleCloudAiplatformV1ComputeTokensResponseHttpRequest( googleapiclient.http.HttpRequest @@ -4423,6 +4810,16 @@ class GoogleCloudAiplatformV1ContextHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> GoogleCloudAiplatformV1Context: ... +@typing.type_check_only +class GoogleCloudAiplatformV1CorroborateContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1CorroborateContentResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1CountTokensResponseHttpRequest( googleapiclient.http.HttpRequest @@ -4701,6 +5098,16 @@ class GoogleCloudAiplatformV1ListBatchPredictionJobsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1ListBatchPredictionJobsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1ListCachedContentsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ListCachedContentsResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1ListContextsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -5041,6 +5448,36 @@ class GoogleCloudAiplatformV1ListPipelineJobsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1ListPipelineJobsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1ListRagCorporaResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ListRagCorporaResponse: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1ListRagFilesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ListRagFilesResponse: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1ListReasoningEnginesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ListReasoningEnginesResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1ListSavedQueriesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -5303,6 +5740,32 @@ class GoogleCloudAiplatformV1QueryDeployedModelsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1QueryDeployedModelsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1QueryReasoningEngineResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1QueryReasoningEngineResponse: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1RagCorpusHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1RagCorpus: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1RagFileHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1RagFile: ... + @typing.type_check_only class GoogleCloudAiplatformV1ReadFeatureValuesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -5363,6 +5826,16 @@ class GoogleCloudAiplatformV1ReadTensorboardUsageResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1ReadTensorboardUsageResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1ReasoningEngineHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ReasoningEngine: ... + @typing.type_check_only class GoogleCloudAiplatformV1RemoveContextChildrenResponseHttpRequest( googleapiclient.http.HttpRequest @@ -5383,6 +5856,16 @@ class GoogleCloudAiplatformV1RemoveDatapointsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1RemoveDatapointsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1RetrieveContextsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1RetrieveContextsResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1ScheduleHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -5545,6 +6028,16 @@ class GoogleCloudAiplatformV1TuningJobHttpRequest(googleapiclient.http.HttpReque num_retries: int = 0, ) -> GoogleCloudAiplatformV1TuningJob: ... +@typing.type_check_only +class GoogleCloudAiplatformV1UploadRagFileResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1UploadRagFileResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1UpsertDatapointsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi b/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi index 2b05a6fc..c8f87c27 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi @@ -18,11 +18,18 @@ class CloudAiLargeModelsVisionImage(typing_extensions.TypedDict, total=False): generationSeed: int image: str imageRaiScores: CloudAiLargeModelsVisionImageRAIScores + imageSize: CloudAiLargeModelsVisionImageImageSize raiInfo: CloudAiLargeModelsVisionRaiInfo semanticFilterResponse: CloudAiLargeModelsVisionSemanticFilterResponse text: str uri: str +@typing.type_check_only +class CloudAiLargeModelsVisionImageImageSize(typing_extensions.TypedDict, total=False): + channels: int + height: int + width: int + @typing.type_check_only class CloudAiLargeModelsVisionImageRAIScores(typing_extensions.TypedDict, total=False): agileWatermarkDetectionScore: float @@ -87,6 +94,8 @@ class CloudAiLargeModelsVisionSemanticFilterResponse( @typing.type_check_only class CloudAiLargeModelsVisionVideo(typing_extensions.TypedDict, total=False): + encodedVideo: str + encoding: str uri: str video: str @@ -197,6 +206,16 @@ class GoogleCloudAiplatformV1AnnotationSpec(typing_extensions.TypedDict, total=F name: str updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1ApiAuth(typing_extensions.TypedDict, total=False): + apiKeyConfig: GoogleCloudAiplatformV1ApiAuthApiKeyConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1ApiAuthApiKeyConfig( + typing_extensions.TypedDict, total=False +): + apiKeySecretVersion: str + @typing.type_check_only class GoogleCloudAiplatformV1Artifact(typing_extensions.TypedDict, total=False): createTime: str @@ -237,6 +256,28 @@ class GoogleCloudAiplatformV1Attribution(typing_extensions.TypedDict, total=Fals outputIndex: _list[int] outputName: str +@typing.type_check_only +class GoogleCloudAiplatformV1AugmentPromptRequest( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudAiplatformV1Content] + model: GoogleCloudAiplatformV1AugmentPromptRequestModel + vertexRagStore: GoogleCloudAiplatformV1VertexRagStore + +@typing.type_check_only +class GoogleCloudAiplatformV1AugmentPromptRequestModel( + typing_extensions.TypedDict, total=False +): + model: str + modelVersion: str + +@typing.type_check_only +class GoogleCloudAiplatformV1AugmentPromptResponse( + typing_extensions.TypedDict, total=False +): + augmentedPrompt: _list[GoogleCloudAiplatformV1Content] + facts: _list[GoogleCloudAiplatformV1Fact] + @typing.type_check_only class GoogleCloudAiplatformV1AutomaticResources( typing_extensions.TypedDict, total=False @@ -544,6 +585,36 @@ class GoogleCloudAiplatformV1BlurBaselineConfig( class GoogleCloudAiplatformV1BoolArray(typing_extensions.TypedDict, total=False): values: _list[bool] +@typing.type_check_only +class GoogleCloudAiplatformV1CacheConfig(typing_extensions.TypedDict, total=False): + disableCache: bool + name: str + +@typing.type_check_only +class GoogleCloudAiplatformV1CachedContent(typing_extensions.TypedDict, total=False): + contents: _list[GoogleCloudAiplatformV1Content] + createTime: str + displayName: str + expireTime: str + model: str + name: str + systemInstruction: GoogleCloudAiplatformV1Content + toolConfig: GoogleCloudAiplatformV1ToolConfig + tools: _list[GoogleCloudAiplatformV1Tool] + ttl: str + updateTime: str + usageMetadata: GoogleCloudAiplatformV1CachedContentUsageMetadata + +@typing.type_check_only +class GoogleCloudAiplatformV1CachedContentUsageMetadata( + typing_extensions.TypedDict, total=False +): + audioDurationSeconds: int + imageCount: int + textCount: int + totalTokenCount: int + videoDurationSeconds: int + @typing.type_check_only class GoogleCloudAiplatformV1CancelBatchPredictionJobRequest( typing_extensions.TypedDict, total=False @@ -639,6 +710,19 @@ class GoogleCloudAiplatformV1Citation(typing_extensions.TypedDict, total=False): class GoogleCloudAiplatformV1CitationMetadata(typing_extensions.TypedDict, total=False): citations: _list[GoogleCloudAiplatformV1Citation] +@typing.type_check_only +class GoogleCloudAiplatformV1Claim(typing_extensions.TypedDict, total=False): + endIndex: int + factIndexes: _list[int] + score: float + startIndex: int + +@typing.type_check_only +class GoogleCloudAiplatformV1ClientConnectionConfig( + typing_extensions.TypedDict, total=False +): + inferenceTimeout: str + @typing.type_check_only class GoogleCloudAiplatformV1CoherenceInput(typing_extensions.TypedDict, total=False): instance: GoogleCloudAiplatformV1CoherenceInstance @@ -660,6 +744,27 @@ class GoogleCloudAiplatformV1CoherenceResult(typing_extensions.TypedDict, total= class GoogleCloudAiplatformV1CoherenceSpec(typing_extensions.TypedDict, total=False): version: int +@typing.type_check_only +class GoogleCloudAiplatformV1CometInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1CometInstance + metricSpec: GoogleCloudAiplatformV1CometSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1CometInstance(typing_extensions.TypedDict, total=False): + prediction: str + reference: str + source: str + +@typing.type_check_only +class GoogleCloudAiplatformV1CometResult(typing_extensions.TypedDict, total=False): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1CometSpec(typing_extensions.TypedDict, total=False): + sourceLanguage: str + targetLanguage: str + version: typing_extensions.Literal["COMET_VERSION_UNSPECIFIED", "COMET_22_SRC_REF"] + @typing.type_check_only class GoogleCloudAiplatformV1CompleteTrialRequest( typing_extensions.TypedDict, total=False @@ -741,6 +846,32 @@ class GoogleCloudAiplatformV1CopyModelResponse( model: str modelVersionId: str +@typing.type_check_only +class GoogleCloudAiplatformV1CorpusStatus(typing_extensions.TypedDict, total=False): + errorStatus: str + state: typing_extensions.Literal["UNKNOWN", "INITIALIZED", "ACTIVE", "ERROR"] + +@typing.type_check_only +class GoogleCloudAiplatformV1CorroborateContentRequest( + typing_extensions.TypedDict, total=False +): + content: GoogleCloudAiplatformV1Content + facts: _list[GoogleCloudAiplatformV1Fact] + parameters: GoogleCloudAiplatformV1CorroborateContentRequestParameters + +@typing.type_check_only +class GoogleCloudAiplatformV1CorroborateContentRequestParameters( + typing_extensions.TypedDict, total=False +): + citationThreshold: float + +@typing.type_check_only +class GoogleCloudAiplatformV1CorroborateContentResponse( + typing_extensions.TypedDict, total=False +): + claims: _list[GoogleCloudAiplatformV1Claim] + corroborationScore: float + @typing.type_check_only class GoogleCloudAiplatformV1CountTokensRequest( typing_extensions.TypedDict, total=False @@ -1071,6 +1202,7 @@ class GoogleCloudAiplatformV1DedicatedResources( machineSpec: GoogleCloudAiplatformV1MachineSpec maxReplicaCount: int minReplicaCount: int + requiredReplicaCount: int spot: bool @typing.type_check_only @@ -1221,18 +1353,29 @@ class GoogleCloudAiplatformV1DeployedModel(typing_extensions.TypedDict, total=Fa displayName: str enableAccessLogging: bool explanationSpec: GoogleCloudAiplatformV1ExplanationSpec + fasterDeploymentConfig: GoogleCloudAiplatformV1FasterDeploymentConfig id: str model: str modelVersionId: str privateEndpoints: GoogleCloudAiplatformV1PrivateEndpoints serviceAccount: str sharedResources: str + status: GoogleCloudAiplatformV1DeployedModelStatus + systemLabels: dict[str, typing.Any] @typing.type_check_only class GoogleCloudAiplatformV1DeployedModelRef(typing_extensions.TypedDict, total=False): deployedModelId: str endpoint: str +@typing.type_check_only +class GoogleCloudAiplatformV1DeployedModelStatus( + typing_extensions.TypedDict, total=False +): + availableReplicaCount: int + lastUpdateTime: str + message: str + @typing.type_check_only class GoogleCloudAiplatformV1DeploymentResourcePool( typing_extensions.TypedDict, total=False @@ -1280,6 +1423,11 @@ class GoogleCloudAiplatformV1DirectRawPredictResponse( ): output: str +@typing.type_check_only +class GoogleCloudAiplatformV1DirectUploadSource( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1DiskSpec(typing_extensions.TypedDict, total=False): bootDiskSizeGb: int @@ -1289,12 +1437,20 @@ class GoogleCloudAiplatformV1DiskSpec(typing_extensions.TypedDict, total=False): class GoogleCloudAiplatformV1DoubleArray(typing_extensions.TypedDict, total=False): values: _list[float] +@typing.type_check_only +class GoogleCloudAiplatformV1DynamicRetrievalConfig( + typing_extensions.TypedDict, total=False +): + dynamicThreshold: float + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "MODE_DYNAMIC"] + @typing.type_check_only class GoogleCloudAiplatformV1EncryptionSpec(typing_extensions.TypedDict, total=False): kmsKeyName: str @typing.type_check_only class GoogleCloudAiplatformV1Endpoint(typing_extensions.TypedDict, total=False): + clientConnectionConfig: GoogleCloudAiplatformV1ClientConnectionConfig createTime: str dedicatedEndpointDns: str dedicatedEndpointEnabled: bool @@ -1367,10 +1523,12 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest( ): bleuInput: GoogleCloudAiplatformV1BleuInput coherenceInput: GoogleCloudAiplatformV1CoherenceInput + cometInput: GoogleCloudAiplatformV1CometInput exactMatchInput: GoogleCloudAiplatformV1ExactMatchInput fluencyInput: GoogleCloudAiplatformV1FluencyInput fulfillmentInput: GoogleCloudAiplatformV1FulfillmentInput groundednessInput: GoogleCloudAiplatformV1GroundednessInput + metricxInput: GoogleCloudAiplatformV1MetricxInput pairwiseMetricInput: GoogleCloudAiplatformV1PairwiseMetricInput pairwiseQuestionAnsweringQualityInput: ( GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput @@ -1398,6 +1556,12 @@ class GoogleCloudAiplatformV1EvaluateInstancesRequest( toolNameMatchInput: GoogleCloudAiplatformV1ToolNameMatchInput toolParameterKeyMatchInput: GoogleCloudAiplatformV1ToolParameterKeyMatchInput toolParameterKvMatchInput: GoogleCloudAiplatformV1ToolParameterKVMatchInput + trajectoryAnyOrderMatchInput: GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput + trajectoryExactMatchInput: GoogleCloudAiplatformV1TrajectoryExactMatchInput + trajectoryInOrderMatchInput: GoogleCloudAiplatformV1TrajectoryInOrderMatchInput + trajectoryPrecisionInput: GoogleCloudAiplatformV1TrajectoryPrecisionInput + trajectoryRecallInput: GoogleCloudAiplatformV1TrajectoryRecallInput + trajectorySingleToolUseInput: GoogleCloudAiplatformV1TrajectorySingleToolUseInput @typing.type_check_only class GoogleCloudAiplatformV1EvaluateInstancesResponse( @@ -1405,10 +1569,12 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse( ): bleuResults: GoogleCloudAiplatformV1BleuResults coherenceResult: GoogleCloudAiplatformV1CoherenceResult + cometResult: GoogleCloudAiplatformV1CometResult exactMatchResults: GoogleCloudAiplatformV1ExactMatchResults fluencyResult: GoogleCloudAiplatformV1FluencyResult fulfillmentResult: GoogleCloudAiplatformV1FulfillmentResult groundednessResult: GoogleCloudAiplatformV1GroundednessResult + metricxResult: GoogleCloudAiplatformV1MetricxResult pairwiseMetricResult: GoogleCloudAiplatformV1PairwiseMetricResult pairwiseQuestionAnsweringQualityResult: ( GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult @@ -1440,6 +1606,16 @@ class GoogleCloudAiplatformV1EvaluateInstancesResponse( toolNameMatchResults: GoogleCloudAiplatformV1ToolNameMatchResults toolParameterKeyMatchResults: GoogleCloudAiplatformV1ToolParameterKeyMatchResults toolParameterKvMatchResults: GoogleCloudAiplatformV1ToolParameterKVMatchResults + trajectoryAnyOrderMatchResults: ( + GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults + ) + trajectoryExactMatchResults: GoogleCloudAiplatformV1TrajectoryExactMatchResults + trajectoryInOrderMatchResults: GoogleCloudAiplatformV1TrajectoryInOrderMatchResults + trajectoryPrecisionResults: GoogleCloudAiplatformV1TrajectoryPrecisionResults + trajectoryRecallResults: GoogleCloudAiplatformV1TrajectoryRecallResults + trajectorySingleToolUseResults: ( + GoogleCloudAiplatformV1TrajectorySingleToolUseResults + ) @typing.type_check_only class GoogleCloudAiplatformV1EvaluatedAnnotation( @@ -1820,6 +1996,21 @@ class GoogleCloudAiplatformV1ExportTensorboardTimeSeriesDataResponse( nextPageToken: str timeSeriesDataPoints: _list[GoogleCloudAiplatformV1TimeSeriesDataPoint] +@typing.type_check_only +class GoogleCloudAiplatformV1Fact(typing_extensions.TypedDict, total=False): + query: str + score: float + summary: str + title: str + uri: str + vectorDistance: float + +@typing.type_check_only +class GoogleCloudAiplatformV1FasterDeploymentConfig( + typing_extensions.TypedDict, total=False +): + fastTryoutEnabled: bool + @typing.type_check_only class GoogleCloudAiplatformV1Feature(typing_extensions.TypedDict, total=False): createTime: str @@ -1999,6 +2190,7 @@ class GoogleCloudAiplatformV1FeatureView(typing_extensions.TypedDict, total=Fals indexConfig: GoogleCloudAiplatformV1FeatureViewIndexConfig labels: dict[str, typing.Any] name: str + optimizedConfig: GoogleCloudAiplatformV1FeatureViewOptimizedConfig satisfiesPzi: bool satisfiesPzs: bool syncConfig: GoogleCloudAiplatformV1FeatureViewSyncConfig @@ -2069,6 +2261,12 @@ class GoogleCloudAiplatformV1FeatureViewIndexConfigTreeAHConfig( ): leafNodeEmbeddingCount: str +@typing.type_check_only +class GoogleCloudAiplatformV1FeatureViewOptimizedConfig( + typing_extensions.TypedDict, total=False +): + automaticResources: GoogleCloudAiplatformV1AutomaticResources + @typing.type_check_only class GoogleCloudAiplatformV1FeatureViewSync(typing_extensions.TypedDict, total=False): createTime: str @@ -2083,6 +2281,7 @@ class GoogleCloudAiplatformV1FeatureViewSync(typing_extensions.TypedDict, total= class GoogleCloudAiplatformV1FeatureViewSyncConfig( typing_extensions.TypedDict, total=False ): + continuous: bool cron: str @typing.type_check_only @@ -2206,11 +2405,22 @@ class GoogleCloudAiplatformV1FetchFeatureValuesResponseFeatureNameValuePairListF name: str value: GoogleCloudAiplatformV1FeatureValue +@typing.type_check_only +class GoogleCloudAiplatformV1FetchPredictOperationRequest( + typing_extensions.TypedDict, total=False +): + operationName: str + @typing.type_check_only class GoogleCloudAiplatformV1FileData(typing_extensions.TypedDict, total=False): fileUri: str mimeType: str +@typing.type_check_only +class GoogleCloudAiplatformV1FileStatus(typing_extensions.TypedDict, total=False): + errorStatus: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "ERROR"] + @typing.type_check_only class GoogleCloudAiplatformV1FilterSplit(typing_extensions.TypedDict, total=False): testFilter: str @@ -2352,6 +2562,7 @@ class GoogleCloudAiplatformV1GcsSource(typing_extensions.TypedDict, total=False) class GoogleCloudAiplatformV1GenerateContentRequest( typing_extensions.TypedDict, total=False ): + cachedContent: str contents: _list[GoogleCloudAiplatformV1Content] generationConfig: GoogleCloudAiplatformV1GenerationConfig labels: dict[str, typing.Any] @@ -2387,22 +2598,34 @@ class GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback( class GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata( typing_extensions.TypedDict, total=False ): + cachedContentTokenCount: int candidatesTokenCount: int promptTokenCount: int totalTokenCount: int @typing.type_check_only class GoogleCloudAiplatformV1GenerationConfig(typing_extensions.TypedDict, total=False): + audioTimestamp: bool candidateCount: int frequencyPenalty: float logprobs: int maxOutputTokens: int + mediaResolution: typing_extensions.Literal[ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + ] presencePenalty: float responseLogprobs: bool responseMimeType: str + responseModalities: _list[ + typing_extensions.Literal["MODALITY_UNSPECIFIED", "TEXT", "IMAGE", "AUDIO"] + ] responseSchema: GoogleCloudAiplatformV1Schema routingConfig: GoogleCloudAiplatformV1GenerationConfigRoutingConfig seed: int + speechConfig: GoogleCloudAiplatformV1SpeechConfig stopSequences: _list[str] temperature: float topK: float @@ -2441,10 +2664,26 @@ class GoogleCloudAiplatformV1GenericOperationMetadata( class GoogleCloudAiplatformV1GenieSource(typing_extensions.TypedDict, total=False): baseModelUri: str +@typing.type_check_only +class GoogleCloudAiplatformV1GoogleDriveSource( + typing_extensions.TypedDict, total=False +): + resourceIds: _list[GoogleCloudAiplatformV1GoogleDriveSourceResourceId] + +@typing.type_check_only +class GoogleCloudAiplatformV1GoogleDriveSourceResourceId( + typing_extensions.TypedDict, total=False +): + resourceId: str + resourceType: typing_extensions.Literal[ + "RESOURCE_TYPE_UNSPECIFIED", "RESOURCE_TYPE_FILE", "RESOURCE_TYPE_FOLDER" + ] + @typing.type_check_only class GoogleCloudAiplatformV1GoogleSearchRetrieval( typing_extensions.TypedDict, total=False -): ... +): + dynamicRetrievalConfig: GoogleCloudAiplatformV1DynamicRetrievalConfig @typing.type_check_only class GoogleCloudAiplatformV1GroundednessInput( @@ -2481,6 +2720,7 @@ class GoogleCloudAiplatformV1GroundingChunk(typing_extensions.TypedDict, total=F class GoogleCloudAiplatformV1GroundingChunkRetrievedContext( typing_extensions.TypedDict, total=False ): + text: str title: str uri: str @@ -2497,6 +2737,7 @@ class GoogleCloudAiplatformV1GroundingMetadata( ): groundingChunks: _list[GoogleCloudAiplatformV1GroundingChunk] groundingSupports: _list[GoogleCloudAiplatformV1GroundingSupport] + retrievalMetadata: GoogleCloudAiplatformV1RetrievalMetadata searchEntryPoint: GoogleCloudAiplatformV1SearchEntryPoint webSearchQueries: _list[str] @@ -2619,6 +2860,26 @@ class GoogleCloudAiplatformV1ImportModelEvaluationRequest( ): modelEvaluation: GoogleCloudAiplatformV1ModelEvaluation +@typing.type_check_only +class GoogleCloudAiplatformV1ImportRagFilesConfig( + typing_extensions.TypedDict, total=False +): + gcsSource: GoogleCloudAiplatformV1GcsSource + googleDriveSource: GoogleCloudAiplatformV1GoogleDriveSource + jiraSource: GoogleCloudAiplatformV1JiraSource + maxEmbeddingRequestsPerMin: int + partialFailureBigquerySink: GoogleCloudAiplatformV1BigQueryDestination + partialFailureGcsSink: GoogleCloudAiplatformV1GcsDestination + ragFileTransformationConfig: GoogleCloudAiplatformV1RagFileTransformationConfig + sharePointSources: GoogleCloudAiplatformV1SharePointSources + slackSource: GoogleCloudAiplatformV1SlackSource + +@typing.type_check_only +class GoogleCloudAiplatformV1ImportRagFilesRequest( + typing_extensions.TypedDict, total=False +): + importRagFilesConfig: GoogleCloudAiplatformV1ImportRagFilesConfig + @typing.type_check_only class GoogleCloudAiplatformV1Index(typing_extensions.TypedDict, total=False): createTime: str @@ -2747,6 +3008,20 @@ class GoogleCloudAiplatformV1IntegratedGradientsAttribution( smoothGradConfig: GoogleCloudAiplatformV1SmoothGradConfig stepCount: int +@typing.type_check_only +class GoogleCloudAiplatformV1JiraSource(typing_extensions.TypedDict, total=False): + jiraQueries: _list[GoogleCloudAiplatformV1JiraSourceJiraQueries] + +@typing.type_check_only +class GoogleCloudAiplatformV1JiraSourceJiraQueries( + typing_extensions.TypedDict, total=False +): + apiKeyConfig: GoogleCloudAiplatformV1ApiAuthApiKeyConfig + customQueries: _list[str] + email: str + projects: _list[str] + serverUri: str + @typing.type_check_only class GoogleCloudAiplatformV1LargeModelReference( typing_extensions.TypedDict, total=False @@ -2780,6 +3055,13 @@ class GoogleCloudAiplatformV1ListBatchPredictionJobsResponse( batchPredictionJobs: _list[GoogleCloudAiplatformV1BatchPredictionJob] nextPageToken: str +@typing.type_check_only +class GoogleCloudAiplatformV1ListCachedContentsResponse( + typing_extensions.TypedDict, total=False +): + cachedContents: _list[GoogleCloudAiplatformV1CachedContent] + nextPageToken: str + @typing.type_check_only class GoogleCloudAiplatformV1ListContextsResponse( typing_extensions.TypedDict, total=False @@ -3024,6 +3306,27 @@ class GoogleCloudAiplatformV1ListPipelineJobsResponse( nextPageToken: str pipelineJobs: _list[GoogleCloudAiplatformV1PipelineJob] +@typing.type_check_only +class GoogleCloudAiplatformV1ListRagCorporaResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + ragCorpora: _list[GoogleCloudAiplatformV1RagCorpus] + +@typing.type_check_only +class GoogleCloudAiplatformV1ListRagFilesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + ragFiles: _list[GoogleCloudAiplatformV1RagFile] + +@typing.type_check_only +class GoogleCloudAiplatformV1ListReasoningEnginesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + reasoningEngines: _list[GoogleCloudAiplatformV1ReasoningEngine] + @typing.type_check_only class GoogleCloudAiplatformV1ListSavedQueriesResponse( typing_extensions.TypedDict, total=False @@ -3140,6 +3443,7 @@ class GoogleCloudAiplatformV1MachineSpec(typing_extensions.TypedDict, total=Fals "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", @@ -3210,6 +3514,32 @@ class GoogleCloudAiplatformV1MetadataStoreMetadataStoreState( ): diskUtilizationBytes: str +@typing.type_check_only +class GoogleCloudAiplatformV1MetricxInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1MetricxInstance + metricSpec: GoogleCloudAiplatformV1MetricxSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1MetricxInstance(typing_extensions.TypedDict, total=False): + prediction: str + reference: str + source: str + +@typing.type_check_only +class GoogleCloudAiplatformV1MetricxResult(typing_extensions.TypedDict, total=False): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1MetricxSpec(typing_extensions.TypedDict, total=False): + sourceLanguage: str + targetLanguage: str + version: typing_extensions.Literal[ + "METRICX_VERSION_UNSPECIFIED", + "METRICX_24_REF", + "METRICX_24_SRC", + "METRICX_24_SRC_REF", + ] + @typing.type_check_only class GoogleCloudAiplatformV1MigratableResource( typing_extensions.TypedDict, total=False @@ -3384,6 +3714,7 @@ class GoogleCloudAiplatformV1ModelContainerSpec( healthProbe: GoogleCloudAiplatformV1Probe healthRoute: str imageUri: str + livenessProbe: GoogleCloudAiplatformV1Probe ports: _list[GoogleCloudAiplatformV1Port] predictRoute: str sharedMemorySizeMb: str @@ -3969,6 +4300,9 @@ class GoogleCloudAiplatformV1NotebookExecutionJob( typing_extensions.TypedDict, total=False ): createTime: str + customEnvironmentSpec: ( + GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec + ) dataformRepositorySource: ( GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource ) @@ -3995,6 +4329,7 @@ class GoogleCloudAiplatformV1NotebookExecutionJob( "JOB_STATE_UPDATING", "JOB_STATE_PARTIALLY_SUCCEEDED", ] + kernelName: str labels: dict[str, typing.Any] name: str notebookRuntimeTemplateResourceName: str @@ -4002,6 +4337,15 @@ class GoogleCloudAiplatformV1NotebookExecutionJob( serviceAccount: str status: GoogleRpcStatus updateTime: str + workbenchRuntime: GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime + +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookExecutionJobCustomEnvironmentSpec( + typing_extensions.TypedDict, total=False +): + machineSpec: GoogleCloudAiplatformV1MachineSpec + networkSpec: GoogleCloudAiplatformV1NetworkSpec + persistentDiskSpec: GoogleCloudAiplatformV1PersistentDiskSpec @typing.type_check_only class GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( @@ -4023,6 +4367,11 @@ class GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( generation: str uri: str +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookExecutionJobWorkbenchRuntime( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1NotebookIdleShutdownConfig( typing_extensions.TypedDict, total=False @@ -4033,9 +4382,11 @@ class GoogleCloudAiplatformV1NotebookIdleShutdownConfig( @typing.type_check_only class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total=False): createTime: str + dataPersistentDiskSpec: GoogleCloudAiplatformV1PersistentDiskSpec description: str displayName: str encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec + eucConfig: GoogleCloudAiplatformV1NotebookEucConfig expirationTime: str healthState: typing_extensions.Literal[ "HEALTH_STATE_UNSPECIFIED", "HEALTHY", "UNHEALTHY" @@ -4043,7 +4394,9 @@ class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total= idleShutdownConfig: GoogleCloudAiplatformV1NotebookIdleShutdownConfig isUpgradable: bool labels: dict[str, typing.Any] + machineSpec: GoogleCloudAiplatformV1MachineSpec name: str + networkSpec: GoogleCloudAiplatformV1NetworkSpec networkTags: _list[str] notebookRuntimeTemplateRef: GoogleCloudAiplatformV1NotebookRuntimeTemplateRef notebookRuntimeType: typing_extensions.Literal[ @@ -4064,6 +4417,7 @@ class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total= satisfiesPzi: bool satisfiesPzs: bool serviceAccount: str + shieldedVmConfig: GoogleCloudAiplatformV1ShieldedVmConfig updateTime: str version: str @@ -4432,10 +4786,23 @@ class GoogleCloudAiplatformV1PointwiseMetricSpec( class GoogleCloudAiplatformV1Port(typing_extensions.TypedDict, total=False): containerPort: int +@typing.type_check_only +class GoogleCloudAiplatformV1PrebuiltVoiceConfig( + typing_extensions.TypedDict, total=False +): + voiceName: str + @typing.type_check_only class GoogleCloudAiplatformV1PredefinedSplit(typing_extensions.TypedDict, total=False): key: str +@typing.type_check_only +class GoogleCloudAiplatformV1PredictLongRunningRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[typing.Any] + parameters: typing.Any + @typing.type_check_only class GoogleCloudAiplatformV1PredictRequest(typing_extensions.TypedDict, total=False): instances: _list[typing.Any] @@ -4489,13 +4856,43 @@ class GoogleCloudAiplatformV1PrivateServiceConnectConfig( @typing.type_check_only class GoogleCloudAiplatformV1Probe(typing_extensions.TypedDict, total=False): exec: GoogleCloudAiplatformV1ProbeExecAction + grpc: GoogleCloudAiplatformV1ProbeGrpcAction + httpGet: GoogleCloudAiplatformV1ProbeHttpGetAction periodSeconds: int + tcpSocket: GoogleCloudAiplatformV1ProbeTcpSocketAction timeoutSeconds: int @typing.type_check_only class GoogleCloudAiplatformV1ProbeExecAction(typing_extensions.TypedDict, total=False): command: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1ProbeGrpcAction(typing_extensions.TypedDict, total=False): + port: int + service: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ProbeHttpGetAction( + typing_extensions.TypedDict, total=False +): + host: str + httpHeaders: _list[GoogleCloudAiplatformV1ProbeHttpHeader] + path: str + port: int + scheme: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ProbeHttpHeader(typing_extensions.TypedDict, total=False): + name: str + value: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ProbeTcpSocketAction( + typing_extensions.TypedDict, total=False +): + host: str + port: int + @typing.type_check_only class GoogleCloudAiplatformV1PscAutomatedEndpoints( typing_extensions.TypedDict, total=False @@ -4734,6 +5131,19 @@ class GoogleCloudAiplatformV1QueryDeployedModelsResponse( totalDeployedModelCount: int totalEndpointCount: int +@typing.type_check_only +class GoogleCloudAiplatformV1QueryReasoningEngineRequest( + typing_extensions.TypedDict, total=False +): + classMethod: str + input: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudAiplatformV1QueryReasoningEngineResponse( + typing_extensions.TypedDict, total=False +): + output: typing.Any + @typing.type_check_only class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput( typing_extensions.TypedDict, total=False @@ -4859,33 +5269,154 @@ class GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec( version: int @typing.type_check_only -class GoogleCloudAiplatformV1RawPredictRequest( - typing_extensions.TypedDict, total=False -): - httpBody: GoogleApiHttpBody - -@typing.type_check_only -class GoogleCloudAiplatformV1RayLogsSpec(typing_extensions.TypedDict, total=False): - disabled: bool +class GoogleCloudAiplatformV1RagContexts(typing_extensions.TypedDict, total=False): + contexts: _list[GoogleCloudAiplatformV1RagContextsContext] @typing.type_check_only -class GoogleCloudAiplatformV1RayMetricSpec(typing_extensions.TypedDict, total=False): - disabled: bool +class GoogleCloudAiplatformV1RagContextsContext( + typing_extensions.TypedDict, total=False +): + score: float + sourceDisplayName: str + sourceUri: str + text: str @typing.type_check_only -class GoogleCloudAiplatformV1RaySpec(typing_extensions.TypedDict, total=False): - headNodeResourcePoolId: str - imageUri: str - rayLogsSpec: GoogleCloudAiplatformV1RayLogsSpec - rayMetricSpec: GoogleCloudAiplatformV1RayMetricSpec - resourcePoolImages: dict[str, typing.Any] +class GoogleCloudAiplatformV1RagCorpus(typing_extensions.TypedDict, total=False): + corpusStatus: GoogleCloudAiplatformV1CorpusStatus + createTime: str + description: str + displayName: str + name: str + updateTime: str + vectorDbConfig: GoogleCloudAiplatformV1RagVectorDbConfig @typing.type_check_only -class GoogleCloudAiplatformV1ReadFeatureValuesRequest( +class GoogleCloudAiplatformV1RagEmbeddingModelConfig( typing_extensions.TypedDict, total=False ): - entityId: str - featureSelector: GoogleCloudAiplatformV1FeatureSelector + vertexPredictionEndpoint: ( + GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint + ) + +@typing.type_check_only +class GoogleCloudAiplatformV1RagEmbeddingModelConfigVertexPredictionEndpoint( + typing_extensions.TypedDict, total=False +): + endpoint: str + model: str + modelVersionId: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RagFile(typing_extensions.TypedDict, total=False): + createTime: str + description: str + directUploadSource: GoogleCloudAiplatformV1DirectUploadSource + displayName: str + fileStatus: GoogleCloudAiplatformV1FileStatus + gcsSource: GoogleCloudAiplatformV1GcsSource + googleDriveSource: GoogleCloudAiplatformV1GoogleDriveSource + jiraSource: GoogleCloudAiplatformV1JiraSource + name: str + sharePointSources: GoogleCloudAiplatformV1SharePointSources + slackSource: GoogleCloudAiplatformV1SlackSource + updateTime: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RagFileChunkingConfig( + typing_extensions.TypedDict, total=False +): + fixedLengthChunking: GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking + +@typing.type_check_only +class GoogleCloudAiplatformV1RagFileChunkingConfigFixedLengthChunking( + typing_extensions.TypedDict, total=False +): + chunkOverlap: int + chunkSize: int + +@typing.type_check_only +class GoogleCloudAiplatformV1RagFileTransformationConfig( + typing_extensions.TypedDict, total=False +): + ragFileChunkingConfig: GoogleCloudAiplatformV1RagFileChunkingConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1RagQuery(typing_extensions.TypedDict, total=False): + ragRetrievalConfig: GoogleCloudAiplatformV1RagRetrievalConfig + text: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RagRetrievalConfig( + typing_extensions.TypedDict, total=False +): + filter: GoogleCloudAiplatformV1RagRetrievalConfigFilter + topK: int + +@typing.type_check_only +class GoogleCloudAiplatformV1RagRetrievalConfigFilter( + typing_extensions.TypedDict, total=False +): + metadataFilter: str + vectorDistanceThreshold: float + vectorSimilarityThreshold: float + +@typing.type_check_only +class GoogleCloudAiplatformV1RagVectorDbConfig( + typing_extensions.TypedDict, total=False +): + apiAuth: GoogleCloudAiplatformV1ApiAuth + pinecone: GoogleCloudAiplatformV1RagVectorDbConfigPinecone + ragEmbeddingModelConfig: GoogleCloudAiplatformV1RagEmbeddingModelConfig + ragManagedDb: GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb + vertexVectorSearch: GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch + +@typing.type_check_only +class GoogleCloudAiplatformV1RagVectorDbConfigPinecone( + typing_extensions.TypedDict, total=False +): + indexName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RagVectorDbConfigRagManagedDb( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1RagVectorDbConfigVertexVectorSearch( + typing_extensions.TypedDict, total=False +): + index: str + indexEndpoint: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RawPredictRequest( + typing_extensions.TypedDict, total=False +): + httpBody: GoogleApiHttpBody + +@typing.type_check_only +class GoogleCloudAiplatformV1RayLogsSpec(typing_extensions.TypedDict, total=False): + disabled: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1RayMetricSpec(typing_extensions.TypedDict, total=False): + disabled: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1RaySpec(typing_extensions.TypedDict, total=False): + headNodeResourcePoolId: str + imageUri: str + rayLogsSpec: GoogleCloudAiplatformV1RayLogsSpec + rayMetricSpec: GoogleCloudAiplatformV1RayMetricSpec + resourcePoolImages: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudAiplatformV1ReadFeatureValuesRequest( + typing_extensions.TypedDict, total=False +): + entityId: str + featureSelector: GoogleCloudAiplatformV1FeatureSelector @typing.type_check_only class GoogleCloudAiplatformV1ReadFeatureValuesResponse( @@ -4975,6 +5506,32 @@ class GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData( username: str viewCount: str +@typing.type_check_only +class GoogleCloudAiplatformV1ReasoningEngine(typing_extensions.TypedDict, total=False): + createTime: str + description: str + displayName: str + etag: str + name: str + spec: GoogleCloudAiplatformV1ReasoningEngineSpec + updateTime: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ReasoningEngineSpec( + typing_extensions.TypedDict, total=False +): + classMethods: _list[dict[str, typing.Any]] + packageSpec: GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ReasoningEngineSpecPackageSpec( + typing_extensions.TypedDict, total=False +): + dependencyFilesGcsUri: str + pickleObjectGcsUri: str + pythonVersion: str + requirementsGcsUri: str + @typing.type_check_only class GoogleCloudAiplatformV1RebaseTunedModelRequest( typing_extensions.TypedDict, total=False @@ -5084,6 +5641,46 @@ class GoogleCloudAiplatformV1Retrieval(typing_extensions.TypedDict, total=False) vertexAiSearch: GoogleCloudAiplatformV1VertexAISearch vertexRagStore: GoogleCloudAiplatformV1VertexRagStore +@typing.type_check_only +class GoogleCloudAiplatformV1RetrievalConfig(typing_extensions.TypedDict, total=False): + languageCode: str + latLng: GoogleTypeLatLng + +@typing.type_check_only +class GoogleCloudAiplatformV1RetrievalMetadata( + typing_extensions.TypedDict, total=False +): + googleSearchDynamicRetrievalScore: float + +@typing.type_check_only +class GoogleCloudAiplatformV1RetrieveContextsRequest( + typing_extensions.TypedDict, total=False +): + query: GoogleCloudAiplatformV1RagQuery + vertexRagStore: GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore + +@typing.type_check_only +class GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStore( + typing_extensions.TypedDict, total=False +): + ragResources: _list[ + GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource + ] + vectorDistanceThreshold: float + +@typing.type_check_only +class GoogleCloudAiplatformV1RetrieveContextsRequestVertexRagStoreRagResource( + typing_extensions.TypedDict, total=False +): + ragCorpus: str + ragFileIds: _list[str] + +@typing.type_check_only +class GoogleCloudAiplatformV1RetrieveContextsResponse( + typing_extensions.TypedDict, total=False +): + contexts: GoogleCloudAiplatformV1RagContexts + @typing.type_check_only class GoogleCloudAiplatformV1RougeInput(typing_extensions.TypedDict, total=False): instances: _list[GoogleCloudAiplatformV1RougeInstance] @@ -5921,6 +6518,128 @@ class GoogleCloudAiplatformV1SchemaPredictionResultError( "DATA_LOSS", ] +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptApiSchema( + typing_extensions.TypedDict, total=False +): + apiSchemaVersion: str + executions: _list[GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution] + multimodalPrompt: GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt + structuredPrompt: GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt + translationPrompt: GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptInstancePromptExecution( + typing_extensions.TypedDict, total=False +): + arguments: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptInstanceVariableValue( + typing_extensions.TypedDict, total=False +): + partList: GoogleCloudAiplatformV1SchemaPromptSpecPartList + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecMultimodalPrompt( + typing_extensions.TypedDict, total=False +): + promptMessage: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecPartList( + typing_extensions.TypedDict, total=False +): + parts: _list[GoogleCloudAiplatformV1Part] + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudAiplatformV1Content] + generationConfig: GoogleCloudAiplatformV1GenerationConfig + model: str + safetySettings: _list[GoogleCloudAiplatformV1SafetySetting] + systemInstruction: GoogleCloudAiplatformV1Content + toolConfig: GoogleCloudAiplatformV1ToolConfig + tools: _list[GoogleCloudAiplatformV1Tool] + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair( + typing_extensions.TypedDict, total=False +): + sourceSentence: str + targetSentence: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList( + typing_extensions.TypedDict, total=False +): + referenceSentencePairs: _list[ + GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePair + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecStructuredPrompt( + typing_extensions.TypedDict, total=False +): + context: GoogleCloudAiplatformV1Content + examples: _list[GoogleCloudAiplatformV1SchemaPromptSpecPartList] + infillPrefix: str + infillSuffix: str + inputPrefixes: _list[str] + outputPrefixes: _list[str] + predictionInputs: _list[GoogleCloudAiplatformV1SchemaPromptSpecPartList] + promptMessage: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample( + typing_extensions.TypedDict, total=False +): + referenceSentencePairLists: _list[ + GoogleCloudAiplatformV1SchemaPromptSpecReferenceSentencePairList + ] + referenceSentencesFileInputs: _list[ + GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource( + typing_extensions.TypedDict, total=False +): + content: str + displayName: str + mimeType: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource( + typing_extensions.TypedDict, total=False +): + inputUri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption( + typing_extensions.TypedDict, total=False +): + numberOfShots: int + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationPrompt( + typing_extensions.TypedDict, total=False +): + example: GoogleCloudAiplatformV1SchemaPromptSpecTranslationExample + option: GoogleCloudAiplatformV1SchemaPromptSpecTranslationOption + promptMessage: GoogleCloudAiplatformV1SchemaPromptSpecPromptMessage + sourceLanguageCode: str + targetLanguageCode: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SchemaPromptSpecTranslationSentenceFileInput( + typing_extensions.TypedDict, total=False +): + fileInputSource: GoogleCloudAiplatformV1SchemaPromptSpecTranslationFileInputSource + gcsInputSource: GoogleCloudAiplatformV1SchemaPromptSpecTranslationGcsInputSource + @typing.type_check_only class GoogleCloudAiplatformV1SchemaTablesDatasetMetadata( typing_extensions.TypedDict, total=False @@ -5982,9 +6701,13 @@ class GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata( gcsUri: str groundingConfig: GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig hasPromptVariable: bool + logprobs: bool maxOutputTokens: str note: str + promptApiSchema: GoogleCloudAiplatformV1SchemaPromptApiSchema promptType: str + seedEnabled: bool + seedValue: str stopSequences: _list[str] systemInstruction: str systemInstructionGcsUri: str @@ -6857,10 +7580,49 @@ class GoogleCloudAiplatformV1ServiceAccountSpec( enableCustomServiceAccount: bool serviceAccount: str +@typing.type_check_only +class GoogleCloudAiplatformV1SharePointSources( + typing_extensions.TypedDict, total=False +): + sharePointSources: _list[GoogleCloudAiplatformV1SharePointSourcesSharePointSource] + +@typing.type_check_only +class GoogleCloudAiplatformV1SharePointSourcesSharePointSource( + typing_extensions.TypedDict, total=False +): + clientId: str + clientSecret: GoogleCloudAiplatformV1ApiAuthApiKeyConfig + driveId: str + driveName: str + fileId: str + sharepointFolderId: str + sharepointFolderPath: str + sharepointSiteName: str + tenantId: str + @typing.type_check_only class GoogleCloudAiplatformV1ShieldedVmConfig(typing_extensions.TypedDict, total=False): enableSecureBoot: bool +@typing.type_check_only +class GoogleCloudAiplatformV1SlackSource(typing_extensions.TypedDict, total=False): + channels: _list[GoogleCloudAiplatformV1SlackSourceSlackChannels] + +@typing.type_check_only +class GoogleCloudAiplatformV1SlackSourceSlackChannels( + typing_extensions.TypedDict, total=False +): + apiKeyConfig: GoogleCloudAiplatformV1ApiAuthApiKeyConfig + channels: _list[GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel] + +@typing.type_check_only +class GoogleCloudAiplatformV1SlackSourceSlackChannelsSlackChannel( + typing_extensions.TypedDict, total=False +): + channelId: str + endTime: str + startTime: str + @typing.type_check_only class GoogleCloudAiplatformV1SmoothGradConfig(typing_extensions.TypedDict, total=False): featureNoiseSigma: GoogleCloudAiplatformV1FeatureNoiseSigma @@ -6876,6 +7638,10 @@ class GoogleCloudAiplatformV1SpecialistPool(typing_extensions.TypedDict, total=F specialistManagersCount: int specialistWorkerEmails: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1SpeechConfig(typing_extensions.TypedDict, total=False): + voiceConfig: GoogleCloudAiplatformV1VoiceConfig + @typing.type_check_only class GoogleCloudAiplatformV1StartNotebookRuntimeOperationMetadata( typing_extensions.TypedDict, total=False @@ -6888,6 +7654,11 @@ class GoogleCloudAiplatformV1StartNotebookRuntimeRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1StopNotebookRuntimeRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1StopTrialRequest( typing_extensions.TypedDict, total=False @@ -6900,6 +7671,13 @@ class GoogleCloudAiplatformV1StratifiedSplit(typing_extensions.TypedDict, total= trainingFraction: float validationFraction: float +@typing.type_check_only +class GoogleCloudAiplatformV1StreamQueryReasoningEngineRequest( + typing_extensions.TypedDict, total=False +): + classMethod: str + input: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudAiplatformV1StreamRawPredictRequest( typing_extensions.TypedDict, total=False @@ -7248,6 +8026,7 @@ class GoogleCloudAiplatformV1SupervisedHyperParameters( class GoogleCloudAiplatformV1SupervisedTuningDataStats( typing_extensions.TypedDict, total=False ): + droppedExampleReasons: _list[str] totalBillableCharacterCount: str totalBillableTokenCount: str totalTruncatedExampleCount: str @@ -7466,9 +8245,15 @@ class GoogleCloudAiplatformV1TokensInfo(typing_extensions.TypedDict, total=False @typing.type_check_only class GoogleCloudAiplatformV1Tool(typing_extensions.TypedDict, total=False): functionDeclarations: _list[GoogleCloudAiplatformV1FunctionDeclaration] + googleSearch: GoogleCloudAiplatformV1ToolGoogleSearch googleSearchRetrieval: GoogleCloudAiplatformV1GoogleSearchRetrieval retrieval: GoogleCloudAiplatformV1Retrieval +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCall(typing_extensions.TypedDict, total=False): + toolInput: str + toolName: str + @typing.type_check_only class GoogleCloudAiplatformV1ToolCallValidInput( typing_extensions.TypedDict, total=False @@ -7503,6 +8288,12 @@ class GoogleCloudAiplatformV1ToolCallValidSpec( @typing.type_check_only class GoogleCloudAiplatformV1ToolConfig(typing_extensions.TypedDict, total=False): functionCallingConfig: GoogleCloudAiplatformV1FunctionCallingConfig + retrievalConfig: GoogleCloudAiplatformV1RetrievalConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolGoogleSearch( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleCloudAiplatformV1ToolNameMatchInput( @@ -7636,6 +8427,208 @@ class GoogleCloudAiplatformV1TrainingPipeline(typing_extensions.TypedDict, total trainingTaskMetadata: typing.Any updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1Trajectory(typing_extensions.TypedDict, total=False): + toolCalls: _list[GoogleCloudAiplatformV1ToolCall] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance] + metricSpec: GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryAnyOrderMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryAnyOrderMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryAnyOrderMatchMetricValues: _list[ + GoogleCloudAiplatformV1TrajectoryAnyOrderMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryAnyOrderMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryExactMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectoryExactMatchInstance] + metricSpec: GoogleCloudAiplatformV1TrajectoryExactMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryExactMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryExactMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryExactMatchMetricValues: _list[ + GoogleCloudAiplatformV1TrajectoryExactMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryExactMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryInOrderMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance] + metricSpec: GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryInOrderMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryInOrderMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryInOrderMatchMetricValues: _list[ + GoogleCloudAiplatformV1TrajectoryInOrderMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryInOrderMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryPrecisionInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectoryPrecisionInstance] + metricSpec: GoogleCloudAiplatformV1TrajectoryPrecisionSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryPrecisionInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryPrecisionResults( + typing_extensions.TypedDict, total=False +): + trajectoryPrecisionMetricValues: _list[ + GoogleCloudAiplatformV1TrajectoryPrecisionMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryPrecisionSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryRecallInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectoryRecallInstance] + metricSpec: GoogleCloudAiplatformV1TrajectoryRecallSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryRecallInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryRecallMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryRecallResults( + typing_extensions.TypedDict, total=False +): + trajectoryRecallMetricValues: _list[ + GoogleCloudAiplatformV1TrajectoryRecallMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectoryRecallSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectorySingleToolUseInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1TrajectorySingleToolUseInstance] + metricSpec: GoogleCloudAiplatformV1TrajectorySingleToolUseSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectorySingleToolUseInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectorySingleToolUseResults( + typing_extensions.TypedDict, total=False +): + trajectorySingleToolUseMetricValues: _list[ + GoogleCloudAiplatformV1TrajectorySingleToolUseMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1TrajectorySingleToolUseSpec( + typing_extensions.TypedDict, total=False +): + toolName: str + @typing.type_check_only class GoogleCloudAiplatformV1Trial(typing_extensions.TypedDict, total=False): clientId: str @@ -7694,6 +8687,7 @@ class GoogleCloudAiplatformV1TuningJob(typing_extensions.TypedDict, total=False) experiment: str labels: dict[str, typing.Any] name: str + serviceAccount: str startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -7764,6 +8758,12 @@ class GoogleCloudAiplatformV1UpdateDeploymentResourcePoolOperationMetadata( ): genericMetadata: GoogleCloudAiplatformV1GenericOperationMetadata +@typing.type_check_only +class GoogleCloudAiplatformV1UpdateEndpointLongRunningRequest( + typing_extensions.TypedDict, total=False +): + endpoint: GoogleCloudAiplatformV1Endpoint + @typing.type_check_only class GoogleCloudAiplatformV1UpdateExplanationDatasetOperationMetadata( typing_extensions.TypedDict, total=False @@ -7880,6 +8880,26 @@ class GoogleCloudAiplatformV1UploadModelResponse( model: str modelVersionId: str +@typing.type_check_only +class GoogleCloudAiplatformV1UploadRagFileConfig( + typing_extensions.TypedDict, total=False +): + ragFileTransformationConfig: GoogleCloudAiplatformV1RagFileTransformationConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1UploadRagFileRequest( + typing_extensions.TypedDict, total=False +): + ragFile: GoogleCloudAiplatformV1RagFile + uploadRagFileConfig: GoogleCloudAiplatformV1UploadRagFileConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1UploadRagFileResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + ragFile: GoogleCloudAiplatformV1RagFile + @typing.type_check_only class GoogleCloudAiplatformV1UpsertDatapointsRequest( typing_extensions.TypedDict, total=False @@ -7912,8 +8932,8 @@ class GoogleCloudAiplatformV1VertexAISearch(typing_extensions.TypedDict, total=F @typing.type_check_only class GoogleCloudAiplatformV1VertexRagStore(typing_extensions.TypedDict, total=False): - ragCorpora: _list[str] ragResources: _list[GoogleCloudAiplatformV1VertexRagStoreRagResource] + ragRetrievalConfig: GoogleCloudAiplatformV1RagRetrievalConfig similarityTopK: int vectorDistanceThreshold: float @@ -7929,6 +8949,10 @@ class GoogleCloudAiplatformV1VideoMetadata(typing_extensions.TypedDict, total=Fa endOffset: str startOffset: str +@typing.type_check_only +class GoogleCloudAiplatformV1VoiceConfig(typing_extensions.TypedDict, total=False): + prebuiltVoiceConfig: GoogleCloudAiplatformV1PrebuiltVoiceConfig + @typing.type_check_only class GoogleCloudAiplatformV1WorkerPoolSpec(typing_extensions.TypedDict, total=False): containerSpec: GoogleCloudAiplatformV1ContainerSpec @@ -8067,6 +9091,11 @@ class GoogleTypeInterval(typing_extensions.TypedDict, total=False): endTime: str startTime: str +@typing.type_check_only +class GoogleTypeLatLng(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + @typing.type_check_only class GoogleTypeMoney(typing_extensions.TypedDict, total=False): currencyCode: str diff --git a/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi index 2d70f1e6..6e075521 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi @@ -1031,6 +1031,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1ExplainRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1ExplainResponseHttpRequest: ... + def fetchPredictOperation( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1FetchPredictOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def generateContent( self, *, @@ -1087,6 +1094,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1PredictRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1PredictResponseHttpRequest: ... + def predictLongRunning( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1PredictLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def rawPredict( self, *, @@ -1138,6 +1152,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1UndeployModelRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def update( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def chat(self) -> ChatResource: ... def operations(self) -> OperationsResource: ... @@ -1326,6 +1347,109 @@ class AiplatformResource(googleapiclient.discovery.Resource): @typing.type_check_only class FeatureGroupsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FeatureMonitorsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FeatureMonitorJobsResource( + googleapiclient.discovery.Resource + ): + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1beta1FeatureMonitorJob = ..., + featureMonitorJobId: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudAiplatformV1beta1FeatureMonitorJobHttpRequest + ): ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudAiplatformV1beta1FeatureMonitorJobHttpRequest + ): ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse, + ) -> ( + GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponseHttpRequest + | None + ): ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> ( + GoogleLongrunningListOperationsResponseHttpRequest | None + ): ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1beta1FeatureMonitor = ..., + featureMonitorId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1beta1FeatureMonitorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse, + ) -> ( + GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponseHttpRequest + | None + ): ... + def featureMonitorJobs(self) -> FeatureMonitorJobsResource: ... + def operations(self) -> OperationsResource: ... + @typing.type_check_only class FeaturesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -1356,6 +1480,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, timeout: str = ..., **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... + def batchCreate( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def create( self, *, @@ -1368,7 +1499,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + featureStatsAndAnomalySpec_latestStatsCount: int = ..., + featureStatsAndAnomalySpec_statsTimeRange_endTime: str = ..., + featureStatsAndAnomalySpec_statsTimeRange_startTime: str = ..., + **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1FeatureHttpRequest: ... def list( self, @@ -1442,6 +1579,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudAiplatformV1beta1FeatureGroupHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... def list( self, *, @@ -1470,6 +1614,21 @@ 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 featureMonitors(self) -> FeatureMonitorsResource: ... def features(self) -> FeaturesResource: ... def operations(self) -> OperationsResource: ... @@ -1777,7 +1936,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + featureStatsAndAnomalySpec_latestStatsCount: int = ..., + featureStatsAndAnomalySpec_statsTimeRange_endTime: str = ..., + featureStatsAndAnomalySpec_statsTimeRange_startTime: str = ..., + **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1FeatureHttpRequest: ... def list( self, @@ -3636,6 +3801,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def stop( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def upgrade( self, *, @@ -3861,6 +4033,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1CountTokensRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1CountTokensResponseHttpRequest: ... + def fetchPredictOperation( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1FetchPredictOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def generateContent( self, *, @@ -3884,6 +4063,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1PredictRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1PredictResponseHttpRequest: ... + def predictLongRunning( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1PredictLongRunningRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def rawPredict( self, *, @@ -4134,6 +4320,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudAiplatformV1beta1QueryReasoningEngineResponseHttpRequest ): ... + def streamQuery( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def operations(self) -> OperationsResource: ... @typing.type_check_only @@ -5035,6 +5228,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1CorroborateContentRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1CorroborateContentResponseHttpRequest: ... + def deploy( + self, + *, + destination: str, + body: GoogleCloudAiplatformV1beta1DeployPublisherModelRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def evaluateInstances( self, *, @@ -5169,6 +5369,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): parent: str, filter: str = ..., languageCode: str = ..., + listAllVersions: bool = ..., orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., @@ -5554,6 +5755,26 @@ class GoogleCloudAiplatformV1beta1FeatureGroupHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1beta1FeatureGroup: ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureMonitorHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1FeatureMonitor: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureMonitorJobHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1FeatureMonitorJob: ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1FeatureOnlineStoreHttpRequest( googleapiclient.http.HttpRequest @@ -5832,6 +6053,26 @@ class GoogleCloudAiplatformV1beta1ListFeatureGroupsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse: ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi index 80e02818..d4bb55f6 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi @@ -18,11 +18,18 @@ class CloudAiLargeModelsVisionImage(typing_extensions.TypedDict, total=False): generationSeed: int image: str imageRaiScores: CloudAiLargeModelsVisionImageRAIScores + imageSize: CloudAiLargeModelsVisionImageImageSize raiInfo: CloudAiLargeModelsVisionRaiInfo semanticFilterResponse: CloudAiLargeModelsVisionSemanticFilterResponse text: str uri: str +@typing.type_check_only +class CloudAiLargeModelsVisionImageImageSize(typing_extensions.TypedDict, total=False): + channels: int + height: int + width: int + @typing.type_check_only class CloudAiLargeModelsVisionImageRAIScores(typing_extensions.TypedDict, total=False): agileWatermarkDetectionScore: float @@ -87,6 +94,8 @@ class CloudAiLargeModelsVisionSemanticFilterResponse( @typing.type_check_only class CloudAiLargeModelsVisionVideo(typing_extensions.TypedDict, total=False): + encodedVideo: str + encoding: str uri: str video: str @@ -304,6 +313,7 @@ class GoogleCloudAiplatformV1beta1AuthConfigApiKeyConfig( typing_extensions.TypedDict, total=False ): apiKeySecret: str + apiKeyString: str httpElementLocation: typing_extensions.Literal[ "HTTP_IN_UNSPECIFIED", "HTTP_IN_QUERY", @@ -806,6 +816,24 @@ class GoogleCloudAiplatformV1beta1Claim(typing_extensions.TypedDict, total=False score: float startIndex: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ClientConnectionConfig( + typing_extensions.TypedDict, total=False +): + inferenceTimeout: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CodeExecutionResult( + typing_extensions.TypedDict, total=False +): + outcome: typing_extensions.Literal[ + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED", + ] + output: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1CoherenceInput( typing_extensions.TypedDict, total=False @@ -833,6 +861,29 @@ class GoogleCloudAiplatformV1beta1CoherenceSpec( ): version: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CometInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1beta1CometInstance + metricSpec: GoogleCloudAiplatformV1beta1CometSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CometInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + source: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CometResult(typing_extensions.TypedDict, total=False): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CometSpec(typing_extensions.TypedDict, total=False): + sourceLanguage: str + targetLanguage: str + version: typing_extensions.Literal["COMET_VERSION_UNSPECIFIED", "COMET_22_SRC_REF"] + @typing.type_check_only class GoogleCloudAiplatformV1beta1CompleteTrialRequest( typing_extensions.TypedDict, total=False @@ -1211,6 +1262,7 @@ class GoogleCloudAiplatformV1beta1CustomJobSpec( network: str persistentResourceId: str protectedArtifactLocationId: str + pscInterfaceConfig: GoogleCloudAiplatformV1beta1PscInterfaceConfig reservedIpRanges: _list[str] scheduling: GoogleCloudAiplatformV1beta1Scheduling serviceAccount: str @@ -1348,6 +1400,7 @@ class GoogleCloudAiplatformV1beta1DedicatedResources( machineSpec: GoogleCloudAiplatformV1beta1MachineSpec maxReplicaCount: int minReplicaCount: int + requiredReplicaCount: int spot: bool @typing.type_check_only @@ -1453,6 +1506,17 @@ class GoogleCloudAiplatformV1beta1DeployModelResponse( ): deployedModel: GoogleCloudAiplatformV1beta1DeployedModel +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DeployPublisherModelRequest( + typing_extensions.TypedDict, total=False +): + acceptEula: bool + dedicatedResources: GoogleCloudAiplatformV1beta1DedicatedResources + endpointDisplayName: str + huggingFaceAccessToken: str + model: str + modelDisplayName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1DeploySolverOperationMetadata( typing_extensions.TypedDict, total=False @@ -1510,12 +1574,15 @@ class GoogleCloudAiplatformV1beta1DeployedModel( enableAccessLogging: bool enableContainerLogging: bool explanationSpec: GoogleCloudAiplatformV1beta1ExplanationSpec + fasterDeploymentConfig: GoogleCloudAiplatformV1beta1FasterDeploymentConfig id: str model: str modelVersionId: str privateEndpoints: GoogleCloudAiplatformV1beta1PrivateEndpoints serviceAccount: str sharedResources: str + status: GoogleCloudAiplatformV1beta1DeployedModelStatus + systemLabels: dict[str, typing.Any] @typing.type_check_only class GoogleCloudAiplatformV1beta1DeployedModelRef( @@ -1524,6 +1591,14 @@ class GoogleCloudAiplatformV1beta1DeployedModelRef( deployedModelId: str endpoint: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DeployedModelStatus( + typing_extensions.TypedDict, total=False +): + availableReplicaCount: int + lastUpdateTime: str + message: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1DeploymentResourcePool( typing_extensions.TypedDict, total=False @@ -1618,6 +1693,13 @@ class GoogleCloudAiplatformV1beta1DistillationSpec( class GoogleCloudAiplatformV1beta1DoubleArray(typing_extensions.TypedDict, total=False): values: _list[float] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DynamicRetrievalConfig( + typing_extensions.TypedDict, total=False +): + dynamicThreshold: float + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "MODE_DYNAMIC"] + @typing.type_check_only class GoogleCloudAiplatformV1beta1EncryptionSpec( typing_extensions.TypedDict, total=False @@ -1626,6 +1708,7 @@ class GoogleCloudAiplatformV1beta1EncryptionSpec( @typing.type_check_only class GoogleCloudAiplatformV1beta1Endpoint(typing_extensions.TypedDict, total=False): + clientConnectionConfig: GoogleCloudAiplatformV1beta1ClientConnectionConfig createTime: str dedicatedEndpointDns: str dedicatedEndpointEnabled: bool @@ -1702,10 +1785,12 @@ class GoogleCloudAiplatformV1beta1EvaluateInstancesRequest( ): bleuInput: GoogleCloudAiplatformV1beta1BleuInput coherenceInput: GoogleCloudAiplatformV1beta1CoherenceInput + cometInput: GoogleCloudAiplatformV1beta1CometInput exactMatchInput: GoogleCloudAiplatformV1beta1ExactMatchInput fluencyInput: GoogleCloudAiplatformV1beta1FluencyInput fulfillmentInput: GoogleCloudAiplatformV1beta1FulfillmentInput groundednessInput: GoogleCloudAiplatformV1beta1GroundednessInput + metricxInput: GoogleCloudAiplatformV1beta1MetricxInput pairwiseMetricInput: GoogleCloudAiplatformV1beta1PairwiseMetricInput pairwiseQuestionAnsweringQualityInput: ( GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput @@ -1737,6 +1822,16 @@ class GoogleCloudAiplatformV1beta1EvaluateInstancesRequest( toolNameMatchInput: GoogleCloudAiplatformV1beta1ToolNameMatchInput toolParameterKeyMatchInput: GoogleCloudAiplatformV1beta1ToolParameterKeyMatchInput toolParameterKvMatchInput: GoogleCloudAiplatformV1beta1ToolParameterKVMatchInput + trajectoryAnyOrderMatchInput: ( + GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInput + ) + trajectoryExactMatchInput: GoogleCloudAiplatformV1beta1TrajectoryExactMatchInput + trajectoryInOrderMatchInput: GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInput + trajectoryPrecisionInput: GoogleCloudAiplatformV1beta1TrajectoryPrecisionInput + trajectoryRecallInput: GoogleCloudAiplatformV1beta1TrajectoryRecallInput + trajectorySingleToolUseInput: ( + GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInput + ) @typing.type_check_only class GoogleCloudAiplatformV1beta1EvaluateInstancesResponse( @@ -1744,10 +1839,12 @@ class GoogleCloudAiplatformV1beta1EvaluateInstancesResponse( ): bleuResults: GoogleCloudAiplatformV1beta1BleuResults coherenceResult: GoogleCloudAiplatformV1beta1CoherenceResult + cometResult: GoogleCloudAiplatformV1beta1CometResult exactMatchResults: GoogleCloudAiplatformV1beta1ExactMatchResults fluencyResult: GoogleCloudAiplatformV1beta1FluencyResult fulfillmentResult: GoogleCloudAiplatformV1beta1FulfillmentResult groundednessResult: GoogleCloudAiplatformV1beta1GroundednessResult + metricxResult: GoogleCloudAiplatformV1beta1MetricxResult pairwiseMetricResult: GoogleCloudAiplatformV1beta1PairwiseMetricResult pairwiseQuestionAnsweringQualityResult: ( GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityResult @@ -1783,6 +1880,18 @@ class GoogleCloudAiplatformV1beta1EvaluateInstancesResponse( GoogleCloudAiplatformV1beta1ToolParameterKeyMatchResults ) toolParameterKvMatchResults: GoogleCloudAiplatformV1beta1ToolParameterKVMatchResults + trajectoryAnyOrderMatchResults: ( + GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchResults + ) + trajectoryExactMatchResults: GoogleCloudAiplatformV1beta1TrajectoryExactMatchResults + trajectoryInOrderMatchResults: ( + GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchResults + ) + trajectoryPrecisionResults: GoogleCloudAiplatformV1beta1TrajectoryPrecisionResults + trajectoryRecallResults: GoogleCloudAiplatformV1beta1TrajectoryRecallResults + trajectorySingleToolUseResults: ( + GoogleCloudAiplatformV1beta1TrajectorySingleToolUseResults + ) @typing.type_check_only class GoogleCloudAiplatformV1beta1EvaluatedAnnotation( @@ -1882,6 +1991,13 @@ class GoogleCloudAiplatformV1beta1ExamplesRestrictionsNamespace( deny: _list[str] namespaceName: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ExecutableCode( + typing_extensions.TypedDict, total=False +): + code: str + language: typing_extensions.Literal["LANGUAGE_UNSPECIFIED", "PYTHON"] + @typing.type_check_only class GoogleCloudAiplatformV1beta1ExecuteExtensionRequest( typing_extensions.TypedDict, total=False @@ -2169,6 +2285,19 @@ class GoogleCloudAiplatformV1beta1ExportModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ExportPublisherModelOperationMetadata( + typing_extensions.TypedDict, total=False +): + genericMetadata: GoogleCloudAiplatformV1beta1GenericOperationMetadata + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ExportPublisherModelResponse( + typing_extensions.TypedDict, total=False +): + destinationUri: str + publisherModel: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ExportTensorboardTimeSeriesDataRequest( typing_extensions.TypedDict, total=False @@ -2198,6 +2327,8 @@ class GoogleCloudAiplatformV1beta1Extension(typing_extensions.TypedDict, total=F GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig ) runtimeConfig: GoogleCloudAiplatformV1beta1RuntimeConfig + satisfiesPzi: bool + satisfiesPzs: bool toolUseExamples: _list[GoogleCloudAiplatformV1beta1ToolUseExample] updateTime: str @@ -2233,17 +2364,25 @@ class GoogleCloudAiplatformV1beta1ExtensionPrivateServiceConnectConfig( @typing.type_check_only class GoogleCloudAiplatformV1beta1Fact(typing_extensions.TypedDict, total=False): query: str + score: float summary: str title: str uri: str vectorDistance: float +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FasterDeploymentConfig( + typing_extensions.TypedDict, total=False +): + fastTryoutEnabled: bool + @typing.type_check_only class GoogleCloudAiplatformV1beta1Feature(typing_extensions.TypedDict, total=False): createTime: str description: str disableMonitoring: bool etag: str + featureStatsAndAnomaly: _list[GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly] labels: dict[str, typing.Any] monitoringConfig: GoogleCloudAiplatformV1beta1FeaturestoreMonitoringConfig monitoringStats: _list[GoogleCloudAiplatformV1beta1FeatureStatsAnomaly] @@ -2278,6 +2417,12 @@ class GoogleCloudAiplatformV1beta1FeatureGroup( etag: str labels: dict[str, typing.Any] name: str + serviceAccountEmail: str + serviceAgentType: typing_extensions.Literal[ + "SERVICE_AGENT_TYPE_UNSPECIFIED", + "SERVICE_AGENT_TYPE_PROJECT", + "SERVICE_AGENT_TYPE_FEATURE_GROUP", + ] updateTime: str @typing.type_check_only @@ -2296,6 +2441,45 @@ class GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries( ): timestampColumn: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureMonitor( + typing_extensions.TypedDict, total=False +): + createTime: str + description: str + etag: str + featureSelectionConfig: GoogleCloudAiplatformV1beta1FeatureSelectionConfig + labels: dict[str, typing.Any] + name: str + scheduleConfig: GoogleCloudAiplatformV1beta1ScheduleConfig + updateTime: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureMonitorJob( + typing_extensions.TypedDict, total=False +): + createTime: str + description: str + driftBaseFeatureMonitorJobId: str + driftBaseSnapshotTime: str + featureSelectionConfig: GoogleCloudAiplatformV1beta1FeatureSelectionConfig + finalStatus: GoogleRpcStatus + jobSummary: GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary + labels: dict[str, typing.Any] + name: str + triggerType: typing_extensions.Literal[ + "FEATURE_MONITOR_JOB_TRIGGER_UNSPECIFIED", + "FEATURE_MONITOR_JOB_TRIGGER_PERIODIC", + "FEATURE_MONITOR_JOB_TRIGGER_ON_DEMAND", + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureMonitorJobJobSummary( + typing_extensions.TypedDict, total=False +): + featureStatsAndAnomalies: _list[GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly] + totalSlotMs: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly( typing_extensions.TypedDict, total=False @@ -2373,12 +2557,40 @@ class GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureSelectionConfig( + typing_extensions.TypedDict, total=False +): + featureConfigs: _list[ + GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureSelectionConfigFeatureConfig( + typing_extensions.TypedDict, total=False +): + driftThreshold: float + featureId: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1FeatureSelector( typing_extensions.TypedDict, total=False ): idMatcher: GoogleCloudAiplatformV1beta1IdMatcher +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FeatureStatsAndAnomaly( + typing_extensions.TypedDict, total=False +): + distributionDeviation: float + driftDetected: bool + driftDetectionThreshold: float + featureId: str + featureMonitorId: str + featureMonitorJobId: str + featureStats: typing.Any + statsTime: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1FeatureStatsAnomaly( typing_extensions.TypedDict, total=False @@ -2536,6 +2748,7 @@ class GoogleCloudAiplatformV1beta1FeatureViewSync( class GoogleCloudAiplatformV1beta1FeatureViewSyncConfig( typing_extensions.TypedDict, total=False ): + continuous: bool cron: str @typing.type_check_only @@ -2696,6 +2909,12 @@ class GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePair name: str value: GoogleCloudAiplatformV1beta1FeatureValue +@typing.type_check_only +class GoogleCloudAiplatformV1beta1FetchPredictOperationRequest( + typing_extensions.TypedDict, total=False +): + operationName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1FileData(typing_extensions.TypedDict, total=False): fileUri: str @@ -2933,16 +3152,27 @@ class GoogleCloudAiplatformV1beta1GenerateVideoResponse( class GoogleCloudAiplatformV1beta1GenerationConfig( typing_extensions.TypedDict, total=False ): + audioTimestamp: bool candidateCount: int frequencyPenalty: float logprobs: int maxOutputTokens: int + mediaResolution: typing_extensions.Literal[ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + ] presencePenalty: float responseLogprobs: bool responseMimeType: str + responseModalities: _list[ + typing_extensions.Literal["MODALITY_UNSPECIFIED", "TEXT", "IMAGE", "AUDIO"] + ] responseSchema: GoogleCloudAiplatformV1beta1Schema routingConfig: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig seed: int + speechConfig: GoogleCloudAiplatformV1beta1SpeechConfig stopSequences: _list[str] temperature: float topK: float @@ -3001,7 +3231,8 @@ class GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId( @typing.type_check_only class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval( typing_extensions.TypedDict, total=False -): ... +): + dynamicRetrievalConfig: GoogleCloudAiplatformV1beta1DynamicRetrievalConfig @typing.type_check_only class GoogleCloudAiplatformV1beta1GroundednessInput( @@ -3042,6 +3273,7 @@ class GoogleCloudAiplatformV1beta1GroundingChunk( class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext( typing_extensions.TypedDict, total=False ): + text: str title: str uri: str @@ -3058,6 +3290,7 @@ class GoogleCloudAiplatformV1beta1GroundingMetadata( ): groundingChunks: _list[GoogleCloudAiplatformV1beta1GroundingChunk] groundingSupports: _list[GoogleCloudAiplatformV1beta1GroundingSupport] + retrievalMetadata: GoogleCloudAiplatformV1beta1RetrievalMetadata retrievalQueries: _list[str] searchEntryPoint: GoogleCloudAiplatformV1beta1SearchEntryPoint webSearchQueries: _list[str] @@ -3205,6 +3438,7 @@ class GoogleCloudAiplatformV1beta1ImportRagFilesConfig( partialFailureGcsSink: GoogleCloudAiplatformV1beta1GcsDestination ragFileChunkingConfig: GoogleCloudAiplatformV1beta1RagFileChunkingConfig ragFileParsingConfig: GoogleCloudAiplatformV1beta1RagFileParsingConfig + ragFileTransformationConfig: GoogleCloudAiplatformV1beta1RagFileTransformationConfig sharePointSources: GoogleCloudAiplatformV1beta1SharePointSources slackSource: GoogleCloudAiplatformV1beta1SlackSource @@ -3510,6 +3744,20 @@ class GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse( featureGroups: _list[GoogleCloudAiplatformV1beta1FeatureGroup] nextPageToken: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListFeatureMonitorJobsResponse( + typing_extensions.TypedDict, total=False +): + featureMonitorJobs: _list[GoogleCloudAiplatformV1beta1FeatureMonitorJob] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListFeatureMonitorsResponse( + typing_extensions.TypedDict, total=False +): + featureMonitors: _list[GoogleCloudAiplatformV1beta1FeatureMonitor] + nextPageToken: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse( typing_extensions.TypedDict, total=False @@ -3837,6 +4085,7 @@ class GoogleCloudAiplatformV1beta1MachineSpec(typing_extensions.TypedDict, total "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", @@ -3911,6 +4160,38 @@ class GoogleCloudAiplatformV1beta1MetadataStoreMetadataStoreState( ): diskUtilizationBytes: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1MetricxInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1beta1MetricxInstance + metricSpec: GoogleCloudAiplatformV1beta1MetricxSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1MetricxInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + source: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1MetricxResult( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1MetricxSpec(typing_extensions.TypedDict, total=False): + sourceLanguage: str + targetLanguage: str + version: typing_extensions.Literal[ + "METRICX_VERSION_UNSPECIFIED", + "METRICX_24_REF", + "METRICX_24_SRC", + "METRICX_24_SRC_REF", + ] + @typing.type_check_only class GoogleCloudAiplatformV1beta1MigratableResource( typing_extensions.TypedDict, total=False @@ -4083,6 +4364,7 @@ class GoogleCloudAiplatformV1beta1ModelContainerSpec( healthProbe: GoogleCloudAiplatformV1beta1Probe healthRoute: str imageUri: str + livenessProbe: GoogleCloudAiplatformV1beta1Probe ports: _list[GoogleCloudAiplatformV1beta1Port] predictRoute: str sharedMemorySizeMb: str @@ -5015,6 +5297,9 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( typing_extensions.TypedDict, total=False ): createTime: str + customEnvironmentSpec: ( + GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec + ) dataformRepositorySource: ( GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource ) @@ -5041,6 +5326,7 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( "JOB_STATE_UPDATING", "JOB_STATE_PARTIALLY_SUCCEEDED", ] + kernelName: str labels: dict[str, typing.Any] name: str notebookRuntimeTemplateResourceName: str @@ -5048,6 +5334,15 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( serviceAccount: str status: GoogleRpcStatus updateTime: str + workbenchRuntime: GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec( + typing_extensions.TypedDict, total=False +): + machineSpec: GoogleCloudAiplatformV1beta1MachineSpec + networkSpec: GoogleCloudAiplatformV1beta1NetworkSpec + persistentDiskSpec: GoogleCloudAiplatformV1beta1PersistentDiskSpec @typing.type_check_only class GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource( @@ -5069,6 +5364,11 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource( generation: str uri: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1NotebookExecutionJobWorkbenchRuntime( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig( typing_extensions.TypedDict, total=False @@ -5081,9 +5381,11 @@ class GoogleCloudAiplatformV1beta1NotebookRuntime( typing_extensions.TypedDict, total=False ): createTime: str + dataPersistentDiskSpec: GoogleCloudAiplatformV1beta1PersistentDiskSpec description: str displayName: str encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec + eucConfig: GoogleCloudAiplatformV1beta1NotebookEucConfig expirationTime: str healthState: typing_extensions.Literal[ "HEALTH_STATE_UNSPECIFIED", "HEALTHY", "UNHEALTHY" @@ -5091,7 +5393,9 @@ class GoogleCloudAiplatformV1beta1NotebookRuntime( idleShutdownConfig: GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig isUpgradable: bool labels: dict[str, typing.Any] + machineSpec: GoogleCloudAiplatformV1beta1MachineSpec name: str + networkSpec: GoogleCloudAiplatformV1beta1NetworkSpec networkTags: _list[str] notebookRuntimeTemplateRef: GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef notebookRuntimeType: typing_extensions.Literal[ @@ -5112,6 +5416,7 @@ class GoogleCloudAiplatformV1beta1NotebookRuntime( satisfiesPzi: bool satisfiesPzs: bool serviceAccount: str + shieldedVmConfig: GoogleCloudAiplatformV1beta1ShieldedVmConfig updateTime: str version: str @@ -5251,13 +5556,24 @@ class GoogleCloudAiplatformV1beta1PairwiseSummarizationQualitySpec( @typing.type_check_only class GoogleCloudAiplatformV1beta1Part(typing_extensions.TypedDict, total=False): + codeExecutionResult: GoogleCloudAiplatformV1beta1CodeExecutionResult + executableCode: GoogleCloudAiplatformV1beta1ExecutableCode fileData: GoogleCloudAiplatformV1beta1FileData functionCall: GoogleCloudAiplatformV1beta1FunctionCall functionResponse: GoogleCloudAiplatformV1beta1FunctionResponse inlineData: GoogleCloudAiplatformV1beta1Blob text: str + thought: bool videoMetadata: GoogleCloudAiplatformV1beta1VideoMetadata +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PartnerModelTuningSpec( + typing_extensions.TypedDict, total=False +): + hyperParameters: dict[str, typing.Any] + trainingDatasetUri: str + validationDatasetUri: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest( typing_extensions.TypedDict, total=False @@ -5320,6 +5636,7 @@ class GoogleCloudAiplatformV1beta1PipelineJob(typing_extensions.TypedDict, total pipelineSpec: dict[str, typing.Any] pipelineTaskRerunConfigs: _list[GoogleCloudAiplatformV1beta1PipelineTaskRerunConfig] preflightValidations: bool + pscInterfaceConfig: GoogleCloudAiplatformV1beta1PscInterfaceConfig reservedIpRanges: _list[str] runtimeConfig: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig satisfiesPzi: bool @@ -5354,6 +5671,7 @@ class GoogleCloudAiplatformV1beta1PipelineJobDetail( class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig( typing_extensions.TypedDict, total=False ): + defaultRuntime: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime failurePolicy: typing_extensions.Literal[ "PIPELINE_FAILURE_POLICY_UNSPECIFIED", "PIPELINE_FAILURE_POLICY_FAIL_SLOW", @@ -5364,12 +5682,30 @@ class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig( parameterValues: dict[str, typing.Any] parameters: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigDefaultRuntime( + typing_extensions.TypedDict, total=False +): + persistentResourceRuntimeDetail: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail + @typing.type_check_only class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigInputArtifact( typing_extensions.TypedDict, total=False ): artifactId: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail( + typing_extensions.TypedDict, total=False +): + persistentResourceName: str + taskResourceUnavailableTimeoutBehavior: typing_extensions.Literal[ + "TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED", + "FAIL", + "FALL_BACK_TO_ON_DEMAND", + ] + taskResourceUnavailableWaitTimeMs: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1PipelineTaskDetail( typing_extensions.TypedDict, total=False @@ -5512,6 +5848,12 @@ class GoogleCloudAiplatformV1beta1PointwiseMetricSpec( class GoogleCloudAiplatformV1beta1Port(typing_extensions.TypedDict, total=False): containerPort: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig( + typing_extensions.TypedDict, total=False +): + voiceName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1PredefinedSplit( typing_extensions.TypedDict, total=False @@ -5523,6 +5865,13 @@ class GoogleCloudAiplatformV1beta1PredictLongRunningMetadata( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PredictLongRunningRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[typing.Any] + parameters: typing.Any + @typing.type_check_only class GoogleCloudAiplatformV1beta1PredictLongRunningResponse( typing_extensions.TypedDict, total=False @@ -5591,7 +5940,10 @@ class GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig( @typing.type_check_only class GoogleCloudAiplatformV1beta1Probe(typing_extensions.TypedDict, total=False): exec: GoogleCloudAiplatformV1beta1ProbeExecAction + grpc: GoogleCloudAiplatformV1beta1ProbeGrpcAction + httpGet: GoogleCloudAiplatformV1beta1ProbeHttpGetAction periodSeconds: int + tcpSocket: GoogleCloudAiplatformV1beta1ProbeTcpSocketAction timeoutSeconds: int @typing.type_check_only @@ -5600,6 +5952,37 @@ class GoogleCloudAiplatformV1beta1ProbeExecAction( ): command: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ProbeGrpcAction( + typing_extensions.TypedDict, total=False +): + port: int + service: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ProbeHttpGetAction( + typing_extensions.TypedDict, total=False +): + host: str + httpHeaders: _list[GoogleCloudAiplatformV1beta1ProbeHttpHeader] + path: str + port: int + scheme: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ProbeHttpHeader( + typing_extensions.TypedDict, total=False +): + name: str + value: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ProbeTcpSocketAction( + typing_extensions.TypedDict, total=False +): + host: str + port: int + @typing.type_check_only class GoogleCloudAiplatformV1beta1PscAutomatedEndpoints( typing_extensions.TypedDict, total=False @@ -5875,6 +6258,7 @@ class GoogleCloudAiplatformV1beta1QueryExtensionResponse( class GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest( typing_extensions.TypedDict, total=False ): + classMethod: str input: dict[str, typing.Any] @typing.type_check_only @@ -6016,6 +6400,8 @@ class GoogleCloudAiplatformV1beta1RagContextsContext( typing_extensions.TypedDict, total=False ): distance: float + score: float + sourceDisplayName: str sourceUri: str sparseDistance: float text: str @@ -6030,6 +6416,8 @@ class GoogleCloudAiplatformV1beta1RagCorpus(typing_extensions.TypedDict, total=F ragEmbeddingModelConfig: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig ragVectorDbConfig: GoogleCloudAiplatformV1beta1RagVectorDbConfig updateTime: str + vectorDbConfig: GoogleCloudAiplatformV1beta1RagVectorDbConfig + vertexAiSearchConfig: GoogleCloudAiplatformV1beta1VertexAiSearchConfig @typing.type_check_only class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig( @@ -6097,6 +6485,16 @@ class GoogleCloudAiplatformV1beta1RagFile(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudAiplatformV1beta1RagFileChunkingConfig( typing_extensions.TypedDict, total=False +): + chunkOverlap: int + chunkSize: int + fixedLengthChunking: ( + GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking + ) + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagFileChunkingConfigFixedLengthChunking( + typing_extensions.TypedDict, total=False ): chunkOverlap: int chunkSize: int @@ -6104,11 +6502,42 @@ class GoogleCloudAiplatformV1beta1RagFileChunkingConfig( @typing.type_check_only class GoogleCloudAiplatformV1beta1RagFileParsingConfig( typing_extensions.TypedDict, total=False +): + advancedParser: GoogleCloudAiplatformV1beta1RagFileParsingConfigAdvancedParser + layoutParser: GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser + llmParser: GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser + useAdvancedPdfParsing: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagFileParsingConfigAdvancedParser( + typing_extensions.TypedDict, total=False ): useAdvancedPdfParsing: bool +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagFileParsingConfigLayoutParser( + typing_extensions.TypedDict, total=False +): + maxParsingRequestsPerMin: int + processorName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser( + typing_extensions.TypedDict, total=False +): + customParsingPrompt: str + maxParsingRequestsPerMin: int + modelName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagFileTransformationConfig( + typing_extensions.TypedDict, total=False +): + ragFileChunkingConfig: GoogleCloudAiplatformV1beta1RagFileChunkingConfig + @typing.type_check_only class GoogleCloudAiplatformV1beta1RagQuery(typing_extensions.TypedDict, total=False): + ragRetrievalConfig: GoogleCloudAiplatformV1beta1RagRetrievalConfig ranking: GoogleCloudAiplatformV1beta1RagQueryRanking similarityTopK: int text: str @@ -6120,26 +6549,69 @@ class GoogleCloudAiplatformV1beta1RagQueryRanking( alpha: float @typing.type_check_only -class GoogleCloudAiplatformV1beta1RagVectorDbConfig( +class GoogleCloudAiplatformV1beta1RagRetrievalConfig( typing_extensions.TypedDict, total=False ): - apiAuth: GoogleCloudAiplatformV1beta1ApiAuth - pinecone: GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone - ragManagedDb: GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb - vertexFeatureStore: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore - vertexVectorSearch: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch - weaviate: GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate + filter: GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter + hybridSearch: GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch + ranking: GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking + topK: int @typing.type_check_only -class GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone( +class GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter( typing_extensions.TypedDict, total=False ): - indexName: str + metadataFilter: str + vectorDistanceThreshold: float + vectorSimilarityThreshold: float @typing.type_check_only -class GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb( +class GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch( typing_extensions.TypedDict, total=False -): ... +): + alpha: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking( + typing_extensions.TypedDict, total=False +): + llmRanker: GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker + rankService: GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker( + typing_extensions.TypedDict, total=False +): + modelName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService( + typing_extensions.TypedDict, total=False +): + modelName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagVectorDbConfig( + typing_extensions.TypedDict, total=False +): + apiAuth: GoogleCloudAiplatformV1beta1ApiAuth + pinecone: GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone + ragEmbeddingModelConfig: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig + ragManagedDb: GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb + vertexFeatureStore: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore + vertexVectorSearch: GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexVectorSearch + weaviate: GoogleCloudAiplatformV1beta1RagVectorDbConfigWeaviate + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagVectorDbConfigPinecone( + typing_extensions.TypedDict, total=False +): + indexName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagVectorDbConfigRagManagedDb( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleCloudAiplatformV1beta1RagVectorDbConfigVertexFeatureStore( @@ -6181,6 +6653,7 @@ class GoogleCloudAiplatformV1beta1RayMetricSpec( class GoogleCloudAiplatformV1beta1RaySpec(typing_extensions.TypedDict, total=False): headNodeResourcePoolId: str imageUri: str + nfsMounts: _list[GoogleCloudAiplatformV1beta1NfsMount] rayLogsSpec: GoogleCloudAiplatformV1beta1RayLogsSpec rayMetricSpec: GoogleCloudAiplatformV1beta1RayMetricSpec resourcePoolImages: dict[str, typing.Any] @@ -6457,6 +6930,19 @@ class GoogleCloudAiplatformV1beta1Retrieval(typing_extensions.TypedDict, total=F vertexAiSearch: GoogleCloudAiplatformV1beta1VertexAISearch vertexRagStore: GoogleCloudAiplatformV1beta1VertexRagStore +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RetrievalConfig( + typing_extensions.TypedDict, total=False +): + languageCode: str + latLng: GoogleTypeLatLng + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RetrievalMetadata( + typing_extensions.TypedDict, total=False +): + googleSearchDynamicRetrievalScore: float + @typing.type_check_only class GoogleCloudAiplatformV1beta1RetrieveContextsRequest( typing_extensions.TypedDict, total=False @@ -6701,6 +7187,12 @@ class GoogleCloudAiplatformV1beta1Schedule(typing_extensions.TypedDict, total=Fa ] updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ScheduleConfig( + typing_extensions.TypedDict, total=False +): + cron: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ScheduleRunResponse( typing_extensions.TypedDict, total=False @@ -7174,6 +7666,26 @@ class GoogleCloudAiplatformV1beta1SchemaPredictInstanceVideoObjectTrackingPredic timeSegmentEnd: str timeSegmentStart: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfig( + typing_extensions.TypedDict, total=False +): + disableAttribution: bool + sources: _list[ + GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfigSourceEntry + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfigSourceEntry( + typing_extensions.TypedDict, total=False +): + enterpriseDatastore: str + inlineContext: str + type: typing_extensions.Literal[ + "UNSPECIFIED", "WEB", "ENTERPRISE", "VERTEX_AI_SEARCH", "INLINE" + ] + vertexAiSearchDatastore: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1SchemaPredictParamsImageClassificationPredictionParams( typing_extensions.TypedDict, total=False @@ -7376,6 +7888,132 @@ class GoogleCloudAiplatformV1beta1SchemaPredictionResultError( "DATA_LOSS", ] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptApiSchema( + typing_extensions.TypedDict, total=False +): + apiSchemaVersion: str + executions: _list[GoogleCloudAiplatformV1beta1SchemaPromptInstancePromptExecution] + multimodalPrompt: GoogleCloudAiplatformV1beta1SchemaPromptSpecMultimodalPrompt + structuredPrompt: GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt + translationPrompt: GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptInstancePromptExecution( + typing_extensions.TypedDict, total=False +): + arguments: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptInstanceVariableValue( + typing_extensions.TypedDict, total=False +): + partList: GoogleCloudAiplatformV1beta1SchemaPromptSpecPartList + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecMultimodalPrompt( + typing_extensions.TypedDict, total=False +): + promptMessage: GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecPartList( + typing_extensions.TypedDict, total=False +): + parts: _list[GoogleCloudAiplatformV1beta1Part] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudAiplatformV1beta1Content] + generationConfig: GoogleCloudAiplatformV1beta1GenerationConfig + model: str + safetySettings: _list[GoogleCloudAiplatformV1beta1SafetySetting] + systemInstruction: GoogleCloudAiplatformV1beta1Content + toolConfig: GoogleCloudAiplatformV1beta1ToolConfig + tools: _list[GoogleCloudAiplatformV1beta1Tool] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair( + typing_extensions.TypedDict, total=False +): + sourceSentence: str + targetSentence: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList( + typing_extensions.TypedDict, total=False +): + referenceSentencePairs: _list[ + GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePair + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecStructuredPrompt( + typing_extensions.TypedDict, total=False +): + context: GoogleCloudAiplatformV1beta1Content + examples: _list[GoogleCloudAiplatformV1beta1SchemaPromptSpecPartList] + infillPrefix: str + infillSuffix: str + inputPrefixes: _list[str] + outputPrefixes: _list[str] + predictionInputs: _list[GoogleCloudAiplatformV1beta1SchemaPromptSpecPartList] + promptMessage: GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample( + typing_extensions.TypedDict, total=False +): + referenceSentencePairLists: _list[ + GoogleCloudAiplatformV1beta1SchemaPromptSpecReferenceSentencePairList + ] + referenceSentencesFileInputs: _list[ + GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource( + typing_extensions.TypedDict, total=False +): + content: str + displayName: str + mimeType: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource( + typing_extensions.TypedDict, total=False +): + inputUri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption( + typing_extensions.TypedDict, total=False +): + numberOfShots: int + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationPrompt( + typing_extensions.TypedDict, total=False +): + example: GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationExample + option: GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationOption + promptMessage: GoogleCloudAiplatformV1beta1SchemaPromptSpecPromptMessage + sourceLanguageCode: str + targetLanguageCode: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationSentenceFileInput( + typing_extensions.TypedDict, total=False +): + fileInputSource: ( + GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationFileInputSource + ) + gcsInputSource: ( + GoogleCloudAiplatformV1beta1SchemaPromptSpecTranslationGcsInputSource + ) + @typing.type_check_only class GoogleCloudAiplatformV1beta1SchemaTablesDatasetMetadata( typing_extensions.TypedDict, total=False @@ -7431,6 +8069,29 @@ class GoogleCloudAiplatformV1beta1SchemaTextExtractionAnnotation( displayName: str textSegment: GoogleCloudAiplatformV1beta1SchemaTextSegment +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SchemaTextPromptDatasetMetadata( + typing_extensions.TypedDict, total=False +): + candidateCount: str + gcsUri: str + groundingConfig: GoogleCloudAiplatformV1beta1SchemaPredictParamsGroundingConfig + hasPromptVariable: bool + logprobs: bool + maxOutputTokens: str + note: str + promptApiSchema: GoogleCloudAiplatformV1beta1SchemaPromptApiSchema + promptType: str + seedEnabled: bool + seedValue: str + stopSequences: _list[str] + systemInstruction: str + systemInstructionGcsUri: str + temperature: float + text: str + topK: str + topP: float + @typing.type_check_only class GoogleCloudAiplatformV1beta1SchemaTextSegment( typing_extensions.TypedDict, total=False @@ -8416,6 +9077,12 @@ class GoogleCloudAiplatformV1beta1SpecialistPool( specialistManagersCount: int specialistWorkerEmails: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SpeechConfig( + typing_extensions.TypedDict, total=False +): + voiceConfig: GoogleCloudAiplatformV1beta1VoiceConfig + @typing.type_check_only class GoogleCloudAiplatformV1beta1StartNotebookRuntimeOperationMetadata( typing_extensions.TypedDict, total=False @@ -8428,6 +9095,11 @@ class GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1StopNotebookRuntimeRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1StopTrialRequest( typing_extensions.TypedDict, total=False @@ -8442,6 +9114,13 @@ class GoogleCloudAiplatformV1beta1StratifiedSplit( trainingFraction: float validationFraction: float +@typing.type_check_only +class GoogleCloudAiplatformV1beta1StreamQueryReasoningEngineRequest( + typing_extensions.TypedDict, total=False +): + classMethod: str + input: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudAiplatformV1beta1StreamRawPredictRequest( typing_extensions.TypedDict, total=False @@ -8830,6 +9509,7 @@ class GoogleCloudAiplatformV1beta1SupervisedHyperParameters( class GoogleCloudAiplatformV1beta1SupervisedTuningDataStats( typing_extensions.TypedDict, total=False ): + droppedExampleReasons: _list[str] totalBillableCharacterCount: str totalBillableTokenCount: str totalTruncatedExampleCount: str @@ -9057,10 +9737,17 @@ class GoogleCloudAiplatformV1beta1TokensInfo(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudAiplatformV1beta1Tool(typing_extensions.TypedDict, total=False): + codeExecution: GoogleCloudAiplatformV1beta1ToolCodeExecution functionDeclarations: _list[GoogleCloudAiplatformV1beta1FunctionDeclaration] + googleSearch: GoogleCloudAiplatformV1beta1ToolGoogleSearch googleSearchRetrieval: GoogleCloudAiplatformV1beta1GoogleSearchRetrieval retrieval: GoogleCloudAiplatformV1beta1Retrieval +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ToolCall(typing_extensions.TypedDict, total=False): + toolInput: str + toolName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ToolCallValidInput( typing_extensions.TypedDict, total=False @@ -9094,9 +9781,20 @@ class GoogleCloudAiplatformV1beta1ToolCallValidSpec( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ToolCodeExecution( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1ToolConfig(typing_extensions.TypedDict, total=False): functionCallingConfig: GoogleCloudAiplatformV1beta1FunctionCallingConfig + retrievalConfig: GoogleCloudAiplatformV1beta1RetrievalConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ToolGoogleSearch( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleCloudAiplatformV1beta1ToolNameMatchInput( @@ -9255,6 +9953,208 @@ class GoogleCloudAiplatformV1beta1TrainingPipeline( trainingTaskMetadata: typing.Any updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1Trajectory(typing_extensions.TypedDict, total=False): + toolCalls: _list[GoogleCloudAiplatformV1beta1ToolCall] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryAnyOrderMatchMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryAnyOrderMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryExactMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectoryExactMatchInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectoryExactMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryExactMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryExactMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryExactMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryExactMatchMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectoryExactMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryExactMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchResults( + typing_extensions.TypedDict, total=False +): + trajectoryInOrderMatchMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryInOrderMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryPrecisionInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectoryPrecisionInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectoryPrecisionSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryPrecisionInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryPrecisionMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryPrecisionResults( + typing_extensions.TypedDict, total=False +): + trajectoryPrecisionMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectoryPrecisionMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryPrecisionSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryRecallInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectoryRecallInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectoryRecallSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryRecallInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + referenceTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryRecallMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryRecallResults( + typing_extensions.TypedDict, total=False +): + trajectoryRecallMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectoryRecallMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectoryRecallSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInstance] + metricSpec: GoogleCloudAiplatformV1beta1TrajectorySingleToolUseSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseInstance( + typing_extensions.TypedDict, total=False +): + predictedTrajectory: GoogleCloudAiplatformV1beta1Trajectory + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseResults( + typing_extensions.TypedDict, total=False +): + trajectorySingleToolUseMetricValues: _list[ + GoogleCloudAiplatformV1beta1TrajectorySingleToolUseMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1TrajectorySingleToolUseSpec( + typing_extensions.TypedDict, total=False +): + toolName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1Trial(typing_extensions.TypedDict, total=False): clientId: str @@ -9323,7 +10223,9 @@ class GoogleCloudAiplatformV1beta1TuningJob(typing_extensions.TypedDict, total=F experiment: str labels: dict[str, typing.Any] name: str + partnerModelTuningSpec: GoogleCloudAiplatformV1beta1PartnerModelTuningSpec pipelineJob: str + serviceAccount: str startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -9400,6 +10302,12 @@ class GoogleCloudAiplatformV1beta1UpdateDeploymentResourcePoolOperationMetadata( ): genericMetadata: GoogleCloudAiplatformV1beta1GenericOperationMetadata +@typing.type_check_only +class GoogleCloudAiplatformV1beta1UpdateEndpointLongRunningRequest( + typing_extensions.TypedDict, total=False +): + endpoint: GoogleCloudAiplatformV1beta1Endpoint + @typing.type_check_only class GoogleCloudAiplatformV1beta1UpdateExplanationDatasetOperationMetadata( typing_extensions.TypedDict, total=False @@ -9527,6 +10435,7 @@ class GoogleCloudAiplatformV1beta1UploadRagFileConfig( typing_extensions.TypedDict, total=False ): ragFileChunkingConfig: GoogleCloudAiplatformV1beta1RagFileChunkingConfig + ragFileTransformationConfig: GoogleCloudAiplatformV1beta1RagFileTransformationConfig @typing.type_check_only class GoogleCloudAiplatformV1beta1UploadRagFileRequest( @@ -9574,12 +10483,19 @@ class GoogleCloudAiplatformV1beta1VertexAISearch( ): datastore: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1VertexAiSearchConfig( + typing_extensions.TypedDict, total=False +): + servingConfig: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1VertexRagStore( typing_extensions.TypedDict, total=False ): ragCorpora: _list[str] ragResources: _list[GoogleCloudAiplatformV1beta1VertexRagStoreRagResource] + ragRetrievalConfig: GoogleCloudAiplatformV1beta1RagRetrievalConfig similarityTopK: int vectorDistanceThreshold: float @@ -9597,6 +10513,10 @@ class GoogleCloudAiplatformV1beta1VideoMetadata( endOffset: str startOffset: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1VoiceConfig(typing_extensions.TypedDict, total=False): + prebuiltVoiceConfig: GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig + @typing.type_check_only class GoogleCloudAiplatformV1beta1WorkerPoolSpec( typing_extensions.TypedDict, total=False @@ -9753,6 +10673,11 @@ class GoogleTypeInterval(typing_extensions.TypedDict, total=False): endTime: str startTime: str +@typing.type_check_only +class GoogleTypeLatLng(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + @typing.type_check_only class GoogleTypeMoney(typing_extensions.TypedDict, total=False): currencyCode: str diff --git a/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi index 811e98b7..36cc511f 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi @@ -243,6 +243,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): validateOnly: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def export( + self, + *, + name: str, + body: ExportClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def get( self, *, diff --git a/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi index c8eaaa20..49675b10 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi @@ -48,6 +48,7 @@ class Backup(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "READY", "CREATING", "FAILED", "DELETING" ] + tags: dict[str, typing.Any] type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "ON_DEMAND", "AUTOMATED", "CONTINUOUS" ] @@ -128,6 +129,7 @@ class Cluster(typing_extensions.TypedDict, total=False): subscriptionType: typing_extensions.Literal[ "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" ] + tags: dict[str, typing.Any] trialMetadata: TrialMetadata uid: str updateTime: str @@ -194,6 +196,13 @@ class ContinuousBackupSource(typing_extensions.TypedDict, total=False): cluster: str pointInTime: str +@typing.type_check_only +class CsvExportOptions(typing_extensions.TypedDict, total=False): + escapeCharacter: str + fieldDelimiter: str + quoteCharacter: str + selectQuery: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -208,11 +217,26 @@ class EncryptionInfo(typing_extensions.TypedDict, total=False): ] kmsKeyVersions: _list[str] +@typing.type_check_only +class ExportClusterRequest(typing_extensions.TypedDict, total=False): + csvExportOptions: CsvExportOptions + database: str + gcsDestination: GcsDestination + sqlExportOptions: SqlExportOptions + +@typing.type_check_only +class ExportClusterResponse(typing_extensions.TypedDict, total=False): + gcsDestination: GcsDestination + @typing.type_check_only class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): requestId: str validateOnly: bool +@typing.type_check_only +class GcsDestination(typing_extensions.TypedDict, total=False): + uri: str + @typing.type_check_only class GoogleCloudLocationListLocationsResponse( typing_extensions.TypedDict, total=False @@ -468,6 +492,13 @@ class RestoreClusterRequest(typing_extensions.TypedDict, total=False): class SecondaryConfig(typing_extensions.TypedDict, total=False): primaryClusterName: str +@typing.type_check_only +class SqlExportOptions(typing_extensions.TypedDict, total=False): + cleanTargetObjects: bool + ifExistTargetObjects: bool + schemaOnly: bool + tables: _list[str] + @typing.type_check_only class SslConfig(typing_extensions.TypedDict, total=False): caSource: typing_extensions.Literal["CA_SOURCE_UNSPECIFIED", "CA_SOURCE_MANAGED"] @@ -695,6 +726,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -734,6 +767,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "STATE_OTHER", ] customMetadata: StorageDatabasecenterPartnerapiV1mainCustomMetadataData + edition: typing_extensions.Literal[ + "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", "EDITION_ENTERPRISE_PLUS" + ] entitlements: _list[StorageDatabasecenterPartnerapiV1mainEntitlement] expectedState: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -759,6 +795,7 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( location: str machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId + primaryResourceLocation: str product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str @@ -859,6 +896,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] @typing.type_check_only @@ -887,6 +926,7 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( cpuCount: int memorySizeInBytes: str shardCount: int + vcpuCount: float @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( @@ -927,11 +967,17 @@ class StorageDatabasecenterPartnerapiV1mainOperationError( class StorageDatabasecenterPartnerapiV1mainRetentionSettings( typing_extensions.TypedDict, total=False ): + durationBasedRetention: str quantityBasedRetention: int retentionUnit: typing_extensions.Literal[ - "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", "RETENTION_UNIT_OTHER" + "RETENTION_UNIT_UNSPECIFIED", + "COUNT", + "TIME", + "DURATION", + "RETENTION_UNIT_OTHER", ] timeBasedRetention: str + timestampBasedRetentionTime: str @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainTags( diff --git a/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi index 811e98b7..dee167e9 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi @@ -243,6 +243,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): validateOnly: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def export( + self, + *, + name: str, + body: ExportClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def get( self, *, @@ -294,6 +301,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): body: RestoreClusterRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def restoreFromCloudSQL( + self, + *, + parent: str, + body: RestoreFromCloudSQLRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def switchover( self, *, diff --git a/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi index f9551283..71bb7498 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi @@ -49,6 +49,7 @@ class Backup(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "READY", "CREATING", "FAILED", "DELETING" ] + tags: dict[str, typing.Any] type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "ON_DEMAND", "AUTOMATED", "CONTINUOUS" ] @@ -138,6 +139,7 @@ class Cluster(typing_extensions.TypedDict, total=False): subscriptionType: typing_extensions.Literal[ "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" ] + tags: dict[str, typing.Any] trialMetadata: TrialMetadata uid: str updateTime: str @@ -206,6 +208,13 @@ class ContinuousBackupSource(typing_extensions.TypedDict, total=False): cluster: str pointInTime: str +@typing.type_check_only +class CsvExportOptions(typing_extensions.TypedDict, total=False): + escapeCharacter: str + fieldDelimiter: str + quoteCharacter: str + selectQuery: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -220,11 +229,22 @@ class EncryptionInfo(typing_extensions.TypedDict, total=False): ] kmsKeyVersions: _list[str] +@typing.type_check_only +class ExportClusterRequest(typing_extensions.TypedDict, total=False): + csvExportOptions: CsvExportOptions + database: str + gcsDestination: GcsDestination + sqlExportOptions: SqlExportOptions + @typing.type_check_only class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): requestId: str validateOnly: bool +@typing.type_check_only +class GcsDestination(typing_extensions.TypedDict, total=False): + uri: str + @typing.type_check_only class GeminiClusterConfig(typing_extensions.TypedDict, total=False): entitled: bool @@ -458,13 +478,19 @@ class PromoteClusterRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): pscEnabled: bool + serviceOwnedProjectNumber: str @typing.type_check_only class PscInstanceConfig(typing_extensions.TypedDict, total=False): allowedConsumerProjects: _list[str] pscDnsName: str + pscInterfaceConfigs: _list[PscInterfaceConfig] serviceAttachmentLink: str +@typing.type_check_only +class PscInterfaceConfig(typing_extensions.TypedDict, total=False): + networkAttachmentResource: str + @typing.type_check_only class QuantityBasedExpiry(typing_extensions.TypedDict, total=False): retentionCount: int @@ -500,10 +526,23 @@ class RestoreClusterRequest(typing_extensions.TypedDict, total=False): requestId: str validateOnly: bool +@typing.type_check_only +class RestoreFromCloudSQLRequest(typing_extensions.TypedDict, total=False): + cloudsqlBackupRunSource: CloudSQLBackupRunSource + cluster: Cluster + clusterId: str + @typing.type_check_only class SecondaryConfig(typing_extensions.TypedDict, total=False): primaryClusterName: str +@typing.type_check_only +class SqlExportOptions(typing_extensions.TypedDict, total=False): + cleanTargetObjects: bool + ifExistTargetObjects: bool + schemaOnly: bool + tables: _list[str] + @typing.type_check_only class SslConfig(typing_extensions.TypedDict, total=False): caSource: typing_extensions.Literal["CA_SOURCE_UNSPECIFIED", "CA_SOURCE_MANAGED"] @@ -731,6 +770,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -770,6 +811,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "STATE_OTHER", ] customMetadata: StorageDatabasecenterPartnerapiV1mainCustomMetadataData + edition: typing_extensions.Literal[ + "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", "EDITION_ENTERPRISE_PLUS" + ] entitlements: _list[StorageDatabasecenterPartnerapiV1mainEntitlement] expectedState: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -795,6 +839,7 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( location: str machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId + primaryResourceLocation: str product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str @@ -895,6 +940,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] @typing.type_check_only @@ -923,6 +970,7 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( cpuCount: int memorySizeInBytes: str shardCount: int + vcpuCount: float @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( @@ -963,11 +1011,17 @@ class StorageDatabasecenterPartnerapiV1mainOperationError( class StorageDatabasecenterPartnerapiV1mainRetentionSettings( typing_extensions.TypedDict, total=False ): + durationBasedRetention: str quantityBasedRetention: int retentionUnit: typing_extensions.Literal[ - "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", "RETENTION_UNIT_OTHER" + "RETENTION_UNIT_UNSPECIFIED", + "COUNT", + "TIME", + "DURATION", + "RETENTION_UNIT_OTHER", ] timeBasedRetention: str + timestampBasedRetentionTime: str @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainTags( diff --git a/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi index 471452fa..7514e528 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi @@ -243,6 +243,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): validateOnly: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def export( + self, + *, + name: str, + body: ExportClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def get( self, *, @@ -294,6 +301,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): body: RestoreClusterRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def restoreFromCloudSQL( + self, + *, + parent: str, + body: RestoreFromCloudSQLRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def switchover( self, *, diff --git a/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi index 0e9ea1b0..7319321b 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi @@ -48,6 +48,7 @@ class Backup(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "READY", "CREATING", "FAILED", "DELETING" ] + tags: dict[str, typing.Any] type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "ON_DEMAND", "AUTOMATED", "CONTINUOUS" ] @@ -133,6 +134,7 @@ class Cluster(typing_extensions.TypedDict, total=False): subscriptionType: typing_extensions.Literal[ "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" ] + tags: dict[str, typing.Any] trialMetadata: TrialMetadata uid: str updateTime: str @@ -201,6 +203,13 @@ class ContinuousBackupSource(typing_extensions.TypedDict, total=False): cluster: str pointInTime: str +@typing.type_check_only +class CsvExportOptions(typing_extensions.TypedDict, total=False): + escapeCharacter: str + fieldDelimiter: str + quoteCharacter: str + selectQuery: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -215,11 +224,22 @@ class EncryptionInfo(typing_extensions.TypedDict, total=False): ] kmsKeyVersions: _list[str] +@typing.type_check_only +class ExportClusterRequest(typing_extensions.TypedDict, total=False): + csvExportOptions: CsvExportOptions + database: str + gcsDestination: GcsDestination + sqlExportOptions: SqlExportOptions + @typing.type_check_only class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): requestId: str validateOnly: bool +@typing.type_check_only +class GcsDestination(typing_extensions.TypedDict, total=False): + uri: str + @typing.type_check_only class GeminiClusterConfig(typing_extensions.TypedDict, total=False): entitled: bool @@ -494,10 +514,23 @@ class RestoreClusterRequest(typing_extensions.TypedDict, total=False): requestId: str validateOnly: bool +@typing.type_check_only +class RestoreFromCloudSQLRequest(typing_extensions.TypedDict, total=False): + cloudsqlBackupRunSource: CloudSQLBackupRunSource + cluster: Cluster + clusterId: str + @typing.type_check_only class SecondaryConfig(typing_extensions.TypedDict, total=False): primaryClusterName: str +@typing.type_check_only +class SqlExportOptions(typing_extensions.TypedDict, total=False): + cleanTargetObjects: bool + ifExistTargetObjects: bool + schemaOnly: bool + tables: _list[str] + @typing.type_check_only class SslConfig(typing_extensions.TypedDict, total=False): caSource: typing_extensions.Literal["CA_SOURCE_UNSPECIFIED", "CA_SOURCE_MANAGED"] @@ -725,6 +758,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -764,6 +799,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "STATE_OTHER", ] customMetadata: StorageDatabasecenterPartnerapiV1mainCustomMetadataData + edition: typing_extensions.Literal[ + "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", "EDITION_ENTERPRISE_PLUS" + ] entitlements: _list[StorageDatabasecenterPartnerapiV1mainEntitlement] expectedState: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -789,6 +827,7 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( location: str machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId + primaryResourceLocation: str product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str @@ -889,6 +928,8 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] @typing.type_check_only @@ -917,6 +958,7 @@ class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( cpuCount: int memorySizeInBytes: str shardCount: int + vcpuCount: float @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( @@ -957,11 +999,17 @@ class StorageDatabasecenterPartnerapiV1mainOperationError( class StorageDatabasecenterPartnerapiV1mainRetentionSettings( typing_extensions.TypedDict, total=False ): + durationBasedRetention: str quantityBasedRetention: int retentionUnit: typing_extensions.Literal[ - "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", "RETENTION_UNIT_OTHER" + "RETENTION_UNIT_UNSPECIFIED", + "COUNT", + "TIME", + "DURATION", + "RETENTION_UNIT_OTHER", ] timeBasedRetention: str + timestampBasedRetentionTime: str @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainTags( diff --git a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi index c5666a0b..fe41cb70 100644 --- a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi @@ -760,6 +760,14 @@ class GoogleAnalyticsAdminV1alphaDataRetentionSettings( ] name: str resetUserDataOnNewActivity: bool + userDataRetention: typing_extensions.Literal[ + "RETENTION_DURATION_UNSPECIFIED", + "TWO_MONTHS", + "FOURTEEN_MONTHS", + "TWENTY_SIX_MONTHS", + "THIRTY_EIGHT_MONTHS", + "FIFTY_MONTHS", + ] @typing.type_check_only class GoogleAnalyticsAdminV1alphaDataSharingSettings( diff --git a/googleapiclient-stubs/_apis/analyticsadmin/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/analyticsadmin/v1beta/schemas.pyi index c963190a..dfe230ae 100644 --- a/googleapiclient-stubs/_apis/analyticsadmin/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticsadmin/v1beta/schemas.pyi @@ -313,6 +313,14 @@ class GoogleAnalyticsAdminV1betaDataRetentionSettings( ] name: str resetUserDataOnNewActivity: bool + userDataRetention: typing_extensions.Literal[ + "RETENTION_DURATION_UNSPECIFIED", + "TWO_MONTHS", + "FOURTEEN_MONTHS", + "TWENTY_SIX_MONTHS", + "THIRTY_EIGHT_MONTHS", + "FIFTY_MONTHS", + ] @typing.type_check_only class GoogleAnalyticsAdminV1betaDataSharingSettings( @@ -620,6 +628,8 @@ class GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest( "GOOGLE_SIGNALS_SETTINGS", "CONVERSION_EVENT", "MEASUREMENT_PROTOCOL_SECRET", + "CUSTOM_DIMENSION", + "CUSTOM_METRIC", "DATA_RETENTION_SETTINGS", "DISPLAY_VIDEO_360_ADVERTISER_LINK", "DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL", diff --git a/googleapiclient-stubs/_apis/analyticsdata/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/analyticsdata/v1beta/schemas.pyi index bbd28bfc..3862ac7f 100644 --- a/googleapiclient-stubs/_apis/analyticsdata/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticsdata/v1beta/schemas.pyi @@ -165,9 +165,13 @@ class DimensionOrderBy(typing_extensions.TypedDict, total=False): class DimensionValue(typing_extensions.TypedDict, total=False): value: str +@typing.type_check_only +class EmptyFilter(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Filter(typing_extensions.TypedDict, total=False): betweenFilter: BetweenFilter + emptyFilter: EmptyFilter fieldName: str inListFilter: InListFilter numericFilter: NumericFilter diff --git a/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi b/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi index 93a12ffb..61fb7133 100644 --- a/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi @@ -147,6 +147,35 @@ class GetIamPolicyRequest(typing_extensions.TypedDict, total=False): class GetPolicyOptions(typing_extensions.TypedDict, total=False): requestedPolicyVersion: int +@typing.type_check_only +class GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo( + typing_extensions.TypedDict, total=False +): + cloudMarketplace: ( + GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo + ) + +@typing.type_check_only +class GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfoGoogleCloudMarketplaceInfo( + typing_extensions.TypedDict, total=False +): + commercialState: typing_extensions.Literal[ + "COMMERCIAL_STATE_UNSPECIFIED", "ONBOARDING", "ACTIVE" + ] + service: str + +@typing.type_check_only +class GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo( + typing_extensions.TypedDict, total=False +): + cloudMarketplace: GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo + +@typing.type_check_only +class GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfoGoogleCloudMarketplaceInfo( + typing_extensions.TypedDict, total=False +): + order: str + @typing.type_check_only class GooglePubsubV1Subscription(typing_extensions.TypedDict, total=False): ackDeadlineSeconds: int @@ -226,6 +255,7 @@ class Listing(typing_extensions.TypedDict, total=False): "CATEGORY_TRAVEL_AND_TOURISM", ] ] + commercialInfo: GoogleCloudBigqueryAnalyticshubV1ListingCommercialInfo dataProvider: DataProvider description: str discoveryType: typing_extensions.Literal[ @@ -332,6 +362,7 @@ class RevokeSubscriptionResponse(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class SelectedResource(typing_extensions.TypedDict, total=False): + routine: str table: str @typing.type_check_only @@ -353,6 +384,7 @@ class Status(typing_extensions.TypedDict, total=False): @typing.type_check_only class SubscribeDataExchangeRequest(typing_extensions.TypedDict, total=False): destination: str + destinationDataset: DestinationDataset subscriberContact: str subscription: str @@ -371,6 +403,7 @@ class SubscribeListingResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Subscription(typing_extensions.TypedDict, total=False): + commercialInfo: GoogleCloudBigqueryAnalyticshubV1SubscriptionCommercialInfo creationTime: str dataExchange: str lastModifyTime: str diff --git a/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi index ae12e436..5a829a6e 100644 --- a/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi @@ -26,6 +26,10 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class CommercialInfo(typing_extensions.TypedDict, total=False): + cloudMarketplace: GoogleCloudMarketplaceInfo + @typing.type_check_only class DataExchange(typing_extensions.TypedDict, total=False): description: str @@ -41,19 +45,6 @@ class DataProvider(typing_extensions.TypedDict, total=False): name: str primaryContact: str -@typing.type_check_only -class DestinationDataset(typing_extensions.TypedDict, total=False): - datasetReference: DestinationDatasetReference - description: str - friendlyName: str - labels: dict[str, typing.Any] - location: str - -@typing.type_check_only -class DestinationDatasetReference(typing_extensions.TypedDict, total=False): - datasetId: str - projectId: str - @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -72,6 +63,27 @@ class GetIamPolicyRequest(typing_extensions.TypedDict, total=False): class GetPolicyOptions(typing_extensions.TypedDict, total=False): requestedPolicyVersion: int +@typing.type_check_only +class GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset( + typing_extensions.TypedDict, total=False +): + datasetReference: GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference + description: str + friendlyName: str + labels: dict[str, typing.Any] + location: str + +@typing.type_check_only +class GoogleCloudBigqueryDataexchangeV1beta1DestinationDatasetReference( + typing_extensions.TypedDict, total=False +): + datasetId: str + projectId: str + +@typing.type_check_only +class GoogleCloudMarketplaceInfo(typing_extensions.TypedDict, total=False): + order: str + @typing.type_check_only class LinkedResource(typing_extensions.TypedDict, total=False): linkedDataset: str @@ -175,13 +187,14 @@ class SubscribeDataExchangeResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class SubscribeListingRequest(typing_extensions.TypedDict, total=False): - destinationDataset: DestinationDataset + destinationDataset: GoogleCloudBigqueryDataexchangeV1beta1DestinationDataset @typing.type_check_only class SubscribeListingResponse(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class Subscription(typing_extensions.TypedDict, total=False): + commercialInfo: CommercialInfo creationTime: str dataExchange: str lastModifyTime: str diff --git a/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi b/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi index bbe4aaac..374ae8da 100644 --- a/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi @@ -47,6 +47,16 @@ class AndroidEnterpriseResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> DeviceHttpRequest: ... + @typing.type_check_only + class EnrollmentTokensResource(googleapiclient.discovery.Resource): + def create( + self, + *, + enterpriseId: str, + body: EnrollmentToken = ..., + **kwargs: typing.Any, + ) -> EnrollmentTokenHttpRequest: ... + @typing.type_check_only class EnterprisesResource(googleapiclient.discovery.Resource): def acknowledgeNotificationSet( @@ -59,15 +69,6 @@ class AndroidEnterpriseResource(googleapiclient.discovery.Resource): enterpriseToken: str = ..., **kwargs: typing.Any, ) -> EnterpriseHttpRequest: ... - def createEnrollmentToken( - self, - *, - enterpriseId: str, - deviceType: typing_extensions.Literal[ - "unknown", "dedicatedDevice", "knowledgeWorker" - ] = ..., - **kwargs: typing.Any, - ) -> CreateEnrollmentTokenResponseHttpRequest: ... def createWebToken( self, *, @@ -79,7 +80,12 @@ class AndroidEnterpriseResource(googleapiclient.discovery.Resource): self, *, token: str, body: Enterprise = ..., **kwargs: typing.Any ) -> EnterpriseHttpRequest: ... def generateSignupUrl( - self, *, adminEmail: str = ..., callbackUrl: str = ..., **kwargs: typing.Any + self, + *, + adminEmail: str = ..., + allowedDomains: str | _list[str] = ..., + callbackUrl: str = ..., + **kwargs: typing.Any, ) -> SignupInfoHttpRequest: ... def get( self, *, enterpriseId: str, **kwargs: typing.Any @@ -486,6 +492,7 @@ class AndroidEnterpriseResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def devices(self) -> DevicesResource: ... + def enrollmentTokens(self) -> EnrollmentTokensResource: ... def enterprises(self) -> EnterprisesResource: ... def entitlements(self) -> EntitlementsResource: ... def grouplicenses(self) -> GrouplicensesResource: ... @@ -530,14 +537,6 @@ class AuthenticationTokenHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> AuthenticationToken: ... -@typing.type_check_only -class CreateEnrollmentTokenResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> CreateEnrollmentTokenResponse: ... - @typing.type_check_only class DeviceHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -562,6 +561,14 @@ class DevicesListResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> DevicesListResponse: ... +@typing.type_check_only +class EnrollmentTokenHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> EnrollmentToken: ... + @typing.type_check_only class EnterpriseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/androidenterprise/v1/schemas.pyi b/googleapiclient-stubs/_apis/androidenterprise/v1/schemas.pyi index a2dd3cf5..31a7e68c 100644 --- a/googleapiclient-stubs/_apis/androidenterprise/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/androidenterprise/v1/schemas.pyi @@ -157,10 +157,6 @@ class ConfigurationVariables(typing_extensions.TypedDict, total=False): mcmId: str variableSet: _list[VariableSet] -@typing.type_check_only -class CreateEnrollmentTokenResponse(typing_extensions.TypedDict, total=False): - enrollmentToken: str - @typing.type_check_only class Device(typing_extensions.TypedDict, total=False): androidId: str @@ -196,6 +192,14 @@ class DeviceState(typing_extensions.TypedDict, total=False): class DevicesListResponse(typing_extensions.TypedDict, total=False): device: _list[Device] +@typing.type_check_only +class EnrollmentToken(typing_extensions.TypedDict, total=False): + duration: str + enrollmentTokenType: typing_extensions.Literal[ + "enrollmentTokenTypeUnspecified", "userlessDevice", "userDevice" + ] + token: str + @typing.type_check_only class Enterprise(typing_extensions.TypedDict, total=False): administrator: _list[Administrator] @@ -407,6 +411,7 @@ class Policy(typing_extensions.TypedDict, total=False): "deviceReportPolicyUnspecified", "deviceReportDisabled", "deviceReportEnabled" ] maintenanceWindow: MaintenanceWindow + policyId: str productAvailabilityPolicy: typing_extensions.Literal[ "productAvailabilityPolicyUnspecified", "whitelist", "all" ] diff --git a/googleapiclient-stubs/_apis/androidmanagement/v1/resources.pyi b/googleapiclient-stubs/_apis/androidmanagement/v1/resources.pyi index 0ded49d0..5c694bab 100644 --- a/googleapiclient-stubs/_apis/androidmanagement/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/androidmanagement/v1/resources.pyi @@ -260,6 +260,7 @@ class AndroidManagementResource(googleapiclient.discovery.Resource): self, *, adminEmail: str = ..., + allowedDomains: str | _list[str] = ..., callbackUrl: str = ..., projectId: str = ..., **kwargs: typing.Any, diff --git a/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi index 6695f4c9..e7b11a23 100644 --- a/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi @@ -327,6 +327,13 @@ class CommonCriteriaModeInfo(typing_extensions.TypedDict, total=False): "COMMON_CRITERIA_MODE_DISABLED", "COMMON_CRITERIA_MODE_ENABLED", ] + policySignatureVerificationStatus: typing_extensions.Literal[ + "POLICY_SIGNATURE_VERIFICATION_STATUS_UNSPECIFIED", + "POLICY_SIGNATURE_VERIFICATION_DISABLED", + "POLICY_SIGNATURE_VERIFICATION_SUCCEEDED", + "POLICY_SIGNATURE_VERIFICATION_NOT_SUPPORTED", + "POLICY_SIGNATURE_VERIFICATION_FAILED", + ] @typing.type_check_only class ComplianceRule(typing_extensions.TypedDict, total=False): @@ -477,6 +484,7 @@ class DeviceConnectivityManagement(typing_extensions.TypedDict, total=False): wifiDirectSettings: typing_extensions.Literal[ "WIFI_DIRECT_SETTINGS_UNSPECIFIED", "ALLOW_WIFI_DIRECT", "DISALLOW_WIFI_DIRECT" ] + wifiRoamingPolicy: WifiRoamingPolicy wifiSsidPolicy: WifiSsidPolicy @typing.type_check_only @@ -1085,6 +1093,11 @@ class PersonalUsagePolicies(typing_extensions.TypedDict, total=False): personalPlayStoreMode: typing_extensions.Literal[ "PLAY_STORE_MODE_UNSPECIFIED", "BLACKLIST", "BLOCKLIST", "ALLOWLIST" ] + privateSpacePolicy: typing_extensions.Literal[ + "PRIVATE_SPACE_POLICY_UNSPECIFIED", + "PRIVATE_SPACE_ALLOWED", + "PRIVATE_SPACE_DISALLOWED", + ] screenCaptureDisabled: bool @typing.type_check_only @@ -1603,6 +1616,20 @@ class WebToken(typing_extensions.TypedDict, total=False): ] value: str +@typing.type_check_only +class WifiRoamingPolicy(typing_extensions.TypedDict, total=False): + wifiRoamingSettings: _list[WifiRoamingSetting] + +@typing.type_check_only +class WifiRoamingSetting(typing_extensions.TypedDict, total=False): + wifiRoamingMode: typing_extensions.Literal[ + "WIFI_ROAMING_MODE_UNSPECIFIED", + "WIFI_ROAMING_DISABLED", + "WIFI_ROAMING_DEFAULT", + "WIFI_ROAMING_AGGRESSIVE", + ] + wifiSsid: str + @typing.type_check_only class WifiSsid(typing_extensions.TypedDict, total=False): wifiSsid: str diff --git a/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi b/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi index d435ec37..1b4d28d7 100644 --- a/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi @@ -186,6 +186,7 @@ class AutoRenewingPlan(typing_extensions.TypedDict, total=False): autoRenewEnabled: bool installmentDetails: InstallmentPlan priceChangeDetails: SubscriptionItemPriceChangeDetails + recurringPrice: Money @typing.type_check_only class BasePlan(typing_extensions.TypedDict, total=False): @@ -421,6 +422,7 @@ class DeviceSelector(typing_extensions.TypedDict, total=False): forbiddenSystemFeatures: _list[SystemFeature] includedDeviceIds: _list[DeviceId] requiredSystemFeatures: _list[SystemFeature] + systemOnChips: _list[SystemOnChip] @typing.type_check_only class DeviceSpec(typing_extensions.TypedDict, total=False): @@ -459,10 +461,6 @@ class ExternalAccountIdentifiers(typing_extensions.TypedDict, total=False): obfuscatedExternalAccountId: str obfuscatedExternalProfileId: str -@typing.type_check_only -class ExternalOfferInitialAcquisitionDetails(typing_extensions.TypedDict, total=False): - externalTransactionId: str - @typing.type_check_only class ExternalSubscription(typing_extensions.TypedDict, total=False): subscriptionType: typing_extensions.Literal[ @@ -474,7 +472,6 @@ class ExternalTransaction(typing_extensions.TypedDict, total=False): createTime: str currentPreTaxAmount: Price currentTaxAmount: Price - externalOfferInitialAcquisitionDetails: ExternalOfferInitialAcquisitionDetails externalTransactionId: str oneTimeTransaction: OneTimeExternalTransaction originalPreTaxAmount: Price @@ -845,6 +842,9 @@ class OfferDetails(typing_extensions.TypedDict, total=False): class OfferTag(typing_extensions.TypedDict, total=False): tag: str +@typing.type_check_only +class OneTimeCode(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class OneTimeExternalTransaction(typing_extensions.TypedDict, total=False): externalTransactionToken: str @@ -1120,6 +1120,11 @@ class SdkVersionTargeting(typing_extensions.TypedDict, total=False): alternatives: _list[SdkVersion] value: _list[SdkVersion] +@typing.type_check_only +class SignupPromotion(typing_extensions.TypedDict, total=False): + oneTimeCode: OneTimeCode + vanityCode: VanityCode + @typing.type_check_only class SplitApkMetadata(typing_extensions.TypedDict, total=False): isMasterSplit: bool @@ -1254,6 +1259,7 @@ class SubscriptionPurchaseLineItem(typing_extensions.TypedDict, total=False): offerDetails: OfferDetails prepaidPlan: PrepaidPlan productId: str + signupPromotion: SignupPromotion @typing.type_check_only class SubscriptionPurchaseV2(typing_extensions.TypedDict, total=False): @@ -1324,6 +1330,11 @@ class SystemFeature(typing_extensions.TypedDict, total=False): @typing.type_check_only class SystemInitiatedCancellation(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class SystemOnChip(typing_extensions.TypedDict, total=False): + manufacturer: str + model: str + @typing.type_check_only class Targeting(typing_extensions.TypedDict, total=False): allUsers: AllUsers @@ -1549,6 +1560,10 @@ class UsesPermission(typing_extensions.TypedDict, total=False): maxSdkVersion: int name: str +@typing.type_check_only +class VanityCode(typing_extensions.TypedDict, total=False): + promotionCode: str + @typing.type_check_only class Variant(typing_extensions.TypedDict, total=False): deviceSpec: DeviceSpec diff --git a/googleapiclient-stubs/_apis/apigee/v1/resources.pyi b/googleapiclient-stubs/_apis/apigee/v1/resources.pyi index 204c1cbe..1ac0f0d4 100644 --- a/googleapiclient-stubs/_apis/apigee/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/apigee/v1/resources.pyi @@ -2105,6 +2105,46 @@ class ApigeeResource(googleapiclient.discovery.Resource): ) -> GoogleCloudApigeeV1SecurityProfileHttpRequest: ... def environments(self) -> EnvironmentsResource: ... + @typing.type_check_only + class SecurityProfilesV2Resource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudApigeeV1SecurityProfileV2 = ..., + securityProfileV2Id: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudApigeeV1SecurityProfileV2HttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudApigeeV1SecurityProfileV2HttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudApigeeV1ListSecurityProfilesV2ResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudApigeeV1ListSecurityProfilesV2ResponseHttpRequest, + previous_response: GoogleCloudApigeeV1ListSecurityProfilesV2Response, + ) -> ( + GoogleCloudApigeeV1ListSecurityProfilesV2ResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudApigeeV1SecurityProfileV2 = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudApigeeV1SecurityProfileV2HttpRequest: ... + @typing.type_check_only class SharedflowsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -2259,6 +2299,9 @@ class ApigeeResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudApigeeV1OrganizationHttpRequest: ... + def getControlPlaneAccess( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudApigeeV1ControlPlaneAccessHttpRequest: ... def getDeployedIngressConfig( self, *, @@ -2308,6 +2351,14 @@ class ApigeeResource(googleapiclient.discovery.Resource): body: GoogleCloudApigeeV1Organization = ..., **kwargs: typing.Any, ) -> GoogleCloudApigeeV1OrganizationHttpRequest: ... + def updateControlPlaneAccess( + self, + *, + name: str, + body: GoogleCloudApigeeV1ControlPlaneAccess = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def updateSecuritySettings( self, *, @@ -2337,6 +2388,7 @@ class ApigeeResource(googleapiclient.discovery.Resource): def reports(self) -> ReportsResource: ... def securityAssessmentResults(self) -> SecurityAssessmentResultsResource: ... def securityProfiles(self) -> SecurityProfilesResource: ... + def securityProfilesV2(self) -> SecurityProfilesV2Resource: ... def sharedflows(self) -> SharedflowsResource: ... def sites(self) -> SitesResource: ... @@ -2564,6 +2616,16 @@ class GoogleCloudApigeeV1ComputeEnvironmentScoresResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudApigeeV1ComputeEnvironmentScoresResponse: ... +@typing.type_check_only +class GoogleCloudApigeeV1ControlPlaneAccessHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudApigeeV1ControlPlaneAccess: ... + @typing.type_check_only class GoogleCloudApigeeV1CustomReportHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -3180,6 +3242,16 @@ class GoogleCloudApigeeV1ListSecurityProfilesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudApigeeV1ListSecurityProfilesResponse: ... +@typing.type_check_only +class GoogleCloudApigeeV1ListSecurityProfilesV2ResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudApigeeV1ListSecurityProfilesV2Response: ... + @typing.type_check_only class GoogleCloudApigeeV1ListSecurityReportsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -3358,6 +3430,14 @@ class GoogleCloudApigeeV1SecurityProfileEnvironmentAssociationHttpRequest( num_retries: int = 0, ) -> GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation: ... +@typing.type_check_only +class GoogleCloudApigeeV1SecurityProfileV2HttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudApigeeV1SecurityProfileV2: ... + @typing.type_check_only class GoogleCloudApigeeV1SecurityReportHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/apigee/v1/schemas.pyi b/googleapiclient-stubs/_apis/apigee/v1/schemas.pyi index e7038a30..ba051b1b 100644 --- a/googleapiclient-stubs/_apis/apigee/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/apigee/v1/schemas.pyi @@ -476,6 +476,12 @@ class GoogleCloudApigeeV1ConnectorsPlatformConfig( enabled: bool expiresAt: str +@typing.type_check_only +class GoogleCloudApigeeV1ControlPlaneAccess(typing_extensions.TypedDict, total=False): + analyticsPublisherIdentities: _list[str] + name: str + synchronizerIdentities: _list[str] + @typing.type_check_only class GoogleCloudApigeeV1Credential(typing_extensions.TypedDict, total=False): apiProducts: _list[GoogleCloudApigeeV1ApiProductRef] @@ -815,6 +821,7 @@ class GoogleCloudApigeeV1Environment(typing_extensions.TypedDict, total=False): apiProxyType: typing_extensions.Literal[ "API_PROXY_TYPE_UNSPECIFIED", "PROGRAMMABLE", "CONFIGURABLE" ] + clientIpResolutionConfig: GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig createdAt: str deploymentType: typing_extensions.Literal[ "DEPLOYMENT_TYPE_UNSPECIFIED", "PROXY", "ARCHIVE" @@ -834,10 +841,28 @@ class GoogleCloudApigeeV1Environment(typing_extensions.TypedDict, total=False): "ENVIRONMENT_TYPE_UNSPECIFIED", "BASE", "INTERMEDIATE", "COMPREHENSIVE" ] +@typing.type_check_only +class GoogleCloudApigeeV1EnvironmentClientIPResolutionConfig( + typing_extensions.TypedDict, total=False +): + headerIndexAlgorithm: ( + GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm + ) + +@typing.type_check_only +class GoogleCloudApigeeV1EnvironmentClientIPResolutionConfigHeaderIndexAlgorithm( + typing_extensions.TypedDict, total=False +): + ipHeaderIndex: int + ipHeaderName: str + @typing.type_check_only class GoogleCloudApigeeV1EnvironmentConfig(typing_extensions.TypedDict, total=False): addonsConfig: GoogleCloudApigeeV1RuntimeAddonsConfig arcConfigLocation: str + clientIpResolutionConfig: ( + GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig + ) createTime: str dataCollectors: _list[GoogleCloudApigeeV1DataCollectorConfig] debugMask: GoogleCloudApigeeV1DebugMask @@ -860,6 +885,21 @@ class GoogleCloudApigeeV1EnvironmentConfig(typing_extensions.TypedDict, total=Fa traceConfig: GoogleCloudApigeeV1RuntimeTraceConfig uid: str +@typing.type_check_only +class GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfig( + typing_extensions.TypedDict, total=False +): + headerIndexAlgorithm: ( + GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm + ) + +@typing.type_check_only +class GoogleCloudApigeeV1EnvironmentConfigClientIPResolutionConfigHeaderIndexAlgorithm( + typing_extensions.TypedDict, total=False +): + ipHeaderIndex: int + ipHeaderName: str + @typing.type_check_only class GoogleCloudApigeeV1EnvironmentGroup(typing_extensions.TypedDict, total=False): createdAt: str @@ -1330,6 +1370,13 @@ class GoogleCloudApigeeV1ListSecurityProfilesResponse( nextPageToken: str securityProfiles: _list[GoogleCloudApigeeV1SecurityProfile] +@typing.type_check_only +class GoogleCloudApigeeV1ListSecurityProfilesV2Response( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + securityProfilesV2: _list[GoogleCloudApigeeV1SecurityProfileV2] + @typing.type_check_only class GoogleCloudApigeeV1ListSecurityReportsResponse( typing_extensions.TypedDict, total=False @@ -2075,6 +2122,23 @@ class GoogleCloudApigeeV1SecurityProfileScoringConfig( scorePath: str title: str +@typing.type_check_only +class GoogleCloudApigeeV1SecurityProfileV2(typing_extensions.TypedDict, total=False): + createTime: str + description: str + googleDefined: bool + name: str + profileAssessmentConfigs: dict[str, typing.Any] + updateTime: str + +@typing.type_check_only +class GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig( + typing_extensions.TypedDict, total=False +): + weight: typing_extensions.Literal[ + "WEIGHT_UNSPECIFIED", "MINOR", "MODERATE", "MAJOR" + ] + @typing.type_check_only class GoogleCloudApigeeV1SecurityReport(typing_extensions.TypedDict, total=False): created: str diff --git a/googleapiclient-stubs/_apis/apikeys/v2/schemas.pyi b/googleapiclient-stubs/_apis/apikeys/v2/schemas.pyi index cb4e8c8e..76540003 100644 --- a/googleapiclient-stubs/_apis/apikeys/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/apikeys/v2/schemas.pyi @@ -54,6 +54,7 @@ class V2Key(typing_extensions.TypedDict, total=False): keyString: str name: str restrictions: V2Restrictions + serviceAccountEmail: str uid: str updateTime: str diff --git a/googleapiclient-stubs/_apis/appengine/v1/resources.pyi b/googleapiclient-stubs/_apis/appengine/v1/resources.pyi index 483ef984..a094a55f 100644 --- a/googleapiclient-stubs/_apis/appengine/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/appengine/v1/resources.pyi @@ -413,7 +413,34 @@ class AppengineResource(googleapiclient.discovery.Resource): previous_response: ListAuthorizedDomainsResponse, ) -> ListAuthorizedDomainsResponseHttpRequest | None: ... + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class VersionsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + projectsId: str, + locationsId: str, + applicationsId: str, + servicesId: str, + versionsId: str, + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def delete( + self, + *, + projectsId: str, + locationsId: str, + applicationsId: str, + servicesId: str, + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def versions(self) -> VersionsResource: ... + def authorizedDomains(self) -> AuthorizedDomainsResource: ... + def services(self) -> ServicesResource: ... def applications(self) -> ApplicationsResource: ... diff --git a/googleapiclient-stubs/_apis/appengine/v1/schemas.pyi b/googleapiclient-stubs/_apis/appengine/v1/schemas.pyi index 0f1a337f..46648b7a 100644 --- a/googleapiclient-stubs/_apis/appengine/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/appengine/v1/schemas.pyi @@ -516,6 +516,12 @@ class RequestUtilization(typing_extensions.TypedDict, total=False): targetConcurrentRequests: int targetRequestCountPerSecond: int +@typing.type_check_only +class ResourceEvent(typing_extensions.TypedDict, total=False): + eventId: str + name: str + state: ContainerState + @typing.type_check_only class ResourceRecord(typing_extensions.TypedDict, total=False): name: str diff --git a/googleapiclient-stubs/_apis/appengine/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/appengine/v1alpha/schemas.pyi index 0b4d6616..37a3171f 100644 --- a/googleapiclient-stubs/_apis/appengine/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/appengine/v1alpha/schemas.pyi @@ -219,6 +219,12 @@ class Reasons(typing_extensions.TypedDict, total=False): "COMMIT_DEACTIVATION", ] +@typing.type_check_only +class ResourceEvent(typing_extensions.TypedDict, total=False): + eventId: str + name: str + state: ContainerState + @typing.type_check_only class ResourceRecord(typing_extensions.TypedDict, total=False): name: str diff --git a/googleapiclient-stubs/_apis/appengine/v1beta/resources.pyi b/googleapiclient-stubs/_apis/appengine/v1beta/resources.pyi index 016846d6..b129e818 100644 --- a/googleapiclient-stubs/_apis/appengine/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/appengine/v1beta/resources.pyi @@ -427,7 +427,34 @@ class AppengineResource(googleapiclient.discovery.Resource): previous_response: ListAuthorizedDomainsResponse, ) -> ListAuthorizedDomainsResponseHttpRequest | None: ... + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class VersionsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + projectsId: str, + locationsId: str, + applicationsId: str, + servicesId: str, + versionsId: str, + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def delete( + self, + *, + projectsId: str, + locationsId: str, + applicationsId: str, + servicesId: str, + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def versions(self) -> VersionsResource: ... + def authorizedDomains(self) -> AuthorizedDomainsResource: ... + def services(self) -> ServicesResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/appengine/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/appengine/v1beta/schemas.pyi index 7fe4474b..91f16ea3 100644 --- a/googleapiclient-stubs/_apis/appengine/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/appengine/v1beta/schemas.pyi @@ -530,6 +530,12 @@ class RequestUtilization(typing_extensions.TypedDict, total=False): targetConcurrentRequests: int targetRequestCountPerSecond: int +@typing.type_check_only +class ResourceEvent(typing_extensions.TypedDict, total=False): + eventId: str + name: str + state: ContainerState + @typing.type_check_only class ResourceRecord(typing_extensions.TypedDict, total=False): name: str diff --git a/googleapiclient-stubs/_apis/apphub/v1/schemas.pyi b/googleapiclient-stubs/_apis/apphub/v1/schemas.pyi index 67aeb488..6be3e2c5 100644 --- a/googleapiclient-stubs/_apis/apphub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/apphub/v1/schemas.pyi @@ -18,6 +18,14 @@ class Application(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + @typing.type_check_only class Attributes(typing_extensions.TypedDict, total=False): businessOwners: _list[ContactInfo] @@ -44,9 +52,22 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class ContactInfo(typing_extensions.TypedDict, total=False): displayName: str @@ -68,6 +89,10 @@ class DetachServiceProjectAttachmentResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] + @typing.type_check_only class DiscoveredService(typing_extensions.TypedDict, total=False): name: str @@ -96,6 +121,45 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListApplicationsResponse(typing_extensions.TypedDict, total=False): applications: _list[Application] @@ -150,6 +214,30 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + @typing.type_check_only class LookupDiscoveredServiceResponse(typing_extensions.TypedDict, total=False): discoveredService: DiscoveredService @@ -180,6 +268,10 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -194,9 +286,23 @@ class ReconciliationOperationMetadata(typing_extensions.TypedDict, total=False): "UNKNOWN_REPAIR_ACTION", "DELETE", "RETRY" ] +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + @typing.type_check_only class Scope(typing_extensions.TypedDict, total=False): - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "REGIONAL"] + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "REGIONAL", "GLOBAL"] @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): @@ -239,12 +345,21 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -278,3 +393,7 @@ class WorkloadProperties(typing_extensions.TypedDict, total=False): @typing.type_check_only class WorkloadReference(typing_extensions.TypedDict, total=False): uri: str + +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str diff --git a/googleapiclient-stubs/_apis/apphub/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/apphub/v1alpha/schemas.pyi index 6cc37b29..0b011bb0 100644 --- a/googleapiclient-stubs/_apis/apphub/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/apphub/v1alpha/schemas.pyi @@ -18,6 +18,14 @@ class Application(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + @typing.type_check_only class Attributes(typing_extensions.TypedDict, total=False): businessOwners: _list[ContactInfo] @@ -44,6 +52,10 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -51,6 +63,15 @@ class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... class Channel(typing_extensions.TypedDict, total=False): uri: str +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class ContactInfo(typing_extensions.TypedDict, total=False): channel: Channel @@ -75,6 +96,10 @@ class DetachServiceProjectAttachmentResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] + @typing.type_check_only class DiscoveredService(typing_extensions.TypedDict, total=False): name: str @@ -104,6 +129,10 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + @typing.type_check_only class FindUnregisteredServicesResponse(typing_extensions.TypedDict, total=False): discoveredServices: _list[DiscoveredService] @@ -116,6 +145,41 @@ class FindUnregisteredWorkloadsResponse(typing_extensions.TypedDict, total=False nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListApplicationsResponse(typing_extensions.TypedDict, total=False): applications: _list[Application] @@ -170,6 +234,30 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + @typing.type_check_only class LookupDiscoveredServiceResponse(typing_extensions.TypedDict, total=False): discoveredService: DiscoveredService @@ -200,6 +288,10 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -207,9 +299,23 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + @typing.type_check_only class Scope(typing_extensions.TypedDict, total=False): - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "REGIONAL"] + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "REGIONAL", "GLOBAL"] @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): @@ -253,12 +359,21 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -292,3 +407,7 @@ class WorkloadProperties(typing_extensions.TypedDict, total=False): @typing.type_check_only class WorkloadReference(typing_extensions.TypedDict, total=False): uri: str + +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str diff --git a/googleapiclient-stubs/_apis/areainsights/__init__.pyi b/googleapiclient-stubs/_apis/areainsights/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/areainsights/v1/__init__.pyi b/googleapiclient-stubs/_apis/areainsights/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/areainsights/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/areainsights/v1/resources.pyi b/googleapiclient-stubs/_apis/areainsights/v1/resources.pyi new file mode 100644 index 00000000..dc1d605d --- /dev/null +++ b/googleapiclient-stubs/_apis/areainsights/v1/resources.pyi @@ -0,0 +1,42 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class AreaInsightsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class V1Resource(googleapiclient.discovery.Resource): + def computeInsights( + self, *, body: ComputeInsightsRequest = ..., **kwargs: typing.Any + ) -> ComputeInsightsResponseHttpRequest: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def v1(self) -> V1Resource: ... + +@typing.type_check_only +class ComputeInsightsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ComputeInsightsResponse: ... diff --git a/googleapiclient-stubs/_apis/areainsights/v1/schemas.pyi b/googleapiclient-stubs/_apis/areainsights/v1/schemas.pyi new file mode 100644 index 00000000..3b14e754 --- /dev/null +++ b/googleapiclient-stubs/_apis/areainsights/v1/schemas.pyi @@ -0,0 +1,88 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Circle(typing_extensions.TypedDict, total=False): + latLng: LatLng + place: str + radius: int + +@typing.type_check_only +class ComputeInsightsRequest(typing_extensions.TypedDict, total=False): + filter: Filter + insights: _list[ + typing_extensions.Literal[ + "INSIGHT_UNSPECIFIED", "INSIGHT_COUNT", "INSIGHT_PLACES" + ] + ] + +@typing.type_check_only +class ComputeInsightsResponse(typing_extensions.TypedDict, total=False): + count: str + placeInsights: _list[PlaceInsight] + +@typing.type_check_only +class CustomArea(typing_extensions.TypedDict, total=False): + polygon: Polygon + +@typing.type_check_only +class Filter(typing_extensions.TypedDict, total=False): + locationFilter: LocationFilter + operatingStatus: _list[ + typing_extensions.Literal[ + "OPERATING_STATUS_UNSPECIFIED", + "OPERATING_STATUS_OPERATIONAL", + "OPERATING_STATUS_PERMANENTLY_CLOSED", + "OPERATING_STATUS_TEMPORARILY_CLOSED", + ] + ] + priceLevels: _list[ + typing_extensions.Literal[ + "PRICE_LEVEL_UNSPECIFIED", + "PRICE_LEVEL_FREE", + "PRICE_LEVEL_INEXPENSIVE", + "PRICE_LEVEL_MODERATE", + "PRICE_LEVEL_EXPENSIVE", + "PRICE_LEVEL_VERY_EXPENSIVE", + ] + ] + ratingFilter: RatingFilter + typeFilter: TypeFilter + +@typing.type_check_only +class LatLng(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + +@typing.type_check_only +class LocationFilter(typing_extensions.TypedDict, total=False): + circle: Circle + customArea: CustomArea + region: Region + +@typing.type_check_only +class PlaceInsight(typing_extensions.TypedDict, total=False): + place: str + +@typing.type_check_only +class Polygon(typing_extensions.TypedDict, total=False): + coordinates: _list[LatLng] + +@typing.type_check_only +class RatingFilter(typing_extensions.TypedDict, total=False): + maxRating: float + minRating: float + +@typing.type_check_only +class Region(typing_extensions.TypedDict, total=False): + place: str + +@typing.type_check_only +class TypeFilter(typing_extensions.TypedDict, total=False): + excludedPrimaryTypes: _list[str] + excludedTypes: _list[str] + includedPrimaryTypes: _list[str] + includedTypes: _list[str] diff --git a/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi b/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi index 7efcf9f1..e0394b71 100644 --- a/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi @@ -42,6 +42,37 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> UploadAptArtifactMediaResponseHttpRequest: ... + @typing.type_check_only + class AttachmentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Attachment = ..., + attachmentId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AttachmentHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAttachmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAttachmentsResponseHttpRequest, + previous_response: ListAttachmentsResponse, + ) -> ListAttachmentsResponseHttpRequest | None: ... + @typing.type_check_only class DockerImagesResource(googleapiclient.discovery.Resource): def get( @@ -91,6 +122,21 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): previous_request: ListFilesResponseHttpRequest, previous_response: ListFilesResponse, ) -> ListFilesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: GoogleDevtoolsArtifactregistryV1File = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleDevtoolsArtifactregistryV1FileHttpRequest: ... + def upload( + self, + *, + parent: str, + body: UploadFileRequest = ..., + **kwargs: typing.Any, + ) -> UploadFileMediaResponseHttpRequest: ... @typing.type_check_only class GenericArtifactsResource(googleapiclient.discovery.Resource): @@ -257,6 +303,14 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): previous_request: ListVersionsResponseHttpRequest, previous_response: ListVersionsResponse, ) -> ListVersionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Version = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> VersionHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any @@ -309,6 +363,44 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): previous_response: ListPythonPackagesResponse, ) -> ListPythonPackagesResponseHttpRequest | None: ... + @typing.type_check_only + class RulesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleDevtoolsArtifactregistryV1Rule = ..., + ruleId: str = ..., + **kwargs: typing.Any, + ) -> GoogleDevtoolsArtifactregistryV1RuleHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleDevtoolsArtifactregistryV1RuleHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRulesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRulesResponseHttpRequest, + previous_response: ListRulesResponse, + ) -> ListRulesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: GoogleDevtoolsArtifactregistryV1Rule = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleDevtoolsArtifactregistryV1RuleHttpRequest: ... + @typing.type_check_only class YumArtifactsResource(googleapiclient.discovery.Resource): def import_( @@ -385,6 +477,7 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestIamPermissionsResponseHttpRequest: ... def aptArtifacts(self) -> AptArtifactsResource: ... + def attachments(self) -> AttachmentsResource: ... def dockerImages(self) -> DockerImagesResource: ... def files(self) -> FilesResource: ... def genericArtifacts(self) -> GenericArtifactsResource: ... @@ -395,6 +488,7 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): def npmPackages(self) -> NpmPackagesResource: ... def packages(self) -> PackagesResource: ... def pythonPackages(self) -> PythonPackagesResource: ... + def rules(self) -> RulesResource: ... def yumArtifacts(self) -> YumArtifactsResource: ... def get( @@ -455,6 +549,14 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class AttachmentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Attachment: ... + @typing.type_check_only class DockerImageHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -487,6 +589,22 @@ class GoogleDevtoolsArtifactregistryV1FileHttpRequest(googleapiclient.http.HttpR num_retries: int = 0, ) -> GoogleDevtoolsArtifactregistryV1File: ... +@typing.type_check_only +class GoogleDevtoolsArtifactregistryV1RuleHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleDevtoolsArtifactregistryV1Rule: ... + +@typing.type_check_only +class ListAttachmentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAttachmentsResponse: ... + @typing.type_check_only class ListDockerImagesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -551,6 +669,14 @@ class ListRepositoriesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListRepositoriesResponse: ... +@typing.type_check_only +class ListRulesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRulesResponse: ... + @typing.type_check_only class ListTagsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -663,6 +789,14 @@ class UploadAptArtifactMediaResponseHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> UploadAptArtifactMediaResponse: ... +@typing.type_check_only +class UploadFileMediaResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> UploadFileMediaResponse: ... + @typing.type_check_only class UploadGenericArtifactMediaResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi b/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi index 380edb9f..ea481c7b 100644 --- a/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi @@ -20,6 +20,18 @@ class AptRepository(typing_extensions.TypedDict, total=False): customRepository: GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryCustomRepository publicRepository: GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigAptRepositoryPublicRepository +@typing.type_check_only +class Attachment(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + attachmentNamespace: str + createTime: str + files: _list[str] + name: str + ociVersionName: str + target: str + type: str + updateTime: str + @typing.type_check_only class BatchDeleteVersionsMetadata(typing_extensions.TypedDict, total=False): failedVersions: _list[str] @@ -119,6 +131,7 @@ class GoogetArtifact(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleDevtoolsArtifactregistryV1File(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] createTime: str fetchTime: str hashes: _list[Hash] @@ -187,6 +200,14 @@ class GoogleDevtoolsArtifactregistryV1RemoteRepositoryConfigYumRepositoryPublicR ] repositoryPath: str +@typing.type_check_only +class GoogleDevtoolsArtifactregistryV1Rule(typing_extensions.TypedDict, total=False): + action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ALLOW", "DENY"] + condition: Expr + name: str + operation: typing_extensions.Literal["OPERATION_UNSPECIFIED", "DOWNLOAD"] + packageId: str + @typing.type_check_only class Hash(typing_extensions.TypedDict, total=False): type: typing_extensions.Literal["HASH_TYPE_UNSPECIFIED", "SHA256", "MD5"] @@ -263,6 +284,11 @@ class KfpArtifact(typing_extensions.TypedDict, total=False): name: str version: str +@typing.type_check_only +class ListAttachmentsResponse(typing_extensions.TypedDict, total=False): + attachments: _list[Attachment] + nextPageToken: str + @typing.type_check_only class ListDockerImagesResponse(typing_extensions.TypedDict, total=False): dockerImages: _list[DockerImage] @@ -303,6 +329,11 @@ class ListRepositoriesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str repositories: _list[Repository] +@typing.type_check_only +class ListRulesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rules: _list[GoogleDevtoolsArtifactregistryV1Rule] + @typing.type_check_only class ListTagsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -399,9 +430,6 @@ class ProjectSettings(typing_extensions.TypedDict, total=False): name: str pullPercent: int -@typing.type_check_only -class PromoteArtifactMetadata(typing_extensions.TypedDict, total=False): ... - @typing.type_check_only class PythonPackage(typing_extensions.TypedDict, total=False): createTime: str @@ -462,12 +490,14 @@ class Repository(typing_extensions.TypedDict, total=False): "ASSURED_OSS_REPOSITORY", ] name: str + registryUri: str remoteRepositoryConfig: RemoteRepositoryConfig satisfiesPzi: bool satisfiesPzs: bool sizeBytes: str updateTime: str virtualRepositoryConfig: VirtualRepositoryConfig + vulnerabilityScanningConfig: VulnerabilityScanningConfig @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): @@ -506,6 +536,14 @@ class UploadAptArtifactRequest(typing_extensions.TypedDict, total=False): ... class UploadAptArtifactResponse(typing_extensions.TypedDict, total=False): aptArtifacts: _list[AptArtifact] +@typing.type_check_only +class UploadFileMediaResponse(typing_extensions.TypedDict, total=False): + operation: Operation + +@typing.type_check_only +class UploadFileRequest(typing_extensions.TypedDict, total=False): + fileId: str + @typing.type_check_only class UploadGenericArtifactMediaResponse(typing_extensions.TypedDict, total=False): operation: Operation @@ -591,6 +629,7 @@ class VPCSCConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class Version(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] createTime: str description: str metadata: dict[str, typing.Any] @@ -602,6 +641,20 @@ class Version(typing_extensions.TypedDict, total=False): class VirtualRepositoryConfig(typing_extensions.TypedDict, total=False): upstreamPolicies: _list[UpstreamPolicy] +@typing.type_check_only +class VulnerabilityScanningConfig(typing_extensions.TypedDict, total=False): + enablementConfig: typing_extensions.Literal[ + "ENABLEMENT_CONFIG_UNSPECIFIED", "INHERITED", "DISABLED" + ] + enablementState: typing_extensions.Literal[ + "ENABLEMENT_STATE_UNSPECIFIED", + "SCANNING_UNSUPPORTED", + "SCANNING_DISABLED", + "SCANNING_ACTIVE", + ] + enablementStateReason: str + lastEnableTime: str + @typing.type_check_only class YumArtifact(typing_extensions.TypedDict, total=False): architecture: str diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi index 763b2564..b52d3d2a 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi @@ -65,6 +65,7 @@ class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata( "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", "IRS_1075", + "CANADA_CONTROLLED_GOODS", ] createTime: str displayName: str @@ -238,6 +239,7 @@ class GoogleCloudAssuredworkloadsV1Workload(typing_extensions.TypedDict, total=F "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", "IRS_1075", + "CANADA_CONTROLLED_GOODS", ] complianceStatus: GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus compliantButDisallowedServices: _list[str] @@ -273,6 +275,7 @@ class GoogleCloudAssuredworkloadsV1Workload(typing_extensions.TypedDict, total=F resources: _list[GoogleCloudAssuredworkloadsV1WorkloadResourceInfo] saaEnrollmentResponse: GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse violationNotificationsEnabled: bool + workloadOptions: GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions @typing.type_check_only class GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus( @@ -368,6 +371,14 @@ class GoogleCloudAssuredworkloadsV1WorkloadSaaEnrollmentResponse( "SETUP_STATE_UNSPECIFIED", "STATUS_PENDING", "STATUS_COMPLETE" ] +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1WorkloadWorkloadOptions( + typing_extensions.TypedDict, total=False +): + kajEnrollmentType: typing_extensions.Literal[ + "KAJ_ENROLLMENT_TYPE_UNSPECIFIED", "KEY_ACCESS_TRANSPARENCY_OFF" + ] + @typing.type_check_only class GoogleLongrunningListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi index 1e38fadc..9d28f074 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi @@ -39,6 +39,32 @@ class AssuredworkloadsResource(googleapiclient.discovery.Resource): @typing.type_check_only class WorkloadsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class UpdatesResource(googleapiclient.discovery.Resource): + def apply( + self, + *, + name: str, + body: GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponseHttpRequest, + previous_response: GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse, + ) -> ( + GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponseHttpRequest + | None + ): ... + @typing.type_check_only class ViolationsResource(googleapiclient.discovery.Resource): def acknowledge( @@ -143,6 +169,7 @@ class AssuredworkloadsResource(googleapiclient.discovery.Resource): body: GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponseHttpRequest: ... + def updates(self) -> UpdatesResource: ... def violations(self) -> ViolationsResource: ... def operations(self) -> OperationsResource: ... @@ -214,6 +241,16 @@ class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse: ... +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse: ... + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi index 5393ef10..31930908 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi @@ -28,6 +28,26 @@ class GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse( assetMoveAnalyses: _list[GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis] nextPageToken: str +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateOperationMetadata( + typing_extensions.TypedDict, total=False +): + action: typing_extensions.Literal["WORKLOAD_UPDATE_ACTION_UNSPECIFIED", "APPLY"] + createTime: str + updateName: str + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateRequest( + typing_extensions.TypedDict, total=False +): + action: typing_extensions.Literal["WORKLOAD_UPDATE_ACTION_UNSPECIFIED", "APPLY"] + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1ApplyWorkloadUpdateResponse( + typing_extensions.TypedDict, total=False +): + appliedUpdate: GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1AssetMoveAnalysis( typing_extensions.TypedDict, total=False @@ -65,6 +85,7 @@ class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata( "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", "IRS_1075", + "CANADA_CONTROLLED_GOODS", ] createTime: str displayName: str @@ -88,6 +109,13 @@ class GoogleCloudAssuredworkloadsV1beta1ListViolationsResponse( nextPageToken: str violations: _list[GoogleCloudAssuredworkloadsV1beta1Violation] +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1ListWorkloadUpdatesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + workloadUpdates: _list[GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate] + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1ListWorkloadsResponse( typing_extensions.TypedDict, total=False @@ -116,6 +144,39 @@ class GoogleCloudAssuredworkloadsV1beta1MoveImpact( ): detail: str +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1OrgPolicy( + typing_extensions.TypedDict, total=False +): + constraint: str + inherit: bool + reset: bool + resource: str + rule: GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule( + typing_extensions.TypedDict, total=False +): + allowAll: bool + denyAll: bool + enforce: bool + values: GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRuleStringValues + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRuleStringValues( + typing_extensions.TypedDict, total=False +): + allowedValues: _list[str] + deniedValues: _list[str] + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1OrgPolicyUpdate( + typing_extensions.TypedDict, total=False +): + appliedPolicy: GoogleCloudAssuredworkloadsV1beta1OrgPolicy + suggestedPolicy: GoogleCloudAssuredworkloadsV1beta1OrgPolicy + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesRequest( typing_extensions.TypedDict, total=False @@ -132,6 +193,12 @@ class GoogleCloudAssuredworkloadsV1beta1RestrictAllowedResourcesResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1UpdateDetails( + typing_extensions.TypedDict, total=False +): + orgPolicyUpdate: GoogleCloudAssuredworkloadsV1beta1OrgPolicyUpdate + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1Violation( typing_extensions.TypedDict, total=False @@ -218,6 +285,7 @@ class GoogleCloudAssuredworkloadsV1beta1ViolationRemediationInstructionsGcloud( class GoogleCloudAssuredworkloadsV1beta1Workload( typing_extensions.TypedDict, total=False ): + availableUpdates: int billingAccount: str cjisSettings: GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings complianceRegime: typing_extensions.Literal[ @@ -245,6 +313,7 @@ class GoogleCloudAssuredworkloadsV1beta1Workload( "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS", "HEALTHCARE_AND_LIFE_SCIENCES_CONTROLS_US_SUPPORT", "IRS_1075", + "CANADA_CONTROLLED_GOODS", ] complianceStatus: GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus complianceUpdatesEnabled: bool @@ -288,6 +357,7 @@ class GoogleCloudAssuredworkloadsV1beta1Workload( GoogleCloudAssuredworkloadsV1beta1WorkloadSaaEnrollmentResponse ) violationNotificationsEnabled: bool + workloadOptions: GoogleCloudAssuredworkloadsV1beta1WorkloadWorkloadOptions @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1WorkloadCJISSettings( @@ -407,6 +477,26 @@ class GoogleCloudAssuredworkloadsV1beta1WorkloadSaaEnrollmentResponse( "SETUP_STATE_UNSPECIFIED", "STATUS_PENDING", "STATUS_COMPLETE" ] +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate( + typing_extensions.TypedDict, total=False +): + createTime: str + details: GoogleCloudAssuredworkloadsV1beta1UpdateDetails + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "AVAILABLE", "APPLIED", "WITHDRAWN" + ] + updateTime: str + +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1WorkloadWorkloadOptions( + typing_extensions.TypedDict, total=False +): + kajEnrollmentType: typing_extensions.Literal[ + "KAJ_ENROLLMENT_TYPE_UNSPECIFIED", "KEY_ACCESS_TRANSPARENCY_OFF" + ] + @typing.type_check_only class GoogleLongrunningListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str diff --git a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1/schemas.pyi b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1/schemas.pyi index cfadf2ab..46a58fe8 100644 --- a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1/schemas.pyi @@ -34,6 +34,7 @@ class AddNoteRequest(typing_extensions.TypedDict, total=False): class AuctionPackage(typing_extensions.TypedDict, total=False): createTime: str creator: str + dealOwnerSeatId: str description: str displayName: str eligibleSeatIds: _list[str] diff --git a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi index 54d67336..0337146f 100644 --- a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi @@ -37,6 +37,7 @@ class AddNoteRequest(typing_extensions.TypedDict, total=False): class AuctionPackage(typing_extensions.TypedDict, total=False): createTime: str creator: str + dealOwnerSeatId: str description: str displayName: str eligibleSeatIds: _list[str] diff --git a/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi b/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi index 051b769b..187e4b92 100644 --- a/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi @@ -239,6 +239,7 @@ class BackupdrResource(googleapiclient.discovery.Resource): allowMissing: bool = ..., etag: str = ..., force: bool = ..., + ignoreBackupPlanReferences: bool = ..., requestId: str = ..., validateOnly: bool = ..., **kwargs: typing.Any, @@ -393,6 +394,16 @@ class BackupdrResource(googleapiclient.discovery.Resource): previous_response: ListOperationsResponse, ) -> ListOperationsResponseHttpRequest | None: ... + @typing.type_check_only + class ServiceConfigResource(googleapiclient.discovery.Resource): + def initialize( + self, + *, + name: str, + body: InitializeServiceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( self, *, name: str, **kwargs: typing.Any ) -> LocationHttpRequest: ... @@ -415,6 +426,7 @@ class BackupdrResource(googleapiclient.discovery.Resource): def backupVaults(self) -> BackupVaultsResource: ... def managementServers(self) -> ManagementServersResource: ... def operations(self) -> OperationsResource: ... + def serviceConfig(self) -> ServiceConfigResource: ... def locations(self) -> LocationsResource: ... diff --git a/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi b/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi index 4a6a341f..1e07baab 100644 --- a/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi @@ -48,14 +48,6 @@ class AllocationAffinity(typing_extensions.TypedDict, total=False): key: str values: _list[str] -@typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - ccfeRmsPath: str - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] - @typing.type_check_only class AttachedDisk(typing_extensions.TypedDict, total=False): autoDelete: bool @@ -112,6 +104,8 @@ class Backup(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str resourceSizeBytes: str + satisfiesPzi: bool + satisfiesPzs: bool serviceLocks: _list[BackupLock] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "ERROR" @@ -190,7 +184,7 @@ class BackupPlanAssociation(typing_extensions.TypedDict, total=False): resourceType: str rulesConfigInfo: _list[RuleConfigInfo] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "INACTIVE" + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "INACTIVE", "UPDATING" ] updateTime: str @@ -202,6 +196,13 @@ class BackupRule(typing_extensions.TypedDict, total=False): @typing.type_check_only class BackupVault(typing_extensions.TypedDict, total=False): + accessRestriction: typing_extensions.Literal[ + "ACCESS_RESTRICTION_UNSPECIFIED", + "WITHIN_PROJECT", + "WITHIN_ORGANIZATION", + "UNRESTRICTED", + "WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA", + ] annotations: dict[str, typing.Any] backupCount: str backupMinimumEnforcedRetentionDuration: str @@ -231,22 +232,9 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class ComputeInstanceBackupProperties(typing_extensions.TypedDict, total=False): canIpForward: bool @@ -361,10 +349,6 @@ class DataSourceGcpResource(typing_extensions.TypedDict, total=False): location: str type: str -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class DisplayDevice(typing_extensions.TypedDict, total=False): enableDisplay: bool @@ -384,10 +368,6 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str -@typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy - @typing.type_check_only class FetchAccessTokenRequest(typing_extensions.TypedDict, total=False): generationId: int @@ -427,6 +407,12 @@ class GcpBackupConfig(typing_extensions.TypedDict, total=False): backupPlanDescription: str backupPlanRules: _list[str] +@typing.type_check_only +class GcpResource(typing_extensions.TypedDict, total=False): + gcpResourcename: str + location: str + type: str + @typing.type_check_only class GuestOsFeature(typing_extensions.TypedDict, total=False): type: typing_extensions.Literal[ @@ -452,6 +438,11 @@ class InitializeParams(typing_extensions.TypedDict, total=False): diskName: str replicaZones: _list[str] +@typing.type_check_only +class InitializeServiceRequest(typing_extensions.TypedDict, total=False): + requestId: str + resourceType: str + @typing.type_check_only class InitiateBackupRequest(typing_extensions.TypedDict, total=False): backupId: str @@ -467,41 +458,6 @@ class InitiateBackupResponse(typing_extensions.TypedDict, total=False): class InstanceParams(typing_extensions.TypedDict, total=False): resourceManagerTags: dict[str, typing.Any] -@typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - requirementOverride: RequirementOverride - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] - @typing.type_check_only class ListBackupPlanAssociationsResponse(typing_extensions.TypedDict, total=False): backupPlanAssociations: _list[BackupPlanAssociation] @@ -556,30 +512,6 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str -@typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation - @typing.type_check_only class ManagementServer(typing_extensions.TypedDict, total=False): baProxyUri: _list[str] @@ -676,10 +608,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -687,30 +615,20 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - @typing.type_check_only class RemoveDataSourceRequest(typing_extensions.TypedDict, total=False): requestId: str -@typing.type_check_only -class RequirementOverride(typing_extensions.TypedDict, total=False): - ziOverride: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zsOverride: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - @typing.type_check_only class RestoreBackupRequest(typing_extensions.TypedDict, total=False): computeInstanceRestoreProperties: ComputeInstanceRestoreProperties computeInstanceTargetEnvironment: ComputeInstanceTargetEnvironment requestId: str +@typing.type_check_only +class RestoreBackupResponse(typing_extensions.TypedDict, total=False): + targetResource: TargetResource + @typing.type_check_only class RuleConfigInfo(typing_extensions.TypedDict, total=False): lastBackupError: Status @@ -769,9 +687,7 @@ class SetInternalStatusRequest(typing_extensions.TypedDict, total=False): value: str @typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] +class SetInternalStatusResponse(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class StandardSchedule(typing_extensions.TypedDict, total=False): @@ -824,8 +740,8 @@ class Tags(typing_extensions.TypedDict, total=False): items: _list[str] @typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] +class TargetResource(typing_extensions.TypedDict, total=False): + gcpResource: GcpResource @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): @@ -865,7 +781,3 @@ class WorkforceIdentityBasedManagementURI(typing_extensions.TypedDict, total=Fal class WorkforceIdentityBasedOAuth2ClientID(typing_extensions.TypedDict, total=False): firstPartyOauth2ClientId: str thirdPartyOauth2ClientId: str - -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi index ec6e2ac4..b984c7c0 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi @@ -424,6 +424,42 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only + class GlobalResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SecurityGatewaysResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ApplicationsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudBeyondcorpSecuritygatewaysV1Application = ..., + applicationId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def patch( + self, + *, + name: str, + body: GoogleCloudBeyondcorpSecuritygatewaysV1Application = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + + def applications(self) -> ApplicationsResource: ... + + def securityGateways(self) -> SecurityGatewaysResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -454,6 +490,128 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + @typing.type_check_only + class SecurityGatewaysResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ApplicationsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + name: str, + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudBeyondcorpSecuritygatewaysV1ApplicationHttpRequest + ): ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponseHttpRequest, + previous_response: GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse, + ) -> ( + GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponseHttpRequest + | None + ): ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway = ..., + requestId: str = ..., + securityGatewayId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, + *, + name: str, + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayHttpRequest + ): ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponseHttpRequest, + previous_response: GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse, + ) -> ( + GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + def applications(self) -> ApplicationsResource: ... + def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudLocationLocationHttpRequest: ... @@ -476,7 +634,9 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): def appGateways(self) -> AppGatewaysResource: ... def clientConnectorServices(self) -> ClientConnectorServicesResource: ... def clientGateways(self) -> ClientGatewaysResource: ... + def global_(self) -> GlobalResource: ... def operations(self) -> OperationsResource: ... + def securityGateways(self) -> SecurityGatewaysResource: ... def locations(self) -> LocationsResource: ... @@ -571,6 +731,46 @@ class GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponseHttpReque num_retries: int = 0, ) -> GoogleCloudBeyondcorpAppconnectorsV1ResolveInstanceConfigResponse: ... +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1ApplicationHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1Application: ... + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse: ... + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse: ... + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway: ... + @typing.type_check_only class GoogleCloudLocationListLocationsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi index 0566ed32..6caf09e9 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi @@ -379,6 +379,83 @@ class GoogleCloudBeyondcorpPartnerservicesV1mainPartnerServiceOperationMetadata( target: str verb: str +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1Application( + typing_extensions.TypedDict, total=False +): + createTime: str + displayName: str + endpointMatchers: _list[GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher] + name: str + updateTime: str + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1EndpointMatcher( + typing_extensions.TypedDict, total=False +): + hostname: str + ports: _list[int] + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1Hub( + typing_extensions.TypedDict, total=False +): + internetGateway: GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1InternetGateway( + typing_extensions.TypedDict, total=False +): + assignedIps: _list[str] + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1ListApplicationsResponse( + typing_extensions.TypedDict, total=False +): + applications: _list[GoogleCloudBeyondcorpSecuritygatewaysV1Application] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1ListSecurityGatewaysResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + securityGateways: _list[GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway] + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGateway( + typing_extensions.TypedDict, total=False +): + createTime: str + displayName: str + externalIps: _list[str] + hubs: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "UPDATING", + "DELETING", + "RUNNING", + "DOWN", + "ERROR", + ] + updateTime: str + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi index f711c61a..7f10fa01 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi @@ -989,30 +989,6 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): | None ): ... - @typing.type_check_only - class NetConnectionsResource(googleapiclient.discovery.Resource): - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> GoogleIamV1PolicyHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: GoogleIamV1SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> GoogleIamV1PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: GoogleIamV1TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... - @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -1152,13 +1128,6 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): body: GoogleIamV1SetIamPolicyRequest = ..., **kwargs: typing.Any, ) -> GoogleIamV1PolicyHttpRequest: ... - def setPeering( - self, - *, - securityGateway: str, - body: GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest = ..., - **kwargs: typing.Any, - ) -> GoogleLongrunningOperationHttpRequest: ... def testIamPermissions( self, *, @@ -1196,7 +1165,6 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): def connectors(self) -> ConnectorsResource: ... def global_(self) -> GlobalResource: ... def insights(self) -> InsightsResource: ... - def netConnections(self) -> NetConnectionsResource: ... def operations(self) -> OperationsResource: ... def securityGateways(self) -> SecurityGatewaysResource: ... diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi index e5c0c4ca..4a99a710 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi @@ -661,6 +661,18 @@ class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription( ] type: typing_extensions.Literal["TYPE_UNSPECIFIED", "TRIAL", "PAID", "ALLOWLIST"] +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1SecurityGatewayOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class GoogleCloudBeyondcorpSecuritygatewaysV1alphaApplication( typing_extensions.TypedDict, total=False @@ -682,7 +694,13 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1alphaEndpointMatcher( class GoogleCloudBeyondcorpSecuritygatewaysV1alphaHub( typing_extensions.TypedDict, total=False ): - natGatewayConfig: GoogleCloudBeyondcorpSecuritygatewaysV1alphaNatGatewayConfig + internetGateway: GoogleCloudBeyondcorpSecuritygatewaysV1alphaInternetGateway + +@typing.type_check_only +class GoogleCloudBeyondcorpSecuritygatewaysV1alphaInternetGateway( + typing_extensions.TypedDict, total=False +): + assignedIps: _list[str] @typing.type_check_only class GoogleCloudBeyondcorpSecuritygatewaysV1alphaListApplicationsResponse( @@ -700,19 +718,6 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1alphaListSecurityGatewaysResponse( securityGateways: _list[GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway] unreachable: _list[str] -@typing.type_check_only -class GoogleCloudBeyondcorpSecuritygatewaysV1alphaNatGatewayConfig( - typing_extensions.TypedDict, total=False -): - natIps: _list[str] - -@typing.type_check_only -class GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering( - typing_extensions.TypedDict, total=False -): - dnsZones: _list[str] - targetVpcNetwork: str - @typing.type_check_only class GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGateway( typing_extensions.TypedDict, total=False @@ -745,14 +750,6 @@ class GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayOperationMetada target: str verb: str -@typing.type_check_only -class GoogleCloudBeyondcorpSecuritygatewaysV1alphaSetPeeringRequest( - typing_extensions.TypedDict, total=False -): - requestId: str - validateOnly: bool - vpcPeerings: _list[GoogleCloudBeyondcorpSecuritygatewaysV1alphaPeering] - @typing.type_check_only class GoogleCloudLocationListLocationsResponse( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/bigquery/v2/resources.pyi b/googleapiclient-stubs/_apis/bigquery/v2/resources.pyi index 95743575..28c0bdb8 100644 --- a/googleapiclient-stubs/_apis/bigquery/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/bigquery/v2/resources.pyi @@ -28,13 +28,19 @@ class BigqueryResource(googleapiclient.discovery.Resource): *, projectId: str, datasetId: str, + accessPolicyVersion: int = ..., datasetView: typing_extensions.Literal[ "DATASET_VIEW_UNSPECIFIED", "METADATA", "ACL", "FULL" ] = ..., **kwargs: typing.Any, ) -> DatasetHttpRequest: ... def insert( - self, *, projectId: str, body: Dataset = ..., **kwargs: typing.Any + self, + *, + projectId: str, + body: Dataset = ..., + accessPolicyVersion: int = ..., + **kwargs: typing.Any, ) -> DatasetHttpRequest: ... def list( self, @@ -57,6 +63,7 @@ class BigqueryResource(googleapiclient.discovery.Resource): projectId: str, datasetId: str, body: Dataset = ..., + accessPolicyVersion: int = ..., **kwargs: typing.Any, ) -> DatasetHttpRequest: ... def undelete( @@ -73,6 +80,7 @@ class BigqueryResource(googleapiclient.discovery.Resource): projectId: str, datasetId: str, body: Dataset = ..., + accessPolicyVersion: int = ..., **kwargs: typing.Any, ) -> DatasetHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi b/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi index 18650530..3144d3ec 100644 --- a/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi @@ -1126,6 +1126,7 @@ class MlStatistics(typing_extensions.TypedDict, total=False): "TENSORFLOW_LITE", "ONNX", "TRANSFORM_ONLY", + "CONTRIBUTION_ANALYSIS", ] trainingType: typing_extensions.Literal[ "TRAINING_TYPE_UNSPECIFIED", "SINGLE_TRAINING", "HPARAM_TUNING" @@ -1175,6 +1176,7 @@ class Model(typing_extensions.TypedDict, total=False): "TENSORFLOW_LITE", "ONNX", "TRANSFORM_ONLY", + "CONTRIBUTION_ANALYSIS", ] optimalTrialIds: _list[str] remoteModelInfo: RemoteModelInfo @@ -1634,6 +1636,9 @@ class Table(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] lastModifiedTime: str location: str + managedTableType: typing_extensions.Literal[ + "MANAGED_TABLE_TYPE_UNSPECIFIED", "NATIVE", "ICEBERG" + ] materializedView: MaterializedViewDefinition materializedViewStatus: MaterializedViewStatus maxStaleness: str @@ -1811,6 +1816,7 @@ class TrainingOptions(typing_extensions.TypedDict, total=False): colsampleBylevel: float colsampleBynode: float colsampleBytree: float + contributionMetric: str dartNormalizeType: typing_extensions.Literal[ "DART_NORMALIZE_TYPE_UNSPECIFIED", "TREE", "FOREST" ] @@ -1836,6 +1842,7 @@ class TrainingOptions(typing_extensions.TypedDict, total=False): "AUTO_SPLIT", ] decomposeTimeSeries: bool + dimensionIdColumns: _list[str] distanceType: typing_extensions.Literal[ "DISTANCE_TYPE_UNSPECIFIED", "EUCLIDEAN", "COSINE" ] @@ -2018,6 +2025,7 @@ class TrainingOptions(typing_extensions.TypedDict, total=False): inputLabelColumns: _list[str] instanceWeightColumn: str integratedGradientsNumSteps: str + isTestColumn: str itemColumn: str kmeansInitializationColumn: str kmeansInitializationMethod: typing_extensions.Literal[ @@ -2041,6 +2049,7 @@ class TrainingOptions(typing_extensions.TypedDict, total=False): maxParallelTrials: str maxTimeSeriesLength: str maxTreeDepth: str + minAprioriSupport: float minRelativeProgress: float minSplitLoss: float minTimeSeriesLength: str diff --git a/googleapiclient-stubs/_apis/bigqueryreservation/v1/schemas.pyi b/googleapiclient-stubs/_apis/bigqueryreservation/v1/schemas.pyi index 33de7b4e..aaf90cea 100644 --- a/googleapiclient-stubs/_apis/bigqueryreservation/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigqueryreservation/v1/schemas.pyi @@ -7,6 +7,7 @@ _list = list @typing.type_check_only class Assignment(typing_extensions.TypedDict, total=False): assignee: str + enableGeminiInBigquery: bool jobType: typing_extensions.Literal[ "JOB_TYPE_UNSPECIFIED", "PIPELINE", @@ -107,6 +108,7 @@ class Reservation(typing_extensions.TypedDict, total=False): "EDITION_UNSPECIFIED", "STANDARD", "ENTERPRISE", "ENTERPRISE_PLUS" ] ignoreIdleSlots: bool + labels: dict[str, typing.Any] multiRegionAuxiliary: bool name: str originalPrimaryLocation: str diff --git a/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi b/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi index 51bffcc3..40d632d0 100644 --- a/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi @@ -102,6 +102,11 @@ class Cluster(typing_extensions.TypedDict, total=False): encryptionConfig: EncryptionConfig location: str name: str + nodeScalingFactor: typing_extensions.Literal[ + "NODE_SCALING_FACTOR_UNSPECIFIED", + "NODE_SCALING_FACTOR_1X", + "NODE_SCALING_FACTOR_2X", + ] serveNodes: int state: typing_extensions.Literal[ "STATE_NOT_KNOWN", "READY", "CREATING", "RESIZING", "DISABLED" diff --git a/googleapiclient-stubs/_apis/calendar/v3/schemas.pyi b/googleapiclient-stubs/_apis/calendar/v3/schemas.pyi index 21c53c62..4efd0ea6 100644 --- a/googleapiclient-stubs/_apis/calendar/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/calendar/v3/schemas.pyi @@ -157,6 +157,7 @@ class Event(typing_extensions.TypedDict, total=False): attachments: _list[EventAttachment] attendees: _list[EventAttendee] attendeesOmitted: bool + birthdayProperties: EventBirthdayProperties colorId: str conferenceData: ConferenceData created: str @@ -217,6 +218,12 @@ class EventAttendee(typing_extensions.TypedDict, total=False): responseStatus: str self: bool +@typing.type_check_only +class EventBirthdayProperties(typing_extensions.TypedDict, total=False): + contact: str + customTypeName: str + type: str + @typing.type_check_only class EventDateTime(typing_extensions.TypedDict, total=False): date: str diff --git a/googleapiclient-stubs/_apis/chat/v1/schemas.pyi b/googleapiclient-stubs/_apis/chat/v1/schemas.pyi index b8778d09..051f016c 100644 --- a/googleapiclient-stubs/_apis/chat/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/chat/v1/schemas.pyi @@ -260,11 +260,13 @@ class FormAction(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleAppsCardV1Action(typing_extensions.TypedDict, total=False): + allWidgetsAreRequired: bool function: str interaction: typing_extensions.Literal["INTERACTION_UNSPECIFIED", "OPEN_DIALOG"] loadIndicator: typing_extensions.Literal["SPINNER", "NONE"] parameters: _list[GoogleAppsCardV1ActionParameter] persistValues: bool + requiredWidgets: _list[str] @typing.type_check_only class GoogleAppsCardV1ActionParameter(typing_extensions.TypedDict, total=False): @@ -285,6 +287,9 @@ class GoogleAppsCardV1Button(typing_extensions.TypedDict, total=False): icon: GoogleAppsCardV1Icon onClick: GoogleAppsCardV1OnClick text: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "OUTLINED", "FILLED", "FILLED_TONAL", "BORDERLESS" + ] @typing.type_check_only class GoogleAppsCardV1ButtonList(typing_extensions.TypedDict, total=False): @@ -323,6 +328,39 @@ class GoogleAppsCardV1CardHeader(typing_extensions.TypedDict, total=False): subtitle: str title: str +@typing.type_check_only +class GoogleAppsCardV1Carousel(typing_extensions.TypedDict, total=False): + carouselCards: _list[GoogleAppsCardV1CarouselCard] + +@typing.type_check_only +class GoogleAppsCardV1CarouselCard(typing_extensions.TypedDict, total=False): + footerWidgets: _list[GoogleAppsCardV1NestedWidget] + widgets: _list[GoogleAppsCardV1NestedWidget] + +@typing.type_check_only +class GoogleAppsCardV1Chip(typing_extensions.TypedDict, total=False): + altText: str + disabled: bool + enabled: bool + icon: GoogleAppsCardV1Icon + label: str + onClick: GoogleAppsCardV1OnClick + +@typing.type_check_only +class GoogleAppsCardV1ChipList(typing_extensions.TypedDict, total=False): + chips: _list[GoogleAppsCardV1Chip] + layout: typing_extensions.Literal[ + "LAYOUT_UNSPECIFIED", "WRAPPED", "HORIZONTAL_SCROLLABLE" + ] + +@typing.type_check_only +class GoogleAppsCardV1CollapseControl(typing_extensions.TypedDict, total=False): + collapseButton: GoogleAppsCardV1Button + expandButton: GoogleAppsCardV1Button + horizontalAlignment: typing_extensions.Literal[ + "HORIZONTAL_ALIGNMENT_UNSPECIFIED", "START", "CENTER", "END" + ] + @typing.type_check_only class GoogleAppsCardV1Column(typing_extensions.TypedDict, total=False): horizontalAlignment: typing_extensions.Literal[ @@ -424,12 +462,19 @@ class GoogleAppsCardV1MaterialIcon(typing_extensions.TypedDict, total=False): name: str weight: int +@typing.type_check_only +class GoogleAppsCardV1NestedWidget(typing_extensions.TypedDict, total=False): + buttonList: GoogleAppsCardV1ButtonList + image: GoogleAppsCardV1Image + textParagraph: GoogleAppsCardV1TextParagraph + @typing.type_check_only class GoogleAppsCardV1OnClick(typing_extensions.TypedDict, total=False): action: GoogleAppsCardV1Action card: GoogleAppsCardV1Card openDynamicLinkAction: GoogleAppsCardV1Action openLink: GoogleAppsCardV1OpenLink + overflowMenu: GoogleAppsCardV1OverflowMenu @typing.type_check_only class GoogleAppsCardV1OpenLink(typing_extensions.TypedDict, total=False): @@ -437,6 +482,17 @@ class GoogleAppsCardV1OpenLink(typing_extensions.TypedDict, total=False): openAs: typing_extensions.Literal["FULL_SIZE", "OVERLAY"] url: str +@typing.type_check_only +class GoogleAppsCardV1OverflowMenu(typing_extensions.TypedDict, total=False): + items: _list[GoogleAppsCardV1OverflowMenuItem] + +@typing.type_check_only +class GoogleAppsCardV1OverflowMenuItem(typing_extensions.TypedDict, total=False): + disabled: bool + onClick: GoogleAppsCardV1OnClick + startIcon: GoogleAppsCardV1Icon + text: str + @typing.type_check_only class GoogleAppsCardV1PlatformDataSource(typing_extensions.TypedDict, total=False): commonDataSource: typing_extensions.Literal["UNKNOWN", "USER"] @@ -444,6 +500,7 @@ class GoogleAppsCardV1PlatformDataSource(typing_extensions.TypedDict, total=Fals @typing.type_check_only class GoogleAppsCardV1Section(typing_extensions.TypedDict, total=False): + collapseControl: GoogleAppsCardV1CollapseControl collapsible: bool header: str uncollapsibleWidgetsCount: int @@ -497,15 +554,26 @@ class GoogleAppsCardV1TextInput(typing_extensions.TypedDict, total=False): onChangeAction: GoogleAppsCardV1Action placeholderText: str type: typing_extensions.Literal["SINGLE_LINE", "MULTIPLE_LINE"] + validation: GoogleAppsCardV1Validation value: str @typing.type_check_only class GoogleAppsCardV1TextParagraph(typing_extensions.TypedDict, total=False): + maxLines: int text: str +@typing.type_check_only +class GoogleAppsCardV1Validation(typing_extensions.TypedDict, total=False): + characterLimit: int + inputType: typing_extensions.Literal[ + "INPUT_TYPE_UNSPECIFIED", "TEXT", "INTEGER", "FLOAT", "EMAIL", "EMOJI_PICKER" + ] + @typing.type_check_only class GoogleAppsCardV1Widget(typing_extensions.TypedDict, total=False): buttonList: GoogleAppsCardV1ButtonList + carousel: GoogleAppsCardV1Carousel + chipList: GoogleAppsCardV1ChipList columns: GoogleAppsCardV1Columns dateTimePicker: GoogleAppsCardV1DateTimePicker decoratedText: GoogleAppsCardV1DecoratedText @@ -522,6 +590,7 @@ class GoogleAppsCardV1Widget(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleAppsCardV1Widgets(typing_extensions.TypedDict, total=False): buttonList: GoogleAppsCardV1ButtonList + chipList: GoogleAppsCardV1ChipList dateTimePicker: GoogleAppsCardV1DateTimePicker decoratedText: GoogleAppsCardV1DecoratedText image: GoogleAppsCardV1Image @@ -770,6 +839,22 @@ class OnClick(typing_extensions.TypedDict, total=False): class OpenLink(typing_extensions.TypedDict, total=False): url: str +@typing.type_check_only +class PermissionSetting(typing_extensions.TypedDict, total=False): + managersAllowed: bool + membersAllowed: bool + +@typing.type_check_only +class PermissionSettings(typing_extensions.TypedDict, total=False): + manageApps: PermissionSetting + manageMembersAndGroups: PermissionSetting + manageWebhooks: PermissionSetting + modifySpaceDetails: PermissionSetting + postMessages: PermissionSetting + replyMessages: PermissionSetting + toggleHistory: PermissionSetting + useAtMentionAll: PermissionSetting + @typing.type_check_only class QuotedMessageMetadata(typing_extensions.TypedDict, total=False): lastUpdateTime: str @@ -847,9 +932,16 @@ class Space(typing_extensions.TypedDict, total=False): displayName: str externalUserAllowed: bool importMode: bool + importModeExpireTime: str lastActiveTime: str membershipCount: MembershipCount name: str + permissionSettings: PermissionSettings + predefinedPermissionSettings: typing_extensions.Literal[ + "PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED", + "COLLABORATION_SPACE", + "ANNOUNCEMENT_SPACE", + ] singleUserBotDm: bool spaceDetails: SpaceDetails spaceHistoryState: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/checks/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/checks/v1alpha/resources.pyi index febbb35f..094f6d18 100644 --- a/googleapiclient-stubs/_apis/checks/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/checks/v1alpha/resources.pyi @@ -102,11 +102,50 @@ class ChecksServiceResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> OperationHttpRequest: ... + @typing.type_check_only + class ScansResource(googleapiclient.discovery.Resource): + def generate( + self, + *, + parent: str, + body: GoogleChecksRepoScanV1alphaGenerateScanRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleChecksRepoScanV1alphaRepoScanHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleChecksRepoScanV1alphaListRepoScansResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleChecksRepoScanV1alphaListRepoScansResponseHttpRequest, + previous_response: GoogleChecksRepoScanV1alphaListRepoScansResponse, + ) -> ( + GoogleChecksRepoScanV1alphaListRepoScansResponseHttpRequest | None + ): ... + def operations(self) -> OperationsResource: ... + def scans(self) -> ScansResource: ... def apps(self) -> AppsResource: ... def repos(self) -> ReposResource: ... + @typing.type_check_only + class AisafetyResource(googleapiclient.discovery.Resource): + def classifyContent( + self, + *, + body: GoogleChecksAisafetyV1alphaClassifyContentRequest = ..., + **kwargs: typing.Any, + ) -> GoogleChecksAisafetyV1alphaClassifyContentResponseHttpRequest: ... + @typing.type_check_only class MediaResource(googleapiclient.discovery.Resource): def upload( @@ -130,6 +169,7 @@ class ChecksServiceResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def accounts(self) -> AccountsResource: ... + def aisafety(self) -> AisafetyResource: ... def media(self) -> MediaResource: ... @typing.type_check_only @@ -158,6 +198,34 @@ class GoogleChecksAccountV1alphaListAppsResponseHttpRequest( num_retries: int = 0, ) -> GoogleChecksAccountV1alphaListAppsResponse: ... +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleChecksAisafetyV1alphaClassifyContentResponse: ... + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaListRepoScansResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleChecksRepoScanV1alphaListRepoScansResponse: ... + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaRepoScanHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleChecksRepoScanV1alphaRepoScan: ... + @typing.type_check_only class GoogleChecksReportV1alphaListReportsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi index 3e7650f7..1719a962 100644 --- a/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi @@ -22,6 +22,238 @@ class GoogleChecksAccountV1alphaListAppsResponse( apps: _list[GoogleChecksAccountV1alphaApp] nextPageToken: str +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentRequest( + typing_extensions.TypedDict, total=False +): + classifierVersion: typing_extensions.Literal[ + "CLASSIFIER_VERSION_UNSPECIFIED", "STABLE", "LATEST" + ] + context: GoogleChecksAisafetyV1alphaClassifyContentRequestContext + input: GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent + policies: _list[GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig] + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentRequestContext( + typing_extensions.TypedDict, total=False +): + prompt: str + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentRequestInputContent( + typing_extensions.TypedDict, total=False +): + textInput: GoogleChecksAisafetyV1alphaTextInput + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentRequestPolicyConfig( + typing_extensions.TypedDict, total=False +): + policyType: typing_extensions.Literal[ + "POLICY_TYPE_UNSPECIFIED", + "DANGEROUS_CONTENT", + "PII_SOLICITING_RECITING", + "HARASSMENT", + "SEXUALLY_EXPLICIT", + "HATE_SPEECH", + "MEDICAL_INFO", + "VIOLENCE_AND_GORE", + "OBSCENITY_AND_PROFANITY", + ] + threshold: float + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentResponse( + typing_extensions.TypedDict, total=False +): + policyResults: _list[GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult] + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaClassifyContentResponsePolicyResult( + typing_extensions.TypedDict, total=False +): + policyType: typing_extensions.Literal[ + "POLICY_TYPE_UNSPECIFIED", + "DANGEROUS_CONTENT", + "PII_SOLICITING_RECITING", + "HARASSMENT", + "SEXUALLY_EXPLICIT", + "HATE_SPEECH", + "MEDICAL_INFO", + "VIOLENCE_AND_GORE", + "OBSCENITY_AND_PROFANITY", + ] + score: float + violationResult: typing_extensions.Literal[ + "VIOLATION_RESULT_UNSPECIFIED", + "VIOLATIVE", + "NON_VIOLATIVE", + "CLASSIFICATION_ERROR", + ] + +@typing.type_check_only +class GoogleChecksAisafetyV1alphaTextInput(typing_extensions.TypedDict, total=False): + content: str + languageCode: str + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaCliAnalysis(typing_extensions.TypedDict, total=False): + codeScans: _list[GoogleChecksRepoScanV1alphaCodeScan] + sources: _list[GoogleChecksRepoScanV1alphaSource] + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaCodeAttribution( + typing_extensions.TypedDict, total=False +): + codeExcerpt: str + lineNumber: int + path: str + startLineNumber: int + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaCodeScan(typing_extensions.TypedDict, total=False): + dataTypeClassifications: _list[ + GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification + ] + sourceCode: GoogleChecksRepoScanV1alphaSourceCode + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaCodeScanDataTypeClassification( + typing_extensions.TypedDict, total=False +): + dataType: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", + "DATA_TYPE_APPROXIMATE_LOCATION", + "DATA_TYPE_PRECISE_LOCATION", + "DATA_TYPE_PERSONAL_NAME", + "DATA_TYPE_EMAIL_ADDRESS", + "DATA_TYPE_USER_IDS", + "DATA_TYPE_PHYSICAL_ADDRESS", + "DATA_TYPE_PHONE_NUMBER", + "DATA_TYPE_RACE_AND_ETHNICITY", + "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS", + "DATA_TYPE_SEXUAL_ORIENTATION", + "DATA_TYPE_OTHER_PERSONAL_INFO", + "DATA_TYPE_PAYMENT_INFO", + "DATA_TYPE_PURCHASE_HISTORY", + "DATA_TYPE_CREDIT_SCORE", + "DATA_TYPE_OTHER_FINANCIAL_INFO", + "DATA_TYPE_HEALTH_INFO", + "DATA_TYPE_FITNESS_INFO", + "DATA_TYPE_EMAILS", + "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", + "DATA_TYPE_PHOTOS", + "DATA_TYPE_VIDEOS", + "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", + "DATA_TYPE_MUSIC_FILES", + "DATA_TYPE_OTHER_AUDIO_FILES", + "DATA_TYPE_FILES_AND_DOCS", + "DATA_TYPE_CALENDAR_EVENTS", + "DATA_TYPE_CONTACTS", + "DATA_TYPE_APP_INTERACTIONS", + "DATA_TYPE_IN_APP_SEARCH_HISTORY", + "DATA_TYPE_INSTALLED_APPS", + "DATA_TYPE_OTHER_USER_GENERATED_CONTENT", + "DATA_TYPE_OTHER_ACTIONS", + "DATA_TYPE_WEB_BROWSING_HISTORY", + "DATA_TYPE_CRASH_LOGS", + "DATA_TYPE_PERFORMANCE_DIAGNOSTICS", + "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA", + "DATA_TYPE_DEVICE_OR_OTHER_IDS", + ] + lineNumber: int + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaGenerateScanRequest( + typing_extensions.TypedDict, total=False +): + cliAnalysis: GoogleChecksRepoScanV1alphaCliAnalysis + cliVersion: str + localScanPath: str + scmMetadata: GoogleChecksRepoScanV1alphaScmMetadata + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaListRepoScansResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + repoScans: _list[GoogleChecksRepoScanV1alphaRepoScan] + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaPullRequest(typing_extensions.TypedDict, total=False): + baseBranch: str + prNumber: str + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaRepoScan(typing_extensions.TypedDict, total=False): + cliVersion: str + localScanPath: str + name: str + resultsUri: str + scmMetadata: GoogleChecksRepoScanV1alphaScmMetadata + sources: _list[GoogleChecksRepoScanV1alphaSource] + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaScmMetadata(typing_extensions.TypedDict, total=False): + branch: str + pullRequest: GoogleChecksRepoScanV1alphaPullRequest + remoteUri: str + revisionId: str + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaSource(typing_extensions.TypedDict, total=False): + codeAttribution: GoogleChecksRepoScanV1alphaCodeAttribution + dataType: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", + "DATA_TYPE_APPROXIMATE_LOCATION", + "DATA_TYPE_PRECISE_LOCATION", + "DATA_TYPE_PERSONAL_NAME", + "DATA_TYPE_EMAIL_ADDRESS", + "DATA_TYPE_USER_IDS", + "DATA_TYPE_PHYSICAL_ADDRESS", + "DATA_TYPE_PHONE_NUMBER", + "DATA_TYPE_RACE_AND_ETHNICITY", + "DATA_TYPE_POLITICAL_OR_RELIGIOUS_BELIEFS", + "DATA_TYPE_SEXUAL_ORIENTATION", + "DATA_TYPE_OTHER_PERSONAL_INFO", + "DATA_TYPE_PAYMENT_INFO", + "DATA_TYPE_PURCHASE_HISTORY", + "DATA_TYPE_CREDIT_SCORE", + "DATA_TYPE_OTHER_FINANCIAL_INFO", + "DATA_TYPE_HEALTH_INFO", + "DATA_TYPE_FITNESS_INFO", + "DATA_TYPE_EMAILS", + "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", + "DATA_TYPE_PHOTOS", + "DATA_TYPE_VIDEOS", + "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", + "DATA_TYPE_MUSIC_FILES", + "DATA_TYPE_OTHER_AUDIO_FILES", + "DATA_TYPE_FILES_AND_DOCS", + "DATA_TYPE_CALENDAR_EVENTS", + "DATA_TYPE_CONTACTS", + "DATA_TYPE_APP_INTERACTIONS", + "DATA_TYPE_IN_APP_SEARCH_HISTORY", + "DATA_TYPE_INSTALLED_APPS", + "DATA_TYPE_OTHER_USER_GENERATED_CONTENT", + "DATA_TYPE_OTHER_ACTIONS", + "DATA_TYPE_WEB_BROWSING_HISTORY", + "DATA_TYPE_CRASH_LOGS", + "DATA_TYPE_PERFORMANCE_DIAGNOSTICS", + "DATA_TYPE_OTHER_APP_PERFORMANCE_DATA", + "DATA_TYPE_DEVICE_OR_OTHER_IDS", + ] + falsePositive: bool + +@typing.type_check_only +class GoogleChecksRepoScanV1alphaSourceCode(typing_extensions.TypedDict, total=False): + code: str + endLine: int + path: str + startLine: int + @typing.type_check_only class GoogleChecksReportV1alphaAnalyzeUploadRequest( typing_extensions.TypedDict, total=False @@ -143,6 +375,9 @@ class GoogleChecksReportV1alphaCheck(typing_extensions.TypedDict, total=False): "DATA_MONITORING_CRITICAL_SDK_ISSUE", "PRIVACY_POLICY_DATA_TYPE_SENSITIVE_INFO", "DATA_MONITORING_PII_LOGCAT_LEAK", + "DATA_MONITORING_MINIMIZE_PERMISSION_MEDIA", + "DATA_MONITORING_MINIMIZE_PERMISSION_CAMERA", + "DATA_MONITORING_MINIMIZE_PERMISSION_DOCUMENTS", ] @typing.type_check_only @@ -216,6 +451,7 @@ class GoogleChecksReportV1alphaCheckDataTypeEvidence( "DATA_TYPE_FITNESS_INFO", "DATA_TYPE_EMAILS", "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", "DATA_TYPE_PHOTOS", "DATA_TYPE_VIDEOS", "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", @@ -376,6 +612,7 @@ class GoogleChecksReportV1alphaDataMonitoringDataTypeResult( "DATA_TYPE_FITNESS_INFO", "DATA_TYPE_EMAILS", "DATA_TYPE_TEXT_MESSAGES", + "DATA_TYPE_OTHER_IN_APP_MESSAGES", "DATA_TYPE_PHOTOS", "DATA_TYPE_VIDEOS", "DATA_TYPE_VOICE_OR_SOUND_RECORDINGS", diff --git a/googleapiclient-stubs/_apis/chromemanagement/v1/resources.pyi b/googleapiclient-stubs/_apis/chromemanagement/v1/resources.pyi index 5b6ed341..443aa42f 100644 --- a/googleapiclient-stubs/_apis/chromemanagement/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/chromemanagement/v1/resources.pyi @@ -94,6 +94,33 @@ class ChromeManagementResource(googleapiclient.discovery.Resource): def chrome(self) -> ChromeResource: ... def web(self) -> WebResource: ... + @typing.type_check_only + class ProfilesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleChromeManagementVersionsV1ChromeBrowserProfileHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponseHttpRequest, + previous_response: GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse, + ) -> ( + GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponseHttpRequest + | None + ): ... + @typing.type_check_only class ReportsResource(googleapiclient.discovery.Resource): def countChromeBrowsersNeedingAttention( @@ -359,6 +386,7 @@ class ChromeManagementResource(googleapiclient.discovery.Resource): def users(self) -> UsersResource: ... def apps(self) -> AppsResource: ... + def profiles(self) -> ProfilesResource: ... def reports(self) -> ReportsResource: ... def telemetry(self) -> TelemetryResource: ... @@ -596,6 +624,26 @@ class GoogleChromeManagementV1TelemetryUserHttpRequest( num_retries: int = 0, ) -> GoogleChromeManagementV1TelemetryUser: ... +@typing.type_check_only +class GoogleChromeManagementVersionsV1ChromeBrowserProfileHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleChromeManagementVersionsV1ChromeBrowserProfile: ... + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse: ... + @typing.type_check_only class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi index 45412b9b..628cdf43 100644 --- a/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi @@ -137,7 +137,7 @@ class GoogleChromeManagementV1BootPerformanceReport( @typing.type_check_only class GoogleChromeManagementV1BrowserVersion(typing_extensions.TypedDict, total=False): channel: typing_extensions.Literal[ - "RELEASE_CHANNEL_UNSPECIFIED", "CANARY", "DEV", "BETA", "STABLE" + "RELEASE_CHANNEL_UNSPECIFIED", "CANARY", "DEV", "BETA", "STABLE", "LTS" ] count: str deviceOsVersion: str @@ -492,6 +492,7 @@ class GoogleChromeManagementV1InstalledApp(typing_extensions.TypedDict, total=Fa homepageUri: str osUserCount: str permissions: _list[str] + riskAssessment: GoogleChromeManagementV1RiskAssessmentData @typing.type_check_only class GoogleChromeManagementV1KioskAppStatusReport( @@ -661,6 +662,41 @@ class GoogleChromeManagementV1PrinterReport(typing_extensions.TypedDict, total=F printerModel: str userCount: str +@typing.type_check_only +class GoogleChromeManagementV1RiskAssessment(typing_extensions.TypedDict, total=False): + assessment: str + detailsUrl: str + version: str + +@typing.type_check_only +class GoogleChromeManagementV1RiskAssessmentData( + typing_extensions.TypedDict, total=False +): + entries: _list[GoogleChromeManagementV1RiskAssessmentEntry] + overallRiskLevel: typing_extensions.Literal[ + "RISK_LEVEL_UNSPECIFIED", + "RISK_LEVEL_LOW", + "RISK_LEVEL_MEDIUM", + "RISK_LEVEL_HIGH", + ] + +@typing.type_check_only +class GoogleChromeManagementV1RiskAssessmentEntry( + typing_extensions.TypedDict, total=False +): + provider: typing_extensions.Literal[ + "RISK_ASSESSMENT_PROVIDER_UNSPECIFIED", + "RISK_ASSESSMENT_PROVIDER_CRXCAVATOR", + "RISK_ASSESSMENT_PROVIDER_SPIN_AI", + ] + riskAssessment: GoogleChromeManagementV1RiskAssessment + riskLevel: typing_extensions.Literal[ + "RISK_LEVEL_UNSPECIFIED", + "RISK_LEVEL_LOW", + "RISK_LEVEL_MEDIUM", + "RISK_LEVEL_HIGH", + ] + @typing.type_check_only class GoogleChromeManagementV1RuntimeCountersReport( typing_extensions.TypedDict, total=False @@ -789,6 +825,8 @@ class GoogleChromeManagementV1TelemetryAppLaunchEvent( "APPLICATION_LAUNCH_SOURCE_WELCOME_TOUR", "APPLICATION_LAUNCH_SOURCE_FOCUS_MODE", "APPLICATION_LAUNCH_SOURCE_SPARKY", + "APPLICATION_LAUNCH_SOURCE_NAVIGATION_CAPTURING", + "APPLICATION_LAUNCH_SOURCE_WEB_INSTALL_API", ] appType: typing_extensions.Literal[ "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED", @@ -1097,6 +1135,255 @@ class GoogleChromeManagementV1UserRequestingExtensionDetails( email: str justification: str +@typing.type_check_only +class GoogleChromeManagementVersionsV1AttestationCredential( + typing_extensions.TypedDict, total=False +): + keyRotationTime: str + keyTrustLevel: typing_extensions.Literal[ + "KEY_TRUST_LEVEL_UNSPECIFIED", "CHROME_BROWSER_HW_KEY", "CHROME_BROWSER_OS_KEY" + ] + keyType: typing_extensions.Literal["KEY_TYPE_UNSPECIFIED", "RSA_KEY", "EC_KEY"] + publicKey: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1CertificateProvisioningProcess( + typing_extensions.TypedDict, total=False +): + caConnectionAdapterConfigReference: str + chromeOsDevice: GoogleChromeManagementVersionsV1ChromeOsDevice + chromeOsUserSession: GoogleChromeManagementVersionsV1ChromeOsUserSession + failureMessage: str + issuedCertificate: str + name: str + profileAdapterConfigReference: str + provisioningProfileId: str + signData: str + signature: str + signatureAlgorithm: typing_extensions.Literal[ + "SIGNATURE_ALGORITHM_UNSPECIFIED", + "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256", + "SIGNATURE_ALGORITHM_ECDSA_SHA256", + ] + startTime: str + subjectPublicKeyInfo: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ChromeBrowserProfile( + typing_extensions.TypedDict, total=False +): + affiliationState: typing_extensions.Literal[ + "AFFILIATION_STATE_UNSPECIFIED", + "UNAFFILIATED_GENERIC", + "PROFILE_ONLY", + "UNAFFILIATED_LOCAL_MACHINE", + "UNAFFILIATED_CLOUD_MACHINE", + "AFFILIATED_CLOUD_MANAGED", + ] + annotatedLocation: str + annotatedUser: str + attestationCredential: GoogleChromeManagementVersionsV1AttestationCredential + browserChannel: str + browserVersion: str + deviceInfo: GoogleChromeManagementVersionsV1DeviceInfo + displayName: str + etag: str + extensionCount: str + firstEnrollmentTime: str + identityProvider: typing_extensions.Literal[ + "IDENTITY_PROVIDER_UNSPECIFIED", + "GOOGLE_IDENTITY_PROVIDER", + "EXTERNAL_IDENTITY_PROVIDER", + ] + lastActivityTime: str + lastPolicyFetchTime: str + lastPolicySyncTime: str + lastStatusReportTime: str + name: str + osPlatformType: str + osPlatformVersion: str + osVersion: str + policyCount: str + profileId: str + profilePermanentId: str + reportingData: GoogleChromeManagementVersionsV1ReportingData + userEmail: str + userId: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ChromeOsDevice( + typing_extensions.TypedDict, total=False +): + deviceDirectoryApiId: str + serialNumber: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ChromeOsUserSession( + typing_extensions.TypedDict, total=False +): + chromeOsDevice: GoogleChromeManagementVersionsV1ChromeOsDevice + userDirectoryApiId: str + userPrimaryEmail: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1DeviceInfo( + typing_extensions.TypedDict, total=False +): + affiliatedDeviceId: str + deviceType: typing_extensions.Literal["DEVICE_TYPE_UNSPECIFIED", "CHROME_BROWSER"] + hostname: str + machine: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse( + typing_extensions.TypedDict, total=False +): + chromeBrowserProfiles: _list[GoogleChromeManagementVersionsV1ChromeBrowserProfile] + nextPageToken: str + totalSize: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ReportingData( + typing_extensions.TypedDict, total=False +): + browserExecutablePath: str + extensionData: _list[GoogleChromeManagementVersionsV1ReportingDataExtensionData] + extensionPolicyData: _list[ + GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData + ] + installedBrowserVersion: str + policyData: _list[GoogleChromeManagementVersionsV1ReportingDataPolicyData] + profilePath: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData( + typing_extensions.TypedDict, total=False +): + source: typing_extensions.Literal[ + "POLICY_SOURCE_UNSPECIFIED", + "MACHINE_PLATFORM", + "USER_PLATFORM", + "MACHINE_LEVEL_USER_CLOUD", + "USER_CLOUD", + "MACHINE_MERGED", + ] + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ReportingDataExtensionData( + typing_extensions.TypedDict, total=False +): + description: str + extensionId: str + extensionType: typing_extensions.Literal[ + "EXTENSION_TYPE_UNSPECIFIED", "EXTENSION", "APP", "THEME", "HOSTED_APP" + ] + homepageUri: str + installationType: typing_extensions.Literal[ + "INSTALLATION_TYPE_UNSPECIFIED", + "MULTIPLE", + "NORMAL", + "ADMIN", + "DEVELOPMENT", + "SIDELOAD", + "OTHER", + ] + isDisabled: bool + isWebstoreExtension: bool + manifestVersion: int + name: str + permissions: _list[str] + version: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ReportingDataExtensionPolicyData( + typing_extensions.TypedDict, total=False +): + extensionId: str + extensionName: str + policyData: _list[GoogleChromeManagementVersionsV1ReportingDataPolicyData] + +@typing.type_check_only +class GoogleChromeManagementVersionsV1ReportingDataPolicyData( + typing_extensions.TypedDict, total=False +): + conflicts: _list[GoogleChromeManagementVersionsV1ReportingDataConflictingPolicyData] + error: str + name: str + source: typing_extensions.Literal[ + "POLICY_SOURCE_UNSPECIFIED", + "MACHINE_PLATFORM", + "USER_PLATFORM", + "MACHINE_LEVEL_USER_CLOUD", + "USER_CLOUD", + "MACHINE_MERGED", + ] + value: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1SignDataMetadata( + typing_extensions.TypedDict, total=False +): + startTime: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1SignDataResponse( + typing_extensions.TypedDict, total=False +): + certificateProvisioningProcess: ( + GoogleChromeManagementVersionsV1CertificateProvisioningProcess + ) + +@typing.type_check_only +class GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess( + typing_extensions.TypedDict, total=False +): + caConnectionAdapterConfigReference: str + chromeOsDevice: GoogleChromeManagementVersionsV1alpha1ChromeOsDevice + chromeOsUserSession: GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession + failureMessage: str + issuedCertificate: str + name: str + profileAdapterConfigReference: str + provisioningProfileId: str + signData: str + signature: str + signatureAlgorithm: typing_extensions.Literal[ + "SIGNATURE_ALGORITHM_UNSPECIFIED", + "SIGNATURE_ALGORITHM_RSA_PKCS1_V1_5_SHA256", + "SIGNATURE_ALGORITHM_ECDSA_SHA256", + ] + startTime: str + subjectPublicKeyInfo: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1alpha1ChromeOsDevice( + typing_extensions.TypedDict, total=False +): + deviceDirectoryApiId: str + serialNumber: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1alpha1ChromeOsUserSession( + typing_extensions.TypedDict, total=False +): + chromeOsDevice: GoogleChromeManagementVersionsV1alpha1ChromeOsDevice + userDirectoryApiId: str + userPrimaryEmail: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1alpha1SignDataMetadata( + typing_extensions.TypedDict, total=False +): + startTime: str + +@typing.type_check_only +class GoogleChromeManagementVersionsV1alpha1SignDataResponse( + typing_extensions.TypedDict, total=False +): + certificateProvisioningProcess: ( + GoogleChromeManagementVersionsV1alpha1CertificateProvisioningProcess + ) + @typing.type_check_only class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/classroom/v1/resources.pyi b/googleapiclient-stubs/_apis/classroom/v1/resources.pyi index 829bd37c..0ae581fe 100644 --- a/googleapiclient-stubs/_apis/classroom/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/classroom/v1/resources.pyi @@ -244,6 +244,57 @@ class ClassroomResource(googleapiclient.discovery.Resource): ) -> AddOnAttachmentHttpRequest: ... def studentSubmissions(self) -> StudentSubmissionsResource: ... + @typing.type_check_only + class RubricsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + courseId: str, + courseWorkId: str, + body: Rubric = ..., + **kwargs: typing.Any, + ) -> RubricHttpRequest: ... + def delete( + self, + *, + courseId: str, + courseWorkId: str, + id: str, + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, + *, + courseId: str, + courseWorkId: str, + id: str, + **kwargs: typing.Any, + ) -> RubricHttpRequest: ... + def list( + self, + *, + courseId: str, + courseWorkId: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRubricsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRubricsResponseHttpRequest, + previous_response: ListRubricsResponse, + ) -> ListRubricsResponseHttpRequest | None: ... + def patch( + self, + *, + courseId: str, + courseWorkId: str, + id: str, + body: Rubric = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> RubricHttpRequest: ... + @typing.type_check_only class StudentSubmissionsResource(googleapiclient.discovery.Resource): def get( @@ -395,7 +446,18 @@ class ClassroomResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> CourseWorkHttpRequest: ... + def updateRubric( + self, + *, + courseId: str, + courseWorkId: str, + body: Rubric = ..., + id: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> RubricHttpRequest: ... def addOnAttachments(self) -> AddOnAttachmentsResource: ... + def rubrics(self) -> RubricsResource: ... def studentSubmissions(self) -> StudentSubmissionsResource: ... @typing.type_check_only @@ -1056,6 +1118,14 @@ class ListInvitationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListInvitationsResponse: ... +@typing.type_check_only +class ListRubricsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRubricsResponse: ... + @typing.type_check_only class ListStudentSubmissionsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -1096,6 +1166,14 @@ class RegistrationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Registration: ... +@typing.type_check_only +class RubricHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Rubric: ... + @typing.type_check_only class StudentHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi b/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi index 40a452be..6a0819e8 100644 --- a/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi @@ -198,6 +198,13 @@ class CourseWorkMaterial(typing_extensions.TypedDict, total=False): topicId: str updateTime: str +@typing.type_check_only +class Criterion(typing_extensions.TypedDict, total=False): + description: str + id: str + levels: _list[Level] + title: str + @typing.type_check_only class Date(typing_extensions.TypedDict, total=False): day: int @@ -309,6 +316,13 @@ class Invitation(typing_extensions.TypedDict, total=False): ] userId: str +@typing.type_check_only +class Level(typing_extensions.TypedDict, total=False): + description: str + id: str + points: float + title: str + @typing.type_check_only class Link(typing_extensions.TypedDict, total=False): thumbnailUrl: str @@ -360,6 +374,11 @@ class ListInvitationsResponse(typing_extensions.TypedDict, total=False): invitations: _list[Invitation] nextPageToken: str +@typing.type_check_only +class ListRubricsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rubrics: _list[Rubric] + @typing.type_check_only class ListStudentSubmissionsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -437,6 +456,22 @@ class Registration(typing_extensions.TypedDict, total=False): @typing.type_check_only class ReturnStudentSubmissionRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Rubric(typing_extensions.TypedDict, total=False): + courseId: str + courseWorkId: str + creationTime: str + criteria: _list[Criterion] + id: str + sourceSpreadsheetId: str + updateTime: str + +@typing.type_check_only +class RubricGrade(typing_extensions.TypedDict, total=False): + criterionId: str + levelId: str + points: float + @typing.type_check_only class SharedDriveFile(typing_extensions.TypedDict, total=False): driveFile: DriveFile @@ -476,6 +511,7 @@ class StudentContext(typing_extensions.TypedDict, total=False): class StudentSubmission(typing_extensions.TypedDict, total=False): alternateLink: str assignedGrade: float + assignedRubricGrades: dict[str, typing.Any] assignmentSubmission: AssignmentSubmission associatedWithDeveloper: bool courseId: str @@ -488,6 +524,7 @@ class StudentSubmission(typing_extensions.TypedDict, total=False): ] creationTime: str draftGrade: float + draftRubricGrades: dict[str, typing.Any] id: str late: bool multipleChoiceSubmission: MultipleChoiceSubmission diff --git a/googleapiclient-stubs/_apis/cloudasset/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudasset/v1/schemas.pyi index 606e7f30..ba39f575 100644 --- a/googleapiclient-stubs/_apis/cloudasset/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudasset/v1/schemas.pyi @@ -532,12 +532,14 @@ class GoogleIdentityAccesscontextmanagerV1EgressPolicy( ): egressFrom: GoogleIdentityAccesscontextmanagerV1EgressFrom egressTo: GoogleIdentityAccesscontextmanagerV1EgressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressSource( typing_extensions.TypedDict, total=False ): accessLevel: str + resource: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressTo( @@ -566,6 +568,7 @@ class GoogleIdentityAccesscontextmanagerV1IngressPolicy( ): ingressFrom: GoogleIdentityAccesscontextmanagerV1IngressFrom ingressTo: GoogleIdentityAccesscontextmanagerV1IngressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1IngressSource( @@ -609,6 +612,7 @@ class GoogleIdentityAccesscontextmanagerV1ServicePerimeter( typing_extensions.TypedDict, total=False ): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" diff --git a/googleapiclient-stubs/_apis/cloudasset/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudasset/v1beta1/schemas.pyi index 0f2a1208..97f56d1c 100644 --- a/googleapiclient-stubs/_apis/cloudasset/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudasset/v1beta1/schemas.pyi @@ -232,12 +232,14 @@ class GoogleIdentityAccesscontextmanagerV1EgressPolicy( ): egressFrom: GoogleIdentityAccesscontextmanagerV1EgressFrom egressTo: GoogleIdentityAccesscontextmanagerV1EgressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressSource( typing_extensions.TypedDict, total=False ): accessLevel: str + resource: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressTo( @@ -266,6 +268,7 @@ class GoogleIdentityAccesscontextmanagerV1IngressPolicy( ): ingressFrom: GoogleIdentityAccesscontextmanagerV1IngressFrom ingressTo: GoogleIdentityAccesscontextmanagerV1IngressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1IngressSource( @@ -309,6 +312,7 @@ class GoogleIdentityAccesscontextmanagerV1ServicePerimeter( typing_extensions.TypedDict, total=False ): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" diff --git a/googleapiclient-stubs/_apis/cloudasset/v1p1beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudasset/v1p1beta1/schemas.pyi index 1b788d46..2c5f620c 100644 --- a/googleapiclient-stubs/_apis/cloudasset/v1p1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudasset/v1p1beta1/schemas.pyi @@ -207,12 +207,14 @@ class GoogleIdentityAccesscontextmanagerV1EgressPolicy( ): egressFrom: GoogleIdentityAccesscontextmanagerV1EgressFrom egressTo: GoogleIdentityAccesscontextmanagerV1EgressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressSource( typing_extensions.TypedDict, total=False ): accessLevel: str + resource: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressTo( @@ -241,6 +243,7 @@ class GoogleIdentityAccesscontextmanagerV1IngressPolicy( ): ingressFrom: GoogleIdentityAccesscontextmanagerV1IngressFrom ingressTo: GoogleIdentityAccesscontextmanagerV1IngressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1IngressSource( @@ -284,6 +287,7 @@ class GoogleIdentityAccesscontextmanagerV1ServicePerimeter( typing_extensions.TypedDict, total=False ): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" diff --git a/googleapiclient-stubs/_apis/cloudasset/v1p5beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudasset/v1p5beta1/schemas.pyi index 75195907..65c0458c 100644 --- a/googleapiclient-stubs/_apis/cloudasset/v1p5beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudasset/v1p5beta1/schemas.pyi @@ -215,12 +215,14 @@ class GoogleIdentityAccesscontextmanagerV1EgressPolicy( ): egressFrom: GoogleIdentityAccesscontextmanagerV1EgressFrom egressTo: GoogleIdentityAccesscontextmanagerV1EgressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressSource( typing_extensions.TypedDict, total=False ): accessLevel: str + resource: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressTo( @@ -249,6 +251,7 @@ class GoogleIdentityAccesscontextmanagerV1IngressPolicy( ): ingressFrom: GoogleIdentityAccesscontextmanagerV1IngressFrom ingressTo: GoogleIdentityAccesscontextmanagerV1IngressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1IngressSource( @@ -292,6 +295,7 @@ class GoogleIdentityAccesscontextmanagerV1ServicePerimeter( typing_extensions.TypedDict, total=False ): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" diff --git a/googleapiclient-stubs/_apis/cloudasset/v1p7beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudasset/v1p7beta1/schemas.pyi index a1a21c0b..cbc40125 100644 --- a/googleapiclient-stubs/_apis/cloudasset/v1p7beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudasset/v1p7beta1/schemas.pyi @@ -246,12 +246,14 @@ class GoogleIdentityAccesscontextmanagerV1EgressPolicy( ): egressFrom: GoogleIdentityAccesscontextmanagerV1EgressFrom egressTo: GoogleIdentityAccesscontextmanagerV1EgressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressSource( typing_extensions.TypedDict, total=False ): accessLevel: str + resource: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1EgressTo( @@ -280,6 +282,7 @@ class GoogleIdentityAccesscontextmanagerV1IngressPolicy( ): ingressFrom: GoogleIdentityAccesscontextmanagerV1IngressFrom ingressTo: GoogleIdentityAccesscontextmanagerV1IngressTo + title: str @typing.type_check_only class GoogleIdentityAccesscontextmanagerV1IngressSource( @@ -323,6 +326,7 @@ class GoogleIdentityAccesscontextmanagerV1ServicePerimeter( typing_extensions.TypedDict, total=False ): description: str + etag: str name: str perimeterType: typing_extensions.Literal[ "PERIMETER_TYPE_REGULAR", "PERIMETER_TYPE_BRIDGE" diff --git a/googleapiclient-stubs/_apis/cloudbilling/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudbilling/v1/schemas.pyi index e9f33f47..587f1395 100644 --- a/googleapiclient-stubs/_apis/cloudbilling/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudbilling/v1/schemas.pyi @@ -28,6 +28,7 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class BillingAccount(typing_extensions.TypedDict, total=False): + currencyCode: str displayName: str masterBillingAccount: str name: str diff --git a/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi index 0de9caba..7b8464dd 100644 --- a/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi @@ -33,6 +33,7 @@ class ArtifactResult(typing_extensions.TypedDict, total=False): @typing.type_check_only class Artifacts(typing_extensions.TypedDict, total=False): + goModules: _list[GoModule] images: _list[str] mavenArtifacts: _list[MavenArtifact] npmPackages: _list[NpmPackage] @@ -188,10 +189,13 @@ class BuildOperationMetadata(typing_extensions.TypedDict, total=False): class BuildOptions(typing_extensions.TypedDict, total=False): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool + enableStructuredLogging: bool env: _list[str] logStreamingOption: typing_extensions.Literal[ "STREAM_DEFAULT", "STREAM_ON", "STREAM_OFF" @@ -216,7 +220,7 @@ class BuildOptions(typing_extensions.TypedDict, total=False): requestedVerifyOption: typing_extensions.Literal["NOT_VERIFIED", "VERIFIED"] secretEnv: _list[str] sourceProvenanceHash: _list[ - typing_extensions.Literal["NONE", "SHA256", "MD5", "SHA512"] + typing_extensions.Literal["NONE", "SHA256", "MD5", "GO_MODULE_H1", "SHA512"] ] substitutionOption: typing_extensions.Literal["MUST_MATCH", "ALLOW_LOOSE"] volumes: _list[Volume] @@ -533,9 +537,18 @@ class GitSource(typing_extensions.TypedDict, total=False): revision: str url: str +@typing.type_check_only +class GoModule(typing_extensions.TypedDict, total=False): + modulePath: str + moduleVersion: str + repositoryLocation: str + repositoryName: str + repositoryProjectId: str + sourcePath: str + @typing.type_check_only class Hash(typing_extensions.TypedDict, total=False): - type: typing_extensions.Literal["NONE", "SHA256", "MD5", "SHA512"] + type: typing_extensions.Literal["NONE", "SHA256", "MD5", "GO_MODULE_H1", "SHA512"] value: str @typing.type_check_only @@ -638,8 +651,15 @@ class PoolOption(typing_extensions.TypedDict, total=False): @typing.type_check_only class PrivatePoolV1Config(typing_extensions.TypedDict, total=False): networkConfig: NetworkConfig + privateServiceConnect: PrivateServiceConnect workerConfig: WorkerConfig +@typing.type_check_only +class PrivateServiceConnect(typing_extensions.TypedDict, total=False): + networkAttachment: str + publicIpAddressDisabled: bool + routeAllTraffic: bool + @typing.type_check_only class ProcessAppManifestCallbackOperationMetadata( typing_extensions.TypedDict, total=False @@ -726,6 +746,7 @@ class Results(typing_extensions.TypedDict, total=False): artifactTiming: TimeSpan buildStepImages: _list[str] buildStepOutputs: _list[str] + goModules: _list[UploadedGoModule] images: _list[BuiltImage] mavenArtifacts: _list[UploadedMavenArtifact] npmPackages: _list[UploadedNpmPackage] @@ -835,6 +856,12 @@ class UpdateWorkerPoolOperationMetadata(typing_extensions.TypedDict, total=False createTime: str workerPool: str +@typing.type_check_only +class UploadedGoModule(typing_extensions.TypedDict, total=False): + fileHashes: FileHashes + pushTiming: TimeSpan + uri: str + @typing.type_check_only class UploadedMavenArtifact(typing_extensions.TypedDict, total=False): fileHashes: FileHashes diff --git a/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi index 8d774a0f..07260c36 100644 --- a/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi @@ -506,6 +506,7 @@ class CloudchannelResource(googleapiclient.discovery.Resource): self, *, account: str, + integrator: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -560,6 +561,37 @@ class CloudchannelResource(googleapiclient.discovery.Resource): def reports(self) -> ReportsResource: ... def skuGroups(self) -> SkuGroupsResource: ... + @typing.type_check_only + class IntegratorsResource(googleapiclient.discovery.Resource): + def listSubscribers( + self, + *, + integrator: str, + account: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1ListSubscribersResponseHttpRequest: ... + def listSubscribers_next( + self, + previous_request: GoogleCloudChannelV1ListSubscribersResponseHttpRequest, + previous_response: GoogleCloudChannelV1ListSubscribersResponse, + ) -> GoogleCloudChannelV1ListSubscribersResponseHttpRequest | None: ... + def registerSubscriber( + self, + *, + integrator: str, + body: GoogleCloudChannelV1RegisterSubscriberRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1RegisterSubscriberResponseHttpRequest: ... + def unregisterSubscriber( + self, + *, + integrator: str, + body: GoogleCloudChannelV1UnregisterSubscriberRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1UnregisterSubscriberResponseHttpRequest: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -639,6 +671,7 @@ class CloudchannelResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def accounts(self) -> AccountsResource: ... + def integrators(self) -> IntegratorsResource: ... def operations(self) -> OperationsResource: ... def products(self) -> ProductsResource: ... diff --git a/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi index 9d943170..a6f34226 100644 --- a/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi @@ -52,6 +52,7 @@ class GoogleCloudChannelV1ChangeOfferRequest(typing_extensions.TypedDict, total= billingAccount: str offer: str parameters: _list[GoogleCloudChannelV1Parameter] + priceReferenceId: str purchaseOrderId: str requestId: str @@ -261,6 +262,7 @@ class GoogleCloudChannelV1Entitlement(typing_extensions.TypedDict, total=False): name: str offer: str parameters: _list[GoogleCloudChannelV1Parameter] + priceReferenceId: str provisionedService: GoogleCloudChannelV1ProvisionedService provisioningState: typing_extensions.Literal[ "PROVISIONING_STATE_UNSPECIFIED", "ACTIVE", "SUSPENDED" @@ -664,6 +666,7 @@ class GoogleCloudChannelV1ProvisionedService(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudChannelV1PurchasableOffer(typing_extensions.TypedDict, total=False): offer: GoogleCloudChannelV1Offer + priceReferenceId: str @typing.type_check_only class GoogleCloudChannelV1PurchasableSku(typing_extensions.TypedDict, total=False): @@ -679,6 +682,8 @@ class GoogleCloudChannelV1QueryEligibleBillingAccountsResponse( class GoogleCloudChannelV1RegisterSubscriberRequest( typing_extensions.TypedDict, total=False ): + account: str + integrator: str serviceAccount: str @typing.type_check_only @@ -857,6 +862,7 @@ class GoogleCloudChannelV1TransferEntitlementsToGoogleRequest( @typing.type_check_only class GoogleCloudChannelV1TransferableOffer(typing_extensions.TypedDict, total=False): offer: GoogleCloudChannelV1Offer + priceReferenceId: str @typing.type_check_only class GoogleCloudChannelV1TransferableSku(typing_extensions.TypedDict, total=False): @@ -873,6 +879,8 @@ class GoogleCloudChannelV1TrialSettings(typing_extensions.TypedDict, total=False class GoogleCloudChannelV1UnregisterSubscriberRequest( typing_extensions.TypedDict, total=False ): + account: str + integrator: str serviceAccount: str @typing.type_check_only @@ -960,6 +968,7 @@ class GoogleCloudChannelV1alpha1Entitlement(typing_extensions.TypedDict, total=F numUnits: int offer: str parameters: _list[GoogleCloudChannelV1alpha1Parameter] + priceReferenceId: str provisionedService: GoogleCloudChannelV1alpha1ProvisionedService provisioningState: typing_extensions.Literal[ "PROVISIONING_STATE_UNSPECIFIED", @@ -1026,6 +1035,13 @@ class GoogleCloudChannelV1alpha1OperationMetadata( "PROVISION_CLOUD_IDENTITY", ] +@typing.type_check_only +class GoogleCloudChannelV1alpha1OpportunityEvent( + typing_extensions.TypedDict, total=False +): + eventType: typing_extensions.Literal["TYPE_UNSPECIFIED", "CREATED", "UPDATED"] + opportunity: str + @typing.type_check_only class GoogleCloudChannelV1alpha1Parameter(typing_extensions.TypedDict, total=False): editable: bool @@ -1106,6 +1122,7 @@ class GoogleCloudChannelV1alpha1SubscriberEvent( channelPartnerEvent: GoogleCloudChannelV1alpha1ChannelPartnerEvent customerEvent: GoogleCloudChannelV1alpha1CustomerEvent entitlementEvent: GoogleCloudChannelV1alpha1EntitlementEvent + opportunityEvent: GoogleCloudChannelV1alpha1OpportunityEvent @typing.type_check_only class GoogleCloudChannelV1alpha1TransferEntitlementsResponse( diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/resources.pyi index 40df4b62..9b0c2d6f 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/resources.pyi @@ -93,6 +93,17 @@ class CloudControlsPartnerServiceResource(googleapiclient.discovery.Resource): ) -> AccessApprovalRequestsResource: ... def violations(self) -> ViolationsResource: ... + def create( + self, + *, + parent: str, + body: Customer = ..., + customerId: str = ..., + **kwargs: typing.Any, + ) -> CustomerHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> CustomerHttpRequest: ... @@ -111,6 +122,14 @@ class CloudControlsPartnerServiceResource(googleapiclient.discovery.Resource): previous_request: ListCustomersResponseHttpRequest, previous_response: ListCustomersResponse, ) -> ListCustomersResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Customer = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> CustomerHttpRequest: ... def workloads(self) -> WorkloadsResource: ... def getPartner( @@ -150,6 +169,14 @@ class EkmConnectionsHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> EkmConnections: ... +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + @typing.type_check_only class ListAccessApprovalRequestsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi index 73e1239b..e50660eb 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi @@ -41,6 +41,7 @@ class Customer(typing_extensions.TypedDict, total=False): displayName: str isOnboarded: bool name: str + organizationDomain: str @typing.type_check_only class CustomerOnboardingState(typing_extensions.TypedDict, total=False): @@ -85,6 +86,9 @@ class EkmMetadata(typing_extensions.TypedDict, total=False): "EKM_SOLUTION_UNSPECIFIED", "FORTANIX", "FUTUREX", "THALES", "VIRTRU" ] +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Gcloud(typing_extensions.TypedDict, total=False): additionalLinks: _list[str] diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/resources.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/resources.pyi index 40df4b62..9b0c2d6f 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/resources.pyi @@ -93,6 +93,17 @@ class CloudControlsPartnerServiceResource(googleapiclient.discovery.Resource): ) -> AccessApprovalRequestsResource: ... def violations(self) -> ViolationsResource: ... + def create( + self, + *, + parent: str, + body: Customer = ..., + customerId: str = ..., + **kwargs: typing.Any, + ) -> CustomerHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> CustomerHttpRequest: ... @@ -111,6 +122,14 @@ class CloudControlsPartnerServiceResource(googleapiclient.discovery.Resource): previous_request: ListCustomersResponseHttpRequest, previous_response: ListCustomersResponse, ) -> ListCustomersResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Customer = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> CustomerHttpRequest: ... def workloads(self) -> WorkloadsResource: ... def getPartner( @@ -150,6 +169,14 @@ class EkmConnectionsHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> EkmConnections: ... +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + @typing.type_check_only class ListAccessApprovalRequestsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi index 73e1239b..e50660eb 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi @@ -41,6 +41,7 @@ class Customer(typing_extensions.TypedDict, total=False): displayName: str isOnboarded: bool name: str + organizationDomain: str @typing.type_check_only class CustomerOnboardingState(typing_extensions.TypedDict, total=False): @@ -85,6 +86,9 @@ class EkmMetadata(typing_extensions.TypedDict, total=False): "EKM_SOLUTION_UNSPECIFIED", "FORTANIX", "FUTUREX", "THALES", "VIRTRU" ] +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Gcloud(typing_extensions.TypedDict, total=False): additionalLinks: _list[str] diff --git a/googleapiclient-stubs/_apis/clouddeploy/v1/resources.pyi b/googleapiclient-stubs/_apis/clouddeploy/v1/resources.pyi index 94ea99d2..f204874b 100644 --- a/googleapiclient-stubs/_apis/clouddeploy/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/clouddeploy/v1/resources.pyi @@ -223,6 +223,7 @@ class CloudDeployResource(googleapiclient.discovery.Resource): *, parent: str, body: Rollout = ..., + overrideDeployPolicy: str | _list[str] = ..., requestId: str = ..., rolloutId: str = ..., startingPhaseId: str = ..., @@ -275,6 +276,7 @@ class CloudDeployResource(googleapiclient.discovery.Resource): *, parent: str, body: Release = ..., + overrideDeployPolicy: str | _list[str] = ..., releaseId: str = ..., requestId: str = ..., validateOnly: bool = ..., @@ -382,6 +384,72 @@ class CloudDeployResource(googleapiclient.discovery.Resource): def automations(self) -> AutomationsResource: ... def releases(self) -> ReleasesResource: ... + @typing.type_check_only + class DeployPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: DeployPolicy = ..., + deployPolicyId: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> DeployPolicyHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListDeployPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListDeployPoliciesResponseHttpRequest, + previous_response: ListDeployPoliciesResponse, + ) -> ListDeployPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: DeployPolicy = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -507,6 +575,7 @@ class CloudDeployResource(googleapiclient.discovery.Resource): ) -> ListLocationsResponseHttpRequest | None: ... def customTargetTypes(self) -> CustomTargetTypesResource: ... def deliveryPipelines(self) -> DeliveryPipelinesResource: ... + def deployPolicies(self) -> DeployPoliciesResource: ... def operations(self) -> OperationsResource: ... def targets(self) -> TargetsResource: ... @@ -606,6 +675,14 @@ class DeliveryPipelineHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> DeliveryPipeline: ... +@typing.type_check_only +class DeployPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DeployPolicy: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -662,6 +739,14 @@ class ListDeliveryPipelinesResponseHttpRequest(googleapiclient.http.HttpRequest) num_retries: int = 0, ) -> ListDeliveryPipelinesResponse: ... +@typing.type_check_only +class ListDeployPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListDeployPoliciesResponse: ... + @typing.type_check_only class ListJobRunsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi b/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi index 6314bc71..69e22da2 100644 --- a/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi @@ -27,6 +27,7 @@ class AdvanceRolloutOperation(typing_extensions.TypedDict, total=False): @typing.type_check_only class AdvanceRolloutRequest(typing_extensions.TypedDict, total=False): + overrideDeployPolicy: _list[str] phaseId: str @typing.type_check_only @@ -46,10 +47,16 @@ class AnthosCluster(typing_extensions.TypedDict, total=False): @typing.type_check_only class ApproveRolloutRequest(typing_extensions.TypedDict, total=False): approved: bool + overrideDeployPolicy: _list[str] @typing.type_check_only class ApproveRolloutResponse(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class AssociatedEntities(typing_extensions.TypedDict, total=False): + anthosClusters: _list[AnthosCluster] + gkeClusters: _list[GkeCluster] + @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -90,6 +97,7 @@ class AutomationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -108,10 +116,12 @@ class AutomationRule(typing_extensions.TypedDict, total=False): advanceRolloutRule: AdvanceRolloutRule promoteReleaseRule: PromoteReleaseRule repairRolloutRule: RepairRolloutRule + timedPromoteReleaseRule: TimedPromoteReleaseRule @typing.type_check_only class AutomationRuleCondition(typing_extensions.TypedDict, total=False): targetsPresentCondition: TargetsPresentCondition + timedPromoteReleaseCondition: TimedPromoteReleaseCondition @typing.type_check_only class AutomationRun(typing_extensions.TypedDict, total=False): @@ -122,6 +132,7 @@ class AutomationRun(typing_extensions.TypedDict, total=False): etag: str expireTime: str name: str + policyViolation: PolicyViolation promoteReleaseOperation: PromoteReleaseOperation repairRolloutOperation: RepairRolloutOperation ruleId: str @@ -137,6 +148,7 @@ class AutomationRun(typing_extensions.TypedDict, total=False): ] stateDescription: str targetId: str + timedPromoteReleaseOperation: TimedPromoteReleaseOperation updateTime: str waitUntilTime: str @@ -156,6 +168,7 @@ class AutomationRunEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -193,7 +206,8 @@ class CancelAutomationRunResponse(typing_extensions.TypedDict, total=False): ... class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @typing.type_check_only -class CancelRolloutRequest(typing_extensions.TypedDict, total=False): ... +class CancelRolloutRequest(typing_extensions.TypedDict, total=False): + overrideDeployPolicy: _list[str] @typing.type_check_only class CancelRolloutResponse(typing_extensions.TypedDict, total=False): ... @@ -287,6 +301,7 @@ class CustomTargetTypeNotificationEvent(typing_extensions.TypedDict, total=False "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -315,6 +330,11 @@ class DeliveryPipeline(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class DeliveryPipelineAttribute(typing_extensions.TypedDict, total=False): + id: str + labels: dict[str, typing.Any] + @typing.type_check_only class DeliveryPipelineNotificationEvent(typing_extensions.TypedDict, total=False): deliveryPipeline: str @@ -328,6 +348,7 @@ class DeliveryPipelineNotificationEvent(typing_extensions.TypedDict, total=False "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -366,6 +387,46 @@ class DeployParameters(typing_extensions.TypedDict, total=False): matchTargetLabels: dict[str, typing.Any] values: dict[str, typing.Any] +@typing.type_check_only +class DeployPolicy(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + description: str + etag: str + labels: dict[str, typing.Any] + name: str + rules: _list[PolicyRule] + selectors: _list[DeployPolicyResourceSelector] + suspended: bool + uid: str + updateTime: str + +@typing.type_check_only +class DeployPolicyEvaluationEvent(typing_extensions.TypedDict, total=False): + allowed: bool + deliveryPipeline: str + deployPolicy: str + deployPolicyUid: str + invoker: typing_extensions.Literal[ + "INVOKER_UNSPECIFIED", "USER", "DEPLOY_AUTOMATION" + ] + message: str + overrides: _list[ + typing_extensions.Literal[ + "POLICY_VERDICT_OVERRIDE_UNSPECIFIED", + "POLICY_OVERRIDDEN", + "POLICY_SUSPENDED", + ] + ] + pipelineUid: str + rule: str + ruleType: str + target: str + targetUid: str + verdict: typing_extensions.Literal[ + "POLICY_VERDICT_UNSPECIFIED", "ALLOWED_BY_POLICY", "DENIED_BY_POLICY" + ] + @typing.type_check_only class DeployPolicyNotificationEvent(typing_extensions.TypedDict, total=False): deployPolicy: str @@ -379,9 +440,15 @@ class DeployPolicyNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] +@typing.type_check_only +class DeployPolicyResourceSelector(typing_extensions.TypedDict, total=False): + deliveryPipeline: DeliveryPipelineAttribute + target: TargetAttribute + @typing.type_check_only class DeploymentJobs(typing_extensions.TypedDict, total=False): deployJob: Job @@ -424,6 +491,7 @@ class GatewayServiceMesh(typing_extensions.TypedDict, total=False): deployment: str httpRoute: str podSelectorLabel: str + routeDestinations: RouteDestinations routeUpdateWaitTime: str service: str stableCutbackDuration: str @@ -431,12 +499,14 @@ class GatewayServiceMesh(typing_extensions.TypedDict, total=False): @typing.type_check_only class GkeCluster(typing_extensions.TypedDict, total=False): cluster: str + dnsEndpoint: bool internalIp: bool proxyUrl: str @typing.type_check_only class IgnoreJobRequest(typing_extensions.TypedDict, total=False): jobId: str + overrideDeployPolicy: _list[str] phaseId: str @typing.type_check_only @@ -508,6 +578,7 @@ class JobRunNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -540,6 +611,12 @@ class ListDeliveryPipelinesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ListDeployPoliciesResponse(typing_extensions.TypedDict, total=False): + deployPolicies: _list[DeployPolicy] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListJobRunsResponse(typing_extensions.TypedDict, total=False): jobRuns: _list[JobRun] @@ -592,6 +669,13 @@ class Metadata(typing_extensions.TypedDict, total=False): class MultiTarget(typing_extensions.TypedDict, total=False): targetIds: _list[str] +@typing.type_check_only +class OneTimeWindow(typing_extensions.TypedDict, total=False): + endDate: Date + endTime: TimeOfDay + startDate: Date + startTime: TimeOfDay + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -659,6 +743,20 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class PolicyRule(typing_extensions.TypedDict, total=False): + rolloutRestriction: RolloutRestriction + +@typing.type_check_only +class PolicyViolation(typing_extensions.TypedDict, total=False): + policyViolationDetails: _list[PolicyViolationDetails] + +@typing.type_check_only +class PolicyViolationDetails(typing_extensions.TypedDict, total=False): + failureMessage: str + policy: str + ruleId: str + @typing.type_check_only class Postdeploy(typing_extensions.TypedDict, total=False): actions: _list[str] @@ -766,6 +864,7 @@ class ReleaseNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -789,6 +888,7 @@ class ReleaseRenderEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -802,8 +902,14 @@ class RepairPhase(typing_extensions.TypedDict, total=False): retry: RetryPhase rollback: RollbackAttempt +@typing.type_check_only +class RepairPhaseConfig(typing_extensions.TypedDict, total=False): + retry: Retry + rollback: Rollback + @typing.type_check_only class RepairRolloutOperation(typing_extensions.TypedDict, total=False): + currentRepairPhaseIndex: str jobId: str phaseId: str repairPhases: _list[RepairPhase] @@ -814,6 +920,16 @@ class RepairRolloutRule(typing_extensions.TypedDict, total=False): condition: AutomationRuleCondition id: str jobs: _list[str] + phases: _list[str] + repairPhases: _list[RepairPhaseConfig] + +@typing.type_check_only +class Retry(typing_extensions.TypedDict, total=False): + attempts: str + backoffMode: typing_extensions.Literal[ + "BACKOFF_MODE_UNSPECIFIED", "BACKOFF_MODE_LINEAR", "BACKOFF_MODE_EXPONENTIAL" + ] + wait: str @typing.type_check_only class RetryAttempt(typing_extensions.TypedDict, total=False): @@ -833,6 +949,7 @@ class RetryAttempt(typing_extensions.TypedDict, total=False): @typing.type_check_only class RetryJobRequest(typing_extensions.TypedDict, total=False): jobId: str + overrideDeployPolicy: _list[str] phaseId: str @typing.type_check_only @@ -846,9 +963,15 @@ class RetryPhase(typing_extensions.TypedDict, total=False): ] totalAttempts: str +@typing.type_check_only +class Rollback(typing_extensions.TypedDict, total=False): + destinationPhase: str + disableRollbackIfRolloutPending: bool + @typing.type_check_only class RollbackAttempt(typing_extensions.TypedDict, total=False): destinationPhase: str + disableRollbackIfRolloutPending: bool rolloutId: str state: typing_extensions.Literal[ "REPAIR_STATE_UNSPECIFIED", @@ -868,6 +991,7 @@ class RollbackTargetConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class RollbackTargetRequest(typing_extensions.TypedDict, total=False): + overrideDeployPolicy: _list[str] releaseId: str rollbackConfig: RollbackTargetConfig rolloutId: str @@ -881,6 +1005,7 @@ class RollbackTargetResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Rollout(typing_extensions.TypedDict, total=False): + activeRepairAutomationRun: str annotations: dict[str, typing.Any] approvalState: typing_extensions.Literal[ "APPROVAL_STATE_UNSPECIFIED", @@ -949,9 +1074,31 @@ class RolloutNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] +@typing.type_check_only +class RolloutRestriction(typing_extensions.TypedDict, total=False): + actions: _list[ + typing_extensions.Literal[ + "ROLLOUT_ACTIONS_UNSPECIFIED", + "ADVANCE", + "APPROVE", + "CANCEL", + "CREATE", + "IGNORE_JOB", + "RETRY_JOB", + "ROLLBACK", + "TERMINATE_JOBRUN", + ] + ] + id: str + invokers: _list[ + typing_extensions.Literal["INVOKER_UNSPECIFIED", "USER", "DEPLOY_AUTOMATION"] + ] + timeWindows: TimeWindows + @typing.type_check_only class RolloutUpdateEvent(typing_extensions.TypedDict, total=False): message: str @@ -984,9 +1131,15 @@ class RolloutUpdateEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] +@typing.type_check_only +class RouteDestinations(typing_extensions.TypedDict, total=False): + destinationIds: _list[str] + propagateService: bool + @typing.type_check_only class RuntimeConfig(typing_extensions.TypedDict, total=False): cloudRun: CloudRunConfig @@ -1079,6 +1232,7 @@ class Strategy(typing_extensions.TypedDict, total=False): class Target(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] anthosCluster: AnthosCluster + associatedEntities: dict[str, typing.Any] createTime: str customTarget: CustomTarget deployParameters: dict[str, typing.Any] @@ -1119,6 +1273,7 @@ class TargetNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", + "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -1141,6 +1296,11 @@ class TargetRender(typing_extensions.TypedDict, total=False): "TARGET_RENDER_STATE_UNSPECIFIED", "SUCCEEDED", "FAILED", "IN_PROGRESS" ] +@typing.type_check_only +class Targets(typing_extensions.TypedDict, total=False): + destinationTargetId: str + sourceTargetId: str + @typing.type_check_only class TargetsPresentCondition(typing_extensions.TypedDict, total=False): missingTargets: _list[str] @@ -1153,7 +1313,8 @@ class TargetsTypeCondition(typing_extensions.TypedDict, total=False): status: bool @typing.type_check_only -class TerminateJobRunRequest(typing_extensions.TypedDict, total=False): ... +class TerminateJobRunRequest(typing_extensions.TypedDict, total=False): + overrideDeployPolicy: _list[str] @typing.type_check_only class TerminateJobRunResponse(typing_extensions.TypedDict, total=False): ... @@ -1166,6 +1327,39 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] +@typing.type_check_only +class TimeOfDay(typing_extensions.TypedDict, total=False): + hours: int + minutes: int + nanos: int + seconds: int + +@typing.type_check_only +class TimeWindows(typing_extensions.TypedDict, total=False): + oneTimeWindows: _list[OneTimeWindow] + timeZone: str + weeklyWindows: _list[WeeklyWindow] + +@typing.type_check_only +class TimedPromoteReleaseCondition(typing_extensions.TypedDict, total=False): + nextPromotionTime: str + targetsList: _list[Targets] + +@typing.type_check_only +class TimedPromoteReleaseOperation(typing_extensions.TypedDict, total=False): + phase: str + release: str + targetId: str + +@typing.type_check_only +class TimedPromoteReleaseRule(typing_extensions.TypedDict, total=False): + condition: AutomationRuleCondition + destinationPhase: str + destinationTargetId: str + id: str + schedule: str + timeZone: str + @typing.type_check_only class VerifyJob(typing_extensions.TypedDict, total=False): ... @@ -1183,3 +1377,20 @@ class VerifyJobRun(typing_extensions.TypedDict, total=False): "CLOUD_BUILD_REQUEST_FAILED", ] failureMessage: str + +@typing.type_check_only +class WeeklyWindow(typing_extensions.TypedDict, total=False): + daysOfWeek: _list[ + typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + ] + endTime: TimeOfDay + startTime: TimeOfDay diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi index f2210c14..2c20968a 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi @@ -142,6 +142,7 @@ class GoogleCloudFunctionsV2OperationMetadata(typing_extensions.TypedDict, total "SETUP_FUNCTION_UPGRADE_CONFIG", "ABORT_FUNCTION_UPGRADE", "COMMIT_FUNCTION_UPGRADE", + "DETACH_FUNCTION", ] requestResource: dict[str, typing.Any] sourceToken: str @@ -383,4 +384,5 @@ class UpgradeInfo(typing_extensions.TypedDict, total=False): "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS", ] diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi index f994a000..af1ddc82 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi @@ -146,6 +146,7 @@ class GoogleCloudFunctionsV2alphaOperationMetadata( "SETUP_FUNCTION_UPGRADE_CONFIG", "ABORT_FUNCTION_UPGRADE", "COMMIT_FUNCTION_UPGRADE", + "DETACH_FUNCTION", ] requestResource: dict[str, typing.Any] sourceToken: str @@ -387,4 +388,5 @@ class UpgradeInfo(typing_extensions.TypedDict, total=False): "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS", ] diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi index 9738f204..19960d30 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi @@ -146,6 +146,7 @@ class GoogleCloudFunctionsV2betaOperationMetadata( "SETUP_FUNCTION_UPGRADE_CONFIG", "ABORT_FUNCTION_UPGRADE", "COMMIT_FUNCTION_UPGRADE", + "DETACH_FUNCTION", ] requestResource: dict[str, typing.Any] sourceToken: str @@ -387,4 +388,5 @@ class UpgradeInfo(typing_extensions.TypedDict, total=False): "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR", "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR", "COMMIT_FUNCTION_UPGRADE_ERROR", + "DETACH_IN_PROGRESS", ] diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1/resources.pyi index c41a3c97..007b3e4d 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1/resources.pyi @@ -475,6 +475,23 @@ class CloudIdentityResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class PoliciesResource(googleapiclient.discovery.Resource): + def get(self, *, name: str, **kwargs: typing.Any) -> PolicyHttpRequest: ... + def list( + self, + *, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPoliciesResponseHttpRequest, + previous_response: ListPoliciesResponse, + ) -> ListPoliciesResponseHttpRequest | None: ... + def new_batch_http_request( self, callback: collections.abc.Callable[ @@ -492,6 +509,7 @@ class CloudIdentityResource(googleapiclient.discovery.Resource): def groups(self) -> GroupsResource: ... def inboundSamlSsoProfiles(self) -> InboundSamlSsoProfilesResource: ... def inboundSsoAssignments(self) -> InboundSsoAssignmentsResource: ... + def policies(self) -> PoliciesResource: ... @typing.type_check_only class CheckTransitiveMembershipResponseHttpRequest(googleapiclient.http.HttpRequest): @@ -651,6 +669,14 @@ class ListMembershipsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListMembershipsResponse: ... +@typing.type_check_only +class ListPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPoliciesResponse: ... + @typing.type_check_only class ListUserInvitationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -699,6 +725,14 @@ class OperationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Operation: ... +@typing.type_check_only +class PolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Policy: ... + @typing.type_check_only class SearchDirectGroupsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi index 779a169f..fe4a5dd3 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi @@ -558,6 +558,11 @@ class ListMembershipsResponse(typing_extensions.TypedDict, total=False): memberships: _list[Membership] nextPageToken: str +@typing.type_check_only +class ListPoliciesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + policies: _list[Policy] + @typing.type_check_only class ListUserInvitationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -659,6 +664,21 @@ class Operation(typing_extensions.TypedDict, total=False): name: str response: dict[str, typing.Any] +@typing.type_check_only +class Policy(typing_extensions.TypedDict, total=False): + customer: str + name: str + policyQuery: PolicyQuery + setting: Setting + type: typing_extensions.Literal["POLICY_TYPE_UNSPECIFIED", "SYSTEM", "ADMIN"] + +@typing.type_check_only +class PolicyQuery(typing_extensions.TypedDict, total=False): + group: str + orgUnit: str + query: str + sortOrder: float + @typing.type_check_only class RestrictionEvaluation(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ @@ -721,6 +741,11 @@ class SecuritySettings(typing_extensions.TypedDict, total=False): @typing.type_check_only class SendUserInvitationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Setting(typing_extensions.TypedDict, total=False): + type: str + value: dict[str, typing.Any] + @typing.type_check_only class SignInBehavior(typing_extensions.TypedDict, total=False): redirectCondition: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/resources.pyi index fa1be9ab..a56efc0d 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/resources.pyi @@ -467,6 +467,23 @@ class CloudIdentityResource(googleapiclient.discovery.Resource): def memberships(self) -> MembershipsResource: ... + @typing.type_check_only + class PoliciesResource(googleapiclient.discovery.Resource): + def get(self, *, name: str, **kwargs: typing.Any) -> PolicyHttpRequest: ... + def list( + self, + *, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPoliciesResponseHttpRequest, + previous_response: ListPoliciesResponse, + ) -> ListPoliciesResponseHttpRequest | None: ... + def new_batch_http_request( self, callback: collections.abc.Callable[ @@ -485,6 +502,7 @@ class CloudIdentityResource(googleapiclient.discovery.Resource): def inboundSamlSsoProfiles(self) -> InboundSamlSsoProfilesResource: ... def inboundSsoAssignments(self) -> InboundSsoAssignmentsResource: ... def orgUnits(self) -> OrgUnitsResource: ... + def policies(self) -> PoliciesResource: ... @typing.type_check_only class CheckTransitiveMembershipResponseHttpRequest(googleapiclient.http.HttpRequest): @@ -622,6 +640,14 @@ class ListOrgMembershipsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListOrgMembershipsResponse: ... +@typing.type_check_only +class ListPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPoliciesResponse: ... + @typing.type_check_only class ListUserInvitationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -678,6 +704,14 @@ class OperationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Operation: ... +@typing.type_check_only +class PolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Policy: ... + @typing.type_check_only class SearchDirectGroupsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi index 3709f958..31bd52a9 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi @@ -740,6 +740,11 @@ class ListOrgMembershipsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str orgMemberships: _list[OrgMembership] +@typing.type_check_only +class ListPoliciesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + policies: _list[Policy] + @typing.type_check_only class ListUserInvitationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -860,6 +865,21 @@ class OrgMembership(typing_extensions.TypedDict, total=False): name: str type: typing_extensions.Literal["ENTITY_TYPE_UNSPECIFIED", "SHARED_DRIVE"] +@typing.type_check_only +class Policy(typing_extensions.TypedDict, total=False): + customer: str + name: str + policyQuery: PolicyQuery + setting: Setting + type: typing_extensions.Literal["POLICY_TYPE_UNSPECIFIED", "SYSTEM", "ADMIN"] + +@typing.type_check_only +class PolicyQuery(typing_extensions.TypedDict, total=False): + group: str + orgUnit: str + query: str + sortOrder: float + @typing.type_check_only class PosixGroup(typing_extensions.TypedDict, total=False): gid: str @@ -928,6 +948,11 @@ class SecuritySettings(typing_extensions.TypedDict, total=False): @typing.type_check_only class SendUserInvitationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Setting(typing_extensions.TypedDict, total=False): + type: str + value: dict[str, typing.Any] + @typing.type_check_only class SignInBehavior(typing_extensions.TypedDict, total=False): redirectCondition: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/cloudscheduler/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudscheduler/v1/resources.pyi index 7ee55d95..f2f76147 100644 --- a/googleapiclient-stubs/_apis/cloudscheduler/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudscheduler/v1/resources.pyi @@ -13,6 +13,28 @@ _list = list @typing.type_check_only class CloudSchedulerResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, body: CancelOperationRequest = ..., **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def delete(self, *, name: str, **kwargs: typing.Any) -> EmptyHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -98,6 +120,7 @@ class CloudSchedulerResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def operations(self) -> OperationsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only @@ -132,6 +155,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + @typing.type_check_only class LocationHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -139,3 +170,11 @@ class LocationHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/cloudscheduler/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudscheduler/v1/schemas.pyi index 0dcb2b8d..2500f679 100644 --- a/googleapiclient-stubs/_apis/cloudscheduler/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudscheduler/v1/schemas.pyi @@ -28,6 +28,9 @@ class AppEngineRouting(typing_extensions.TypedDict, total=False): service: str version: str +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -78,6 +81,11 @@ class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -96,6 +104,24 @@ class OidcToken(typing_extensions.TypedDict, total=False): audience: str serviceAccountEmail: str +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + cancelRequested: bool + createTime: str + endTime: str + statusDetail: str + target: str + verb: str + @typing.type_check_only class PauseJobRequest(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/cloudscheduler/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudscheduler/v1beta1/schemas.pyi index 04d24864..13173bd8 100644 --- a/googleapiclient-stubs/_apis/cloudscheduler/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudscheduler/v1beta1/schemas.pyi @@ -97,6 +97,16 @@ class OidcToken(typing_extensions.TypedDict, total=False): audience: str serviceAccountEmail: str +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + cancelRequested: bool + createTime: str + endTime: str + statusDetail: str + target: str + verb: str + @typing.type_check_only class PauseJobRequest(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi index af351223..0b8caceb 100644 --- a/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi @@ -1448,30 +1448,6 @@ class ResultDisplayMetadata(typing_extensions.TypedDict, total=False): class RetrievalImportance(typing_extensions.TypedDict, total=False): importance: typing_extensions.Literal["DEFAULT", "HIGHEST", "HIGH", "LOW", "NONE"] -@typing.type_check_only -class RewrittenQueries(typing_extensions.TypedDict, total=False): - rewrittenQueries: _list[RewrittenQuery] - selectedQueryIndex: int - -@typing.type_check_only -class RewrittenQuery(typing_extensions.TypedDict, total=False): - rewrittenQuery: str - score: float - sortBy: typing_extensions.Literal[ - "SORTBY_UNSUPPORTED", - "SORTBY_RELEVANCY", - "SORTBY_LATEST", - "SORTBY_OLDEST", - "SORTBY_LARGEST", - "SORTBY_SMALLEST", - "SORTBY_MODIFY_LATEST", - "SORTBY_MODIFY_OLDEST", - "SORTBY_VIEW_LATEST", - "SORTBY_VIEW_OLDEST", - "SORTBY_CREATE_LATEST", - "SORTBY_CREATE_OLDEST", - ] - @typing.type_check_only class SafeHtmlProto(typing_extensions.TypedDict, total=False): privateDoNotAccessOrElseSafeHtmlWrappedValue: str diff --git a/googleapiclient-stubs/_apis/compute/alpha/resources.pyi b/googleapiclient-stubs/_apis/compute/alpha/resources.pyi index 832e9988..b8915ba9 100644 --- a/googleapiclient-stubs/_apis/compute/alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/alpha/resources.pyi @@ -142,6 +142,17 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class AdviceResource(googleapiclient.discovery.Resource): + def calendarMode( + self, + *, + project: str, + region: str, + body: CalendarModeAdviceRequest = ..., + **kwargs: typing.Any, + ) -> CalendarModeAdviceResponseHttpRequest: ... + @typing.type_check_only class AutoscalersResource(googleapiclient.discovery.Resource): def aggregatedList( @@ -402,6 +413,9 @@ class ComputeResource(googleapiclient.discovery.Resource): def get( self, *, project: str, backendService: str, **kwargs: typing.Any ) -> BackendServiceHttpRequest: ... + def getEffectiveSecurityPolicies( + self, *, project: str, backendService: str, **kwargs: typing.Any + ) -> BackendServicesGetEffectiveSecurityPoliciesResponseHttpRequest: ... def getHealth( self, *, @@ -511,6 +525,56 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class CrossSiteNetworksResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + crossSiteNetwork: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, project: str, crossSiteNetwork: str, **kwargs: typing.Any + ) -> CrossSiteNetworkHttpRequest: ... + def insert( + self, + *, + project: str, + body: CrossSiteNetwork = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> CrossSiteNetworkListHttpRequest: ... + def list_next( + self, + previous_request: CrossSiteNetworkListHttpRequest, + previous_response: CrossSiteNetworkList, + ) -> CrossSiteNetworkListHttpRequest | None: ... + def patch( + self, + *, + project: str, + crossSiteNetwork: str, + body: CrossSiteNetwork = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class DiskSettingsResource(googleapiclient.discovery.Resource): def get( @@ -630,6 +694,9 @@ class ComputeResource(googleapiclient.discovery.Resource): def get( self, *, project: str, zone: str, disk: str, **kwargs: typing.Any ) -> DiskHttpRequest: ... + def getAsyncReplicationStatus( + self, *, project: str, zone: str, disk: str, **kwargs: typing.Any + ) -> GetAsyncReplicationStatusResponseHttpRequest: ... def getIamPolicy( self, *, @@ -752,6 +819,16 @@ class ComputeResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def waitForReplicationCatchUp( + self, + *, + project: str, + zone: str, + disk: str, + body: WaitForReplicationCatchUpRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class ExternalVpnGatewaysResource(googleapiclient.discovery.Resource): @@ -3190,6 +3267,89 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class InterconnectAttachmentGroupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + interconnectAttachmentGroup: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, + *, + project: str, + interconnectAttachmentGroup: str, + **kwargs: typing.Any, + ) -> InterconnectAttachmentGroupHttpRequest: ... + def getIamPolicy( + self, + *, + project: str, + resource: str, + optionsRequestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def getOperationalStatus( + self, + *, + project: str, + interconnectAttachmentGroup: str, + **kwargs: typing.Any, + ) -> InterconnectAttachmentGroupsGetOperationalStatusResponseHttpRequest: ... + def insert( + self, + *, + project: str, + body: InterconnectAttachmentGroup = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> InterconnectAttachmentGroupsListResponseHttpRequest: ... + def list_next( + self, + previous_request: InterconnectAttachmentGroupsListResponseHttpRequest, + previous_response: InterconnectAttachmentGroupsListResponse, + ) -> InterconnectAttachmentGroupsListResponseHttpRequest | None: ... + def patch( + self, + *, + project: str, + interconnectAttachmentGroup: str, + body: InterconnectAttachmentGroup = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def setIamPolicy( + self, + *, + project: str, + resource: str, + body: GlobalSetPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + project: str, + resource: str, + body: TestPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only class InterconnectAttachmentsResource(googleapiclient.discovery.Resource): def aggregatedList( @@ -3302,6 +3462,81 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class InterconnectGroupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + interconnectGroup: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, project: str, interconnectGroup: str, **kwargs: typing.Any + ) -> InterconnectGroupHttpRequest: ... + def getIamPolicy( + self, + *, + project: str, + resource: str, + optionsRequestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def getOperationalStatus( + self, *, project: str, interconnectGroup: str, **kwargs: typing.Any + ) -> InterconnectGroupsGetOperationalStatusResponseHttpRequest: ... + def insert( + self, + *, + project: str, + body: InterconnectGroup = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> InterconnectGroupsListResponseHttpRequest: ... + def list_next( + self, + previous_request: InterconnectGroupsListResponseHttpRequest, + previous_response: InterconnectGroupsListResponse, + ) -> InterconnectGroupsListResponseHttpRequest | None: ... + def patch( + self, + *, + project: str, + interconnectGroup: str, + body: InterconnectGroup = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def setIamPolicy( + self, + *, + project: str, + resource: str, + body: GlobalSetPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + project: str, + resource: str, + body: TestPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only class InterconnectLocationsResource(googleapiclient.discovery.Resource): def get( @@ -3538,6 +3773,16 @@ class ComputeResource(googleapiclient.discovery.Resource): body: TestPermissionsRequest = ..., **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + def update( + self, + *, + project: str, + license: str, + body: License = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class MachineImagesResource(googleapiclient.discovery.Resource): @@ -3951,6 +4196,24 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def aggregatedList( + self, + *, + project: str, + filter: str = ..., + includeAllScopes: bool = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + serviceProjectNumber: str = ..., + **kwargs: typing.Any, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest: ... + def aggregatedList_next( + self, + previous_request: NetworkFirewallPolicyAggregatedListHttpRequest, + previous_response: NetworkFirewallPolicyAggregatedList, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest | None: ... def cloneRules( self, *, @@ -4642,6 +4905,17 @@ class ComputeResource(googleapiclient.discovery.Resource): def listAssociations( self, *, targetResource: str = ..., **kwargs: typing.Any ) -> OrganizationSecurityPoliciesListAssociationsResponseHttpRequest: ... + def listPreconfiguredExpressionSets( + self, + *, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + parentId: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> SecurityPoliciesListPreconfiguredExpressionSetsResponseHttpRequest: ... def move( self, *, @@ -5429,6 +5703,9 @@ class ComputeResource(googleapiclient.discovery.Resource): def get( self, *, project: str, region: str, disk: str, **kwargs: typing.Any ) -> DiskHttpRequest: ... + def getAsyncReplicationStatus( + self, *, project: str, region: str, disk: str, **kwargs: typing.Any + ) -> GetAsyncReplicationStatusResponseHttpRequest: ... def getIamPolicy( self, *, @@ -5551,6 +5828,16 @@ class ComputeResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def waitForReplicationCatchUp( + self, + *, + project: str, + region: str, + disk: str, + body: RegionWaitForReplicationCatchUpRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class RegionHealthCheckServicesResource(googleapiclient.discovery.Resource): @@ -6346,6 +6633,47 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class RegionMultiMigsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + region: str, + multiMig: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, project: str, region: str, multiMig: str, **kwargs: typing.Any + ) -> MultiMigHttpRequest: ... + def insert( + self, + *, + project: str, + region: str, + body: MultiMig = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + region: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> MultiMigsListHttpRequest: ... + def list_next( + self, + previous_request: MultiMigsListHttpRequest, + previous_response: MultiMigsList, + ) -> MultiMigsListHttpRequest | None: ... + @typing.type_check_only class RegionNetworkEndpointGroupsResource(googleapiclient.discovery.Resource): def attachNetworkEndpoints( @@ -6809,6 +7137,16 @@ class ComputeResource(googleapiclient.discovery.Resource): priority: int = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def setLabels( + self, + *, + project: str, + region: str, + resource: str, + body: RegionSetLabelsRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class RegionSnapshotSettingsResource(googleapiclient.discovery.Resource): @@ -7390,6 +7728,17 @@ class ComputeResource(googleapiclient.discovery.Resource): previous_request: ReservationBlocksListResponseHttpRequest, previous_response: ReservationBlocksListResponse, ) -> ReservationBlocksListResponseHttpRequest | None: ... + def performMaintenance( + self, + *, + project: str, + zone: str, + reservation: str, + reservationBlock: str, + body: ReservationsBlocksPerformMaintenanceRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class ReservationsResource(googleapiclient.discovery.Resource): @@ -7458,6 +7807,16 @@ class ComputeResource(googleapiclient.discovery.Resource): previous_request: ReservationListHttpRequest, previous_response: ReservationList, ) -> ReservationListHttpRequest | None: ... + def performMaintenance( + self, + *, + project: str, + zone: str, + reservation: str, + body: ReservationsPerformMaintenanceRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def resize( self, *, @@ -9679,6 +10038,65 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class WireGroupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + crossSiteNetwork: str, + wireGroup: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, + *, + project: str, + crossSiteNetwork: str, + wireGroup: str, + **kwargs: typing.Any, + ) -> WireGroupHttpRequest: ... + def insert( + self, + *, + project: str, + crossSiteNetwork: str, + body: WireGroup = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + crossSiteNetwork: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> WireGroupListHttpRequest: ... + def list_next( + self, + previous_request: WireGroupListHttpRequest, + previous_response: WireGroupList, + ) -> WireGroupListHttpRequest | None: ... + def patch( + self, + *, + project: str, + crossSiteNetwork: str, + wireGroup: str, + body: WireGroup = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class ZoneOperationsResource(googleapiclient.discovery.Resource): def delete( @@ -9810,9 +10228,11 @@ class ComputeResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def acceleratorTypes(self) -> AcceleratorTypesResource: ... def addresses(self) -> AddressesResource: ... + def advice(self) -> AdviceResource: ... def autoscalers(self) -> AutoscalersResource: ... def backendBuckets(self) -> BackendBucketsResource: ... def backendServices(self) -> BackendServicesResource: ... + def crossSiteNetworks(self) -> CrossSiteNetworksResource: ... def diskSettings(self) -> DiskSettingsResource: ... def diskTypes(self) -> DiskTypesResource: ... def disks(self) -> DisksResource: ... @@ -9844,7 +10264,9 @@ class ComputeResource(googleapiclient.discovery.Resource): def instances(self) -> InstancesResource: ... def instantSnapshotGroups(self) -> InstantSnapshotGroupsResource: ... def instantSnapshots(self) -> InstantSnapshotsResource: ... + def interconnectAttachmentGroups(self) -> InterconnectAttachmentGroupsResource: ... def interconnectAttachments(self) -> InterconnectAttachmentsResource: ... + def interconnectGroups(self) -> InterconnectGroupsResource: ... def interconnectLocations(self) -> InterconnectLocationsResource: ... def interconnectRemoteLocations(self) -> InterconnectRemoteLocationsResource: ... def interconnects(self) -> InterconnectsResource: ... @@ -9883,6 +10305,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def regionInstances(self) -> RegionInstancesResource: ... def regionInstantSnapshotGroups(self) -> RegionInstantSnapshotGroupsResource: ... def regionInstantSnapshots(self) -> RegionInstantSnapshotsResource: ... + def regionMultiMigs(self) -> RegionMultiMigsResource: ... def regionNetworkEndpointGroups(self) -> RegionNetworkEndpointGroupsResource: ... def regionNetworkFirewallPolicies( self, @@ -9925,6 +10348,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def urlMaps(self) -> UrlMapsResource: ... def vpnGateways(self) -> VpnGatewaysResource: ... def vpnTunnels(self) -> VpnTunnelsResource: ... + def wireGroups(self) -> WireGroupsResource: ... def zoneOperations(self) -> ZoneOperationsResource: ... def zoneQueuedResources(self) -> ZoneQueuedResourcesResource: ... def zones(self) -> ZonesResource: ... @@ -10065,6 +10489,24 @@ class BackendServiceListUsableHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> BackendServiceListUsable: ... +@typing.type_check_only +class BackendServicesGetEffectiveSecurityPoliciesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackendServicesGetEffectiveSecurityPoliciesResponse: ... + +@typing.type_check_only +class CalendarModeAdviceResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CalendarModeAdviceResponse: ... + @typing.type_check_only class CommitmentHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10089,6 +10531,22 @@ class CommitmentListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> CommitmentList: ... +@typing.type_check_only +class CrossSiteNetworkHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CrossSiteNetwork: ... + +@typing.type_check_only +class CrossSiteNetworkListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CrossSiteNetworkList: ... + @typing.type_check_only class DiskHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10277,6 +10735,14 @@ class FutureReservationsListResponseHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> FutureReservationsListResponse: ... +@typing.type_check_only +class GetAsyncReplicationStatusResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GetAsyncReplicationStatusResponse: ... + @typing.type_check_only class GetOwnerInstanceResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10631,6 +11097,34 @@ class InterconnectAttachmentAggregatedListHttpRequest(googleapiclient.http.HttpR num_retries: int = 0, ) -> InterconnectAttachmentAggregatedList: ... +@typing.type_check_only +class InterconnectAttachmentGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectAttachmentGroup: ... + +@typing.type_check_only +class InterconnectAttachmentGroupsGetOperationalStatusResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectAttachmentGroupsGetOperationalStatusResponse: ... + +@typing.type_check_only +class InterconnectAttachmentGroupsListResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectAttachmentGroupsListResponse: ... + @typing.type_check_only class InterconnectAttachmentListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10639,6 +11133,32 @@ class InterconnectAttachmentListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> InterconnectAttachmentList: ... +@typing.type_check_only +class InterconnectGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectGroup: ... + +@typing.type_check_only +class InterconnectGroupsGetOperationalStatusResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectGroupsGetOperationalStatusResponse: ... + +@typing.type_check_only +class InterconnectGroupsListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterconnectGroupsListResponse: ... + @typing.type_check_only class InterconnectListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10783,6 +11303,22 @@ class MachineTypeListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> MachineTypeList: ... +@typing.type_check_only +class MultiMigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMig: ... + +@typing.type_check_only +class MultiMigsListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMigsList: ... + @typing.type_check_only class NatIpInfoResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10875,6 +11411,14 @@ class NetworkEndpointGroupsListNetworkEndpointsHttpRequest( num_retries: int = 0, ) -> NetworkEndpointGroupsListNetworkEndpoints: ... +@typing.type_check_only +class NetworkFirewallPolicyAggregatedListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkFirewallPolicyAggregatedList: ... + @typing.type_check_only class NetworkListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -12005,6 +12549,22 @@ class VpnTunnelListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> VpnTunnelList: ... +@typing.type_check_only +class WireGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WireGroup: ... + +@typing.type_check_only +class WireGroupListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WireGroupList: ... + @typing.type_check_only class XpnHostListHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi b/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi index 818fb91e..026cfb83 100644 --- a/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi @@ -196,6 +196,7 @@ class AllocationReservationSharingPolicy(typing_extensions.TypedDict, total=Fals @typing.type_check_only class AllocationResourceStatus(typing_extensions.TypedDict, total=False): reservationBlockCount: int + reservationMaintenance: GroupMaintenanceInfo specificSkuAllocation: AllocationResourceStatusSpecificSKUAllocation @typing.type_check_only @@ -234,6 +235,11 @@ class AllocationSpecificSKUReservation(typing_extensions.TypedDict, total=False) instanceProperties: AllocationSpecificSKUAllocationReservedInstanceProperties sourceInstanceTemplate: str +@typing.type_check_only +class AsyncReplicationStatus(typing_extensions.TypedDict, total=False): + diskPairReplicationState: DiskPairReplicationState + lastReplicationDetails: ReplicationDetails + @typing.type_check_only class AttachedDisk(typing_extensions.TypedDict, total=False): architecture: typing_extensions.Literal[ @@ -293,13 +299,11 @@ class AttachedDiskInitializeParams(typing_extensions.TypedDict, total=False): @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] - exemptedMembers: _list[str] service: str @typing.type_check_only class AuditLogConfig(typing_extensions.TypedDict, total=False): exemptedMembers: _list[str] - ignoreChildExemptions: bool logType: typing_extensions.Literal[ "ADMIN_READ", "DATA_READ", "DATA_WRITE", "LOG_TYPE_UNSPECIFIED" ] @@ -609,7 +613,16 @@ class BackendService(typing_extensions.TypedDict, total=False): port: int portName: str protocol: typing_extensions.Literal[ - "ALL", "GRPC", "HTTP", "HTTP2", "HTTPS", "SSL", "TCP", "UDP", "UNSPECIFIED" + "ALL", + "GRPC", + "H2C", + "HTTP", + "HTTP2", + "HTTPS", + "SSL", + "TCP", + "UDP", + "UNSPECIFIED", ] region: str securityPolicy: str @@ -849,6 +862,12 @@ class BackendServiceTlsSettingsSubjectAltName(typing_extensions.TypedDict, total class BackendServiceUsedBy(typing_extensions.TypedDict, total=False): reference: str +@typing.type_check_only +class BackendServicesGetEffectiveSecurityPoliciesResponse( + typing_extensions.TypedDict, total=False +): + securityPolicies: _list[SecurityPolicy] + @typing.type_check_only class BackendServicesScopedList(typing_extensions.TypedDict, total=False): backendServices: _list[BackendService] @@ -949,7 +968,6 @@ class BgpRouteNetworkLayerReachabilityInformation( @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): - bindingId: str condition: Expr members: _list[str] role: str @@ -992,6 +1010,7 @@ class BundledLocalSsds(typing_extensions.TypedDict, total=False): @typing.type_check_only class CacheInvalidationRule(typing_extensions.TypedDict, total=False): + cacheTags: _list[str] host: str path: str @@ -1005,6 +1024,18 @@ class CacheKeyPolicy(typing_extensions.TypedDict, total=False): queryStringBlacklist: _list[str] queryStringWhitelist: _list[str] +@typing.type_check_only +class CalendarModeAdviceRequest(typing_extensions.TypedDict, total=False): + futureResourcesSpecs: dict[str, typing.Any] + +@typing.type_check_only +class CalendarModeAdviceResponse(typing_extensions.TypedDict, total=False): + recommendations: _list[CalendarModeRecommendation] + +@typing.type_check_only +class CalendarModeRecommendation(typing_extensions.TypedDict, total=False): + recommendationsPerSpec: dict[str, typing.Any] + @typing.type_check_only class CallCredentials(typing_extensions.TypedDict, total=False): callCredentialType: typing_extensions.Literal["FROM_PLUGIN", "GCE_VM", "INVALID"] @@ -1070,6 +1101,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "ACCELERATOR_OPTIMIZED", "ACCELERATOR_OPTIMIZED_A3", "ACCELERATOR_OPTIMIZED_A3_MEGA", + "ACCELERATOR_OPTIMIZED_A3_ULTRA", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", @@ -1077,6 +1109,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_C4", + "GENERAL_PURPOSE_C4A", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", "GENERAL_PURPOSE_N2D", @@ -1085,7 +1118,11 @@ class Commitment(typing_extensions.TypedDict, total=False): "GRAPHICS_OPTIMIZED", "MEMORY_OPTIMIZED", "MEMORY_OPTIMIZED_M3", + "MEMORY_OPTIMIZED_M4", "MEMORY_OPTIMIZED_X4", + "MEMORY_OPTIMIZED_X4_16TB", + "MEMORY_OPTIMIZED_X4_24TB", + "MEMORY_OPTIMIZED_X4_32TB", "STORAGE_OPTIMIZED_Z3", "TYPE_UNSPECIFIED", ] @@ -1129,25 +1166,6 @@ class CommitmentsScopedList(typing_extensions.TypedDict, total=False): commitments: _list[Commitment] warning: dict[str, typing.Any] -@typing.type_check_only -class Condition(typing_extensions.TypedDict, total=False): - iam: typing_extensions.Literal[ - "APPROVER", - "ATTRIBUTION", - "AUTHORITY", - "CREDENTIALS_TYPE", - "CREDS_ASSERTION", - "JUSTIFICATION_TYPE", - "NO_ATTR", - "SECURITY_REALM", - ] - op: typing_extensions.Literal[ - "DISCHARGED", "EQUALS", "IN", "NOT_EQUALS", "NOT_IN", "NO_OP" - ] - svc: str - sys: typing_extensions.Literal["IP", "NAME", "NO_ATTR", "REGION", "SERVICE"] - values: _list[str] - @typing.type_check_only class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): confidentialInstanceType: typing_extensions.Literal[ @@ -1184,6 +1202,27 @@ class CorsPolicy(typing_extensions.TypedDict, total=False): exposeHeaders: _list[str] maxAge: int +@typing.type_check_only +class CrossSiteNetwork(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + id: str + kind: str + name: str + selfLink: str + selfLinkWithId: str + +@typing.type_check_only +class CrossSiteNetworkList(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[CrossSiteNetwork] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class CustomErrorResponsePolicy(typing_extensions.TypedDict, total=False): errorResponseRules: _list[CustomErrorResponsePolicyCustomErrorResponseRule] @@ -1335,6 +1374,20 @@ class DiskMoveRequest(typing_extensions.TypedDict, total=False): destinationZone: str targetDisk: str +@typing.type_check_only +class DiskPairReplicationState(typing_extensions.TypedDict, total=False): + dataReplicationState: typing_extensions.Literal[ + "ASYNC_REPLICATION_STATE_INITIALIZING", + "ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_HIGH_CHURN", + "ASYNC_REPLICATION_STATE_REPLICATING_BEHIND_SYSTEM_LAGGING", + "ASYNC_REPLICATION_STATE_REPLICATING_HEALTHY", + "ASYNC_REPLICATION_STATE_REPLICATION_STUCK", + "ASYNC_REPLICATION_STATE_STOPPED", + "ASYNC_REPLICATION_STATE_STOPPING", + "ASYNC_REPLICATION_STATE_UNSPECIFIED", + ] + replicationDiskPair: ReplicationDiskPair + @typing.type_check_only class DiskParams(typing_extensions.TypedDict, total=False): resourceManagerTags: dict[str, typing.Any] @@ -1568,6 +1621,11 @@ class FirewallPoliciesListAssociationsResponse( associations: _list[FirewallPolicyAssociation] kind: str +@typing.type_check_only +class FirewallPoliciesScopedList(typing_extensions.TypedDict, total=False): + firewallPolicies: _list[FirewallPolicy] + warning: dict[str, typing.Any] + @typing.type_check_only class FirewallPolicy(typing_extensions.TypedDict, total=False): associations: _list[FirewallPolicyAssociation] @@ -1663,6 +1721,15 @@ class FixedOrPercent(typing_extensions.TypedDict, total=False): fixed: int percent: int +@typing.type_check_only +class FlexibleTimeRange(typing_extensions.TypedDict, total=False): + endTimeNotEarlierThan: str + endTimeNotLaterThan: str + maxDuration: str + minDuration: str + startTimeNotEarlierThan: str + startTimeNotLaterThan: str + @typing.type_check_only class ForwardingRule(typing_extensions.TypedDict, total=False): IPAddress: str @@ -1767,6 +1834,7 @@ class ForwardingRulesScopedList(typing_extensions.TypedDict, total=False): @typing.type_check_only class FutureReservation(typing_extensions.TypedDict, total=False): + aggregateReservation: AllocationAggregateReservation autoCreatedReservationsDeleteTime: str autoCreatedReservationsDuration: Duration autoDeleteAutoCreatedReservations: bool @@ -1776,17 +1844,16 @@ class FutureReservation(typing_extensions.TypedDict, total=False): "DENSE", "DEPLOYMENT_TYPE_UNSPECIFIED", "FLEXIBLE" ] description: str - enableOpportunisticMaintenance: bool id: str - instanceTerminationAction: typing_extensions.Literal[ - "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "STOP" - ] kind: str name: str namePrefix: str planningStatus: typing_extensions.Literal[ "DRAFT", "PLANNING_STATUS_UNSPECIFIED", "SUBMITTED" ] + reservationMode: typing_extensions.Literal[ + "CALENDAR", "DEFAULT", "RESERVATION_MODE_UNSPECIFIED" + ] reservationName: str schedulingType: typing_extensions.Literal[ "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" @@ -1929,6 +1996,77 @@ class FutureReservationsScopedList(typing_extensions.TypedDict, total=False): futureReservations: _list[FutureReservation] warning: dict[str, typing.Any] +@typing.type_check_only +class FutureResourcesRecommendation(typing_extensions.TypedDict, total=False): + endTime: str + location: str + otherLocations: dict[str, typing.Any] + recommendationId: str + recommendationType: typing_extensions.Literal[ + "FUTURE_RESERVATION", "RECOMMENDATION_TYPE_UNSPECIFIED" + ] + startTime: str + +@typing.type_check_only +class FutureResourcesRecommendationOtherLocation( + typing_extensions.TypedDict, total=False +): + details: str + status: typing_extensions.Literal[ + "CONDITIONS_NOT_MET", + "NOT_SUPPORTED", + "NO_CAPACITY", + "OTHER_LOCATION_STATUS_UNDEFINED", + "RECOMMENDED", + ] + +@typing.type_check_only +class FutureResourcesSpec(typing_extensions.TypedDict, total=False): + deploymentType: typing_extensions.Literal[ + "DENSE", "DEPLOYMENT_TYPE_UNSPECIFIED", "FLEXIBLE" + ] + locationPolicy: FutureResourcesSpecLocationPolicy + targetResources: FutureResourcesSpecTargetResources + timeRangeSpec: FlexibleTimeRange + +@typing.type_check_only +class FutureResourcesSpecAggregateResources(typing_extensions.TypedDict, total=False): + acceleratorCount: str + vmFamily: typing_extensions.Literal[ + "VM_FAMILY_CLOUD_TPU_DEVICE_CT3", + "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L", + "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP", + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P", + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P", + ] + workloadType: typing_extensions.Literal["BATCH", "SERVING", "UNSPECIFIED"] + +@typing.type_check_only +class FutureResourcesSpecLocalSsdPartition(typing_extensions.TypedDict, total=False): + diskInterface: typing_extensions.Literal["NVDIMM", "NVME", "SCSI"] + diskSizeGb: str + +@typing.type_check_only +class FutureResourcesSpecLocationPolicy(typing_extensions.TypedDict, total=False): + locations: dict[str, typing.Any] + +@typing.type_check_only +class FutureResourcesSpecLocationPolicyLocation( + typing_extensions.TypedDict, total=False +): + preference: typing_extensions.Literal["ALLOW", "DENY", "PREFERENCE_UNSPECIFIED"] + +@typing.type_check_only +class FutureResourcesSpecSpecificSKUResources(typing_extensions.TypedDict, total=False): + instanceCount: str + localSsdPartitions: _list[FutureResourcesSpecLocalSsdPartition] + machineType: str + +@typing.type_check_only +class FutureResourcesSpecTargetResources(typing_extensions.TypedDict, total=False): + aggregateResources: FutureResourcesSpecAggregateResources + specificSkuResources: FutureResourcesSpecSpecificSKUResources + @typing.type_check_only class GRPCHealthCheck(typing_extensions.TypedDict, total=False): grpcServiceName: str @@ -1946,6 +2084,11 @@ class GRPCTLSHealthCheck(typing_extensions.TypedDict, total=False): "USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT" ] +@typing.type_check_only +class GetAsyncReplicationStatusResponse(typing_extensions.TypedDict, total=False): + asyncReplicationStatus: AsyncReplicationStatus + etag: str + @typing.type_check_only class GetOwnerInstanceResponse(typing_extensions.TypedDict, total=False): instance: str @@ -1984,6 +2127,15 @@ class GlobalSetPolicyRequest(typing_extensions.TypedDict, total=False): etag: str policy: Policy +@typing.type_check_only +class GroupMaintenanceInfo(typing_extensions.TypedDict, total=False): + maintenanceOngoingCount: int + maintenancePendingCount: int + schedulingType: typing_extensions.Literal[ + "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" + ] + upcomingGroupMaintenance: UpcomingMaintenance + @typing.type_check_only class GrpcServiceConfig(typing_extensions.TypedDict, total=False): callCredentials: CallCredentials @@ -2510,6 +2662,7 @@ class Instance(typing_extensions.TypedDict, total=False): startRestricted: bool status: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -2732,6 +2885,7 @@ class InstanceGroupManagerResizeRequest(typing_extensions.TypedDict, total=False creationTimestamp: str description: str id: str + instances: _list[PerInstanceConfig] kind: str name: str queuingPolicy: QueuingPolicy @@ -3186,6 +3340,7 @@ class InstanceWithNamedPorts(typing_extensions.TypedDict, total=False): namedPorts: _list[NamedPort] status: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -3221,6 +3376,7 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] shortName: str @@ -3246,6 +3402,11 @@ class InstancesRemoveResourcePoliciesRequest(typing_extensions.TypedDict, total= @typing.type_check_only class InstancesReportHostAsFaultyRequest(typing_extensions.TypedDict, total=False): + actionHint: typing_extensions.Literal[ + "ACTION_HINT_UNSPECIFIED", + "DIAGNOSE_AND_REPAIR", + "EXECUTE_ALL_RECOMMENDED_SCANS", + ] faultReasons: _list[InstancesReportHostAsFaultyRequestFaultReason] @typing.type_check_only @@ -3401,7 +3562,9 @@ class Interconnect(typing_extensions.TypedDict, total=False): aaiEnabled: bool adminEnabled: bool applicationAwareInterconnect: InterconnectApplicationAwareInterconnect - availableFeatures: _list[typing_extensions.Literal["IF_MACSEC"]] + availableFeatures: _list[ + typing_extensions.Literal["IF_CROSS_SITE_NETWORK", "IF_MACSEC"] + ] circuitInfos: _list[InterconnectCircuitInfo] creationTimestamp: str customerName: str @@ -3411,6 +3574,7 @@ class Interconnect(typing_extensions.TypedDict, total=False): googleReferenceId: str id: str interconnectAttachments: _list[str] + interconnectGroups: _list[str] interconnectType: typing_extensions.Literal["DEDICATED", "IT_PRIVATE", "PARTNER"] kind: str labelFingerprint: str @@ -3427,12 +3591,15 @@ class Interconnect(typing_extensions.TypedDict, total=False): peerIpAddress: str provisionedLinkCount: int remoteLocation: str - requestedFeatures: _list[typing_extensions.Literal["IF_MACSEC"]] + requestedFeatures: _list[ + typing_extensions.Literal["IF_CROSS_SITE_NETWORK", "IF_MACSEC"] + ] requestedLinkCount: int satisfiesPzs: bool selfLink: str selfLinkWithId: str state: typing_extensions.Literal["ACTIVE", "UNPROVISIONED"] + wireGroups: _list[str] @typing.type_check_only class InterconnectApplicationAwareInterconnect( @@ -3470,6 +3637,7 @@ class InterconnectApplicationAwareInterconnectStrictPriorityPolicy( @typing.type_check_only class InterconnectAttachment(typing_extensions.TypedDict, total=False): adminEnabled: bool + attachmentGroup: str bandwidth: typing_extensions.Literal[ "BPS_100G", "BPS_100M", @@ -3485,6 +3653,10 @@ class InterconnectAttachment(typing_extensions.TypedDict, total=False): "BPS_50M", "BPS_5G", ] + candidateCloudRouterIpAddress: str + candidateCloudRouterIpv6Address: str + candidateCustomerRouterIpAddress: str + candidateCustomerRouterIpv6Address: str candidateIpv6Subnets: _list[str] candidateSubnets: _list[str] cloudRouterIpAddress: str @@ -3506,6 +3678,7 @@ class InterconnectAttachment(typing_extensions.TypedDict, total=False): interconnect: str ipsecInternalAddresses: _list[str] kind: str + l2Forwarding: InterconnectAttachmentL2Forwarding labelFingerprint: str labels: dict[str, typing.Any] mtu: int @@ -3533,7 +3706,9 @@ class InterconnectAttachment(typing_extensions.TypedDict, total=False): "UNPROVISIONED", ] subnetLength: int - type: typing_extensions.Literal["DEDICATED", "PARTNER", "PARTNER_PROVIDER"] + type: typing_extensions.Literal[ + "DEDICATED", "L2_DEDICATED", "PARTNER", "PARTNER_PROVIDER" + ] vlanTag8021q: int @typing.type_check_only @@ -3562,6 +3737,165 @@ class InterconnectAttachmentConfigurationConstraintsBgpPeerASNRange( max: int min: int +@typing.type_check_only +class InterconnectAttachmentGroup(typing_extensions.TypedDict, total=False): + attachments: dict[str, typing.Any] + configured: InterconnectAttachmentGroupConfigured + creationTimestamp: str + description: str + etag: str + id: str + intent: InterconnectAttachmentGroupIntent + interconnectGroup: str + kind: str + logicalStructure: InterconnectAttachmentGroupLogicalStructure + name: str + selfLink: str + +@typing.type_check_only +class InterconnectAttachmentGroupAttachment(typing_extensions.TypedDict, total=False): + attachment: str + +@typing.type_check_only +class InterconnectAttachmentGroupConfigured(typing_extensions.TypedDict, total=False): + availabilitySla: InterconnectAttachmentGroupConfiguredAvailabilitySLA + +@typing.type_check_only +class InterconnectAttachmentGroupConfiguredAvailabilitySLA( + typing_extensions.TypedDict, total=False +): + effectiveSla: typing_extensions.Literal[ + "EFFECTIVE_SLA_UNSPECIFIED", + "NO_SLA", + "PRODUCTION_CRITICAL", + "PRODUCTION_NON_CRITICAL", + ] + intendedSlaBlockers: _list[ + InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers + ] + +@typing.type_check_only +class InterconnectAttachmentGroupConfiguredAvailabilitySLAIntendedSlaBlockers( + typing_extensions.TypedDict, total=False +): + attachments: _list[str] + blockerType: typing_extensions.Literal[ + "BLOCKER_TYPE_UNSPECIFIED", + "INCOMPATIBLE_METROS", + "INCOMPATIBLE_REGIONS", + "MISSING_GLOBAL_ROUTING", + "NO_ATTACHMENTS", + "NO_ATTACHMENTS_IN_METRO_AND_ZONE", + "OTHER", + ] + documentationLink: str + explanation: str + metros: _list[str] + regions: _list[str] + zones: _list[str] + +@typing.type_check_only +class InterconnectAttachmentGroupIntent(typing_extensions.TypedDict, total=False): + availabilitySla: typing_extensions.Literal[ + "AVAILABILITY_SLA_UNSPECIFIED", + "NO_SLA", + "PRODUCTION_CRITICAL", + "PRODUCTION_NON_CRITICAL", + ] + +@typing.type_check_only +class InterconnectAttachmentGroupLogicalStructure( + typing_extensions.TypedDict, total=False +): + regions: _list[InterconnectAttachmentGroupLogicalStructureRegion] + +@typing.type_check_only +class InterconnectAttachmentGroupLogicalStructureRegion( + typing_extensions.TypedDict, total=False +): + metros: _list[InterconnectAttachmentGroupLogicalStructureRegionMetro] + region: str + +@typing.type_check_only +class InterconnectAttachmentGroupLogicalStructureRegionMetro( + typing_extensions.TypedDict, total=False +): + facilities: _list[InterconnectAttachmentGroupLogicalStructureRegionMetroFacility] + metro: str + +@typing.type_check_only +class InterconnectAttachmentGroupLogicalStructureRegionMetroFacility( + typing_extensions.TypedDict, total=False +): + facility: str + zones: _list[InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone] + +@typing.type_check_only +class InterconnectAttachmentGroupLogicalStructureRegionMetroFacilityZone( + typing_extensions.TypedDict, total=False +): + attachments: _list[str] + zone: str + +@typing.type_check_only +class InterconnectAttachmentGroupsGetOperationalStatusResponse( + typing_extensions.TypedDict, total=False +): + etag: str + result: InterconnectAttachmentGroupsOperationalStatus + +@typing.type_check_only +class InterconnectAttachmentGroupsListResponse( + typing_extensions.TypedDict, total=False +): + etag: str + id: str + items: _list[InterconnectAttachmentGroup] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + +@typing.type_check_only +class InterconnectAttachmentGroupsOperationalStatus( + typing_extensions.TypedDict, total=False +): + groupStatus: typing_extensions.Literal[ + "DEGRADED", "FULLY_DOWN", "FULLY_UP", "UNSPECIFIED" + ] + +@typing.type_check_only +class InterconnectAttachmentL2Forwarding(typing_extensions.TypedDict, total=False): + applianceMappings: dict[str, typing.Any] + defaultApplianceIpAddress: str + geneveHeader: InterconnectAttachmentL2ForwardingGeneveHeader + network: str + tunnelEndpointIpAddress: str + +@typing.type_check_only +class InterconnectAttachmentL2ForwardingApplianceMapping( + typing_extensions.TypedDict, total=False +): + applianceIpAddress: str + innerVlanToApplianceMappings: _list[ + InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping + ] + name: str + +@typing.type_check_only +class InterconnectAttachmentL2ForwardingApplianceMappingInnerVlanToApplianceMapping( + typing_extensions.TypedDict, total=False +): + innerApplianceIpAddress: str + innerVlanTags: _list[str] + +@typing.type_check_only +class InterconnectAttachmentL2ForwardingGeneveHeader( + typing_extensions.TypedDict, total=False +): + vni: int + @typing.type_check_only class InterconnectAttachmentList(typing_extensions.TypedDict, total=False): id: str @@ -3640,6 +3974,126 @@ class InterconnectDiagnosticsMacsecStatus(typing_extensions.TypedDict, total=Fal ckn: str operational: bool +@typing.type_check_only +class InterconnectGroup(typing_extensions.TypedDict, total=False): + configured: InterconnectGroupConfigured + creationTimestamp: str + description: str + etag: str + id: str + intent: InterconnectGroupIntent + interconnects: dict[str, typing.Any] + kind: str + name: str + physicalStructure: InterconnectGroupPhysicalStructure + selfLink: str + +@typing.type_check_only +class InterconnectGroupConfigured(typing_extensions.TypedDict, total=False): + topologyCapability: InterconnectGroupConfiguredTopologyCapability + +@typing.type_check_only +class InterconnectGroupConfiguredTopologyCapability( + typing_extensions.TypedDict, total=False +): + intendedCapabilityBlockers: _list[ + InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers + ] + supportedSla: typing_extensions.Literal[ + "NO_SLA", "PRODUCTION_CRITICAL", "PRODUCTION_NON_CRITICAL", "UNSPECIFIED" + ] + +@typing.type_check_only +class InterconnectGroupConfiguredTopologyCapabilityIntendedCapabilityBlockers( + typing_extensions.TypedDict, total=False +): + blockerType: typing_extensions.Literal[ + "INCOMPATIBLE_METROS", + "NOT_AVAILABLE", + "NO_INTERCONNECTS", + "NO_INTERCONNECTS_IN_METRO_AND_ZONE", + "OTHER", + "UNSPECIFIED", + ] + documentationLink: str + explanation: str + facilities: _list[str] + interconnects: _list[str] + metros: _list[str] + zones: _list[str] + +@typing.type_check_only +class InterconnectGroupIntent(typing_extensions.TypedDict, total=False): + topologyCapability: typing_extensions.Literal[ + "NO_SLA", "PRODUCTION_CRITICAL", "PRODUCTION_NON_CRITICAL", "UNSPECIFIED" + ] + +@typing.type_check_only +class InterconnectGroupInterconnect(typing_extensions.TypedDict, total=False): + interconnect: str + +@typing.type_check_only +class InterconnectGroupPhysicalStructure(typing_extensions.TypedDict, total=False): + metros: _list[InterconnectGroupPhysicalStructureMetros] + +@typing.type_check_only +class InterconnectGroupPhysicalStructureMetros( + typing_extensions.TypedDict, total=False +): + facilities: _list[InterconnectGroupPhysicalStructureMetrosFacilities] + metro: str + +@typing.type_check_only +class InterconnectGroupPhysicalStructureMetrosFacilities( + typing_extensions.TypedDict, total=False +): + facility: str + zones: _list[InterconnectGroupPhysicalStructureMetrosFacilitiesZones] + +@typing.type_check_only +class InterconnectGroupPhysicalStructureMetrosFacilitiesZones( + typing_extensions.TypedDict, total=False +): + interconnects: _list[str] + zone: str + +@typing.type_check_only +class InterconnectGroupsGetOperationalStatusResponse( + typing_extensions.TypedDict, total=False +): + etag: str + result: InterconnectGroupsOperationalStatus + +@typing.type_check_only +class InterconnectGroupsListResponse(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[InterconnectGroup] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + +@typing.type_check_only +class InterconnectGroupsOperationalStatus(typing_extensions.TypedDict, total=False): + configured: InterconnectGroupConfigured + groupStatus: typing_extensions.Literal[ + "DEGRADED", "FULLY_DOWN", "FULLY_UP", "GROUPS_STATUS_UNSPECIFIED" + ] + intent: InterconnectGroupIntent + interconnectStatuses: _list[InterconnectGroupsOperationalStatusInterconnectStatus] + operational: InterconnectGroupConfigured + +@typing.type_check_only +class InterconnectGroupsOperationalStatusInterconnectStatus( + typing_extensions.TypedDict, total=False +): + adminEnabled: bool + diagnostics: InterconnectDiagnostics + interconnect: str + isActive: typing_extensions.Literal["ACTIVE", "INACTIVE", "IS_ACTIVE_UNSPECIFIED"] + @typing.type_check_only class InterconnectList(typing_extensions.TypedDict, total=False): id: str @@ -3653,7 +4107,9 @@ class InterconnectList(typing_extensions.TypedDict, total=False): class InterconnectLocation(typing_extensions.TypedDict, total=False): address: str availabilityZone: str - availableFeatures: _list[typing_extensions.Literal["IF_MACSEC"]] + availableFeatures: _list[ + typing_extensions.Literal["IF_CROSS_SITE_NETWORK", "IF_MACSEC"] + ] availableLinkTypes: _list[ typing_extensions.Literal[ "LINK_TYPE_ETHERNET_100G_LR", "LINK_TYPE_ETHERNET_10G_LR" @@ -3673,6 +4129,7 @@ class InterconnectLocation(typing_extensions.TypedDict, total=False): "SOUTH_AMERICA", ] creationTimestamp: str + crossSiteInterconnectInfos: _list[InterconnectLocationCrossSiteInterconnectInfo] description: str facilityProvider: str facilityProviderFacilityId: str @@ -3686,6 +4143,13 @@ class InterconnectLocation(typing_extensions.TypedDict, total=False): status: typing_extensions.Literal["AVAILABLE", "CLOSED"] supportsPzs: bool +@typing.type_check_only +class InterconnectLocationCrossSiteInterconnectInfo( + typing_extensions.TypedDict, total=False +): + city: str + maxSingleFlowGbps: int + @typing.type_check_only class InterconnectLocationList(typing_extensions.TypedDict, total=False): id: str @@ -3968,33 +4432,6 @@ class LocationPolicyLocation(typing_extensions.TypedDict, total=False): class LocationPolicyLocationConstraints(typing_extensions.TypedDict, total=False): maxCount: int -@typing.type_check_only -class LogConfig(typing_extensions.TypedDict, total=False): - cloudAudit: LogConfigCloudAuditOptions - counter: LogConfigCounterOptions - dataAccess: LogConfigDataAccessOptions - -@typing.type_check_only -class LogConfigCloudAuditOptions(typing_extensions.TypedDict, total=False): - logName: typing_extensions.Literal[ - "ADMIN_ACTIVITY", "DATA_ACCESS", "UNSPECIFIED_LOG_NAME" - ] - -@typing.type_check_only -class LogConfigCounterOptions(typing_extensions.TypedDict, total=False): - customFields: _list[LogConfigCounterOptionsCustomField] - field: str - metric: str - -@typing.type_check_only -class LogConfigCounterOptionsCustomField(typing_extensions.TypedDict, total=False): - name: str - value: str - -@typing.type_check_only -class LogConfigDataAccessOptions(typing_extensions.TypedDict, total=False): - logMode: typing_extensions.Literal["LOG_FAIL_CLOSED", "LOG_MODE_UNSPECIFIED"] - @typing.type_check_only class MachineImage(typing_extensions.TypedDict, total=False): creationTimestamp: str @@ -4101,6 +4538,7 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): instanceHealth: _list[ManagedInstanceInstanceHealth] instanceStatus: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -4150,7 +4588,9 @@ class ManagedInstanceInstanceFlexibilityOverride( typing_extensions.TypedDict, total=False ): machineType: str - provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + provisioningModel: typing_extensions.Literal[ + "RESERVATION_BOUND", "SPOT", "STANDARD" + ] @typing.type_check_only class ManagedInstanceInstanceHealth(typing_extensions.TypedDict, total=False): @@ -4169,7 +4609,9 @@ class ManagedInstancePropertiesFromFlexibilityPolicy( typing_extensions.TypedDict, total=False ): machineType: str - provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + provisioningModel: typing_extensions.Literal[ + "RESERVATION_BOUND", "SPOT", "STANDARD" + ] @typing.type_check_only class ManagedInstanceVersion(typing_extensions.TypedDict, total=False): @@ -4203,6 +4645,38 @@ class Money(typing_extensions.TypedDict, total=False): nanos: int units: str +@typing.type_check_only +class MultiMig(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + id: str + kind: str + name: str + region: str + resourcePolicies: MultiMigResourcePolicies + selfLink: str + selfLinkWithId: str + status: MultiMigStatus + +@typing.type_check_only +class MultiMigResourcePolicies(typing_extensions.TypedDict, total=False): + workloadPolicy: str + +@typing.type_check_only +class MultiMigStatus(typing_extensions.TypedDict, total=False): + memberInstanceGroupManagers: _list[str] + +@typing.type_check_only +class MultiMigsList(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[MultiMig] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class MutualTls(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal["INVALID", "PERMISSIVE", "STRICT"] @@ -4511,6 +4985,16 @@ class NetworkEndpointWithHealthStatus(typing_extensions.TypedDict, total=False): healths: _list[HealthStatusForNetworkEndpoint] networkEndpoint: NetworkEndpoint +@typing.type_check_only +class NetworkFirewallPolicyAggregatedList(typing_extensions.TypedDict, total=False): + id: str + items: dict[str, typing.Any] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): accessConfigs: _list[AccessConfig] @@ -4527,7 +5011,7 @@ class NetworkInterface(typing_extensions.TypedDict, total=False): networkAttachment: str networkIP: str nicType: typing_extensions.Literal[ - "GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ] parentNicName: str queueCount: int @@ -4582,11 +5066,17 @@ class NetworkProfile(typing_extensions.TypedDict, total=False): features: NetworkProfileNetworkFeatures id: str kind: str + location: NetworkProfileLocation name: str selfLink: str selfLinkWithId: str zone: str +@typing.type_check_only +class NetworkProfileLocation(typing_extensions.TypedDict, total=False): + name: str + scope: typing_extensions.Literal["REGION", "ZONE"] + @typing.type_check_only class NetworkProfileNetworkFeatures(typing_extensions.TypedDict, total=False): addressPurposes: _list[ @@ -4647,22 +5137,23 @@ class NetworkProfileNetworkFeatures(typing_extensions.TypedDict, total=False): "VPC_PEERING_ALLOWED", "VPC_PEERING_BLOCKED" ] allowVpn: typing_extensions.Literal["VPN_ALLOWED", "VPN_BLOCKED"] - allowedSubnetPurposes: _list[ + interfaceTypes: _list[ + typing_extensions.Literal[ + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + ] + ] + subnetPurposes: _list[ typing_extensions.Literal[ "SUBNET_PURPOSE_CUSTOM_HARDWARE", "SUBNET_PURPOSE_PRIVATE" ] ] - allowedSubnetStackTypes: _list[ + subnetStackTypes: _list[ typing_extensions.Literal[ "SUBNET_STACK_TYPE_IPV4_IPV6", "SUBNET_STACK_TYPE_IPV4_ONLY", "SUBNET_STACK_TYPE_IPV6_ONLY", ] ] - interfaceTypes: _list[ - typing_extensions.Literal["GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET"] - ] - multicast: typing_extensions.Literal["MULTICAST_SDN", "MULTICAST_ULL"] unicast: typing_extensions.Literal["UNICAST_SDN", "UNICAST_ULL"] @typing.type_check_only @@ -4681,6 +5172,8 @@ class NetworkRoutingConfig(typing_extensions.TypedDict, total=False): bgpAlwaysCompareMed: bool bgpBestPathSelectionMode: typing_extensions.Literal["LEGACY", "STANDARD"] bgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] + effectiveBgpAlwaysCompareMed: bool + effectiveBgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] routingMode: typing_extensions.Literal["GLOBAL", "REGIONAL"] @typing.type_check_only @@ -4706,6 +5199,7 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] shortName: str @@ -4903,6 +5397,7 @@ class NodeType(typing_extensions.TypedDict, total=False): id: str kind: str localSsdGb: int + maxVms: int memoryMb: int name: str selfLink: str @@ -5205,7 +5700,6 @@ class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] bindings: _list[Binding] etag: str - rules: _list[Rule] version: int @typing.type_check_only @@ -5387,7 +5881,9 @@ class PublicDelegatedPrefix(typing_extensions.TypedDict, total=False): isLiveMigration: bool kind: str mode: typing_extensions.Literal[ - "DELEGATION", "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" + "DELEGATION", + "EXTERNAL_IPV6_FORWARDING_RULE_CREATION", + "EXTERNAL_IPV6_SUBNETWORK_CREATION", ] name: str parentPrefix: str @@ -5433,7 +5929,9 @@ class PublicDelegatedPrefixPublicDelegatedSubPrefix( ipCidrRange: str isAddress: bool mode: typing_extensions.Literal[ - "DELEGATION", "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" + "DELEGATION", + "EXTERNAL_IPV6_FORWARDING_RULE_CREATION", + "EXTERNAL_IPV6_SUBNETWORK_CREATION", ] name: str region: str @@ -5992,6 +6490,7 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] type: typing_extensions.Literal[ @@ -6024,6 +6523,20 @@ class RegionTargetHttpsProxiesSetSslCertificatesRequest( class RegionUrlMapsValidateRequest(typing_extensions.TypedDict, total=False): resource: UrlMap +@typing.type_check_only +class RegionWaitForReplicationCatchUpRequest(typing_extensions.TypedDict, total=False): + maxWaitDuration: str + +@typing.type_check_only +class ReplicationDetails(typing_extensions.TypedDict, total=False): + lastReplicationTime: str + secondsSinceLastReplication: str + +@typing.type_check_only +class ReplicationDiskPair(typing_extensions.TypedDict, total=False): + primaryDisk: str + secondaryDisk: str + @typing.type_check_only class RequestMirrorPolicy(typing_extensions.TypedDict, total=False): backendService: str @@ -6041,9 +6554,6 @@ class Reservation(typing_extensions.TypedDict, total=False): ] description: str id: str - instanceTerminationAction: typing_extensions.Literal[ - "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "STOP" - ] kind: str name: str reservationSharingPolicy: AllocationReservationSharingPolicy @@ -6092,11 +6602,18 @@ class ReservationBlock(typing_extensions.TypedDict, total=False): kind: str locationPrefix: str name: str + physicalTopology: ReservationBlockPhysicalTopology + reservationMaintenance: GroupMaintenanceInfo selfLink: str selfLinkWithId: str status: typing_extensions.Literal["CREATING", "DELETING", "INVALID", "READY"] zone: str +@typing.type_check_only +class ReservationBlockPhysicalTopology(typing_extensions.TypedDict, total=False): + block: str + cluster: str + @typing.type_check_only class ReservationBlocksGetResponse(typing_extensions.TypedDict, total=False): resource: ReservationBlock @@ -6119,6 +6636,20 @@ class ReservationList(typing_extensions.TypedDict, total=False): selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class ReservationsBlocksPerformMaintenanceRequest( + typing_extensions.TypedDict, total=False +): + maintenanceScope: typing_extensions.Literal[ + "ALL", "MAINTENANCE_SCOPE_UNSPECIFIED", "RUNNING_VMS", "UNUSED_CAPACITY" + ] + +@typing.type_check_only +class ReservationsPerformMaintenanceRequest(typing_extensions.TypedDict, total=False): + maintenanceScope: typing_extensions.Literal[ + "ALL", "MAINTENANCE_SCOPE_UNSPECIFIED", "RUNNING_VMS", "UNUSED_CAPACITY" + ] + @typing.type_check_only class ReservationsResizeRequest(typing_extensions.TypedDict, total=False): specificSkuCount: str @@ -6194,6 +6725,7 @@ class ResourcePolicyGroupPlacementPolicy(typing_extensions.TypedDict, total=Fals collocation: typing_extensions.Literal[ "CLUSTERED", "COLLOCATED", "MAX_SPREAD", "UNSPECIFIED_COLLOCATION" ] + gpuTopology: str maxDistance: int scope: typing_extensions.Literal["HOST", "UNSPECIFIED_SCOPE"] sliceCount: int @@ -6322,13 +6854,39 @@ class ResourcePolicyWorkloadPolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResourceStatus(typing_extensions.TypedDict, total=False): + acceleratorStatus: _list[ResourceStatusAcceleratorStatus] lastInstanceTerminationDetails: ResourceStatusLastInstanceTerminationDetails physicalHost: str + physicalHostTopology: ResourceStatusPhysicalHostTopology scheduling: ResourceStatusScheduling serviceIntegrationStatuses: dict[str, typing.Any] shutdownDetails: ResourceStatusShutdownDetails upcomingMaintenance: UpcomingMaintenance +@typing.type_check_only +class ResourceStatusAcceleratorStatus(typing_extensions.TypedDict, total=False): + passedScans: _list[ResourceStatusAcceleratorStatusPassedScan] + recommendedScans: _list[ResourceStatusAcceleratorStatusRecommendedScan] + serialNumber: str + uuid: str + +@typing.type_check_only +class ResourceStatusAcceleratorStatusPassedScan( + typing_extensions.TypedDict, total=False +): + endTime: str + name: str + startTime: str + version: str + +@typing.type_check_only +class ResourceStatusAcceleratorStatusRecommendedScan( + typing_extensions.TypedDict, total=False +): + estimatedDuration: Duration + name: str + version: str + @typing.type_check_only class ResourceStatusLastInstanceTerminationDetails( typing_extensions.TypedDict, total=False @@ -6350,6 +6908,13 @@ class ResourceStatusLastInstanceTerminationDetails( "USER_TERMINATED", ] +@typing.type_check_only +class ResourceStatusPhysicalHostTopology(typing_extensions.TypedDict, total=False): + block: str + cluster: str + host: str + subblock: str + @typing.type_check_only class ResourceStatusScheduling(typing_extensions.TypedDict, total=False): availabilityDomain: int @@ -6372,7 +6937,7 @@ class ResourceStatusServiceIntegrationStatusBackupDRStatus( class ResourceStatusShutdownDetails(typing_extensions.TypedDict, total=False): maxDuration: Duration requestTimestamp: str - stopState: typing_extensions.Literal["PENDING_STOP", "SHUTTING_DOWN", "STOPPING"] + stopState: typing_extensions.Literal["PENDING_STOP", "STOPPING"] targetState: typing_extensions.Literal["DELETED", "STOPPED"] @typing.type_check_only @@ -6459,6 +7024,7 @@ class Router(typing_extensions.TypedDict, total=False): md5AuthenticationKeys: _list[RouterMd5AuthenticationKey] name: str nats: _list[RouterNat] + nccGateway: str network: str region: str selfLink: str @@ -6756,18 +7322,6 @@ class RoutersScopedList(typing_extensions.TypedDict, total=False): routers: _list[Router] warning: dict[str, typing.Any] -@typing.type_check_only -class Rule(typing_extensions.TypedDict, total=False): - action: typing_extensions.Literal[ - "ALLOW", "ALLOW_WITH_LOG", "DENY", "DENY_WITH_LOG", "LOG", "NO_ACTION" - ] - conditions: _list[Condition] - description: str - ins: _list[str] - logConfigs: _list[LogConfig] - notIns: _list[str] - permissions: _list[str] - @typing.type_check_only class SSLHealthCheck(typing_extensions.TypedDict, total=False): port: int @@ -6836,7 +7390,10 @@ class Scheduling(typing_extensions.TypedDict, total=False): onHostMaintenance: typing_extensions.Literal["MIGRATE", "TERMINATE"] onInstanceStopAction: SchedulingOnInstanceStopAction preemptible: bool - provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + provisioningModel: typing_extensions.Literal[ + "RESERVATION_BOUND", "SPOT", "STANDARD" + ] + shutdownTimeout: Duration terminationTime: str windowsLicenseOptimizationMode: typing_extensions.Literal[ "AUTO", "BALANCED", "COST_OPTIMIZED", "OFF", "PERFORMANCE", "UNSPECIFIED" @@ -6982,6 +7539,7 @@ class SecurityPolicyAdvancedOptionsConfig(typing_extensions.TypedDict, total=Fal "DISABLED", "STANDARD", "STANDARD_WITH_GRAPHQL" ] logLevel: typing_extensions.Literal["NORMAL", "VERBOSE"] + requestBodyInspectionSize: str userIpRequestHeaders: _list[str] @typing.type_check_only @@ -7169,6 +7727,7 @@ class SecurityPolicyRuleRateLimitOptions(typing_extensions.TypedDict, total=Fals "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -7194,6 +7753,7 @@ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig( "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -7886,8 +8446,10 @@ class Subnetwork(typing_extensions.TypedDict, total=False): id: str internalIpv6Prefix: str ipCidrRange: str + ipCollection: str ipv6AccessType: typing_extensions.Literal["EXTERNAL", "INTERNAL"] ipv6CidrRange: str + ipv6GceEndpoint: typing_extensions.Literal["VM_AND_FR", "VM_ONLY"] kind: str logConfig: SubnetworkLogConfig metadata: typing_extensions.Literal["EXCLUDE_ALL_METADATA", "INCLUDE_ALL_METADATA"] @@ -7905,7 +8467,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): "CUSTOM_HARDWARE_LINK", "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", - "MIGRATION", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -8113,7 +8675,9 @@ class TargetHttpsProxy(typing_extensions.TypedDict, total=False): serverTlsPolicy: str sslCertificates: _list[str] sslPolicy: str - tlsEarlyData: typing_extensions.Literal["DISABLED", "PERMISSIVE", "STRICT"] + tlsEarlyData: typing_extensions.Literal[ + "DISABLED", "PERMISSIVE", "STRICT", "UNRESTRICTED" + ] urlMap: str @typing.type_check_only @@ -8556,7 +9120,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): "CUSTOM_HARDWARE_LINK", "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", - "MIGRATION", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -8579,7 +9143,7 @@ class UsableSubnetworksAggregatedList(typing_extensions.TypedDict, total=False): items: _list[UsableSubnetwork] kind: str nextPageToken: str - scoped_warnings: _list[SubnetworksScopedWarning] + scopedWarnings: _list[SubnetworksScopedWarning] selfLink: str unreachables: _list[str] warning: dict[str, typing.Any] @@ -8778,12 +9342,103 @@ class WafExpressionSetExpression(typing_extensions.TypedDict, total=False): id: str sensitivity: int +@typing.type_check_only +class WaitForReplicationCatchUpRequest(typing_extensions.TypedDict, total=False): + maxWaitDuration: str + @typing.type_check_only class WeightedBackendService(typing_extensions.TypedDict, total=False): backendService: str headerAction: HttpHeaderAction weight: int +@typing.type_check_only +class Wire(typing_extensions.TypedDict, total=False): + adminEnabled: bool + endpoints: _list[WireEndpoint] + label: str + wireProperties: WireProperties + +@typing.type_check_only +class WireEndpoint(typing_extensions.TypedDict, total=False): + interconnect: str + vlanTag: int + +@typing.type_check_only +class WireGroup(typing_extensions.TypedDict, total=False): + adminEnabled: bool + creationTimestamp: str + description: str + endpoints: dict[str, typing.Any] + id: str + kind: str + name: str + selfLink: str + selfLinkWithId: str + serviceLevel: WireGroupServiceLevel + topology: WireGroupTopology + wireGroupProperties: WireGroupProperties + wireInputs: dict[str, typing.Any] + wireProperties: WireProperties + wires: _list[Wire] + +@typing.type_check_only +class WireGroupEndpoint(typing_extensions.TypedDict, total=False): + interconnects: dict[str, typing.Any] + +@typing.type_check_only +class WireGroupEndpointInterconnect(typing_extensions.TypedDict, total=False): + interconnect: str + vlanTags: _list[int] + +@typing.type_check_only +class WireGroupList(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[WireGroup] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + +@typing.type_check_only +class WireGroupProperties(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal["BOX_AND_CROSS", "REDUNDANT", "WIRE"] + +@typing.type_check_only +class WireGroupServiceLevel(typing_extensions.TypedDict, total=False): + availabilityClass: typing_extensions.Literal[ + "AVAILABILITY_99", + "AVAILABILITY_999", + "AVAILABILITY_9995", + "NO_AVAILABILITY_SLA", + ] + +@typing.type_check_only +class WireGroupTopology(typing_extensions.TypedDict, total=False): + endpoints: _list[WireGroupTopologyEndpoint] + +@typing.type_check_only +class WireGroupTopologyEndpoint(typing_extensions.TypedDict, total=False): + city: str + label: str + +@typing.type_check_only +class WireGroupWireInputs(typing_extensions.TypedDict, total=False): + adminEnabled: bool + wirePropertyOverrides: WireProperties + +@typing.type_check_only +class WireProperties(typing_extensions.TypedDict, total=False): + bandwidthAllocation: typing_extensions.Literal[ + "ALLOCATE_PER_WIRE", "SHARED_WITH_WIRE_GROUP" + ] + bandwidthMetered: str + bandwidthUnmetered: str + faultResponse: typing_extensions.Literal["DISABLE_PORT", "NONE"] + networkServiceClass: typing_extensions.Literal["BRONZE", "GOLD"] + @typing.type_check_only class XpnHostList(typing_extensions.TypedDict, total=False): id: str diff --git a/googleapiclient-stubs/_apis/compute/beta/resources.pyi b/googleapiclient-stubs/_apis/compute/beta/resources.pyi index 5e84f988..0dc9cbd4 100644 --- a/googleapiclient-stubs/_apis/compute/beta/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/beta/resources.pyi @@ -386,6 +386,9 @@ class ComputeResource(googleapiclient.discovery.Resource): def get( self, *, project: str, backendService: str, **kwargs: typing.Any ) -> BackendServiceHttpRequest: ... + def getEffectiveSecurityPolicies( + self, *, project: str, backendService: str, **kwargs: typing.Any + ) -> BackendServicesGetEffectiveSecurityPoliciesResponseHttpRequest: ... def getHealth( self, *, @@ -2483,6 +2486,7 @@ class ComputeResource(googleapiclient.discovery.Resource): project: str, zone: str, instance: str, + noGracefulShutdown: bool = ..., requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -2860,6 +2864,7 @@ class ComputeResource(googleapiclient.discovery.Resource): zone: str, instance: str, discardLocalSsd: bool = ..., + noGracefulShutdown: bool = ..., requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -3741,6 +3746,24 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def aggregatedList( + self, + *, + project: str, + filter: str = ..., + includeAllScopes: bool = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + serviceProjectNumber: str = ..., + **kwargs: typing.Any, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest: ... + def aggregatedList_next( + self, + previous_request: NetworkFirewallPolicyAggregatedListHttpRequest, + previous_response: NetworkFirewallPolicyAggregatedList, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest | None: ... def cloneRules( self, *, @@ -3890,6 +3913,28 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class NetworkProfilesResource(googleapiclient.discovery.Resource): + def get( + self, *, project: str, networkProfile: str, **kwargs: typing.Any + ) -> NetworkProfileHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> NetworkProfilesListResponseHttpRequest: ... + def list_next( + self, + previous_request: NetworkProfilesListResponseHttpRequest, + previous_response: NetworkProfilesListResponse, + ) -> NetworkProfilesListResponseHttpRequest | None: ... + @typing.type_check_only class NetworksResource(googleapiclient.discovery.Resource): def addPeering( @@ -4361,6 +4406,17 @@ class ComputeResource(googleapiclient.discovery.Resource): def listAssociations( self, *, targetResource: str = ..., **kwargs: typing.Any ) -> OrganizationSecurityPoliciesListAssociationsResponseHttpRequest: ... + def listPreconfiguredExpressionSets( + self, + *, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + parentId: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> SecurityPoliciesListPreconfiguredExpressionSetsResponseHttpRequest: ... def move( self, *, @@ -5930,6 +5986,47 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class RegionMultiMigsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + region: str, + multiMig: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, project: str, region: str, multiMig: str, **kwargs: typing.Any + ) -> MultiMigHttpRequest: ... + def insert( + self, + *, + project: str, + region: str, + body: MultiMig = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + region: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> MultiMigsListHttpRequest: ... + def list_next( + self, + previous_request: MultiMigsListHttpRequest, + previous_response: MultiMigsList, + ) -> MultiMigsListHttpRequest | None: ... + @typing.type_check_only class RegionNetworkEndpointGroupsResource(googleapiclient.discovery.Resource): def attachNetworkEndpoints( @@ -6363,6 +6460,16 @@ class ComputeResource(googleapiclient.discovery.Resource): priority: int = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def setLabels( + self, + *, + project: str, + region: str, + resource: str, + body: RegionSetLabelsRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class RegionSslCertificatesResource(googleapiclient.discovery.Resource): @@ -6821,6 +6928,36 @@ class ComputeResource(googleapiclient.discovery.Resource): self, previous_request: RegionListHttpRequest, previous_response: RegionList ) -> RegionListHttpRequest | None: ... + @typing.type_check_only + class ReservationBlocksResource(googleapiclient.discovery.Resource): + def get( + self, + *, + project: str, + zone: str, + reservation: str, + reservationBlock: str, + **kwargs: typing.Any, + ) -> ReservationBlocksGetResponseHttpRequest: ... + def list( + self, + *, + project: str, + zone: str, + reservation: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> ReservationBlocksListResponseHttpRequest: ... + def list_next( + self, + previous_request: ReservationBlocksListResponseHttpRequest, + previous_response: ReservationBlocksListResponse, + ) -> ReservationBlocksListResponseHttpRequest | None: ... + @typing.type_check_only class ReservationsResource(googleapiclient.discovery.Resource): def aggregatedList( @@ -7192,6 +7329,16 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def patchRoutePolicy( + self, + *, + project: str, + region: str, + router: str, + body: RoutePolicy = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def preview( self, *, @@ -9119,6 +9266,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def networkEdgeSecurityServices(self) -> NetworkEdgeSecurityServicesResource: ... def networkEndpointGroups(self) -> NetworkEndpointGroupsResource: ... def networkFirewallPolicies(self) -> NetworkFirewallPoliciesResource: ... + def networkProfiles(self) -> NetworkProfilesResource: ... def networks(self) -> NetworksResource: ... def nodeGroups(self) -> NodeGroupsResource: ... def nodeTemplates(self) -> NodeTemplatesResource: ... @@ -9143,6 +9291,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def regionInstanceTemplates(self) -> RegionInstanceTemplatesResource: ... def regionInstances(self) -> RegionInstancesResource: ... def regionInstantSnapshots(self) -> RegionInstantSnapshotsResource: ... + def regionMultiMigs(self) -> RegionMultiMigsResource: ... def regionNetworkEndpointGroups(self) -> RegionNetworkEndpointGroupsResource: ... def regionNetworkFirewallPolicies( self, @@ -9158,6 +9307,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def regionUrlMaps(self) -> RegionUrlMapsResource: ... def regionZones(self) -> RegionZonesResource: ... def regions(self) -> RegionsResource: ... + def reservationBlocks(self) -> ReservationBlocksResource: ... def reservations(self) -> ReservationsResource: ... def resourcePolicies(self) -> ResourcePoliciesResource: ... def routers(self) -> RoutersResource: ... @@ -9313,6 +9463,16 @@ class BackendServiceListUsableHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> BackendServiceListUsable: ... +@typing.type_check_only +class BackendServicesGetEffectiveSecurityPoliciesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackendServicesGetEffectiveSecurityPoliciesResponse: ... + @typing.type_check_only class CommitmentHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -9975,6 +10135,22 @@ class MachineTypeListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> MachineTypeList: ... +@typing.type_check_only +class MultiMigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMig: ... + +@typing.type_check_only +class MultiMigsListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMigsList: ... + @typing.type_check_only class NatIpInfoResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10067,6 +10243,14 @@ class NetworkEndpointGroupsListNetworkEndpointsHttpRequest( num_retries: int = 0, ) -> NetworkEndpointGroupsListNetworkEndpoints: ... +@typing.type_check_only +class NetworkFirewallPolicyAggregatedListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkFirewallPolicyAggregatedList: ... + @typing.type_check_only class NetworkListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10075,6 +10259,22 @@ class NetworkListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> NetworkList: ... +@typing.type_check_only +class NetworkProfileHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfile: ... + +@typing.type_check_only +class NetworkProfilesListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfilesListResponse: ... + @typing.type_check_only class NetworksGetEffectiveFirewallsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -10433,6 +10633,22 @@ class ReservationAggregatedListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ReservationAggregatedList: ... +@typing.type_check_only +class ReservationBlocksGetResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ReservationBlocksGetResponse: ... + +@typing.type_check_only +class ReservationBlocksListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ReservationBlocksListResponse: ... + @typing.type_check_only class ReservationListHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/compute/beta/schemas.pyi b/googleapiclient-stubs/_apis/compute/beta/schemas.pyi index 8c715dc8..744d010d 100644 --- a/googleapiclient-stubs/_apis/compute/beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/beta/schemas.pyi @@ -178,6 +178,8 @@ class AllocationReservationSharingPolicy(typing_extensions.TypedDict, total=Fals @typing.type_check_only class AllocationResourceStatus(typing_extensions.TypedDict, total=False): + reservationBlockCount: int + reservationMaintenance: GroupMaintenanceInfo specificSkuAllocation: AllocationResourceStatusSpecificSKUAllocation @typing.type_check_only @@ -273,13 +275,11 @@ class AttachedDiskInitializeParams(typing_extensions.TypedDict, total=False): @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] - exemptedMembers: _list[str] service: str @typing.type_check_only class AuditLogConfig(typing_extensions.TypedDict, total=False): exemptedMembers: _list[str] - ignoreChildExemptions: bool logType: typing_extensions.Literal[ "ADMIN_READ", "DATA_READ", "DATA_WRITE", "LOG_TYPE_UNSPECIFIED" ] @@ -410,8 +410,11 @@ class AutoscalingPolicyScalingSchedule(typing_extensions.TypedDict, total=False) @typing.type_check_only class Backend(typing_extensions.TypedDict, total=False): - balancingMode: typing_extensions.Literal["CONNECTION", "RATE", "UTILIZATION"] + balancingMode: typing_extensions.Literal[ + "CONNECTION", "CUSTOM_METRICS", "RATE", "UTILIZATION" + ] capacityScaler: float + customMetrics: _list[BackendCustomMetric] description: str failover: bool group: str @@ -438,6 +441,7 @@ class BackendBucket(typing_extensions.TypedDict, total=False): enableCdn: bool id: str kind: str + loadBalancingScheme: typing_extensions.Literal["INTERNAL_MANAGED"] name: str selfLink: str usedBy: _list[BackendBucketUsedBy] @@ -493,6 +497,12 @@ class BackendBucketList(typing_extensions.TypedDict, total=False): class BackendBucketUsedBy(typing_extensions.TypedDict, total=False): reference: str +@typing.type_check_only +class BackendCustomMetric(typing_extensions.TypedDict, total=False): + dryRun: bool + maxUtilization: float + name: str + @typing.type_check_only class BackendService(typing_extensions.TypedDict, total=False): affinityCookieTtlSec: int @@ -504,6 +514,7 @@ class BackendService(typing_extensions.TypedDict, total=False): connectionTrackingPolicy: BackendServiceConnectionTrackingPolicy consistentHash: ConsistentHashLoadBalancerSettings creationTimestamp: str + customMetrics: _list[BackendServiceCustomMetric] customRequestHeaders: _list[str] customResponseHeaders: _list[str] description: str @@ -543,6 +554,7 @@ class BackendService(typing_extensions.TypedDict, total=False): "RING_HASH", "ROUND_ROBIN", "WEIGHTED_MAGLEV", + "WEIGHTED_ROUND_ROBIN", ] logConfig: BackendServiceLogConfig maxStreamDuration: Duration @@ -553,7 +565,7 @@ class BackendService(typing_extensions.TypedDict, total=False): port: int portName: str protocol: typing_extensions.Literal[ - "GRPC", "HTTP", "HTTP2", "HTTPS", "SSL", "TCP", "UDP", "UNSPECIFIED" + "GRPC", "H2C", "HTTP", "HTTP2", "HTTPS", "SSL", "TCP", "UDP", "UNSPECIFIED" ] region: str securityPolicy: str @@ -575,6 +587,7 @@ class BackendService(typing_extensions.TypedDict, total=False): strongSessionAffinityCookie: BackendServiceHttpCookie subsetting: Subsetting timeoutSec: int + tlsSettings: BackendServiceTlsSettings usedBy: _list[BackendServiceUsedBy] @typing.type_check_only @@ -633,6 +646,11 @@ class BackendServiceConnectionTrackingPolicy(typing_extensions.TypedDict, total= "INVALID_TRACKING_MODE", "PER_CONNECTION", "PER_SESSION" ] +@typing.type_check_only +class BackendServiceCustomMetric(typing_extensions.TypedDict, total=False): + dryRun: bool + name: str + @typing.type_check_only class BackendServiceFailoverPolicy(typing_extensions.TypedDict, total=False): disableConnectionDrainOnFailover: bool @@ -703,6 +721,7 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy( "RING_HASH", "ROUND_ROBIN", "WEIGHTED_MAGLEV", + "WEIGHTED_ROUND_ROBIN", ] @typing.type_check_only @@ -718,10 +737,27 @@ class BackendServiceLogConfig(typing_extensions.TypedDict, total=False): class BackendServiceReference(typing_extensions.TypedDict, total=False): backendService: str +@typing.type_check_only +class BackendServiceTlsSettings(typing_extensions.TypedDict, total=False): + authenticationConfig: str + sni: str + subjectAltNames: _list[BackendServiceTlsSettingsSubjectAltName] + +@typing.type_check_only +class BackendServiceTlsSettingsSubjectAltName(typing_extensions.TypedDict, total=False): + dnsName: str + uniformResourceIdentifier: str + @typing.type_check_only class BackendServiceUsedBy(typing_extensions.TypedDict, total=False): reference: str +@typing.type_check_only +class BackendServicesGetEffectiveSecurityPoliciesResponse( + typing_extensions.TypedDict, total=False +): + securityPolicies: _list[SecurityPolicy] + @typing.type_check_only class BackendServicesScopedList(typing_extensions.TypedDict, total=False): backendServices: _list[BackendService] @@ -818,7 +854,6 @@ class BgpRouteNetworkLayerReachabilityInformation( @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): - bindingId: str condition: Expr members: _list[str] role: str @@ -888,6 +923,7 @@ class Commitment(typing_extensions.TypedDict, total=False): autoRenew: bool category: typing_extensions.Literal["CATEGORY_UNSPECIFIED", "LICENSE", "MACHINE"] creationTimestamp: str + customEndTimestamp: str description: str endTimestamp: str existingReservations: _list[str] @@ -899,6 +935,7 @@ class Commitment(typing_extensions.TypedDict, total=False): plan: typing_extensions.Literal["INVALID", "THIRTY_SIX_MONTH", "TWELVE_MONTH"] region: str reservations: _list[Reservation] + resourceStatus: CommitmentResourceStatus resources: _list[ResourceCommitment] selfLink: str splitSourceCommitment: str @@ -918,6 +955,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_C4", + "GENERAL_PURPOSE_C4A", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", "GENERAL_PURPOSE_N2D", @@ -926,6 +964,9 @@ class Commitment(typing_extensions.TypedDict, total=False): "GRAPHICS_OPTIMIZED", "MEMORY_OPTIMIZED", "MEMORY_OPTIMIZED_M3", + "MEMORY_OPTIMIZED_X4_16TB", + "MEMORY_OPTIMIZED_X4_24TB", + "MEMORY_OPTIMIZED_X4_32TB", "STORAGE_OPTIMIZED_Z3", "TYPE_UNSPECIFIED", ] @@ -949,30 +990,15 @@ class CommitmentList(typing_extensions.TypedDict, total=False): selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class CommitmentResourceStatus(typing_extensions.TypedDict, total=False): + customTermEligibilityEndTimestamp: str + @typing.type_check_only class CommitmentsScopedList(typing_extensions.TypedDict, total=False): commitments: _list[Commitment] warning: dict[str, typing.Any] -@typing.type_check_only -class Condition(typing_extensions.TypedDict, total=False): - iam: typing_extensions.Literal[ - "APPROVER", - "ATTRIBUTION", - "AUTHORITY", - "CREDENTIALS_TYPE", - "CREDS_ASSERTION", - "JUSTIFICATION_TYPE", - "NO_ATTR", - "SECURITY_REALM", - ] - op: typing_extensions.Literal[ - "DISCHARGED", "EQUALS", "IN", "NOT_EQUALS", "NOT_IN", "NO_OP" - ] - svc: str - sys: typing_extensions.Literal["IP", "NAME", "NO_ATTR", "REGION", "SERVICE"] - values: _list[str] - @typing.type_check_only class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): confidentialInstanceType: typing_extensions.Literal[ @@ -1369,6 +1395,11 @@ class FirewallPoliciesListAssociationsResponse( associations: _list[FirewallPolicyAssociation] kind: str +@typing.type_check_only +class FirewallPoliciesScopedList(typing_extensions.TypedDict, total=False): + firewallPolicies: _list[FirewallPolicy] + warning: dict[str, typing.Any] + @typing.type_check_only class FirewallPolicy(typing_extensions.TypedDict, total=False): associations: _list[FirewallPolicyAssociation] @@ -1562,7 +1593,11 @@ class FutureReservation(typing_extensions.TypedDict, total=False): autoCreatedReservationsDeleteTime: str autoCreatedReservationsDuration: Duration autoDeleteAutoCreatedReservations: bool + commitmentInfo: FutureReservationCommitmentInfo creationTimestamp: str + deploymentType: typing_extensions.Literal[ + "DENSE", "DEPLOYMENT_TYPE_UNSPECIFIED", "FLEXIBLE" + ] description: str id: str kind: str @@ -1571,14 +1606,29 @@ class FutureReservation(typing_extensions.TypedDict, total=False): planningStatus: typing_extensions.Literal[ "DRAFT", "PLANNING_STATUS_UNSPECIFIED", "SUBMITTED" ] + reservationName: str + schedulingType: typing_extensions.Literal[ + "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" + ] selfLink: str selfLinkWithId: str shareSettings: ShareSettings + specificReservationRequired: bool specificSkuProperties: FutureReservationSpecificSKUProperties status: FutureReservationStatus timeWindow: FutureReservationTimeWindow zone: str +@typing.type_check_only +class FutureReservationCommitmentInfo(typing_extensions.TypedDict, total=False): + commitmentName: str + commitmentPlan: typing_extensions.Literal[ + "INVALID", "THIRTY_SIX_MONTH", "TWELVE_MONTH" + ] + previousCommitmentTerms: typing_extensions.Literal[ + "EXTEND", "PREVIOUSCOMMITMENTTERM_UNSPECIFIED" + ] + @typing.type_check_only class FutureReservationSpecificSKUProperties(typing_extensions.TypedDict, total=False): instanceProperties: AllocationSpecificSKUAllocationReservedInstanceProperties @@ -1741,6 +1791,15 @@ class GlobalSetPolicyRequest(typing_extensions.TypedDict, total=False): etag: str policy: Policy +@typing.type_check_only +class GroupMaintenanceInfo(typing_extensions.TypedDict, total=False): + maintenanceOngoingCount: int + maintenancePendingCount: int + schedulingType: typing_extensions.Literal[ + "GROUPED", "GROUP_MAINTENANCE_TYPE_UNSPECIFIED", "INDEPENDENT" + ] + upcomingGroupMaintenance: UpcomingMaintenance + @typing.type_check_only class GuestAttributes(typing_extensions.TypedDict, total=False): kind: str @@ -2223,6 +2282,7 @@ class Instance(typing_extensions.TypedDict, total=False): startRestricted: bool status: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -2419,6 +2479,7 @@ class InstanceGroupManagerResizeRequest(typing_extensions.TypedDict, total=False id: str kind: str name: str + region: str requestedRunDuration: Duration resizeBy: int selfLink: str @@ -2839,6 +2900,7 @@ class InstanceWithNamedPorts(typing_extensions.TypedDict, total=False): namedPorts: _list[NamedPort] status: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -2874,6 +2936,7 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] shortName: str @@ -3004,7 +3067,9 @@ class Int64RangeMatch(typing_extensions.TypedDict, total=False): @typing.type_check_only class Interconnect(typing_extensions.TypedDict, total=False): + aaiEnabled: bool adminEnabled: bool + applicationAwareInterconnect: InterconnectApplicationAwareInterconnect availableFeatures: _list[typing_extensions.Literal["IF_MACSEC"]] circuitInfos: _list[InterconnectCircuitInfo] creationTimestamp: str @@ -3037,10 +3102,44 @@ class Interconnect(typing_extensions.TypedDict, total=False): selfLink: str state: typing_extensions.Literal["ACTIVE", "UNPROVISIONED"] +@typing.type_check_only +class InterconnectApplicationAwareInterconnect( + typing_extensions.TypedDict, total=False +): + bandwidthPercentagePolicy: ( + InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy + ) + profileDescription: str + shapeAveragePercentages: _list[ + InterconnectApplicationAwareInterconnectBandwidthPercentage + ] + strictPriorityPolicy: InterconnectApplicationAwareInterconnectStrictPriorityPolicy + +@typing.type_check_only +class InterconnectApplicationAwareInterconnectBandwidthPercentage( + typing_extensions.TypedDict, total=False +): + percentage: int + trafficClass: typing_extensions.Literal["TC1", "TC2", "TC3", "TC4", "TC5", "TC6"] + +@typing.type_check_only +class InterconnectApplicationAwareInterconnectBandwidthPercentagePolicy( + typing_extensions.TypedDict, total=False +): + bandwidthPercentages: _list[ + InterconnectApplicationAwareInterconnectBandwidthPercentage + ] + +@typing.type_check_only +class InterconnectApplicationAwareInterconnectStrictPriorityPolicy( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class InterconnectAttachment(typing_extensions.TypedDict, total=False): adminEnabled: bool bandwidth: typing_extensions.Literal[ + "BPS_100G", "BPS_100M", "BPS_10G", "BPS_1G", @@ -3447,33 +3546,6 @@ class LocationPolicyLocation(typing_extensions.TypedDict, total=False): class LocationPolicyLocationConstraints(typing_extensions.TypedDict, total=False): maxCount: int -@typing.type_check_only -class LogConfig(typing_extensions.TypedDict, total=False): - cloudAudit: LogConfigCloudAuditOptions - counter: LogConfigCounterOptions - dataAccess: LogConfigDataAccessOptions - -@typing.type_check_only -class LogConfigCloudAuditOptions(typing_extensions.TypedDict, total=False): - logName: typing_extensions.Literal[ - "ADMIN_ACTIVITY", "DATA_ACCESS", "UNSPECIFIED_LOG_NAME" - ] - -@typing.type_check_only -class LogConfigCounterOptions(typing_extensions.TypedDict, total=False): - customFields: _list[LogConfigCounterOptionsCustomField] - field: str - metric: str - -@typing.type_check_only -class LogConfigCounterOptionsCustomField(typing_extensions.TypedDict, total=False): - name: str - value: str - -@typing.type_check_only -class LogConfigDataAccessOptions(typing_extensions.TypedDict, total=False): - logMode: typing_extensions.Literal["LOG_FAIL_CLOSED", "LOG_MODE_UNSPECIFIED"] - @typing.type_check_only class MachineImage(typing_extensions.TypedDict, total=False): creationTimestamp: str @@ -3574,6 +3646,7 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): instanceHealth: _list[ManagedInstanceInstanceHealth] instanceStatus: typing_extensions.Literal[ "DEPROVISIONING", + "PENDING_STOP", "PROVISIONING", "REPAIRING", "RUNNING", @@ -3614,7 +3687,9 @@ class ManagedInstancePropertiesFromFlexibilityPolicy( typing_extensions.TypedDict, total=False ): machineType: str - provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + provisioningModel: typing_extensions.Literal[ + "RESERVATION_BOUND", "SPOT", "STANDARD" + ] @typing.type_check_only class ManagedInstanceVersion(typing_extensions.TypedDict, total=False): @@ -3637,6 +3712,32 @@ class MetadataFilterLabelMatch(typing_extensions.TypedDict, total=False): name: str value: str +@typing.type_check_only +class MultiMig(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + id: str + kind: str + name: str + region: str + resourcePolicies: MultiMigResourcePolicies + selfLink: str + +@typing.type_check_only +class MultiMigResourcePolicies(typing_extensions.TypedDict, total=False): + workloadPolicy: str + +@typing.type_check_only +class MultiMigsList(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[MultiMig] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NamedPort(typing_extensions.TypedDict, total=False): name: str @@ -3674,6 +3775,7 @@ class Network(typing_extensions.TypedDict, total=False): networkFirewallPolicyEnforcementOrder: typing_extensions.Literal[ "AFTER_CLASSIC_FIREWALL", "BEFORE_CLASSIC_FIREWALL" ] + networkProfile: str peerings: _list[NetworkPeering] routingConfig: NetworkRoutingConfig selfLink: str @@ -3929,6 +4031,16 @@ class NetworkEndpointWithHealthStatus(typing_extensions.TypedDict, total=False): healths: _list[HealthStatusForNetworkEndpoint] networkEndpoint: NetworkEndpoint +@typing.type_check_only +class NetworkFirewallPolicyAggregatedList(typing_extensions.TypedDict, total=False): + id: str + items: dict[str, typing.Any] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): accessConfigs: _list[AccessConfig] @@ -3944,10 +4056,10 @@ class NetworkInterface(typing_extensions.TypedDict, total=False): networkAttachment: str networkIP: str nicType: typing_extensions.Literal[ - "GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ] queueCount: int - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] subnetwork: str @typing.type_check_only @@ -3978,11 +4090,120 @@ class NetworkPeering(typing_extensions.TypedDict, total=False): class NetworkPerformanceConfig(typing_extensions.TypedDict, total=False): totalEgressBandwidthTier: typing_extensions.Literal["DEFAULT", "TIER_1"] +@typing.type_check_only +class NetworkProfile(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + features: NetworkProfileNetworkFeatures + id: str + kind: str + location: NetworkProfileLocation + name: str + selfLink: str + selfLinkWithId: str + zone: str + +@typing.type_check_only +class NetworkProfileLocation(typing_extensions.TypedDict, total=False): + name: str + scope: typing_extensions.Literal["REGION", "ZONE"] + +@typing.type_check_only +class NetworkProfileNetworkFeatures(typing_extensions.TypedDict, total=False): + addressPurposes: _list[ + typing_extensions.Literal[ + "DNS_RESOLVER", + "GCE_ENDPOINT", + "IPSEC_INTERCONNECT", + "NAT_AUTO", + "PRIVATE_SERVICE_CONNECT", + "SERVERLESS", + "SHARED_LOADBALANCER_VIP", + "VPC_PEERING", + ] + ] + allowAliasIpRanges: typing_extensions.Literal[ + "ALIAS_IP_RANGES_ALLOWED", "ALIAS_IP_RANGES_BLOCKED" + ] + allowAutoModeSubnet: typing_extensions.Literal[ + "AUTO_MODE_SUBNET_ALLOWED", "AUTO_MODE_SUBNET_BLOCKED" + ] + allowClassDFirewalls: typing_extensions.Literal[ + "CLASS_D_FIREWALLS_ALLOWED", "CLASS_D_FIREWALLS_BLOCKED" + ] + allowCloudNat: typing_extensions.Literal["CLOUD_NAT_ALLOWED", "CLOUD_NAT_BLOCKED"] + allowCloudRouter: typing_extensions.Literal[ + "CLOUD_ROUTER_ALLOWED", "CLOUD_ROUTER_BLOCKED" + ] + allowExternalIpAccess: typing_extensions.Literal[ + "EXTERNAL_IP_ACCESS_ALLOWED", "EXTERNAL_IP_ACCESS_BLOCKED" + ] + allowInterconnect: typing_extensions.Literal[ + "INTERCONNECT_ALLOWED", "INTERCONNECT_BLOCKED" + ] + allowLoadBalancing: typing_extensions.Literal[ + "LOAD_BALANCING_ALLOWED", "LOAD_BALANCING_BLOCKED" + ] + allowMultiNicInSameNetwork: typing_extensions.Literal[ + "MULTI_NIC_IN_SAME_NETWORK_ALLOWED", "MULTI_NIC_IN_SAME_NETWORK_BLOCKED" + ] + allowPacketMirroring: typing_extensions.Literal[ + "PACKET_MIRRORING_ALLOWED", "PACKET_MIRRORING_BLOCKED" + ] + allowPrivateGoogleAccess: typing_extensions.Literal[ + "PRIVATE_GOOGLE_ACCESS_ALLOWED", "PRIVATE_GOOGLE_ACCESS_BLOCKED" + ] + allowPsc: typing_extensions.Literal["PSC_ALLOWED", "PSC_BLOCKED"] + allowSameNetworkUnicast: typing_extensions.Literal[ + "SAME_NETWORK_UNICAST_ALLOWED", "SAME_NETWORK_UNICAST_BLOCKED" + ] + allowStaticRoutes: typing_extensions.Literal[ + "STATIC_ROUTES_ALLOWED", "STATIC_ROUTES_BLOCKED" + ] + allowSubInterfaces: typing_extensions.Literal[ + "SUBINTERFACES_ALLOWED", "SUBINTERFACES_BLOCKED" + ] + allowVpcPeering: typing_extensions.Literal[ + "VPC_PEERING_ALLOWED", "VPC_PEERING_BLOCKED" + ] + allowVpn: typing_extensions.Literal["VPN_ALLOWED", "VPN_BLOCKED"] + interfaceTypes: _list[ + typing_extensions.Literal[ + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + ] + ] + subnetPurposes: _list[ + typing_extensions.Literal[ + "SUBNET_PURPOSE_CUSTOM_HARDWARE", "SUBNET_PURPOSE_PRIVATE" + ] + ] + subnetStackTypes: _list[ + typing_extensions.Literal[ + "SUBNET_STACK_TYPE_IPV4_IPV6", + "SUBNET_STACK_TYPE_IPV4_ONLY", + "SUBNET_STACK_TYPE_IPV6_ONLY", + ] + ] + unicast: typing_extensions.Literal["UNICAST_SDN", "UNICAST_ULL"] + +@typing.type_check_only +class NetworkProfilesListResponse(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[NetworkProfile] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkRoutingConfig(typing_extensions.TypedDict, total=False): bgpAlwaysCompareMed: bool bgpBestPathSelectionMode: typing_extensions.Literal["LEGACY", "STANDARD"] bgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] + effectiveBgpAlwaysCompareMed: bool + effectiveBgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] routingMode: typing_extensions.Literal["GLOBAL", "REGIONAL"] @typing.type_check_only @@ -4006,6 +4227,7 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] shortName: str @@ -4459,7 +4681,6 @@ class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] bindings: _list[Binding] etag: str - rules: _list[Rule] version: int @typing.type_check_only @@ -4614,7 +4835,9 @@ class PublicDelegatedPrefix(typing_extensions.TypedDict, total=False): isLiveMigration: bool kind: str mode: typing_extensions.Literal[ - "DELEGATION", "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" + "DELEGATION", + "EXTERNAL_IPV6_FORWARDING_RULE_CREATION", + "EXTERNAL_IPV6_SUBNETWORK_CREATION", ] name: str parentPrefix: str @@ -4659,7 +4882,9 @@ class PublicDelegatedPrefixPublicDelegatedSubPrefix( ipCidrRange: str isAddress: bool mode: typing_extensions.Literal[ - "DELEGATION", "EXTERNAL_IPV6_FORWARDING_RULE_CREATION" + "DELEGATION", + "EXTERNAL_IPV6_FORWARDING_RULE_CREATION", + "EXTERNAL_IPV6_SUBNETWORK_CREATION", ] name: str region: str @@ -5141,6 +5366,7 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal ): displayName: str name: str + packetMirroringRules: _list[FirewallPolicyRule] priority: int rules: _list[FirewallPolicyRule] type: typing_extensions.Literal[ @@ -5185,6 +5411,9 @@ class Reservation(typing_extensions.TypedDict, total=False): creationTimestamp: str deleteAfterDuration: Duration deleteAtTime: str + deploymentType: typing_extensions.Literal[ + "DENSE", "DEPLOYMENT_TYPE_UNSPECIFIED", "FLEXIBLE" + ] description: str id: str kind: str @@ -5225,6 +5454,39 @@ class ReservationAggregatedList(typing_extensions.TypedDict, total=False): unreachables: _list[str] warning: dict[str, typing.Any] +@typing.type_check_only +class ReservationBlock(typing_extensions.TypedDict, total=False): + count: int + creationTimestamp: str + id: str + inUseCount: int + kind: str + name: str + physicalTopology: ReservationBlockPhysicalTopology + reservationMaintenance: GroupMaintenanceInfo + selfLink: str + selfLinkWithId: str + status: typing_extensions.Literal["CREATING", "DELETING", "INVALID", "READY"] + zone: str + +@typing.type_check_only +class ReservationBlockPhysicalTopology(typing_extensions.TypedDict, total=False): + block: str + cluster: str + +@typing.type_check_only +class ReservationBlocksGetResponse(typing_extensions.TypedDict, total=False): + resource: ReservationBlock + +@typing.type_check_only +class ReservationBlocksListResponse(typing_extensions.TypedDict, total=False): + id: str + items: _list[ReservationBlock] + kind: str + nextPageToken: str + selfLink: str + warning: dict[str, typing.Any] + @typing.type_check_only class ReservationList(typing_extensions.TypedDict, total=False): id: str @@ -5411,14 +5673,30 @@ class ResourcePolicyWorkloadPolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResourceStatus(typing_extensions.TypedDict, total=False): physicalHost: str + physicalHostTopology: ResourceStatusPhysicalHostTopology scheduling: ResourceStatusScheduling + shutdownDetails: ResourceStatusShutdownDetails upcomingMaintenance: UpcomingMaintenance +@typing.type_check_only +class ResourceStatusPhysicalHostTopology(typing_extensions.TypedDict, total=False): + block: str + cluster: str + host: str + subblock: str + @typing.type_check_only class ResourceStatusScheduling(typing_extensions.TypedDict, total=False): availabilityDomain: int terminationTimestamp: str +@typing.type_check_only +class ResourceStatusShutdownDetails(typing_extensions.TypedDict, total=False): + maxDuration: Duration + requestTimestamp: str + stopState: typing_extensions.Literal["PENDING_STOP", "STOPPING"] + targetState: typing_extensions.Literal["DELETED", "STOPPED"] + @typing.type_check_only class RolloutPolicy(typing_extensions.TypedDict, total=False): defaultRolloutTime: str @@ -5471,6 +5749,7 @@ class RouteList(typing_extensions.TypedDict, total=False): @typing.type_check_only class RoutePolicy(typing_extensions.TypedDict, total=False): + description: str fingerprint: str name: str terms: _list[RoutePolicyPolicyTerm] @@ -5613,6 +5892,7 @@ class RouterNat(typing_extensions.TypedDict, total=False): maxPortsPerVm: int minPortsPerVm: int name: str + nat64Subnetworks: _list[RouterNatSubnetworkToNat64] natIpAllocateOption: typing_extensions.Literal["AUTO_ONLY", "MANUAL_ONLY"] natIps: _list[str] rules: _list[RouterNatRule] @@ -5621,6 +5901,9 @@ class RouterNat(typing_extensions.TypedDict, total=False): "ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES", "LIST_OF_SUBNETWORKS", ] + sourceSubnetworkIpRangesToNat64: typing_extensions.Literal[ + "ALL_IPV6_SUBNETWORKS", "LIST_OF_IPV6_SUBNETWORKS" + ] subnetworks: _list[RouterNatSubnetworkToNat] tcpEstablishedIdleTimeoutSec: int tcpTimeWaitTimeoutSec: int @@ -5657,6 +5940,10 @@ class RouterNatSubnetworkToNat(typing_extensions.TypedDict, total=False): ] ] +@typing.type_check_only +class RouterNatSubnetworkToNat64(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class RouterStatus(typing_extensions.TypedDict, total=False): bestRoutes: _list[Route] @@ -5753,18 +6040,6 @@ class RoutersScopedList(typing_extensions.TypedDict, total=False): routers: _list[Router] warning: dict[str, typing.Any] -@typing.type_check_only -class Rule(typing_extensions.TypedDict, total=False): - action: typing_extensions.Literal[ - "ALLOW", "ALLOW_WITH_LOG", "DENY", "DENY_WITH_LOG", "LOG", "NO_ACTION" - ] - conditions: _list[Condition] - description: str - ins: _list[str] - logConfigs: _list[LogConfig] - notIns: _list[str] - permissions: _list[str] - @typing.type_check_only class SSLHealthCheck(typing_extensions.TypedDict, total=False): port: int @@ -5815,6 +6090,7 @@ class ScalingScheduleStatus(typing_extensions.TypedDict, total=False): class Scheduling(typing_extensions.TypedDict, total=False): automaticRestart: bool availabilityDomain: int + gracefulShutdown: SchedulingGracefulShutdown hostErrorTimeoutSeconds: int instanceTerminationAction: typing_extensions.Literal[ "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "STOP" @@ -5829,9 +6105,16 @@ class Scheduling(typing_extensions.TypedDict, total=False): onHostMaintenance: typing_extensions.Literal["MIGRATE", "TERMINATE"] onInstanceStopAction: SchedulingOnInstanceStopAction preemptible: bool - provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + provisioningModel: typing_extensions.Literal[ + "RESERVATION_BOUND", "SPOT", "STANDARD" + ] terminationTime: str +@typing.type_check_only +class SchedulingGracefulShutdown(typing_extensions.TypedDict, total=False): + enabled: bool + maxDuration: Duration + @typing.type_check_only class SchedulingNodeAffinity(typing_extensions.TypedDict, total=False): key: str @@ -5958,6 +6241,7 @@ class SecurityPolicyAdvancedOptionsConfig(typing_extensions.TypedDict, total=Fal "DISABLED", "STANDARD", "STANDARD_WITH_GRAPHQL" ] logLevel: typing_extensions.Literal["NORMAL", "VERBOSE"] + requestBodyInspectionSize: str userIpRequestHeaders: _list[str] @typing.type_check_only @@ -6127,6 +6411,7 @@ class SecurityPolicyRuleRateLimitOptions(typing_extensions.TypedDict, total=Fals "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -6151,6 +6436,7 @@ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig( "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -6749,8 +7035,10 @@ class Subnetwork(typing_extensions.TypedDict, total=False): id: str internalIpv6Prefix: str ipCidrRange: str + ipCollection: str ipv6AccessType: typing_extensions.Literal["EXTERNAL", "INTERNAL"] ipv6CidrRange: str + ipv6GceEndpoint: typing_extensions.Literal["VM_AND_FR", "VM_ONLY"] kind: str logConfig: SubnetworkLogConfig name: str @@ -6764,6 +7052,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -6775,7 +7064,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): role: typing_extensions.Literal["ACTIVE", "BACKUP"] secondaryIpRanges: _list[SubnetworkSecondaryRange] selfLink: str - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] state: typing_extensions.Literal["DRAINING", "READY"] @typing.type_check_only @@ -6962,7 +7251,9 @@ class TargetHttpsProxy(typing_extensions.TypedDict, total=False): serverTlsPolicy: str sslCertificates: _list[str] sslPolicy: str - tlsEarlyData: typing_extensions.Literal["DISABLED", "PERMISSIVE", "STRICT"] + tlsEarlyData: typing_extensions.Literal[ + "DISABLED", "PERMISSIVE", "STRICT", "UNRESTRICTED" + ] urlMap: str @typing.type_check_only @@ -7361,6 +7652,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -7369,7 +7661,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): ] role: typing_extensions.Literal["ACTIVE", "BACKUP"] secondaryIpRanges: _list[UsableSubnetworkSecondaryRange] - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] subnetwork: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/compute/v1/resources.pyi b/googleapiclient-stubs/_apis/compute/v1/resources.pyi index 2bc7a2be..834a6fe2 100644 --- a/googleapiclient-stubs/_apis/compute/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/v1/resources.pyi @@ -1036,90 +1036,6 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... - @typing.type_check_only - class FutureReservationsResource(googleapiclient.discovery.Resource): - def aggregatedList( - self, - *, - project: str, - filter: str = ..., - includeAllScopes: bool = ..., - maxResults: int = ..., - orderBy: str = ..., - pageToken: str = ..., - returnPartialSuccess: bool = ..., - serviceProjectNumber: str = ..., - **kwargs: typing.Any, - ) -> FutureReservationsAggregatedListResponseHttpRequest: ... - def aggregatedList_next( - self, - previous_request: FutureReservationsAggregatedListResponseHttpRequest, - previous_response: FutureReservationsAggregatedListResponse, - ) -> FutureReservationsAggregatedListResponseHttpRequest | None: ... - def cancel( - self, - *, - project: str, - zone: str, - futureReservation: str, - requestId: str = ..., - **kwargs: typing.Any, - ) -> OperationHttpRequest: ... - def delete( - self, - *, - project: str, - zone: str, - futureReservation: str, - requestId: str = ..., - **kwargs: typing.Any, - ) -> OperationHttpRequest: ... - def get( - self, - *, - project: str, - zone: str, - futureReservation: str, - **kwargs: typing.Any, - ) -> FutureReservationHttpRequest: ... - def insert( - self, - *, - project: str, - zone: str, - body: FutureReservation = ..., - requestId: str = ..., - **kwargs: typing.Any, - ) -> OperationHttpRequest: ... - def list( - self, - *, - project: str, - zone: str, - filter: str = ..., - maxResults: int = ..., - orderBy: str = ..., - pageToken: str = ..., - returnPartialSuccess: bool = ..., - **kwargs: typing.Any, - ) -> FutureReservationsListResponseHttpRequest: ... - def list_next( - self, - previous_request: FutureReservationsListResponseHttpRequest, - previous_response: FutureReservationsListResponse, - ) -> FutureReservationsListResponseHttpRequest | None: ... - def update( - self, - *, - project: str, - zone: str, - futureReservation: str, - body: FutureReservation = ..., - requestId: str = ..., - updateMask: str = ..., - **kwargs: typing.Any, - ) -> OperationHttpRequest: ... - @typing.type_check_only class GlobalAddressesResource(googleapiclient.discovery.Resource): def delete( @@ -1979,6 +1895,16 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def resumeInstances( + self, + *, + project: str, + zone: str, + instanceGroupManager: str, + body: InstanceGroupManagersResumeInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def setInstanceTemplate( self, *, @@ -1999,6 +1925,36 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def startInstances( + self, + *, + project: str, + zone: str, + instanceGroupManager: str, + body: InstanceGroupManagersStartInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def stopInstances( + self, + *, + project: str, + zone: str, + instanceGroupManager: str, + body: InstanceGroupManagersStopInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def suspendInstances( + self, + *, + project: str, + zone: str, + instanceGroupManager: str, + body: InstanceGroupManagersSuspendInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def updatePerInstanceConfigs( self, *, @@ -3457,6 +3413,24 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def aggregatedList( + self, + *, + project: str, + filter: str = ..., + includeAllScopes: bool = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + serviceProjectNumber: str = ..., + **kwargs: typing.Any, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest: ... + def aggregatedList_next( + self, + previous_request: NetworkFirewallPolicyAggregatedListHttpRequest, + previous_response: NetworkFirewallPolicyAggregatedList, + ) -> NetworkFirewallPolicyAggregatedListHttpRequest | None: ... def cloneRules( self, *, @@ -3579,6 +3553,28 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class NetworkProfilesResource(googleapiclient.discovery.Resource): + def get( + self, *, project: str, networkProfile: str, **kwargs: typing.Any + ) -> NetworkProfileHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> NetworkProfilesListResponseHttpRequest: ... + def list_next( + self, + previous_request: NetworkProfilesListResponseHttpRequest, + previous_response: NetworkProfilesListResponse, + ) -> NetworkProfilesListResponseHttpRequest | None: ... + @typing.type_check_only class NetworksResource(googleapiclient.discovery.Resource): def addPeering( @@ -5069,6 +5065,16 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def resumeInstances( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + body: RegionInstanceGroupManagersResumeInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def setInstanceTemplate( self, *, @@ -5089,6 +5095,36 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def startInstances( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + body: RegionInstanceGroupManagersStartInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def stopInstances( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + body: RegionInstanceGroupManagersStopInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def suspendInstances( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + body: RegionInstanceGroupManagersSuspendInstancesRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def updatePerInstanceConfigs( self, *, @@ -5717,6 +5753,16 @@ class ComputeResource(googleapiclient.discovery.Resource): priority: int = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def setLabels( + self, + *, + project: str, + region: str, + resource: str, + body: RegionSetLabelsRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class RegionSslCertificatesResource(googleapiclient.discovery.Resource): @@ -8174,7 +8220,6 @@ class ComputeResource(googleapiclient.discovery.Resource): def firewallPolicies(self) -> FirewallPoliciesResource: ... def firewalls(self) -> FirewallsResource: ... def forwardingRules(self) -> ForwardingRulesResource: ... - def futureReservations(self) -> FutureReservationsResource: ... def globalAddresses(self) -> GlobalAddressesResource: ... def globalForwardingRules(self) -> GlobalForwardingRulesResource: ... def globalNetworkEndpointGroups(self) -> GlobalNetworkEndpointGroupsResource: ... @@ -8209,6 +8254,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def networkEdgeSecurityServices(self) -> NetworkEdgeSecurityServicesResource: ... def networkEndpointGroups(self) -> NetworkEndpointGroupsResource: ... def networkFirewallPolicies(self) -> NetworkFirewallPoliciesResource: ... + def networkProfiles(self) -> NetworkProfilesResource: ... def networks(self) -> NetworksResource: ... def nodeGroups(self) -> NodeGroupsResource: ... def nodeTemplates(self) -> NodeTemplatesResource: ... @@ -8577,32 +8623,6 @@ class ForwardingRuleListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ForwardingRuleList: ... -@typing.type_check_only -class FutureReservationHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> FutureReservation: ... - -@typing.type_check_only -class FutureReservationsAggregatedListResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> FutureReservationsAggregatedListResponse: ... - -@typing.type_check_only -class FutureReservationsListResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> FutureReservationsListResponse: ... - @typing.type_check_only class GuestAttributesHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -9153,6 +9173,14 @@ class NetworkEndpointGroupsListNetworkEndpointsHttpRequest( num_retries: int = 0, ) -> NetworkEndpointGroupsListNetworkEndpoints: ... +@typing.type_check_only +class NetworkFirewallPolicyAggregatedListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkFirewallPolicyAggregatedList: ... + @typing.type_check_only class NetworkListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -9161,6 +9189,22 @@ class NetworkListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> NetworkList: ... +@typing.type_check_only +class NetworkProfileHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfile: ... + +@typing.type_check_only +class NetworkProfilesListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfilesListResponse: ... + @typing.type_check_only class NetworksGetEffectiveFirewallsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/compute/v1/schemas.pyi b/googleapiclient-stubs/_apis/compute/v1/schemas.pyi index a8bd489e..f6b84ebb 100644 --- a/googleapiclient-stubs/_apis/compute/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/v1/schemas.pyi @@ -259,13 +259,11 @@ class AttachedDiskInitializeParams(typing_extensions.TypedDict, total=False): @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] - exemptedMembers: _list[str] service: str @typing.type_check_only class AuditLogConfig(typing_extensions.TypedDict, total=False): exemptedMembers: _list[str] - ignoreChildExemptions: bool logType: typing_extensions.Literal[ "ADMIN_READ", "DATA_READ", "DATA_WRITE", "LOG_TYPE_UNSPECIFIED" ] @@ -492,6 +490,12 @@ class BackendService(typing_extensions.TypedDict, total=False): healthChecks: _list[str] iap: BackendServiceIAP id: str + ipAddressSelectionPolicy: typing_extensions.Literal[ + "IPV4_ONLY", + "IPV6_ONLY", + "IP_ADDRESS_SELECTION_POLICY_UNSPECIFIED", + "PREFER_IPV6", + ] kind: str loadBalancingScheme: typing_extensions.Literal[ "EXTERNAL", @@ -538,7 +542,9 @@ class BackendService(typing_extensions.TypedDict, total=False): "HEADER_FIELD", "HTTP_COOKIE", "NONE", + "STRONG_COOKIE_AFFINITY", ] + strongSessionAffinityCookie: BackendServiceHttpCookie subsetting: Subsetting timeoutSec: int usedBy: _list[BackendServiceUsedBy] @@ -611,6 +617,12 @@ class BackendServiceGroupHealth(typing_extensions.TypedDict, total=False): healthStatus: _list[HealthStatus] kind: str +@typing.type_check_only +class BackendServiceHttpCookie(typing_extensions.TypedDict, total=False): + name: str + path: str + ttl: Duration + @typing.type_check_only class BackendServiceIAP(typing_extensions.TypedDict, total=False): enabled: bool @@ -756,7 +768,6 @@ class BfdStatusPacketCounts(typing_extensions.TypedDict, total=False): @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): - bindingId: str condition: Expr members: _list[str] role: str @@ -820,6 +831,7 @@ class Commitment(typing_extensions.TypedDict, total=False): autoRenew: bool category: typing_extensions.Literal["CATEGORY_UNSPECIFIED", "LICENSE", "MACHINE"] creationTimestamp: str + customEndTimestamp: str description: str endTimestamp: str existingReservations: _list[str] @@ -831,6 +843,7 @@ class Commitment(typing_extensions.TypedDict, total=False): plan: typing_extensions.Literal["INVALID", "THIRTY_SIX_MONTH", "TWELVE_MONTH"] region: str reservations: _list[Reservation] + resourceStatus: CommitmentResourceStatus resources: _list[ResourceCommitment] selfLink: str splitSourceCommitment: str @@ -850,6 +863,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_C4", + "GENERAL_PURPOSE_C4A", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", "GENERAL_PURPOSE_N2D", @@ -858,6 +872,9 @@ class Commitment(typing_extensions.TypedDict, total=False): "GRAPHICS_OPTIMIZED", "MEMORY_OPTIMIZED", "MEMORY_OPTIMIZED_M3", + "MEMORY_OPTIMIZED_X4_16TB", + "MEMORY_OPTIMIZED_X4_24TB", + "MEMORY_OPTIMIZED_X4_32TB", "STORAGE_OPTIMIZED_Z3", "TYPE_UNSPECIFIED", ] @@ -881,30 +898,15 @@ class CommitmentList(typing_extensions.TypedDict, total=False): selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class CommitmentResourceStatus(typing_extensions.TypedDict, total=False): + customTermEligibilityEndTimestamp: str + @typing.type_check_only class CommitmentsScopedList(typing_extensions.TypedDict, total=False): commitments: _list[Commitment] warning: dict[str, typing.Any] -@typing.type_check_only -class Condition(typing_extensions.TypedDict, total=False): - iam: typing_extensions.Literal[ - "APPROVER", - "ATTRIBUTION", - "AUTHORITY", - "CREDENTIALS_TYPE", - "CREDS_ASSERTION", - "JUSTIFICATION_TYPE", - "NO_ATTR", - "SECURITY_REALM", - ] - op: typing_extensions.Literal[ - "DISCHARGED", "EQUALS", "IN", "NOT_EQUALS", "NOT_IN", "NO_OP" - ] - svc: str - sys: typing_extensions.Literal["IP", "NAME", "NO_ATTR", "REGION", "SERVICE"] - values: _list[str] - @typing.type_check_only class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): confidentialInstanceType: typing_extensions.Literal[ @@ -1293,6 +1295,11 @@ class FirewallPoliciesListAssociationsResponse( associations: _list[FirewallPolicyAssociation] kind: str +@typing.type_check_only +class FirewallPoliciesScopedList(typing_extensions.TypedDict, total=False): + firewallPolicies: _list[FirewallPolicy] + warning: dict[str, typing.Any] + @typing.type_check_only class FirewallPolicy(typing_extensions.TypedDict, total=False): associations: _list[FirewallPolicyAssociation] @@ -1468,147 +1475,6 @@ class ForwardingRulesScopedList(typing_extensions.TypedDict, total=False): forwardingRules: _list[ForwardingRule] warning: dict[str, typing.Any] -@typing.type_check_only -class FutureReservation(typing_extensions.TypedDict, total=False): - autoCreatedReservationsDeleteTime: str - autoCreatedReservationsDuration: Duration - autoDeleteAutoCreatedReservations: bool - creationTimestamp: str - description: str - id: str - kind: str - name: str - namePrefix: str - planningStatus: typing_extensions.Literal[ - "DRAFT", "PLANNING_STATUS_UNSPECIFIED", "SUBMITTED" - ] - selfLink: str - selfLinkWithId: str - shareSettings: ShareSettings - specificSkuProperties: FutureReservationSpecificSKUProperties - status: FutureReservationStatus - timeWindow: FutureReservationTimeWindow - zone: str - -@typing.type_check_only -class FutureReservationSpecificSKUProperties(typing_extensions.TypedDict, total=False): - instanceProperties: AllocationSpecificSKUAllocationReservedInstanceProperties - sourceInstanceTemplate: str - totalCount: str - -@typing.type_check_only -class FutureReservationStatus(typing_extensions.TypedDict, total=False): - amendmentStatus: typing_extensions.Literal[ - "AMENDMENT_APPROVED", - "AMENDMENT_DECLINED", - "AMENDMENT_IN_REVIEW", - "AMENDMENT_STATUS_UNSPECIFIED", - ] - autoCreatedReservations: _list[str] - existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo - fulfilledCount: str - lastKnownGoodState: FutureReservationStatusLastKnownGoodState - lockTime: str - procurementStatus: typing_extensions.Literal[ - "APPROVED", - "CANCELLED", - "COMMITTED", - "DECLINED", - "DRAFTING", - "FAILED", - "FAILED_PARTIALLY_FULFILLED", - "FULFILLED", - "PENDING_AMENDMENT_APPROVAL", - "PENDING_APPROVAL", - "PROCUREMENT_STATUS_UNSPECIFIED", - "PROCURING", - "PROVISIONING", - ] - specificSkuProperties: FutureReservationStatusSpecificSKUProperties - -@typing.type_check_only -class FutureReservationStatusExistingMatchingUsageInfo( - typing_extensions.TypedDict, total=False -): - count: str - timestamp: str - -@typing.type_check_only -class FutureReservationStatusLastKnownGoodState( - typing_extensions.TypedDict, total=False -): - description: str - existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo - futureReservationSpecs: ( - FutureReservationStatusLastKnownGoodStateFutureReservationSpecs - ) - lockTime: str - namePrefix: str - procurementStatus: typing_extensions.Literal[ - "APPROVED", - "CANCELLED", - "COMMITTED", - "DECLINED", - "DRAFTING", - "FAILED", - "FAILED_PARTIALLY_FULFILLED", - "FULFILLED", - "PENDING_AMENDMENT_APPROVAL", - "PENDING_APPROVAL", - "PROCUREMENT_STATUS_UNSPECIFIED", - "PROCURING", - "PROVISIONING", - ] - -@typing.type_check_only -class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs( - typing_extensions.TypedDict, total=False -): - shareSettings: ShareSettings - specificSkuProperties: FutureReservationSpecificSKUProperties - timeWindow: FutureReservationTimeWindow - -@typing.type_check_only -class FutureReservationStatusSpecificSKUProperties( - typing_extensions.TypedDict, total=False -): - sourceInstanceTemplateId: str - -@typing.type_check_only -class FutureReservationTimeWindow(typing_extensions.TypedDict, total=False): - duration: Duration - endTime: str - startTime: str - -@typing.type_check_only -class FutureReservationsAggregatedListResponse( - typing_extensions.TypedDict, total=False -): - etag: str - id: str - items: dict[str, typing.Any] - kind: str - nextPageToken: str - selfLink: str - unreachables: _list[str] - warning: dict[str, typing.Any] - -@typing.type_check_only -class FutureReservationsListResponse(typing_extensions.TypedDict, total=False): - etag: str - id: str - items: _list[FutureReservation] - kind: str - nextPageToken: str - selfLink: str - unreachables: _list[str] - warning: dict[str, typing.Any] - -@typing.type_check_only -class FutureReservationsScopedList(typing_extensions.TypedDict, total=False): - futureReservations: _list[FutureReservation] - warning: dict[str, typing.Any] - @typing.type_check_only class GRPCHealthCheck(typing_extensions.TypedDict, total=False): grpcServiceName: str @@ -1818,6 +1684,8 @@ class HealthStatus(typing_extensions.TypedDict, total=False): healthState: typing_extensions.Literal["HEALTHY", "UNHEALTHY"] instance: str ipAddress: str + ipv6Address: str + ipv6HealthState: typing_extensions.Literal["HEALTHY", "UNHEALTHY"] port: int weight: str weightError: typing_extensions.Literal[ @@ -1833,6 +1701,9 @@ class HealthStatusForNetworkEndpoint(typing_extensions.TypedDict, total=False): healthState: typing_extensions.Literal[ "DRAINING", "HEALTHY", "UNHEALTHY", "UNKNOWN" ] + ipv6HealthState: typing_extensions.Literal[ + "DRAINING", "HEALTHY", "UNHEALTHY", "UNKNOWN" + ] @typing.type_check_only class Help(typing_extensions.TypedDict, total=False): @@ -2192,6 +2063,7 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): distributionPolicy: DistributionPolicy fingerprint: str id: str + instanceFlexibilityPolicy: InstanceGroupManagerInstanceFlexibilityPolicy instanceGroup: str instanceLifecyclePolicy: InstanceGroupManagerInstanceLifecyclePolicy instanceTemplate: str @@ -2203,10 +2075,13 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): satisfiesPzi: bool satisfiesPzs: bool selfLink: str + standbyPolicy: InstanceGroupManagerStandbyPolicy statefulPolicy: StatefulPolicy status: InstanceGroupManagerStatus targetPools: _list[str] targetSize: int + targetStoppedSize: int + targetSuspendedSize: int updatePolicy: InstanceGroupManagerUpdatePolicy versions: _list[InstanceGroupManagerVersion] zone: str @@ -2246,6 +2121,19 @@ class InstanceGroupManagerAutoHealingPolicy(typing_extensions.TypedDict, total=F healthCheck: str initialDelaySec: int +@typing.type_check_only +class InstanceGroupManagerInstanceFlexibilityPolicy( + typing_extensions.TypedDict, total=False +): + instanceSelections: dict[str, typing.Any] + +@typing.type_check_only +class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection( + typing_extensions.TypedDict, total=False +): + machineTypes: _list[str] + rank: int + @typing.type_check_only class InstanceGroupManagerInstanceLifecyclePolicy( typing_extensions.TypedDict, total=False @@ -2301,6 +2189,11 @@ class InstanceGroupManagerResizeRequestsListResponse( selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class InstanceGroupManagerStandbyPolicy(typing_extensions.TypedDict, total=False): + initialDelaySec: int + mode: typing_extensions.Literal["MANUAL", "SCALE_OUT_POOL"] + @typing.type_check_only class InstanceGroupManagerStatus(typing_extensions.TypedDict, total=False): allInstancesConfig: InstanceGroupManagerStatusAllInstancesConfig @@ -2417,6 +2310,12 @@ class InstanceGroupManagersRecreateInstancesRequest( ): instances: _list[str] +@typing.type_check_only +class InstanceGroupManagersResumeInstancesRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[str] + @typing.type_check_only class InstanceGroupManagersScopedList(typing_extensions.TypedDict, total=False): instanceGroupManagers: _list[InstanceGroupManager] @@ -2435,6 +2334,26 @@ class InstanceGroupManagersSetTargetPoolsRequest( fingerprint: str targetPools: _list[str] +@typing.type_check_only +class InstanceGroupManagersStartInstancesRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[str] + +@typing.type_check_only +class InstanceGroupManagersStopInstancesRequest( + typing_extensions.TypedDict, total=False +): + forceStop: bool + instances: _list[str] + +@typing.type_check_only +class InstanceGroupManagersSuspendInstancesRequest( + typing_extensions.TypedDict, total=False +): + forceSuspend: bool + instances: _list[str] + @typing.type_check_only class InstanceGroupManagersUpdatePerInstanceConfigsReq( typing_extensions.TypedDict, total=False @@ -2814,6 +2733,7 @@ class Interconnect(typing_extensions.TypedDict, total=False): class InterconnectAttachment(typing_extensions.TypedDict, total=False): adminEnabled: bool bandwidth: typing_extensions.Literal[ + "BPS_100G", "BPS_100M", "BPS_10G", "BPS_1G", @@ -3220,33 +3140,6 @@ class LocationPolicyLocation(typing_extensions.TypedDict, total=False): class LocationPolicyLocationConstraints(typing_extensions.TypedDict, total=False): maxCount: int -@typing.type_check_only -class LogConfig(typing_extensions.TypedDict, total=False): - cloudAudit: LogConfigCloudAuditOptions - counter: LogConfigCounterOptions - dataAccess: LogConfigDataAccessOptions - -@typing.type_check_only -class LogConfigCloudAuditOptions(typing_extensions.TypedDict, total=False): - logName: typing_extensions.Literal[ - "ADMIN_ACTIVITY", "DATA_ACCESS", "UNSPECIFIED_LOG_NAME" - ] - -@typing.type_check_only -class LogConfigCounterOptions(typing_extensions.TypedDict, total=False): - customFields: _list[LogConfigCounterOptionsCustomField] - field: str - metric: str - -@typing.type_check_only -class LogConfigCounterOptionsCustomField(typing_extensions.TypedDict, total=False): - name: str - value: str - -@typing.type_check_only -class LogConfigDataAccessOptions(typing_extensions.TypedDict, total=False): - logMode: typing_extensions.Literal["LOG_FAIL_CLOSED", "LOG_MODE_UNSPECIFIED"] - @typing.type_check_only class MachineImage(typing_extensions.TypedDict, total=False): creationTimestamp: str @@ -3361,6 +3254,7 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): name: str preservedStateFromConfig: PreservedState preservedStateFromPolicy: PreservedState + propertiesFromFlexibilityPolicy: ManagedInstancePropertiesFromFlexibilityPolicy version: ManagedInstanceVersion @typing.type_check_only @@ -3374,6 +3268,12 @@ class ManagedInstanceInstanceHealth(typing_extensions.TypedDict, total=False): class ManagedInstanceLastAttempt(typing_extensions.TypedDict, total=False): errors: dict[str, typing.Any] +@typing.type_check_only +class ManagedInstancePropertiesFromFlexibilityPolicy( + typing_extensions.TypedDict, total=False +): + machineType: str + @typing.type_check_only class ManagedInstanceVersion(typing_extensions.TypedDict, total=False): instanceTemplate: str @@ -3432,6 +3332,7 @@ class Network(typing_extensions.TypedDict, total=False): networkFirewallPolicyEnforcementOrder: typing_extensions.Literal[ "AFTER_CLASSIC_FIREWALL", "BEFORE_CLASSIC_FIREWALL" ] + networkProfile: str peerings: _list[NetworkPeering] routingConfig: NetworkRoutingConfig selfLink: str @@ -3536,6 +3437,7 @@ class NetworkEndpoint(typing_extensions.TypedDict, total=False): fqdn: str instance: str ipAddress: str + ipv6Address: str port: int @typing.type_check_only @@ -3657,6 +3559,16 @@ class NetworkEndpointWithHealthStatus(typing_extensions.TypedDict, total=False): healths: _list[HealthStatusForNetworkEndpoint] networkEndpoint: NetworkEndpoint +@typing.type_check_only +class NetworkFirewallPolicyAggregatedList(typing_extensions.TypedDict, total=False): + id: str + items: dict[str, typing.Any] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): accessConfigs: _list[AccessConfig] @@ -3672,10 +3584,10 @@ class NetworkInterface(typing_extensions.TypedDict, total=False): networkAttachment: str networkIP: str nicType: typing_extensions.Literal[ - "GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ] queueCount: int - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] subnetwork: str @typing.type_check_only @@ -3706,8 +3618,120 @@ class NetworkPeering(typing_extensions.TypedDict, total=False): class NetworkPerformanceConfig(typing_extensions.TypedDict, total=False): totalEgressBandwidthTier: typing_extensions.Literal["DEFAULT", "TIER_1"] +@typing.type_check_only +class NetworkProfile(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + features: NetworkProfileNetworkFeatures + id: str + kind: str + location: NetworkProfileLocation + name: str + selfLink: str + selfLinkWithId: str + zone: str + +@typing.type_check_only +class NetworkProfileLocation(typing_extensions.TypedDict, total=False): + name: str + scope: typing_extensions.Literal["REGION", "ZONE"] + +@typing.type_check_only +class NetworkProfileNetworkFeatures(typing_extensions.TypedDict, total=False): + addressPurposes: _list[ + typing_extensions.Literal[ + "DNS_RESOLVER", + "GCE_ENDPOINT", + "IPSEC_INTERCONNECT", + "NAT_AUTO", + "PRIVATE_SERVICE_CONNECT", + "SERVERLESS", + "SHARED_LOADBALANCER_VIP", + "VPC_PEERING", + ] + ] + allowAliasIpRanges: typing_extensions.Literal[ + "ALIAS_IP_RANGES_ALLOWED", "ALIAS_IP_RANGES_BLOCKED" + ] + allowAutoModeSubnet: typing_extensions.Literal[ + "AUTO_MODE_SUBNET_ALLOWED", "AUTO_MODE_SUBNET_BLOCKED" + ] + allowClassDFirewalls: typing_extensions.Literal[ + "CLASS_D_FIREWALLS_ALLOWED", "CLASS_D_FIREWALLS_BLOCKED" + ] + allowCloudNat: typing_extensions.Literal["CLOUD_NAT_ALLOWED", "CLOUD_NAT_BLOCKED"] + allowCloudRouter: typing_extensions.Literal[ + "CLOUD_ROUTER_ALLOWED", "CLOUD_ROUTER_BLOCKED" + ] + allowExternalIpAccess: typing_extensions.Literal[ + "EXTERNAL_IP_ACCESS_ALLOWED", "EXTERNAL_IP_ACCESS_BLOCKED" + ] + allowInterconnect: typing_extensions.Literal[ + "INTERCONNECT_ALLOWED", "INTERCONNECT_BLOCKED" + ] + allowLoadBalancing: typing_extensions.Literal[ + "LOAD_BALANCING_ALLOWED", "LOAD_BALANCING_BLOCKED" + ] + allowMultiNicInSameNetwork: typing_extensions.Literal[ + "MULTI_NIC_IN_SAME_NETWORK_ALLOWED", "MULTI_NIC_IN_SAME_NETWORK_BLOCKED" + ] + allowPacketMirroring: typing_extensions.Literal[ + "PACKET_MIRRORING_ALLOWED", "PACKET_MIRRORING_BLOCKED" + ] + allowPrivateGoogleAccess: typing_extensions.Literal[ + "PRIVATE_GOOGLE_ACCESS_ALLOWED", "PRIVATE_GOOGLE_ACCESS_BLOCKED" + ] + allowPsc: typing_extensions.Literal["PSC_ALLOWED", "PSC_BLOCKED"] + allowSameNetworkUnicast: typing_extensions.Literal[ + "SAME_NETWORK_UNICAST_ALLOWED", "SAME_NETWORK_UNICAST_BLOCKED" + ] + allowStaticRoutes: typing_extensions.Literal[ + "STATIC_ROUTES_ALLOWED", "STATIC_ROUTES_BLOCKED" + ] + allowSubInterfaces: typing_extensions.Literal[ + "SUBINTERFACES_ALLOWED", "SUBINTERFACES_BLOCKED" + ] + allowVpcPeering: typing_extensions.Literal[ + "VPC_PEERING_ALLOWED", "VPC_PEERING_BLOCKED" + ] + allowVpn: typing_extensions.Literal["VPN_ALLOWED", "VPN_BLOCKED"] + interfaceTypes: _list[ + typing_extensions.Literal[ + "GVNIC", "IDPF", "IRDMA", "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + ] + ] + subnetPurposes: _list[ + typing_extensions.Literal[ + "SUBNET_PURPOSE_CUSTOM_HARDWARE", "SUBNET_PURPOSE_PRIVATE" + ] + ] + subnetStackTypes: _list[ + typing_extensions.Literal[ + "SUBNET_STACK_TYPE_IPV4_IPV6", + "SUBNET_STACK_TYPE_IPV4_ONLY", + "SUBNET_STACK_TYPE_IPV6_ONLY", + ] + ] + unicast: typing_extensions.Literal["UNICAST_SDN", "UNICAST_ULL"] + +@typing.type_check_only +class NetworkProfilesListResponse(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[NetworkProfile] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkRoutingConfig(typing_extensions.TypedDict, total=False): + bgpAlwaysCompareMed: bool + bgpBestPathSelectionMode: typing_extensions.Literal["LEGACY", "STANDARD"] + bgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] + effectiveBgpAlwaysCompareMed: bool + effectiveBgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] routingMode: typing_extensions.Literal["GLOBAL", "REGIONAL"] @typing.type_check_only @@ -4162,7 +4186,6 @@ class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] bindings: _list[Binding] etag: str - rules: _list[Rule] version: int @typing.type_check_only @@ -4704,6 +4727,12 @@ class RegionInstanceGroupManagersRecreateRequest( ): instances: _list[str] +@typing.type_check_only +class RegionInstanceGroupManagersResumeInstancesRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[str] + @typing.type_check_only class RegionInstanceGroupManagersSetTargetPoolsRequest( typing_extensions.TypedDict, total=False @@ -4717,6 +4746,26 @@ class RegionInstanceGroupManagersSetTemplateRequest( ): instanceTemplate: str +@typing.type_check_only +class RegionInstanceGroupManagersStartInstancesRequest( + typing_extensions.TypedDict, total=False +): + instances: _list[str] + +@typing.type_check_only +class RegionInstanceGroupManagersStopInstancesRequest( + typing_extensions.TypedDict, total=False +): + forceStop: bool + instances: _list[str] + +@typing.type_check_only +class RegionInstanceGroupManagersSuspendInstancesRequest( + typing_extensions.TypedDict, total=False +): + forceSuspend: bool + instances: _list[str] + @typing.type_check_only class RegionInstanceGroupsListInstances(typing_extensions.TypedDict, total=False): id: str @@ -5044,8 +5093,11 @@ class Route(typing_extensions.TypedDict, total=False): nextHopHub: str nextHopIlb: str nextHopInstance: str + nextHopInterRegionCost: int nextHopIp: str + nextHopMed: int nextHopNetwork: str + nextHopOrigin: typing_extensions.Literal["EGP", "IGP", "INCOMPLETE"] nextHopPeering: str nextHopVpnTunnel: str priority: int @@ -5314,18 +5366,6 @@ class RoutersScopedList(typing_extensions.TypedDict, total=False): routers: _list[Router] warning: dict[str, typing.Any] -@typing.type_check_only -class Rule(typing_extensions.TypedDict, total=False): - action: typing_extensions.Literal[ - "ALLOW", "ALLOW_WITH_LOG", "DENY", "DENY_WITH_LOG", "LOG", "NO_ACTION" - ] - conditions: _list[Condition] - description: str - ins: _list[str] - logConfigs: _list[LogConfig] - notIns: _list[str] - permissions: _list[str] - @typing.type_check_only class SSLHealthCheck(typing_extensions.TypedDict, total=False): port: int @@ -5641,6 +5681,7 @@ class SecurityPolicyRuleRateLimitOptions(typing_extensions.TypedDict, total=Fals "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -5664,6 +5705,7 @@ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig( "REGION_CODE", "SNI", "TLS_JA3_FINGERPRINT", + "TLS_JA4_FINGERPRINT", "USER_IP", "XFF_IP", ] @@ -5733,6 +5775,7 @@ class ServiceAttachment(typing_extensions.TypedDict, total=False): name: str natSubnets: _list[str] producerForwardingRule: str + propagatedConnectionLimit: int pscServiceAttachmentId: Uint128 reconcileConnections: bool region: str @@ -5753,6 +5796,7 @@ class ServiceAttachmentAggregatedList(typing_extensions.TypedDict, total=False): class ServiceAttachmentConnectedEndpoint(typing_extensions.TypedDict, total=False): consumerNetwork: str endpoint: str + propagatedConnectionCount: int pscConnectionId: str status: typing_extensions.Literal[ "ACCEPTED", @@ -6232,6 +6276,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -6243,7 +6288,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): role: typing_extensions.Literal["ACTIVE", "BACKUP"] secondaryIpRanges: _list[SubnetworkSecondaryRange] selfLink: str - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] state: typing_extensions.Literal["DRAINING", "READY"] @typing.type_check_only @@ -6424,7 +6469,9 @@ class TargetHttpsProxy(typing_extensions.TypedDict, total=False): serverTlsPolicy: str sslCertificates: _list[str] sslPolicy: str - tlsEarlyData: typing_extensions.Literal["DISABLED", "PERMISSIVE", "STRICT"] + tlsEarlyData: typing_extensions.Literal[ + "DISABLED", "PERMISSIVE", "STRICT", "UNRESTRICTED" + ] urlMap: str @typing.type_check_only @@ -6507,6 +6554,7 @@ class TargetPool(typing_extensions.TypedDict, total=False): "HEADER_FIELD", "HTTP_COOKIE", "NONE", + "STRONG_COOKIE_AFFINITY", ] @typing.type_check_only @@ -6822,6 +6870,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", + "PEER_MIGRATION", "PRIVATE", "PRIVATE_NAT", "PRIVATE_RFC_1918", @@ -6830,7 +6879,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): ] role: typing_extensions.Literal["ACTIVE", "BACKUP"] secondaryIpRanges: _list[UsableSubnetworkSecondaryRange] - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] subnetwork: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/connectors/v1/resources.pyi b/googleapiclient-stubs/_apis/connectors/v1/resources.pyi index faa7eaad..48b14561 100644 --- a/googleapiclient-stubs/_apis/connectors/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/connectors/v1/resources.pyi @@ -127,6 +127,7 @@ class ConnectorsResource(googleapiclient.discovery.Resource): filter: str = ..., pageSize: int = ..., pageToken: str = ..., + schemaAsString: bool = ..., **kwargs: typing.Any, ) -> ListRuntimeActionSchemasResponseHttpRequest: ... def list_next( @@ -273,6 +274,20 @@ class ConnectorsResource(googleapiclient.discovery.Resource): body: DeprecateCustomConnectorVersionRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def publish( + self, + *, + name: str, + body: PublishCustomConnectorVersionRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def withdraw( + self, + *, + name: str, + body: WithdrawCustomConnectorVersionRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def validateCustomConnectorSpec( self, diff --git a/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi b/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi index 71ebd773..86da588f 100644 --- a/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi @@ -170,7 +170,12 @@ class Connection(typing_extensions.TypedDict, total=False): connectorVersion: str connectorVersionInfraConfig: ConnectorVersionInfraConfig connectorVersionLaunchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] createTime: str description: str @@ -253,8 +258,14 @@ class Connector(typing_extensions.TypedDict, total=False): externalUri: str labels: dict[str, typing.Any] launchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] + marketplaceConnectorDetails: MarketplaceConnectorDetails name: str tags: _list[str] updateTime: str @@ -262,7 +273,9 @@ class Connector(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConnectorInfraConfig(typing_extensions.TypedDict, total=False): + alwaysAllocateCpu: bool connectionRatelimitWindowSeconds: str + connectorVersioningEnabled: bool deploymentModel: typing_extensions.Literal[ "DEPLOYMENT_MODEL_UNSPECIFIED", "GKE_MST", "CLOUD_RUN_MST" ] @@ -271,6 +284,7 @@ class ConnectorInfraConfig(typing_extensions.TypedDict, total=False): maxInstanceRequestConcurrency: int migrateDeploymentModel: bool migrateTls: bool + provisionCloudSpanner: bool ratelimitThreshold: str resourceLimits: ResourceLimits resourceRequests: ResourceRequests @@ -292,7 +306,12 @@ class ConnectorVersion(typing_extensions.TypedDict, total=False): isCustomEntitiesSupported: bool labels: dict[str, typing.Any] launchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] name: str releaseVersion: str @@ -348,6 +367,7 @@ class ConnectorsLogConfig(typing_extensions.TypedDict, total=False): class CustomConnector(typing_extensions.TypedDict, total=False): activeConnectorVersions: _list[str] allConnectorVersions: _list[str] + allMarketplaceVersions: _list[str] createTime: str customConnectorType: typing_extensions.Literal[ "CUSTOM_CONNECTOR_TYPE_UNSPECIFIED", "OPEN_API", "PROTO" @@ -357,6 +377,7 @@ class CustomConnector(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] logo: str name: str + publishedMarketplaceVersions: _list[str] updateTime: str @typing.type_check_only @@ -368,6 +389,8 @@ class CustomConnectorVersion(typing_extensions.TypedDict, total=False): enableBackendDestinationConfig: bool labels: dict[str, typing.Any] name: str + partnerMetadata: PartnerMetadata + publishStatus: PublishStatus serviceAccount: str specLocation: str specServerUrls: _list[str] @@ -497,7 +520,7 @@ class EventSubscription(typing_extensions.TypedDict, total=False): class EventSubscriptionDestination(typing_extensions.TypedDict, total=False): endpoint: EndPoint serviceAccount: str - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "ENDPOINT"] + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "ENDPOINT", "GCS", "PUBSUB"] @typing.type_check_only class EventSubscriptionStatus(typing_extensions.TypedDict, total=False): @@ -553,7 +576,12 @@ class EventingDetails(typing_extensions.TypedDict, total=False): documentationLink: str iconLocation: str launchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] name: str searchTags: _list[str] @@ -565,6 +593,7 @@ class EventingRuntimeData(typing_extensions.TypedDict, total=False): eventsListenerPscSa: str status: EventingStatus webhookData: WebhookData + webhookSubscriptions: WebhookSubscriptions @typing.type_check_only class EventingStatus(typing_extensions.TypedDict, total=False): @@ -990,6 +1019,13 @@ class ManagedZone(typing_extensions.TypedDict, total=False): targetVpc: str updateTime: str +@typing.type_check_only +class MarketplaceConnectorDetails(typing_extensions.TypedDict, total=False): + marketplaceProduct: str + marketplaceProductId: str + marketplaceProductUri: str + partner: str + @typing.type_check_only class MultipleSelectConfig(typing_extensions.TypedDict, total=False): allowCustomValues: bool @@ -1070,6 +1106,24 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PartnerMetadata(typing_extensions.TypedDict, total=False): + acceptGcpTos: bool + additionalComments: str + confirmPartnerRequirements: bool + demoUri: str + integrationTemplates: str + marketplaceProduct: str + marketplaceProductId: str + marketplaceProductProjectId: str + marketplaceProductUri: str + partner: str + partnerConnectorDisplayName: str + publishRequestTime: str + targetApplication: str + targetCustomerSegment: str + useCases: str + @typing.type_check_only class PerSliSloEligibility(typing_extensions.TypedDict, total=False): eligibilities: dict[str, typing.Any] @@ -1090,7 +1144,12 @@ class Provider(typing_extensions.TypedDict, total=False): externalUri: str labels: dict[str, typing.Any] launchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] name: str updateTime: str @@ -1101,6 +1160,19 @@ class ProvisionedResource(typing_extensions.TypedDict, total=False): resourceType: str resourceUrl: str +@typing.type_check_only +class PublishCustomConnectorVersionRequest(typing_extensions.TypedDict, total=False): + partnerMetadata: PartnerMetadata + +@typing.type_check_only +class PublishStatus(typing_extensions.TypedDict, total=False): + publishState: typing_extensions.Literal[ + "PUBLISH_STATE_UNSPECIFIED", "PUBLISHED", "PUBLISH_IN_PROGRESS", "UNPUBLISHED" + ] + publishTime: str + publishedAs: str + publishedSource: str + @typing.type_check_only class RefreshConnectionSchemaMetadataRequest( typing_extensions.TypedDict, total=False @@ -1209,8 +1281,10 @@ class RuntimeActionSchema(typing_extensions.TypedDict, total=False): displayName: str inputJsonSchema: JsonSchema inputParameters: _list[InputParameter] + inputSchemaAsString: str resultJsonSchema: JsonSchema resultMetadata: _list[ResultMetadata] + resultSchemaAsString: str @typing.type_check_only class RuntimeConfig(typing_extensions.TypedDict, total=False): @@ -1405,6 +1479,15 @@ class WebhookData(typing_extensions.TypedDict, total=False): nextRefreshTime: str updateTime: str +@typing.type_check_only +class WebhookSubscriptions(typing_extensions.TypedDict, total=False): + webhookData: _list[WebhookData] + @typing.type_check_only class WeeklyCycle(typing_extensions.TypedDict, total=False): schedule: _list[Schedule] + +@typing.type_check_only +class WithdrawCustomConnectorVersionRequest( + typing_extensions.TypedDict, total=False +): ... diff --git a/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi index 8567b497..15ae8720 100644 --- a/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi @@ -94,6 +94,10 @@ class InstanceConfig(typing_extensions.TypedDict, total=False): "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL", ] @typing.type_check_only @@ -172,6 +176,10 @@ class Quota(typing_extensions.TypedDict, total=False): "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi b/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi index b9c64778..ba20a7aa 100644 --- a/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi @@ -17,6 +17,71 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AnalysisRulesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1AnalysisRule = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1AnalysisRuleHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudContactcenterinsightsV1AnalysisRuleHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1AnalysisRule = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1AnalysisRuleHttpRequest: ... + + @typing.type_check_only + class AuthorizedViewSetsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AuthorizedViewsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConversationsResource(googleapiclient.discovery.Resource): + def calculateStats( + self, + *, + location: str, + filter: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1CalculateStatsResponseHttpRequest: ... + + def queryMetrics( + self, + *, + location: str, + body: GoogleCloudContactcenterinsightsV1QueryMetricsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def conversations(self) -> ConversationsResource: ... + + def authorizedViews(self) -> AuthorizedViewsResource: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -52,6 +117,48 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): | None ): ... + @typing.type_check_only + class FeedbackLabelsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1FeedbackLabel = ..., + feedbackLabelId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1FeedbackLabelHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudContactcenterinsightsV1FeedbackLabelHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1FeedbackLabel = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1FeedbackLabelHttpRequest: ... + def bulkAnalyze( self, *, @@ -135,6 +242,7 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def analyses(self) -> AnalysesResource: ... + def feedbackLabels(self) -> FeedbackLabelsResource: ... @typing.type_check_only class EncryptionSpecResource(googleapiclient.discovery.Resource): @@ -160,6 +268,13 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): class IssueModelsResource(googleapiclient.discovery.Resource): @typing.type_check_only class IssuesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1Issue = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... @@ -303,6 +418,159 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudContactcenterinsightsV1PhraseMatcherHttpRequest: ... + @typing.type_check_only + class QaScorecardsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class RevisionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class QaQuestionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1QaQuestion = ..., + qaQuestionId: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudContactcenterinsightsV1QaQuestionHttpRequest + ): ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudContactcenterinsightsV1QaQuestionHttpRequest + ): ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListQaQuestionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListQaQuestionsResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListQaQuestionsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1QaQuestion = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudContactcenterinsightsV1QaQuestionHttpRequest + ): ... + + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1QaScorecardRevision = ..., + qaScorecardRevisionId: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudContactcenterinsightsV1QaScorecardRevisionHttpRequest + ): ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def deploy( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudContactcenterinsightsV1QaScorecardRevisionHttpRequest + ): ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudContactcenterinsightsV1QaScorecardRevisionHttpRequest + ): ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponseHttpRequest + | None + ): ... + def tuneQaScorecardRevision( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def undeploy( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudContactcenterinsightsV1QaScorecardRevisionHttpRequest + ): ... + def qaQuestions(self) -> QaQuestionsResource: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1QaScorecard = ..., + qaScorecardId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1QaScorecardHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudContactcenterinsightsV1QaScorecardHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListQaScorecardsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListQaScorecardsResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListQaScorecardsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1QaScorecard = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1QaScorecardHttpRequest: ... + def revisions(self) -> RevisionsResource: ... + @typing.type_check_only class ViewsResource(googleapiclient.discovery.Resource): def create( @@ -343,12 +611,50 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudContactcenterinsightsV1ViewHttpRequest: ... + def bulkDownloadFeedbackLabels( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def bulkUploadFeedbackLabels( + self, + *, + parent: str, + body: GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def getEncryptionSpec( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudContactcenterinsightsV1EncryptionSpecHttpRequest: ... def getSettings( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudContactcenterinsightsV1SettingsHttpRequest: ... + def listAllFeedbackLabels( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponseHttpRequest: ... + def listAllFeedbackLabels_next( + self, + previous_request: GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponseHttpRequest, + previous_response: GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse, + ) -> ( + GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponseHttpRequest + | None + ): ... + def queryMetrics( + self, + *, + location: str, + body: GoogleCloudContactcenterinsightsV1QueryMetricsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def updateSettings( self, *, @@ -357,12 +663,15 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudContactcenterinsightsV1SettingsHttpRequest: ... + def analysisRules(self) -> AnalysisRulesResource: ... + def authorizedViewSets(self) -> AuthorizedViewSetsResource: ... def conversations(self) -> ConversationsResource: ... def encryptionSpec(self) -> EncryptionSpecResource: ... def insightsdata(self) -> InsightsdataResource: ... def issueModels(self) -> IssueModelsResource: ... def operations(self) -> OperationsResource: ... def phraseMatchers(self) -> PhraseMatchersResource: ... + def qaScorecards(self) -> QaScorecardsResource: ... def views(self) -> ViewsResource: ... def locations(self) -> LocationsResource: ... @@ -391,6 +700,16 @@ class GoogleCloudContactcenterinsightsV1AnalysisHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1Analysis: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1AnalysisRuleHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1AnalysisRule: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -431,6 +750,16 @@ class GoogleCloudContactcenterinsightsV1EncryptionSpecHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1EncryptionSpec: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1FeedbackLabelHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1FeedbackLabel: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1IssueHttpRequest( googleapiclient.http.HttpRequest @@ -451,6 +780,16 @@ class GoogleCloudContactcenterinsightsV1IssueModelHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1IssueModel: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListAnalysesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -461,6 +800,16 @@ class GoogleCloudContactcenterinsightsV1ListAnalysesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1ListAnalysesResponse: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListConversationsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -471,6 +820,16 @@ class GoogleCloudContactcenterinsightsV1ListConversationsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1ListConversationsResponse: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListIssueModelsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -501,6 +860,36 @@ class GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaQuestionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse: ... + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse: ... + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaScorecardsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListViewsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -521,6 +910,36 @@ class GoogleCloudContactcenterinsightsV1PhraseMatcherHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1PhraseMatcher: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaQuestionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1QaQuestion: ... + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1QaScorecard: ... + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardRevisionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1QaScorecardRevision: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1SettingsHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi b/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi index 6a93d732..aff1eca8 100644 --- a/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi @@ -32,9 +32,23 @@ class GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata( intents: dict[str, typing.Any] issueModelResult: GoogleCloudContactcenterinsightsV1IssueModelResult phraseMatchers: dict[str, typing.Any] + qaScorecardResults: _list[GoogleCloudContactcenterinsightsV1QaScorecardResult] sentiments: _list[GoogleCloudContactcenterinsightsV1ConversationLevelSentiment] silence: GoogleCloudContactcenterinsightsV1ConversationLevelSilence +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1AnalysisRule( + typing_extensions.TypedDict, total=False +): + active: bool + analysisPercentage: float + annotatorSelector: GoogleCloudContactcenterinsightsV1AnnotatorSelector + conversationFilter: str + createTime: str + displayName: str + name: str + updateTime: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1AnnotationBoundary( typing_extensions.TypedDict, total=False @@ -48,11 +62,13 @@ class GoogleCloudContactcenterinsightsV1AnnotatorSelector( ): issueModels: _list[str] phraseMatchers: _list[str] + qaConfig: GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig runEntityAnnotator: bool runIntentAnnotator: bool runInterruptionAnnotator: bool runIssueModelAnnotator: bool runPhraseMatcherAnnotator: bool + runQaAnnotator: bool runSentimentAnnotator: bool runSilenceAnnotator: bool runSummarizationAnnotator: bool @@ -60,6 +76,20 @@ class GoogleCloudContactcenterinsightsV1AnnotatorSelector( GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig ) +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig( + typing_extensions.TypedDict, total=False +): + scorecardList: ( + GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList + ) + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList( + typing_extensions.TypedDict, total=False +): + qaScorecardRevisions: _list[str] + @typing.type_check_only class GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig( typing_extensions.TypedDict, total=False @@ -144,6 +174,70 @@ class GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + downloadStats: GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats + endTime: str + partialErrors: _list[GoogleRpcStatus] + request: GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats( + typing_extensions.TypedDict, total=False +): + fileNames: _list[str] + processedObjectCount: int + successfulDownloadCount: int + totalFilesWritten: int + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest( + typing_extensions.TypedDict, total=False +): + conversationFilter: str + feedbackLabelType: typing_extensions.Literal[ + "FEEDBACK_LABEL_TYPE_UNSPECIFIED", "QUALITY_AI", "TOPIC_MODELING" + ] + filter: str + gcsDestination: GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination + maxDownloadCount: int + parent: str + templateQaScorecardId: _list[str] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination( + typing_extensions.TypedDict, total=False +): + addWhitespace: bool + alwaysPrintEmptyFields: bool + format: typing_extensions.Literal["FORMAT_UNSPECIFIED", "CSV", "JSON"] + objectUri: str + recordsPerFileCount: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest( + typing_extensions.TypedDict, total=False +): + gcsSource: ( + GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource + ) + validateOnly: bool + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource( + typing_extensions.TypedDict, total=False +): + format: typing_extensions.Literal["FORMAT_UNSPECIFIED", "CSV", "JSON"] + objectUri: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse( typing_extensions.TypedDict, total=False @@ -282,9 +376,14 @@ class GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo( typing_extensions.TypedDict, total=False ): agentId: str + agentType: typing_extensions.Literal[ + "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER", "ANY_AGENT" + ] displayName: str dispositionCode: str + location: str team: str + teams: _list[str] @typing.type_check_only class GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData( @@ -345,6 +444,14 @@ class GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata( createTime: str endTime: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1CreateIssueMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + request: GoogleCloudContactcenterinsightsV1CreateIssueRequest + @typing.type_check_only class GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -360,6 +467,13 @@ class GoogleCloudContactcenterinsightsV1CreateIssueModelRequest( issueModel: GoogleCloudContactcenterinsightsV1IssueModel parent: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1CreateIssueRequest( + typing_extensions.TypedDict, total=False +): + issue: GoogleCloudContactcenterinsightsV1Issue + parent: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -393,6 +507,11 @@ class GoogleCloudContactcenterinsightsV1DeployIssueModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1DialogflowIntent( typing_extensions.TypedDict, total=False @@ -413,6 +532,65 @@ class GoogleCloudContactcenterinsightsV1DialogflowSource( audioUri: str dialogflowConversation: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1Dimension( + typing_extensions.TypedDict, total=False +): + agentDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata + ) + dimensionKey: typing_extensions.Literal[ + "DIMENSION_KEY_UNSPECIFIED", + "ISSUE", + "AGENT", + "AGENT_TEAM", + "QA_QUESTION_ID", + "QA_QUESTION_ANSWER_VALUE", + "CONVERSATION_PROFILE_ID", + ] + issueDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata + ) + qaQuestionAnswerDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata + ) + qaQuestionDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata + ) + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata( + typing_extensions.TypedDict, total=False +): + agentDisplayName: str + agentId: str + agentTeam: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata( + typing_extensions.TypedDict, total=False +): + issueDisplayName: str + issueId: str + issueModelId: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata( + typing_extensions.TypedDict, total=False +): + answerValue: str + qaQuestionId: str + qaScorecardId: str + questionBody: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata( + typing_extensions.TypedDict, total=False +): + qaQuestionId: str + qaScorecardId: str + questionBody: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1EncryptionSpec( typing_extensions.TypedDict, total=False @@ -533,6 +711,17 @@ class GoogleCloudContactcenterinsightsV1FaqAnswerData( question: str source: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1FeedbackLabel( + typing_extensions.TypedDict, total=False +): + createTime: str + label: str + labeledResource: str + name: str + qaAnswerLabel: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue + updateTime: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1GcsSource( typing_extensions.TypedDict, total=False @@ -570,7 +759,8 @@ class GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource( @typing.type_check_only class GoogleCloudContactcenterinsightsV1ImportIssueModelResponse( typing_extensions.TypedDict, total=False -): ... +): + issueModel: GoogleCloudContactcenterinsightsV1IssueModel @typing.type_check_only class GoogleCloudContactcenterinsightsV1IngestConversationsMetadata( @@ -749,6 +939,13 @@ class GoogleCloudContactcenterinsightsV1IssueModelResult( issueModel: str issues: _list[GoogleCloudContactcenterinsightsV1IssueAssignment] +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse( + typing_extensions.TypedDict, total=False +): + feedbackLabels: _list[GoogleCloudContactcenterinsightsV1FeedbackLabel] + nextPageToken: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListAnalysesResponse( typing_extensions.TypedDict, total=False @@ -756,6 +953,13 @@ class GoogleCloudContactcenterinsightsV1ListAnalysesResponse( analyses: _list[GoogleCloudContactcenterinsightsV1Analysis] nextPageToken: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse( + typing_extensions.TypedDict, total=False +): + analysisRules: _list[GoogleCloudContactcenterinsightsV1AnalysisRule] + nextPageToken: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListConversationsResponse( typing_extensions.TypedDict, total=False @@ -763,6 +967,13 @@ class GoogleCloudContactcenterinsightsV1ListConversationsResponse( conversations: _list[GoogleCloudContactcenterinsightsV1Conversation] nextPageToken: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse( + typing_extensions.TypedDict, total=False +): + feedbackLabels: _list[GoogleCloudContactcenterinsightsV1FeedbackLabel] + nextPageToken: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListIssueModelsResponse( typing_extensions.TypedDict, total=False @@ -782,6 +993,27 @@ class GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse( nextPageToken: str phraseMatchers: _list[GoogleCloudContactcenterinsightsV1PhraseMatcher] +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + qaQuestions: _list[GoogleCloudContactcenterinsightsV1QaQuestion] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + qaScorecardRevisions: _list[GoogleCloudContactcenterinsightsV1QaScorecardRevision] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + qaScorecards: _list[GoogleCloudContactcenterinsightsV1QaScorecard] + @typing.type_check_only class GoogleCloudContactcenterinsightsV1ListViewsResponse( typing_extensions.TypedDict, total=False @@ -839,6 +1071,232 @@ class GoogleCloudContactcenterinsightsV1PhraseMatcher( updateTime: str versionTag: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaAnswer( + typing_extensions.TypedDict, total=False +): + answerSources: _list[GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource] + answerValue: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue + conversation: str + qaQuestion: str + questionBody: str + tags: _list[str] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource( + typing_extensions.TypedDict, total=False +): + answerValue: GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue + sourceType: typing_extensions.Literal[ + "SOURCE_TYPE_UNSPECIFIED", "SYSTEM_GENERATED", "MANUAL_EDIT" + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue( + typing_extensions.TypedDict, total=False +): + boolValue: bool + key: str + naValue: bool + normalizedScore: float + numValue: float + potentialScore: float + score: float + strValue: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaQuestion( + typing_extensions.TypedDict, total=False +): + abbreviation: str + answerChoices: _list[GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice] + answerInstructions: str + createTime: str + metrics: GoogleCloudContactcenterinsightsV1QaQuestionMetrics + name: str + order: int + questionBody: str + tags: _list[str] + tuningMetadata: GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata + updateTime: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice( + typing_extensions.TypedDict, total=False +): + boolValue: bool + key: str + naValue: bool + numValue: float + score: float + strValue: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaQuestionMetrics( + typing_extensions.TypedDict, total=False +): + accuracy: float + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata( + typing_extensions.TypedDict, total=False +): + datasetValidationWarnings: _list[ + typing_extensions.Literal[ + "DATASET_VALIDATION_WARNING_UNSPECIFIED", + "TOO_MANY_INVALID_FEEDBACK_LABELS", + "INSUFFICIENT_FEEDBACK_LABELS", + "INSUFFICIENT_FEEDBACK_LABELS_PER_ANSWER", + "ALL_FEEDBACK_LABELS_HAVE_THE_SAME_ANSWER", + ] + ] + totalValidLabelCount: str + tuningError: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecard( + typing_extensions.TypedDict, total=False +): + createTime: str + description: str + displayName: str + name: str + updateTime: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardResult( + typing_extensions.TypedDict, total=False +): + agentId: str + conversation: str + createTime: str + name: str + normalizedScore: float + potentialScore: float + qaAnswers: _list[GoogleCloudContactcenterinsightsV1QaAnswer] + qaScorecardRevision: str + qaTagResults: _list[GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult] + score: float + scoreSources: _list[GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult( + typing_extensions.TypedDict, total=False +): + normalizedScore: float + potentialScore: float + score: float + tag: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource( + typing_extensions.TypedDict, total=False +): + normalizedScore: float + potentialScore: float + qaTagResults: _list[GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult] + score: float + sourceType: typing_extensions.Literal[ + "SOURCE_TYPE_UNSPECIFIED", "SYSTEM_GENERATED_ONLY", "INCLUDES_MANUAL_EDITS" + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QaScorecardRevision( + typing_extensions.TypedDict, total=False +): + alternateIds: _list[str] + createTime: str + name: str + snapshot: GoogleCloudContactcenterinsightsV1QaScorecard + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "EDITABLE", + "TRAINING", + "TRAINING_FAILED", + "READY", + "DELETING", + "TRAINING_CANCELLED", + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsMetadata( + typing_extensions.TypedDict, total=False +): + resultIsTruncated: bool + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsRequest( + typing_extensions.TypedDict, total=False +): + dimensions: _list[GoogleCloudContactcenterinsightsV1Dimension] + filter: str + measureMask: str + timeGranularity: typing_extensions.Literal[ + "TIME_GRANULARITY_UNSPECIFIED", + "NONE", + "DAILY", + "HOURLY", + "PER_MINUTE", + "PER_5_MINUTES", + "MONTHLY", + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponse( + typing_extensions.TypedDict, total=False +): + location: str + macroAverageSlice: GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice + slices: _list[GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice] + updateTime: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice( + typing_extensions.TypedDict, total=False +): + dimensions: _list[GoogleCloudContactcenterinsightsV1Dimension] + timeSeries: GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries + total: GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint( + typing_extensions.TypedDict, total=False +): + conversationMeasure: GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure + interval: GoogleTypeInterval + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure( + typing_extensions.TypedDict, total=False +): + averageAgentSentimentScore: float + averageClientSentimentScore: float + averageCustomerSatisfactionRating: float + averageDuration: str + averageQaNormalizedScore: float + averageQaQuestionNormalizedScore: float + averageSilencePercentage: float + averageTurnCount: float + conversationCount: int + qaTagScores: _list[ + GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore( + typing_extensions.TypedDict, total=False +): + averageTagNormalizedScore: float + tag: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries( + typing_extensions.TypedDict, total=False +): + dataPoints: _list[ + GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint + ] + @typing.type_check_only class GoogleCloudContactcenterinsightsV1RedactionConfig( typing_extensions.TypedDict, total=False @@ -933,6 +1391,13 @@ class GoogleCloudContactcenterinsightsV1SpeechConfig( ): speechRecognizer: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest( + typing_extensions.TypedDict, total=False +): + filter: str + validateOnly: bool + @typing.type_check_only class GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -952,6 +1417,11 @@ class GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1UploadConversationMetadata( typing_extensions.TypedDict, total=False @@ -1008,6 +1478,7 @@ class GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata intents: dict[str, typing.Any] issueModelResult: GoogleCloudContactcenterinsightsV1alpha1IssueModelResult phraseMatchers: dict[str, typing.Any] + qaScorecardResults: _list[GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult] sentiments: _list[ GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment ] @@ -1026,11 +1497,13 @@ class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector( ): issueModels: _list[str] phraseMatchers: _list[str] + qaConfig: GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig runEntityAnnotator: bool runIntentAnnotator: bool runInterruptionAnnotator: bool runIssueModelAnnotator: bool runPhraseMatcherAnnotator: bool + runQaAnnotator: bool runSentimentAnnotator: bool runSilenceAnnotator: bool runSummarizationAnnotator: bool @@ -1038,6 +1511,20 @@ class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector( GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig ) +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig( + typing_extensions.TypedDict, total=False +): + scorecardList: ( + GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList + ) + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList( + typing_extensions.TypedDict, total=False +): + qaScorecardRevisions: _list[str] + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig( typing_extensions.TypedDict, total=False @@ -1223,9 +1710,14 @@ class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentIn typing_extensions.TypedDict, total=False ): agentId: str + agentType: typing_extensions.Literal[ + "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER", "ANY_AGENT" + ] displayName: str dispositionCode: str + location: str team: str + teams: _list[str] @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData( @@ -1286,6 +1778,14 @@ class GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata( createTime: str endTime: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + request: GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -1301,6 +1801,13 @@ class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest( issueModel: GoogleCloudContactcenterinsightsV1alpha1IssueModel parent: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest( + typing_extensions.TypedDict, total=False +): + issue: GoogleCloudContactcenterinsightsV1alpha1Issue + parent: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -1354,6 +1861,63 @@ class GoogleCloudContactcenterinsightsV1alpha1DialogflowSource( audioUri: str dialogflowConversation: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1Dimension( + typing_extensions.TypedDict, total=False +): + agentDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata + ) + dimensionKey: typing_extensions.Literal[ + "DIMENSION_KEY_UNSPECIFIED", + "ISSUE", + "AGENT", + "AGENT_TEAM", + "QA_QUESTION_ID", + "QA_QUESTION_ANSWER_VALUE", + "CONVERSATION_PROFILE_ID", + ] + issueDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata + ) + qaQuestionAnswerDimensionMetadata: GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata + qaQuestionDimensionMetadata: ( + GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata + ) + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata( + typing_extensions.TypedDict, total=False +): + agentDisplayName: str + agentId: str + agentTeam: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata( + typing_extensions.TypedDict, total=False +): + issueDisplayName: str + issueId: str + issueModelId: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata( + typing_extensions.TypedDict, total=False +): + answerValue: str + qaQuestionId: str + qaScorecardId: str + questionBody: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata( + typing_extensions.TypedDict, total=False +): + qaQuestionId: str + qaScorecardId: str + questionBody: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec( typing_extensions.TypedDict, total=False @@ -1466,6 +2030,17 @@ class GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData( question: str source: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel( + typing_extensions.TypedDict, total=False +): + createTime: str + label: str + labeledResource: str + name: str + qaAnswerLabel: GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue + updateTime: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1GcsSource( typing_extensions.TypedDict, total=False @@ -1503,7 +2078,8 @@ class GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource( @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse( typing_extensions.TypedDict, total=False -): ... +): + issueModel: GoogleCloudContactcenterinsightsV1alpha1IssueModel @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata( @@ -1606,6 +2182,17 @@ class GoogleCloudContactcenterinsightsV1alpha1InterruptionData( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1Issue( + typing_extensions.TypedDict, total=False +): + createTime: str + displayDescription: str + displayName: str + name: str + sampleUtterances: _list[str] + updateTime: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1IssueAssignment( typing_extensions.TypedDict, total=False @@ -1673,6 +2260,20 @@ class GoogleCloudContactcenterinsightsV1alpha1IssueModelResult( issueModel: str issues: _list[GoogleCloudContactcenterinsightsV1alpha1IssueAssignment] +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse( + typing_extensions.TypedDict, total=False +): + feedbackLabels: _list[GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse( + typing_extensions.TypedDict, total=False +): + feedbackLabels: _list[GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel] + nextPageToken: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData( typing_extensions.TypedDict, total=False @@ -1680,6 +2281,146 @@ class GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData( displayName: str phraseMatcher: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaAnswer( + typing_extensions.TypedDict, total=False +): + answerSources: _list[GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource] + answerValue: GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue + conversation: str + qaQuestion: str + questionBody: str + tags: _list[str] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource( + typing_extensions.TypedDict, total=False +): + answerValue: GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue + sourceType: typing_extensions.Literal[ + "SOURCE_TYPE_UNSPECIFIED", "SYSTEM_GENERATED", "MANUAL_EDIT" + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue( + typing_extensions.TypedDict, total=False +): + boolValue: bool + key: str + naValue: bool + normalizedScore: float + numValue: float + potentialScore: float + score: float + strValue: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult( + typing_extensions.TypedDict, total=False +): + agentId: str + conversation: str + createTime: str + name: str + normalizedScore: float + potentialScore: float + qaAnswers: _list[GoogleCloudContactcenterinsightsV1alpha1QaAnswer] + qaScorecardRevision: str + qaTagResults: _list[ + GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult + ] + score: float + scoreSources: _list[ + GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult( + typing_extensions.TypedDict, total=False +): + normalizedScore: float + potentialScore: float + score: float + tag: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource( + typing_extensions.TypedDict, total=False +): + normalizedScore: float + potentialScore: float + qaTagResults: _list[ + GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult + ] + score: float + sourceType: typing_extensions.Literal[ + "SOURCE_TYPE_UNSPECIFIED", "SYSTEM_GENERATED_ONLY", "INCLUDES_MANUAL_EDITS" + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata( + typing_extensions.TypedDict, total=False +): + resultIsTruncated: bool + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse( + typing_extensions.TypedDict, total=False +): + location: str + macroAverageSlice: GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice + slices: _list[GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice] + updateTime: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice( + typing_extensions.TypedDict, total=False +): + dimensions: _list[GoogleCloudContactcenterinsightsV1alpha1Dimension] + timeSeries: ( + GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries + ) + total: GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint( + typing_extensions.TypedDict, total=False +): + conversationMeasure: GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure + interval: GoogleTypeInterval + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure( + typing_extensions.TypedDict, total=False +): + averageAgentSentimentScore: float + averageClientSentimentScore: float + averageCustomerSatisfactionRating: float + averageDuration: str + averageQaNormalizedScore: float + averageQaQuestionNormalizedScore: float + averageSilencePercentage: float + averageTurnCount: float + conversationCount: int + qaTagScores: _list[ + GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore + ] + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore( + typing_extensions.TypedDict, total=False +): + averageTagNormalizedScore: float + tag: str + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries( + typing_extensions.TypedDict, total=False +): + dataPoints: _list[ + GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint + ] + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1RedactionConfig( typing_extensions.TypedDict, total=False @@ -1816,3 +2557,8 @@ class GoogleRpcStatus(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str + +@typing.type_check_only +class GoogleTypeInterval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str diff --git a/googleapiclient-stubs/_apis/container/v1/schemas.pyi b/googleapiclient-stubs/_apis/container/v1/schemas.pyi index 152cf4b9..8375e9f9 100644 --- a/googleapiclient-stubs/_apis/container/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/container/v1/schemas.pyi @@ -42,6 +42,7 @@ class AddonsConfig(typing_extensions.TypedDict, total=False): httpLoadBalancing: HttpLoadBalancing kubernetesDashboard: KubernetesDashboard networkPolicyConfig: NetworkPolicyConfig + parallelstoreCsiDriverConfig: ParallelstoreCsiDriverConfig rayOperatorConfig: RayOperatorConfig statefulHaConfig: StatefulHAConfig @@ -185,6 +186,7 @@ class Cluster(typing_extensions.TypedDict, total=False): compliancePostureConfig: CompliancePostureConfig conditions: _list[StatusCondition] confidentialNodes: ConfidentialNodes + controlPlaneEndpointsConfig: ControlPlaneEndpointsConfig costManagementConfig: CostManagementConfig createTime: str currentMasterVersion: str @@ -254,6 +256,7 @@ class Cluster(typing_extensions.TypedDict, total=False): statusMessage: str subnetwork: str tpuIpv4CidrBlock: str + userManagedKeysConfig: UserManagedKeysConfig verticalPodAutoscaling: VerticalPodAutoscaling workloadIdentityConfig: WorkloadIdentityConfig zone: str @@ -282,17 +285,21 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): desiredClusterAutoscaling: ClusterAutoscaling desiredCompliancePostureConfig: CompliancePostureConfig desiredContainerdConfig: ContainerdConfig + desiredControlPlaneEndpointsConfig: ControlPlaneEndpointsConfig desiredCostManagementConfig: CostManagementConfig desiredDatabaseEncryption: DatabaseEncryption desiredDatapathProvider: typing_extensions.Literal[ "DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH" ] + desiredDefaultEnablePrivateNodes: bool desiredDefaultSnatStatus: DefaultSnatStatus + desiredDisableL4LbFirewallReconciliation: bool desiredDnsConfig: DNSConfig desiredEnableCiliumClusterwideNetworkPolicy: bool desiredEnableFqdnNetworkPolicy: bool desiredEnableMultiNetworking: bool desiredEnablePrivateEndpoint: bool + desiredEnterpriseConfig: DesiredEnterpriseConfig desiredFleet: Fleet desiredGatewayApiConfig: GatewayAPIConfig desiredGcfsConfig: GcfsConfig @@ -317,6 +324,7 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): desiredNetworkPerformanceConfig: ClusterNetworkPerformanceConfig desiredNodeKubeletConfig: NodeKubeletConfig desiredNodePoolAutoConfigKubeletConfig: NodeKubeletConfig + desiredNodePoolAutoConfigLinuxNodeConfig: LinuxNodeConfig desiredNodePoolAutoConfigNetworkTags: NetworkTags desiredNodePoolAutoConfigResourceManagerTags: ResourceManagerTags desiredNodePoolAutoscaling: NodePoolAutoscaling @@ -347,6 +355,7 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): enableK8sBetaApis: K8sBetaAPIConfig etag: str removedAdditionalPodRangesConfig: AdditionalPodRangesConfig + userManagedKeysConfig: UserManagedKeysConfig @typing.type_check_only class CompleteIPRotationRequest(typing_extensions.TypedDict, total=False): @@ -383,6 +392,11 @@ class ConsumptionMeteringConfig(typing_extensions.TypedDict, total=False): class ContainerdConfig(typing_extensions.TypedDict, total=False): privateRegistryAccessConfig: PrivateRegistryAccessConfig +@typing.type_check_only +class ControlPlaneEndpointsConfig(typing_extensions.TypedDict, total=False): + dnsEndpointConfig: DNSEndpointConfig + ipEndpointsConfig: IPEndpointsConfig + @typing.type_check_only class CostManagementConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -413,6 +427,11 @@ class DNSConfig(typing_extensions.TypedDict, total=False): "DNS_SCOPE_UNSPECIFIED", "CLUSTER_SCOPE", "VPC_SCOPE" ] +@typing.type_check_only +class DNSEndpointConfig(typing_extensions.TypedDict, total=False): + allowExternalTraffic: bool + endpoint: str + @typing.type_check_only class DailyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str @@ -438,6 +457,12 @@ class DatabaseEncryption(typing_extensions.TypedDict, total=False): class DefaultSnatStatus(typing_extensions.TypedDict, total=False): disabled: bool +@typing.type_check_only +class DesiredEnterpriseConfig(typing_extensions.TypedDict, total=False): + desiredTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] + @typing.type_check_only class DnsCacheConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -450,6 +475,9 @@ class EnterpriseConfig(typing_extensions.TypedDict, total=False): clusterTier: typing_extensions.Literal[ "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" ] + desiredTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] @typing.type_check_only class EphemeralStorageLocalSsdConfig(typing_extensions.TypedDict, total=False): @@ -586,6 +614,16 @@ class IPAllocationPolicy(typing_extensions.TypedDict, total=False): useIpAliases: bool useRoutes: bool +@typing.type_check_only +class IPEndpointsConfig(typing_extensions.TypedDict, total=False): + authorizedNetworksConfig: MasterAuthorizedNetworksConfig + enablePublicEndpoint: bool + enabled: bool + globalAccess: bool + privateEndpoint: str + privateEndpointSubnetwork: str + publicEndpoint: str + @typing.type_check_only class IdentityServiceConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -659,6 +697,8 @@ class LoggingComponentConfig(typing_extensions.TypedDict, total=False): "APISERVER", "SCHEDULER", "CONTROLLER_MANAGER", + "KCP_SSHD", + "KCP_CONNECTION", ] ] @@ -707,6 +747,7 @@ class MasterAuthorizedNetworksConfig(typing_extensions.TypedDict, total=False): cidrBlocks: _list[CidrBlock] enabled: bool gcpPublicCidrsAccessEnabled: bool + privateEndpointEnforcementEnabled: bool @typing.type_check_only class MaxPodsConstraint(typing_extensions.TypedDict, total=False): @@ -755,7 +796,9 @@ class NetworkConfig(typing_extensions.TypedDict, total=False): datapathProvider: typing_extensions.Literal[ "DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH" ] + defaultEnablePrivateNodes: bool defaultSnatStatus: DefaultSnatStatus + disableL4LbFirewallReconciliation: bool dnsConfig: DNSConfig enableCiliumClusterwideNetworkPolicy: bool enableFqdnNetworkPolicy: bool @@ -811,6 +854,11 @@ class NodeConfig(typing_extensions.TypedDict, total=False): containerdConfig: ContainerdConfig diskSizeGb: int diskType: str + effectiveCgroupMode: typing_extensions.Literal[ + "EFFECTIVE_CGROUP_MODE_UNSPECIFIED", + "EFFECTIVE_CGROUP_MODE_V1", + "EFFECTIVE_CGROUP_MODE_V2", + ] enableConfidentialStorage: bool ephemeralStorageLocalSsdConfig: EphemeralStorageLocalSsdConfig fastSocket: FastSocket @@ -822,8 +870,14 @@ class NodeConfig(typing_extensions.TypedDict, total=False): linuxNodeConfig: LinuxNodeConfig localNvmeSsdBlockConfig: LocalNvmeSsdBlockConfig localSsdCount: int + localSsdEncryptionMode: typing_extensions.Literal[ + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION", + "EPHEMERAL_KEY_ENCRYPTION", + ] loggingConfig: NodePoolLoggingConfig machineType: str + maxRunDuration: str metadata: dict[str, typing.Any] minCpuPlatform: str nodeGroup: str @@ -916,6 +970,7 @@ class NodePool(typing_extensions.TypedDict, total=False): @typing.type_check_only class NodePoolAutoConfig(typing_extensions.TypedDict, total=False): + linuxNodeConfig: LinuxNodeConfig networkTags: NetworkTags nodeKubeletConfig: NodeKubeletConfig resourceManagerTags: ResourceManagerTags @@ -1011,6 +1066,10 @@ class OperationProgress(typing_extensions.TypedDict, total=False): "STATUS_UNSPECIFIED", "PENDING", "RUNNING", "DONE", "ABORTING" ] +@typing.type_check_only +class ParallelstoreCsiDriverConfig(typing_extensions.TypedDict, total=False): + enabled: bool + @typing.type_check_only class ParentProductConfig(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] @@ -1097,6 +1156,7 @@ class ReleaseChannelConfig(typing_extensions.TypedDict, total=False): "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" ] defaultVersion: str + upgradeTargetVersion: str validVersions: _list[str] @typing.type_check_only @@ -1407,6 +1467,7 @@ class UpdateNodePoolRequest(typing_extensions.TypedDict, total=False): locations: _list[str] loggingConfig: NodePoolLoggingConfig machineType: str + maxRunDuration: str name: str nodeNetworkConfig: NodeNetworkConfig nodePoolId: str @@ -1443,6 +1504,25 @@ class UpgradeEvent(typing_extensions.TypedDict, total=False): ] targetVersion: str +@typing.type_check_only +class UpgradeInfoEvent(typing_extensions.TypedDict, total=False): + currentVersion: str + description: str + endTime: str + eventType: typing_extensions.Literal["EVENT_TYPE_UNSPECIFIED", "END_OF_SUPPORT"] + extendedSupportEndTime: str + operation: str + resource: str + resourceType: typing_extensions.Literal[ + "UPGRADE_RESOURCE_TYPE_UNSPECIFIED", "MASTER", "NODE_POOL" + ] + standardSupportEndTime: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "STARTED", "SUCCEEDED", "FAILED", "CANCELED" + ] + targetVersion: str + @typing.type_check_only class UpgradeSettings(typing_extensions.TypedDict, total=False): blueGreenSettings: BlueGreenSettings @@ -1472,6 +1552,17 @@ class UsableSubnetworkSecondaryRange(typing_extensions.TypedDict, total=False): "IN_USE_MANAGED_POD", ] +@typing.type_check_only +class UserManagedKeysConfig(typing_extensions.TypedDict, total=False): + aggregationCa: str + clusterCa: str + controlPlaneDiskEncryptionKey: str + etcdApiCa: str + etcdPeerCa: str + gkeopsEtcdBackupEncryptionKey: str + serviceAccountSigningKeys: _list[str] + serviceAccountVerificationKeys: _list[str] + @typing.type_check_only class VerticalPodAutoscaling(typing_extensions.TypedDict, total=False): enabled: bool diff --git a/googleapiclient-stubs/_apis/container/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/container/v1beta1/resources.pyi index e319fbbb..a1748700 100644 --- a/googleapiclient-stubs/_apis/container/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/container/v1beta1/resources.pyi @@ -66,6 +66,9 @@ class ContainerResource(googleapiclient.discovery.Resource): zone: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def fetchNodePoolUpgradeInfo( + self, *, name: str, version: str = ..., **kwargs: typing.Any + ) -> NodePoolUpgradeInfoHttpRequest: ... def get( self, *, @@ -153,6 +156,9 @@ class ContainerResource(googleapiclient.discovery.Resource): zone: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def fetchClusterUpgradeInfo( + self, *, name: str, version: str = ..., **kwargs: typing.Any + ) -> ClusterUpgradeInfoHttpRequest: ... def get( self, *, @@ -336,6 +342,9 @@ class ContainerResource(googleapiclient.discovery.Resource): name: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def fetchNodePoolUpgradeInfo( + self, *, name: str, version: str = ..., **kwargs: typing.Any + ) -> NodePoolUpgradeInfoHttpRequest: ... def get( self, *, @@ -431,6 +440,9 @@ class ContainerResource(googleapiclient.discovery.Resource): name: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def fetchClusterUpgradeInfo( + self, *, name: str, version: str = ..., **kwargs: typing.Any + ) -> ClusterUpgradeInfoHttpRequest: ... def get( self, *, @@ -623,6 +635,14 @@ class ClusterHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Cluster: ... +@typing.type_check_only +class ClusterUpgradeInfoHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ClusterUpgradeInfo: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -695,6 +715,14 @@ class NodePoolHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> NodePool: ... +@typing.type_check_only +class NodePoolUpgradeInfoHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NodePoolUpgradeInfo: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi index 54443bd6..7ccdf6e7 100644 --- a/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi @@ -45,6 +45,7 @@ class AddonsConfig(typing_extensions.TypedDict, total=False): kalmConfig: KalmConfig kubernetesDashboard: KubernetesDashboard networkPolicyConfig: NetworkPolicyConfig + parallelstoreCsiDriverConfig: ParallelstoreCsiDriverConfig rayOperatorConfig: RayOperatorConfig statefulHaConfig: StatefulHAConfig @@ -66,6 +67,10 @@ class AuthenticatorGroupsConfig(typing_extensions.TypedDict, total=False): enabled: bool securityGroup: str +@typing.type_check_only +class AutoMonitoringConfig(typing_extensions.TypedDict, total=False): + scope: typing_extensions.Literal["SCOPE_UNSPECIFIED", "ALL", "NONE"] + @typing.type_check_only class AutoUpgradeOptions(typing_extensions.TypedDict, total=False): autoUpgradeStartTime: str @@ -209,6 +214,7 @@ class Cluster(typing_extensions.TypedDict, total=False): compliancePostureConfig: CompliancePostureConfig conditions: _list[StatusCondition] confidentialNodes: ConfidentialNodes + controlPlaneEndpointsConfig: ControlPlaneEndpointsConfig costManagementConfig: CostManagementConfig createTime: str currentMasterVersion: str @@ -256,6 +262,7 @@ class Cluster(typing_extensions.TypedDict, total=False): nodePools: _list[NodePool] notificationConfig: NotificationConfig parentProductConfig: ParentProductConfig + podAutoscaling: PodAutoscaling podSecurityPolicyConfig: PodSecurityPolicyConfig privateCluster: bool privateClusterConfig: PrivateClusterConfig @@ -284,6 +291,7 @@ class Cluster(typing_extensions.TypedDict, total=False): subnetwork: str tpuConfig: TpuConfig tpuIpv4CidrBlock: str + userManagedKeysConfig: UserManagedKeysConfig verticalPodAutoscaling: VerticalPodAutoscaling workloadAltsConfig: WorkloadALTSConfig workloadCertificates: WorkloadCertificates @@ -319,17 +327,21 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): desiredClusterTelemetry: ClusterTelemetry desiredCompliancePostureConfig: CompliancePostureConfig desiredContainerdConfig: ContainerdConfig + desiredControlPlaneEndpointsConfig: ControlPlaneEndpointsConfig desiredCostManagementConfig: CostManagementConfig desiredDatabaseEncryption: DatabaseEncryption desiredDatapathProvider: typing_extensions.Literal[ "DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH" ] + desiredDefaultEnablePrivateNodes: bool desiredDefaultSnatStatus: DefaultSnatStatus + desiredDisableL4LbFirewallReconciliation: bool desiredDnsConfig: DNSConfig desiredEnableCiliumClusterwideNetworkPolicy: bool desiredEnableFqdnNetworkPolicy: bool desiredEnableMultiNetworking: bool desiredEnablePrivateEndpoint: bool + desiredEnterpriseConfig: DesiredEnterpriseConfig desiredFleet: Fleet desiredGatewayApiConfig: GatewayAPIConfig desiredGcfsConfig: GcfsConfig @@ -356,6 +368,7 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): desiredNetworkPerformanceConfig: ClusterNetworkPerformanceConfig desiredNodeKubeletConfig: NodeKubeletConfig desiredNodePoolAutoConfigKubeletConfig: NodeKubeletConfig + desiredNodePoolAutoConfigLinuxNodeConfig: LinuxNodeConfig desiredNodePoolAutoConfigNetworkTags: NetworkTags desiredNodePoolAutoConfigResourceManagerTags: ResourceManagerTags desiredNodePoolAutoscaling: NodePoolAutoscaling @@ -364,6 +377,7 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): desiredNodeVersion: str desiredNotificationConfig: NotificationConfig desiredParentProductConfig: ParentProductConfig + desiredPodAutoscaling: PodAutoscaling desiredPodSecurityPolicyConfig: PodSecurityPolicyConfig desiredPrivateClusterConfig: PrivateClusterConfig desiredPrivateIpv6GoogleAccess: typing_extensions.Literal[ @@ -392,6 +406,31 @@ class ClusterUpdate(typing_extensions.TypedDict, total=False): etag: str privateClusterConfig: PrivateClusterConfig removedAdditionalPodRangesConfig: AdditionalPodRangesConfig + userManagedKeysConfig: UserManagedKeysConfig + +@typing.type_check_only +class ClusterUpgradeInfo(typing_extensions.TypedDict, total=False): + autoUpgradeStatus: _list[ + typing_extensions.Literal[ + "UNKNOWN", "ACTIVE", "MINOR_UPGRADE_PAUSED", "UPGRADE_PAUSED" + ] + ] + endOfExtendedSupportTimestamp: str + endOfStandardSupportTimestamp: str + minorTargetVersion: str + patchTargetVersion: str + pausedReason: _list[ + typing_extensions.Literal[ + "AUTO_UPGRADE_PAUSED_REASON_UNSPECIFIED", + "MAINTENANCE_WINDOW", + "MAINTENANCE_EXCLUSION_NO_UPGRADES", + "MAINTENANCE_EXCLUSION_NO_MINOR_UPGRADES", + "CLUSTER_DISRUPTION_BUDGET", + "CLUSTER_DISRUPTION_BUDGET_MINOR_UPGRADE", + "SYSTEM_CONFIG", + ] + ] + upgradeDetails: _list[UpgradeDetails] @typing.type_check_only class CompleteIPRotationRequest(typing_extensions.TypedDict, total=False): @@ -428,6 +467,11 @@ class ConsumptionMeteringConfig(typing_extensions.TypedDict, total=False): class ContainerdConfig(typing_extensions.TypedDict, total=False): privateRegistryAccessConfig: PrivateRegistryAccessConfig +@typing.type_check_only +class ControlPlaneEndpointsConfig(typing_extensions.TypedDict, total=False): + dnsEndpointConfig: DNSEndpointConfig + ipEndpointsConfig: IPEndpointsConfig + @typing.type_check_only class CostManagementConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -458,6 +502,11 @@ class DNSConfig(typing_extensions.TypedDict, total=False): "DNS_SCOPE_UNSPECIFIED", "CLUSTER_SCOPE", "VPC_SCOPE" ] +@typing.type_check_only +class DNSEndpointConfig(typing_extensions.TypedDict, total=False): + allowExternalTraffic: bool + endpoint: str + @typing.type_check_only class DailyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str @@ -489,6 +538,12 @@ class Date(typing_extensions.TypedDict, total=False): class DefaultSnatStatus(typing_extensions.TypedDict, total=False): disabled: bool +@typing.type_check_only +class DesiredEnterpriseConfig(typing_extensions.TypedDict, total=False): + desiredTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] + @typing.type_check_only class DnsCacheConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -501,6 +556,9 @@ class EnterpriseConfig(typing_extensions.TypedDict, total=False): clusterTier: typing_extensions.Literal[ "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" ] + desiredTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] @typing.type_check_only class EphemeralStorageConfig(typing_extensions.TypedDict, total=False): @@ -649,6 +707,16 @@ class IPAllocationPolicy(typing_extensions.TypedDict, total=False): useIpAliases: bool useRoutes: bool +@typing.type_check_only +class IPEndpointsConfig(typing_extensions.TypedDict, total=False): + authorizedNetworksConfig: MasterAuthorizedNetworksConfig + enablePublicEndpoint: bool + enabled: bool + globalAccess: bool + privateEndpoint: str + privateEndpointSubnetwork: str + publicEndpoint: str + @typing.type_check_only class IdentityServiceConfig(typing_extensions.TypedDict, total=False): enabled: bool @@ -742,6 +810,8 @@ class LoggingComponentConfig(typing_extensions.TypedDict, total=False): "APISERVER", "SCHEDULER", "CONTROLLER_MANAGER", + "KCP_SSHD", + "KCP_CONNECTION", ] ] @@ -774,6 +844,7 @@ class MaintenanceWindow(typing_extensions.TypedDict, total=False): @typing.type_check_only class ManagedPrometheusConfig(typing_extensions.TypedDict, total=False): + autoMonitoringConfig: AutoMonitoringConfig enabled: bool @typing.type_check_only @@ -793,6 +864,7 @@ class MasterAuthorizedNetworksConfig(typing_extensions.TypedDict, total=False): cidrBlocks: _list[CidrBlock] enabled: bool gcpPublicCidrsAccessEnabled: bool + privateEndpointEnforcementEnabled: bool @typing.type_check_only class MaxPodsConstraint(typing_extensions.TypedDict, total=False): @@ -842,7 +914,9 @@ class NetworkConfig(typing_extensions.TypedDict, total=False): datapathProvider: typing_extensions.Literal[ "DATAPATH_PROVIDER_UNSPECIFIED", "LEGACY_DATAPATH", "ADVANCED_DATAPATH" ] + defaultEnablePrivateNodes: bool defaultSnatStatus: DefaultSnatStatus + disableL4LbFirewallReconciliation: bool dnsConfig: DNSConfig enableCiliumClusterwideNetworkPolicy: bool enableFqdnNetworkPolicy: bool @@ -901,6 +975,11 @@ class NodeConfig(typing_extensions.TypedDict, total=False): containerdConfig: ContainerdConfig diskSizeGb: int diskType: str + effectiveCgroupMode: typing_extensions.Literal[ + "EFFECTIVE_CGROUP_MODE_UNSPECIFIED", + "EFFECTIVE_CGROUP_MODE_V1", + "EFFECTIVE_CGROUP_MODE_V2", + ] enableConfidentialStorage: bool ephemeralStorageConfig: EphemeralStorageConfig ephemeralStorageLocalSsdConfig: EphemeralStorageLocalSsdConfig @@ -914,8 +993,14 @@ class NodeConfig(typing_extensions.TypedDict, total=False): linuxNodeConfig: LinuxNodeConfig localNvmeSsdBlockConfig: LocalNvmeSsdBlockConfig localSsdCount: int + localSsdEncryptionMode: typing_extensions.Literal[ + "LOCAL_SSD_ENCRYPTION_MODE_UNSPECIFIED", + "STANDARD_ENCRYPTION", + "EPHEMERAL_KEY_ENCRYPTION", + ] loggingConfig: NodePoolLoggingConfig machineType: str + maxRunDuration: str metadata: dict[str, typing.Any] minCpuPlatform: str nodeGroup: str @@ -1009,6 +1094,7 @@ class NodePool(typing_extensions.TypedDict, total=False): @typing.type_check_only class NodePoolAutoConfig(typing_extensions.TypedDict, total=False): + linuxNodeConfig: LinuxNodeConfig networkTags: NetworkTags nodeKubeletConfig: NodeKubeletConfig resourceManagerTags: ResourceManagerTags @@ -1033,6 +1119,28 @@ class NodePoolDefaults(typing_extensions.TypedDict, total=False): class NodePoolLoggingConfig(typing_extensions.TypedDict, total=False): variantConfig: LoggingVariantConfig +@typing.type_check_only +class NodePoolUpgradeInfo(typing_extensions.TypedDict, total=False): + autoUpgradeStatus: _list[ + typing_extensions.Literal[ + "UNKNOWN", "ACTIVE", "MINOR_UPGRADE_PAUSED", "UPGRADE_PAUSED" + ] + ] + endOfExtendedSupportTimestamp: str + endOfStandardSupportTimestamp: str + minorTargetVersion: str + patchTargetVersion: str + pausedReason: _list[ + typing_extensions.Literal[ + "AUTO_UPGRADE_PAUSED_REASON_UNSPECIFIED", + "MAINTENANCE_WINDOW", + "MAINTENANCE_EXCLUSION_NO_UPGRADES", + "MAINTENANCE_EXCLUSION_NO_MINOR_UPGRADES", + "SYSTEM_CONFIG", + ] + ] + upgradeDetails: _list[UpgradeDetails] + @typing.type_check_only class NodeTaint(typing_extensions.TypedDict, total=False): effect: typing_extensions.Literal[ @@ -1110,6 +1218,10 @@ class OpportunisticMaintenanceStrategy(typing_extensions.TypedDict, total=False) minNodesPerPool: str nodeIdleTimeWindow: str +@typing.type_check_only +class ParallelstoreCsiDriverConfig(typing_extensions.TypedDict, total=False): + enabled: bool + @typing.type_check_only class ParentProductConfig(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] @@ -1121,6 +1233,12 @@ class PlacementPolicy(typing_extensions.TypedDict, total=False): tpuTopology: str type: typing_extensions.Literal["TYPE_UNSPECIFIED", "COMPACT"] +@typing.type_check_only +class PodAutoscaling(typing_extensions.TypedDict, total=False): + hpaProfile: typing_extensions.Literal[ + "HPA_PROFILE_UNSPECIFIED", "NONE", "PERFORMANCE" + ] + @typing.type_check_only class PodCIDROverprovisionConfig(typing_extensions.TypedDict, total=False): disable: bool @@ -1212,6 +1330,7 @@ class ReleaseChannelConfig(typing_extensions.TypedDict, total=False): "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" ] defaultVersion: str + upgradeTargetVersion: str validVersions: _list[str] @typing.type_check_only @@ -1530,6 +1649,7 @@ class UpdateNodePoolRequest(typing_extensions.TypedDict, total=False): locations: _list[str] loggingConfig: NodePoolLoggingConfig machineType: str + maxRunDuration: str name: str nodeNetworkConfig: NodeNetworkConfig nodePoolId: str @@ -1556,6 +1676,16 @@ class UpgradeAvailableEvent(typing_extensions.TypedDict, total=False): version: str windowsVersions: WindowsVersions +@typing.type_check_only +class UpgradeDetails(typing_extensions.TypedDict, total=False): + endTime: str + initialVersion: str + startTime: str + state: typing_extensions.Literal[ + "UNKNOWN", "FAILED", "SUCCEEDED", "CANCELED", "RUNNING" + ] + targetVersion: str + @typing.type_check_only class UpgradeEvent(typing_extensions.TypedDict, total=False): currentVersion: str @@ -1567,6 +1697,25 @@ class UpgradeEvent(typing_extensions.TypedDict, total=False): ] targetVersion: str +@typing.type_check_only +class UpgradeInfoEvent(typing_extensions.TypedDict, total=False): + currentVersion: str + description: str + endTime: str + eventType: typing_extensions.Literal["EVENT_TYPE_UNSPECIFIED", "END_OF_SUPPORT"] + extendedSupportEndTime: str + operation: str + resource: str + resourceType: typing_extensions.Literal[ + "UPGRADE_RESOURCE_TYPE_UNSPECIFIED", "MASTER", "NODE_POOL" + ] + standardSupportEndTime: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "STARTED", "SUCCEEDED", "FAILED", "CANCELED" + ] + targetVersion: str + @typing.type_check_only class UpgradeSettings(typing_extensions.TypedDict, total=False): blueGreenSettings: BlueGreenSettings @@ -1596,6 +1745,17 @@ class UsableSubnetworkSecondaryRange(typing_extensions.TypedDict, total=False): "IN_USE_MANAGED_POD", ] +@typing.type_check_only +class UserManagedKeysConfig(typing_extensions.TypedDict, total=False): + aggregationCa: str + clusterCa: str + controlPlaneDiskEncryptionKey: str + etcdApiCa: str + etcdPeerCa: str + gkeopsEtcdBackupEncryptionKey: str + serviceAccountSigningKeys: _list[str] + serviceAccountVerificationKeys: _list[str] + @typing.type_check_only class VerticalPodAutoscaling(typing_extensions.TypedDict, total=False): enabled: bool diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi index 35bf9470..88e49a9f 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi @@ -445,7 +445,9 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions( ): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi index dcb8962e..4933b456 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi @@ -387,7 +387,9 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions( ): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool @@ -1003,7 +1005,7 @@ class GoogleDevtoolsContaineranalysisV1alpha1SourceContext( @typing.type_check_only class Hash(typing_extensions.TypedDict, total=False): - type: typing_extensions.Literal["NONE", "SHA256"] + type: typing_extensions.Literal["NONE", "SHA256", "GO_MODULE_H1"] value: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi index 02a221c2..a0f69ec0 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi @@ -415,7 +415,9 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions( ): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool diff --git a/googleapiclient-stubs/_apis/content/v2_1/resources.pyi b/googleapiclient-stubs/_apis/content/v2_1/resources.pyi index c87abf92..2ca1bcd2 100644 --- a/googleapiclient-stubs/_apis/content/v2_1/resources.pyi +++ b/googleapiclient-stubs/_apis/content/v2_1/resources.pyi @@ -944,45 +944,6 @@ class ShoppingContentResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> ReturnPolicyOnlineHttpRequest: ... - @typing.type_check_only - class SettlementreportsResource(googleapiclient.discovery.Resource): - def get( - self, *, merchantId: str, settlementId: str, **kwargs: typing.Any - ) -> SettlementReportHttpRequest: ... - def list( - self, - *, - merchantId: str, - maxResults: int = ..., - pageToken: str = ..., - transferEndDate: str = ..., - transferStartDate: str = ..., - **kwargs: typing.Any, - ) -> SettlementreportsListResponseHttpRequest: ... - def list_next( - self, - previous_request: SettlementreportsListResponseHttpRequest, - previous_response: SettlementreportsListResponse, - ) -> SettlementreportsListResponseHttpRequest | None: ... - - @typing.type_check_only - class SettlementtransactionsResource(googleapiclient.discovery.Resource): - def list( - self, - *, - merchantId: str, - settlementId: str, - maxResults: int = ..., - pageToken: str = ..., - transactionIds: str | _list[str] = ..., - **kwargs: typing.Any, - ) -> SettlementtransactionsListResponseHttpRequest: ... - def list_next( - self, - previous_request: SettlementtransactionsListResponseHttpRequest, - previous_response: SettlementtransactionsListResponse, - ) -> SettlementtransactionsListResponseHttpRequest | None: ... - @typing.type_check_only class ShippingsettingsResource(googleapiclient.discovery.Resource): def custombatch( @@ -1078,8 +1039,6 @@ class ShoppingContentResource(googleapiclient.discovery.Resource): def returnaddress(self) -> ReturnaddressResource: ... def returnpolicy(self) -> ReturnpolicyResource: ... def returnpolicyonline(self) -> ReturnpolicyonlineResource: ... - def settlementreports(self) -> SettlementreportsResource: ... - def settlementtransactions(self) -> SettlementtransactionsResource: ... def shippingsettings(self) -> ShippingsettingsResource: ... def shoppingadsprogram(self) -> ShoppingadsprogramResource: ... @@ -1749,30 +1708,6 @@ class SearchResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> SearchResponse: ... -@typing.type_check_only -class SettlementReportHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> SettlementReport: ... - -@typing.type_check_only -class SettlementreportsListResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> SettlementreportsListResponse: ... - -@typing.type_check_only -class SettlementtransactionsListResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> SettlementtransactionsListResponse: ... - @typing.type_check_only class ShippingSettingsHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi b/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi index 52d365ef..ebca0d59 100644 --- a/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi +++ b/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi @@ -1252,6 +1252,7 @@ class LoyaltyProgram(typing_extensions.TypedDict, total=False): memberPriceEffectiveDate: str price: Price programLabel: str + shippingLabel: str tierLabel: str @typing.type_check_only @@ -1645,6 +1646,7 @@ class Product(typing_extensions.TypedDict, total=False): structuredDescription: ProductStructuredDescription structuredTitle: ProductStructuredTitle subscriptionCost: ProductSubscriptionCost + sustainabilityIncentives: _list[ProductSustainabilityIncentive] targetCountry: str taxCategory: str taxes: _list[ProductTax] @@ -1799,6 +1801,14 @@ class ProductSubscriptionCost(typing_extensions.TypedDict, total=False): period: str periodLength: str +@typing.type_check_only +class ProductSustainabilityIncentive(typing_extensions.TypedDict, total=False): + amount: Price + percentage: float + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "EV_TAX_CREDIT", "EV_PRICE_DISCOUNT" + ] + @typing.type_check_only class ProductTax(typing_extensions.TypedDict, total=False): country: str @@ -2471,62 +2481,6 @@ class ServiceStoreConfigCutoffConfigLocalCutoffTime( hour: str minute: str -@typing.type_check_only -class SettlementReport(typing_extensions.TypedDict, total=False): - endDate: str - kind: str - previousBalance: Price - settlementId: str - startDate: str - transferAmount: Price - transferDate: str - transferIds: _list[str] - -@typing.type_check_only -class SettlementTransaction(typing_extensions.TypedDict, total=False): - amount: SettlementTransactionAmount - identifiers: SettlementTransactionIdentifiers - kind: str - transaction: SettlementTransactionTransaction - -@typing.type_check_only -class SettlementTransactionAmount(typing_extensions.TypedDict, total=False): - commission: SettlementTransactionAmountCommission - description: str - transactionAmount: Price - type: str - -@typing.type_check_only -class SettlementTransactionAmountCommission(typing_extensions.TypedDict, total=False): - category: str - rate: str - -@typing.type_check_only -class SettlementTransactionIdentifiers(typing_extensions.TypedDict, total=False): - adjustmentId: str - merchantOrderId: str - orderItemId: str - settlementEntryId: str - shipmentIds: _list[str] - transactionId: str - -@typing.type_check_only -class SettlementTransactionTransaction(typing_extensions.TypedDict, total=False): - postDate: str - type: str - -@typing.type_check_only -class SettlementreportsListResponse(typing_extensions.TypedDict, total=False): - kind: str - nextPageToken: str - resources: _list[SettlementReport] - -@typing.type_check_only -class SettlementtransactionsListResponse(typing_extensions.TypedDict, total=False): - kind: str - nextPageToken: str - resources: _list[SettlementTransaction] - @typing.type_check_only class ShippingSettings(typing_extensions.TypedDict, total=False): accountId: str diff --git a/googleapiclient-stubs/_apis/css/v1/resources.pyi b/googleapiclient-stubs/_apis/css/v1/resources.pyi index fb661da7..df5f46c5 100644 --- a/googleapiclient-stubs/_apis/css/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/css/v1/resources.pyi @@ -28,6 +28,14 @@ class CssResource(googleapiclient.discovery.Resource): feedId: str = ..., **kwargs: typing.Any, ) -> CssProductInputHttpRequest: ... + def patch( + self, + *, + name: str, + body: CssProductInput = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> CssProductInputHttpRequest: ... @typing.type_check_only class CssProductsResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/datacatalog/v1/resources.pyi b/googleapiclient-stubs/_apis/datacatalog/v1/resources.pyi index 7891ec7c..605c09b0 100644 --- a/googleapiclient-stubs/_apis/datacatalog/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/datacatalog/v1/resources.pyi @@ -40,6 +40,26 @@ class DataCatalogResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDatacatalogV1EntryHttpRequest: ... + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + def retrieveConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDatacatalogV1OrganizationConfigHttpRequest: ... + def retrieveEffectiveConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDatacatalogV1MigrationConfigHttpRequest: ... + def setConfig( + self, + *, + name: str, + body: GoogleCloudDatacatalogV1SetConfigRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDatacatalogV1MigrationConfigHttpRequest: ... + + def locations(self) -> LocationsResource: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -532,6 +552,16 @@ class DataCatalogResource(googleapiclient.discovery.Resource): ) -> TestIamPermissionsResponseHttpRequest: ... def policyTags(self) -> PolicyTagsResource: ... + def retrieveEffectiveConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDatacatalogV1MigrationConfigHttpRequest: ... + def setConfig( + self, + *, + name: str, + body: GoogleCloudDatacatalogV1SetConfigRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDatacatalogV1MigrationConfigHttpRequest: ... def entryGroups(self) -> EntryGroupsResource: ... def operations(self) -> OperationsResource: ... def tagTemplates(self) -> TagTemplatesResource: ... @@ -553,6 +583,7 @@ class DataCatalogResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def catalog(self) -> CatalogResource: ... def entries(self) -> EntriesResource: ... + def organizations(self) -> OrganizationsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only @@ -667,6 +698,26 @@ class GoogleCloudDatacatalogV1ListTaxonomiesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDatacatalogV1ListTaxonomiesResponse: ... +@typing.type_check_only +class GoogleCloudDatacatalogV1MigrationConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDatacatalogV1MigrationConfig: ... + +@typing.type_check_only +class GoogleCloudDatacatalogV1OrganizationConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDatacatalogV1OrganizationConfig: ... + @typing.type_check_only class GoogleCloudDatacatalogV1PolicyTagHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/datacatalog/v1/schemas.pyi b/googleapiclient-stubs/_apis/datacatalog/v1/schemas.pyi index b1259dbb..8fdc3e18 100644 --- a/googleapiclient-stubs/_apis/datacatalog/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datacatalog/v1/schemas.pyi @@ -314,6 +314,7 @@ class GoogleCloudDatacatalogV1EntryGroup(typing_extensions.TypedDict, total=Fals description: str displayName: str name: str + transferredToDataplex: bool @typing.type_check_only class GoogleCloudDatacatalogV1EntryOverview(typing_extensions.TypedDict, total=False): @@ -462,6 +463,19 @@ class GoogleCloudDatacatalogV1LookerSystemSpec( parentViewDisplayName: str parentViewId: str +@typing.type_check_only +class GoogleCloudDatacatalogV1MigrationConfig(typing_extensions.TypedDict, total=False): + catalogUiExperience: typing_extensions.Literal[ + "CATALOG_UI_EXPERIENCE_UNSPECIFIED", + "CATALOG_UI_EXPERIENCE_ENABLED", + "CATALOG_UI_EXPERIENCE_DISABLED", + ] + tagTemplateMigration: typing_extensions.Literal[ + "TAG_TEMPLATE_MIGRATION_UNSPECIFIED", + "TAG_TEMPLATE_MIGRATION_ENABLED", + "TAG_TEMPLATE_MIGRATION_DISABLED", + ] + @typing.type_check_only class GoogleCloudDatacatalogV1ModelSpec(typing_extensions.TypedDict, total=False): vertexModelSpec: GoogleCloudDatacatalogV1VertexModelSpec @@ -478,6 +492,12 @@ class GoogleCloudDatacatalogV1ModifyEntryOverviewRequest( ): entryOverview: GoogleCloudDatacatalogV1EntryOverview +@typing.type_check_only +class GoogleCloudDatacatalogV1OrganizationConfig( + typing_extensions.TypedDict, total=False +): + config: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDatacatalogV1PersonalDetails(typing_extensions.TypedDict, total=False): starTime: str @@ -687,6 +707,21 @@ class GoogleCloudDatacatalogV1SerializedTaxonomy( class GoogleCloudDatacatalogV1ServiceSpec(typing_extensions.TypedDict, total=False): cloudBigtableInstanceSpec: GoogleCloudDatacatalogV1CloudBigtableInstanceSpec +@typing.type_check_only +class GoogleCloudDatacatalogV1SetConfigRequest( + typing_extensions.TypedDict, total=False +): + catalogUiExperience: typing_extensions.Literal[ + "CATALOG_UI_EXPERIENCE_UNSPECIFIED", + "CATALOG_UI_EXPERIENCE_ENABLED", + "CATALOG_UI_EXPERIENCE_DISABLED", + ] + tagTemplateMigration: typing_extensions.Literal[ + "TAG_TEMPLATE_MIGRATION_UNSPECIFIED", + "TAG_TEMPLATE_MIGRATION_ENABLED", + "TAG_TEMPLATE_MIGRATION_DISABLED", + ] + @typing.type_check_only class GoogleCloudDatacatalogV1SqlDatabaseSystemSpec( typing_extensions.TypedDict, total=False @@ -727,6 +762,9 @@ class GoogleCloudDatacatalogV1TableSpec(typing_extensions.TypedDict, total=False @typing.type_check_only class GoogleCloudDatacatalogV1Tag(typing_extensions.TypedDict, total=False): column: str + dataplexTransferStatus: typing_extensions.Literal[ + "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", "MIGRATED", "TRANSFERRED" + ] fields: dict[str, typing.Any] name: str template: str @@ -752,7 +790,7 @@ class GoogleCloudDatacatalogV1TagFieldEnumValue( @typing.type_check_only class GoogleCloudDatacatalogV1TagTemplate(typing_extensions.TypedDict, total=False): dataplexTransferStatus: typing_extensions.Literal[ - "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", "MIGRATED" + "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", "MIGRATED", "TRANSFERRED" ] displayName: str fields: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/datacatalog/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/datacatalog/v1beta1/schemas.pyi index 21178645..db9ad226 100644 --- a/googleapiclient-stubs/_apis/datacatalog/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datacatalog/v1beta1/schemas.pyi @@ -488,6 +488,9 @@ class GoogleCloudDatacatalogV1TableSpec(typing_extensions.TypedDict, total=False @typing.type_check_only class GoogleCloudDatacatalogV1Tag(typing_extensions.TypedDict, total=False): column: str + dataplexTransferStatus: typing_extensions.Literal[ + "DATAPLEX_TRANSFER_STATUS_UNSPECIFIED", "MIGRATED", "TRANSFERRED" + ] fields: dict[str, typing.Any] name: str template: str diff --git a/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi b/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi index 05d82abe..50fa78b9 100644 --- a/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi @@ -65,6 +65,17 @@ class BigTableIODetails(typing_extensions.TypedDict, total=False): projectId: str tableId: str +@typing.type_check_only +class BoundedTrie(typing_extensions.TypedDict, total=False): + bound: int + root: BoundedTrieNode + singleton: _list[str] + +@typing.type_check_only +class BoundedTrieNode(typing_extensions.TypedDict, total=False): + children: dict[str, typing.Any] + truncated: bool + @typing.type_check_only class BucketOptions(typing_extensions.TypedDict, total=False): exponential: Base2Exponent @@ -160,6 +171,7 @@ class CounterStructuredNameAndMetadata(typing_extensions.TypedDict, total=False) @typing.type_check_only class CounterUpdate(typing_extensions.TypedDict, total=False): boolean: bool + boundedTrie: BoundedTrie cumulative: bool distribution: DistributionUpdate floatingPoint: float @@ -210,6 +222,11 @@ class DataSamplingReport(typing_extensions.TypedDict, total=False): persistenceErrorsCount: str translationErrorsCount: str +@typing.type_check_only +class DataflowGaugeValue(typing_extensions.TypedDict, total=False): + measuredTime: str + value: str + @typing.type_check_only class DataflowHistogramValue(typing_extensions.TypedDict, total=False): bucketCounts: _list[str] @@ -407,6 +424,15 @@ class FloatingPointMean(typing_extensions.TypedDict, total=False): count: SplitInt64 sum: float +@typing.type_check_only +class GPUUsage(typing_extensions.TypedDict, total=False): + timestamp: str + utilization: GPUUtilization + +@typing.type_check_only +class GPUUtilization(typing_extensions.TypedDict, total=False): + rate: float + @typing.type_check_only class GetDebugConfigRequest(typing_extensions.TypedDict, total=False): componentId: str @@ -699,12 +725,14 @@ class MetricUpdate(typing_extensions.TypedDict, total=False): name: MetricStructuredName scalar: typing.Any set: typing.Any + trie: typing.Any updateTime: str @typing.type_check_only class MetricValue(typing_extensions.TypedDict, total=False): metric: str metricLabels: dict[str, typing.Any] + valueGauge64: DataflowGaugeValue valueHistogram: DataflowHistogramValue valueInt64: str @@ -909,6 +937,7 @@ class ReportedParallelism(typing_extensions.TypedDict, total=False): class ResourceUtilizationReport(typing_extensions.TypedDict, total=False): containers: dict[str, typing.Any] cpuTime: _list[CPUTime] + gpuUsage: _list[GPUUsage] memoryInfo: _list[MemInfo] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi index b39f3950..9c16f979 100644 --- a/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi @@ -17,67 +17,8 @@ class DataformResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class CollectionsResource(googleapiclient.discovery.Resource): - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... - @typing.type_check_only class RepositoriesResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class CommentThreadsResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class CommentsResource(googleapiclient.discovery.Resource): - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def comments(self) -> CommentsResource: ... - @typing.type_check_only class CompilationResultsResource(googleapiclient.discovery.Resource): def create( @@ -533,7 +474,6 @@ class DataformResource(googleapiclient.discovery.Resource): body: TestIamPermissionsRequest = ..., **kwargs: typing.Any, ) -> TestIamPermissionsResponseHttpRequest: ... - def commentThreads(self) -> CommentThreadsResource: ... def compilationResults(self) -> CompilationResultsResource: ... def releaseConfigs(self) -> ReleaseConfigsResource: ... def workflowConfigs(self) -> WorkflowConfigsResource: ... @@ -568,7 +508,6 @@ class DataformResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> ConfigHttpRequest: ... - def collections(self) -> CollectionsResource: ... def repositories(self) -> RepositoriesResource: ... def locations(self) -> LocationsResource: ... diff --git a/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi index 81101d8c..fe7f2ee8 100644 --- a/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi @@ -102,7 +102,6 @@ class CompilationResult(typing_extensions.TypedDict, total=False): class CompilationResultAction(typing_extensions.TypedDict, total=False): assertion: Assertion canonicalTarget: Target - dataPreparation: DataPreparation declaration: Declaration filePath: str notebook: Notebook @@ -127,13 +126,6 @@ class Config(typing_extensions.TypedDict, total=False): class DataEncryptionState(typing_extensions.TypedDict, total=False): kmsKeyVersionName: str -@typing.type_check_only -class DataPreparation(typing_extensions.TypedDict, total=False): - contents: str - dependencyTargets: _list[Target] - disabled: bool - tags: _list[str] - @typing.type_check_only class Declaration(typing_extensions.TypedDict, total=False): relationDescriptor: RelationDescriptor @@ -545,6 +537,7 @@ class WorkflowInvocationAction(typing_extensions.TypedDict, total=False): @typing.type_check_only class Workspace(typing_extensions.TypedDict, total=False): + createTime: str dataEncryptionState: DataEncryptionState name: str diff --git a/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi b/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi index ef6cab28..279bdf0d 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi @@ -17,13 +17,6 @@ class Accelerator(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "UNKNOWN" ] -@typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] - @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -42,30 +35,13 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class CryptoKeyConfig(typing_extensions.TypedDict, total=False): keyReference: str -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class DnsPeering(typing_extensions.TypedDict, total=False): description: str @@ -89,10 +65,6 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str -@typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy - @typing.type_check_only class Instance(typing_extensions.TypedDict, total=False): accelerators: _list[Accelerator] @@ -147,44 +119,11 @@ class Instance(typing_extensions.TypedDict, total=False): workforceIdentityServiceEndpoint: str zone: str -@typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] - @typing.type_check_only class ListAvailableVersionsResponse(typing_extensions.TypedDict, total=False): availableVersions: _list[Version] nextPageToken: str + versions: _list[Version] @typing.type_check_only class ListDnsPeeringsResponse(typing_extensions.TypedDict, total=False): @@ -215,30 +154,6 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str -@typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation - @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): maintenanceExclusionWindow: TimeWindow @@ -278,10 +193,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -300,11 +211,6 @@ class RecurringTimeWindow(typing_extensions.TypedDict, total=False): recurrence: str window: TimeWindow -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - @typing.type_check_only class RestartInstanceRequest(typing_extensions.TypedDict, total=False): ... @@ -313,21 +219,12 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str -@typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] - @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str -@typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] - @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -346,10 +243,9 @@ class Version(typing_extensions.TypedDict, total=False): availableFeatures: _list[str] defaultVersion: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "TYPE_PREVIEW", "TYPE_GENERAL_AVAILABILITY" + "TYPE_UNSPECIFIED", + "TYPE_PREVIEW", + "TYPE_GENERAL_AVAILABILITY", + "TYPE_DEPRECATED", ] versionNumber: str - -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str diff --git a/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi index 5d8bb93b..7e258cf9 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi @@ -17,13 +17,6 @@ class Accelerator(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "UNKNOWN" ] -@typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] - @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -42,30 +35,13 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class CryptoKeyConfig(typing_extensions.TypedDict, total=False): keyReference: str -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class DnsPeering(typing_extensions.TypedDict, total=False): description: str @@ -89,10 +65,6 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str -@typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy - @typing.type_check_only class IAMPolicy(typing_extensions.TypedDict, total=False): policy: Policy @@ -152,44 +124,11 @@ class Instance(typing_extensions.TypedDict, total=False): workforceIdentityServiceEndpoint: str zone: str -@typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] - @typing.type_check_only class ListAvailableVersionsResponse(typing_extensions.TypedDict, total=False): availableVersions: _list[Version] nextPageToken: str + versions: _list[Version] @typing.type_check_only class ListDnsPeeringsResponse(typing_extensions.TypedDict, total=False): @@ -225,30 +164,6 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str -@typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation - @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): maintenanceExclusionWindow: TimeWindow @@ -293,10 +208,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -315,11 +226,6 @@ class RecurringTimeWindow(typing_extensions.TypedDict, total=False): recurrence: str window: TimeWindow -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - @typing.type_check_only class RemoveIamPolicyRequest(typing_extensions.TypedDict, total=False): ... @@ -334,21 +240,12 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str -@typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] - @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str -@typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] - @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -370,10 +267,9 @@ class Version(typing_extensions.TypedDict, total=False): availableFeatures: _list[str] defaultVersion: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "TYPE_PREVIEW", "TYPE_GENERAL_AVAILABILITY" + "TYPE_UNSPECIFIED", + "TYPE_PREVIEW", + "TYPE_GENERAL_AVAILABILITY", + "TYPE_DEPRECATED", ] versionNumber: str - -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str diff --git a/googleapiclient-stubs/_apis/datamigration/v1/resources.pyi b/googleapiclient-stubs/_apis/datamigration/v1/resources.pyi index f5db4ab2..e23b484e 100644 --- a/googleapiclient-stubs/_apis/datamigration/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/datamigration/v1/resources.pyi @@ -278,6 +278,9 @@ class DatabaseMigrationServiceResource(googleapiclient.discovery.Resource): class MigrationJobsResource(googleapiclient.discovery.Resource): @typing.type_check_only class ObjectsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MigrationJobObjectHttpRequest: ... def getIamPolicy( self, *, @@ -285,6 +288,26 @@ class DatabaseMigrationServiceResource(googleapiclient.discovery.Resource): options_requestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMigrationJobObjectsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMigrationJobObjectsResponseHttpRequest, + previous_response: ListMigrationJobObjectsResponse, + ) -> ListMigrationJobObjectsResponseHttpRequest | None: ... + def lookup( + self, + *, + parent: str, + body: LookupMigrationJobObjectRequest = ..., + **kwargs: typing.Any, + ) -> MigrationJobObjectHttpRequest: ... def setIamPolicy( self, *, @@ -324,6 +347,9 @@ class DatabaseMigrationServiceResource(googleapiclient.discovery.Resource): body: DemoteDestinationRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def fetchSourceObjects( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... def generateSshScript( self, *, @@ -649,6 +675,14 @@ class ListMappingRulesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListMappingRulesResponse: ... +@typing.type_check_only +class ListMigrationJobObjectsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMigrationJobObjectsResponse: ... + @typing.type_check_only class ListMigrationJobsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -697,6 +731,14 @@ class MigrationJobHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> MigrationJob: ... +@typing.type_check_only +class MigrationJobObjectHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MigrationJobObject: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi b/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi index adddab53..f0d3bb80 100644 --- a/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi @@ -78,6 +78,11 @@ class BackgroundJobLogEntry(typing_extensions.TypedDict, total=False): seedJobDetails: SeedJobDetails startTime: str +@typing.type_check_only +class BinaryLogParser(typing_extensions.TypedDict, total=False): + logFileDirectories: LogFileDirectories + oracleAsmLogFileAccess: OracleAsmLogFileAccess + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr @@ -198,8 +203,16 @@ class ConnectionProfile(typing_extensions.TypedDict, total=False): oracle: OracleConnectionProfile postgresql: PostgreSqlConnectionProfile provider: typing_extensions.Literal[ - "DATABASE_PROVIDER_UNSPECIFIED", "CLOUDSQL", "RDS", "AURORA", "ALLOYDB" + "DATABASE_PROVIDER_UNSPECIFIED", + "CLOUDSQL", + "RDS", + "AURORA", + "ALLOYDB", + "AZURE_DATABASE", ] + role: typing_extensions.Literal["ROLE_UNSPECIFIED", "SOURCE", "DESTINATION"] + satisfiesPzi: bool + satisfiesPzs: bool sqlserver: SqlServerConnectionProfile state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -316,7 +329,12 @@ class DatabaseType(typing_extensions.TypedDict, total=False): "DATABASE_ENGINE_UNSPECIFIED", "MYSQL", "POSTGRESQL", "SQLSERVER", "ORACLE" ] provider: typing_extensions.Literal[ - "DATABASE_PROVIDER_UNSPECIFIED", "CLOUDSQL", "RDS", "AURORA", "ALLOYDB" + "DATABASE_PROVIDER_UNSPECIFIED", + "CLOUDSQL", + "RDS", + "AURORA", + "ALLOYDB", + "AZURE_DATABASE", ] @typing.type_check_only @@ -596,6 +614,11 @@ class ListMappingRulesResponse(typing_extensions.TypedDict, total=False): mappingRules: _list[MappingRule] nextPageToken: str +@typing.type_check_only +class ListMigrationJobObjectsResponse(typing_extensions.TypedDict, total=False): + migrationJobObjects: _list[MigrationJobObject] + nextPageToken: str + @typing.type_check_only class ListMigrationJobsResponse(typing_extensions.TypedDict, total=False): migrationJobs: _list[MigrationJob] @@ -621,6 +644,18 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LogFileDirectories(typing_extensions.TypedDict, total=False): + archivedLogDirectory: str + onlineLogDirectory: str + +@typing.type_check_only +class LogMiner(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class LookupMigrationJobObjectRequest(typing_extensions.TypedDict, total=False): + sourceObjectIdentifier: SourceObjectIdentifier + @typing.type_check_only class MachineConfig(typing_extensions.TypedDict, total=False): cpuCount: int @@ -677,6 +712,7 @@ class MappingRuleFilter(typing_extensions.TypedDict, total=False): @typing.type_check_only class MaterializedViewEntity(typing_extensions.TypedDict, total=False): customFeatures: dict[str, typing.Any] + indices: _list[IndexEntity] sqlCode: str @typing.type_check_only @@ -696,6 +732,8 @@ class MigrationJob(typing_extensions.TypedDict, total=False): filter: str labels: dict[str, typing.Any] name: str + objectsConfig: MigrationJobObjectsConfig + oracleToPostgresConfig: OracleToPostgresConfig performanceConfig: PerformanceConfig phase: typing_extensions.Literal[ "PHASE_UNSPECIFIED", @@ -707,6 +745,8 @@ class MigrationJob(typing_extensions.TypedDict, total=False): "READY_FOR_PROMOTE", ] reverseSshConnectivity: ReverseSshConnectivity + satisfiesPzi: bool + satisfiesPzs: bool source: str sourceDatabase: DatabaseType sqlserverHomogeneousMigrationJobConfig: SqlServerHomogeneousMigrationJobConfig @@ -733,6 +773,39 @@ class MigrationJob(typing_extensions.TypedDict, total=False): updateTime: str vpcPeeringConnectivity: VpcPeeringConnectivity +@typing.type_check_only +class MigrationJobObject(typing_extensions.TypedDict, total=False): + createTime: str + error: Status + name: str + phase: typing_extensions.Literal[ + "PHASE_UNSPECIFIED", + "FULL_DUMP", + "CDC", + "READY_FOR_PROMOTE", + "PROMOTE_IN_PROGRESS", + "PROMOTED", + "DIFF_BACKUP", + ] + sourceObject: SourceObjectIdentifier + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "NOT_STARTED", + "RUNNING", + "STOPPING", + "STOPPED", + "RESTARTING", + "FAILED", + "REMOVING", + "NOT_SELECTED", + "COMPLETED", + ] + updateTime: str + +@typing.type_check_only +class MigrationJobObjectsConfig(typing_extensions.TypedDict, total=False): + sourceObjectsConfig: SourceObjectsConfig + @typing.type_check_only class MigrationJobVerificationError(typing_extensions.TypedDict, total=False): errorCode: typing_extensions.Literal[ @@ -821,6 +894,9 @@ class OracleAsmConfig(typing_extensions.TypedDict, total=False): ssl: SslConfig username: str +@typing.type_check_only +class OracleAsmLogFileAccess(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class OracleConnectionProfile(typing_extensions.TypedDict, total=False): databaseService: str @@ -835,6 +911,20 @@ class OracleConnectionProfile(typing_extensions.TypedDict, total=False): staticServiceIpConnectivity: StaticServiceIpConnectivity username: str +@typing.type_check_only +class OracleSourceConfig(typing_extensions.TypedDict, total=False): + binaryLogParser: BinaryLogParser + cdcStartPosition: str + logMiner: LogMiner + maxConcurrentCdcConnections: int + maxConcurrentFullDumpConnections: int + skipFullDump: bool + +@typing.type_check_only +class OracleToPostgresConfig(typing_extensions.TypedDict, total=False): + oracleSourceConfig: OracleSourceConfig + postgresDestinationConfig: PostgresDestinationConfig + @typing.type_check_only class PackageEntity(typing_extensions.TypedDict, total=False): customFeatures: dict[str, typing.Any] @@ -865,6 +955,7 @@ class Position(typing_extensions.TypedDict, total=False): class PostgreSqlConnectionProfile(typing_extensions.TypedDict, total=False): alloydbClusterId: str cloudSqlId: str + database: str host: str networkArchitecture: typing_extensions.Literal[ "NETWORK_ARCHITECTURE_UNSPECIFIED", @@ -879,6 +970,11 @@ class PostgreSqlConnectionProfile(typing_extensions.TypedDict, total=False): staticIpConnectivity: StaticIpConnectivity username: str +@typing.type_check_only +class PostgresDestinationConfig(typing_extensions.TypedDict, total=False): + maxConcurrentConnections: int + transactionTimeout: str + @typing.type_check_only class PrimaryInstanceSettings(typing_extensions.TypedDict, total=False): databaseFlags: dict[str, typing.Any] @@ -896,6 +992,8 @@ class PrivateConnection(typing_extensions.TypedDict, total=False): error: Status labels: dict[str, typing.Any] name: str + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", @@ -917,10 +1015,13 @@ class PrivateServiceConnectConnectivity(typing_extensions.TypedDict, total=False serviceAttachment: str @typing.type_check_only -class PromoteMigrationJobRequest(typing_extensions.TypedDict, total=False): ... +class PromoteMigrationJobRequest(typing_extensions.TypedDict, total=False): + objectsFilter: MigrationJobObjectsConfig @typing.type_check_only class RestartMigrationJobRequest(typing_extensions.TypedDict, total=False): + objectsFilter: MigrationJobObjectsConfig + restartFailedObjects: bool skipValidation: bool @typing.type_check_only @@ -1024,6 +1125,22 @@ class SourceNumericFilter(typing_extensions.TypedDict, total=False): sourceMinPrecisionFilter: int sourceMinScaleFilter: int +@typing.type_check_only +class SourceObjectConfig(typing_extensions.TypedDict, total=False): + objectIdentifier: SourceObjectIdentifier + +@typing.type_check_only +class SourceObjectIdentifier(typing_extensions.TypedDict, total=False): + database: str + type: typing_extensions.Literal["MIGRATION_JOB_OBJECT_TYPE_UNSPECIFIED", "DATABASE"] + +@typing.type_check_only +class SourceObjectsConfig(typing_extensions.TypedDict, total=False): + objectConfigs: _list[SourceObjectConfig] + objectsSelectionType: typing_extensions.Literal[ + "OBJECTS_SELECTION_TYPE_UNSPECIFIED", "ALL_OBJECTS", "SPECIFIED_OBJECTS" + ] + @typing.type_check_only class SourceSqlChange(typing_extensions.TypedDict, total=False): sqlCode: str @@ -1096,7 +1213,7 @@ class SslConfig(typing_extensions.TypedDict, total=False): clientCertificate: str clientKey: str type: typing_extensions.Literal[ - "SSL_TYPE_UNSPECIFIED", "SERVER_ONLY", "SERVER_CLIENT" + "SSL_TYPE_UNSPECIFIED", "SERVER_ONLY", "SERVER_CLIENT", "REQUIRED", "NONE" ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi b/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi index 5cbfca04..75bb98e1 100644 --- a/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi @@ -260,7 +260,7 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( - self, *, name: str, **kwargs: typing.Any + self, *, name: str, force: bool = ..., **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... def generateDataQualityRules( self, @@ -1445,6 +1445,7 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): parent: str, body: GoogleCloudDataplexV1MetadataJob = ..., metadataJobId: str = ..., + validateOnly: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def get( diff --git a/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi b/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi index 874c2334..de5b0b4d 100644 --- a/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi @@ -97,6 +97,7 @@ class GoogleCloudDataplexV1Aspect(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleCloudDataplexV1AspectSource(typing_extensions.TypedDict, total=False): createTime: str + dataVersion: str updateTime: str @typing.type_check_only @@ -335,6 +336,60 @@ class GoogleCloudDataplexV1DataAttributeBindingPath( attributes: _list[str] name: str +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoveryResult( + typing_extensions.TypedDict, total=False +): + bigqueryPublishing: GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoveryResultBigQueryPublishing( + typing_extensions.TypedDict, total=False +): + dataset: str + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoverySpec(typing_extensions.TypedDict, total=False): + bigqueryPublishingConfig: ( + GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig + ) + storageConfig: GoogleCloudDataplexV1DataDiscoverySpecStorageConfig + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoverySpecBigQueryPublishingConfig( + typing_extensions.TypedDict, total=False +): + connection: str + tableType: typing_extensions.Literal[ + "TABLE_TYPE_UNSPECIFIED", "EXTERNAL", "BIGLAKE" + ] + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoverySpecStorageConfig( + typing_extensions.TypedDict, total=False +): + csvOptions: GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions + excludePatterns: _list[str] + includePatterns: _list[str] + jsonOptions: GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoverySpecStorageConfigCsvOptions( + typing_extensions.TypedDict, total=False +): + delimiter: str + encoding: str + headerRows: int + quote: str + typeInferenceDisabled: bool + +@typing.type_check_only +class GoogleCloudDataplexV1DataDiscoverySpecStorageConfigJsonOptions( + typing_extensions.TypedDict, total=False +): + encoding: str + typeInferenceDisabled: bool + @typing.type_check_only class GoogleCloudDataplexV1DataProfileResult(typing_extensions.TypedDict, total=False): postScanActionsResult: GoogleCloudDataplexV1DataProfileResultPostScanActionsResult @@ -691,6 +746,8 @@ class GoogleCloudDataplexV1DataQualitySpecPostScanActionsScoreThresholdTrigger( class GoogleCloudDataplexV1DataScan(typing_extensions.TypedDict, total=False): createTime: str data: GoogleCloudDataplexV1DataSource + dataDiscoveryResult: GoogleCloudDataplexV1DataDiscoveryResult + dataDiscoverySpec: GoogleCloudDataplexV1DataDiscoverySpec dataProfileResult: GoogleCloudDataplexV1DataProfileResult dataProfileSpec: GoogleCloudDataplexV1DataProfileSpec dataQualityResult: GoogleCloudDataplexV1DataQualityResult @@ -705,7 +762,7 @@ class GoogleCloudDataplexV1DataScan(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "ACTIVE", "CREATING", "DELETING", "ACTION_REQUIRED" ] type: typing_extensions.Literal[ - "DATA_SCAN_TYPE_UNSPECIFIED", "DATA_QUALITY", "DATA_PROFILE" + "DATA_SCAN_TYPE_UNSPECIFIED", "DATA_QUALITY", "DATA_PROFILE", "DATA_DISCOVERY" ] uid: str updateTime: str @@ -730,7 +787,7 @@ class GoogleCloudDataplexV1DataScanEvent(typing_extensions.TypedDict, total=Fals ] trigger: typing_extensions.Literal["TRIGGER_UNSPECIFIED", "ON_DEMAND", "SCHEDULE"] type: typing_extensions.Literal[ - "SCAN_TYPE_UNSPECIFIED", "DATA_PROFILE", "DATA_QUALITY" + "SCAN_TYPE_UNSPECIFIED", "DATA_PROFILE", "DATA_QUALITY", "DATA_DISCOVERY" ] @typing.type_check_only @@ -800,6 +857,8 @@ class GoogleCloudDataplexV1DataScanExecutionStatus( @typing.type_check_only class GoogleCloudDataplexV1DataScanJob(typing_extensions.TypedDict, total=False): createTime: str + dataDiscoveryResult: GoogleCloudDataplexV1DataDiscoveryResult + dataDiscoverySpec: GoogleCloudDataplexV1DataDiscoverySpec dataProfileResult: GoogleCloudDataplexV1DataProfileResult dataProfileSpec: GoogleCloudDataplexV1DataProfileSpec dataQualityResult: GoogleCloudDataplexV1DataQualityResult @@ -818,7 +877,7 @@ class GoogleCloudDataplexV1DataScanJob(typing_extensions.TypedDict, total=False) "PENDING", ] type: typing_extensions.Literal[ - "DATA_SCAN_TYPE_UNSPECIFIED", "DATA_QUALITY", "DATA_PROFILE" + "DATA_SCAN_TYPE_UNSPECIFIED", "DATA_QUALITY", "DATA_PROFILE", "DATA_DISCOVERY" ] uid: str @@ -861,6 +920,10 @@ class GoogleCloudDataplexV1DiscoveryEvent(typing_extensions.TypedDict, total=Fal "PARTITION_CREATED", "PARTITION_UPDATED", "PARTITION_DELETED", + "TABLE_PUBLISHED", + "TABLE_UPDATED", + "TABLE_IGNORED", + "TABLE_DELETED", ] zoneId: str @@ -868,6 +931,7 @@ class GoogleCloudDataplexV1DiscoveryEvent(typing_extensions.TypedDict, total=Fal class GoogleCloudDataplexV1DiscoveryEventActionDetails( typing_extensions.TypedDict, total=False ): + issue: str type: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dataproc/v1/resources.pyi b/googleapiclient-stubs/_apis/dataproc/v1/resources.pyi index 6792c205..e51503e7 100644 --- a/googleapiclient-stubs/_apis/dataproc/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/dataproc/v1/resources.pyi @@ -76,6 +76,256 @@ class DataprocResource(googleapiclient.discovery.Resource): @typing.type_check_only class BatchesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SparkApplicationsResource(googleapiclient.discovery.Resource): + def access( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> AccessSparkApplicationResponseHttpRequest: ... + def accessEnvironmentInfo( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> AccessSparkApplicationEnvironmentInfoResponseHttpRequest: ... + def accessJob( + self, + *, + name: str, + jobId: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> AccessSparkApplicationJobResponseHttpRequest: ... + def accessSqlPlan( + self, + *, + name: str, + executionId: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> AccessSparkApplicationSqlSparkPlanGraphResponseHttpRequest: ... + def accessSqlQuery( + self, + *, + name: str, + details: bool = ..., + executionId: str = ..., + parent: str = ..., + planDescription: bool = ..., + **kwargs: typing.Any, + ) -> AccessSparkApplicationSqlQueryResponseHttpRequest: ... + def accessStageAttempt( + self, + *, + name: str, + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> AccessSparkApplicationStageAttemptResponseHttpRequest: ... + def accessStageRddGraph( + self, + *, + name: str, + parent: str = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> ( + AccessSparkApplicationStageRddOperationGraphResponseHttpRequest + ): ... + def search( + self, + *, + parent: str, + applicationStatus: typing_extensions.Literal[ + "APPLICATION_STATUS_UNSPECIFIED", + "APPLICATION_STATUS_RUNNING", + "APPLICATION_STATUS_COMPLETED", + ] = ..., + maxEndTime: str = ..., + maxTime: str = ..., + minEndTime: str = ..., + minTime: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationsResponseHttpRequest: ... + def search_next( + self, + previous_request: SearchSparkApplicationsResponseHttpRequest, + previous_response: SearchSparkApplicationsResponse, + ) -> SearchSparkApplicationsResponseHttpRequest | None: ... + def searchExecutorStageSummary( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> ( + SearchSparkApplicationExecutorStageSummaryResponseHttpRequest + ): ... + def searchExecutorStageSummary_next( + self, + previous_request: SearchSparkApplicationExecutorStageSummaryResponseHttpRequest, + previous_response: SearchSparkApplicationExecutorStageSummaryResponse, + ) -> ( + SearchSparkApplicationExecutorStageSummaryResponseHttpRequest + | None + ): ... + def searchExecutors( + self, + *, + name: str, + executorStatus: typing_extensions.Literal[ + "EXECUTOR_STATUS_UNSPECIFIED", + "EXECUTOR_STATUS_ACTIVE", + "EXECUTOR_STATUS_DEAD", + ] = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationExecutorsResponseHttpRequest: ... + def searchExecutors_next( + self, + previous_request: SearchSparkApplicationExecutorsResponseHttpRequest, + previous_response: SearchSparkApplicationExecutorsResponse, + ) -> SearchSparkApplicationExecutorsResponseHttpRequest | None: ... + def searchJobs( + self, + *, + name: str, + jobStatus: typing_extensions.Literal[ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN", + ] = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationJobsResponseHttpRequest: ... + def searchJobs_next( + self, + previous_request: SearchSparkApplicationJobsResponseHttpRequest, + previous_response: SearchSparkApplicationJobsResponse, + ) -> SearchSparkApplicationJobsResponseHttpRequest | None: ... + def searchSqlQueries( + self, + *, + name: str, + details: bool = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + planDescription: bool = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationSqlQueriesResponseHttpRequest: ... + def searchSqlQueries_next( + self, + previous_request: SearchSparkApplicationSqlQueriesResponseHttpRequest, + previous_response: SearchSparkApplicationSqlQueriesResponse, + ) -> SearchSparkApplicationSqlQueriesResponseHttpRequest | None: ... + def searchStageAttemptTasks( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + sortRuntime: bool = ..., + stageAttemptId: int = ..., + stageId: str = ..., + taskStatus: typing_extensions.Literal[ + "TASK_STATUS_UNSPECIFIED", + "TASK_STATUS_RUNNING", + "TASK_STATUS_SUCCESS", + "TASK_STATUS_FAILED", + "TASK_STATUS_KILLED", + "TASK_STATUS_PENDING", + ] = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationStageAttemptTasksResponseHttpRequest: ... + def searchStageAttemptTasks_next( + self, + previous_request: SearchSparkApplicationStageAttemptTasksResponseHttpRequest, + previous_response: SearchSparkApplicationStageAttemptTasksResponse, + ) -> ( + SearchSparkApplicationStageAttemptTasksResponseHttpRequest + | None + ): ... + def searchStageAttempts( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageId: str = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationStageAttemptsResponseHttpRequest: ... + def searchStageAttempts_next( + self, + previous_request: SearchSparkApplicationStageAttemptsResponseHttpRequest, + previous_response: SearchSparkApplicationStageAttemptsResponse, + ) -> ( + SearchSparkApplicationStageAttemptsResponseHttpRequest | None + ): ... + def searchStages( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageStatus: typing_extensions.Literal[ + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED", + ] = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> SearchSparkApplicationStagesResponseHttpRequest: ... + def searchStages_next( + self, + previous_request: SearchSparkApplicationStagesResponseHttpRequest, + previous_response: SearchSparkApplicationStagesResponse, + ) -> SearchSparkApplicationStagesResponseHttpRequest | None: ... + def summarizeExecutors( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> SummarizeSparkApplicationExecutorsResponseHttpRequest: ... + def summarizeJobs( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> SummarizeSparkApplicationJobsResponseHttpRequest: ... + def summarizeStageAttemptTasks( + self, + *, + name: str, + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> ( + SummarizeSparkApplicationStageAttemptTasksResponseHttpRequest + ): ... + def summarizeStages( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> SummarizeSparkApplicationStagesResponseHttpRequest: ... + def write( + self, + *, + name: str, + body: WriteSparkApplicationContextRequest = ..., + **kwargs: typing.Any, + ) -> WriteSparkApplicationContextResponseHttpRequest: ... + def analyze( self, *, @@ -113,6 +363,7 @@ class DataprocResource(googleapiclient.discovery.Resource): previous_request: ListBatchesResponseHttpRequest, previous_response: ListBatchesResponse, ) -> ListBatchesResponseHttpRequest | None: ... + def sparkApplications(self) -> SparkApplicationsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -179,6 +430,268 @@ class DataprocResource(googleapiclient.discovery.Resource): @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SparkApplicationsResource(googleapiclient.discovery.Resource): + def access( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> AccessSessionSparkApplicationResponseHttpRequest: ... + def accessEnvironmentInfo( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> ( + AccessSessionSparkApplicationEnvironmentInfoResponseHttpRequest + ): ... + def accessJob( + self, + *, + name: str, + jobId: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> AccessSessionSparkApplicationJobResponseHttpRequest: ... + def accessSqlPlan( + self, + *, + name: str, + executionId: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> AccessSessionSparkApplicationSqlSparkPlanGraphResponseHttpRequest: ... + def accessSqlQuery( + self, + *, + name: str, + details: bool = ..., + executionId: str = ..., + parent: str = ..., + planDescription: bool = ..., + **kwargs: typing.Any, + ) -> AccessSessionSparkApplicationSqlQueryResponseHttpRequest: ... + def accessStageAttempt( + self, + *, + name: str, + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> ( + AccessSessionSparkApplicationStageAttemptResponseHttpRequest + ): ... + def accessStageRddGraph( + self, + *, + name: str, + parent: str = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> AccessSessionSparkApplicationStageRddOperationGraphResponseHttpRequest: ... + def search( + self, + *, + parent: str, + applicationStatus: typing_extensions.Literal[ + "APPLICATION_STATUS_UNSPECIFIED", + "APPLICATION_STATUS_RUNNING", + "APPLICATION_STATUS_COMPLETED", + ] = ..., + maxEndTime: str = ..., + maxTime: str = ..., + minEndTime: str = ..., + minTime: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationsResponseHttpRequest: ... + def search_next( + self, + previous_request: SearchSessionSparkApplicationsResponseHttpRequest, + previous_response: SearchSessionSparkApplicationsResponse, + ) -> SearchSessionSparkApplicationsResponseHttpRequest | None: ... + def searchExecutorStageSummary( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationExecutorStageSummaryResponseHttpRequest: ... + def searchExecutorStageSummary_next( + self, + previous_request: SearchSessionSparkApplicationExecutorStageSummaryResponseHttpRequest, + previous_response: SearchSessionSparkApplicationExecutorStageSummaryResponse, + ) -> ( + SearchSessionSparkApplicationExecutorStageSummaryResponseHttpRequest + | None + ): ... + def searchExecutors( + self, + *, + name: str, + executorStatus: typing_extensions.Literal[ + "EXECUTOR_STATUS_UNSPECIFIED", + "EXECUTOR_STATUS_ACTIVE", + "EXECUTOR_STATUS_DEAD", + ] = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationExecutorsResponseHttpRequest: ... + def searchExecutors_next( + self, + previous_request: SearchSessionSparkApplicationExecutorsResponseHttpRequest, + previous_response: SearchSessionSparkApplicationExecutorsResponse, + ) -> ( + SearchSessionSparkApplicationExecutorsResponseHttpRequest | None + ): ... + def searchJobs( + self, + *, + name: str, + jobStatus: typing_extensions.Literal[ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN", + ] = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationJobsResponseHttpRequest: ... + def searchJobs_next( + self, + previous_request: SearchSessionSparkApplicationJobsResponseHttpRequest, + previous_response: SearchSessionSparkApplicationJobsResponse, + ) -> ( + SearchSessionSparkApplicationJobsResponseHttpRequest | None + ): ... + def searchSqlQueries( + self, + *, + name: str, + details: bool = ..., + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + planDescription: bool = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationSqlQueriesResponseHttpRequest: ... + def searchSqlQueries_next( + self, + previous_request: SearchSessionSparkApplicationSqlQueriesResponseHttpRequest, + previous_response: SearchSessionSparkApplicationSqlQueriesResponse, + ) -> ( + SearchSessionSparkApplicationSqlQueriesResponseHttpRequest + | None + ): ... + def searchStageAttemptTasks( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + sortRuntime: bool = ..., + stageAttemptId: int = ..., + stageId: str = ..., + taskStatus: typing_extensions.Literal[ + "TASK_STATUS_UNSPECIFIED", + "TASK_STATUS_RUNNING", + "TASK_STATUS_SUCCESS", + "TASK_STATUS_FAILED", + "TASK_STATUS_KILLED", + "TASK_STATUS_PENDING", + ] = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationStageAttemptTasksResponseHttpRequest: ... + def searchStageAttemptTasks_next( + self, + previous_request: SearchSessionSparkApplicationStageAttemptTasksResponseHttpRequest, + previous_response: SearchSessionSparkApplicationStageAttemptTasksResponse, + ) -> ( + SearchSessionSparkApplicationStageAttemptTasksResponseHttpRequest + | None + ): ... + def searchStageAttempts( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageId: str = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> ( + SearchSessionSparkApplicationStageAttemptsResponseHttpRequest + ): ... + def searchStageAttempts_next( + self, + previous_request: SearchSessionSparkApplicationStageAttemptsResponseHttpRequest, + previous_response: SearchSessionSparkApplicationStageAttemptsResponse, + ) -> ( + SearchSessionSparkApplicationStageAttemptsResponseHttpRequest + | None + ): ... + def searchStages( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + parent: str = ..., + stageStatus: typing_extensions.Literal[ + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED", + ] = ..., + summaryMetricsMask: str = ..., + **kwargs: typing.Any, + ) -> SearchSessionSparkApplicationStagesResponseHttpRequest: ... + def searchStages_next( + self, + previous_request: SearchSessionSparkApplicationStagesResponseHttpRequest, + previous_response: SearchSessionSparkApplicationStagesResponse, + ) -> ( + SearchSessionSparkApplicationStagesResponseHttpRequest | None + ): ... + def summarizeExecutors( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> ( + SummarizeSessionSparkApplicationExecutorsResponseHttpRequest + ): ... + def summarizeJobs( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> SummarizeSessionSparkApplicationJobsResponseHttpRequest: ... + def summarizeStageAttemptTasks( + self, + *, + name: str, + parent: str = ..., + stageAttemptId: int = ..., + stageId: str = ..., + **kwargs: typing.Any, + ) -> SummarizeSessionSparkApplicationStageAttemptTasksResponseHttpRequest: ... + def summarizeStages( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> SummarizeSessionSparkApplicationStagesResponseHttpRequest: ... + def write( + self, + *, + name: str, + body: WriteSessionSparkApplicationContextRequest = ..., + **kwargs: typing.Any, + ) -> WriteSessionSparkApplicationContextResponseHttpRequest: ... + def create( self, *, @@ -215,6 +728,7 @@ class DataprocResource(googleapiclient.discovery.Resource): body: TerminateSessionRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def sparkApplications(self) -> SparkApplicationsResource: ... @typing.type_check_only class WorkflowTemplatesResource(googleapiclient.discovery.Resource): @@ -748,6 +1262,142 @@ class DataprocResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class AccessSessionSparkApplicationEnvironmentInfoResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationEnvironmentInfoResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationJobResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationJobResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationSqlQueryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationSqlQueryResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationSqlSparkPlanGraphResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationSqlSparkPlanGraphResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationStageAttemptResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationStageAttemptResponse: ... + +@typing.type_check_only +class AccessSessionSparkApplicationStageRddOperationGraphResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSessionSparkApplicationStageRddOperationGraphResponse: ... + +@typing.type_check_only +class AccessSparkApplicationEnvironmentInfoResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationEnvironmentInfoResponse: ... + +@typing.type_check_only +class AccessSparkApplicationJobResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationJobResponse: ... + +@typing.type_check_only +class AccessSparkApplicationResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationResponse: ... + +@typing.type_check_only +class AccessSparkApplicationSqlQueryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationSqlQueryResponse: ... + +@typing.type_check_only +class AccessSparkApplicationSqlSparkPlanGraphResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationSqlSparkPlanGraphResponse: ... + +@typing.type_check_only +class AccessSparkApplicationStageAttemptResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationStageAttemptResponse: ... + +@typing.type_check_only +class AccessSparkApplicationStageRddOperationGraphResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessSparkApplicationStageRddOperationGraphResponse: ... + @typing.type_check_only class AutoscalingPolicyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -876,6 +1526,160 @@ class PolicyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Policy: ... +@typing.type_check_only +class SearchSessionSparkApplicationExecutorStageSummaryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationExecutorStageSummaryResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationExecutorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationExecutorsResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationJobsResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationSqlQueriesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationSqlQueriesResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationStageAttemptTasksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationStageAttemptTasksResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationStageAttemptsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationStageAttemptsResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationStagesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationStagesResponse: ... + +@typing.type_check_only +class SearchSessionSparkApplicationsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSessionSparkApplicationsResponse: ... + +@typing.type_check_only +class SearchSparkApplicationExecutorStageSummaryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationExecutorStageSummaryResponse: ... + +@typing.type_check_only +class SearchSparkApplicationExecutorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationExecutorsResponse: ... + +@typing.type_check_only +class SearchSparkApplicationJobsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationJobsResponse: ... + +@typing.type_check_only +class SearchSparkApplicationSqlQueriesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationSqlQueriesResponse: ... + +@typing.type_check_only +class SearchSparkApplicationStageAttemptTasksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationStageAttemptTasksResponse: ... + +@typing.type_check_only +class SearchSparkApplicationStageAttemptsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationStageAttemptsResponse: ... + +@typing.type_check_only +class SearchSparkApplicationStagesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationStagesResponse: ... + +@typing.type_check_only +class SearchSparkApplicationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchSparkApplicationsResponse: ... + @typing.type_check_only class SessionHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -892,6 +1696,86 @@ class SessionTemplateHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> SessionTemplate: ... +@typing.type_check_only +class SummarizeSessionSparkApplicationExecutorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSessionSparkApplicationExecutorsResponse: ... + +@typing.type_check_only +class SummarizeSessionSparkApplicationJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSessionSparkApplicationJobsResponse: ... + +@typing.type_check_only +class SummarizeSessionSparkApplicationStageAttemptTasksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSessionSparkApplicationStageAttemptTasksResponse: ... + +@typing.type_check_only +class SummarizeSessionSparkApplicationStagesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSessionSparkApplicationStagesResponse: ... + +@typing.type_check_only +class SummarizeSparkApplicationExecutorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSparkApplicationExecutorsResponse: ... + +@typing.type_check_only +class SummarizeSparkApplicationJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSparkApplicationJobsResponse: ... + +@typing.type_check_only +class SummarizeSparkApplicationStageAttemptTasksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSparkApplicationStageAttemptTasksResponse: ... + +@typing.type_check_only +class SummarizeSparkApplicationStagesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SummarizeSparkApplicationStagesResponse: ... + @typing.type_check_only class TestIamPermissionsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -907,3 +1791,21 @@ class WorkflowTemplateHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> WorkflowTemplate: ... + +@typing.type_check_only +class WriteSessionSparkApplicationContextResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WriteSessionSparkApplicationContextResponse: ... + +@typing.type_check_only +class WriteSparkApplicationContextResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WriteSparkApplicationContextResponse: ... diff --git a/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi b/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi index 6463758d..b9c91110 100644 --- a/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi @@ -9,6 +9,89 @@ class AcceleratorConfig(typing_extensions.TypedDict, total=False): acceleratorCount: int acceleratorTypeUri: str +@typing.type_check_only +class AccessSessionSparkApplicationEnvironmentInfoResponse( + typing_extensions.TypedDict, total=False +): + applicationEnvironmentInfo: ApplicationEnvironmentInfo + +@typing.type_check_only +class AccessSessionSparkApplicationJobResponse( + typing_extensions.TypedDict, total=False +): + jobData: JobData + +@typing.type_check_only +class AccessSessionSparkApplicationResponse(typing_extensions.TypedDict, total=False): + application: ApplicationInfo + +@typing.type_check_only +class AccessSessionSparkApplicationSqlQueryResponse( + typing_extensions.TypedDict, total=False +): + executionData: SqlExecutionUiData + +@typing.type_check_only +class AccessSessionSparkApplicationSqlSparkPlanGraphResponse( + typing_extensions.TypedDict, total=False +): + sparkPlanGraph: SparkPlanGraph + +@typing.type_check_only +class AccessSessionSparkApplicationStageAttemptResponse( + typing_extensions.TypedDict, total=False +): + stageData: StageData + +@typing.type_check_only +class AccessSessionSparkApplicationStageRddOperationGraphResponse( + typing_extensions.TypedDict, total=False +): + rddOperationGraph: RddOperationGraph + +@typing.type_check_only +class AccessSparkApplicationEnvironmentInfoResponse( + typing_extensions.TypedDict, total=False +): + applicationEnvironmentInfo: ApplicationEnvironmentInfo + +@typing.type_check_only +class AccessSparkApplicationJobResponse(typing_extensions.TypedDict, total=False): + jobData: JobData + +@typing.type_check_only +class AccessSparkApplicationResponse(typing_extensions.TypedDict, total=False): + application: ApplicationInfo + +@typing.type_check_only +class AccessSparkApplicationSqlQueryResponse(typing_extensions.TypedDict, total=False): + executionData: SqlExecutionUiData + +@typing.type_check_only +class AccessSparkApplicationSqlSparkPlanGraphResponse( + typing_extensions.TypedDict, total=False +): + sparkPlanGraph: SparkPlanGraph + +@typing.type_check_only +class AccessSparkApplicationStageAttemptResponse( + typing_extensions.TypedDict, total=False +): + stageData: StageData + +@typing.type_check_only +class AccessSparkApplicationStageRddOperationGraphResponse( + typing_extensions.TypedDict, total=False +): + rddOperationGraph: RddOperationGraph + +@typing.type_check_only +class AccumulableInfo(typing_extensions.TypedDict, total=False): + accumullableInfoId: str + name: str + update: str + value: str + @typing.type_check_only class AnalyzeBatchRequest(typing_extensions.TypedDict, total=False): requestId: str @@ -26,6 +109,51 @@ class AnalyzeOperationMetadata(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] warnings: _list[str] +@typing.type_check_only +class AppSummary(typing_extensions.TypedDict, total=False): + numCompletedJobs: int + numCompletedStages: int + +@typing.type_check_only +class ApplicationAttemptInfo(typing_extensions.TypedDict, total=False): + appSparkVersion: str + attemptId: str + completed: bool + durationMillis: str + endTime: str + lastUpdated: str + sparkUser: str + startTime: str + +@typing.type_check_only +class ApplicationEnvironmentInfo(typing_extensions.TypedDict, total=False): + classpathEntries: dict[str, typing.Any] + hadoopProperties: dict[str, typing.Any] + metricsProperties: dict[str, typing.Any] + resourceProfiles: _list[ResourceProfileInfo] + runtime: SparkRuntimeInfo + sparkProperties: dict[str, typing.Any] + systemProperties: dict[str, typing.Any] + +@typing.type_check_only +class ApplicationInfo(typing_extensions.TypedDict, total=False): + applicationContextIngestionStatus: typing_extensions.Literal[ + "APPLICATION_CONTEXT_INGESTION_STATUS_UNSPECIFIED", + "APPLICATION_CONTEXT_INGESTION_STATUS_COMPLETED", + ] + applicationId: str + attempts: _list[ApplicationAttemptInfo] + coresGranted: int + coresPerExecutor: int + maxCores: int + memoryPerExecutorMb: int + name: str + quantileDataStatus: typing_extensions.Literal[ + "QUANTILE_DATA_STATUS_UNSPECIFIED", + "QUANTILE_DATA_STATUS_COMPLETED", + "QUANTILE_DATA_STATUS_FAILED", + ] + @typing.type_check_only class AutoscalingConfig(typing_extensions.TypedDict, total=False): policyUri: str @@ -203,14 +331,41 @@ class ClusterStatus(typing_extensions.TypedDict, total=False): "STOPPED", "STARTING", "REPAIRING", + "SCHEDULED", ] stateStartTime: str substate: typing_extensions.Literal["UNSPECIFIED", "UNHEALTHY", "STALE_STATUS"] +@typing.type_check_only +class ClusterToRepair(typing_extensions.TypedDict, total=False): + clusterRepairAction: typing_extensions.Literal[ + "CLUSTER_REPAIR_ACTION_UNSPECIFIED", "REPAIR_ERROR_DUE_TO_UPDATE_CLUSTER" + ] + @typing.type_check_only class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): enableConfidentialCompute: bool +@typing.type_check_only +class ConsolidatedExecutorSummary(typing_extensions.TypedDict, total=False): + activeTasks: int + completedTasks: int + count: int + diskUsed: str + failedTasks: int + isExcluded: int + maxMemory: str + memoryMetrics: MemoryMetrics + memoryUsed: str + rddBlocks: int + totalCores: int + totalDurationMillis: str + totalGcTimeMillis: str + totalInputBytes: str + totalShuffleRead: str + totalShuffleWrite: str + totalTasks: int + @typing.type_check_only class DataprocMetricConfig(typing_extensions.TypedDict, total=False): metrics: _list[Metric] @@ -274,6 +429,95 @@ class ExecutionConfig(typing_extensions.TypedDict, total=False): subnetworkUri: str ttl: str +@typing.type_check_only +class ExecutorMetrics(typing_extensions.TypedDict, total=False): + metrics: dict[str, typing.Any] + +@typing.type_check_only +class ExecutorMetricsDistributions(typing_extensions.TypedDict, total=False): + diskBytesSpilled: _list[float] + failedTasks: _list[float] + inputBytes: _list[float] + inputRecords: _list[float] + killedTasks: _list[float] + memoryBytesSpilled: _list[float] + outputBytes: _list[float] + outputRecords: _list[float] + peakMemoryMetrics: ExecutorPeakMetricsDistributions + quantiles: _list[float] + shuffleRead: _list[float] + shuffleReadRecords: _list[float] + shuffleWrite: _list[float] + shuffleWriteRecords: _list[float] + succeededTasks: _list[float] + taskTimeMillis: _list[float] + +@typing.type_check_only +class ExecutorPeakMetricsDistributions(typing_extensions.TypedDict, total=False): + executorMetrics: _list[ExecutorMetrics] + quantiles: _list[float] + +@typing.type_check_only +class ExecutorResourceRequest(typing_extensions.TypedDict, total=False): + amount: str + discoveryScript: str + resourceName: str + vendor: str + +@typing.type_check_only +class ExecutorStageSummary(typing_extensions.TypedDict, total=False): + diskBytesSpilled: str + executorId: str + failedTasks: int + inputBytes: str + inputRecords: str + isExcludedForStage: bool + killedTasks: int + memoryBytesSpilled: str + outputBytes: str + outputRecords: str + peakMemoryMetrics: ExecutorMetrics + shuffleRead: str + shuffleReadRecords: str + shuffleWrite: str + shuffleWriteRecords: str + stageAttemptId: int + stageId: str + succeededTasks: int + taskTimeMillis: str + +@typing.type_check_only +class ExecutorSummary(typing_extensions.TypedDict, total=False): + activeTasks: int + addTime: str + attributes: dict[str, typing.Any] + completedTasks: int + diskUsed: str + excludedInStages: _list[str] + executorId: str + executorLogs: dict[str, typing.Any] + failedTasks: int + hostPort: str + isActive: bool + isExcluded: bool + maxMemory: str + maxTasks: int + memoryMetrics: MemoryMetrics + memoryUsed: str + peakMemoryMetrics: ExecutorMetrics + rddBlocks: int + removeReason: str + removeTime: str + resourceProfileId: int + resources: dict[str, typing.Any] + totalCores: int + totalDurationMillis: str + totalGcTimeMillis: str + totalInputBytes: str + totalShuffleRead: str + totalShuffleWrite: str + totalTasks: int + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -402,10 +646,21 @@ class InjectCredentialsRequest(typing_extensions.TypedDict, total=False): clusterUuid: str credentialsCiphertext: str +@typing.type_check_only +class InputMetrics(typing_extensions.TypedDict, total=False): + bytesRead: str + recordsRead: str + +@typing.type_check_only +class InputQuantileMetrics(typing_extensions.TypedDict, total=False): + bytesRead: Quantiles + recordsRead: Quantiles + @typing.type_check_only class InstanceFlexibilityPolicy(typing_extensions.TypedDict, total=False): instanceSelectionList: _list[InstanceSelection] instanceSelectionResults: _list[InstanceSelectionResult] + provisioningModelMix: ProvisioningModelMix @typing.type_check_only class InstanceGroupAutoscalingPolicyConfig(typing_extensions.TypedDict, total=False): @@ -485,6 +740,37 @@ class Job(typing_extensions.TypedDict, total=False): trinoJob: TrinoJob yarnApplications: _list[YarnApplication] +@typing.type_check_only +class JobData(typing_extensions.TypedDict, total=False): + completionTime: str + description: str + jobGroup: str + jobId: str + killTasksSummary: dict[str, typing.Any] + name: str + numActiveStages: int + numActiveTasks: int + numCompletedIndices: int + numCompletedStages: int + numCompletedTasks: int + numFailedStages: int + numFailedTasks: int + numKilledTasks: int + numSkippedStages: int + numSkippedTasks: int + numTasks: int + skippedStages: _list[int] + sqlExecutionId: str + stageIds: _list[str] + status: typing_extensions.Literal[ + "JOB_EXECUTION_STATUS_UNSPECIFIED", + "JOB_EXECUTION_STATUS_RUNNING", + "JOB_EXECUTION_STATUS_SUCCEEDED", + "JOB_EXECUTION_STATUS_FAILED", + "JOB_EXECUTION_STATUS_UNKNOWN", + ] + submissionTime: str + @typing.type_check_only class JobMetadata(typing_extensions.TypedDict, total=False): jobId: str @@ -528,6 +814,15 @@ class JobStatus(typing_extensions.TypedDict, total=False): "UNSPECIFIED", "SUBMITTED", "QUEUED", "STALE_STATUS" ] +@typing.type_check_only +class JobsSummary(typing_extensions.TypedDict, total=False): + activeJobs: int + applicationId: str + attempts: _list[ApplicationAttemptInfo] + completedJobs: int + failedJobs: int + schedulingMode: str + @typing.type_check_only class JupyterConfig(typing_extensions.TypedDict, total=False): displayName: str @@ -628,6 +923,13 @@ class ManagedGroupConfig(typing_extensions.TypedDict, total=False): instanceGroupManagerUri: str instanceTemplateName: str +@typing.type_check_only +class MemoryMetrics(typing_extensions.TypedDict, total=False): + totalOffHeapStorageMemory: str + totalOnHeapStorageMemory: str + usedOffHeapStorageMemory: str + usedOnHeapStorageMemory: str + @typing.type_check_only class MetastoreConfig(typing_extensions.TypedDict, total=False): dataprocMetastoreService: str @@ -720,6 +1022,16 @@ class OrderedJob(typing_extensions.TypedDict, total=False): stepId: str trinoJob: TrinoJob +@typing.type_check_only +class OutputMetrics(typing_extensions.TypedDict, total=False): + bytesWritten: str + recordsWritten: str + +@typing.type_check_only +class OutputQuantileMetrics(typing_extensions.TypedDict, total=False): + bytesWritten: Quantiles + recordsWritten: Quantiles + @typing.type_check_only class ParameterValidation(typing_extensions.TypedDict, total=False): regex: RegexValidation @@ -746,6 +1058,11 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class PoolData(typing_extensions.TypedDict, total=False): + name: str + stageIds: _list[str] + @typing.type_check_only class PrestoJob(typing_extensions.TypedDict, total=False): clientTags: _list[str] @@ -756,6 +1073,21 @@ class PrestoJob(typing_extensions.TypedDict, total=False): queryFileUri: str queryList: QueryList +@typing.type_check_only +class ProcessSummary(typing_extensions.TypedDict, total=False): + addTime: str + hostPort: str + isActive: bool + processId: str + processLogs: dict[str, typing.Any] + removeTime: str + totalCores: int + +@typing.type_check_only +class ProvisioningModelMix(typing_extensions.TypedDict, total=False): + standardCapacityBase: int + standardCapacityPercentAboveBase: int + @typing.type_check_only class PyPiRepositoryConfig(typing_extensions.TypedDict, total=False): pypiRepository: str @@ -780,16 +1112,92 @@ class PySparkJob(typing_extensions.TypedDict, total=False): properties: dict[str, typing.Any] pythonFileUris: _list[str] +@typing.type_check_only +class Quantiles(typing_extensions.TypedDict, total=False): + count: str + maximum: str + minimum: str + percentile25: str + percentile50: str + percentile75: str + sum: str + @typing.type_check_only class QueryList(typing_extensions.TypedDict, total=False): queries: _list[str] +@typing.type_check_only +class RddDataDistribution(typing_extensions.TypedDict, total=False): + address: str + diskUsed: str + memoryRemaining: str + memoryUsed: str + offHeapMemoryRemaining: str + offHeapMemoryUsed: str + onHeapMemoryRemaining: str + onHeapMemoryUsed: str + +@typing.type_check_only +class RddOperationCluster(typing_extensions.TypedDict, total=False): + childClusters: _list[RddOperationCluster] + childNodes: _list[RddOperationNode] + name: str + rddClusterId: str + +@typing.type_check_only +class RddOperationEdge(typing_extensions.TypedDict, total=False): + fromId: int + toId: int + +@typing.type_check_only +class RddOperationGraph(typing_extensions.TypedDict, total=False): + edges: _list[RddOperationEdge] + incomingEdges: _list[RddOperationEdge] + outgoingEdges: _list[RddOperationEdge] + rootCluster: RddOperationCluster + stageId: str + +@typing.type_check_only +class RddOperationNode(typing_extensions.TypedDict, total=False): + barrier: bool + cached: bool + callsite: str + name: str + nodeId: int + outputDeterministicLevel: typing_extensions.Literal[ + "DETERMINISTIC_LEVEL_UNSPECIFIED", + "DETERMINISTIC_LEVEL_DETERMINATE", + "DETERMINISTIC_LEVEL_UNORDERED", + "DETERMINISTIC_LEVEL_INDETERMINATE", + ] + +@typing.type_check_only +class RddPartitionInfo(typing_extensions.TypedDict, total=False): + blockName: str + diskUsed: str + executors: _list[str] + memoryUsed: str + storageLevel: str + +@typing.type_check_only +class RddStorageInfo(typing_extensions.TypedDict, total=False): + dataDistribution: _list[RddDataDistribution] + diskUsed: str + memoryUsed: str + name: str + numCachedPartitions: int + numPartitions: int + partitions: _list[RddPartitionInfo] + rddStorageId: int + storageLevel: str + @typing.type_check_only class RegexValidation(typing_extensions.TypedDict, total=False): regexes: _list[str] @typing.type_check_only class RepairClusterRequest(typing_extensions.TypedDict, total=False): + cluster: ClusterToRepair clusterUuid: str gracefulDecommissionTimeout: str nodePools: _list[NodePool] @@ -821,6 +1229,17 @@ class ResizeNodeGroupRequest(typing_extensions.TypedDict, total=False): requestId: str size: int +@typing.type_check_only +class ResourceInformation(typing_extensions.TypedDict, total=False): + addresses: _list[str] + name: str + +@typing.type_check_only +class ResourceProfileInfo(typing_extensions.TypedDict, total=False): + executorResources: dict[str, typing.Any] + resourceProfileId: int + taskResources: dict[str, typing.Any] + @typing.type_check_only class RuntimeConfig(typing_extensions.TypedDict, total=False): autotuningConfig: AutotuningConfig @@ -838,6 +1257,108 @@ class RuntimeInfo(typing_extensions.TypedDict, total=False): endpoints: dict[str, typing.Any] outputUri: str +@typing.type_check_only +class SearchSessionSparkApplicationExecutorStageSummaryResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageExecutors: _list[ExecutorStageSummary] + +@typing.type_check_only +class SearchSessionSparkApplicationExecutorsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationExecutors: _list[ExecutorSummary] + +@typing.type_check_only +class SearchSessionSparkApplicationJobsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationJobs: _list[JobData] + +@typing.type_check_only +class SearchSessionSparkApplicationSqlQueriesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationSqlQueries: _list[SqlExecutionUiData] + +@typing.type_check_only +class SearchSessionSparkApplicationStageAttemptTasksResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageAttemptTasks: _list[TaskData] + +@typing.type_check_only +class SearchSessionSparkApplicationStageAttemptsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageAttempts: _list[StageData] + +@typing.type_check_only +class SearchSessionSparkApplicationStagesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStages: _list[StageData] + +@typing.type_check_only +class SearchSessionSparkApplicationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sparkApplications: _list[SparkApplication] + +@typing.type_check_only +class SearchSparkApplicationExecutorStageSummaryResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageExecutors: _list[ExecutorStageSummary] + +@typing.type_check_only +class SearchSparkApplicationExecutorsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sparkApplicationExecutors: _list[ExecutorSummary] + +@typing.type_check_only +class SearchSparkApplicationJobsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sparkApplicationJobs: _list[JobData] + +@typing.type_check_only +class SearchSparkApplicationSqlQueriesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationSqlQueries: _list[SqlExecutionUiData] + +@typing.type_check_only +class SearchSparkApplicationStageAttemptTasksResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageAttemptTasks: _list[TaskData] + +@typing.type_check_only +class SearchSparkApplicationStageAttemptsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sparkApplicationStageAttempts: _list[StageData] + +@typing.type_check_only +class SearchSparkApplicationStagesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sparkApplicationStages: _list[StageData] + +@typing.type_check_only +class SearchSparkApplicationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sparkApplications: _list[SparkApplication] + @typing.type_check_only class SecurityConfig(typing_extensions.TypedDict, total=False): identityConfig: IdentityConfig @@ -909,6 +1430,73 @@ class ShieldedInstanceConfig(typing_extensions.TypedDict, total=False): enableSecureBoot: bool enableVtpm: bool +@typing.type_check_only +class ShufflePushReadMetrics(typing_extensions.TypedDict, total=False): + corruptMergedBlockChunks: str + localMergedBlocksFetched: str + localMergedBytesRead: str + localMergedChunksFetched: str + mergedFetchFallbackCount: str + remoteMergedBlocksFetched: str + remoteMergedBytesRead: str + remoteMergedChunksFetched: str + remoteMergedReqsDuration: str + +@typing.type_check_only +class ShufflePushReadQuantileMetrics(typing_extensions.TypedDict, total=False): + corruptMergedBlockChunks: Quantiles + localMergedBlocksFetched: Quantiles + localMergedBytesRead: Quantiles + localMergedChunksFetched: Quantiles + mergedFetchFallbackCount: Quantiles + remoteMergedBlocksFetched: Quantiles + remoteMergedBytesRead: Quantiles + remoteMergedChunksFetched: Quantiles + remoteMergedReqsDuration: Quantiles + +@typing.type_check_only +class ShuffleReadMetrics(typing_extensions.TypedDict, total=False): + fetchWaitTimeMillis: str + localBlocksFetched: str + localBytesRead: str + recordsRead: str + remoteBlocksFetched: str + remoteBytesRead: str + remoteBytesReadToDisk: str + remoteReqsDuration: str + shufflePushReadMetrics: ShufflePushReadMetrics + +@typing.type_check_only +class ShuffleReadQuantileMetrics(typing_extensions.TypedDict, total=False): + fetchWaitTimeMillis: Quantiles + localBlocksFetched: Quantiles + readBytes: Quantiles + readRecords: Quantiles + remoteBlocksFetched: Quantiles + remoteBytesRead: Quantiles + remoteBytesReadToDisk: Quantiles + remoteReqsDuration: Quantiles + shufflePushReadMetrics: ShufflePushReadQuantileMetrics + totalBlocksFetched: Quantiles + +@typing.type_check_only +class ShuffleWriteMetrics(typing_extensions.TypedDict, total=False): + bytesWritten: str + recordsWritten: str + writeTimeNanos: str + +@typing.type_check_only +class ShuffleWriteQuantileMetrics(typing_extensions.TypedDict, total=False): + writeBytes: Quantiles + writeRecords: Quantiles + writeTimeNanos: Quantiles + +@typing.type_check_only +class SinkProgress(typing_extensions.TypedDict, total=False): + description: str + metrics: dict[str, typing.Any] + numOutputRows: str + @typing.type_check_only class SoftwareConfig(typing_extensions.TypedDict, total=False): imageVersion: str @@ -933,6 +1521,22 @@ class SoftwareConfig(typing_extensions.TypedDict, total=False): ] properties: dict[str, typing.Any] +@typing.type_check_only +class SourceProgress(typing_extensions.TypedDict, total=False): + description: str + endOffset: str + inputRowsPerSecond: float + latestOffset: str + metrics: dict[str, typing.Any] + numInputRows: str + processedRowsPerSecond: float + startOffset: str + +@typing.type_check_only +class SparkApplication(typing_extensions.TypedDict, total=False): + application: ApplicationInfo + name: str + @typing.type_check_only class SparkBatch(typing_extensions.TypedDict, total=False): archiveUris: _list[str] @@ -960,6 +1564,37 @@ class SparkJob(typing_extensions.TypedDict, total=False): mainJarFileUri: str properties: dict[str, typing.Any] +@typing.type_check_only +class SparkPlanGraph(typing_extensions.TypedDict, total=False): + edges: _list[SparkPlanGraphEdge] + executionId: str + nodes: _list[SparkPlanGraphNodeWrapper] + +@typing.type_check_only +class SparkPlanGraphCluster(typing_extensions.TypedDict, total=False): + desc: str + metrics: _list[SqlPlanMetric] + name: str + nodes: _list[SparkPlanGraphNodeWrapper] + sparkPlanGraphClusterId: str + +@typing.type_check_only +class SparkPlanGraphEdge(typing_extensions.TypedDict, total=False): + fromId: str + toId: str + +@typing.type_check_only +class SparkPlanGraphNode(typing_extensions.TypedDict, total=False): + desc: str + metrics: _list[SqlPlanMetric] + name: str + sparkPlanGraphNodeId: str + +@typing.type_check_only +class SparkPlanGraphNodeWrapper(typing_extensions.TypedDict, total=False): + cluster: SparkPlanGraphCluster + node: SparkPlanGraphNode + @typing.type_check_only class SparkRBatch(typing_extensions.TypedDict, total=False): archiveUris: _list[str] @@ -976,6 +1611,12 @@ class SparkRJob(typing_extensions.TypedDict, total=False): mainRFileUri: str properties: dict[str, typing.Any] +@typing.type_check_only +class SparkRuntimeInfo(typing_extensions.TypedDict, total=False): + javaHome: str + javaVersion: str + scalaVersion: str + @typing.type_check_only class SparkSqlBatch(typing_extensions.TypedDict, total=False): jarFileUris: _list[str] @@ -1000,6 +1641,185 @@ class SparkStandaloneAutoscalingConfig(typing_extensions.TypedDict, total=False) scaleUpFactor: float scaleUpMinWorkerFraction: float +@typing.type_check_only +class SparkWrapperObject(typing_extensions.TypedDict, total=False): + appSummary: AppSummary + applicationEnvironmentInfo: ApplicationEnvironmentInfo + applicationId: str + applicationInfo: ApplicationInfo + eventTimestamp: str + executorStageSummary: ExecutorStageSummary + executorSummary: ExecutorSummary + jobData: JobData + poolData: PoolData + processSummary: ProcessSummary + rddOperationGraph: RddOperationGraph + rddStorageInfo: RddStorageInfo + resourceProfileInfo: ResourceProfileInfo + sparkPlanGraph: SparkPlanGraph + speculationStageSummary: SpeculationStageSummary + sqlExecutionUiData: SqlExecutionUiData + stageData: StageData + streamBlockData: StreamBlockData + streamingQueryData: StreamingQueryData + streamingQueryProgress: StreamingQueryProgress + taskData: TaskData + +@typing.type_check_only +class SpeculationStageSummary(typing_extensions.TypedDict, total=False): + numActiveTasks: int + numCompletedTasks: int + numFailedTasks: int + numKilledTasks: int + numTasks: int + stageAttemptId: int + stageId: str + +@typing.type_check_only +class SqlExecutionUiData(typing_extensions.TypedDict, total=False): + completionTime: str + description: str + details: str + errorMessage: str + executionId: str + jobs: dict[str, typing.Any] + metricValues: dict[str, typing.Any] + metricValuesIsNull: bool + metrics: _list[SqlPlanMetric] + modifiedConfigs: dict[str, typing.Any] + physicalPlanDescription: str + rootExecutionId: str + stages: _list[str] + submissionTime: str + +@typing.type_check_only +class SqlPlanMetric(typing_extensions.TypedDict, total=False): + accumulatorId: str + metricType: str + name: str + +@typing.type_check_only +class StageAttemptTasksSummary(typing_extensions.TypedDict, total=False): + applicationId: str + numFailedTasks: int + numKilledTasks: int + numPendingTasks: int + numRunningTasks: int + numSuccessTasks: int + numTasks: int + stageAttemptId: int + stageId: str + +@typing.type_check_only +class StageData(typing_extensions.TypedDict, total=False): + accumulatorUpdates: _list[AccumulableInfo] + completionTime: str + description: str + details: str + executorMetricsDistributions: ExecutorMetricsDistributions + executorSummary: dict[str, typing.Any] + failureReason: str + firstTaskLaunchedTime: str + isShufflePushEnabled: bool + jobIds: _list[str] + killedTasksSummary: dict[str, typing.Any] + locality: dict[str, typing.Any] + name: str + numActiveTasks: int + numCompleteTasks: int + numCompletedIndices: int + numFailedTasks: int + numKilledTasks: int + numTasks: int + parentStageIds: _list[str] + peakExecutorMetrics: ExecutorMetrics + rddIds: _list[str] + resourceProfileId: int + schedulingPool: str + shuffleMergersCount: int + speculationSummary: SpeculationStageSummary + stageAttemptId: int + stageId: str + stageMetrics: StageMetrics + status: typing_extensions.Literal[ + "STAGE_STATUS_UNSPECIFIED", + "STAGE_STATUS_ACTIVE", + "STAGE_STATUS_COMPLETE", + "STAGE_STATUS_FAILED", + "STAGE_STATUS_PENDING", + "STAGE_STATUS_SKIPPED", + ] + submissionTime: str + taskQuantileMetrics: TaskQuantileMetrics + tasks: dict[str, typing.Any] + +@typing.type_check_only +class StageInputMetrics(typing_extensions.TypedDict, total=False): + bytesRead: str + recordsRead: str + +@typing.type_check_only +class StageMetrics(typing_extensions.TypedDict, total=False): + diskBytesSpilled: str + executorCpuTimeNanos: str + executorDeserializeCpuTimeNanos: str + executorDeserializeTimeMillis: str + executorRunTimeMillis: str + jvmGcTimeMillis: str + memoryBytesSpilled: str + peakExecutionMemoryBytes: str + resultSerializationTimeMillis: str + resultSize: str + stageInputMetrics: StageInputMetrics + stageOutputMetrics: StageOutputMetrics + stageShuffleReadMetrics: StageShuffleReadMetrics + stageShuffleWriteMetrics: StageShuffleWriteMetrics + +@typing.type_check_only +class StageOutputMetrics(typing_extensions.TypedDict, total=False): + bytesWritten: str + recordsWritten: str + +@typing.type_check_only +class StageShufflePushReadMetrics(typing_extensions.TypedDict, total=False): + corruptMergedBlockChunks: str + localMergedBlocksFetched: str + localMergedBytesRead: str + localMergedChunksFetched: str + mergedFetchFallbackCount: str + remoteMergedBlocksFetched: str + remoteMergedBytesRead: str + remoteMergedChunksFetched: str + remoteMergedReqsDuration: str + +@typing.type_check_only +class StageShuffleReadMetrics(typing_extensions.TypedDict, total=False): + bytesRead: str + fetchWaitTimeMillis: str + localBlocksFetched: str + localBytesRead: str + recordsRead: str + remoteBlocksFetched: str + remoteBytesRead: str + remoteBytesReadToDisk: str + remoteReqsDuration: str + stageShufflePushReadMetrics: StageShufflePushReadMetrics + +@typing.type_check_only +class StageShuffleWriteMetrics(typing_extensions.TypedDict, total=False): + bytesWritten: str + recordsWritten: str + writeTimeNanos: str + +@typing.type_check_only +class StagesSummary(typing_extensions.TypedDict, total=False): + applicationId: str + numActiveStages: int + numCompletedStages: int + numFailedStages: int + numPendingStages: int + numSkippedStages: int + @typing.type_check_only class StartClusterRequest(typing_extensions.TypedDict, total=False): clusterUuid: str @@ -1023,6 +1843,21 @@ class StateHistory(typing_extensions.TypedDict, total=False): stateMessage: str stateStartTime: str +@typing.type_check_only +class StateOperatorProgress(typing_extensions.TypedDict, total=False): + allRemovalsTimeMs: str + allUpdatesTimeMs: str + commitTimeMs: str + customMetrics: dict[str, typing.Any] + memoryUsedBytes: str + numRowsDroppedByWatermark: str + numRowsRemoved: str + numRowsTotal: str + numRowsUpdated: str + numShufflePartitions: str + numStateStoreInstances: str + operatorName: str + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -1034,11 +1869,164 @@ class StopClusterRequest(typing_extensions.TypedDict, total=False): clusterUuid: str requestId: str +@typing.type_check_only +class StreamBlockData(typing_extensions.TypedDict, total=False): + deserialized: bool + diskSize: str + executorId: str + hostPort: str + memSize: str + name: str + storageLevel: str + useDisk: bool + useMemory: bool + +@typing.type_check_only +class StreamingQueryData(typing_extensions.TypedDict, total=False): + endTimestamp: str + exception: str + isActive: bool + name: str + runId: str + startTimestamp: str + streamingQueryId: str + +@typing.type_check_only +class StreamingQueryProgress(typing_extensions.TypedDict, total=False): + batchDuration: str + batchId: str + durationMillis: dict[str, typing.Any] + eventTime: dict[str, typing.Any] + name: str + observedMetrics: dict[str, typing.Any] + runId: str + sink: SinkProgress + sources: _list[SourceProgress] + stateOperators: _list[StateOperatorProgress] + streamingQueryProgressId: str + timestamp: str + @typing.type_check_only class SubmitJobRequest(typing_extensions.TypedDict, total=False): job: Job requestId: str +@typing.type_check_only +class SummarizeSessionSparkApplicationExecutorsResponse( + typing_extensions.TypedDict, total=False +): + activeExecutorSummary: ConsolidatedExecutorSummary + applicationId: str + deadExecutorSummary: ConsolidatedExecutorSummary + totalExecutorSummary: ConsolidatedExecutorSummary + +@typing.type_check_only +class SummarizeSessionSparkApplicationJobsResponse( + typing_extensions.TypedDict, total=False +): + jobsSummary: JobsSummary + +@typing.type_check_only +class SummarizeSessionSparkApplicationStageAttemptTasksResponse( + typing_extensions.TypedDict, total=False +): + stageAttemptTasksSummary: StageAttemptTasksSummary + +@typing.type_check_only +class SummarizeSessionSparkApplicationStagesResponse( + typing_extensions.TypedDict, total=False +): + stagesSummary: StagesSummary + +@typing.type_check_only +class SummarizeSparkApplicationExecutorsResponse( + typing_extensions.TypedDict, total=False +): + activeExecutorSummary: ConsolidatedExecutorSummary + applicationId: str + deadExecutorSummary: ConsolidatedExecutorSummary + totalExecutorSummary: ConsolidatedExecutorSummary + +@typing.type_check_only +class SummarizeSparkApplicationJobsResponse(typing_extensions.TypedDict, total=False): + jobsSummary: JobsSummary + +@typing.type_check_only +class SummarizeSparkApplicationStageAttemptTasksResponse( + typing_extensions.TypedDict, total=False +): + stageAttemptTasksSummary: StageAttemptTasksSummary + +@typing.type_check_only +class SummarizeSparkApplicationStagesResponse(typing_extensions.TypedDict, total=False): + stagesSummary: StagesSummary + +@typing.type_check_only +class TaskData(typing_extensions.TypedDict, total=False): + accumulatorUpdates: _list[AccumulableInfo] + attempt: int + durationMillis: str + errorMessage: str + executorId: str + executorLogs: dict[str, typing.Any] + gettingResultTimeMillis: str + hasMetrics: bool + host: str + index: int + launchTime: str + partitionId: int + resultFetchStart: str + schedulerDelayMillis: str + speculative: bool + stageAttemptId: int + stageId: str + status: str + taskId: str + taskLocality: str + taskMetrics: TaskMetrics + +@typing.type_check_only +class TaskMetrics(typing_extensions.TypedDict, total=False): + diskBytesSpilled: str + executorCpuTimeNanos: str + executorDeserializeCpuTimeNanos: str + executorDeserializeTimeMillis: str + executorRunTimeMillis: str + inputMetrics: InputMetrics + jvmGcTimeMillis: str + memoryBytesSpilled: str + outputMetrics: OutputMetrics + peakExecutionMemoryBytes: str + resultSerializationTimeMillis: str + resultSize: str + shuffleReadMetrics: ShuffleReadMetrics + shuffleWriteMetrics: ShuffleWriteMetrics + +@typing.type_check_only +class TaskQuantileMetrics(typing_extensions.TypedDict, total=False): + diskBytesSpilled: Quantiles + durationMillis: Quantiles + executorCpuTimeNanos: Quantiles + executorDeserializeCpuTimeNanos: Quantiles + executorDeserializeTimeMillis: Quantiles + executorRunTimeMillis: Quantiles + gettingResultTimeMillis: Quantiles + inputMetrics: InputQuantileMetrics + jvmGcTimeMillis: Quantiles + memoryBytesSpilled: Quantiles + outputMetrics: OutputQuantileMetrics + peakExecutionMemoryBytes: Quantiles + resultSerializationTimeMillis: Quantiles + resultSize: Quantiles + schedulerDelayMillis: Quantiles + shuffleReadMetrics: ShuffleReadQuantileMetrics + shuffleWriteMetrics: ShuffleWriteQuantileMetrics + +@typing.type_check_only +class TaskResourceRequest(typing_extensions.TypedDict, total=False): + amount: float + resourceName: str + @typing.type_check_only class TemplateParameter(typing_extensions.TypedDict, total=False): description: str @@ -1150,6 +2138,28 @@ class WorkflowTemplatePlacement(typing_extensions.TypedDict, total=False): clusterSelector: ClusterSelector managedCluster: ManagedCluster +@typing.type_check_only +class WriteSessionSparkApplicationContextRequest( + typing_extensions.TypedDict, total=False +): + parent: str + sparkWrapperObjects: _list[SparkWrapperObject] + +@typing.type_check_only +class WriteSessionSparkApplicationContextResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class WriteSparkApplicationContextRequest(typing_extensions.TypedDict, total=False): + parent: str + sparkWrapperObjects: _list[SparkWrapperObject] + +@typing.type_check_only +class WriteSparkApplicationContextResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class YarnApplication(typing_extensions.TypedDict, total=False): name: str diff --git a/googleapiclient-stubs/_apis/datastore/v1/schemas.pyi b/googleapiclient-stubs/_apis/datastore/v1/schemas.pyi index a342e76c..74df0f2a 100644 --- a/googleapiclient-stubs/_apis/datastore/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datastore/v1/schemas.pyi @@ -120,6 +120,17 @@ class Filter(typing_extensions.TypedDict, total=False): compositeFilter: CompositeFilter propertyFilter: PropertyFilter +@typing.type_check_only +class FindNearest(typing_extensions.TypedDict, total=False): + distanceMeasure: typing_extensions.Literal[ + "DISTANCE_MEASURE_UNSPECIFIED", "EUCLIDEAN", "COSINE", "DOT_PRODUCT" + ] + distanceResultProperty: str + distanceThreshold: float + limit: int + queryVector: Value + vectorProperty: PropertyReference + @typing.type_check_only class GoogleDatastoreAdminV1CommonMetadata(typing_extensions.TypedDict, total=False): endTime: str @@ -409,9 +420,13 @@ class LookupResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Mutation(typing_extensions.TypedDict, total=False): baseVersion: str + conflictResolutionStrategy: typing_extensions.Literal[ + "STRATEGY_UNSPECIFIED", "SERVER_VALUE", "FAIL" + ] delete: Key insert: Entity propertyMask: PropertyMask + propertyTransforms: _list[PropertyTransform] update: Entity updateTime: str upsert: Entity @@ -421,6 +436,7 @@ class MutationResult(typing_extensions.TypedDict, total=False): conflictDetected: bool createTime: str key: Key + transformResults: _list[Value] updateTime: str version: str @@ -476,11 +492,24 @@ class PropertyOrder(typing_extensions.TypedDict, total=False): class PropertyReference(typing_extensions.TypedDict, total=False): name: str +@typing.type_check_only +class PropertyTransform(typing_extensions.TypedDict, total=False): + appendMissingElements: ArrayValue + increment: Value + maximum: Value + minimum: Value + property: str + removeAllFromArray: ArrayValue + setToServerValue: typing_extensions.Literal[ + "SERVER_VALUE_UNSPECIFIED", "REQUEST_TIME" + ] + @typing.type_check_only class Query(typing_extensions.TypedDict, total=False): distinctOn: _list[PropertyReference] endCursor: str filter: Filter + findNearest: FindNearest kind: _list[KindExpression] limit: int offset: int diff --git a/googleapiclient-stubs/_apis/datastore/v1beta3/schemas.pyi b/googleapiclient-stubs/_apis/datastore/v1beta3/schemas.pyi index 216aad11..dfe437f5 100644 --- a/googleapiclient-stubs/_apis/datastore/v1beta3/schemas.pyi +++ b/googleapiclient-stubs/_apis/datastore/v1beta3/schemas.pyi @@ -113,6 +113,17 @@ class Filter(typing_extensions.TypedDict, total=False): compositeFilter: CompositeFilter propertyFilter: PropertyFilter +@typing.type_check_only +class FindNearest(typing_extensions.TypedDict, total=False): + distanceMeasure: typing_extensions.Literal[ + "DISTANCE_MEASURE_UNSPECIFIED", "EUCLIDEAN", "COSINE", "DOT_PRODUCT" + ] + distanceResultProperty: str + distanceThreshold: float + limit: int + queryVector: Value + vectorProperty: PropertyReference + @typing.type_check_only class GoogleDatastoreAdminV1CommonMetadata(typing_extensions.TypedDict, total=False): endTime: str @@ -344,9 +355,13 @@ class LookupResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Mutation(typing_extensions.TypedDict, total=False): baseVersion: str + conflictResolutionStrategy: typing_extensions.Literal[ + "STRATEGY_UNSPECIFIED", "SERVER_VALUE", "FAIL" + ] delete: Key insert: Entity propertyMask: PropertyMask + propertyTransforms: _list[PropertyTransform] update: Entity updateTime: str upsert: Entity @@ -356,6 +371,7 @@ class MutationResult(typing_extensions.TypedDict, total=False): conflictDetected: bool createTime: str key: Key + transformResults: _list[Value] updateTime: str version: str @@ -410,11 +426,24 @@ class PropertyOrder(typing_extensions.TypedDict, total=False): class PropertyReference(typing_extensions.TypedDict, total=False): name: str +@typing.type_check_only +class PropertyTransform(typing_extensions.TypedDict, total=False): + appendMissingElements: ArrayValue + increment: Value + maximum: Value + minimum: Value + property: str + removeAllFromArray: ArrayValue + setToServerValue: typing_extensions.Literal[ + "SERVER_VALUE_UNSPECIFIED", "REQUEST_TIME" + ] + @typing.type_check_only class Query(typing_extensions.TypedDict, total=False): distinctOn: _list[PropertyReference] endCursor: str filter: Filter + findNearest: FindNearest kind: _list[KindExpression] limit: int offset: int diff --git a/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi b/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi index 239cde2b..c00d6eae 100644 --- a/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi @@ -48,6 +48,14 @@ class BigQueryDestinationConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class BigQueryProfile(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class BinaryLogParser(typing_extensions.TypedDict, total=False): + logFileDirectories: LogFileDirectories + oracleAsmLogFileAccess: OracleAsmLogFileAccess + +@typing.type_check_only +class BinaryLogPosition(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -144,6 +152,9 @@ class GcsProfile(typing_extensions.TypedDict, total=False): bucket: str rootPath: str +@typing.type_check_only +class Gtid(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class JsonFileFormat(typing_extensions.TypedDict, total=False): compression: typing_extensions.Literal[ @@ -200,6 +211,14 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LogFileDirectories(typing_extensions.TypedDict, total=False): + archivedLogDirectory: str + onlineLogDirectory: str + +@typing.type_check_only +class LogMiner(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class LookupStreamObjectRequest(typing_extensions.TypedDict, total=False): sourceObjectIdentifier: SourceObjectIdentifier @@ -251,7 +270,9 @@ class MysqlRdbms(typing_extensions.TypedDict, total=False): @typing.type_check_only class MysqlSourceConfig(typing_extensions.TypedDict, total=False): + binaryLogPosition: BinaryLogPosition excludeObjects: MysqlRdbms + gtid: Gtid includeObjects: MysqlRdbms maxConcurrentBackfillTasks: int maxConcurrentCdcTasks: int @@ -292,6 +313,19 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): validationResult: ValidationResult verb: str +@typing.type_check_only +class OracleAsmConfig(typing_extensions.TypedDict, total=False): + asmService: str + connectionAttributes: dict[str, typing.Any] + hostname: str + oracleSslConfig: OracleSslConfig + password: str + port: int + username: str + +@typing.type_check_only +class OracleAsmLogFileAccess(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class OracleColumn(typing_extensions.TypedDict, total=False): column: str @@ -314,9 +348,11 @@ class OracleProfile(typing_extensions.TypedDict, total=False): connectionAttributes: dict[str, typing.Any] databaseService: str hostname: str + oracleAsmConfig: OracleAsmConfig oracleSslConfig: OracleSslConfig password: str port: int + secretManagerStoredPassword: str username: str @typing.type_check_only @@ -334,9 +370,11 @@ class OracleScnPosition(typing_extensions.TypedDict, total=False): @typing.type_check_only class OracleSourceConfig(typing_extensions.TypedDict, total=False): + binaryLogParser: BinaryLogParser dropLargeObjects: DropLargeObjects excludeObjects: OracleRdbms includeObjects: OracleRdbms + logMiner: LogMiner maxConcurrentBackfillTasks: int maxConcurrentCdcTasks: int streamLargeObjects: StreamLargeObjects @@ -373,6 +411,7 @@ class PostgresqlProfile(typing_extensions.TypedDict, total=False): hostname: str password: str port: int + sslConfig: PostgresqlSslConfig username: str @typing.type_check_only @@ -392,6 +431,11 @@ class PostgresqlSourceConfig(typing_extensions.TypedDict, total=False): publication: str replicationSlot: str +@typing.type_check_only +class PostgresqlSslConfig(typing_extensions.TypedDict, total=False): + serverAndClientVerification: ServerAndClientVerification + serverVerification: ServerVerification + @typing.type_check_only class PostgresqlTable(typing_extensions.TypedDict, total=False): postgresqlColumns: _list[PostgresqlColumn] @@ -434,6 +478,16 @@ class RunStreamRequest(typing_extensions.TypedDict, total=False): cdcStrategy: CdcStrategy force: bool +@typing.type_check_only +class ServerAndClientVerification(typing_extensions.TypedDict, total=False): + caCertificate: str + clientCertificate: str + clientKey: str + +@typing.type_check_only +class ServerVerification(typing_extensions.TypedDict, total=False): + caCertificate: str + @typing.type_check_only class SingleTargetDataset(typing_extensions.TypedDict, total=False): datasetId: str @@ -461,6 +515,7 @@ class SourceObjectIdentifier(typing_extensions.TypedDict, total=False): class SpecificStartPosition(typing_extensions.TypedDict, total=False): mysqlLogPosition: MysqlLogPosition oracleScnPosition: OracleScnPosition + sqlServerLsnPosition: SqlServerLsnPosition @typing.type_check_only class SqlServerChangeTables(typing_extensions.TypedDict, total=False): ... @@ -476,6 +531,10 @@ class SqlServerColumn(typing_extensions.TypedDict, total=False): primaryKey: bool scale: int +@typing.type_check_only +class SqlServerLsnPosition(typing_extensions.TypedDict, total=False): + lsn: str + @typing.type_check_only class SqlServerObjectIdentifier(typing_extensions.TypedDict, total=False): schema: str diff --git a/googleapiclient-stubs/_apis/deploymentmanager/alpha/resources.pyi b/googleapiclient-stubs/_apis/deploymentmanager/alpha/resources.pyi index b9c0f0ed..311611ad 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/alpha/resources.pyi @@ -16,13 +16,28 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class CompositeTypesResource(googleapiclient.discovery.Resource): def delete( - self, *, project: str, compositeType: str, **kwargs: typing.Any + self, + *, + project: str, + compositeType: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, compositeType: str, **kwargs: typing.Any + self, + *, + project: str, + compositeType: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> CompositeTypeHttpRequest: ... def insert( - self, *, project: str, body: CompositeType = ..., **kwargs: typing.Any + self, + *, + project: str, + body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -45,6 +60,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, compositeType: str, body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def update( @@ -53,6 +69,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, compositeType: str, body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -72,16 +89,23 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, deployment: str, deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, deployment: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> DeploymentHttpRequest: ... def getIamPolicy( self, *, project: str, resource: str, + header_bypassBillingFilter: bool = ..., optionsRequestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... @@ -93,6 +117,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): createPolicy: typing_extensions.Literal[ "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -121,6 +146,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -146,6 +172,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, resource: str, body: TestPermissionsRequest = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... def update( @@ -158,6 +185,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -165,7 +193,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ManifestsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, manifest: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + manifest: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ManifestHttpRequest: ... def list( self, @@ -187,7 +221,12 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, operation: str, **kwargs: typing.Any + self, + *, + project: str, + operation: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -208,7 +247,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ResourcesResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, resource: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + resource: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ResourceHttpRequest: ... def list( self, @@ -230,16 +275,37 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class TypeProvidersResource(googleapiclient.discovery.Resource): def delete( - self, *, project: str, typeProvider: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, typeProvider: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> TypeProviderHttpRequest: ... def getType( - self, *, project: str, typeProvider: str, type: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + type: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> TypeInfoHttpRequest: ... def insert( - self, *, project: str, body: TypeProvider = ..., **kwargs: typing.Any + self, + *, + project: str, + body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -278,6 +344,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, typeProvider: str, body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def update( @@ -286,13 +353,19 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, typeProvider: str, body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @typing.type_check_only class TypesResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, type: str, **kwargs: typing.Any + self, + *, + project: str, + type: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> TypeHttpRequest: ... def list( self, diff --git a/googleapiclient-stubs/_apis/deploymentmanager/alpha/schemas.pyi b/googleapiclient-stubs/_apis/deploymentmanager/alpha/schemas.pyi index b281c5fb..59beb416 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/alpha/schemas.pyi @@ -89,6 +89,11 @@ class Credential(typing_extensions.TypedDict, total=False): serviceAccount: ServiceAccount useProjectDefault: bool +@typing.type_check_only +class DebugInfo(typing_extensions.TypedDict, total=False): + detail: str + stackEntries: _list[str] + @typing.type_check_only class Deployment(typing_extensions.TypedDict, total=False): credential: Credential @@ -146,6 +151,12 @@ class Diagnostic(typing_extensions.TypedDict, total=False): field: str level: typing_extensions.Literal["UNKNOWN", "INFORMATION", "WARNING", "ERROR"] +@typing.type_check_only +class ErrorInfo(typing_extensions.TypedDict, total=False): + domain: str + metadatas: dict[str, typing.Any] + reason: str + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -158,6 +169,16 @@ class GlobalSetPolicyRequest(typing_extensions.TypedDict, total=False): bindings: _list[Binding] etag: str policy: Policy + updateMask: str + +@typing.type_check_only +class Help(typing_extensions.TypedDict, total=False): + links: _list[HelpLink] + +@typing.type_check_only +class HelpLink(typing_extensions.TypedDict, total=False): + description: str + url: str @typing.type_check_only class ImportFile(typing_extensions.TypedDict, total=False): @@ -175,6 +196,11 @@ class InputMapping(typing_extensions.TypedDict, total=False): class InstancesBulkInsertOperationMetadata(typing_extensions.TypedDict, total=False): perLocationStatus: dict[str, typing.Any] +@typing.type_check_only +class LocalizedMessage(typing_extensions.TypedDict, total=False): + locale: str + message: str + @typing.type_check_only class Manifest(typing_extensions.TypedDict, total=False): config: ConfigFile @@ -220,6 +246,7 @@ class Operation(typing_extensions.TypedDict, total=False): progress: int region: str selfLink: str + selfLinkWithId: str setCommonInstanceMetadataOperationMetadata: ( SetCommonInstanceMetadataOperationMetadata ) @@ -259,6 +286,17 @@ class PollingOptions(typing_extensions.TypedDict, total=False): pollingLink: str targetLink: str +@typing.type_check_only +class QuotaExceededInfo(typing_extensions.TypedDict, total=False): + dimensions: dict[str, typing.Any] + futureLimit: float + limit: float + limitName: str + metricName: str + rolloutStatus: typing_extensions.Literal[ + "ROLLOUT_STATUS_UNSPECIFIED", "IN_PROGRESS" + ] + @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): accessControl: ResourceAccessControl diff --git a/googleapiclient-stubs/_apis/deploymentmanager/v2/resources.pyi b/googleapiclient-stubs/_apis/deploymentmanager/v2/resources.pyi index ce34543e..b0a72fbf 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/v2/resources.pyi @@ -29,16 +29,23 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, deployment: str, deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, deployment: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> DeploymentHttpRequest: ... def getIamPolicy( self, *, project: str, resource: str, + header_bypassBillingFilter: bool = ..., optionsRequestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... @@ -50,6 +57,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): createPolicy: typing_extensions.Literal[ "CREATE_OR_ACQUIRE", "ACQUIRE" ] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -78,6 +86,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -103,6 +112,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, resource: str, body: TestPermissionsRequest = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... def update( @@ -115,6 +125,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -122,7 +133,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ManifestsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, manifest: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + manifest: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ManifestHttpRequest: ... def list( self, @@ -144,7 +161,12 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, operation: str, **kwargs: typing.Any + self, + *, + project: str, + operation: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -165,7 +187,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ResourcesResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, resource: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + resource: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ResourceHttpRequest: ... def list( self, diff --git a/googleapiclient-stubs/_apis/deploymentmanager/v2/schemas.pyi b/googleapiclient-stubs/_apis/deploymentmanager/v2/schemas.pyi index c1043dac..71896d98 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/v2/schemas.pyi @@ -36,6 +36,11 @@ class BulkInsertOperationStatus(typing_extensions.TypedDict, total=False): class ConfigFile(typing_extensions.TypedDict, total=False): content: str +@typing.type_check_only +class DebugInfo(typing_extensions.TypedDict, total=False): + detail: str + stackEntries: _list[str] + @typing.type_check_only class Deployment(typing_extensions.TypedDict, total=False): description: str @@ -80,6 +85,12 @@ class DeploymentsListResponse(typing_extensions.TypedDict, total=False): class DeploymentsStopRequest(typing_extensions.TypedDict, total=False): fingerprint: str +@typing.type_check_only +class ErrorInfo(typing_extensions.TypedDict, total=False): + domain: str + metadatas: dict[str, typing.Any] + reason: str + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -92,6 +103,16 @@ class GlobalSetPolicyRequest(typing_extensions.TypedDict, total=False): bindings: _list[Binding] etag: str policy: Policy + updateMask: str + +@typing.type_check_only +class Help(typing_extensions.TypedDict, total=False): + links: _list[HelpLink] + +@typing.type_check_only +class HelpLink(typing_extensions.TypedDict, total=False): + description: str + url: str @typing.type_check_only class ImportFile(typing_extensions.TypedDict, total=False): @@ -102,6 +123,11 @@ class ImportFile(typing_extensions.TypedDict, total=False): class InstancesBulkInsertOperationMetadata(typing_extensions.TypedDict, total=False): perLocationStatus: dict[str, typing.Any] +@typing.type_check_only +class LocalizedMessage(typing_extensions.TypedDict, total=False): + locale: str + message: str + @typing.type_check_only class Manifest(typing_extensions.TypedDict, total=False): config: ConfigFile @@ -139,6 +165,7 @@ class Operation(typing_extensions.TypedDict, total=False): progress: int region: str selfLink: str + selfLinkWithId: str setCommonInstanceMetadataOperationMetadata: ( SetCommonInstanceMetadataOperationMetadata ) @@ -163,6 +190,17 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class QuotaExceededInfo(typing_extensions.TypedDict, total=False): + dimensions: dict[str, typing.Any] + futureLimit: float + limit: float + limitName: str + metricName: str + rolloutStatus: typing_extensions.Literal[ + "ROLLOUT_STATUS_UNSPECIFIED", "IN_PROGRESS" + ] + @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): accessControl: ResourceAccessControl diff --git a/googleapiclient-stubs/_apis/deploymentmanager/v2beta/resources.pyi b/googleapiclient-stubs/_apis/deploymentmanager/v2beta/resources.pyi index f8f28e6e..523ee451 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/v2beta/resources.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/v2beta/resources.pyi @@ -16,13 +16,28 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class CompositeTypesResource(googleapiclient.discovery.Resource): def delete( - self, *, project: str, compositeType: str, **kwargs: typing.Any + self, + *, + project: str, + compositeType: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, compositeType: str, **kwargs: typing.Any + self, + *, + project: str, + compositeType: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> CompositeTypeHttpRequest: ... def insert( - self, *, project: str, body: CompositeType = ..., **kwargs: typing.Any + self, + *, + project: str, + body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -45,6 +60,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, compositeType: str, body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def update( @@ -53,6 +69,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, compositeType: str, body: CompositeType = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -72,16 +89,23 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, deployment: str, deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, deployment: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> DeploymentHttpRequest: ... def getIamPolicy( self, *, project: str, resource: str, + header_bypassBillingFilter: bool = ..., optionsRequestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... @@ -93,6 +117,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): createPolicy: typing_extensions.Literal[ "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -121,6 +146,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -146,6 +172,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, resource: str, body: TestPermissionsRequest = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... def update( @@ -158,6 +185,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): "CREATE_OR_ACQUIRE", "ACQUIRE", "CREATE" ] = ..., deletePolicy: typing_extensions.Literal["DELETE", "ABANDON"] = ..., + header_bypassBillingFilter: bool = ..., preview: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... @@ -165,7 +193,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ManifestsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, manifest: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + manifest: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ManifestHttpRequest: ... def list( self, @@ -187,7 +221,12 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, operation: str, **kwargs: typing.Any + self, + *, + project: str, + operation: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -208,7 +247,13 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class ResourcesResource(googleapiclient.discovery.Resource): def get( - self, *, project: str, deployment: str, resource: str, **kwargs: typing.Any + self, + *, + project: str, + deployment: str, + resource: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> ResourceHttpRequest: ... def list( self, @@ -230,16 +275,37 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): @typing.type_check_only class TypeProvidersResource(googleapiclient.discovery.Resource): def delete( - self, *, project: str, typeProvider: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, project: str, typeProvider: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> TypeProviderHttpRequest: ... def getType( - self, *, project: str, typeProvider: str, type: str, **kwargs: typing.Any + self, + *, + project: str, + typeProvider: str, + type: str, + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> TypeInfoHttpRequest: ... def insert( - self, *, project: str, body: TypeProvider = ..., **kwargs: typing.Any + self, + *, + project: str, + body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., + **kwargs: typing.Any, ) -> OperationHttpRequest: ... def list( self, @@ -278,6 +344,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, typeProvider: str, body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... def update( @@ -286,6 +353,7 @@ class DeploymentManagerResource(googleapiclient.discovery.Resource): project: str, typeProvider: str, body: TypeProvider = ..., + header_bypassBillingFilter: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/deploymentmanager/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/deploymentmanager/v2beta/schemas.pyi index 38b860dc..bc067c78 100644 --- a/googleapiclient-stubs/_apis/deploymentmanager/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/deploymentmanager/v2beta/schemas.pyi @@ -88,6 +88,11 @@ class Credential(typing_extensions.TypedDict, total=False): serviceAccount: ServiceAccount useProjectDefault: bool +@typing.type_check_only +class DebugInfo(typing_extensions.TypedDict, total=False): + detail: str + stackEntries: _list[str] + @typing.type_check_only class Deployment(typing_extensions.TypedDict, total=False): description: str @@ -137,6 +142,12 @@ class Diagnostic(typing_extensions.TypedDict, total=False): field: str level: typing_extensions.Literal["UNKNOWN", "INFORMATION", "WARNING", "ERROR"] +@typing.type_check_only +class ErrorInfo(typing_extensions.TypedDict, total=False): + domain: str + metadatas: dict[str, typing.Any] + reason: str + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -149,6 +160,16 @@ class GlobalSetPolicyRequest(typing_extensions.TypedDict, total=False): bindings: _list[Binding] etag: str policy: Policy + updateMask: str + +@typing.type_check_only +class Help(typing_extensions.TypedDict, total=False): + links: _list[HelpLink] + +@typing.type_check_only +class HelpLink(typing_extensions.TypedDict, total=False): + description: str + url: str @typing.type_check_only class ImportFile(typing_extensions.TypedDict, total=False): @@ -166,6 +187,11 @@ class InputMapping(typing_extensions.TypedDict, total=False): class InstancesBulkInsertOperationMetadata(typing_extensions.TypedDict, total=False): perLocationStatus: dict[str, typing.Any] +@typing.type_check_only +class LocalizedMessage(typing_extensions.TypedDict, total=False): + locale: str + message: str + @typing.type_check_only class Manifest(typing_extensions.TypedDict, total=False): config: ConfigFile @@ -203,6 +229,7 @@ class Operation(typing_extensions.TypedDict, total=False): progress: int region: str selfLink: str + selfLinkWithId: str setCommonInstanceMetadataOperationMetadata: ( SetCommonInstanceMetadataOperationMetadata ) @@ -242,6 +269,17 @@ class PollingOptions(typing_extensions.TypedDict, total=False): pollingLink: str targetLink: str +@typing.type_check_only +class QuotaExceededInfo(typing_extensions.TypedDict, total=False): + dimensions: dict[str, typing.Any] + futureLimit: float + limit: float + limitName: str + metricName: str + rolloutStatus: typing_extensions.Literal[ + "ROLLOUT_STATUS_UNSPECIFIED", "IN_PROGRESS" + ] + @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): accessControl: ResourceAccessControl diff --git a/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi b/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi index eab994af..56c6079a 100644 --- a/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi @@ -88,6 +88,20 @@ class DeveloperConnectResource(googleapiclient.discovery.Resource): previous_request: ListGitRepositoryLinksResponseHttpRequest, previous_response: ListGitRepositoryLinksResponse, ) -> ListGitRepositoryLinksResponseHttpRequest | None: ... + def processGitLabEnterpriseWebhook( + self, + *, + name: str, + body: ProcessGitLabEnterpriseWebhookRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def processGitLabWebhook( + self, + *, + name: str, + body: ProcessGitLabWebhookRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... def create( self, @@ -153,6 +167,13 @@ class DeveloperConnectResource(googleapiclient.discovery.Resource): validateOnly: bool = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def processGitHubEnterpriseWebhook( + self, + *, + parent: str, + body: ProcessGitHubEnterpriseWebhookRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... def gitRepositoryLinks(self) -> GitRepositoryLinksResource: ... @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi b/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi index af6697ed..65e7ed2e 100644 --- a/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi @@ -11,10 +11,14 @@ class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... class Connection(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] createTime: str + cryptoKeyConfig: CryptoKeyConfig deleteTime: str disabled: bool etag: str githubConfig: GitHubConfig + githubEnterpriseConfig: GitHubEnterpriseConfig + gitlabConfig: GitLabConfig + gitlabEnterpriseConfig: GitLabEnterpriseConfig installationState: InstallationState labels: dict[str, typing.Any] name: str @@ -22,6 +26,10 @@ class Connection(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class CryptoKeyConfig(typing_extensions.TypedDict, total=False): + keyReference: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -66,6 +74,35 @@ class GitHubConfig(typing_extensions.TypedDict, total=False): ] installationUri: str +@typing.type_check_only +class GitHubEnterpriseConfig(typing_extensions.TypedDict, total=False): + appId: str + appInstallationId: str + appSlug: str + hostUri: str + installationUri: str + privateKeySecretVersion: str + serverVersion: str + serviceDirectoryConfig: ServiceDirectoryConfig + sslCaCertificate: str + webhookSecretSecretVersion: str + +@typing.type_check_only +class GitLabConfig(typing_extensions.TypedDict, total=False): + authorizerCredential: UserCredential + readAuthorizerCredential: UserCredential + webhookSecretSecretVersion: str + +@typing.type_check_only +class GitLabEnterpriseConfig(typing_extensions.TypedDict, total=False): + authorizerCredential: UserCredential + hostUri: str + readAuthorizerCredential: UserCredential + serverVersion: str + serviceDirectoryConfig: ServiceDirectoryConfig + sslCaCertificate: str + webhookSecretSecretVersion: str + @typing.type_check_only class GitRepositoryLink(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] @@ -78,6 +115,13 @@ class GitRepositoryLink(typing_extensions.TypedDict, total=False): reconciling: bool uid: str updateTime: str + webhookId: str + +@typing.type_check_only +class HttpBody(typing_extensions.TypedDict, total=False): + contentType: str + data: str + extensions: _list[dict[str, typing.Any]] @typing.type_check_only class Installation(typing_extensions.TypedDict, total=False): @@ -154,8 +198,29 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class ProcessGitHubEnterpriseWebhookRequest(typing_extensions.TypedDict, total=False): + body: HttpBody + +@typing.type_check_only +class ProcessGitLabEnterpriseWebhookRequest(typing_extensions.TypedDict, total=False): + body: HttpBody + +@typing.type_check_only +class ProcessGitLabWebhookRequest(typing_extensions.TypedDict, total=False): + body: HttpBody + +@typing.type_check_only +class ServiceDirectoryConfig(typing_extensions.TypedDict, total=False): + service: str + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str + +@typing.type_check_only +class UserCredential(typing_extensions.TypedDict, total=False): + userTokenSecretVersion: str + username: str diff --git a/googleapiclient-stubs/_apis/dfareporting/v4/resources.pyi b/googleapiclient-stubs/_apis/dfareporting/v4/resources.pyi index 81fe475d..8d6ec281 100644 --- a/googleapiclient-stubs/_apis/dfareporting/v4/resources.pyi +++ b/googleapiclient-stubs/_apis/dfareporting/v4/resources.pyi @@ -1938,6 +1938,23 @@ class DfareportingResource(googleapiclient.discovery.Resource): self, *, profileId: str, body: TargetingTemplate = ..., **kwargs: typing.Any ) -> TargetingTemplateHttpRequest: ... + @typing.type_check_only + class TvCampaignDetailsResource(googleapiclient.discovery.Resource): + def get( + self, *, profileId: str, id: str, accountId: str = ..., **kwargs: typing.Any + ) -> TvCampaignDetailHttpRequest: ... + + @typing.type_check_only + class TvCampaignSummariesResource(googleapiclient.discovery.Resource): + def list( + self, + *, + profileId: str, + accountId: str = ..., + name: str = ..., + **kwargs: typing.Any, + ) -> TvCampaignSummariesListResponseHttpRequest: ... + @typing.type_check_only class UserProfilesResource(googleapiclient.discovery.Resource): def get( @@ -2079,6 +2096,8 @@ class DfareportingResource(googleapiclient.discovery.Resource): def subaccounts(self) -> SubaccountsResource: ... def targetableRemarketingLists(self) -> TargetableRemarketingListsResource: ... def targetingTemplates(self) -> TargetingTemplatesResource: ... + def tvCampaignDetails(self) -> TvCampaignDetailsResource: ... + def tvCampaignSummaries(self) -> TvCampaignSummariesResource: ... def userProfiles(self) -> UserProfilesResource: ... def userRolePermissionGroups(self) -> UserRolePermissionGroupsResource: ... def userRolePermissions(self) -> UserRolePermissionsResource: ... @@ -2955,6 +2974,22 @@ class TargetingTemplatesListResponseHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> TargetingTemplatesListResponse: ... +@typing.type_check_only +class TvCampaignDetailHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> TvCampaignDetail: ... + +@typing.type_check_only +class TvCampaignSummariesListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> TvCampaignSummariesListResponse: ... + @typing.type_check_only class UserProfileHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi b/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi index 542301b1..d29e5767 100644 --- a/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi @@ -523,6 +523,7 @@ class CompanionSetting(typing_extensions.TypedDict, total=False): @typing.type_check_only class CompatibleFields(typing_extensions.TypedDict, total=False): crossDimensionReachReportCompatibleFields: CrossDimensionReachReportCompatibleFields + crossMediaReachReportCompatibleFields: CrossMediaReachReportCompatibleFields floodlightReportCompatibleFields: FloodlightReportCompatibleFields kind: str pathToConversionReportCompatibleFields: PathToConversionReportCompatibleFields @@ -1246,6 +1247,13 @@ class CrossDimensionReachReportCompatibleFields( metrics: _list[Metric] overlapMetrics: _list[Metric] +@typing.type_check_only +class CrossMediaReachReportCompatibleFields(typing_extensions.TypedDict, total=False): + dimensionFilters: _list[Dimension] + dimensions: _list[Dimension] + kind: str + metrics: _list[Metric] + @typing.type_check_only class CustomFloodlightVariable(typing_extensions.TypedDict, total=False): kind: str @@ -2638,6 +2646,7 @@ class Report(typing_extensions.TypedDict, total=False): accountId: str criteria: dict[str, typing.Any] crossDimensionReachCriteria: dict[str, typing.Any] + crossMediaReachCriteria: dict[str, typing.Any] delivery: dict[str, typing.Any] etag: str fileName: str @@ -2653,7 +2662,12 @@ class Report(typing_extensions.TypedDict, total=False): schedule: dict[str, typing.Any] subAccountId: str type: typing_extensions.Literal[ - "STANDARD", "REACH", "PATH_TO_CONVERSION", "CROSS_DIMENSION_REACH", "FLOODLIGHT" + "STANDARD", + "REACH", + "PATH_TO_CONVERSION", + "CROSS_DIMENSION_REACH", + "FLOODLIGHT", + "CROSS_MEDIA_REACH", ] @typing.type_check_only @@ -2955,6 +2969,39 @@ class TranscodeSetting(typing_extensions.TypedDict, total=False): enabledVideoFormats: _list[int] kind: str +@typing.type_check_only +class TvCampaignDetail(typing_extensions.TypedDict, total=False): + id: str + kind: str + timepoints: _list[TvCampaignTimepoint] + +@typing.type_check_only +class TvCampaignSummariesListResponse(typing_extensions.TypedDict, total=False): + kind: str + tvCampaignSummaries: _list[TvCampaignSummary] + +@typing.type_check_only +class TvCampaignSummary(typing_extensions.TypedDict, total=False): + endDate: str + grp: str + id: str + impressions: str + kind: str + name: str + spend: float + startDate: str + type: typing_extensions.Literal[ + "CAMPAIGN_COMPONENT_TYPE_UNSPECIFIED", "COMPANY", "BRAND", "PRODUCT", "CAMPAIGN" + ] + +@typing.type_check_only +class TvCampaignTimepoint(typing_extensions.TypedDict, total=False): + dateWindow: typing_extensions.Literal[ + "WEEKS_UNSPECIFIED", "WEEKS_ONE", "WEEKS_FOUR", "WEEKS_EIGHT", "WEEKS_TWELVE" + ] + spend: float + startDate: str + @typing.type_check_only class UniversalAdId(typing_extensions.TypedDict, total=False): registry: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi index 6957bf5d..081861b6 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi @@ -379,6 +379,7 @@ class GoogleCloudDialogflowCxV3InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3BargeInConfig enableWordInfo: bool @@ -1203,6 +1204,7 @@ class GoogleCloudDialogflowCxV3beta1InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3beta1BargeInConfig enableWordInfo: bool @@ -1972,6 +1974,7 @@ class GoogleCloudDialogflowV2Conversation(typing_extensions.TypedDict, total=Fal name: str phoneNumber: GoogleCloudDialogflowV2ConversationPhoneNumber startTime: str + telephonyConnectionInfo: GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo @typing.type_check_only class GoogleCloudDialogflowV2ConversationContext( @@ -1990,6 +1993,8 @@ class GoogleCloudDialogflowV2ConversationDataset( displayName: str inputConfig: GoogleCloudDialogflowV2InputConfig name: str + satisfiesPzi: bool + satisfiesPzs: bool @typing.type_check_only class GoogleCloudDialogflowV2ConversationEvent( @@ -1998,12 +2003,14 @@ class GoogleCloudDialogflowV2ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2Message + newRecognitionResultPayload: GoogleCloudDialogflowV2StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -2023,6 +2030,8 @@ class GoogleCloudDialogflowV2ConversationModel( displayName: str languageCode: str name: str + satisfiesPzi: bool + satisfiesPzs: bool smartReplyModelMetadata: GoogleCloudDialogflowV2SmartReplyModelMetadata state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -2051,6 +2060,7 @@ class GoogleCloudDialogflowV2ConversationModelEvaluation( class GoogleCloudDialogflowV2ConversationPhoneNumber( typing_extensions.TypedDict, total=False ): + countryCode: int phoneNumber: str @typing.type_check_only @@ -2066,6 +2076,7 @@ class GoogleCloudDialogflowV2ConversationProfile( loggingConfig: GoogleCloudDialogflowV2LoggingConfig name: str newMessageEventNotificationConfig: GoogleCloudDialogflowV2NotificationConfig + newRecognitionResultNotificationConfig: GoogleCloudDialogflowV2NotificationConfig notificationConfig: GoogleCloudDialogflowV2NotificationConfig securitySettings: str sttConfig: GoogleCloudDialogflowV2SpeechToTextConfig @@ -2073,6 +2084,33 @@ class GoogleCloudDialogflowV2ConversationProfile( ttsConfig: GoogleCloudDialogflowV2SynthesizeSpeechConfig updateTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfo( + typing_extensions.TypedDict, total=False +): + dialedNumber: str + extraMimeContents: _list[ + GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent + ] + sdp: str + sipHeaders: _list[ + GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoMimeContent( + typing_extensions.TypedDict, total=False +): + content: str + mimeType: str + +@typing.type_check_only +class GoogleCloudDialogflowV2ConversationTelephonyConnectionInfoSipHeader( + typing_extensions.TypedDict, total=False +): + name: str + value: str + @typing.type_check_only class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata( typing_extensions.TypedDict, total=False @@ -2502,6 +2540,7 @@ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig( ): confidenceThreshold: float contextFilterSettings: GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings + contextSize: int dialogflowQuerySource: GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource documentQuerySource: GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource knowledgeBaseQuerySource: GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource @@ -2688,6 +2727,7 @@ class GoogleCloudDialogflowV2InputAudioConfig(typing_extensions.TypedDict, total "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] disableNoSpeechRecognizedEvent: bool enableAutomaticPunctuation: bool @@ -2702,6 +2742,7 @@ class GoogleCloudDialogflowV2InputAudioConfig(typing_extensions.TypedDict, total ] optOutConformerModelMigration: bool phraseHints: _list[str] + phraseSets: _list[str] sampleRateHertz: int singleUtterance: bool speechContexts: _list[GoogleCloudDialogflowV2SpeechContext] @@ -3082,6 +3123,7 @@ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourc class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -3294,6 +3336,7 @@ class GoogleCloudDialogflowV2OutputAudioConfig( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfig: GoogleCloudDialogflowV2SynthesizeSpeechConfig @@ -3384,6 +3427,7 @@ class GoogleCloudDialogflowV2SearchKnowledgeAnswer( class GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] snippet: str title: str uri: str @@ -3394,11 +3438,82 @@ class GoogleCloudDialogflowV2SearchKnowledgeRequest( ): conversation: str conversationProfile: str + endUserMetadata: dict[str, typing.Any] + exactSearch: bool latestMessage: str parent: str query: GoogleCloudDialogflowV2TextInput + querySource: typing_extensions.Literal[ + "QUERY_SOURCE_UNSPECIFIED", "AGENT_QUERY", "SUGGESTED_QUERY" + ] + searchConfig: GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig sessionId: str +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfig( + typing_extensions.TypedDict, total=False +): + boostSpecs: _list[ + GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs + ] + filterSpecs: _list[ + GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecs( + typing_extensions.TypedDict, total=False +): + dataStores: _list[str] + spec: _list[ + GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + boostControlSpec: GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec + condition: str + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec( + typing_extensions.TypedDict, total=False +): + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint( + typing_extensions.TypedDict, total=False +): + attributeValue: str + boostAmount: float + +@typing.type_check_only +class GoogleCloudDialogflowV2SearchKnowledgeRequestSearchConfigFilterSpecs( + typing_extensions.TypedDict, total=False +): + dataStores: _list[str] + filter: str + @typing.type_check_only class GoogleCloudDialogflowV2SearchKnowledgeResponse( typing_extensions.TypedDict, total=False @@ -3513,10 +3628,12 @@ class GoogleCloudDialogflowV2SpeechToTextConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] enableWordInfo: bool languageCode: str model: str + phraseSets: _list[str] sampleRateHertz: int speechModelVariant: typing_extensions.Literal[ "SPEECH_MODEL_VARIANT_UNSPECIFIED", @@ -3526,6 +3643,27 @@ class GoogleCloudDialogflowV2SpeechToTextConfig( ] useTimeoutBasedEndpointing: bool +@typing.type_check_only +class GoogleCloudDialogflowV2SpeechWordInfo(typing_extensions.TypedDict, total=False): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE" + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2SpeechWordInfo] + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestArticlesRequest( typing_extensions.TypedDict, total=False @@ -3714,6 +3852,7 @@ class GoogleCloudDialogflowV2TextToSpeechSettings( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfigs: dict[str, typing.Any] @@ -3849,12 +3988,14 @@ class GoogleCloudDialogflowV2beta1ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2beta1Message + newRecognitionResultPayload: GoogleCloudDialogflowV2beta1StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -4459,6 +4600,7 @@ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerative class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -4629,6 +4771,35 @@ class GoogleCloudDialogflowV2beta1SmartReplyAnswer( confidence: float reply: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SpeechWordInfo( + typing_extensions.TypedDict, total=False +): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + dtmfDigits: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", + "TRANSCRIPT", + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2beta1SpeechWordInfo] + stability: float + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -4687,6 +4858,32 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse +@typing.type_check_only +class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents( + typing_extensions.TypedDict, total=False +): + dtmfEvents: _list[ + typing_extensions.Literal[ + "TELEPHONY_DTMF_UNSPECIFIED", + "DTMF_ONE", + "DTMF_TWO", + "DTMF_THREE", + "DTMF_FOUR", + "DTMF_FIVE", + "DTMF_SIX", + "DTMF_SEVEN", + "DTMF_EIGHT", + "DTMF_NINE", + "DTMF_ZERO", + "DTMF_A", + "DTMF_B", + "DTMF_C", + "DTMF_D", + "DTMF_STAR", + "DTMF_POUND", + ] + ] + @typing.type_check_only class GoogleCloudDialogflowV2beta1WebhookRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi b/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi index e4f24d6b..0449c085 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi @@ -2053,6 +2053,45 @@ class DialogflowResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + @typing.type_check_only + class SipTrunksResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1SipTrunk = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1SipTrunkHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowV2beta1SipTrunkHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1ListSipTrunksResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowV2beta1ListSipTrunksResponseHttpRequest, + previous_response: GoogleCloudDialogflowV2beta1ListSipTrunksResponse, + ) -> ( + GoogleCloudDialogflowV2beta1ListSipTrunksResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowV2beta1SipTrunk = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1SipTrunkHttpRequest: ... + @typing.type_check_only class StatelessSuggestionResource(googleapiclient.discovery.Resource): def generate( @@ -2122,6 +2161,7 @@ class DialogflowResource(googleapiclient.discovery.Resource): def generators(self) -> GeneratorsResource: ... def knowledgeBases(self) -> KnowledgeBasesResource: ... def operations(self) -> OperationsResource: ... + def sipTrunks(self) -> SipTrunksResource: ... def statelessSuggestion(self) -> StatelessSuggestionResource: ... def suggestions(self) -> SuggestionsResource: ... @@ -2527,6 +2567,16 @@ class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ListSipTrunksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1ListSipTrunksResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1ListSuggestionsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2587,6 +2637,14 @@ class GoogleCloudDialogflowV2beta1SessionEntityTypeHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1SessionEntityType: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SipTrunkHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1SipTrunk: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestArticlesResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi index 4b0b782e..155291a8 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi @@ -379,6 +379,7 @@ class GoogleCloudDialogflowCxV3InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3BargeInConfig enableWordInfo: bool @@ -1203,6 +1204,7 @@ class GoogleCloudDialogflowCxV3beta1InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3beta1BargeInConfig enableWordInfo: bool @@ -1745,12 +1747,14 @@ class GoogleCloudDialogflowV2ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2Message + newRecognitionResultPayload: GoogleCloudDialogflowV2StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -1766,6 +1770,8 @@ class GoogleCloudDialogflowV2ConversationModel( displayName: str languageCode: str name: str + satisfiesPzi: bool + satisfiesPzs: bool smartReplyModelMetadata: GoogleCloudDialogflowV2SmartReplyModelMetadata state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -2294,6 +2300,7 @@ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourc class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -2417,6 +2424,27 @@ class GoogleCloudDialogflowV2SmartReplyModelMetadata( "SMART_REPLY_BERT_MODEL", ] +@typing.type_check_only +class GoogleCloudDialogflowV2SpeechWordInfo(typing_extensions.TypedDict, total=False): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE" + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2SpeechWordInfo] + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -2810,6 +2838,36 @@ class GoogleCloudDialogflowV2beta1CompleteConversationRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1Connection(typing_extensions.TypedDict, total=False): + connectionId: str + errorDetails: GoogleCloudDialogflowV2beta1ConnectionErrorDetails + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CONNECTED", + "DISCONNECTED", + "AUTHENTICATION_FAILED", + "KEEPALIVE", + ] + updateTime: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ConnectionErrorDetails( + typing_extensions.TypedDict, total=False +): + certificateState: typing_extensions.Literal[ + "CERTIFICATE_STATE_UNSPECIFIED", + "CERTIFICATE_VALID", + "CERTIFICATE_INVALID", + "CERTIFICATE_EXPIRED", + "CERTIFICATE_HOSTNAME_NOT_FOUND", + "CERTIFICATE_UNAUTHENTICATED", + "CERTIFICATE_TRUST_STORE_NOT_FOUND", + "CERTIFICATE_HOSTNAME_INVALID_FORMAT", + "CERTIFICATE_QUOTA_EXCEEDED", + ] + errorMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1Context(typing_extensions.TypedDict, total=False): lifespanCount: int @@ -2831,6 +2889,9 @@ class GoogleCloudDialogflowV2beta1Conversation( name: str phoneNumber: GoogleCloudDialogflowV2beta1ConversationPhoneNumber startTime: str + telephonyConnectionInfo: ( + GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo + ) @typing.type_check_only class GoogleCloudDialogflowV2beta1ConversationContext( @@ -2845,12 +2906,14 @@ class GoogleCloudDialogflowV2beta1ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2beta1Message + newRecognitionResultPayload: GoogleCloudDialogflowV2beta1StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -2858,6 +2921,7 @@ class GoogleCloudDialogflowV2beta1ConversationEvent( class GoogleCloudDialogflowV2beta1ConversationPhoneNumber( typing_extensions.TypedDict, total=False ): + countryCode: int phoneNumber: str @typing.type_check_only @@ -2873,6 +2937,9 @@ class GoogleCloudDialogflowV2beta1ConversationProfile( loggingConfig: GoogleCloudDialogflowV2beta1LoggingConfig name: str newMessageEventNotificationConfig: GoogleCloudDialogflowV2beta1NotificationConfig + newRecognitionResultNotificationConfig: ( + GoogleCloudDialogflowV2beta1NotificationConfig + ) notificationConfig: GoogleCloudDialogflowV2beta1NotificationConfig securitySettings: str sttConfig: GoogleCloudDialogflowV2beta1SpeechToTextConfig @@ -2880,6 +2947,33 @@ class GoogleCloudDialogflowV2beta1ConversationProfile( ttsConfig: GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig updateTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfo( + typing_extensions.TypedDict, total=False +): + dialedNumber: str + extraMimeContents: _list[ + GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent + ] + sdp: str + sipHeaders: _list[ + GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoMimeContent( + typing_extensions.TypedDict, total=False +): + content: str + mimeType: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ConversationTelephonyConnectionInfoSipHeader( + typing_extensions.TypedDict, total=False +): + name: str + value: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1CreateMessageRequest( typing_extensions.TypedDict, total=False @@ -3241,6 +3335,7 @@ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig ): confidenceThreshold: float contextFilterSettings: GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings + contextSize: int dialogflowQuerySource: GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource documentQuerySource: GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource knowledgeBaseQuerySource: GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource @@ -3409,6 +3504,7 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowV2beta1BargeInConfig defaultNoSpeechTimeout: str @@ -3425,6 +3521,7 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig( ] optOutConformerModelMigration: bool phraseHints: _list[str] + phraseSets: _list[str] sampleRateHertz: int singleUtterance: bool speechContexts: _list[GoogleCloudDialogflowV2beta1SpeechContext] @@ -3944,6 +4041,7 @@ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerative class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -4061,6 +4159,13 @@ class GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse( nextPageToken: str sessionEntityTypes: _list[GoogleCloudDialogflowV2beta1SessionEntityType] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ListSipTrunksResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sipTrunks: _list[GoogleCloudDialogflowV2beta1SipTrunk] + @typing.type_check_only class GoogleCloudDialogflowV2beta1ListSuggestionsResponse( typing_extensions.TypedDict, total=False @@ -4147,6 +4252,7 @@ class GoogleCloudDialogflowV2beta1OutputAudioConfig( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfig: GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig @@ -4292,6 +4398,7 @@ class GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer( class GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] snippet: str title: str uri: str @@ -4302,11 +4409,82 @@ class GoogleCloudDialogflowV2beta1SearchKnowledgeRequest( ): conversation: str conversationProfile: str + endUserMetadata: dict[str, typing.Any] + exactSearch: bool latestMessage: str parent: str query: GoogleCloudDialogflowV2beta1TextInput + querySource: typing_extensions.Literal[ + "QUERY_SOURCE_UNSPECIFIED", "AGENT_QUERY", "SUGGESTED_QUERY" + ] + searchConfig: GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig sessionId: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfig( + typing_extensions.TypedDict, total=False +): + boostSpecs: _list[ + GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs + ] + filterSpecs: _list[ + GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecs( + typing_extensions.TypedDict, total=False +): + dataStores: _list[str] + spec: _list[ + GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + boostControlSpec: GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec + condition: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpec( + typing_extensions.TypedDict, total=False +): + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigBoostSpecsBoostSpecConditionBoostSpecBoostControlSpecControlPoint( + typing_extensions.TypedDict, total=False +): + attributeValue: str + boostAmount: float + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SearchKnowledgeRequestSearchConfigFilterSpecs( + typing_extensions.TypedDict, total=False +): + dataStores: _list[str] + filter: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SearchKnowledgeResponse( typing_extensions.TypedDict, total=False @@ -4374,6 +4552,13 @@ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest( GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig ) +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SipTrunk(typing_extensions.TypedDict, total=False): + connections: _list[GoogleCloudDialogflowV2beta1Connection] + displayName: str + expectedHostname: _list[str] + name: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SmartReplyAnswer( typing_extensions.TypedDict, total=False @@ -4402,10 +4587,12 @@ class GoogleCloudDialogflowV2beta1SpeechToTextConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] enableWordInfo: bool languageCode: str model: str + phraseSets: _list[str] sampleRateHertz: int speechModelVariant: typing_extensions.Literal[ "SPEECH_MODEL_VARIANT_UNSPECIFIED", @@ -4415,6 +4602,35 @@ class GoogleCloudDialogflowV2beta1SpeechToTextConfig( ] useTimeoutBasedEndpointing: bool +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SpeechWordInfo( + typing_extensions.TypedDict, total=False +): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + dtmfDigits: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", + "TRANSCRIPT", + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2beta1SpeechWordInfo] + stability: float + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SubAgent(typing_extensions.TypedDict, total=False): environment: str @@ -4686,6 +4902,7 @@ class GoogleCloudDialogflowV2beta1TextToSpeechSettings( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfigs: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi index c098075f..307c251e 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi @@ -57,6 +57,8 @@ class GoogleCloudDialogflowCxV3Agent(typing_extensions.TypedDict, total=False): locked: bool name: str personalizationSettings: GoogleCloudDialogflowCxV3AgentPersonalizationSettings + satisfiesPzi: bool + satisfiesPzs: bool securitySettings: str speechToTextSettings: GoogleCloudDialogflowCxV3SpeechToTextSettings startFlow: str @@ -880,10 +882,20 @@ class GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings( @typing.type_check_only class GoogleCloudDialogflowCxV3Generator(typing_extensions.TypedDict, total=False): displayName: str + modelParameter: GoogleCloudDialogflowCxV3GeneratorModelParameter name: str placeholders: _list[GoogleCloudDialogflowCxV3GeneratorPlaceholder] promptText: GoogleCloudDialogflowCxV3Phrase +@typing.type_check_only +class GoogleCloudDialogflowCxV3GeneratorModelParameter( + typing_extensions.TypedDict, total=False +): + maxDecodeSteps: int + temperature: float + topK: int + topP: float + @typing.type_check_only class GoogleCloudDialogflowCxV3GeneratorPlaceholder( typing_extensions.TypedDict, total=False @@ -1024,6 +1036,7 @@ class GoogleCloudDialogflowCxV3InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3BargeInConfig enableWordInfo: bool @@ -1306,6 +1319,7 @@ class GoogleCloudDialogflowCxV3OutputAudioConfig( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfig: GoogleCloudDialogflowCxV3SynthesizeSpeechConfig @@ -2428,6 +2442,7 @@ class GoogleCloudDialogflowCxV3beta1InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3beta1BargeInConfig enableWordInfo: bool @@ -2970,12 +2985,14 @@ class GoogleCloudDialogflowV2ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2Message + newRecognitionResultPayload: GoogleCloudDialogflowV2StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -2991,6 +3008,8 @@ class GoogleCloudDialogflowV2ConversationModel( displayName: str languageCode: str name: str + satisfiesPzi: bool + satisfiesPzs: bool smartReplyModelMetadata: GoogleCloudDialogflowV2SmartReplyModelMetadata state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -3519,6 +3538,7 @@ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourc class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -3642,6 +3662,27 @@ class GoogleCloudDialogflowV2SmartReplyModelMetadata( "SMART_REPLY_BERT_MODEL", ] +@typing.type_check_only +class GoogleCloudDialogflowV2SpeechWordInfo(typing_extensions.TypedDict, total=False): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE" + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2SpeechWordInfo] + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -3771,12 +3812,14 @@ class GoogleCloudDialogflowV2beta1ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2beta1Message + newRecognitionResultPayload: GoogleCloudDialogflowV2beta1StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -4381,6 +4424,7 @@ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerative class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -4551,6 +4595,35 @@ class GoogleCloudDialogflowV2beta1SmartReplyAnswer( confidence: float reply: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SpeechWordInfo( + typing_extensions.TypedDict, total=False +): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + dtmfDigits: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", + "TRANSCRIPT", + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2beta1SpeechWordInfo] + stability: float + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -4609,6 +4682,32 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse +@typing.type_check_only +class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents( + typing_extensions.TypedDict, total=False +): + dtmfEvents: _list[ + typing_extensions.Literal[ + "TELEPHONY_DTMF_UNSPECIFIED", + "DTMF_ONE", + "DTMF_TWO", + "DTMF_THREE", + "DTMF_FOUR", + "DTMF_FIVE", + "DTMF_SIX", + "DTMF_SEVEN", + "DTMF_EIGHT", + "DTMF_NINE", + "DTMF_ZERO", + "DTMF_A", + "DTMF_B", + "DTMF_C", + "DTMF_D", + "DTMF_STAR", + "DTMF_POUND", + ] + ] + @typing.type_check_only class GoogleCloudDialogflowV2beta1WebhookRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi b/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi index 555f5b4b..2d9568b7 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi @@ -818,6 +818,13 @@ class DialogflowResource(googleapiclient.discovery.Resource): GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponseHttpRequest | None ): ... + def restore( + self, + *, + name: str, + body: GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponseHttpRequest: ... def create( self, @@ -829,9 +836,23 @@ class DialogflowResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... + def export( + self, + *, + name: str, + body: GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudDialogflowCxV3beta1PlaybookHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def list( self, *, @@ -1882,6 +1903,16 @@ class GoogleCloudDialogflowCxV3beta1PlaybookVersionHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1PlaybookVersion: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1SecuritySettingsHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi index 29cf9eb2..5fdf0540 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi @@ -379,6 +379,7 @@ class GoogleCloudDialogflowCxV3InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3BargeInConfig enableWordInfo: bool @@ -859,6 +860,7 @@ class GoogleCloudDialogflowCxV3beta1Agent(typing_extensions.TypedDict, total=Fal advancedSettings: GoogleCloudDialogflowCxV3beta1AdvancedSettings answerFeedbackSettings: GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings avatarUri: str + bigqueryExportSettings: GoogleCloudDialogflowCxV3beta1BigQueryExportSettings clientCertificateSettings: ( GoogleCloudDialogflowCxV3beta1AgentClientCertificateSettings ) @@ -873,6 +875,8 @@ class GoogleCloudDialogflowCxV3beta1Agent(typing_extensions.TypedDict, total=Fal locked: bool name: str personalizationSettings: GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings + satisfiesPzi: bool + satisfiesPzs: bool securitySettings: str speechToTextSettings: GoogleCloudDialogflowCxV3beta1SpeechToTextSettings startFlow: str @@ -992,6 +996,13 @@ class GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse( ): results: _list[GoogleCloudDialogflowCxV3beta1TestCaseResult] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1BigQueryExportSettings( + typing_extensions.TypedDict, total=False +): + bigqueryTable: str + enabled: bool + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1BoostSpec(typing_extensions.TypedDict, total=False): conditionBoostSpecs: _list[ @@ -1104,6 +1115,7 @@ class GoogleCloudDialogflowCxV3beta1Conversation( class GoogleCloudDialogflowCxV3beta1ConversationInteraction( typing_extensions.TypedDict, total=False ): + answerFeedback: GoogleCloudDialogflowCxV3beta1AnswerFeedback createTime: str missingTransition: ( GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition @@ -1113,6 +1125,7 @@ class GoogleCloudDialogflowCxV3beta1ConversationInteraction( requestUtterances: str response: GoogleCloudDialogflowCxV3beta1DetectIntentResponse responseUtterances: str + stepMetrics: _list[GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics] @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition( @@ -1121,6 +1134,13 @@ class GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition( intentDisplayName: str score: float +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ConversationInteractionStepMetrics( + typing_extensions.TypedDict, total=False +): + latency: str + name: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ConversationMetrics( typing_extensions.TypedDict, total=False @@ -1632,6 +1652,13 @@ class GoogleCloudDialogflowCxV3beta1ExportIntentsResponse( intentsContent: GoogleCloudDialogflowCxV3beta1InlineDestination intentsUri: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest( + typing_extensions.TypedDict, total=False +): + dataFormat: typing_extensions.Literal["DATA_FORMAT_UNSPECIFIED", "BLOB", "JSON"] + playbookUri: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata( typing_extensions.TypedDict, total=False @@ -1699,6 +1726,7 @@ class GoogleCloudDialogflowCxV3beta1FlowImportStrategy( class GoogleCloudDialogflowCxV3beta1FlowInvocation( typing_extensions.TypedDict, total=False ): + displayName: str flow: str flowState: typing_extensions.Literal[ "OUTPUT_STATE_UNSPECIFIED", @@ -1869,10 +1897,20 @@ class GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings class GoogleCloudDialogflowCxV3beta1Generator(typing_extensions.TypedDict, total=False): displayName: str llmModelSettings: GoogleCloudDialogflowCxV3beta1LlmModelSettings + modelParameter: GoogleCloudDialogflowCxV3beta1GeneratorModelParameter name: str placeholders: _list[GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder] promptText: GoogleCloudDialogflowCxV3beta1Phrase +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1GeneratorModelParameter( + typing_extensions.TypedDict, total=False +): + maxDecodeSteps: int + temperature: float + topK: int + topP: float + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder( typing_extensions.TypedDict, total=False @@ -1971,6 +2009,14 @@ class GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources( entityDisplayNames: _list[str] intentDisplayNames: _list[str] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest( + typing_extensions.TypedDict, total=False +): + importStrategy: GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy + playbookContent: str + playbookUri: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata( typing_extensions.TypedDict, total=False @@ -2024,6 +2070,7 @@ class GoogleCloudDialogflowCxV3beta1InputAudioConfig( "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW", ] bargeInConfig: GoogleCloudDialogflowCxV3beta1BargeInConfig enableWordInfo: bool @@ -2356,6 +2403,7 @@ class GoogleCloudDialogflowCxV3beta1OutputAudioConfig( "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW", ] sampleRateHertz: int synthesizeSpeechConfig: GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig @@ -2431,9 +2479,39 @@ class GoogleCloudDialogflowCxV3beta1Playbook(typing_extensions.TypedDict, total= referencedFlows: _list[str] referencedPlaybooks: _list[str] referencedTools: _list[str] + speechSettings: GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings tokenCount: str updateTime: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy( + typing_extensions.TypedDict, total=False +): + mainPlaybookImportStrategy: typing_extensions.Literal[ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR", + ] + nestedResourceImportStrategy: typing_extensions.Literal[ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR", + ] + toolImportStrategy: typing_extensions.Literal[ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR", + ] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1PlaybookInput( typing_extensions.TypedDict, total=False @@ -2445,12 +2523,14 @@ class GoogleCloudDialogflowCxV3beta1PlaybookInput( class GoogleCloudDialogflowCxV3beta1PlaybookInstruction( typing_extensions.TypedDict, total=False ): + guidelines: str steps: _list[GoogleCloudDialogflowCxV3beta1PlaybookStep] @typing.type_check_only class GoogleCloudDialogflowCxV3beta1PlaybookInvocation( typing_extensions.TypedDict, total=False ): + displayName: str playbook: str playbookInput: GoogleCloudDialogflowCxV3beta1PlaybookInput playbookOutput: GoogleCloudDialogflowCxV3beta1PlaybookOutput @@ -2660,6 +2740,17 @@ class GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource( ): trackingBranch: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse( + typing_extensions.TypedDict, total=False +): + playbook: GoogleCloudDialogflowCxV3beta1Playbook + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1RolloutConfig( typing_extensions.TypedDict, total=False @@ -2723,6 +2814,9 @@ class GoogleCloudDialogflowCxV3beta1SafetySettings( typing_extensions.TypedDict, total=False ): bannedPhrases: _list[GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase] + defaultBannedPhraseMatchStrategy: typing_extensions.Literal[ + "PHRASE_MATCH_STRATEGY_UNSPECIFIED", "PARTIAL_MATCH", "WORD_MATCH" + ] @typing.type_check_only class GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase( @@ -2954,6 +3048,7 @@ class GoogleCloudDialogflowCxV3beta1ToolAuthenticationOAuthConfig( oauthGrantType: typing_extensions.Literal[ "OAUTH_GRANT_TYPE_UNSPECIFIED", "CLIENT_CREDENTIAL" ] + scopes: _list[str] tokenEndpoint: str @typing.type_check_only @@ -3041,6 +3136,7 @@ class GoogleCloudDialogflowCxV3beta1ToolTLSConfigCACert( @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ToolUse(typing_extensions.TypedDict, total=False): action: str + displayName: str inputActionParameters: dict[str, typing.Any] outputActionParameters: dict[str, typing.Any] tool: str @@ -3439,12 +3535,14 @@ class GoogleCloudDialogflowV2ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2Message + newRecognitionResultPayload: GoogleCloudDialogflowV2StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -3460,6 +3558,8 @@ class GoogleCloudDialogflowV2ConversationModel( displayName: str languageCode: str name: str + satisfiesPzi: bool + satisfiesPzs: bool smartReplyModelMetadata: GoogleCloudDialogflowV2SmartReplyModelMetadata state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -3988,6 +4088,7 @@ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourc class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -4111,6 +4212,27 @@ class GoogleCloudDialogflowV2SmartReplyModelMetadata( "SMART_REPLY_BERT_MODEL", ] +@typing.type_check_only +class GoogleCloudDialogflowV2SpeechWordInfo(typing_extensions.TypedDict, total=False): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", "END_OF_SINGLE_UTTERANCE" + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2SpeechWordInfo] + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -4240,12 +4362,14 @@ class GoogleCloudDialogflowV2beta1ConversationEvent( conversation: str errorStatus: GoogleRpcStatus newMessagePayload: GoogleCloudDialogflowV2beta1Message + newRecognitionResultPayload: GoogleCloudDialogflowV2beta1StreamingRecognitionResult type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "CONVERSATION_STARTED", "CONVERSATION_FINISHED", "HUMAN_INTERVENTION_NEEDED", "NEW_MESSAGE", + "NEW_RECOGNITION_RESULT", "UNRECOVERABLE_ERROR", ] @@ -4850,6 +4974,7 @@ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerative class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( typing_extensions.TypedDict, total=False ): + metadata: dict[str, typing.Any] text: str title: str uri: str @@ -5020,6 +5145,35 @@ class GoogleCloudDialogflowV2beta1SmartReplyAnswer( confidence: float reply: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SpeechWordInfo( + typing_extensions.TypedDict, total=False +): + confidence: float + endOffset: str + startOffset: str + word: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1StreamingRecognitionResult( + typing_extensions.TypedDict, total=False +): + confidence: float + dtmfDigits: GoogleCloudDialogflowV2beta1TelephonyDtmfEvents + isFinal: bool + languageCode: str + messageType: typing_extensions.Literal[ + "MESSAGE_TYPE_UNSPECIFIED", + "TRANSCRIPT", + "DTMF_DIGITS", + "END_OF_SINGLE_UTTERANCE", + "PARTIAL_DTMF_DIGITS", + ] + speechEndOffset: str + speechWordInfo: _list[GoogleCloudDialogflowV2beta1SpeechWordInfo] + stability: float + transcript: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestArticlesResponse( typing_extensions.TypedDict, total=False @@ -5078,6 +5232,32 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse +@typing.type_check_only +class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents( + typing_extensions.TypedDict, total=False +): + dtmfEvents: _list[ + typing_extensions.Literal[ + "TELEPHONY_DTMF_UNSPECIFIED", + "DTMF_ONE", + "DTMF_TWO", + "DTMF_THREE", + "DTMF_FOUR", + "DTMF_FIVE", + "DTMF_SIX", + "DTMF_SEVEN", + "DTMF_EIGHT", + "DTMF_NINE", + "DTMF_ZERO", + "DTMF_A", + "DTMF_B", + "DTMF_C", + "DTMF_D", + "DTMF_STAR", + "DTMF_POUND", + ] + ] + @typing.type_check_only class GoogleCloudDialogflowV2beta1WebhookRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/digitalassetlinks/v1/resources.pyi b/googleapiclient-stubs/_apis/digitalassetlinks/v1/resources.pyi index c073b0fb..473bfc6c 100644 --- a/googleapiclient-stubs/_apis/digitalassetlinks/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/digitalassetlinks/v1/resources.pyi @@ -15,9 +15,6 @@ _list = list class DigitalassetlinksResource(googleapiclient.discovery.Resource): @typing.type_check_only class AssetlinksResource(googleapiclient.discovery.Resource): - def bulkCheck( - self, *, body: BulkCheckRequest = ..., **kwargs: typing.Any - ) -> BulkCheckResponseHttpRequest: ... def check( self, *, @@ -58,14 +55,6 @@ class DigitalassetlinksResource(googleapiclient.discovery.Resource): def assetlinks(self) -> AssetlinksResource: ... def statements(self) -> StatementsResource: ... -@typing.type_check_only -class BulkCheckResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> BulkCheckResponse: ... - @typing.type_check_only class CheckResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/digitalassetlinks/v1/schemas.pyi b/googleapiclient-stubs/_apis/digitalassetlinks/v1/schemas.pyi index 20816006..8aba2a69 100644 --- a/googleapiclient-stubs/_apis/digitalassetlinks/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/digitalassetlinks/v1/schemas.pyi @@ -14,32 +14,6 @@ class Asset(typing_extensions.TypedDict, total=False): androidApp: AndroidAppAsset web: WebAsset -@typing.type_check_only -class BulkCheckRequest(typing_extensions.TypedDict, total=False): - allowGoogleInternalDataSources: bool - defaultRelation: str - defaultSource: Asset - defaultTarget: Asset - skipCacheLookup: bool - statements: _list[StatementTemplate] - -@typing.type_check_only -class BulkCheckResponse(typing_extensions.TypedDict, total=False): - bulkErrorCode: typing_extensions.Literal[ - "ERROR_CODE_UNSPECIFIED", - "ERROR_CODE_INVALID_QUERY", - "ERROR_CODE_FETCH_ERROR", - "ERROR_CODE_FAILED_SSL_VALIDATION", - "ERROR_CODE_REDIRECT", - "ERROR_CODE_TOO_LARGE", - "ERROR_CODE_MALFORMED_HTTP_RESPONSE", - "ERROR_CODE_WRONG_CONTENT_TYPE", - "ERROR_CODE_MALFORMED_CONTENT", - "ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE", - "ERROR_CODE_FETCH_BUDGET_EXHAUSTED", - ] - checkResults: _list[CheckResponse] - @typing.type_check_only class CertificateInfo(typing_extensions.TypedDict, total=False): sha256Fingerprint: str @@ -92,12 +66,6 @@ class Statement(typing_extensions.TypedDict, total=False): source: Asset target: Asset -@typing.type_check_only -class StatementTemplate(typing_extensions.TypedDict, total=False): - relation: str - source: Asset - target: Asset - @typing.type_check_only class WebAsset(typing_extensions.TypedDict, total=False): site: str diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi index e479d2aa..b0b8dd8f 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi @@ -391,6 +391,14 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1ServingConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ServingConfigHttpRequest: ... def recommend( self, *, @@ -414,6 +422,29 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1SearchRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1SearchResponseHttpRequest: ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1SearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1SearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1AnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest + ): ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -434,7 +465,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1SessionHttpRequest: ... def list( self, @@ -682,8 +717,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1DataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -876,6 +913,14 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1ServingConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ServingConfigHttpRequest: ... def recommend( self, *, @@ -899,6 +944,29 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1SearchRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1SearchResponseHttpRequest: ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1SearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1SearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1AnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest + ): ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -919,7 +987,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1SessionHttpRequest: ... def list( self, @@ -1331,6 +1403,14 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1AnswerQueryRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest: ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1ServingConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ServingConfigHttpRequest: ... def recommend( self, *, @@ -1352,6 +1432,27 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1SearchRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1SearchResponseHttpRequest: ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1SearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1SearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1SearchResponseHttpRequest | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1AnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1AnswerQueryResponseHttpRequest: ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -1372,7 +1473,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1SessionHttpRequest: ... def list( self, @@ -1543,8 +1648,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1DataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -1607,7 +1714,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> GoogleCloudDiscoveryengineV1CheckGroundingResponseHttpRequest: ... @typing.type_check_only - class Identity_mapping_storesResource(googleapiclient.discovery.Resource): + class IdentityMappingStoresResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -1671,6 +1778,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): userEvent: str = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1ImportUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, @@ -1680,10 +1794,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1UserEventHttpRequest: ... + def generateGroundedContent( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseHttpRequest + ): ... def collections(self) -> CollectionsResource: ... def dataStores(self) -> DataStoresResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... - def identity_mapping_stores(self) -> Identity_mapping_storesResource: ... + def identityMappingStores(self) -> IdentityMappingStoresResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... def userEvents(self) -> UserEventsResource: ... @@ -1859,6 +1982,16 @@ class GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponseHttpReque num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1987,6 +2120,16 @@ class GoogleCloudDiscoveryengineV1SearchResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1SearchResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1ServingConfig: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1SessionHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi index a6950585..a45d2980 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi @@ -4,12 +4,76 @@ import typing_extensions _list = list +@typing.type_check_only +class GoogleApiDistribution(typing_extensions.TypedDict, total=False): + bucketCounts: _list[str] + bucketOptions: GoogleApiDistributionBucketOptions + count: str + exemplars: _list[GoogleApiDistributionExemplar] + mean: float + range: GoogleApiDistributionRange + sumOfSquaredDeviation: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptions(typing_extensions.TypedDict, total=False): + explicitBuckets: GoogleApiDistributionBucketOptionsExplicit + exponentialBuckets: GoogleApiDistributionBucketOptionsExponential + linearBuckets: GoogleApiDistributionBucketOptionsLinear + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExplicit( + typing_extensions.TypedDict, total=False +): + bounds: _list[float] + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExponential( + typing_extensions.TypedDict, total=False +): + growthFactor: float + numFiniteBuckets: int + scale: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsLinear( + typing_extensions.TypedDict, total=False +): + numFiniteBuckets: int + offset: float + width: float + +@typing.type_check_only +class GoogleApiDistributionExemplar(typing_extensions.TypedDict, total=False): + attachments: _list[dict[str, typing.Any]] + timestamp: str + value: float + +@typing.type_check_only +class GoogleApiDistributionRange(typing_extensions.TypedDict, total=False): + max: float + min: float + @typing.type_check_only class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): contentType: str data: str extensions: _list[dict[str, typing.Any]] +@typing.type_check_only +class GoogleApiMetric(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + +@typing.type_check_only +class GoogleApiMonitoredResource(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + +@typing.type_check_only +class GoogleApiMonitoredResourceMetadata(typing_extensions.TypedDict, total=False): + systemLabels: dict[str, typing.Any] + userLabels: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineLoggingErrorContext( typing_extensions.TypedDict, total=False @@ -57,6 +121,13 @@ class GoogleCloudDiscoveryengineLoggingSourceLocation( ): functionName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1AlloyDbSource( typing_extensions.TypedDict, total=False @@ -81,18 +152,22 @@ class GoogleCloudDiscoveryengineV1Answer(typing_extensions.TypedDict, total=Fals "JAIL_BREAKING_QUERY_IGNORED", "CUSTOMER_POLICY_VIOLATION", "NON_ANSWER_SEEKING_QUERY_IGNORED_V2", + "LOW_GROUNDED_ANSWER", ] ] answerText: str citations: _list[GoogleCloudDiscoveryengineV1AnswerCitation] completeTime: str createTime: str + groundingScore: float + groundingSupports: _list[GoogleCloudDiscoveryengineV1AnswerGroundingSupport] name: str queryUnderstandingInfo: GoogleCloudDiscoveryengineV1AnswerQueryUnderstandingInfo references: _list[GoogleCloudDiscoveryengineV1AnswerReference] relatedQuestions: _list[str] + safetyRatings: _list[GoogleCloudDiscoveryengineV1SafetyRating] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED" + "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "STREAMING" ] steps: _list[GoogleCloudDiscoveryengineV1AnswerStep] @@ -110,6 +185,16 @@ class GoogleCloudDiscoveryengineV1AnswerCitationSource( ): referenceId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AnswerGroundingSupport( + typing_extensions.TypedDict, total=False +): + endIndex: str + groundingCheckRequired: bool + groundingScore: float + sources: _list[GoogleCloudDiscoveryengineV1AnswerCitationSource] + startIndex: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequest( typing_extensions.TypedDict, total=False @@ -118,6 +203,7 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequest( GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec ) asynchronousMode: bool + groundingSpec: GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec query: GoogleCloudDiscoveryengineV1Query queryUnderstandingSpec: ( GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec @@ -160,6 +246,15 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpecPromptSp ): preamble: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + filteringLevel: typing_extensions.Literal[ + "FILTERING_LEVEL_UNSPECIFIED", "FILTERING_LEVEL_LOW", "FILTERING_LEVEL_HIGH" + ] + includeGroundingSupports: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec( typing_extensions.TypedDict, total=False @@ -187,6 +282,13 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryR ): disable: bool maxRephraseSteps: int + modelSpec: GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec( + typing_extensions.TypedDict, total=False +): + modelType: typing_extensions.Literal["MODEL_TYPE_UNSPECIFIED", "SMALL", "LARGE"] @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec( @@ -199,6 +301,30 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec( typing_extensions.TypedDict, total=False ): enable: bool + safetySettings: _list[ + GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpecSafetySetting( + typing_extensions.TypedDict, total=False +): + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + threshold: typing_extensions.Literal[ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF", + ] @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec( @@ -566,9 +692,18 @@ class GoogleCloudDiscoveryengineV1CheckGroundingResponse( typing_extensions.TypedDict, total=False ): citedChunks: _list[GoogleCloudDiscoveryengineV1FactChunk] + citedFacts: _list[ + GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk + ] claims: _list[GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim] supportScore: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1CheckGroundingResponseCheckGroundingFactChunk( + typing_extensions.TypedDict, total=False +): + chunkText: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim( typing_extensions.TypedDict, total=False @@ -629,6 +764,24 @@ class GoogleCloudDiscoveryengineV1CloudSqlSource( projectId: str tableId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1CmekConfig(typing_extensions.TypedDict, total=False): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1SingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1CompleteQueryResponse( typing_extensions.TypedDict, total=False @@ -667,6 +820,7 @@ class GoogleCloudDiscoveryengineV1CompletionSuggestion( @typing.type_check_only class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] @typing.type_check_only @@ -691,6 +845,7 @@ class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=Fal displayName: str filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1ControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -715,6 +870,7 @@ class GoogleCloudDiscoveryengineV1ControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlFilterAction( @@ -723,6 +879,13 @@ class GoogleCloudDiscoveryengineV1ControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1SearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlRedirectAction( typing_extensions.TypedDict, total=False @@ -830,6 +993,7 @@ class GoogleCloudDiscoveryengineV1CustomTuningModel( ): createTime: str displayName: str + errorMessage: str metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", @@ -847,6 +1011,9 @@ class GoogleCloudDiscoveryengineV1CustomTuningModel( @typing.type_check_only class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=False): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1CmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -861,8 +1028,10 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str name: str - servingConfigDataStore: GoogleCloudDiscoveryengineV1ServingConfigDataStore + servingConfigDataStore: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -875,6 +1044,23 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F startingSchema: GoogleCloudDiscoveryengineV1Schema workspaceConfig: GoogleCloudDiscoveryengineV1WorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -889,6 +1075,13 @@ class GoogleCloudDiscoveryengineV1DeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -947,11 +1140,13 @@ class GoogleCloudDiscoveryengineV1DocumentIndexStatus( ): errorSamples: _list[GoogleRpcStatus] indexTime: str + pendingMessage: str @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentInfo( typing_extensions.TypedDict, total=False ): + conversionValue: float id: str joined: bool name: str @@ -1032,6 +1227,7 @@ class GoogleCloudDiscoveryengineV1Engine(typing_extensions.TypedDict, total=Fals commonConfig: GoogleCloudDiscoveryengineV1EngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -1110,6 +1306,7 @@ class GoogleCloudDiscoveryengineV1FhirStoreSource( fhirStore: str gcsStagingDir: str resourceTypes: _list[str] + updateFromLatestPredefinedSchema: bool @typing.type_check_only class GoogleCloudDiscoveryengineV1FirestoreSource( @@ -1125,6 +1322,170 @@ class GoogleCloudDiscoveryengineV1GcsSource(typing_extensions.TypedDict, total=F dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequest( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudDiscoveryengineV1GroundedGenerationContent] + generationSpec: ( + GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec + ) + groundingSpec: ( + GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec + ) + systemInstruction: GoogleCloudDiscoveryengineV1GroundedGenerationContent + userLabels: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration( + typing_extensions.TypedDict, total=False +): + predictor: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor( + typing_extensions.TypedDict, total=False +): + threshold: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGenerationSpec( + typing_extensions.TypedDict, total=False +): + frequencyPenalty: float + languageCode: str + maxOutputTokens: int + modelId: str + presencePenalty: float + seed: int + temperature: float + topK: int + topP: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource( + typing_extensions.TypedDict, total=False +): + googleSearchSource: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource + inlineSource: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource + searchSource: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceSearchSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceGoogleSearchSource( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalConfig: GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestDynamicRetrievalConfiguration + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceInlineSource( + typing_extensions.TypedDict, total=False +): + attributes: dict[str, typing.Any] + groundingFacts: _list[GoogleCloudDiscoveryengineV1GroundingFact] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSourceSearchSource( + typing_extensions.TypedDict, total=False +): + filter: str + maxResultCount: int + safeSearch: bool + servingConfig: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + groundingSources: _list[ + GoogleCloudDiscoveryengineV1GenerateGroundedContentRequestGroundingSource + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponse( + typing_extensions.TypedDict, total=False +): + candidates: _list[ + GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidate( + typing_extensions.TypedDict, total=False +): + content: GoogleCloudDiscoveryengineV1GroundedGenerationContent + groundingMetadata: GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata + groundingScore: float + index: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata( + typing_extensions.TypedDict, total=False +): + groundingSupport: _list[ + GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport + ] + retrievalMetadata: _list[ + GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata + ] + searchEntryPoint: GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint + supportChunks: _list[GoogleCloudDiscoveryengineV1FactChunk] + webSearchQueries: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + predictorMetadata: GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata( + typing_extensions.TypedDict, total=False +): + prediction: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport( + typing_extensions.TypedDict, total=False +): + claimText: str + supportChunkIndices: _list[int] + supportScore: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalMetadata: GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata + source: typing_extensions.Literal[ + "SOURCE_UNSPECIFIED", + "VERTEX_AI_SEARCH", + "GOOGLE_SEARCH", + "INLINE_CONTENT", + "GOOGLE_MAPS", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint( + typing_extensions.TypedDict, total=False +): + renderedContent: str + sdkBlob: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GroundedGenerationContent( + typing_extensions.TypedDict, total=False +): + parts: _list[GoogleCloudDiscoveryengineV1GroundedGenerationContentPart] + role: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1GroundedGenerationContentPart( + typing_extensions.TypedDict, total=False +): + text: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1GroundingFact( typing_extensions.TypedDict, total=False @@ -1187,6 +1548,7 @@ class GoogleCloudDiscoveryengineV1ImportDocumentsRequest( errorConfig: GoogleCloudDiscoveryengineV1ImportErrorConfig fhirStoreSource: GoogleCloudDiscoveryengineV1FhirStoreSource firestoreSource: GoogleCloudDiscoveryengineV1FirestoreSource + forceRefreshContent: bool gcsSource: GoogleCloudDiscoveryengineV1GcsSource idField: str inlineSource: GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource @@ -1363,6 +1725,7 @@ class GoogleCloudDiscoveryengineV1PageInfo(typing_extensions.TypedDict, total=Fa @typing.type_check_only class GoogleCloudDiscoveryengineV1PanelInfo(typing_extensions.TypedDict, total=False): displayName: str + documents: _list[GoogleCloudDiscoveryengineV1DocumentInfo] panelId: str panelPosition: int totalPanels: int @@ -1550,6 +1913,32 @@ class GoogleCloudDiscoveryengineV1RecrawlUrisRequest( class GoogleCloudDiscoveryengineV1Reply(typing_extensions.TypedDict, total=False): summary: GoogleCloudDiscoveryengineV1SearchResponseSummary +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SafetyRating( + typing_extensions.TypedDict, total=False +): + blocked: bool + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + probability: typing_extensions.Literal[ + "HARM_PROBABILITY_UNSPECIFIED", "NEGLIGIBLE", "LOW", "MEDIUM", "HIGH" + ] + probabilityScore: float + severity: typing_extensions.Literal[ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH", + ] + severityScore: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1Schema(typing_extensions.TypedDict, total=False): jsonSchema: str @@ -1562,6 +1951,16 @@ class GoogleCloudDiscoveryengineV1SearchInfo(typing_extensions.TypedDict, total= orderBy: str searchQuery: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1SearchRequest( typing_extensions.TypedDict, total=False @@ -1576,6 +1975,7 @@ class GoogleCloudDiscoveryengineV1SearchRequest( imageQuery: GoogleCloudDiscoveryengineV1SearchRequestImageQuery languageCode: str offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str @@ -1701,7 +2101,9 @@ class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModel class GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1SearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1SearchRequestFacetSpec( @@ -1767,6 +2169,7 @@ class GoogleCloudDiscoveryengineV1SearchResponse( queryExpansionInfo: GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudDiscoveryengineV1SearchResponseSearchResult] + searchLinkPromotions: _list[GoogleCloudDiscoveryengineV1SearchLinkPromotion] sessionInfo: GoogleCloudDiscoveryengineV1SearchResponseSessionInfo summary: GoogleCloudDiscoveryengineV1SearchResponseSummary totalSize: int @@ -1887,14 +2290,56 @@ class GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata( summary: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1ServingConfigDataStore( +class GoogleCloudDiscoveryengineV1ServingConfig( typing_extensions.TypedDict, total=False ): - disabledForServing: bool + boostControlIds: _list[str] + createTime: str + displayName: str + dissociateControlIds: _list[str] + diversityLevel: str + filterControlIds: _list[str] + genericConfig: GoogleCloudDiscoveryengineV1ServingConfigGenericConfig + ignoreControlIds: _list[str] + mediaConfig: GoogleCloudDiscoveryengineV1ServingConfigMediaConfig + modelId: str + name: str + onewaySynonymsControlIds: _list[str] + promoteControlIds: _list[str] + rankingExpression: str + redirectControlIds: _list[str] + replacementControlIds: _list[str] + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsControlIds: _list[str] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigGenericConfig( + typing_extensions.TypedDict, total=False +): + contentSearchSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigMediaConfig( + typing_extensions.TypedDict, total=False +): + contentFreshnessCutoffDays: int + contentWatchedPercentageThreshold: float + contentWatchedSecondsThreshold: float + demoteContentWatchedPastDays: int + demotionEventType: str @typing.type_check_only class GoogleCloudDiscoveryengineV1Session(typing_extensions.TypedDict, total=False): + displayName: str endTime: str + isPinned: bool name: str startTime: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] @@ -1904,8 +2349,15 @@ class GoogleCloudDiscoveryengineV1Session(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudDiscoveryengineV1SessionTurn(typing_extensions.TypedDict, total=False): answer: str + detailedAnswer: GoogleCloudDiscoveryengineV1Answer query: GoogleCloudDiscoveryengineV1Query +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1SiteSearchEngine( typing_extensions.TypedDict, total=False @@ -2020,6 +2472,13 @@ class GoogleCloudDiscoveryengineV1TransactionInfo( transactionId: str value: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1UpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1UpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2039,6 +2498,7 @@ class GoogleCloudDiscoveryengineV1UserEvent(typing_extensions.TypedDict, total=F attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1CompletionInfo + conversionType: str dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1DocumentInfo] @@ -2049,6 +2509,7 @@ class GoogleCloudDiscoveryengineV1UserEvent(typing_extensions.TypedDict, total=F mediaInfo: GoogleCloudDiscoveryengineV1MediaInfo pageInfo: GoogleCloudDiscoveryengineV1PageInfo panel: GoogleCloudDiscoveryengineV1PanelInfo + panels: _list[GoogleCloudDiscoveryengineV1PanelInfo] promotionIds: _list[str] searchInfo: GoogleCloudDiscoveryengineV1SearchInfo sessionId: str @@ -2067,6 +2528,8 @@ class GoogleCloudDiscoveryengineV1WorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -2085,6 +2548,20 @@ class GoogleCloudDiscoveryengineV1alphaAclConfig( idpConfig: GoogleCloudDiscoveryengineV1alphaIdpConfig name: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaActionConfig( + typing_extensions.TypedDict, total=False +): + actionParams: dict[str, typing.Any] + isActionConfigured: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total=False): answerSkippedReasons: _list[ @@ -2098,20 +2575,24 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "JAIL_BREAKING_QUERY_IGNORED", "CUSTOMER_POLICY_VIOLATION", "NON_ANSWER_SEEKING_QUERY_IGNORED_V2", + "LOW_GROUNDED_ANSWER", ] ] answerText: str citations: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitation] completeTime: str createTime: str + groundingScore: float + groundingSupports: _list[GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport] name: str queryUnderstandingInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo ) references: _list[GoogleCloudDiscoveryengineV1alphaAnswerReference] relatedQuestions: _list[str] + safetyRatings: _list[GoogleCloudDiscoveryengineV1alphaSafetyRating] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED" + "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "STREAMING" ] steps: _list[GoogleCloudDiscoveryengineV1alphaAnswerStep] @@ -2129,6 +2610,16 @@ class GoogleCloudDiscoveryengineV1alphaAnswerCitationSource( ): referenceId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport( + typing_extensions.TypedDict, total=False +): + endIndex: str + groundingCheckRequired: bool + groundingScore: float + sources: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitationSource] + startIndex: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo( typing_extensions.TypedDict, total=False @@ -2286,10 +2777,40 @@ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse( targetSites: _list[GoogleCloudDiscoveryengineV1alphaTargetSite] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCondition( +class GoogleCloudDiscoveryengineV1alphaCmekConfig( typing_extensions.TypedDict, total=False ): - activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1alphaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCollection( + typing_extensions.TypedDict, total=False +): + createTime: str + dataConnector: GoogleCloudDiscoveryengineV1alphaDataConnector + displayName: str + name: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] @typing.type_check_only @@ -2306,6 +2827,55 @@ class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( endTime: str startTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRun( + typing_extensions.TypedDict, total=False +): + endTime: str + entityRuns: _list[GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun] + errors: _list[GoogleRpcStatus] + latestPauseTime: str + name: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + trigger: typing_extensions.Literal[ + "TRIGGER_UNSPECIFIED", "SCHEDULER", "INITIALIZATION", "RESUME", "MANUAL" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun( + typing_extensions.TypedDict, total=False +): + entityName: str + errorRecordCount: str + errors: _list[GoogleRpcStatus] + extractedRecordCount: str + indexedRecordCount: str + sourceApiRequestCount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + statsUpdateTime: str + syncType: typing_extensions.Literal["SYNC_TYPE_UNSPECIFIED", "FULL", "INCREMENTAL"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControl( typing_extensions.TypedDict, total=False @@ -2316,6 +2886,7 @@ class GoogleCloudDiscoveryengineV1alphaControl( displayName: str filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1alphaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -2340,6 +2911,7 @@ class GoogleCloudDiscoveryengineV1alphaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlFilterAction( @@ -2348,6 +2920,13 @@ class GoogleCloudDiscoveryengineV1alphaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -2360,6 +2939,12 @@ class GoogleCloudDiscoveryengineV1alphaControlSynonymsAction( ): synonyms: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + qpsTimeSeries: GoogleMonitoringV3TimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -2386,6 +2971,13 @@ class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -2400,31 +2992,58 @@ class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec( enableSearchAdaptor: bool @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( +class GoogleCloudDiscoveryengineV1alphaDataConnector( typing_extensions.TypedDict, total=False ): - createTime: str - displayName: str - metrics: dict[str, typing.Any] - modelState: typing_extensions.Literal[ - "MODEL_STATE_UNSPECIFIED", - "TRAINING_PAUSED", - "TRAINING", - "TRAINING_COMPLETE", - "READY_FOR_SERVING", - "TRAINING_FAILED", - "NO_IMPROVEMENT", - "INPUT_VALIDATION_FAILED", + actionConfig: GoogleCloudDiscoveryengineV1alphaActionConfig + autoRunDisabled: bool + blockingReasons: _list[ + typing_extensions.Literal[ + "BLOCKING_REASON_UNSPECIFIED", + "ALLOWLIST_STATIC_IP", + "ALLOWLIST_IN_SERVICE_ATTACHMENT", + ] ] - modelVersion: str + createTime: str + dataSource: str + destinationConfigs: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfig] + entities: _list[GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity] + errors: _list[GoogleRpcStatus] + identityRefreshInterval: str + identityScheduleConfig: GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig + kmsKeyName: str + lastSyncTime: str + latestPauseTime: str name: str - trainingStartTime: str + nextSyncTime: GoogleTypeDateTime + params: dict[str, typing.Any] + privateConnectivityProjectId: str + refreshInterval: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "FAILED", "RUNNING", "WARNING" + ] + staticIpAddresses: _list[str] + staticIpEnabled: bool + syncMode: typing_extensions.Literal["PERIODIC"] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity( + typing_extensions.TypedDict, total=False +): + dataStore: str + entityName: str + keyPropertyMappings: dict[str, typing.Any] + params: dict[str, typing.Any] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDataStore( typing_extensions.TypedDict, total=False ): aclEnabled: bool + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1alphaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -2440,12 +3059,16 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1alphaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -2458,6 +3081,37 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( startingSchema: GoogleCloudDiscoveryengineV1alphaSchema workspaceConfig: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + autoRefreshCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + userTriggeredCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -2472,6 +3126,13 @@ class GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2479,6 +3140,19 @@ class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSessionRequest( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -2486,6 +3160,21 @@ class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfig( + typing_extensions.TypedDict, total=False +): + destinations: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination] + key: str + params: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination( + typing_extensions.TypedDict, total=False +): + host: str + port: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata( typing_extensions.TypedDict, total=False @@ -2568,6 +3257,7 @@ class GoogleCloudDiscoveryengineV1alphaEngine(typing_extensions.TypedDict, total commonConfig: GoogleCloudDiscoveryengineV1alphaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -2710,6 +3400,20 @@ class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec( ): sampleQuerySet: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1alphaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( typing_extensions.TypedDict, total=False @@ -2746,6 +3450,7 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( "INDEXABLE_OPTION_UNSPECIFIED", "INDEXABLE_ENABLED", "INDEXABLE_DISABLED" ] keyPropertyType: str + metatagName: str recsFilterableOption: typing_extensions.Literal[ "FILTERABLE_OPTION_UNSPECIFIED", "FILTERABLE_ENABLED", "FILTERABLE_DISABLED" ] @@ -2757,12 +3462,26 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( "SEARCHABLE_OPTION_UNSPECIFIED", "SEARCHABLE_ENABLED", "SEARCHABLE_DISABLED" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetSessionRequest( + typing_extensions.TypedDict, total=False +): + includeAnswerDetails: bool + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): documentDataMap: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig( + typing_extensions.TypedDict, total=False +): + nextSyncTime: GoogleTypeDateTime + refreshInterval: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaIdpConfig( typing_extensions.TypedDict, total=False @@ -2884,10 +3603,21 @@ class GoogleCloudDiscoveryengineV1alphaLanguageInfo( region: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse( +class GoogleCloudDiscoveryengineV1alphaListSessionsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + orderBy: str + pageSize: int + pageToken: str + parent: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSessionsResponse( typing_extensions.TypedDict, total=False ): - models: _list[GoogleCloudDiscoveryengineV1alphaCustomTuningModel] + nextPageToken: str + sessions: _list[GoogleCloudDiscoveryengineV1alphaSession] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig( @@ -2895,6 +3625,26 @@ class GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig( ): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "DISABLED", "ENABLED"] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + dedicatedCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries + ) + error: GoogleRpcStatus + organicCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries + ) + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + googleOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + vertexAiOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaProject( typing_extensions.TypedDict, total=False @@ -3011,10 +3761,13 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata( ): createTime: str invalidUris: _list[str] + invalidUrisCount: int pendingCount: int quotaExceededCount: int successCount: int updateTime: str + urisNotMatchingTargetSites: _list[str] + urisNotMatchingTargetSitesCount: int validUrisCount: int @typing.type_check_only @@ -3044,6 +3797,46 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReas ] errorMessage: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSafetyRating( + typing_extensions.TypedDict, total=False +): + blocked: bool + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + probability: typing_extensions.Literal[ + "HARM_PROBABILITY_UNSPECIFIED", "NEGLIGIBLE", "LOW", "MEDIUM", "HIGH" + ] + probabilityScore: float + severity: typing_extensions.Literal[ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH", + ] + severityScore: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total=False): fieldConfigs: _list[GoogleCloudDiscoveryengineV1alphaFieldConfig] @@ -3051,6 +3844,16 @@ class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequest( typing_extensions.TypedDict, total=False @@ -3068,10 +3871,14 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec rankingExpression: str @@ -3203,7 +4010,9 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec( @@ -3256,6 +4065,12 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUndersta ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -3282,17 +4097,13 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec( ): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] -@typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaServingConfigDataStore( - typing_extensions.TypedDict, total=False -): - disabledForServing: bool - @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSession( typing_extensions.TypedDict, total=False ): + displayName: str endTime: str + isPinned: bool name: str startTime: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] @@ -3304,8 +4115,28 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn( typing_extensions.TypedDict, total=False ): answer: str + detailedAnswer: GoogleCloudDiscoveryengineV1alphaAnswer query: GoogleCloudDiscoveryengineV1alphaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( typing_extensions.TypedDict, total=False @@ -3318,6 +4149,12 @@ class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( typing_extensions.TypedDict, total=False @@ -3327,6 +4164,14 @@ class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSitemap( + typing_extensions.TypedDict, total=False +): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaTargetSite( typing_extensions.TypedDict, total=False @@ -3384,6 +4229,20 @@ class GoogleCloudDiscoveryengineV1alphaTuneEngineResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -3391,6 +4250,13 @@ class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateSessionRequest( + typing_extensions.TypedDict, total=False +): + session: GoogleCloudDiscoveryengineV1alphaSession + updateMask: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3410,6 +4276,8 @@ class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -3421,6 +4289,13 @@ class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( "GOOGLE_KEEP", ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3434,11 +4309,32 @@ class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCmekConfig( + typing_extensions.TypedDict, total=False +): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1betaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCondition( typing_extensions.TypedDict, total=False ): activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] @typing.type_check_only @@ -3463,6 +4359,7 @@ class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total displayName: str filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1betaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -3487,6 +4384,7 @@ class GoogleCloudDiscoveryengineV1betaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlFilterAction( @@ -3495,6 +4393,13 @@ class GoogleCloudDiscoveryengineV1betaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -3534,37 +4439,26 @@ class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata( +class GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata( typing_extensions.TypedDict, total=False ): createTime: str updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaCustomTuningModel( +class GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False ): createTime: str - displayName: str - metrics: dict[str, typing.Any] - modelState: typing_extensions.Literal[ - "MODEL_STATE_UNSPECIFIED", - "TRAINING_PAUSED", - "TRAINING", - "TRAINING_COMPLETE", - "READY_FOR_SERVING", - "TRAINING_FAILED", - "NO_IMPROVEMENT", - "INPUT_VALIDATION_FAILED", - ] - modelVersion: str - name: str - trainingStartTime: str + updateTime: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDataStore( typing_extensions.TypedDict, total=False ): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1betaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -3579,12 +4473,16 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1betaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1betaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -3597,6 +4495,23 @@ class GoogleCloudDiscoveryengineV1betaDataStore( startingSchema: GoogleCloudDiscoveryengineV1betaSchema workspaceConfig: GoogleCloudDiscoveryengineV1betaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -3611,6 +4526,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -3618,6 +4540,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3707,6 +4636,7 @@ class GoogleCloudDiscoveryengineV1betaEngine(typing_extensions.TypedDict, total= commonConfig: GoogleCloudDiscoveryengineV1betaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -3791,6 +4721,20 @@ class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec( ): sampleQuerySet: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1betaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata( typing_extensions.TypedDict, total=False @@ -3898,12 +4842,6 @@ class GoogleCloudDiscoveryengineV1betaLanguageInfo( normalizedLanguageCode: str region: str -@typing.type_check_only -class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse( - typing_extensions.TypedDict, total=False -): - models: _list[GoogleCloudDiscoveryengineV1betaCustomTuningModel] - @typing.type_check_only class GoogleCloudDiscoveryengineV1betaNaturalLanguageQueryUnderstandingConfig( typing_extensions.TypedDict, total=False @@ -3990,6 +4928,16 @@ class GoogleCloudDiscoveryengineV1betaSchema(typing_extensions.TypedDict, total= name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequest( typing_extensions.TypedDict, total=False @@ -4006,10 +4954,14 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec rankingExpression: str @@ -4141,7 +5093,9 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecM class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec( @@ -4194,6 +5148,12 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstan ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -4221,10 +5181,10 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec( mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaServingConfigDataStore( +class GoogleCloudDiscoveryengineV1betaSingleRegionKey( typing_extensions.TypedDict, total=False ): - disabledForServing: bool + kmsKey: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( @@ -4235,6 +5195,12 @@ class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSitemap(typing_extensions.TypedDict, total=False): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaTargetSite( typing_extensions.TypedDict, total=False @@ -4318,6 +5284,8 @@ class GoogleCloudDiscoveryengineV1betaWorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -4347,6 +5315,45 @@ class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): name: str response: dict[str, typing.Any] +@typing.type_check_only +class GoogleMonitoringV3Point(typing_extensions.TypedDict, total=False): + interval: GoogleMonitoringV3TimeInterval + value: GoogleMonitoringV3TypedValue + +@typing.type_check_only +class GoogleMonitoringV3TimeInterval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleMonitoringV3TimeSeries(typing_extensions.TypedDict, total=False): + description: str + metadata: GoogleApiMonitoredResourceMetadata + metric: GoogleApiMetric + metricKind: typing_extensions.Literal[ + "METRIC_KIND_UNSPECIFIED", "GAUGE", "DELTA", "CUMULATIVE" + ] + points: _list[GoogleMonitoringV3Point] + resource: GoogleApiMonitoredResource + unit: str + valueType: typing_extensions.Literal[ + "VALUE_TYPE_UNSPECIFIED", + "BOOL", + "INT64", + "DOUBLE", + "STRING", + "DISTRIBUTION", + "MONEY", + ] + +@typing.type_check_only +class GoogleMonitoringV3TypedValue(typing_extensions.TypedDict, total=False): + boolValue: bool + distributionValue: GoogleApiDistribution + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... @@ -4361,3 +5368,20 @@ class GoogleTypeDate(typing_extensions.TypedDict, total=False): day: int month: int year: int + +@typing.type_check_only +class GoogleTypeDateTime(typing_extensions.TypedDict, total=False): + day: int + hours: int + minutes: int + month: int + nanos: int + seconds: int + timeZone: GoogleTypeTimeZone + utcOffset: str + year: int + +@typing.type_check_only +class GoogleTypeTimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi index 1de0cd1b..0123b237 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi @@ -17,10 +17,48 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CmekConfigsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaCmekConfigHttpRequest: ... + def list( + self, *, parent: str, **kwargs: typing.Any + ) -> ( + GoogleCloudDiscoveryengineV1alphaListCmekConfigsResponseHttpRequest + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaCmekConfig = ..., + setDefault: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + @typing.type_check_only class CollectionsResource(googleapiclient.discovery.Resource): @typing.type_check_only class DataConnectorResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConnectorRunsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponseHttpRequest + | None + ): ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -43,6 +81,14 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleLongrunningListOperationsResponseHttpRequest | None ): ... + def startConnectorRun( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaConnectorRunHttpRequest: ... + def connectorRuns(self) -> ConnectorRunsResource: ... def operations(self) -> OperationsResource: ... @typing.type_check_only @@ -192,6 +238,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class CompletionSuggestionsResource( googleapiclient.discovery.Resource @@ -492,6 +548,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaSearchRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest + ): ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest + | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaAnswerQueryResponseHttpRequest: ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -512,7 +592,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaSessionHttpRequest: ... def list( self, @@ -567,6 +651,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): | None ): ... + @typing.type_check_only + class SitemapsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaSitemap = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + @typing.type_check_only class TargetSitesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -698,6 +795,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def operations(self) -> OperationsResource: ... + def sitemaps(self) -> SitemapsResource: ... def targetSites(self) -> TargetSitesResource: ... @typing.type_check_only @@ -768,8 +866,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1alphaDataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -828,6 +928,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionConfig(self) -> CompletionConfigResource: ... def completionSuggestions( self, ) -> CompletionSuggestionsResource: ... @@ -847,6 +948,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class ControlsResource(googleapiclient.discovery.Resource): def create( @@ -1030,6 +1141,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaSearchRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest + ): ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest + | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaAnswerQueryResponseHttpRequest: ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -1050,7 +1185,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaSessionHttpRequest: ... def list( self, @@ -1142,6 +1281,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaTuneEngineRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def completionConfig(self) -> CompletionConfigResource: ... def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def operations(self) -> OperationsResource: ... @@ -1168,6 +1308,50 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaCollectionHttpRequest: ... + def getDataConnector( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaDataConnectorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListCollectionsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListCollectionsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListCollectionsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListCollectionsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaCollection = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def updateDataConnector( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaDataConnector = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaDataConnectorHttpRequest: ... def dataConnector(self) -> DataConnectorResource: ... def dataStores(self) -> DataStoresResource: ... def engines(self) -> EnginesResource: ... @@ -1311,6 +1495,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class CompletionSuggestionsResource(googleapiclient.discovery.Resource): def import_( @@ -1572,6 +1766,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaSearchRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest: ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaSearchResponseHttpRequest + | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaAnswerQueryResponseHttpRequest + ): ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -1592,7 +1810,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaSessionHttpRequest: ... def list( self, @@ -1626,6 +1848,26 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class SiteSearchEngineResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SitemapsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaSitemap = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def fetch( + self, + *, + parent: str, + matcher_urisMatcher_uris: str | _list[str] = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseHttpRequest: ... + @typing.type_check_only class TargetSitesResource(googleapiclient.discovery.Resource): def batchCreate( @@ -1693,6 +1935,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def sitemaps(self) -> SitemapsResource: ... def targetSites(self) -> TargetSitesResource: ... @typing.type_check_only @@ -1765,8 +2008,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1alphaDataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -1822,6 +2067,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigHttpRequest ): ... def branches(self) -> BranchesResource: ... + def completionConfig(self) -> CompletionConfigResource: ... def completionSuggestions(self) -> CompletionSuggestionsResource: ... def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... @@ -1903,7 +2149,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ): ... @typing.type_check_only - class Identity_mapping_storesResource(googleapiclient.discovery.Resource): + class IdentityMappingStoresResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -2076,6 +2322,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): userEvent: str = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, @@ -2116,9 +2369,49 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def generateGroundedContent( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseHttpRequest: ... def getAclConfig( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudDiscoveryengineV1alphaAclConfigHttpRequest: ... + def getCmekConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaCmekConfigHttpRequest: ... + def obtainCrawlRate( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponseHttpRequest + ): ... + def removeDedicatedCrawlRate( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def setDedicatedCrawlRate( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def setUpDataConnector( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def updateAclConfig( self, *, @@ -2126,11 +2419,20 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaAclConfig = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaAclConfigHttpRequest: ... + def updateCmekConfig( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaCmekConfig = ..., + setDefault: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def cmekConfigs(self) -> CmekConfigsResource: ... def collections(self) -> CollectionsResource: ... def dataStores(self) -> DataStoresResource: ... def evaluations(self) -> EvaluationsResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... - def identity_mapping_stores(self) -> Identity_mapping_storesResource: ... + def identityMappingStores(self) -> IdentityMappingStoresResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... def requirements(self) -> RequirementsResource: ... @@ -2210,6 +2512,16 @@ class GoogleCloudDiscoveryengineV1alphaAclConfigHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaAclConfig: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerHttpRequest( googleapiclient.http.HttpRequest @@ -2270,6 +2582,26 @@ class GoogleCloudDiscoveryengineV1alphaChunkHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaChunk: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCmekConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaCmekConfig: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCollectionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaCollection: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2280,6 +2612,16 @@ class GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRunHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaConnectorRun: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlHttpRequest( googleapiclient.http.HttpRequest @@ -2310,6 +2652,16 @@ class GoogleCloudDiscoveryengineV1alphaConverseConversationResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaConverseConversationResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataConnectorHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaDataConnector: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDataStoreHttpRequest( googleapiclient.http.HttpRequest @@ -2370,6 +2722,26 @@ class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponseHttp num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2390,6 +2762,36 @@ class GoogleCloudDiscoveryengineV1alphaListChunksResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaListChunksResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListCmekConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListCmekConfigsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListCollectionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListCollectionsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2530,6 +2932,16 @@ class GoogleCloudDiscoveryengineV1alphaListTargetSitesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaProcessedDocumentHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi index 384e7e58..066b8412 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi @@ -59,11 +59,21 @@ class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): data: str extensions: _list[dict[str, typing.Any]] +@typing.type_check_only +class GoogleApiMetric(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + @typing.type_check_only class GoogleApiMonitoredResource(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] type: str +@typing.type_check_only +class GoogleApiMonitoredResourceMetadata(typing_extensions.TypedDict, total=False): + systemLabels: dict[str, typing.Any] + userLabels: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineLoggingErrorContext( typing_extensions.TypedDict, total=False @@ -111,6 +121,13 @@ class GoogleCloudDiscoveryengineLoggingSourceLocation( ): functionName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -124,9 +141,28 @@ class GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1TargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1CmekConfig(typing_extensions.TypedDict, total=False): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1SingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] @typing.type_check_only @@ -151,6 +187,7 @@ class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=Fal displayName: str filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1ControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -175,6 +212,7 @@ class GoogleCloudDiscoveryengineV1ControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlFilterAction( @@ -183,6 +221,13 @@ class GoogleCloudDiscoveryengineV1ControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1SearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlRedirectAction( typing_extensions.TypedDict, total=False @@ -225,6 +270,9 @@ class GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata( @typing.type_check_only class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=False): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1CmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -239,8 +287,10 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str name: str - servingConfigDataStore: GoogleCloudDiscoveryengineV1ServingConfigDataStore + servingConfigDataStore: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -253,6 +303,23 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F startingSchema: GoogleCloudDiscoveryengineV1Schema workspaceConfig: GoogleCloudDiscoveryengineV1WorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -267,6 +334,13 @@ class GoogleCloudDiscoveryengineV1DeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -361,6 +435,7 @@ class GoogleCloudDiscoveryengineV1Engine(typing_extensions.TypedDict, total=Fals commonConfig: GoogleCloudDiscoveryengineV1EngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -565,10 +640,134 @@ class GoogleCloudDiscoveryengineV1Schema(typing_extensions.TypedDict, total=Fals structSchema: dict[str, typing.Any] @typing.type_check_only -class GoogleCloudDiscoveryengineV1ServingConfigDataStore( +class GoogleCloudDiscoveryengineV1SearchLinkPromotion( typing_extensions.TypedDict, total=False ): - disabledForServing: bool + description: str + enabled: bool + imageUri: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec( + typing_extensions.TypedDict, total=False +): + chunkSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: ( + GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec + ) + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec + summarySpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec( + typing_extensions.TypedDict, total=False +): + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec( + typing_extensions.TypedDict, total=False +): + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec( + typing_extensions.TypedDict, total=False +): + ignoreAdversarialQuery: bool + ignoreJailBreakingQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: ( + GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec + ) + summaryResultCount: int + useSemanticChunks: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec( + typing_extensions.TypedDict, total=False +): + preamble: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec( + typing_extensions.TypedDict, total=False +): + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfig( + typing_extensions.TypedDict, total=False +): + boostControlIds: _list[str] + createTime: str + displayName: str + dissociateControlIds: _list[str] + diversityLevel: str + filterControlIds: _list[str] + genericConfig: GoogleCloudDiscoveryengineV1ServingConfigGenericConfig + ignoreControlIds: _list[str] + mediaConfig: GoogleCloudDiscoveryengineV1ServingConfigMediaConfig + modelId: str + name: str + onewaySynonymsControlIds: _list[str] + promoteControlIds: _list[str] + rankingExpression: str + redirectControlIds: _list[str] + replacementControlIds: _list[str] + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsControlIds: _list[str] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigGenericConfig( + typing_extensions.TypedDict, total=False +): + contentSearchSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigMediaConfig( + typing_extensions.TypedDict, total=False +): + contentFreshnessCutoffDays: int + contentWatchedPercentageThreshold: float + contentWatchedSecondsThreshold: float + demoteContentWatchedPastDays: int + demotionEventType: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str @typing.type_check_only class GoogleCloudDiscoveryengineV1SiteVerificationInfo( @@ -623,6 +822,13 @@ class GoogleCloudDiscoveryengineV1TrainCustomModelResponse( modelName: str modelStatus: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1UpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1UpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -642,6 +848,8 @@ class GoogleCloudDiscoveryengineV1WorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -660,6 +868,111 @@ class GoogleCloudDiscoveryengineV1alphaAclConfig( idpConfig: GoogleCloudDiscoveryengineV1alphaIdpConfig name: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaActionConfig( + typing_extensions.TypedDict, total=False +): + actionParams: dict[str, typing.Any] + isActionConfigured: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest( + typing_extensions.TypedDict, total=False +): + boostSpec: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec + includeTailSuggestions: bool + query: str + queryModel: str + suggestionTypes: _list[ + typing_extensions.Literal[ + "SUGGESTION_TYPE_UNSPECIFIED", + "QUERY", + "PEOPLE", + "CONTENT", + "RECENT_SEARCH", + "GOOGLE_WORKSPACE", + ] + ] + userInfo: GoogleCloudDiscoveryengineV1alphaUserInfo + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + condition: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponse( + typing_extensions.TypedDict, total=False +): + contentSuggestions: _list[ + GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion + ] + peopleSuggestions: _list[ + GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponsePersonSuggestion + ] + querySuggestions: _list[ + GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseQuerySuggestion + ] + recentSearchSuggestions: _list[ + GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseRecentSearchSuggestion + ] + tailMatchTriggered: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseContentSuggestion( + typing_extensions.TypedDict, total=False +): + contentType: typing_extensions.Literal[ + "CONTENT_TYPE_UNSPECIFIED", "GOOGLE_WORKSPACE", "THIRD_PARTY" + ] + dataStore: str + document: GoogleCloudDiscoveryengineV1alphaDocument + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponsePersonSuggestion( + typing_extensions.TypedDict, total=False +): + dataStore: str + document: GoogleCloudDiscoveryengineV1alphaDocument + personType: typing_extensions.Literal[ + "PERSON_TYPE_UNSPECIFIED", "CLOUD_IDENTITY", "THIRD_PARTY_IDENTITY" + ] + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseQuerySuggestion( + typing_extensions.TypedDict, total=False +): + completableFieldPaths: _list[str] + dataStore: _list[str] + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryResponseRecentSearchSuggestion( + typing_extensions.TypedDict, total=False +): + recentSearchTime: str + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAlloyDbSource( typing_extensions.TypedDict, total=False @@ -684,20 +997,24 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "JAIL_BREAKING_QUERY_IGNORED", "CUSTOMER_POLICY_VIOLATION", "NON_ANSWER_SEEKING_QUERY_IGNORED_V2", + "LOW_GROUNDED_ANSWER", ] ] answerText: str citations: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitation] completeTime: str createTime: str + groundingScore: float + groundingSupports: _list[GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport] name: str queryUnderstandingInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo ) references: _list[GoogleCloudDiscoveryengineV1alphaAnswerReference] relatedQuestions: _list[str] + safetyRatings: _list[GoogleCloudDiscoveryengineV1alphaSafetyRating] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED" + "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "STREAMING" ] steps: _list[GoogleCloudDiscoveryengineV1alphaAnswerStep] @@ -715,6 +1032,16 @@ class GoogleCloudDiscoveryengineV1alphaAnswerCitationSource( ): referenceId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport( + typing_extensions.TypedDict, total=False +): + endIndex: str + groundingCheckRequired: bool + groundingScore: float + sources: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitationSource] + startIndex: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest( typing_extensions.TypedDict, total=False @@ -723,6 +1050,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest( GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec ) asynchronousMode: bool + groundingSpec: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec query: GoogleCloudDiscoveryengineV1alphaQuery queryUnderstandingSpec: ( GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec @@ -763,6 +1091,15 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPro ): preamble: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + filteringLevel: typing_extensions.Literal[ + "FILTERING_LEVEL_UNSPECIFIED", "FILTERING_LEVEL_LOW", "FILTERING_LEVEL_HIGH" + ] + includeGroundingSupports: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec( typing_extensions.TypedDict, total=False @@ -790,6 +1127,13 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQ ): disable: bool maxRephraseSteps: int + modelSpec: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec( + typing_extensions.TypedDict, total=False +): + modelType: typing_extensions.Literal["MODEL_TYPE_UNSPECIFIED", "SMALL", "LARGE"] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec( @@ -802,6 +1146,30 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec( typing_extensions.TypedDict, total=False ): enable: bool + safetySettings: _list[ + GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpecSafetySetting( + typing_extensions.TypedDict, total=False +): + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + threshold: typing_extensions.Literal[ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF", + ] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec( @@ -823,6 +1191,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams( dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec] filter: str maxReturnResults: int + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec orderBy: str searchResultMode: typing_extensions.Literal[ "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" @@ -1174,9 +1543,18 @@ class GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse( typing_extensions.TypedDict, total=False ): citedChunks: _list[GoogleCloudDiscoveryengineV1alphaFactChunk] + citedFacts: _list[ + GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk + ] claims: _list[GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim] supportScore: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseCheckGroundingFactChunk( + typing_extensions.TypedDict, total=False +): + chunkText: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim( typing_extensions.TypedDict, total=False @@ -1210,9 +1588,7 @@ class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse( oldestMetricTimestamp: str requirement: GoogleCloudDiscoveryengineV1alphaRequirement requirementCondition: GoogleTypeExpr - requirementResult: typing_extensions.Literal[ - "UNKNOWN", "SUCCESS", "FAILURE", "WARNING" - ] + result: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult( @@ -1268,6 +1644,35 @@ class GoogleCloudDiscoveryengineV1alphaCloudSqlSource( projectId: str tableId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCmekConfig( + typing_extensions.TypedDict, total=False +): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1alphaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCollection( + typing_extensions.TypedDict, total=False +): + createTime: str + dataConnector: GoogleCloudDiscoveryengineV1alphaDataConnector + displayName: str + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse( typing_extensions.TypedDict, total=False @@ -1308,6 +1713,7 @@ class GoogleCloudDiscoveryengineV1alphaCondition( typing_extensions.TypedDict, total=False ): activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] @typing.type_check_only @@ -1324,6 +1730,55 @@ class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( endTime: str startTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRun( + typing_extensions.TypedDict, total=False +): + endTime: str + entityRuns: _list[GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun] + errors: _list[GoogleRpcStatus] + latestPauseTime: str + name: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + trigger: typing_extensions.Literal[ + "TRIGGER_UNSPECIFIED", "SCHEDULER", "INITIALIZATION", "RESUME", "MANUAL" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun( + typing_extensions.TypedDict, total=False +): + entityName: str + errorRecordCount: str + errors: _list[GoogleRpcStatus] + extractedRecordCount: str + indexedRecordCount: str + sourceApiRequestCount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + statsUpdateTime: str + syncType: typing_extensions.Literal["SYNC_TYPE_UNSPECIFIED", "FULL", "INCREMENTAL"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControl( typing_extensions.TypedDict, total=False @@ -1334,6 +1789,7 @@ class GoogleCloudDiscoveryengineV1alphaControl( displayName: str filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1alphaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -1358,6 +1814,7 @@ class GoogleCloudDiscoveryengineV1alphaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlFilterAction( @@ -1366,6 +1823,13 @@ class GoogleCloudDiscoveryengineV1alphaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -1428,6 +1892,12 @@ class GoogleCloudDiscoveryengineV1alphaConverseConversationResponse( reply: GoogleCloudDiscoveryengineV1alphaReply searchResults: _list[GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + qpsTimeSeries: GoogleMonitoringV3TimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -1454,6 +1924,13 @@ class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -1487,6 +1964,7 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( ): createTime: str displayName: str + errorMessage: str metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", @@ -1502,11 +1980,59 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( name: str trainingStartTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataConnector( + typing_extensions.TypedDict, total=False +): + actionConfig: GoogleCloudDiscoveryengineV1alphaActionConfig + autoRunDisabled: bool + blockingReasons: _list[ + typing_extensions.Literal[ + "BLOCKING_REASON_UNSPECIFIED", + "ALLOWLIST_STATIC_IP", + "ALLOWLIST_IN_SERVICE_ATTACHMENT", + ] + ] + createTime: str + dataSource: str + destinationConfigs: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfig] + entities: _list[GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity] + errors: _list[GoogleRpcStatus] + identityRefreshInterval: str + identityScheduleConfig: GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig + kmsKeyName: str + lastSyncTime: str + latestPauseTime: str + name: str + nextSyncTime: GoogleTypeDateTime + params: dict[str, typing.Any] + privateConnectivityProjectId: str + refreshInterval: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "FAILED", "RUNNING", "WARNING" + ] + staticIpAddresses: _list[str] + staticIpEnabled: bool + syncMode: typing_extensions.Literal["PERIODIC"] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity( + typing_extensions.TypedDict, total=False +): + dataStore: str + entityName: str + keyPropertyMappings: dict[str, typing.Any] + params: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDataStore( typing_extensions.TypedDict, total=False ): aclEnabled: bool + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1alphaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -1522,12 +2048,16 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1alphaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -1540,6 +2070,37 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( startingSchema: GoogleCloudDiscoveryengineV1alphaSchema workspaceConfig: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + autoRefreshCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + userTriggeredCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -1554,6 +2115,13 @@ class GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -1561,6 +2129,19 @@ class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSessionRequest( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -1568,6 +2149,21 @@ class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfig( + typing_extensions.TypedDict, total=False +): + destinations: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination] + key: str + params: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination( + typing_extensions.TypedDict, total=False +): + host: str + port: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata( typing_extensions.TypedDict, total=False @@ -1628,11 +2224,13 @@ class GoogleCloudDiscoveryengineV1alphaDocumentIndexStatus( ): errorSamples: _list[GoogleRpcStatus] indexTime: str + pendingMessage: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDocumentInfo( typing_extensions.TypedDict, total=False ): + conversionValue: float id: str joined: bool name: str @@ -1727,6 +2325,7 @@ class GoogleCloudDiscoveryengineV1alphaEngine(typing_extensions.TypedDict, total commonConfig: GoogleCloudDiscoveryengineV1alphaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -1920,6 +2519,20 @@ class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse( targetSites: _list[GoogleCloudDiscoveryengineV1alphaTargetSite] totalSize: int +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1alphaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFhirStoreSource( typing_extensions.TypedDict, total=False @@ -1927,6 +2540,7 @@ class GoogleCloudDiscoveryengineV1alphaFhirStoreSource( fhirStore: str gcsStagingDir: str resourceTypes: _list[str] + updateFromLatestPredefinedSchema: bool @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( @@ -1964,6 +2578,7 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( "INDEXABLE_OPTION_UNSPECIFIED", "INDEXABLE_ENABLED", "INDEXABLE_DISABLED" ] keyPropertyType: str + metatagName: str recsFilterableOption: typing_extensions.Literal[ "FILTERABLE_OPTION_UNSPECIFIED", "FILTERABLE_ENABLED", "FILTERABLE_DISABLED" ] @@ -1991,12 +2606,183 @@ class GoogleCloudDiscoveryengineV1alphaGcsSource( dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequest( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent] + generationSpec: ( + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerationSpec + ) + groundingSpec: ( + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSpec + ) + systemInstruction: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent + userLabels: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfiguration( + typing_extensions.TypedDict, total=False +): + predictor: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor( + typing_extensions.TypedDict, total=False +): + threshold: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGenerationSpec( + typing_extensions.TypedDict, total=False +): + frequencyPenalty: float + languageCode: str + maxOutputTokens: int + modelId: str + presencePenalty: float + seed: int + temperature: float + topK: int + topP: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource( + typing_extensions.TypedDict, total=False +): + googleSearchSource: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource + inlineSource: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource + searchSource: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalConfig: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestDynamicRetrievalConfiguration + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceInlineSource( + typing_extensions.TypedDict, total=False +): + attributes: dict[str, typing.Any] + groundingFacts: _list[GoogleCloudDiscoveryengineV1alphaGroundingFact] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSourceSearchSource( + typing_extensions.TypedDict, total=False +): + filter: str + maxResultCount: int + safeSearch: bool + servingConfig: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + groundingSources: _list[ + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentRequestGroundingSource + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponse( + typing_extensions.TypedDict, total=False +): + candidates: _list[ + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidate + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidate( + typing_extensions.TypedDict, total=False +): + content: GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent + groundingMetadata: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadata + groundingScore: float + index: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadata( + typing_extensions.TypedDict, total=False +): + groundingSupport: _list[ + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport + ] + retrievalMetadata: _list[ + GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata + ] + searchEntryPoint: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint + supportChunks: _list[GoogleCloudDiscoveryengineV1alphaFactChunk] + webSearchQueries: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + predictorMetadata: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata( + typing_extensions.TypedDict, total=False +): + prediction: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport( + typing_extensions.TypedDict, total=False +): + claimText: str + supportChunkIndices: _list[int] + supportScore: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalMetadata: GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata + source: typing_extensions.Literal[ + "SOURCE_UNSPECIFIED", + "VERTEX_AI_SEARCH", + "GOOGLE_SEARCH", + "INLINE_CONTENT", + "GOOGLE_MAPS", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint( + typing_extensions.TypedDict, total=False +): + renderedContent: str + sdkBlob: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetSessionRequest( + typing_extensions.TypedDict, total=False +): + includeAnswerDetails: bool + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): documentDataMap: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGroundedGenerationContent( + typing_extensions.TypedDict, total=False +): + parts: _list[GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart] + role: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGroundedGenerationContentPart( + typing_extensions.TypedDict, total=False +): + text: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaGroundingFact( typing_extensions.TypedDict, total=False @@ -2012,6 +2798,13 @@ class GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec( enableRelatedQuestions: bool maxRelatedQuestions: int +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig( + typing_extensions.TypedDict, total=False +): + nextSyncTime: GoogleTypeDateTime + refreshInterval: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaIdpConfig( typing_extensions.TypedDict, total=False @@ -2080,6 +2873,7 @@ class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest( errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig fhirStoreSource: GoogleCloudDiscoveryengineV1alphaFhirStoreSource firestoreSource: GoogleCloudDiscoveryengineV1alphaFirestoreSource + forceRefreshContent: bool gcsSource: GoogleCloudDiscoveryengineV1alphaGcsSource idField: str inlineSource: GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource @@ -2213,19 +3007,39 @@ class GoogleCloudDiscoveryengineV1alphaInterval( minimum: float @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaLanguageInfo( +class GoogleCloudDiscoveryengineV1alphaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListChunksResponse( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDiscoveryengineV1alphaChunk] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListCmekConfigsResponse( + typing_extensions.TypedDict, total=False +): + cmekConfigs: _list[GoogleCloudDiscoveryengineV1alphaCmekConfig] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListCollectionsResponse( typing_extensions.TypedDict, total=False ): - language: str - languageCode: str - normalizedLanguageCode: str - region: str + collections: _list[GoogleCloudDiscoveryengineV1alphaCollection] + nextPageToken: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaListChunksResponse( +class GoogleCloudDiscoveryengineV1alphaListConnectorRunsResponse( typing_extensions.TypedDict, total=False ): - chunks: _list[GoogleCloudDiscoveryengineV1alphaChunk] + connectorRuns: _list[GoogleCloudDiscoveryengineV1alphaConnectorRun] nextPageToken: str @typing.type_check_only @@ -2320,6 +3134,16 @@ class GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse( nextPageToken: str servingConfigs: _list[GoogleCloudDiscoveryengineV1alphaServingConfig] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSessionsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + orderBy: str + pageSize: int + pageToken: str + parent: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListSessionsResponse( typing_extensions.TypedDict, total=False @@ -2348,6 +3172,32 @@ class GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig( ): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "DISABLED", "ENABLED"] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaObtainCrawlRateRequest( + typing_extensions.TypedDict, total=False +): + crawlRateScope: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + dedicatedCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries + ) + error: GoogleRpcStatus + organicCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries + ) + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + googleOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + vertexAiOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaPageInfo( typing_extensions.TypedDict, total=False @@ -2362,6 +3212,7 @@ class GoogleCloudDiscoveryengineV1alphaPanelInfo( typing_extensions.TypedDict, total=False ): displayName: str + documents: _list[GoogleCloudDiscoveryengineV1alphaDocumentInfo] panelId: str panelPosition: int totalPanels: int @@ -2603,10 +3454,13 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata( ): createTime: str invalidUris: _list[str] + invalidUrisCount: int pendingCount: int quotaExceededCount: int successCount: int updateTime: str + urisNotMatchingTargetSites: _list[str] + urisNotMatchingTargetSitesCount: int validUrisCount: int @typing.type_check_only @@ -2643,6 +3497,26 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReas ] errorMessage: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateRequest( + typing_extensions.TypedDict, total=False +): + crawlRateScope: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaReply(typing_extensions.TypedDict, total=False): references: _list[GoogleCloudDiscoveryengineV1alphaReplyReference] @@ -2676,6 +3550,7 @@ class GoogleCloudDiscoveryengineV1alphaRequirement( description: str displayName: str metricBindings: _list[GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding] + severity: _list[str] thresholdBindings: _list[ GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding ] @@ -2698,10 +3573,18 @@ class GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding( class GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding( typing_extensions.TypedDict, total=False ): - blockingThreshold: float description: str + thresholdValues: _list[ + GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue + ] variableId: str - warningThreshold: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue( + typing_extensions.TypedDict, total=False +): + severity: str + value: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding( @@ -2716,6 +3599,32 @@ class GoogleCloudDiscoveryengineV1alphaResumeEngineRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSafetyRating( + typing_extensions.TypedDict, total=False +): + blocked: bool + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + probability: typing_extensions.Literal[ + "HARM_PROBABILITY_UNSPECIFIED", "NEGLIGIBLE", "LOW", "MEDIUM", "HIGH" + ] + probabilityScore: float + severity: typing_extensions.Literal[ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH", + ] + severityScore: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSampleQuery( typing_extensions.TypedDict, total=False @@ -2763,6 +3672,16 @@ class GoogleCloudDiscoveryengineV1alphaSearchInfo( orderBy: str searchQuery: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequest( typing_extensions.TypedDict, total=False @@ -2780,10 +3699,14 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec rankingExpression: str @@ -2915,7 +3838,9 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec( @@ -2968,6 +3893,12 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUndersta ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -3016,7 +3947,9 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponse( ) redirectUri: str results: _list[GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult] + searchLinkPromotions: _list[GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion] sessionInfo: GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo + suggestedQuery: str summary: GoogleCloudDiscoveryengineV1alphaSearchResponseSummary totalSize: int @@ -3065,8 +3998,15 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderst ): extractedFilters: str rewrittenQuery: str + sqlRequest: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest structuredExtractedFilter: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest( + typing_extensions.TypedDict, total=False +): + sqlQuery: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter( typing_extensions.TypedDict, total=False @@ -3265,6 +4205,10 @@ class GoogleCloudDiscoveryengineV1alphaServingConfig( modelId: str name: str onewaySynonymsControlIds: _list[str] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec + ) + promoteControlIds: _list[str] rankingExpression: str redirectControlIds: _list[str] replacementControlIds: _list[str] @@ -3278,12 +4222,6 @@ class GoogleCloudDiscoveryengineV1alphaServingConfig( synonymsControlIds: _list[str] updateTime: str -@typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaServingConfigDataStore( - typing_extensions.TypedDict, total=False -): - disabledForServing: bool - @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig( typing_extensions.TypedDict, total=False @@ -3297,13 +4235,16 @@ class GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig( contentFreshnessCutoffDays: int contentWatchedPercentageThreshold: float contentWatchedSecondsThreshold: float + demoteContentWatchedPastDays: int demotionEventType: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSession( typing_extensions.TypedDict, total=False ): + displayName: str endTime: str + isPinned: bool name: str startTime: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] @@ -3315,8 +4256,47 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn( typing_extensions.TypedDict, total=False ): answer: str + detailedAnswer: GoogleCloudDiscoveryengineV1alphaAnswer query: GoogleCloudDiscoveryengineV1alphaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateRequest( + typing_extensions.TypedDict, total=False +): + crawlRate: int + crawlRateScope: str + crawlType: typing_extensions.Literal[ + "CRAWL_TYPE_UNSPECIFIED", "USER_TRIGGERED", "AUTO_REFRESH" + ] + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTOMATIC", "EXPLICIT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorRequest( + typing_extensions.TypedDict, total=False +): + collectionDisplayName: str + collectionId: str + dataConnector: GoogleCloudDiscoveryengineV1alphaDataConnector + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( typing_extensions.TypedDict, total=False @@ -3337,6 +4317,12 @@ class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSiteSearchEngine( typing_extensions.TypedDict, total=False @@ -3352,6 +4338,14 @@ class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSitemap( + typing_extensions.TypedDict, total=False +): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSpannerSource( typing_extensions.TypedDict, total=False @@ -3362,6 +4356,16 @@ class GoogleCloudDiscoveryengineV1alphaSpannerSource( projectId: str tableId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest( + typing_extensions.TypedDict, total=False +): + entities: _list[str] + forceRefreshContent: bool + healthcareFhirResourceTypes: _list[str] + syncIdentity: bool + syncSinceTimestamp: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry( typing_extensions.TypedDict, total=False @@ -3471,6 +4475,20 @@ class GoogleCloudDiscoveryengineV1alphaTuneEngineResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -3478,6 +4496,13 @@ class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateSessionRequest( + typing_extensions.TypedDict, total=False +): + session: GoogleCloudDiscoveryengineV1alphaSession + updateMask: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3492,6 +4517,7 @@ class GoogleCloudDiscoveryengineV1alphaUserEvent( attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1alphaCompletionInfo + conversionType: str dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1alphaDocumentInfo] @@ -3502,6 +4528,7 @@ class GoogleCloudDiscoveryengineV1alphaUserEvent( mediaInfo: GoogleCloudDiscoveryengineV1alphaMediaInfo pageInfo: GoogleCloudDiscoveryengineV1alphaPageInfo panel: GoogleCloudDiscoveryengineV1alphaPanelInfo + panels: _list[GoogleCloudDiscoveryengineV1alphaPanelInfo] promotionIds: _list[str] searchInfo: GoogleCloudDiscoveryengineV1alphaSearchInfo sessionId: str @@ -3522,6 +4549,8 @@ class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -3533,6 +4562,13 @@ class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( "GOOGLE_KEEP", ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3546,11 +4582,32 @@ class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCmekConfig( + typing_extensions.TypedDict, total=False +): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1betaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCondition( typing_extensions.TypedDict, total=False ): activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] @typing.type_check_only @@ -3575,6 +4632,7 @@ class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total displayName: str filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1betaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -3599,6 +4657,7 @@ class GoogleCloudDiscoveryengineV1betaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlFilterAction( @@ -3607,6 +4666,13 @@ class GoogleCloudDiscoveryengineV1betaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -3646,37 +4712,26 @@ class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata( +class GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata( typing_extensions.TypedDict, total=False ): createTime: str updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaCustomTuningModel( +class GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False ): createTime: str - displayName: str - metrics: dict[str, typing.Any] - modelState: typing_extensions.Literal[ - "MODEL_STATE_UNSPECIFIED", - "TRAINING_PAUSED", - "TRAINING", - "TRAINING_COMPLETE", - "READY_FOR_SERVING", - "TRAINING_FAILED", - "NO_IMPROVEMENT", - "INPUT_VALIDATION_FAILED", - ] - modelVersion: str - name: str - trainingStartTime: str + updateTime: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDataStore( typing_extensions.TypedDict, total=False ): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1betaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -3691,12 +4746,16 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1betaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1betaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -3709,6 +4768,23 @@ class GoogleCloudDiscoveryengineV1betaDataStore( startingSchema: GoogleCloudDiscoveryengineV1betaSchema workspaceConfig: GoogleCloudDiscoveryengineV1betaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -3723,6 +4799,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -3730,6 +4813,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -3819,6 +4909,7 @@ class GoogleCloudDiscoveryengineV1betaEngine(typing_extensions.TypedDict, total= commonConfig: GoogleCloudDiscoveryengineV1betaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -3903,6 +4994,20 @@ class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec( ): sampleQuerySet: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1betaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata( typing_extensions.TypedDict, total=False @@ -4010,12 +5115,6 @@ class GoogleCloudDiscoveryengineV1betaLanguageInfo( normalizedLanguageCode: str region: str -@typing.type_check_only -class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse( - typing_extensions.TypedDict, total=False -): - models: _list[GoogleCloudDiscoveryengineV1betaCustomTuningModel] - @typing.type_check_only class GoogleCloudDiscoveryengineV1betaNaturalLanguageQueryUnderstandingConfig( typing_extensions.TypedDict, total=False @@ -4102,6 +5201,16 @@ class GoogleCloudDiscoveryengineV1betaSchema(typing_extensions.TypedDict, total= name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequest( typing_extensions.TypedDict, total=False @@ -4118,10 +5227,14 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec rankingExpression: str @@ -4253,7 +5366,9 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecM class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec( @@ -4306,6 +5421,12 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstan ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -4333,10 +5454,10 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec( mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaServingConfigDataStore( +class GoogleCloudDiscoveryengineV1betaSingleRegionKey( typing_extensions.TypedDict, total=False ): - disabledForServing: bool + kmsKey: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( @@ -4347,6 +5468,12 @@ class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSitemap(typing_extensions.TypedDict, total=False): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaTargetSite( typing_extensions.TypedDict, total=False @@ -4430,6 +5557,8 @@ class GoogleCloudDiscoveryengineV1betaWorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -4459,6 +5588,37 @@ class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): name: str response: dict[str, typing.Any] +@typing.type_check_only +class GoogleMonitoringV3Point(typing_extensions.TypedDict, total=False): + interval: GoogleMonitoringV3TimeInterval + value: GoogleMonitoringV3TypedValue + +@typing.type_check_only +class GoogleMonitoringV3TimeInterval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleMonitoringV3TimeSeries(typing_extensions.TypedDict, total=False): + description: str + metadata: GoogleApiMonitoredResourceMetadata + metric: GoogleApiMetric + metricKind: typing_extensions.Literal[ + "METRIC_KIND_UNSPECIFIED", "GAUGE", "DELTA", "CUMULATIVE" + ] + points: _list[GoogleMonitoringV3Point] + resource: GoogleApiMonitoredResource + unit: str + valueType: typing_extensions.Literal[ + "VALUE_TYPE_UNSPECIFIED", + "BOOL", + "INT64", + "DOUBLE", + "STRING", + "DISTRIBUTION", + "MONEY", + ] + @typing.type_check_only class GoogleMonitoringV3TypedValue(typing_extensions.TypedDict, total=False): boolValue: bool @@ -4482,9 +5642,26 @@ class GoogleTypeDate(typing_extensions.TypedDict, total=False): month: int year: int +@typing.type_check_only +class GoogleTypeDateTime(typing_extensions.TypedDict, total=False): + day: int + hours: int + minutes: int + month: int + nanos: int + seconds: int + timeZone: GoogleTypeTimeZone + utcOffset: str + year: int + @typing.type_check_only class GoogleTypeExpr(typing_extensions.TypedDict, total=False): description: str expression: str location: str title: str + +@typing.type_check_only +class GoogleTypeTimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi index cf6e14e7..674adb64 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi @@ -152,6 +152,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class CompletionSuggestionsResource( googleapiclient.discovery.Resource @@ -454,6 +464,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaSearchRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest + ): ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest + | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaAnswerQueryResponseHttpRequest: ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -474,7 +508,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaSessionHttpRequest: ... def list( self, @@ -529,6 +567,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): | None ): ... + @typing.type_check_only + class SitemapsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaSitemap = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + @typing.type_check_only class TargetSitesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -650,6 +701,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def operations(self) -> OperationsResource: ... + def sitemaps(self) -> SitemapsResource: ... def targetSites(self) -> TargetSitesResource: ... @typing.type_check_only @@ -722,8 +774,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1betaDataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -771,6 +825,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionConfig(self) -> CompletionConfigResource: ... def completionSuggestions( self, ) -> CompletionSuggestionsResource: ... @@ -790,6 +845,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class ControlsResource(googleapiclient.discovery.Resource): def create( @@ -975,6 +1040,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaSearchRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest + ): ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest + | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaAnswerQueryResponseHttpRequest: ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -995,7 +1084,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaSessionHttpRequest: ... def list( self, @@ -1087,6 +1180,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaTuneEngineRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def completionConfig(self) -> CompletionConfigResource: ... def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def operations(self) -> OperationsResource: ... @@ -1218,6 +1312,16 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionConfigResource(googleapiclient.discovery.Resource): + def completeQuery( + self, + *, + completionConfig: str, + body: GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseHttpRequest: ... + @typing.type_check_only class CompletionSuggestionsResource(googleapiclient.discovery.Resource): def import_( @@ -1478,6 +1582,29 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest | None ): ... + def searchLite( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaSearchRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest: ... + def searchLite_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaSearchResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaSearchResponseHttpRequest | None + ): ... + def streamAnswer( + self, + *, + servingConfig: str, + body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1betaAnswerQueryResponseHttpRequest + ): ... @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @@ -1498,7 +1625,11 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + includeAnswerDetails: bool = ..., + **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaSessionHttpRequest: ... def list( self, @@ -1532,6 +1663,26 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class SiteSearchEngineResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class SitemapsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaSitemap = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def fetch( + self, + *, + parent: str, + matcher_urisMatcher_uris: str | _list[str] = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseHttpRequest: ... + @typing.type_check_only class TargetSitesResource(googleapiclient.discovery.Resource): def batchCreate( @@ -1599,6 +1750,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def sitemaps(self) -> SitemapsResource: ... def targetSites(self) -> TargetSitesResource: ... @typing.type_check_only @@ -1671,8 +1823,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1betaDataStore = ..., + cmekConfigName: str = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + disableCmek: bool = ..., skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... @@ -1713,6 +1867,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaDataStoreHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionConfig(self) -> CompletionConfigResource: ... def completionSuggestions(self) -> CompletionSuggestionsResource: ... def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... @@ -1793,6 +1948,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1betaCheckGroundingResponseHttpRequest ): ... + @typing.type_check_only + class IdentityMappingStoresResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + + def operations(self) -> OperationsResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -1931,6 +2110,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): userEvent: str = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, @@ -1940,10 +2126,18 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaUserEventHttpRequest: ... + def generateGroundedContent( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseHttpRequest: ... def collections(self) -> CollectionsResource: ... def dataStores(self) -> DataStoresResource: ... def evaluations(self) -> EvaluationsResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... + def identityMappingStores(self) -> IdentityMappingStoresResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... def sampleQuerySets(self) -> SampleQuerySetsResource: ... @@ -2001,6 +2195,16 @@ class GoogleApiHttpBodyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> GoogleApiHttpBody: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerHttpRequest( googleapiclient.http.HttpRequest @@ -2131,6 +2335,26 @@ class GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponseHttpR num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi index b4dffda9..71584990 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi @@ -4,12 +4,76 @@ import typing_extensions _list = list +@typing.type_check_only +class GoogleApiDistribution(typing_extensions.TypedDict, total=False): + bucketCounts: _list[str] + bucketOptions: GoogleApiDistributionBucketOptions + count: str + exemplars: _list[GoogleApiDistributionExemplar] + mean: float + range: GoogleApiDistributionRange + sumOfSquaredDeviation: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptions(typing_extensions.TypedDict, total=False): + explicitBuckets: GoogleApiDistributionBucketOptionsExplicit + exponentialBuckets: GoogleApiDistributionBucketOptionsExponential + linearBuckets: GoogleApiDistributionBucketOptionsLinear + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExplicit( + typing_extensions.TypedDict, total=False +): + bounds: _list[float] + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExponential( + typing_extensions.TypedDict, total=False +): + growthFactor: float + numFiniteBuckets: int + scale: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsLinear( + typing_extensions.TypedDict, total=False +): + numFiniteBuckets: int + offset: float + width: float + +@typing.type_check_only +class GoogleApiDistributionExemplar(typing_extensions.TypedDict, total=False): + attachments: _list[dict[str, typing.Any]] + timestamp: str + value: float + +@typing.type_check_only +class GoogleApiDistributionRange(typing_extensions.TypedDict, total=False): + max: float + min: float + @typing.type_check_only class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): contentType: str data: str extensions: _list[dict[str, typing.Any]] +@typing.type_check_only +class GoogleApiMetric(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + +@typing.type_check_only +class GoogleApiMonitoredResource(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + +@typing.type_check_only +class GoogleApiMonitoredResourceMetadata(typing_extensions.TypedDict, total=False): + systemLabels: dict[str, typing.Any] + userLabels: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineLoggingErrorContext( typing_extensions.TypedDict, total=False @@ -57,6 +121,13 @@ class GoogleCloudDiscoveryengineLoggingSourceLocation( ): functionName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -70,9 +141,28 @@ class GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1TargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1CmekConfig(typing_extensions.TypedDict, total=False): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1SingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] @typing.type_check_only @@ -97,6 +187,7 @@ class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=Fal displayName: str filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1ControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -121,6 +212,7 @@ class GoogleCloudDiscoveryengineV1ControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlFilterAction( @@ -129,6 +221,13 @@ class GoogleCloudDiscoveryengineV1ControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1SearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1ControlRedirectAction( typing_extensions.TypedDict, total=False @@ -171,6 +270,9 @@ class GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata( @typing.type_check_only class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=False): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1AdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1CmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -185,8 +287,10 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str name: str - servingConfigDataStore: GoogleCloudDiscoveryengineV1ServingConfigDataStore + servingConfigDataStore: GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -199,6 +303,23 @@ class GoogleCloudDiscoveryengineV1DataStore(typing_extensions.TypedDict, total=F startingSchema: GoogleCloudDiscoveryengineV1Schema workspaceConfig: GoogleCloudDiscoveryengineV1WorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -213,6 +334,13 @@ class GoogleCloudDiscoveryengineV1DeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1DeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -307,6 +435,7 @@ class GoogleCloudDiscoveryengineV1Engine(typing_extensions.TypedDict, total=Fals commonConfig: GoogleCloudDiscoveryengineV1EngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -511,10 +640,134 @@ class GoogleCloudDiscoveryengineV1Schema(typing_extensions.TypedDict, total=Fals structSchema: dict[str, typing.Any] @typing.type_check_only -class GoogleCloudDiscoveryengineV1ServingConfigDataStore( +class GoogleCloudDiscoveryengineV1SearchLinkPromotion( typing_extensions.TypedDict, total=False ): - disabledForServing: bool + description: str + enabled: bool + imageUri: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec( + typing_extensions.TypedDict, total=False +): + chunkSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: ( + GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec + ) + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec + summarySpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec( + typing_extensions.TypedDict, total=False +): + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec( + typing_extensions.TypedDict, total=False +): + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec( + typing_extensions.TypedDict, total=False +): + ignoreAdversarialQuery: bool + ignoreJailBreakingQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: ( + GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec + ) + summaryResultCount: int + useSemanticChunks: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec( + typing_extensions.TypedDict, total=False +): + preamble: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec( + typing_extensions.TypedDict, total=False +): + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfig( + typing_extensions.TypedDict, total=False +): + boostControlIds: _list[str] + createTime: str + displayName: str + dissociateControlIds: _list[str] + diversityLevel: str + filterControlIds: _list[str] + genericConfig: GoogleCloudDiscoveryengineV1ServingConfigGenericConfig + ignoreControlIds: _list[str] + mediaConfig: GoogleCloudDiscoveryengineV1ServingConfigMediaConfig + modelId: str + name: str + onewaySynonymsControlIds: _list[str] + promoteControlIds: _list[str] + rankingExpression: str + redirectControlIds: _list[str] + replacementControlIds: _list[str] + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsControlIds: _list[str] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigGenericConfig( + typing_extensions.TypedDict, total=False +): + contentSearchSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ServingConfigMediaConfig( + typing_extensions.TypedDict, total=False +): + contentFreshnessCutoffDays: int + contentWatchedPercentageThreshold: float + contentWatchedSecondsThreshold: float + demoteContentWatchedPastDays: int + demotionEventType: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str @typing.type_check_only class GoogleCloudDiscoveryengineV1SiteVerificationInfo( @@ -569,6 +822,13 @@ class GoogleCloudDiscoveryengineV1TrainCustomModelResponse( modelName: str modelStatus: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1UpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1UpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -588,6 +848,8 @@ class GoogleCloudDiscoveryengineV1WorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -606,6 +868,20 @@ class GoogleCloudDiscoveryengineV1alphaAclConfig( idpConfig: GoogleCloudDiscoveryengineV1alphaIdpConfig name: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaActionConfig( + typing_extensions.TypedDict, total=False +): + actionParams: dict[str, typing.Any] + isActionConfigured: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig( + typing_extensions.TypedDict, total=False +): + disableAutomaticRefresh: bool + disableInitialIndex: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total=False): answerSkippedReasons: _list[ @@ -619,20 +895,24 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "JAIL_BREAKING_QUERY_IGNORED", "CUSTOMER_POLICY_VIOLATION", "NON_ANSWER_SEEKING_QUERY_IGNORED_V2", + "LOW_GROUNDED_ANSWER", ] ] answerText: str citations: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitation] completeTime: str createTime: str + groundingScore: float + groundingSupports: _list[GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport] name: str queryUnderstandingInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo ) references: _list[GoogleCloudDiscoveryengineV1alphaAnswerReference] relatedQuestions: _list[str] + safetyRatings: _list[GoogleCloudDiscoveryengineV1alphaSafetyRating] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED" + "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "STREAMING" ] steps: _list[GoogleCloudDiscoveryengineV1alphaAnswerStep] @@ -650,6 +930,16 @@ class GoogleCloudDiscoveryengineV1alphaAnswerCitationSource( ): referenceId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport( + typing_extensions.TypedDict, total=False +): + endIndex: str + groundingCheckRequired: bool + groundingScore: float + sources: _list[GoogleCloudDiscoveryengineV1alphaAnswerCitationSource] + startIndex: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo( typing_extensions.TypedDict, total=False @@ -806,11 +1096,41 @@ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1alphaTargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCmekConfig( + typing_extensions.TypedDict, total=False +): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1alphaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCollection( + typing_extensions.TypedDict, total=False +): + createTime: str + dataConnector: GoogleCloudDiscoveryengineV1alphaDataConnector + displayName: str + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCondition( typing_extensions.TypedDict, total=False ): activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] @typing.type_check_only @@ -827,6 +1147,55 @@ class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( endTime: str startTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRun( + typing_extensions.TypedDict, total=False +): + endTime: str + entityRuns: _list[GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun] + errors: _list[GoogleRpcStatus] + latestPauseTime: str + name: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + trigger: typing_extensions.Literal[ + "TRIGGER_UNSPECIFIED", "SCHEDULER", "INITIALIZATION", "RESUME", "MANUAL" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConnectorRunEntityRun( + typing_extensions.TypedDict, total=False +): + entityName: str + errorRecordCount: str + errors: _list[GoogleRpcStatus] + extractedRecordCount: str + indexedRecordCount: str + sourceApiRequestCount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "RUNNING", + "SUCCEEDED", + "FAILED", + "OVERRUN", + "CANCELLED", + "PENDING", + "WARNING", + ] + stateUpdateTime: str + statsUpdateTime: str + syncType: typing_extensions.Literal["SYNC_TYPE_UNSPECIFIED", "FULL", "INCREMENTAL"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControl( typing_extensions.TypedDict, total=False @@ -837,6 +1206,7 @@ class GoogleCloudDiscoveryengineV1alphaControl( displayName: str filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1alphaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -861,6 +1231,7 @@ class GoogleCloudDiscoveryengineV1alphaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlFilterAction( @@ -869,6 +1240,13 @@ class GoogleCloudDiscoveryengineV1alphaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -881,6 +1259,12 @@ class GoogleCloudDiscoveryengineV1alphaControlSynonymsAction( ): synonyms: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + qpsTimeSeries: GoogleMonitoringV3TimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -907,6 +1291,13 @@ class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -921,31 +1312,58 @@ class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec( enableSearchAdaptor: bool @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( +class GoogleCloudDiscoveryengineV1alphaDataConnector( typing_extensions.TypedDict, total=False ): - createTime: str - displayName: str - metrics: dict[str, typing.Any] - modelState: typing_extensions.Literal[ - "MODEL_STATE_UNSPECIFIED", - "TRAINING_PAUSED", - "TRAINING", - "TRAINING_COMPLETE", - "READY_FOR_SERVING", - "TRAINING_FAILED", - "NO_IMPROVEMENT", - "INPUT_VALIDATION_FAILED", + actionConfig: GoogleCloudDiscoveryengineV1alphaActionConfig + autoRunDisabled: bool + blockingReasons: _list[ + typing_extensions.Literal[ + "BLOCKING_REASON_UNSPECIFIED", + "ALLOWLIST_STATIC_IP", + "ALLOWLIST_IN_SERVICE_ATTACHMENT", + ] ] - modelVersion: str + createTime: str + dataSource: str + destinationConfigs: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfig] + entities: _list[GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity] + errors: _list[GoogleRpcStatus] + identityRefreshInterval: str + identityScheduleConfig: GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig + kmsKeyName: str + lastSyncTime: str + latestPauseTime: str name: str - trainingStartTime: str + nextSyncTime: GoogleTypeDateTime + params: dict[str, typing.Any] + privateConnectivityProjectId: str + refreshInterval: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "FAILED", "RUNNING", "WARNING" + ] + staticIpAddresses: _list[str] + staticIpEnabled: bool + syncMode: typing_extensions.Literal["PERIODIC"] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity( + typing_extensions.TypedDict, total=False +): + dataStore: str + entityName: str + keyPropertyMappings: dict[str, typing.Any] + params: dict[str, typing.Any] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDataStore( typing_extensions.TypedDict, total=False ): aclEnabled: bool + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1alphaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1alphaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -961,12 +1379,16 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1alphaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -979,6 +1401,37 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( startingSchema: GoogleCloudDiscoveryengineV1alphaSchema workspaceConfig: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + autoRefreshCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + userTriggeredCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -993,6 +1446,13 @@ class GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -1000,6 +1460,19 @@ class GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSessionRequest( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -1007,6 +1480,21 @@ class GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfig( + typing_extensions.TypedDict, total=False +): + destinations: _list[GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination] + key: str + params: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaDestinationConfigDestination( + typing_extensions.TypedDict, total=False +): + host: str + port: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata( typing_extensions.TypedDict, total=False @@ -1089,6 +1577,7 @@ class GoogleCloudDiscoveryengineV1alphaEngine(typing_extensions.TypedDict, total commonConfig: GoogleCloudDiscoveryengineV1alphaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -1231,6 +1720,20 @@ class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec( ): sampleQuerySet: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1alphaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( typing_extensions.TypedDict, total=False @@ -1267,6 +1770,7 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( "INDEXABLE_OPTION_UNSPECIFIED", "INDEXABLE_ENABLED", "INDEXABLE_DISABLED" ] keyPropertyType: str + metatagName: str recsFilterableOption: typing_extensions.Literal[ "FILTERABLE_OPTION_UNSPECIFIED", "FILTERABLE_ENABLED", "FILTERABLE_DISABLED" ] @@ -1278,12 +1782,26 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( "SEARCHABLE_OPTION_UNSPECIFIED", "SEARCHABLE_ENABLED", "SEARCHABLE_DISABLED" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetSessionRequest( + typing_extensions.TypedDict, total=False +): + includeAnswerDetails: bool + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): documentDataMap: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaIdentityScheduleConfig( + typing_extensions.TypedDict, total=False +): + nextSyncTime: GoogleTypeDateTime + refreshInterval: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaIdpConfig( typing_extensions.TypedDict, total=False @@ -1405,10 +1923,21 @@ class GoogleCloudDiscoveryengineV1alphaLanguageInfo( region: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse( +class GoogleCloudDiscoveryengineV1alphaListSessionsRequest( typing_extensions.TypedDict, total=False ): - models: _list[GoogleCloudDiscoveryengineV1alphaCustomTuningModel] + filter: str + orderBy: str + pageSize: int + pageToken: str + parent: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSessionsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sessions: _list[GoogleCloudDiscoveryengineV1alphaSession] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig( @@ -1416,6 +1945,26 @@ class GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig( ): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "DISABLED", "ENABLED"] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaObtainCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + dedicatedCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaDedicatedCrawlRateTimeSeries + ) + error: GoogleRpcStatus + organicCrawlRateTimeSeries: ( + GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries + ) + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaOrganicCrawlRateTimeSeries( + typing_extensions.TypedDict, total=False +): + googleOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + vertexAiOrganicCrawlRate: GoogleCloudDiscoveryengineV1alphaCrawlRateTimeSeries + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaProject( typing_extensions.TypedDict, total=False @@ -1532,10 +2081,13 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata( ): createTime: str invalidUris: _list[str] + invalidUrisCount: int pendingCount: int quotaExceededCount: int successCount: int updateTime: str + urisNotMatchingTargetSites: _list[str] + urisNotMatchingTargetSitesCount: int validUrisCount: int @typing.type_check_only @@ -1565,6 +2117,46 @@ class GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReas ] errorMessage: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRemoveDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSafetyRating( + typing_extensions.TypedDict, total=False +): + blocked: bool + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + probability: typing_extensions.Literal[ + "HARM_PROBABILITY_UNSPECIFIED", "NEGLIGIBLE", "LOW", "MEDIUM", "HIGH" + ] + probabilityScore: float + severity: typing_extensions.Literal[ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH", + ] + severityScore: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total=False): fieldConfigs: _list[GoogleCloudDiscoveryengineV1alphaFieldConfig] @@ -1572,6 +2164,16 @@ class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequest( typing_extensions.TypedDict, total=False @@ -1589,10 +2191,14 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec rankingExpression: str @@ -1724,7 +2330,9 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec( @@ -1777,6 +2385,12 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUndersta ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -1803,17 +2417,13 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec( ): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] -@typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaServingConfigDataStore( - typing_extensions.TypedDict, total=False -): - disabledForServing: bool - @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSession( typing_extensions.TypedDict, total=False ): + displayName: str endTime: str + isPinned: bool name: str startTime: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] @@ -1825,8 +2435,28 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn( typing_extensions.TypedDict, total=False ): answer: str + detailedAnswer: GoogleCloudDiscoveryengineV1alphaAnswer query: GoogleCloudDiscoveryengineV1alphaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetDedicatedCrawlRateResponse( + typing_extensions.TypedDict, total=False +): + error: GoogleRpcStatus + state: typing_extensions.Literal["STATE_UNSPECIFIED", "SUCCEEDED", "FAILED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUpDataConnectorMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( typing_extensions.TypedDict, total=False @@ -1839,6 +2469,12 @@ class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( typing_extensions.TypedDict, total=False @@ -1848,6 +2484,14 @@ class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSitemap( + typing_extensions.TypedDict, total=False +): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaTargetSite( typing_extensions.TypedDict, total=False @@ -1905,6 +2549,20 @@ class GoogleCloudDiscoveryengineV1alphaTuneEngineResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCmekConfigMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateCollectionMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -1912,6 +2570,13 @@ class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateSessionRequest( + typing_extensions.TypedDict, total=False +): + session: GoogleCloudDiscoveryengineV1alphaSession + updateMask: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -1923,24 +2588,124 @@ class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( class GoogleCloudDiscoveryengineV1alphaUserInfo( typing_extensions.TypedDict, total=False ): - userAgent: str - userId: str + userAgent: str + userId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( + typing_extensions.TypedDict, total=False +): + dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "GOOGLE_DRIVE", + "GOOGLE_MAIL", + "GOOGLE_SITES", + "GOOGLE_CALENDAR", + "GOOGLE_CHAT", + "GOOGLE_GROUPS", + "GOOGLE_KEEP", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequest( + typing_extensions.TypedDict, total=False +): + boostSpec: GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec + includeTailSuggestions: bool + query: str + queryModel: str + suggestionTypes: _list[ + typing_extensions.Literal[ + "SUGGESTION_TYPE_UNSPECIFIED", + "QUERY", + "PEOPLE", + "CONTENT", + "RECENT_SEARCH", + "GOOGLE_WORKSPACE", + ] + ] + userInfo: GoogleCloudDiscoveryengineV1betaUserInfo + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryRequestBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + condition: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponse( + typing_extensions.TypedDict, total=False +): + contentSuggestions: _list[ + GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseContentSuggestion + ] + peopleSuggestions: _list[ + GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponsePersonSuggestion + ] + querySuggestions: _list[ + GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseQuerySuggestion + ] + recentSearchSuggestions: _list[ + GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion + ] + tailMatchTriggered: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseContentSuggestion( + typing_extensions.TypedDict, total=False +): + contentType: typing_extensions.Literal[ + "CONTENT_TYPE_UNSPECIFIED", "GOOGLE_WORKSPACE", "THIRD_PARTY" + ] + dataStore: str + document: GoogleCloudDiscoveryengineV1betaDocument + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponsePersonSuggestion( + typing_extensions.TypedDict, total=False +): + dataStore: str + document: GoogleCloudDiscoveryengineV1betaDocument + personType: typing_extensions.Literal[ + "PERSON_TYPE_UNSPECIFIED", "CLOUD_IDENTITY", "THIRD_PARTY_IDENTITY" + ] + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseQuerySuggestion( + typing_extensions.TypedDict, total=False +): + completableFieldPaths: _list[str] + dataStore: _list[str] + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAdvancedCompleteQueryResponseRecentSearchSuggestion( + typing_extensions.TypedDict, total=False +): + recentSearchTime: str + suggestion: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaWorkspaceConfig( +class GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig( typing_extensions.TypedDict, total=False ): - dasherCustomerId: str - type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", - "GOOGLE_DRIVE", - "GOOGLE_MAIL", - "GOOGLE_SITES", - "GOOGLE_CALENDAR", - "GOOGLE_CHAT", - "GOOGLE_GROUPS", - "GOOGLE_KEEP", - ] + disableAutomaticRefresh: bool + disableInitialIndex: bool @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAlloyDbSource( @@ -1966,18 +2731,22 @@ class GoogleCloudDiscoveryengineV1betaAnswer(typing_extensions.TypedDict, total= "JAIL_BREAKING_QUERY_IGNORED", "CUSTOMER_POLICY_VIOLATION", "NON_ANSWER_SEEKING_QUERY_IGNORED_V2", + "LOW_GROUNDED_ANSWER", ] ] answerText: str citations: _list[GoogleCloudDiscoveryengineV1betaAnswerCitation] completeTime: str createTime: str + groundingScore: float + groundingSupports: _list[GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport] name: str queryUnderstandingInfo: GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo references: _list[GoogleCloudDiscoveryengineV1betaAnswerReference] relatedQuestions: _list[str] + safetyRatings: _list[GoogleCloudDiscoveryengineV1betaSafetyRating] state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED" + "STATE_UNSPECIFIED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "STREAMING" ] steps: _list[GoogleCloudDiscoveryengineV1betaAnswerStep] @@ -1995,6 +2764,16 @@ class GoogleCloudDiscoveryengineV1betaAnswerCitationSource( ): referenceId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport( + typing_extensions.TypedDict, total=False +): + endIndex: str + groundingCheckRequired: bool + groundingScore: float + sources: _list[GoogleCloudDiscoveryengineV1betaAnswerCitationSource] + startIndex: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerQueryRequest( typing_extensions.TypedDict, total=False @@ -2003,6 +2782,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequest( GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec ) asynchronousMode: bool + groundingSpec: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestGroundingSpec query: GoogleCloudDiscoveryengineV1betaQuery queryUnderstandingSpec: ( GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec @@ -2045,6 +2825,15 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecProm ): preamble: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + filteringLevel: typing_extensions.Literal[ + "FILTERING_LEVEL_UNSPECIFIED", "FILTERING_LEVEL_LOW", "FILTERING_LEVEL_HIGH" + ] + includeGroundingSupports: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec( typing_extensions.TypedDict, total=False @@ -2072,6 +2861,13 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQu ): disable: bool maxRephraseSteps: int + modelSpec: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec( + typing_extensions.TypedDict, total=False +): + modelType: typing_extensions.Literal["MODEL_TYPE_UNSPECIFIED", "SMALL", "LARGE"] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec( @@ -2084,6 +2880,30 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec( typing_extensions.TypedDict, total=False ): enable: bool + safetySettings: _list[ + GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpecSafetySetting + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpecSafetySetting( + typing_extensions.TypedDict, total=False +): + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + threshold: typing_extensions.Literal[ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF", + ] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec( @@ -2104,6 +2924,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams( dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec] filter: str maxReturnResults: int + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec orderBy: str searchResultMode: typing_extensions.Literal[ "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" @@ -2455,9 +3276,18 @@ class GoogleCloudDiscoveryengineV1betaCheckGroundingResponse( typing_extensions.TypedDict, total=False ): citedChunks: _list[GoogleCloudDiscoveryengineV1betaFactChunk] + citedFacts: _list[ + GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk + ] claims: _list[GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim] supportScore: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCheckGroundingResponseCheckGroundingFactChunk( + typing_extensions.TypedDict, total=False +): + chunkText: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim( typing_extensions.TypedDict, total=False @@ -2518,6 +3348,26 @@ class GoogleCloudDiscoveryengineV1betaCloudSqlSource( projectId: str tableId: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCmekConfig( + typing_extensions.TypedDict, total=False +): + isDefault: bool + kmsKey: str + kmsKeyVersion: str + lastRotationTimestampMicros: str + name: str + singleRegionKeys: _list[GoogleCloudDiscoveryengineV1betaSingleRegionKey] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "KEY_ISSUE", + "DELETING", + "UNUSABLE", + "ACTIVE_ROTATING", + ] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCompleteQueryResponse( typing_extensions.TypedDict, total=False @@ -2558,6 +3408,7 @@ class GoogleCloudDiscoveryengineV1betaCondition( typing_extensions.TypedDict, total=False ): activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryRegex: str queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] @typing.type_check_only @@ -2582,6 +3433,7 @@ class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total displayName: str filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction name: str + promoteAction: GoogleCloudDiscoveryengineV1betaControlPromoteAction redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction solutionType: typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -2606,6 +3458,7 @@ class GoogleCloudDiscoveryengineV1betaControlBoostAction( boost: float dataStore: str filter: str + fixedBoost: float @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlFilterAction( @@ -2614,6 +3467,13 @@ class GoogleCloudDiscoveryengineV1betaControlFilterAction( dataStore: str filter: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlPromoteAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + searchLinkPromotion: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaControlRedirectAction( typing_extensions.TypedDict, total=False @@ -2702,6 +3562,13 @@ class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCreateSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -2729,6 +3596,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( ): createTime: str displayName: str + errorMessage: str metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", @@ -2748,6 +3616,9 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( class GoogleCloudDiscoveryengineV1betaDataStore( typing_extensions.TypedDict, total=False ): + advancedSiteSearchConfig: GoogleCloudDiscoveryengineV1betaAdvancedSiteSearchConfig + billingEstimation: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation + cmekConfig: GoogleCloudDiscoveryengineV1betaCmekConfig contentConfig: typing_extensions.Literal[ "CONTENT_CONFIG_UNSPECIFIED", "NO_CONTENT", @@ -2762,12 +3633,16 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + isInfobotFaqDataStore: bool + kmsKeyName: str languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str naturalLanguageQueryUnderstandingConfig: ( GoogleCloudDiscoveryengineV1betaNaturalLanguageQueryUnderstandingConfig ) - servingConfigDataStore: GoogleCloudDiscoveryengineV1betaServingConfigDataStore + servingConfigDataStore: ( + GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore + ) solutionTypes: _list[ typing_extensions.Literal[ "SOLUTION_TYPE_UNSPECIFIED", @@ -2780,6 +3655,23 @@ class GoogleCloudDiscoveryengineV1betaDataStore( startingSchema: GoogleCloudDiscoveryengineV1betaSchema workspaceConfig: GoogleCloudDiscoveryengineV1betaWorkspaceConfig +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation( + typing_extensions.TypedDict, total=False +): + structuredDataSize: str + structuredDataUpdateTime: str + unstructuredDataSize: str + unstructuredDataUpdateTime: str + websiteDataSize: str + websiteDataUpdateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDataStoreServingConfigDataStore( + typing_extensions.TypedDict, total=False +): + disabledForServing: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -2794,6 +3686,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteIdentityMappingStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2801,6 +3700,13 @@ class GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDeleteSitemapMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata( typing_extensions.TypedDict, total=False @@ -2854,11 +3760,13 @@ class GoogleCloudDiscoveryengineV1betaDocumentIndexStatus( ): errorSamples: _list[GoogleRpcStatus] indexTime: str + pendingMessage: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentInfo( typing_extensions.TypedDict, total=False ): + conversionValue: float id: str joined: bool name: str @@ -2953,6 +3861,7 @@ class GoogleCloudDiscoveryengineV1betaEngine(typing_extensions.TypedDict, total= commonConfig: GoogleCloudDiscoveryengineV1betaEngineCommonConfig createTime: str dataStoreIds: _list[str] + disableAnalytics: bool displayName: str industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" @@ -3054,6 +3963,20 @@ class GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse( targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] totalSize: int +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponse( + typing_extensions.TypedDict, total=False +): + sitemapsMetadata: _list[ + GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaFetchSitemapsResponseSitemapMetadata( + typing_extensions.TypedDict, total=False +): + sitemap: GoogleCloudDiscoveryengineV1betaSitemap + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaFhirStoreSource( typing_extensions.TypedDict, total=False @@ -3061,6 +3984,7 @@ class GoogleCloudDiscoveryengineV1betaFhirStoreSource( fhirStore: str gcsStagingDir: str resourceTypes: _list[str] + updateFromLatestPredefinedSchema: bool @typing.type_check_only class GoogleCloudDiscoveryengineV1betaFirestoreSource( @@ -3078,6 +4002,170 @@ class GoogleCloudDiscoveryengineV1betaGcsSource( dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequest( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudDiscoveryengineV1betaGroundedGenerationContent] + generationSpec: ( + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec + ) + groundingSpec: ( + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec + ) + systemInstruction: GoogleCloudDiscoveryengineV1betaGroundedGenerationContent + userLabels: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfiguration( + typing_extensions.TypedDict, total=False +): + predictor: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfigurationDynamicRetrievalPredictor( + typing_extensions.TypedDict, total=False +): + threshold: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGenerationSpec( + typing_extensions.TypedDict, total=False +): + frequencyPenalty: float + languageCode: str + maxOutputTokens: int + modelId: str + presencePenalty: float + seed: int + temperature: float + topK: int + topP: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource( + typing_extensions.TypedDict, total=False +): + googleSearchSource: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource + inlineSource: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource + searchSource: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceSearchSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceGoogleSearchSource( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalConfig: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestDynamicRetrievalConfiguration + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceInlineSource( + typing_extensions.TypedDict, total=False +): + attributes: dict[str, typing.Any] + groundingFacts: _list[GoogleCloudDiscoveryengineV1betaGroundingFact] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSourceSearchSource( + typing_extensions.TypedDict, total=False +): + filter: str + maxResultCount: int + safeSearch: bool + servingConfig: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSpec( + typing_extensions.TypedDict, total=False +): + groundingSources: _list[ + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentRequestGroundingSource + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponse( + typing_extensions.TypedDict, total=False +): + candidates: _list[ + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidate( + typing_extensions.TypedDict, total=False +): + content: GoogleCloudDiscoveryengineV1betaGroundedGenerationContent + groundingMetadata: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata + groundingScore: float + index: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadata( + typing_extensions.TypedDict, total=False +): + groundingSupport: _list[ + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport + ] + retrievalMetadata: _list[ + GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata + ] + searchEntryPoint: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint + supportChunks: _list[GoogleCloudDiscoveryengineV1betaFactChunk] + webSearchQueries: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + predictorMetadata: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalPredictorMetadata( + typing_extensions.TypedDict, total=False +): + prediction: float + version: typing_extensions.Literal["VERSION_UNSPECIFIED", "V1_INDEPENDENT"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport( + typing_extensions.TypedDict, total=False +): + claimText: str + supportChunkIndices: _list[int] + supportScore: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata( + typing_extensions.TypedDict, total=False +): + dynamicRetrievalMetadata: GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataDynamicRetrievalMetadata + source: typing_extensions.Literal[ + "SOURCE_UNSPECIFIED", + "VERTEX_AI_SEARCH", + "GOOGLE_SEARCH", + "INLINE_CONTENT", + "GOOGLE_MAPS", + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint( + typing_extensions.TypedDict, total=False +): + renderedContent: str + sdkBlob: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGroundedGenerationContent( + typing_extensions.TypedDict, total=False +): + parts: _list[GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart] + role: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaGroundedGenerationContentPart( + typing_extensions.TypedDict, total=False +): + text: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaGroundingFact( typing_extensions.TypedDict, total=False @@ -3140,6 +4228,7 @@ class GoogleCloudDiscoveryengineV1betaImportDocumentsRequest( errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig fhirStoreSource: GoogleCloudDiscoveryengineV1betaFhirStoreSource firestoreSource: GoogleCloudDiscoveryengineV1betaFirestoreSource + forceRefreshContent: bool gcsSource: GoogleCloudDiscoveryengineV1betaGcsSource idField: str inlineSource: GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource @@ -3413,6 +4502,7 @@ class GoogleCloudDiscoveryengineV1betaPanelInfo( typing_extensions.TypedDict, total=False ): displayName: str + documents: _list[GoogleCloudDiscoveryengineV1betaDocumentInfo] panelId: str panelPosition: int totalPanels: int @@ -3630,6 +4720,32 @@ class GoogleCloudDiscoveryengineV1betaResumeEngineRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSafetyRating( + typing_extensions.TypedDict, total=False +): + blocked: bool + category: typing_extensions.Literal[ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + ] + probability: typing_extensions.Literal[ + "HARM_PROBABILITY_UNSPECIFIED", "NEGLIGIBLE", "LOW", "MEDIUM", "HIGH" + ] + probabilityScore: float + severity: typing_extensions.Literal[ + "HARM_SEVERITY_UNSPECIFIED", + "HARM_SEVERITY_NEGLIGIBLE", + "HARM_SEVERITY_LOW", + "HARM_SEVERITY_MEDIUM", + "HARM_SEVERITY_HIGH", + ] + severityScore: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSampleQuery( typing_extensions.TypedDict, total=False @@ -3676,6 +4792,16 @@ class GoogleCloudDiscoveryengineV1betaSearchInfo( orderBy: str searchQuery: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchLinkPromotion( + typing_extensions.TypedDict, total=False +): + description: str + enabled: bool + imageUri: str + title: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequest( typing_extensions.TypedDict, total=False @@ -3692,10 +4818,14 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest( languageCode: str naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int + oneBoxPageSize: int orderBy: str pageSize: int pageToken: str params: dict[str, typing.Any] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec + ) query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec rankingExpression: str @@ -3827,7 +4957,9 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecM class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): + boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec dataStore: str + filter: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec( @@ -3880,6 +5012,12 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstan ] geoSearchQueryDetectionFieldNames: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "DISABLED"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -3924,7 +5062,9 @@ class GoogleCloudDiscoveryengineV1betaSearchResponse( queryExpansionInfo: GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult] + searchLinkPromotions: _list[GoogleCloudDiscoveryengineV1betaSearchLinkPromotion] sessionInfo: GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo + suggestedQuery: str summary: GoogleCloudDiscoveryengineV1betaSearchResponseSummary totalSize: int @@ -3973,8 +5113,15 @@ class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUndersta ): extractedFilters: str rewrittenQuery: str + sqlRequest: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest structuredExtractedFilter: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoSqlRequest( + typing_extensions.TypedDict, total=False +): + sqlQuery: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter( typing_extensions.TypedDict, total=False @@ -4171,6 +5318,10 @@ class GoogleCloudDiscoveryengineV1betaServingConfig( modelId: str name: str onewaySynonymsControlIds: _list[str] + personalizationSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec + ) + promoteControlIds: _list[str] rankingExpression: str redirectControlIds: _list[str] replacementControlIds: _list[str] @@ -4184,12 +5335,6 @@ class GoogleCloudDiscoveryengineV1betaServingConfig( synonymsControlIds: _list[str] updateTime: str -@typing.type_check_only -class GoogleCloudDiscoveryengineV1betaServingConfigDataStore( - typing_extensions.TypedDict, total=False -): - disabledForServing: bool - @typing.type_check_only class GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig( typing_extensions.TypedDict, total=False @@ -4203,11 +5348,14 @@ class GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig( contentFreshnessCutoffDays: int contentWatchedPercentageThreshold: float contentWatchedSecondsThreshold: float + demoteContentWatchedPastDays: int demotionEventType: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSession(typing_extensions.TypedDict, total=False): + displayName: str endTime: str + isPinned: bool name: str startTime: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] @@ -4219,8 +5367,15 @@ class GoogleCloudDiscoveryengineV1betaSessionTurn( typing_extensions.TypedDict, total=False ): answer: str + detailedAnswer: GoogleCloudDiscoveryengineV1betaAnswer query: GoogleCloudDiscoveryengineV1betaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSingleRegionKey( + typing_extensions.TypedDict, total=False +): + kmsKey: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSiteSearchEngine( typing_extensions.TypedDict, total=False @@ -4236,6 +5391,12 @@ class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( ] verifyTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSitemap(typing_extensions.TypedDict, total=False): + createTime: str + name: str + uri: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSpannerSource( typing_extensions.TypedDict, total=False @@ -4376,6 +5537,7 @@ class GoogleCloudDiscoveryengineV1betaUserEvent( attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1betaCompletionInfo + conversionType: str dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1betaDocumentInfo] @@ -4386,6 +5548,7 @@ class GoogleCloudDiscoveryengineV1betaUserEvent( mediaInfo: GoogleCloudDiscoveryengineV1betaMediaInfo pageInfo: GoogleCloudDiscoveryengineV1betaPageInfo panel: GoogleCloudDiscoveryengineV1betaPanelInfo + panels: _list[GoogleCloudDiscoveryengineV1betaPanelInfo] promotionIds: _list[str] searchInfo: GoogleCloudDiscoveryengineV1betaSearchInfo sessionId: str @@ -4406,6 +5569,8 @@ class GoogleCloudDiscoveryengineV1betaWorkspaceConfig( typing_extensions.TypedDict, total=False ): dasherCustomerId: str + superAdminEmailAddress: str + superAdminServiceAccount: str type: typing_extensions.Literal[ "TYPE_UNSPECIFIED", "GOOGLE_DRIVE", @@ -4435,6 +5600,45 @@ class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): name: str response: dict[str, typing.Any] +@typing.type_check_only +class GoogleMonitoringV3Point(typing_extensions.TypedDict, total=False): + interval: GoogleMonitoringV3TimeInterval + value: GoogleMonitoringV3TypedValue + +@typing.type_check_only +class GoogleMonitoringV3TimeInterval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleMonitoringV3TimeSeries(typing_extensions.TypedDict, total=False): + description: str + metadata: GoogleApiMonitoredResourceMetadata + metric: GoogleApiMetric + metricKind: typing_extensions.Literal[ + "METRIC_KIND_UNSPECIFIED", "GAUGE", "DELTA", "CUMULATIVE" + ] + points: _list[GoogleMonitoringV3Point] + resource: GoogleApiMonitoredResource + unit: str + valueType: typing_extensions.Literal[ + "VALUE_TYPE_UNSPECIFIED", + "BOOL", + "INT64", + "DOUBLE", + "STRING", + "DISTRIBUTION", + "MONEY", + ] + +@typing.type_check_only +class GoogleMonitoringV3TypedValue(typing_extensions.TypedDict, total=False): + boolValue: bool + distributionValue: GoogleApiDistribution + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... @@ -4449,3 +5653,20 @@ class GoogleTypeDate(typing_extensions.TypedDict, total=False): day: int month: int year: int + +@typing.type_check_only +class GoogleTypeDateTime(typing_extensions.TypedDict, total=False): + day: int + hours: int + minutes: int + month: int + nanos: int + seconds: int + timeZone: GoogleTypeTimeZone + utcOffset: str + year: int + +@typing.type_check_only +class GoogleTypeTimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str diff --git a/googleapiclient-stubs/_apis/displayvideo/v2/resources.pyi b/googleapiclient-stubs/_apis/displayvideo/v2/resources.pyi index b07a9d21..9c5f0fd7 100644 --- a/googleapiclient-stubs/_apis/displayvideo/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/displayvideo/v2/resources.pyi @@ -27,145 +27,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): @typing.type_check_only class CampaignsResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class TargetingTypesResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class AssignedTargetingOptionsResource( - googleapiclient.discovery.Resource - ): - def get( - self, - *, - advertiserId: str, - campaignId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - assignedTargetingOptionId: str, - **kwargs: typing.Any, - ) -> AssignedTargetingOptionHttpRequest: ... - def list( - self, - *, - advertiserId: str, - campaignId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - filter: str = ..., - orderBy: str = ..., - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> ListCampaignAssignedTargetingOptionsResponseHttpRequest: ... - def list_next( - self, - previous_request: ListCampaignAssignedTargetingOptionsResponseHttpRequest, - previous_response: ListCampaignAssignedTargetingOptionsResponse, - ) -> ( - ListCampaignAssignedTargetingOptionsResponseHttpRequest | None - ): ... - - def assignedTargetingOptions( - self, - ) -> AssignedTargetingOptionsResource: ... - def create( self, *, advertiserId: str, body: Campaign = ..., **kwargs: typing.Any ) -> CampaignHttpRequest: ... @@ -190,22 +51,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): previous_request: ListCampaignsResponseHttpRequest, previous_response: ListCampaignsResponse, ) -> ListCampaignsResponseHttpRequest | None: ... - def listAssignedTargetingOptions( - self, - *, - advertiserId: str, - campaignId: str, - filter: str = ..., - orderBy: str = ..., - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> BulkListCampaignAssignedTargetingOptionsResponseHttpRequest: ... - def listAssignedTargetingOptions_next( - self, - previous_request: BulkListCampaignAssignedTargetingOptionsResponseHttpRequest, - previous_response: BulkListCampaignAssignedTargetingOptionsResponse, - ) -> BulkListCampaignAssignedTargetingOptionsResponseHttpRequest | None: ... def patch( self, *, @@ -215,7 +60,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> CampaignHttpRequest: ... - def targetingTypes(self) -> TargetingTypesResource: ... @typing.type_check_only class ChannelsResource(googleapiclient.discovery.Resource): @@ -355,266 +199,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): @typing.type_check_only class InsertionOrdersResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class TargetingTypesResource(googleapiclient.discovery.Resource): - @typing.type_check_only - class AssignedTargetingOptionsResource( - googleapiclient.discovery.Resource - ): - def create( - self, - *, - advertiserId: str, - insertionOrderId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - body: AssignedTargetingOption = ..., - **kwargs: typing.Any, - ) -> AssignedTargetingOptionHttpRequest: ... - def delete( - self, - *, - advertiserId: str, - insertionOrderId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - assignedTargetingOptionId: str, - **kwargs: typing.Any, - ) -> EmptyHttpRequest: ... - def get( - self, - *, - advertiserId: str, - insertionOrderId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - assignedTargetingOptionId: str, - **kwargs: typing.Any, - ) -> AssignedTargetingOptionHttpRequest: ... - def list( - self, - *, - advertiserId: str, - insertionOrderId: str, - targetingType: typing_extensions.Literal[ - "TARGETING_TYPE_UNSPECIFIED", - "TARGETING_TYPE_CHANNEL", - "TARGETING_TYPE_APP_CATEGORY", - "TARGETING_TYPE_APP", - "TARGETING_TYPE_URL", - "TARGETING_TYPE_DAY_AND_TIME", - "TARGETING_TYPE_AGE_RANGE", - "TARGETING_TYPE_REGIONAL_LOCATION_LIST", - "TARGETING_TYPE_PROXIMITY_LOCATION_LIST", - "TARGETING_TYPE_GENDER", - "TARGETING_TYPE_VIDEO_PLAYER_SIZE", - "TARGETING_TYPE_USER_REWARDED_CONTENT", - "TARGETING_TYPE_PARENTAL_STATUS", - "TARGETING_TYPE_CONTENT_INSTREAM_POSITION", - "TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION", - "TARGETING_TYPE_DEVICE_TYPE", - "TARGETING_TYPE_AUDIENCE_GROUP", - "TARGETING_TYPE_BROWSER", - "TARGETING_TYPE_HOUSEHOLD_INCOME", - "TARGETING_TYPE_ON_SCREEN_POSITION", - "TARGETING_TYPE_THIRD_PARTY_VERIFIER", - "TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION", - "TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION", - "TARGETING_TYPE_ENVIRONMENT", - "TARGETING_TYPE_CARRIER_AND_ISP", - "TARGETING_TYPE_OPERATING_SYSTEM", - "TARGETING_TYPE_DEVICE_MAKE_MODEL", - "TARGETING_TYPE_KEYWORD", - "TARGETING_TYPE_NEGATIVE_KEYWORD_LIST", - "TARGETING_TYPE_VIEWABILITY", - "TARGETING_TYPE_CATEGORY", - "TARGETING_TYPE_INVENTORY_SOURCE", - "TARGETING_TYPE_LANGUAGE", - "TARGETING_TYPE_AUTHORIZED_SELLER_STATUS", - "TARGETING_TYPE_GEO_REGION", - "TARGETING_TYPE_INVENTORY_SOURCE_GROUP", - "TARGETING_TYPE_EXCHANGE", - "TARGETING_TYPE_SUB_EXCHANGE", - "TARGETING_TYPE_POI", - "TARGETING_TYPE_BUSINESS_CHAIN", - "TARGETING_TYPE_CONTENT_DURATION", - "TARGETING_TYPE_CONTENT_STREAM_TYPE", - "TARGETING_TYPE_NATIVE_CONTENT_POSITION", - "TARGETING_TYPE_OMID", - "TARGETING_TYPE_AUDIO_CONTENT_TYPE", - "TARGETING_TYPE_CONTENT_GENRE", - "TARGETING_TYPE_YOUTUBE_VIDEO", - "TARGETING_TYPE_YOUTUBE_CHANNEL", - "TARGETING_TYPE_SESSION_POSITION", - ], - filter: str = ..., - orderBy: str = ..., - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> ( - ListInsertionOrderAssignedTargetingOptionsResponseHttpRequest - ): ... - def list_next( - self, - previous_request: ListInsertionOrderAssignedTargetingOptionsResponseHttpRequest, - previous_response: ListInsertionOrderAssignedTargetingOptionsResponse, - ) -> ( - ListInsertionOrderAssignedTargetingOptionsResponseHttpRequest - | None - ): ... - - def assignedTargetingOptions( - self, - ) -> AssignedTargetingOptionsResource: ... - def create( self, *, @@ -643,24 +227,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): previous_request: ListInsertionOrdersResponseHttpRequest, previous_response: ListInsertionOrdersResponse, ) -> ListInsertionOrdersResponseHttpRequest | None: ... - def listAssignedTargetingOptions( - self, - *, - advertiserId: str, - insertionOrderId: str, - filter: str = ..., - orderBy: str = ..., - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> BulkListInsertionOrderAssignedTargetingOptionsResponseHttpRequest: ... - def listAssignedTargetingOptions_next( - self, - previous_request: BulkListInsertionOrderAssignedTargetingOptionsResponseHttpRequest, - previous_response: BulkListInsertionOrderAssignedTargetingOptionsResponse, - ) -> ( - BulkListInsertionOrderAssignedTargetingOptionsResponseHttpRequest | None - ): ... def patch( self, *, @@ -670,7 +236,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> InsertionOrderHttpRequest: ... - def targetingTypes(self) -> TargetingTypesResource: ... @typing.type_check_only class InvoicesResource(googleapiclient.discovery.Resource): @@ -1929,56 +1494,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): previous_response: ListCustomListsResponse, ) -> ListCustomListsResponseHttpRequest | None: ... - @typing.type_check_only - class FirstAndThirdPartyAudiencesResource(googleapiclient.discovery.Resource): - def create( - self, - *, - body: FirstAndThirdPartyAudience = ..., - advertiserId: str = ..., - **kwargs: typing.Any, - ) -> FirstAndThirdPartyAudienceHttpRequest: ... - def editCustomerMatchMembers( - self, - *, - firstAndThirdPartyAudienceId: str, - body: EditCustomerMatchMembersRequest = ..., - **kwargs: typing.Any, - ) -> EditCustomerMatchMembersResponseHttpRequest: ... - def get( - self, - *, - firstAndThirdPartyAudienceId: str, - advertiserId: str = ..., - partnerId: str = ..., - **kwargs: typing.Any, - ) -> FirstAndThirdPartyAudienceHttpRequest: ... - def list( - self, - *, - advertiserId: str = ..., - filter: str = ..., - orderBy: str = ..., - pageSize: int = ..., - pageToken: str = ..., - partnerId: str = ..., - **kwargs: typing.Any, - ) -> ListFirstAndThirdPartyAudiencesResponseHttpRequest: ... - def list_next( - self, - previous_request: ListFirstAndThirdPartyAudiencesResponseHttpRequest, - previous_response: ListFirstAndThirdPartyAudiencesResponse, - ) -> ListFirstAndThirdPartyAudiencesResponseHttpRequest | None: ... - def patch( - self, - *, - firstAndThirdPartyAudienceId: str, - body: FirstAndThirdPartyAudience = ..., - advertiserId: str = ..., - updateMask: str = ..., - **kwargs: typing.Any, - ) -> FirstAndThirdPartyAudienceHttpRequest: ... - @typing.type_check_only class FloodlightGroupsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -2897,7 +2412,6 @@ class DisplayVideoResource(googleapiclient.discovery.Resource): def combinedAudiences(self) -> CombinedAudiencesResource: ... def customBiddingAlgorithms(self) -> CustomBiddingAlgorithmsResource: ... def customLists(self) -> CustomListsResource: ... - def firstAndThirdPartyAudiences(self) -> FirstAndThirdPartyAudiencesResource: ... def floodlightGroups(self) -> FloodlightGroupsResource: ... def googleAudiences(self) -> GoogleAudiencesResource: ... def guaranteedOrders(self) -> GuaranteedOrdersResource: ... @@ -3051,26 +2565,6 @@ class BulkListAssignedTargetingOptionsResponseHttpRequest( num_retries: int = 0, ) -> BulkListAssignedTargetingOptionsResponse: ... -@typing.type_check_only -class BulkListCampaignAssignedTargetingOptionsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> BulkListCampaignAssignedTargetingOptionsResponse: ... - -@typing.type_check_only -class BulkListInsertionOrderAssignedTargetingOptionsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> BulkListInsertionOrderAssignedTargetingOptionsResponse: ... - @typing.type_check_only class BulkUpdateLineItemsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -3159,14 +2653,6 @@ class DuplicateLineItemResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> DuplicateLineItemResponse: ... -@typing.type_check_only -class EditCustomerMatchMembersResponseHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> EditCustomerMatchMembersResponse: ... - @typing.type_check_only class EditGuaranteedOrderReadAccessorsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -3185,14 +2671,6 @@ class EmptyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Empty: ... -@typing.type_check_only -class FirstAndThirdPartyAudienceHttpRequest(googleapiclient.http.HttpRequest): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> FirstAndThirdPartyAudience: ... - @typing.type_check_only class FloodlightActivityHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -3307,16 +2785,6 @@ class ListAssignedLocationsResponseHttpRequest(googleapiclient.http.HttpRequest) num_retries: int = 0, ) -> ListAssignedLocationsResponse: ... -@typing.type_check_only -class ListCampaignAssignedTargetingOptionsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> ListCampaignAssignedTargetingOptionsResponse: ... - @typing.type_check_only class ListCampaignsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -3373,16 +2841,6 @@ class ListCustomListsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListCustomListsResponse: ... -@typing.type_check_only -class ListFirstAndThirdPartyAudiencesResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> ListFirstAndThirdPartyAudiencesResponse: ... - @typing.type_check_only class ListFloodlightActivitiesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -3407,16 +2865,6 @@ class ListGuaranteedOrdersResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListGuaranteedOrdersResponse: ... -@typing.type_check_only -class ListInsertionOrderAssignedTargetingOptionsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> ListInsertionOrderAssignedTargetingOptionsResponse: ... - @typing.type_check_only class ListInsertionOrdersResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi b/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi index 5ed0b530..042a7fbf 100644 --- a/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi @@ -246,6 +246,11 @@ class AssetAssociation(typing_extensions.TypedDict, total=False): "ASSET_ROLE_RATING", "ASSET_ROLE_ICON", "ASSET_ROLE_COVER_IMAGE", + "ASSET_ROLE_BACKGROUND_COLOR", + "ASSET_ROLE_ACCENT_COLOR", + "ASSET_ROLE_REQUIRE_LOGO", + "ASSET_ROLE_REQUIRE_IMAGE", + "ASSET_ROLE_ENABLE_ASSET_ENHANCEMENTS", ] @typing.type_check_only @@ -610,20 +615,6 @@ class BulkListAssignedTargetingOptionsResponse( lineItemAssignedTargetingOptions: _list[LineItemAssignedTargetingOption] nextPageToken: str -@typing.type_check_only -class BulkListCampaignAssignedTargetingOptionsResponse( - typing_extensions.TypedDict, total=False -): - assignedTargetingOptions: _list[AssignedTargetingOption] - nextPageToken: str - -@typing.type_check_only -class BulkListInsertionOrderAssignedTargetingOptionsResponse( - typing_extensions.TypedDict, total=False -): - assignedTargetingOptions: _list[AssignedTargetingOption] - nextPageToken: str - @typing.type_check_only class BulkUpdateLineItemsRequest(typing_extensions.TypedDict, total=False): lineItemIds: _list[str] @@ -829,29 +820,6 @@ class CommonInStreamAttribute(typing_extensions.TypedDict, total=False): trackingUrl: str video: YoutubeVideoDetails -@typing.type_check_only -class Consent(typing_extensions.TypedDict, total=False): - adPersonalization: typing_extensions.Literal[ - "CONSENT_STATUS_UNSPECIFIED", "CONSENT_STATUS_GRANTED", "CONSENT_STATUS_DENIED" - ] - adUserData: typing_extensions.Literal[ - "CONSENT_STATUS_UNSPECIFIED", "CONSENT_STATUS_GRANTED", "CONSENT_STATUS_DENIED" - ] - -@typing.type_check_only -class ContactInfo(typing_extensions.TypedDict, total=False): - countryCode: str - hashedEmails: _list[str] - hashedFirstName: str - hashedLastName: str - hashedPhoneNumbers: _list[str] - zipCodes: _list[str] - -@typing.type_check_only -class ContactInfoList(typing_extensions.TypedDict, total=False): - consent: Consent - contactInfos: _list[ContactInfo] - @typing.type_check_only class ContentDurationAssignedTargetingOptionDetails( typing_extensions.TypedDict, total=False @@ -1059,6 +1027,7 @@ class CreateSdfDownloadTaskRequest(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only @@ -1097,6 +1066,7 @@ class Creative(typing_extensions.TypedDict, total=False): "CREATIVE_TYPE_PUBLISHER_HOSTED", "CREATIVE_TYPE_NATIVE_VIDEO", "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO", + "CREATIVE_TYPE_ASSET_BASED_CREATIVE", ] dimensions: Dimensions displayName: str @@ -1179,6 +1149,7 @@ class CreativeConfig(typing_extensions.TypedDict, total=False): "CREATIVE_TYPE_PUBLISHER_HOSTED", "CREATIVE_TYPE_NATIVE_VIDEO", "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO", + "CREATIVE_TYPE_ASSET_BASED_CREATIVE", ] displayCreativeConfig: InventorySourceDisplayCreativeConfig videoCreativeConfig: InventorySourceVideoCreativeConfig @@ -1582,18 +1553,6 @@ class DuplicateLineItemRequest(typing_extensions.TypedDict, total=False): class DuplicateLineItemResponse(typing_extensions.TypedDict, total=False): duplicateLineItemId: str -@typing.type_check_only -class EditCustomerMatchMembersRequest(typing_extensions.TypedDict, total=False): - addedContactInfoList: ContactInfoList - addedMobileDeviceIdList: MobileDeviceIdList - advertiserId: str - removedContactInfoList: ContactInfoList - removedMobileDeviceIdList: MobileDeviceIdList - -@typing.type_check_only -class EditCustomerMatchMembersResponse(typing_extensions.TypedDict, total=False): - firstAndThirdPartyAudienceId: str - @typing.type_check_only class EditGuaranteedOrderReadAccessorsRequest(typing_extensions.TypedDict, total=False): addedAdvertisers: _list[str] @@ -1732,6 +1691,8 @@ class ExchangeAssignedTargetingOptionDetails(typing_extensions.TypedDict, total= "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] @typing.type_check_only @@ -1824,6 +1785,8 @@ class ExchangeConfigEnabledExchange(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] googleAdManagerAgencyId: str googleAdManagerBuyerNetworkId: str @@ -1915,6 +1878,8 @@ class ExchangeReviewStatus(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] status: typing_extensions.Literal[ "REVIEW_STATUS_UNSPECIFIED", @@ -2009,6 +1974,8 @@ class ExchangeTargetingOptionDetails(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] @typing.type_check_only @@ -2022,49 +1989,6 @@ class ExitEvent(typing_extensions.TypedDict, total=False): ] url: str -@typing.type_check_only -class FirstAndThirdPartyAudience(typing_extensions.TypedDict, total=False): - activeDisplayAudienceSize: str - appId: str - audienceSource: typing_extensions.Literal[ - "AUDIENCE_SOURCE_UNSPECIFIED", - "DISPLAY_VIDEO_360", - "CAMPAIGN_MANAGER", - "AD_MANAGER", - "SEARCH_ADS_360", - "YOUTUBE", - "ADS_DATA_HUB", - ] - audienceType: typing_extensions.Literal[ - "AUDIENCE_TYPE_UNSPECIFIED", - "CUSTOMER_MATCH_CONTACT_INFO", - "CUSTOMER_MATCH_DEVICE_ID", - "CUSTOMER_MATCH_USER_ID", - "ACTIVITY_BASED", - "FREQUENCY_CAP", - "TAG_BASED", - "YOUTUBE_USERS", - "LICENSED", - ] - contactInfoList: ContactInfoList - description: str - displayAudienceSize: str - displayDesktopAudienceSize: str - displayMobileAppAudienceSize: str - displayMobileWebAudienceSize: str - displayName: str - firstAndThirdPartyAudienceId: str - firstAndThirdPartyAudienceType: typing_extensions.Literal[ - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_UNSPECIFIED", - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_FIRST_PARTY", - "FIRST_AND_THIRD_PARTY_AUDIENCE_TYPE_THIRD_PARTY", - ] - gmailAudienceSize: str - membershipDurationDays: str - mobileDeviceIdList: MobileDeviceIdList - name: str - youtubeAudienceSize: str - @typing.type_check_only class FirstAndThirdPartyAudienceGroup(typing_extensions.TypedDict, total=False): settings: _list[FirstAndThirdPartyAudienceTargetingSetting] @@ -2391,6 +2315,8 @@ class GuaranteedOrder(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] guaranteedOrderId: str legacyGuaranteedOrderId: str @@ -2691,6 +2617,8 @@ class InventorySource(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] guaranteedOrderId: str inventorySourceId: str @@ -2961,13 +2889,6 @@ class ListAssignedLocationsResponse(typing_extensions.TypedDict, total=False): assignedLocations: _list[AssignedLocation] nextPageToken: str -@typing.type_check_only -class ListCampaignAssignedTargetingOptionsResponse( - typing_extensions.TypedDict, total=False -): - assignedTargetingOptions: _list[AssignedTargetingOption] - nextPageToken: str - @typing.type_check_only class ListCampaignsResponse(typing_extensions.TypedDict, total=False): campaigns: _list[Campaign] @@ -3003,11 +2924,6 @@ class ListCustomListsResponse(typing_extensions.TypedDict, total=False): customLists: _list[CustomList] nextPageToken: str -@typing.type_check_only -class ListFirstAndThirdPartyAudiencesResponse(typing_extensions.TypedDict, total=False): - firstAndThirdPartyAudiences: _list[FirstAndThirdPartyAudience] - nextPageToken: str - @typing.type_check_only class ListFloodlightActivitiesResponse(typing_extensions.TypedDict, total=False): floodlightActivities: _list[FloodlightActivity] @@ -3023,13 +2939,6 @@ class ListGuaranteedOrdersResponse(typing_extensions.TypedDict, total=False): guaranteedOrders: _list[GuaranteedOrder] nextPageToken: str -@typing.type_check_only -class ListInsertionOrderAssignedTargetingOptionsResponse( - typing_extensions.TypedDict, total=False -): - assignedTargetingOptions: _list[AssignedTargetingOption] - nextPageToken: str - @typing.type_check_only class ListInsertionOrdersResponse(typing_extensions.TypedDict, total=False): insertionOrders: _list[InsertionOrder] @@ -3203,11 +3112,6 @@ class MobileApp(typing_extensions.TypedDict, total=False): platform: typing_extensions.Literal["PLATFORM_UNSPECIFIED", "IOS", "ANDROID"] publisher: str -@typing.type_check_only -class MobileDeviceIdList(typing_extensions.TypedDict, total=False): - consent: Consent - mobileDeviceIds: _list[str] - @typing.type_check_only class Money(typing_extensions.TypedDict, total=False): currencyCode: str @@ -3694,6 +3598,7 @@ class SdfConfig(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only @@ -3719,6 +3624,7 @@ class SdfDownloadTaskMetadata(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi b/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi index e8c5d0cf..231723a3 100644 --- a/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi @@ -125,6 +125,51 @@ class AdUrl(typing_extensions.TypedDict, total=False): @typing.type_check_only class Adloox(typing_extensions.TypedDict, total=False): + adultExplicitSexualContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + armsAmmunitionContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + crimeHarmfulActsIndividualsSocietyHumanRightsViolationsContent: ( + typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + ) + deathInjuryMilitaryConflictContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + debatedSensitiveSocialIssueContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + displayIabViewability: typing_extensions.Literal[ + "DISPLAY_IAB_VIEWABILITY_UNSPECIFIED", + "DISPLAY_IAB_VIEWABILITY_10", + "DISPLAY_IAB_VIEWABILITY_20", + "DISPLAY_IAB_VIEWABILITY_35", + "DISPLAY_IAB_VIEWABILITY_50", + "DISPLAY_IAB_VIEWABILITY_75", + ] excludedAdlooxCategories: _list[ typing_extensions.Literal[ "ADLOOX_UNSPECIFIED", @@ -138,6 +183,66 @@ class Adloox(typing_extensions.TypedDict, total=False): "FRAUD", ] ] + excludedFraudIvtMfaCategories: _list[ + typing_extensions.Literal["FRAUD_IVT_MFA_CATEGORY_UNSPECIFIED", "FRAUD_IVT_MFA"] + ] + hateSpeechActsAggressionContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + illegalDrugsTobaccoEcigarettesVapingAlcoholContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + misinformationContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + obscenityProfanityContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + onlinePiracyContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + spamHarmfulContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + terrorismContent: typing_extensions.Literal[ + "GARM_RISK_EXCLUSION_UNSPECIFIED", + "GARM_RISK_EXCLUSION_FLOOR", + "GARM_RISK_EXCLUSION_HIGH", + "GARM_RISK_EXCLUSION_MEDIUM", + "GARM_RISK_EXCLUSION_LOW", + ] + videoIabViewability: typing_extensions.Literal[ + "VIDEO_IAB_VIEWABILITY_UNSPECIFIED", + "VIDEO_IAB_VIEWABILITY_10", + "VIDEO_IAB_VIEWABILITY_20", + "VIDEO_IAB_VIEWABILITY_35", + "VIDEO_IAB_VIEWABILITY_50", + "VIDEO_IAB_VIEWABILITY_75", + ] @typing.type_check_only class Advertiser(typing_extensions.TypedDict, total=False): @@ -353,6 +458,8 @@ class AlgorithmRulesComparisonValue(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] int64Value: str onScreenPositionValue: typing_extensions.Literal[ @@ -477,6 +584,11 @@ class AssetAssociation(typing_extensions.TypedDict, total=False): "ASSET_ROLE_RATING", "ASSET_ROLE_ICON", "ASSET_ROLE_COVER_IMAGE", + "ASSET_ROLE_BACKGROUND_COLOR", + "ASSET_ROLE_ACCENT_COLOR", + "ASSET_ROLE_REQUIRE_LOGO", + "ASSET_ROLE_REQUIRE_IMAGE", + "ASSET_ROLE_ENABLE_ASSET_ENHANCEMENTS", ] @typing.type_check_only @@ -1291,6 +1403,7 @@ class CreateSdfDownloadTaskRequest(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only @@ -1329,6 +1442,7 @@ class Creative(typing_extensions.TypedDict, total=False): "CREATIVE_TYPE_PUBLISHER_HOSTED", "CREATIVE_TYPE_NATIVE_VIDEO", "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO", + "CREATIVE_TYPE_ASSET_BASED_CREATIVE", ] dimensions: Dimensions displayName: str @@ -1411,6 +1525,7 @@ class CreativeConfig(typing_extensions.TypedDict, total=False): "CREATIVE_TYPE_PUBLISHER_HOSTED", "CREATIVE_TYPE_NATIVE_VIDEO", "CREATIVE_TYPE_TEMPLATED_APP_INSTALL_VIDEO", + "CREATIVE_TYPE_ASSET_BASED_CREATIVE", ] displayCreativeConfig: InventorySourceDisplayCreativeConfig videoCreativeConfig: InventorySourceVideoCreativeConfig @@ -2006,6 +2121,8 @@ class ExchangeAssignedTargetingOptionDetails(typing_extensions.TypedDict, total= "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] @typing.type_check_only @@ -2098,6 +2215,8 @@ class ExchangeConfigEnabledExchange(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] googleAdManagerAgencyId: str googleAdManagerBuyerNetworkId: str @@ -2189,6 +2308,8 @@ class ExchangeReviewStatus(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] status: typing_extensions.Literal[ "REVIEW_STATUS_UNSPECIFIED", @@ -2283,6 +2404,8 @@ class ExchangeTargetingOptionDetails(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] @typing.type_check_only @@ -2665,6 +2788,8 @@ class GuaranteedOrder(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] guaranteedOrderId: str legacyGuaranteedOrderId: str @@ -2969,6 +3094,8 @@ class InventorySource(typing_extensions.TypedDict, total=False): "EXCHANGE_ADMOST_GBID", "EXCHANGE_TOPON_GBID", "EXCHANGE_NETFLIX", + "EXCHANGE_CORE", + "EXCHANGE_TUBI", ] guaranteedOrderId: str inventorySourceId: str @@ -3998,6 +4125,7 @@ class SdfConfig(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only @@ -4023,6 +4151,7 @@ class SdfDownloadTaskMetadata(typing_extensions.TypedDict, total=False): "SDF_VERSION_6", "SDF_VERSION_7", "SDF_VERSION_7_1", + "SDF_VERSION_8", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi b/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi index f8c84e84..c4854670 100644 --- a/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi @@ -169,6 +169,7 @@ class GooglePrivacyDlpV2BigQueryTableTypes(typing_extensions.TypedDict, total=Fa "BIG_QUERY_TABLE_TYPE_UNSPECIFIED", "BIG_QUERY_TABLE_TYPE_TABLE", "BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE", + "BIG_QUERY_TABLE_TYPE_SNAPSHOT", ] ] @@ -210,6 +211,7 @@ class GooglePrivacyDlpV2ByteContentItem(typing_extensions.TypedDict, total=False "AUDIO", "VIDEO", "EXECUTABLE", + "AI_MODEL", ] @typing.type_check_only @@ -1169,6 +1171,7 @@ class GooglePrivacyDlpV2FileClusterType(typing_extensions.TypedDict, total=False "CLUSTER_ARCHIVE", "CLUSTER_MULTIMEDIA", "CLUSTER_EXECUTABLE", + "CLUSTER_AI_MODEL", ] @typing.type_check_only @@ -1423,6 +1426,7 @@ class GooglePrivacyDlpV2InfoTypeDescription(typing_extensions.TypedDict, total=F categories: _list[GooglePrivacyDlpV2InfoTypeCategory] description: str displayName: str + example: str name: str sensitivityScore: GooglePrivacyDlpV2SensitivityScore supportedBy: _list[ diff --git a/googleapiclient-stubs/_apis/dns/v1/schemas.pyi b/googleapiclient-stubs/_apis/dns/v1/schemas.pyi index 7b0971d9..b6456204 100644 --- a/googleapiclient-stubs/_apis/dns/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dns/v1/schemas.pyi @@ -254,6 +254,7 @@ class PoliciesUpdateResponse(typing_extensions.TypedDict, total=False): class Policy(typing_extensions.TypedDict, total=False): alternativeNameServerConfig: PolicyAlternativeNameServerConfig description: str + dns64Config: PolicyDns64Config enableInboundForwarding: bool enableLogging: bool id: str @@ -275,6 +276,16 @@ class PolicyAlternativeNameServerConfigTargetNameServer( ipv6Address: str kind: str +@typing.type_check_only +class PolicyDns64Config(typing_extensions.TypedDict, total=False): + kind: str + scope: PolicyDns64ConfigScope + +@typing.type_check_only +class PolicyDns64ConfigScope(typing_extensions.TypedDict, total=False): + allQueries: bool + kind: str + @typing.type_check_only class PolicyNetwork(typing_extensions.TypedDict, total=False): kind: str diff --git a/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi index c98f5a95..93b4ccf6 100644 --- a/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi @@ -254,6 +254,7 @@ class PoliciesUpdateResponse(typing_extensions.TypedDict, total=False): class Policy(typing_extensions.TypedDict, total=False): alternativeNameServerConfig: PolicyAlternativeNameServerConfig description: str + dns64Config: PolicyDns64Config enableInboundForwarding: bool enableLogging: bool id: str @@ -275,6 +276,16 @@ class PolicyAlternativeNameServerConfigTargetNameServer( ipv6Address: str kind: str +@typing.type_check_only +class PolicyDns64Config(typing_extensions.TypedDict, total=False): + kind: str + scope: PolicyDns64ConfigScope + +@typing.type_check_only +class PolicyDns64ConfigScope(typing_extensions.TypedDict, total=False): + allQueries: bool + kind: str + @typing.type_check_only class PolicyNetwork(typing_extensions.TypedDict, total=False): kind: str diff --git a/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi b/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi index f12c8c6b..7ecfb02b 100644 --- a/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi +++ b/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi @@ -787,6 +787,8 @@ class GoogleCloudDocumentaiV1beta3DatasetSchema( ): documentSchema: GoogleCloudDocumentaiV1beta3DocumentSchema name: str + satisfiesPzi: bool + satisfiesPzs: bool @typing.type_check_only class GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig( diff --git a/googleapiclient-stubs/_apis/drive/v3/resources.pyi b/googleapiclient-stubs/_apis/drive/v3/resources.pyi index d438481d..198ac7d5 100644 --- a/googleapiclient-stubs/_apis/drive/v3/resources.pyi +++ b/googleapiclient-stubs/_apis/drive/v3/resources.pyi @@ -17,6 +17,33 @@ class DriveResource(googleapiclient.discovery.Resource): class AboutResource(googleapiclient.discovery.Resource): def get(self, **kwargs: typing.Any) -> AboutHttpRequest: ... + @typing.type_check_only + class AccessproposalsResource(googleapiclient.discovery.Resource): + def get( + self, *, fileId: str, proposalId: str, **kwargs: typing.Any + ) -> AccessProposalHttpRequest: ... + def list( + self, + *, + fileId: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAccessProposalsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccessProposalsResponseHttpRequest, + previous_response: ListAccessProposalsResponse, + ) -> ListAccessProposalsResponseHttpRequest | None: ... + def resolve( + self, + *, + fileId: str, + proposalId: str, + body: ResolveAccessProposalRequest = ..., + **kwargs: typing.Any, + ) -> googleapiclient.http.HttpRequest: ... + @typing.type_check_only class AppsResource(googleapiclient.discovery.Resource): def get(self, *, appId: str, **kwargs: typing.Any) -> AppHttpRequest: ... @@ -565,6 +592,7 @@ class DriveResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def about(self) -> AboutResource: ... + def accessproposals(self) -> AccessproposalsResource: ... def apps(self) -> AppsResource: ... def changes(self) -> ChangesResource: ... def channels(self) -> ChannelsResource: ... @@ -586,6 +614,14 @@ class AboutHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> About: ... +@typing.type_check_only +class AccessProposalHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccessProposal: ... + @typing.type_check_only class AppHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -682,6 +718,14 @@ class LabelListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> LabelList: ... +@typing.type_check_only +class ListAccessProposalsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccessProposalsResponse: ... + @typing.type_check_only class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/drive/v3/schemas.pyi b/googleapiclient-stubs/_apis/drive/v3/schemas.pyi index d8be78b6..079bc355 100644 --- a/googleapiclient-stubs/_apis/drive/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/drive/v3/schemas.pyi @@ -20,6 +20,21 @@ class About(typing_extensions.TypedDict, total=False): teamDriveThemes: _list[dict[str, typing.Any]] user: User +@typing.type_check_only +class AccessProposal(typing_extensions.TypedDict, total=False): + createTime: str + fileId: str + proposalId: str + recipientEmailAddress: str + requestMessage: str + requesterEmailAddress: str + rolesAndViews: _list[AccessProposalRoleAndView] + +@typing.type_check_only +class AccessProposalRoleAndView(typing_extensions.TypedDict, total=False): + role: str + view: str + @typing.type_check_only class App(typing_extensions.TypedDict, total=False): authorized: bool @@ -266,6 +281,11 @@ class LabelModification(typing_extensions.TypedDict, total=False): labelId: str removeLabel: bool +@typing.type_check_only +class ListAccessProposalsResponse(typing_extensions.TypedDict, total=False): + accessProposals: _list[AccessProposal] + nextPageToken: str + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -331,6 +351,13 @@ class ReplyList(typing_extensions.TypedDict, total=False): nextPageToken: str replies: _list[Reply] +@typing.type_check_only +class ResolveAccessProposalRequest(typing_extensions.TypedDict, total=False): + action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ACCEPT", "DENY"] + role: _list[str] + sendNotification: bool + view: str + @typing.type_check_only class Revision(typing_extensions.TypedDict, total=False): exportLinks: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/eventarc/v1/resources.pyi b/googleapiclient-stubs/_apis/eventarc/v1/resources.pyi index 8396aa8c..4c3be599 100644 --- a/googleapiclient-stubs/_apis/eventarc/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/eventarc/v1/resources.pyi @@ -132,6 +132,27 @@ class EventarcResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnrollmentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Enrollment = ..., + enrollmentId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> EnrollmentHttpRequest: ... def getIamPolicy( self, *, @@ -139,6 +160,31 @@ class EventarcResource(googleapiclient.discovery.Resource): options_requestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListEnrollmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListEnrollmentsResponseHttpRequest, + previous_response: ListEnrollmentsResponse, + ) -> ListEnrollmentsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Enrollment = ..., + allowMissing: bool = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def setIamPolicy( self, *, @@ -156,6 +202,76 @@ class EventarcResource(googleapiclient.discovery.Resource): @typing.type_check_only class GoogleApiSourcesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleApiSource = ..., + googleApiSourceId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleApiSourceHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListGoogleApiSourcesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListGoogleApiSourcesResponseHttpRequest, + previous_response: ListGoogleApiSourcesResponse, + ) -> ListGoogleApiSourcesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: GoogleApiSource = ..., + allowMissing: bool = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> TestIamPermissionsResponseHttpRequest: ... + + @typing.type_check_only + class KafkaSourcesResource(googleapiclient.discovery.Resource): def getIamPolicy( self, *, @@ -180,6 +296,27 @@ class EventarcResource(googleapiclient.discovery.Resource): @typing.type_check_only class MessageBusesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: MessageBus = ..., + messageBusId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MessageBusHttpRequest: ... def getIamPolicy( self, *, @@ -187,6 +324,44 @@ class EventarcResource(googleapiclient.discovery.Resource): options_requestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMessageBusesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMessageBusesResponseHttpRequest, + previous_response: ListMessageBusesResponse, + ) -> ListMessageBusesResponseHttpRequest | None: ... + def listEnrollments( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMessageBusEnrollmentsResponseHttpRequest: ... + def listEnrollments_next( + self, + previous_request: ListMessageBusEnrollmentsResponseHttpRequest, + previous_response: ListMessageBusEnrollmentsResponse, + ) -> ListMessageBusEnrollmentsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: MessageBus = ..., + allowMissing: bool = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def setIamPolicy( self, *, @@ -234,6 +409,27 @@ class EventarcResource(googleapiclient.discovery.Resource): @typing.type_check_only class PipelinesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Pipeline = ..., + pipelineId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> PipelineHttpRequest: ... def getIamPolicy( self, *, @@ -241,6 +437,31 @@ class EventarcResource(googleapiclient.discovery.Resource): options_requestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPipelinesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPipelinesResponseHttpRequest, + previous_response: ListPipelinesResponse, + ) -> ListPipelinesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Pipeline = ..., + allowMissing: bool = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def setIamPolicy( self, *, @@ -379,6 +600,7 @@ class EventarcResource(googleapiclient.discovery.Resource): def channels(self) -> ChannelsResource: ... def enrollments(self) -> EnrollmentsResource: ... def googleApiSources(self) -> GoogleApiSourcesResource: ... + def kafkaSources(self) -> KafkaSourcesResource: ... def messageBuses(self) -> MessageBusesResource: ... def operations(self) -> OperationsResource: ... def pipelines(self) -> PipelinesResource: ... @@ -425,6 +647,22 @@ class EmptyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Empty: ... +@typing.type_check_only +class EnrollmentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Enrollment: ... + +@typing.type_check_only +class GoogleApiSourceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleApiSource: ... + @typing.type_check_only class GoogleChannelConfigHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -467,6 +705,22 @@ class ListChannelsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListChannelsResponse: ... +@typing.type_check_only +class ListEnrollmentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListEnrollmentsResponse: ... + +@typing.type_check_only +class ListGoogleApiSourcesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListGoogleApiSourcesResponse: ... + @typing.type_check_only class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -475,6 +729,30 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMessageBusEnrollmentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMessageBusEnrollmentsResponse: ... + +@typing.type_check_only +class ListMessageBusesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMessageBusesResponse: ... + +@typing.type_check_only +class ListPipelinesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPipelinesResponse: ... + @typing.type_check_only class ListProvidersResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -499,6 +777,22 @@ class LocationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Location: ... +@typing.type_check_only +class MessageBusHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MessageBus: ... + +@typing.type_check_only +class PipelineHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Pipeline: ... + @typing.type_check_only class PolicyHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/eventarc/v1/schemas.pyi b/googleapiclient-stubs/_apis/eventarc/v1/schemas.pyi index 397030ed..9cd742d9 100644 --- a/googleapiclient-stubs/_apis/eventarc/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/eventarc/v1/schemas.pyi @@ -27,6 +27,7 @@ class Channel(typing_extensions.TypedDict, total=False): activationToken: str createTime: str cryptoKeyName: str + labels: dict[str, typing.Any] name: str provider: str pubsubTopic: str @@ -42,6 +43,7 @@ class ChannelConnection(typing_extensions.TypedDict, total=False): activationToken: str channel: str createTime: str + labels: dict[str, typing.Any] name: str uid: str updateTime: str @@ -64,6 +66,20 @@ class Destination(typing_extensions.TypedDict, total=False): @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Enrollment(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + celMatch: str + createTime: str + destination: str + displayName: str + etag: str + labels: dict[str, typing.Any] + messageBus: str + name: str + uid: str + updateTime: str + @typing.type_check_only class EventFilter(typing_extensions.TypedDict, total=False): attribute: str @@ -99,12 +115,115 @@ class GKE(typing_extensions.TypedDict, total=False): path: str service: str +@typing.type_check_only +class GoogleApiSource(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + cryptoKeyName: str + destination: str + displayName: str + etag: str + labels: dict[str, typing.Any] + loggingConfig: LoggingConfig + name: str + uid: str + updateTime: str + @typing.type_check_only class GoogleChannelConfig(typing_extensions.TypedDict, total=False): cryptoKeyName: str name: str updateTime: str +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestination( + typing_extensions.TypedDict, total=False +): + authenticationConfig: GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig + httpEndpoint: GoogleCloudEventarcV1PipelineDestinationHttpEndpoint + messageBus: str + networkConfig: GoogleCloudEventarcV1PipelineDestinationNetworkConfig + outputPayloadFormat: GoogleCloudEventarcV1PipelineMessagePayloadFormat + topic: str + workflow: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestinationAuthenticationConfig( + typing_extensions.TypedDict, total=False +): + googleOidc: GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken + oauthToken: GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOAuthToken( + typing_extensions.TypedDict, total=False +): + scope: str + serviceAccount: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestinationAuthenticationConfigOidcToken( + typing_extensions.TypedDict, total=False +): + audience: str + serviceAccount: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestinationHttpEndpoint( + typing_extensions.TypedDict, total=False +): + messageBindingTemplate: str + uri: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineDestinationNetworkConfig( + typing_extensions.TypedDict, total=False +): + networkAttachment: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMediation(typing_extensions.TypedDict, total=False): + transformation: GoogleCloudEventarcV1PipelineMediationTransformation + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMediationTransformation( + typing_extensions.TypedDict, total=False +): + transformationTemplate: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMessagePayloadFormat( + typing_extensions.TypedDict, total=False +): + avro: GoogleCloudEventarcV1PipelineMessagePayloadFormatAvroFormat + json: GoogleCloudEventarcV1PipelineMessagePayloadFormatJsonFormat + protobuf: GoogleCloudEventarcV1PipelineMessagePayloadFormatProtobufFormat + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMessagePayloadFormatAvroFormat( + typing_extensions.TypedDict, total=False +): + schemaDefinition: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMessagePayloadFormatJsonFormat( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineMessagePayloadFormatProtobufFormat( + typing_extensions.TypedDict, total=False +): + schemaDefinition: str + +@typing.type_check_only +class GoogleCloudEventarcV1PipelineRetryPolicy( + typing_extensions.TypedDict, total=False +): + maxAttempts: int + maxRetryDelay: str + minRetryDelay: str + @typing.type_check_only class GoogleLongrunningCancelOperationRequest( typing_extensions.TypedDict, total=False @@ -145,11 +264,41 @@ class ListChannelsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ListEnrollmentsResponse(typing_extensions.TypedDict, total=False): + enrollments: _list[Enrollment] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListGoogleApiSourcesResponse(typing_extensions.TypedDict, total=False): + googleApiSources: _list[GoogleApiSource] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMessageBusEnrollmentsResponse(typing_extensions.TypedDict, total=False): + enrollments: _list[str] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListMessageBusesResponse(typing_extensions.TypedDict, total=False): + messageBuses: _list[MessageBus] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListPipelinesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + pipelines: _list[Pipeline] + unreachable: _list[str] + @typing.type_check_only class ListProvidersResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -170,6 +319,34 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LoggingConfig(typing_extensions.TypedDict, total=False): + logSeverity: typing_extensions.Literal[ + "LOG_SEVERITY_UNSPECIFIED", + "NONE", + "DEBUG", + "INFO", + "NOTICE", + "WARNING", + "ERROR", + "CRITICAL", + "ALERT", + "EMERGENCY", + ] + +@typing.type_check_only +class MessageBus(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + cryptoKeyName: str + displayName: str + etag: str + labels: dict[str, typing.Any] + loggingConfig: LoggingConfig + name: str + uid: str + updateTime: str + @typing.type_check_only class NetworkConfig(typing_extensions.TypedDict, total=False): networkAttachment: str @@ -184,6 +361,23 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class Pipeline(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + cryptoKeyName: str + destinations: _list[GoogleCloudEventarcV1PipelineDestination] + displayName: str + etag: str + inputPayloadFormat: GoogleCloudEventarcV1PipelineMessagePayloadFormat + labels: dict[str, typing.Any] + loggingConfig: LoggingConfig + mediations: _list[GoogleCloudEventarcV1PipelineMediation] + name: str + retryPolicy: GoogleCloudEventarcV1PipelineRetryPolicy + uid: str + updateTime: str + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] diff --git a/googleapiclient-stubs/_apis/fcm/v1/schemas.pyi b/googleapiclient-stubs/_apis/fcm/v1/schemas.pyi index 4809b10e..996cc780 100644 --- a/googleapiclient-stubs/_apis/fcm/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/fcm/v1/schemas.pyi @@ -64,6 +64,7 @@ class AndroidNotification(typing_extensions.TypedDict, total=False): class ApnsConfig(typing_extensions.TypedDict, total=False): fcmOptions: ApnsFcmOptions headers: dict[str, typing.Any] + liveActivityToken: str payload: dict[str, typing.Any] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/file/v1/resources.pyi b/googleapiclient-stubs/_apis/file/v1/resources.pyi index e38e3ab5..65b16653 100644 --- a/googleapiclient-stubs/_apis/file/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/file/v1/resources.pyi @@ -83,6 +83,7 @@ class CloudFilestoreResource(googleapiclient.discovery.Resource): orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + returnPartialSuccess: bool = ..., **kwargs: typing.Any, ) -> ListSnapshotsResponseHttpRequest: ... def list_next( diff --git a/googleapiclient-stubs/_apis/file/v1/schemas.pyi b/googleapiclient-stubs/_apis/file/v1/schemas.pyi index 2ceb8d4c..19e4b562 100644 --- a/googleapiclient-stubs/_apis/file/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/file/v1/schemas.pyi @@ -69,7 +69,7 @@ class FileShareConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class FixedIOPS(typing_extensions.TypedDict, total=False): - maxReadIops: str + maxIops: str @typing.type_check_only class GoogleCloudSaasacceleratorManagementProvidersV1Instance( @@ -171,12 +171,12 @@ class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata( @typing.type_check_only class IOPSPerTB(typing_extensions.TypedDict, total=False): - maxReadIopsPerTb: str + maxIopsPerTb: str @typing.type_check_only class Instance(typing_extensions.TypedDict, total=False): - configurablePerformanceEnabled: bool createTime: str + customPerformanceSupported: bool deletionProtectionEnabled: bool deletionProtectionReason: str description: str @@ -251,6 +251,7 @@ class ListOperationsResponse(typing_extensions.TypedDict, total=False): class ListSnapshotsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str snapshots: _list[Snapshot] + unreachable: _list[str] @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): @@ -322,6 +323,7 @@ class PerformanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class PerformanceLimits(typing_extensions.TypedDict, total=False): + maxIops: str maxReadIops: str maxReadThroughputBps: str maxWriteIops: str diff --git a/googleapiclient-stubs/_apis/file/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/file/v1beta1/resources.pyi index 96d2f9c7..476a6f1f 100644 --- a/googleapiclient-stubs/_apis/file/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/file/v1beta1/resources.pyi @@ -123,6 +123,7 @@ class CloudFilestoreResource(googleapiclient.discovery.Resource): orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + returnPartialSuccess: bool = ..., **kwargs: typing.Any, ) -> ListSnapshotsResponseHttpRequest: ... def list_next( diff --git a/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi index dee9cf15..2af209f4 100644 --- a/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi @@ -73,7 +73,7 @@ class FileShareConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class FixedIOPS(typing_extensions.TypedDict, total=False): - maxReadIops: str + maxIops: str @typing.type_check_only class GoogleCloudSaasacceleratorManagementProvidersV1Instance( @@ -175,14 +175,14 @@ class GoogleCloudSaasacceleratorManagementProvidersV1SloMetadata( @typing.type_check_only class IOPSPerTB(typing_extensions.TypedDict, total=False): - maxReadIopsPerTb: str + maxIopsPerTb: str @typing.type_check_only class Instance(typing_extensions.TypedDict, total=False): capacityGb: str capacityStepSizeGb: str - configurablePerformanceEnabled: bool createTime: str + customPerformanceSupported: bool deletionProtectionEnabled: bool deletionProtectionReason: str description: str @@ -267,6 +267,7 @@ class ListSharesResponse(typing_extensions.TypedDict, total=False): class ListSnapshotsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str snapshots: _list[Snapshot] + unreachable: _list[str] @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): @@ -348,6 +349,7 @@ class PerformanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class PerformanceLimits(typing_extensions.TypedDict, total=False): + maxIops: str maxReadIops: str maxReadThroughputBps: str maxWriteIops: str diff --git a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/resources.pyi index d7430026..889a805f 100644 --- a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/resources.pyi @@ -90,6 +90,9 @@ class FirebaseAppDistributionResource(googleapiclient.discovery.Resource): class ReleasesResource(googleapiclient.discovery.Resource): @typing.type_check_only class TestsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponseHttpRequest: ... def create( self, *, @@ -107,6 +110,11 @@ class FirebaseAppDistributionResource(googleapiclient.discovery.Resource): parent: str, pageSize: int = ..., pageToken: str = ..., + view: typing_extensions.Literal[ + "RELEASE_TEST_VIEW_UNSPECIFIED", + "RELEASE_TEST_VIEW_BASIC", + "RELEASE_TEST_VIEW_FULL", + ] = ..., **kwargs: typing.Any, ) -> GoogleFirebaseAppdistroV1alphaListReleaseTestsResponseHttpRequest: ... def list_next( @@ -120,6 +128,46 @@ class FirebaseAppDistributionResource(googleapiclient.discovery.Resource): def tests(self) -> TestsResource: ... + @typing.type_check_only + class TestCasesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleFirebaseAppdistroV1alphaTestCase = ..., + testCaseId: str = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppdistroV1alphaTestCaseHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleFirebaseAppdistroV1alphaTestCaseHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppdistroV1alphaListTestCasesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleFirebaseAppdistroV1alphaListTestCasesResponseHttpRequest, + previous_response: GoogleFirebaseAppdistroV1alphaListTestCasesResponse, + ) -> ( + GoogleFirebaseAppdistroV1alphaListTestCasesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleFirebaseAppdistroV1alphaTestCase = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppdistroV1alphaTestCaseHttpRequest: ... + def getTestConfig( self, *, name: str, **kwargs: typing.Any ) -> GoogleFirebaseAppdistroV1alphaTestConfigHttpRequest: ... @@ -132,6 +180,7 @@ class FirebaseAppDistributionResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleFirebaseAppdistroV1alphaTestConfigHttpRequest: ... def releases(self) -> ReleasesResource: ... + def testCases(self) -> TestCasesResource: ... @typing.type_check_only class TestersResource(googleapiclient.discovery.Resource): @@ -165,6 +214,16 @@ class GoogleFirebaseAppdistroV1alphaAppHttpRequest(googleapiclient.http.HttpRequ num_retries: int = 0, ) -> GoogleFirebaseAppdistroV1alphaApp: ... +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse: ... + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -233,6 +292,16 @@ class GoogleFirebaseAppdistroV1alphaListReleaseTestsResponseHttpRequest( num_retries: int = 0, ) -> GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse: ... +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaListTestCasesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppdistroV1alphaListTestCasesResponse: ... + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaProvisionAppResponseHttpRequest( googleapiclient.http.HttpRequest @@ -253,6 +322,16 @@ class GoogleFirebaseAppdistroV1alphaReleaseTestHttpRequest( num_retries: int = 0, ) -> GoogleFirebaseAppdistroV1alphaReleaseTest: ... +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaTestCaseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppdistroV1alphaTestCase: ... + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaTestConfigHttpRequest( googleapiclient.http.HttpRequest @@ -262,3 +341,11 @@ class GoogleFirebaseAppdistroV1alphaTestConfigHttpRequest( http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> GoogleFirebaseAppdistroV1alphaTestConfig: ... + +@typing.type_check_only +class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleProtobufEmpty: ... diff --git a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi index e4841e70..47b8e8e5 100644 --- a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi @@ -60,6 +60,8 @@ class GoogleFirebaseAppdistroV1alphaAiInstructions( class GoogleFirebaseAppdistroV1alphaAiStep(typing_extensions.TypedDict, total=False): assertion: str goal: str + hint: str + successCriteria: str @typing.type_check_only class GoogleFirebaseAppdistroV1alphaAiStepResult( @@ -68,7 +70,12 @@ class GoogleFirebaseAppdistroV1alphaAiStepResult( assertionDetails: GoogleFirebaseAppdistroV1alphaAssertionDetails goalDetails: GoogleFirebaseAppdistroV1alphaGoalDetails state: typing_extensions.Literal[ - "STEP_STATE_UNSPECIFIED", "IN_PROGRESS", "PASSED", "FAILED" + "STEP_STATE_UNSPECIFIED", + "IN_PROGRESS", + "PASSED", + "FAILED", + "TIMED_OUT", + "GOAL_ACTION_LIMIT_REACHED", ] step: GoogleFirebaseAppdistroV1alphaAiStep @@ -103,6 +110,11 @@ class GoogleFirebaseAppdistroV1alphaAssertionDetails( result: bool screenshot: GoogleFirebaseAppdistroV1alphaScreenshot +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaCancelReleaseTestResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest( typing_extensions.TypedDict, total=False @@ -162,6 +174,7 @@ class GoogleFirebaseAppdistroV1alphaDeviceExecution( class GoogleFirebaseAppdistroV1alphaDeviceInteraction( typing_extensions.TypedDict, total=False ): + keyCode: str screenshot: GoogleFirebaseAppdistroV1alphaScreenshot swipe: GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe tap: AndroidxCrawlerOutputPoint @@ -266,6 +279,13 @@ class GoogleFirebaseAppdistroV1alphaListReleaseTestsResponse( nextPageToken: str releaseTests: _list[GoogleFirebaseAppdistroV1alphaReleaseTest] +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaListTestCasesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + testCases: _list[GoogleFirebaseAppdistroV1alphaTestCase] + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaLoginCredential( typing_extensions.TypedDict, total=False @@ -314,8 +334,13 @@ class GoogleFirebaseAppdistroV1alphaReleaseTest( aiInstructions: GoogleFirebaseAppdistroV1alphaAiInstructions createTime: str deviceExecutions: _list[GoogleFirebaseAppdistroV1alphaDeviceExecution] + displayName: str loginCredential: GoogleFirebaseAppdistroV1alphaLoginCredential name: str + testCase: str + testState: typing_extensions.Literal[ + "TEST_STATE_UNSPECIFIED", "IN_PROGRESS", "PASSED", "FAILED", "INCONCLUSIVE" + ] @typing.type_check_only class GoogleFirebaseAppdistroV1alphaRoboCrawler( @@ -348,10 +373,17 @@ class GoogleFirebaseAppdistroV1alphaTerminalAction( ] screenshot: GoogleFirebaseAppdistroV1alphaScreenshot +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaTestCase(typing_extensions.TypedDict, total=False): + aiInstructions: GoogleFirebaseAppdistroV1alphaAiInstructions + displayName: str + name: str + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaTestConfig( typing_extensions.TypedDict, total=False ): + displayName: str name: str roboCrawler: GoogleFirebaseAppdistroV1alphaRoboCrawler testDevices: _list[GoogleFirebaseAppdistroV1alphaTestDevice] @@ -372,3 +404,6 @@ class GoogleFirebaseAppdistroV1alphaTesterUdid( name: str platform: str udid: str + +@typing.type_check_only +class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/firebasedataconnect/__init__.pyi b/googleapiclient-stubs/_apis/firebasedataconnect/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/__init__.pyi b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/resources.pyi b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/resources.pyi new file mode 100644 index 00000000..0a971de9 --- /dev/null +++ b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/resources.pyi @@ -0,0 +1,377 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class FirebaseDataConnectResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConnectorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Connector = ..., + connectorId: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + force: bool = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def executeMutation( + self, + *, + name: str, + body: ExecuteMutationRequest = ..., + **kwargs: typing.Any, + ) -> ExecuteMutationResponseHttpRequest: ... + def executeQuery( + self, + *, + name: str, + body: ExecuteQueryRequest = ..., + **kwargs: typing.Any, + ) -> ExecuteQueryResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ConnectorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListConnectorsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListConnectorsResponseHttpRequest, + previous_response: ListConnectorsResponse, + ) -> ListConnectorsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Connector = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class SchemasResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Schema = ..., + requestId: str = ..., + schemaId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + force: bool = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SchemaHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSchemasResponseHttpRequest: ... + def list_next( + self, + previous_request: ListSchemasResponseHttpRequest, + previous_response: ListSchemasResponse, + ) -> ListSchemasResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Schema = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: Service = ..., + requestId: str = ..., + serviceId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + force: bool = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def executeGraphql( + self, *, name: str, body: GraphqlRequest = ..., **kwargs: typing.Any + ) -> GraphqlResponseHttpRequest: ... + def executeGraphqlRead( + self, *, name: str, body: GraphqlRequest = ..., **kwargs: typing.Any + ) -> GraphqlResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ServiceHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListServicesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListServicesResponseHttpRequest, + previous_response: ListServicesResponse, + ) -> ListServicesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Service = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def connectors(self) -> ConnectorsResource: ... + def schemas(self) -> SchemasResource: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def operations(self) -> OperationsResource: ... + def services(self) -> ServicesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class ConnectorHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Connector: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ExecuteMutationResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ExecuteMutationResponse: ... + +@typing.type_check_only +class ExecuteQueryResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ExecuteQueryResponse: ... + +@typing.type_check_only +class GraphqlResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GraphqlResponse: ... + +@typing.type_check_only +class ListConnectorsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListConnectorsResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class ListSchemasResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSchemasResponse: ... + +@typing.type_check_only +class ListServicesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListServicesResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... + +@typing.type_check_only +class SchemaHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Schema: ... + +@typing.type_check_only +class ServiceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Service: ... diff --git a/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/schemas.pyi new file mode 100644 index 00000000..dc7e92a3 --- /dev/null +++ b/googleapiclient-stubs/_apis/firebasedataconnect/v1beta/schemas.pyi @@ -0,0 +1,196 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class CloudSqlInstance(typing_extensions.TypedDict, total=False): + instance: str + +@typing.type_check_only +class Connector(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + displayName: str + etag: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + source: Source + uid: str + updateTime: str + +@typing.type_check_only +class Datasource(typing_extensions.TypedDict, total=False): + postgresql: PostgreSql + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ExecuteMutationRequest(typing_extensions.TypedDict, total=False): + operationName: str + variables: dict[str, typing.Any] + +@typing.type_check_only +class ExecuteMutationResponse(typing_extensions.TypedDict, total=False): + data: dict[str, typing.Any] + errors: _list[GraphqlError] + +@typing.type_check_only +class ExecuteQueryRequest(typing_extensions.TypedDict, total=False): + operationName: str + variables: dict[str, typing.Any] + +@typing.type_check_only +class ExecuteQueryResponse(typing_extensions.TypedDict, total=False): + data: dict[str, typing.Any] + errors: _list[GraphqlError] + +@typing.type_check_only +class File(typing_extensions.TypedDict, total=False): + content: str + path: str + +@typing.type_check_only +class GraphqlError(typing_extensions.TypedDict, total=False): + extensions: GraphqlErrorExtensions + locations: _list[SourceLocation] + message: str + path: _list[typing.Any] + +@typing.type_check_only +class GraphqlErrorExtensions(typing_extensions.TypedDict, total=False): + file: str + +@typing.type_check_only +class GraphqlRequest(typing_extensions.TypedDict, total=False): + extensions: GraphqlRequestExtensions + operationName: str + query: str + variables: dict[str, typing.Any] + +@typing.type_check_only +class GraphqlRequestExtensions(typing_extensions.TypedDict, total=False): + impersonate: Impersonation + +@typing.type_check_only +class GraphqlResponse(typing_extensions.TypedDict, total=False): + data: dict[str, typing.Any] + errors: _list[GraphqlError] + +@typing.type_check_only +class Impersonation(typing_extensions.TypedDict, total=False): + authClaims: dict[str, typing.Any] + unauthenticated: bool + +@typing.type_check_only +class ListConnectorsResponse(typing_extensions.TypedDict, total=False): + connectors: _list[Connector] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class ListSchemasResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + schemas: _list[Schema] + unreachable: _list[str] + +@typing.type_check_only +class ListServicesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + services: _list[Service] + unreachable: _list[str] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class PostgreSql(typing_extensions.TypedDict, total=False): + cloudSql: CloudSqlInstance + database: str + schemaMigration: typing_extensions.Literal[ + "SQL_SCHEMA_MIGRATION_UNSPECIFIED", "MIGRATE_COMPATIBLE" + ] + schemaValidation: typing_extensions.Literal[ + "SQL_SCHEMA_VALIDATION_UNSPECIFIED", "NONE", "STRICT", "COMPATIBLE" + ] + unlinked: bool + +@typing.type_check_only +class Schema(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + datasources: _list[Datasource] + displayName: str + etag: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + source: Source + uid: str + updateTime: str + +@typing.type_check_only +class Service(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + displayName: str + etag: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + uid: str + updateTime: str + +@typing.type_check_only +class Source(typing_extensions.TypedDict, total=False): + files: _list[File] + +@typing.type_check_only +class SourceLocation(typing_extensions.TypedDict, total=False): + column: int + line: int + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi index a2a6aa96..1b70845d 100644 --- a/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi @@ -53,6 +53,18 @@ class GoogleCloudAiplatformV1beta1CitationMetadata( ): citations: _list[GoogleCloudAiplatformV1beta1Citation] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CodeExecutionResult( + typing_extensions.TypedDict, total=False +): + outcome: typing_extensions.Literal[ + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED", + ] + output: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1Content(typing_extensions.TypedDict, total=False): parts: _list[GoogleCloudAiplatformV1beta1Part] @@ -76,6 +88,20 @@ class GoogleCloudAiplatformV1beta1CountTokensResponse( totalBillableCharacters: int totalTokens: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DynamicRetrievalConfig( + typing_extensions.TypedDict, total=False +): + dynamicThreshold: float + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "MODE_DYNAMIC"] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ExecutableCode( + typing_extensions.TypedDict, total=False +): + code: str + language: typing_extensions.Literal["LANGUAGE_UNSPECIFIED", "PYTHON"] + @typing.type_check_only class GoogleCloudAiplatformV1beta1FileData(typing_extensions.TypedDict, total=False): fileUri: str @@ -160,16 +186,27 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata( class GoogleCloudAiplatformV1beta1GenerationConfig( typing_extensions.TypedDict, total=False ): + audioTimestamp: bool candidateCount: int frequencyPenalty: float logprobs: int maxOutputTokens: int + mediaResolution: typing_extensions.Literal[ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + ] presencePenalty: float responseLogprobs: bool responseMimeType: str + responseModalities: _list[ + typing_extensions.Literal["MODALITY_UNSPECIFIED", "TEXT", "IMAGE", "AUDIO"] + ] responseSchema: GoogleCloudAiplatformV1beta1Schema routingConfig: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig seed: int + speechConfig: GoogleCloudAiplatformV1beta1SpeechConfig stopSequences: _list[str] temperature: float topK: float @@ -201,7 +238,8 @@ class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode @typing.type_check_only class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval( typing_extensions.TypedDict, total=False -): ... +): + dynamicRetrievalConfig: GoogleCloudAiplatformV1beta1DynamicRetrievalConfig @typing.type_check_only class GoogleCloudAiplatformV1beta1GroundingChunk( @@ -214,6 +252,7 @@ class GoogleCloudAiplatformV1beta1GroundingChunk( class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext( typing_extensions.TypedDict, total=False ): + text: str title: str uri: str @@ -230,6 +269,7 @@ class GoogleCloudAiplatformV1beta1GroundingMetadata( ): groundingChunks: _list[GoogleCloudAiplatformV1beta1GroundingChunk] groundingSupports: _list[GoogleCloudAiplatformV1beta1GroundingSupport] + retrievalMetadata: GoogleCloudAiplatformV1beta1RetrievalMetadata retrievalQueries: _list[str] searchEntryPoint: GoogleCloudAiplatformV1beta1SearchEntryPoint webSearchQueries: _list[str] @@ -265,19 +305,83 @@ class GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates( @typing.type_check_only class GoogleCloudAiplatformV1beta1Part(typing_extensions.TypedDict, total=False): + codeExecutionResult: GoogleCloudAiplatformV1beta1CodeExecutionResult + executableCode: GoogleCloudAiplatformV1beta1ExecutableCode fileData: GoogleCloudAiplatformV1beta1FileData functionCall: GoogleCloudAiplatformV1beta1FunctionCall functionResponse: GoogleCloudAiplatformV1beta1FunctionResponse inlineData: GoogleCloudAiplatformV1beta1Blob text: str + thought: bool videoMetadata: GoogleCloudAiplatformV1beta1VideoMetadata +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig( + typing_extensions.TypedDict, total=False +): + voiceName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfig( + typing_extensions.TypedDict, total=False +): + filter: GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter + hybridSearch: GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch + ranking: GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking + topK: int + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter( + typing_extensions.TypedDict, total=False +): + metadataFilter: str + vectorDistanceThreshold: float + vectorSimilarityThreshold: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch( + typing_extensions.TypedDict, total=False +): + alpha: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking( + typing_extensions.TypedDict, total=False +): + llmRanker: GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker + rankService: GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingLlmRanker( + typing_extensions.TypedDict, total=False +): + modelName: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagRetrievalConfigRankingRankService( + typing_extensions.TypedDict, total=False +): + modelName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1Retrieval(typing_extensions.TypedDict, total=False): disableAttribution: bool vertexAiSearch: GoogleCloudAiplatformV1beta1VertexAISearch vertexRagStore: GoogleCloudAiplatformV1beta1VertexRagStore +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RetrievalConfig( + typing_extensions.TypedDict, total=False +): + languageCode: str + latLng: LatLng + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RetrievalMetadata( + typing_extensions.TypedDict, total=False +): + googleSearchDynamicRetrievalScore: float + @typing.type_check_only class GoogleCloudAiplatformV1beta1SafetyRating( typing_extensions.TypedDict, total=False @@ -369,15 +473,34 @@ class GoogleCloudAiplatformV1beta1Segment(typing_extensions.TypedDict, total=Fal startIndex: int text: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SpeechConfig( + typing_extensions.TypedDict, total=False +): + voiceConfig: GoogleCloudAiplatformV1beta1VoiceConfig + @typing.type_check_only class GoogleCloudAiplatformV1beta1Tool(typing_extensions.TypedDict, total=False): + codeExecution: GoogleCloudAiplatformV1beta1ToolCodeExecution functionDeclarations: _list[GoogleCloudAiplatformV1beta1FunctionDeclaration] + googleSearch: GoogleCloudAiplatformV1beta1ToolGoogleSearch googleSearchRetrieval: GoogleCloudAiplatformV1beta1GoogleSearchRetrieval retrieval: GoogleCloudAiplatformV1beta1Retrieval +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ToolCodeExecution( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1ToolConfig(typing_extensions.TypedDict, total=False): functionCallingConfig: GoogleCloudAiplatformV1beta1FunctionCallingConfig + retrievalConfig: GoogleCloudAiplatformV1beta1RetrievalConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ToolGoogleSearch( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleCloudAiplatformV1beta1VertexAISearch( @@ -391,6 +514,7 @@ class GoogleCloudAiplatformV1beta1VertexRagStore( ): ragCorpora: _list[str] ragResources: _list[GoogleCloudAiplatformV1beta1VertexRagStoreRagResource] + ragRetrievalConfig: GoogleCloudAiplatformV1beta1RagRetrievalConfig similarityTopK: int vectorDistanceThreshold: float @@ -408,6 +532,15 @@ class GoogleCloudAiplatformV1beta1VideoMetadata( endOffset: str startOffset: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1VoiceConfig(typing_extensions.TypedDict, total=False): + prebuiltVoiceConfig: GoogleCloudAiplatformV1beta1PrebuiltVoiceConfig + +@typing.type_check_only +class LatLng(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + @typing.type_check_only class ModelOperationMetadata(typing_extensions.TypedDict, total=False): basicOperationStatus: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/firebasestorage/v1beta/resources.pyi b/googleapiclient-stubs/_apis/firebasestorage/v1beta/resources.pyi index 699da63d..cea09d3a 100644 --- a/googleapiclient-stubs/_apis/firebasestorage/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/firebasestorage/v1beta/resources.pyi @@ -46,7 +46,20 @@ class FirebasestorageResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> EmptyHttpRequest: ... + @typing.type_check_only + class DefaultBucketResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: DefaultBucket = ..., **kwargs: typing.Any + ) -> DefaultBucketHttpRequest: ... + + def deleteDefaultBucket( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def getDefaultBucket( + self, *, name: str, **kwargs: typing.Any + ) -> DefaultBucketHttpRequest: ... def buckets(self) -> BucketsResource: ... + def defaultBucket(self) -> DefaultBucketResource: ... def new_batch_http_request( self, @@ -70,6 +83,14 @@ class BucketHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Bucket: ... +@typing.type_check_only +class DefaultBucketHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DefaultBucket: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/firebasestorage/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/firebasestorage/v1beta/schemas.pyi index f566cc50..5ecde9ee 100644 --- a/googleapiclient-stubs/_apis/firebasestorage/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebasestorage/v1beta/schemas.pyi @@ -12,49 +12,14 @@ class Bucket(typing_extensions.TypedDict, total=False): name: str @typing.type_check_only -class Empty(typing_extensions.TypedDict, total=False): ... - -@typing.type_check_only -class GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata( - typing_extensions.TypedDict, total=False -): - createTime: str - lastUpdateTime: str - state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", - "PENDING", - "CREATING_TEMP_BUCKET", - "TRANSFERRING_TO_TEMP", - "DELETING_SOURCE_BUCKET", - "CREATING_DESTINATION_BUCKET", - "TRANSFERRING_TO_DESTINATION", - "DELETING_TEMP_BUCKET", - "SUCCEEDED", - "FAILED", - "ROLLING_BACK", - "ROLLED_BACK", - ] +class DefaultBucket(typing_extensions.TypedDict, total=False): + bucket: Bucket + location: str + name: str + storageClass: str @typing.type_check_only -class GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata( - typing_extensions.TypedDict, total=False -): - createTime: str - lastUpdateTime: str - state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", - "PENDING", - "CREATING_TEMP_BUCKET", - "TRANSFERRING_TO_TEMP", - "DELETING_SOURCE_BUCKET", - "CREATING_DESTINATION_BUCKET", - "TRANSFERRING_TO_DESTINATION", - "DELETING_TEMP_BUCKET", - "SUCCEEDED", - "FAILED", - "ROLLING_BACK", - "ROLLED_BACK", - ] +class Empty(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class ListBucketsResponse(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/forms/v1/schemas.pyi b/googleapiclient-stubs/_apis/forms/v1/schemas.pyi index a8384bfc..c58732b1 100644 --- a/googleapiclient-stubs/_apis/forms/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/forms/v1/schemas.pyi @@ -227,6 +227,7 @@ class Question(typing_extensions.TypedDict, total=False): fileUploadQuestion: FileUploadQuestion grading: Grading questionId: str + ratingQuestion: RatingQuestion required: bool rowQuestion: RowQuestion scaleQuestion: ScaleQuestion @@ -248,6 +249,13 @@ class QuestionItem(typing_extensions.TypedDict, total=False): class QuizSettings(typing_extensions.TypedDict, total=False): isQuiz: bool +@typing.type_check_only +class RatingQuestion(typing_extensions.TypedDict, total=False): + iconType: typing_extensions.Literal[ + "RATING_ICON_TYPE_UNSPECIFIED", "STAR", "HEART", "THUMB_UP" + ] + ratingScaleLevel: int + @typing.type_check_only class RenewWatchRequest(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi b/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi index 6773f3b7..8bb012e5 100644 --- a/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi @@ -310,6 +310,7 @@ class Restore(typing_extensions.TypedDict, total=False): "SUCCEEDED", "FAILED", "DELETING", + "VALIDATING", ] stateReason: str uid: str diff --git a/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi index d42cb8fd..48f7536f 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi @@ -32,6 +32,8 @@ class Authority(typing_extensions.TypedDict, total=False): identityProvider: str issuer: str oidcJwks: str + scopeTenancyIdentityProvider: str + scopeTenancyWorkloadIdentityPool: str workloadIdentityPool: str @typing.type_check_only @@ -158,13 +160,13 @@ class ComplianceStandard(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): - allowVerticalScale: bool enabled: bool git: ConfigManagementGitConfig metricsGcpServiceAccountEmail: str oci: ConfigManagementOciConfig preventDrift: bool sourceFormat: str + stopSyncing: bool @typing.type_check_only class ConfigManagementConfigSyncDeploymentState( @@ -204,6 +206,10 @@ class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int deploymentState: ConfigManagementConfigSyncDeploymentState errors: _list[ConfigManagementConfigSyncError] reposyncCrd: typing_extensions.Literal[ @@ -769,6 +775,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class Membership(typing_extensions.TypedDict, total=False): authority: Authority + clusterTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] createTime: str deleteTime: str description: str @@ -1121,6 +1130,8 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "CLUSTER_HAS_ZERO_NODES", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", "CONFIG_APPLY_INTERNAL_ERROR", "CONFIG_VALIDATION_ERROR", "CONFIG_VALIDATION_WARNING", @@ -1139,6 +1150,10 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "QUOTA_EXCEEDED_HTTP_FILTERS", "QUOTA_EXCEEDED_TCP_FILTERS", "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", ] details: str documentationLink: str @@ -1179,6 +1194,9 @@ class ServiceMeshDataPlaneManagement(typing_extensions.TypedDict, total=False): @typing.type_check_only class ServiceMeshMembershipSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] controlPlane: typing_extensions.Literal[ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" ] diff --git a/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi index 2cc354ed..9a3d2c24 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi @@ -42,6 +42,8 @@ class Authority(typing_extensions.TypedDict, total=False): identityProvider: str issuer: str oidcJwks: str + scopeTenancyIdentityProvider: str + scopeTenancyWorkloadIdentityPool: str workloadIdentityPool: str @typing.type_check_only @@ -213,13 +215,13 @@ class ConfigManagementBinauthzVersion(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): - allowVerticalScale: bool enabled: bool git: ConfigManagementGitConfig metricsGcpServiceAccountEmail: str oci: ConfigManagementOciConfig preventDrift: bool sourceFormat: str + stopSyncing: bool @typing.type_check_only class ConfigManagementConfigSyncDeploymentState( @@ -259,6 +261,10 @@ class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int deploymentState: ConfigManagementConfigSyncDeploymentState errors: _list[ConfigManagementConfigSyncError] reposyncCrd: typing_extensions.Literal[ @@ -848,6 +854,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class Membership(typing_extensions.TypedDict, total=False): authority: Authority + clusterTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] createTime: str deleteTime: str description: str @@ -1252,6 +1261,8 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "CLUSTER_HAS_ZERO_NODES", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", "CONFIG_APPLY_INTERNAL_ERROR", "CONFIG_VALIDATION_ERROR", "CONFIG_VALIDATION_WARNING", @@ -1270,6 +1281,10 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "QUOTA_EXCEEDED_HTTP_FILTERS", "QUOTA_EXCEEDED_TCP_FILTERS", "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", ] details: str documentationLink: str @@ -1386,5 +1401,8 @@ class ValidationResult(typing_extensions.TypedDict, total=False): result: str success: bool validator: typing_extensions.Literal[ - "VALIDATOR_TYPE_UNSPECIFIED", "MEMBERSHIP_ID", "CROSS_PROJECT_PERMISSION" + "VALIDATOR_TYPE_UNSPECIFIED", + "MEMBERSHIP_ID", + "CROSS_PROJECT_PERMISSION", + "FLEET_ALLOWED_FOR_PROJECT_GUARDRAIL", ] diff --git a/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi index 6902beea..6cbf26c2 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi @@ -42,6 +42,8 @@ class Authority(typing_extensions.TypedDict, total=False): identityProvider: str issuer: str oidcJwks: str + scopeTenancyIdentityProvider: str + scopeTenancyWorkloadIdentityPool: str workloadIdentityPool: str @typing.type_check_only @@ -184,13 +186,13 @@ class ConfigManagementBinauthzVersion(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): - allowVerticalScale: bool enabled: bool git: ConfigManagementGitConfig metricsGcpServiceAccountEmail: str oci: ConfigManagementOciConfig preventDrift: bool sourceFormat: str + stopSyncing: bool @typing.type_check_only class ConfigManagementConfigSyncDeploymentState( @@ -230,6 +232,10 @@ class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int deploymentState: ConfigManagementConfigSyncDeploymentState errors: _list[ConfigManagementConfigSyncError] reposyncCrd: typing_extensions.Literal[ @@ -797,6 +803,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class Membership(typing_extensions.TypedDict, total=False): authority: Authority + clusterTier: typing_extensions.Literal[ + "CLUSTER_TIER_UNSPECIFIED", "STANDARD", "ENTERPRISE" + ] createTime: str deleteTime: str description: str @@ -1167,6 +1176,8 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "CLUSTER_HAS_ZERO_NODES", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", "CONFIG_APPLY_INTERNAL_ERROR", "CONFIG_VALIDATION_ERROR", "CONFIG_VALIDATION_WARNING", @@ -1185,6 +1196,10 @@ class ServiceMeshCondition(typing_extensions.TypedDict, total=False): "QUOTA_EXCEEDED_HTTP_FILTERS", "QUOTA_EXCEEDED_TCP_FILTERS", "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", ] details: str documentationLink: str @@ -1225,6 +1240,9 @@ class ServiceMeshDataPlaneManagement(typing_extensions.TypedDict, total=False): @typing.type_check_only class ServiceMeshMembershipSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] controlPlane: typing_extensions.Literal[ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" ] diff --git a/googleapiclient-stubs/_apis/gkehub/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1beta1/schemas.pyi index 2ea7c515..c1abc822 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1beta1/schemas.pyi @@ -25,6 +25,8 @@ class Authority(typing_extensions.TypedDict, total=False): identityProvider: str issuer: str oidcJwks: str + scopeTenancyIdentityProvider: str + scopeTenancyWorkloadIdentityPool: str workloadIdentityPool: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/gkehub/v2/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v2/resources.pyi index 73f1ea0c..0aac1977 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2/resources.pyi @@ -17,6 +17,53 @@ class GKEHubResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class MembershipsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FeaturesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: MembershipFeature = ..., + featureId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MembershipFeatureHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMembershipFeaturesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMembershipFeaturesResponseHttpRequest, + previous_response: ListMembershipFeaturesResponse, + ) -> ListMembershipFeaturesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: MembershipFeature = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def features(self) -> FeaturesResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -61,6 +108,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def memberships(self) -> MembershipsResource: ... def operations(self) -> OperationsResource: ... def locations(self) -> LocationsResource: ... @@ -95,6 +143,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMembershipFeaturesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMembershipFeaturesResponse: ... + @typing.type_check_only class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -111,6 +167,14 @@ class LocationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Location: ... +@typing.type_check_only +class MembershipFeatureHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MembershipFeature: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/gkehub/v2/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v2/schemas.pyi index e3e66c67..aff4c593 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2/schemas.pyi @@ -4,23 +4,503 @@ import typing_extensions _list = list +@typing.type_check_only +class AppDevExperienceState(typing_extensions.TypedDict, total=False): + networkingInstallSucceeded: AppDevExperienceStatus + +@typing.type_check_only +class AppDevExperienceStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "FAILED", "UNKNOWN"] + description: str + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudBuildSpec(typing_extensions.TypedDict, total=False): + securityPolicy: typing_extensions.Literal[ + "SECURITY_POLICY_UNSPECIFIED", "NON_PRIVILEGED", "PRIVILEGED" + ] + version: str + +@typing.type_check_only +class ClusterUpgradeGKEUpgrade(typing_extensions.TypedDict, total=False): + name: str + version: str + +@typing.type_check_only +class ClusterUpgradeIgnoredMembership(typing_extensions.TypedDict, total=False): + ignoredTime: str + reason: str + +@typing.type_check_only +class ClusterUpgradeMembershipGKEUpgradeState(typing_extensions.TypedDict, total=False): + status: ClusterUpgradeUpgradeStatus + upgrade: ClusterUpgradeGKEUpgrade + +@typing.type_check_only +class ClusterUpgradeState(typing_extensions.TypedDict, total=False): + ignored: ClusterUpgradeIgnoredMembership + upgrades: _list[ClusterUpgradeMembershipGKEUpgradeState] + +@typing.type_check_only +class ClusterUpgradeUpgradeStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "INELIGIBLE", + "PENDING", + "IN_PROGRESS", + "SOAKING", + "FORCED_SOAKING", + "COMPLETE", + ] + reason: str + updateTime: str + +@typing.type_check_only +class ConfigManagementBinauthzConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class ConfigManagementBinauthzState(typing_extensions.TypedDict, total=False): + version: ConfigManagementBinauthzVersion + webhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementBinauthzVersion(typing_extensions.TypedDict, total=False): + webhookVersion: str + +@typing.type_check_only +class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): + enabled: bool + git: ConfigManagementGitConfig + metricsGcpServiceAccountEmail: str + oci: ConfigManagementOciConfig + preventDrift: bool + sourceFormat: str + stopSyncing: bool + +@typing.type_check_only +class ConfigManagementConfigSyncDeploymentState( + typing_extensions.TypedDict, total=False +): + admissionWebhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gitSync: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + importer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + monitor: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + reconcilerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + rootReconciler: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + syncer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int + deploymentState: ConfigManagementConfigSyncDeploymentState + errors: _list[ConfigManagementConfigSyncError] + reposyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + rootsyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CONFIG_SYNC_NOT_INSTALLED", + "CONFIG_SYNC_INSTALLED", + "CONFIG_SYNC_ERROR", + "CONFIG_SYNC_PENDING", + ] + syncState: ConfigManagementSyncState + version: ConfigManagementConfigSyncVersion + +@typing.type_check_only +class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False): + admissionWebhook: str + gitSync: str + importer: str + monitor: str + otelCollector: str + reconcilerManager: str + resourceGroupControllerManager: str + rootReconciler: str + syncer: str + +@typing.type_check_only +class ConfigManagementErrorResource(typing_extensions.TypedDict, total=False): + resourceGvk: ConfigManagementGroupVersionKind + resourceName: str + resourceNamespace: str + sourcePath: str + +@typing.type_check_only +class ConfigManagementGatekeeperDeploymentState( + typing_extensions.TypedDict, total=False +): + gatekeeperAudit: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperControllerManagerState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperMutation: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementGitConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + httpsProxy: str + policyDir: str + secretType: str + syncBranch: str + syncRepo: str + syncRev: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementGroupVersionKind(typing_extensions.TypedDict, total=False): + group: str + kind: str + version: str + +@typing.type_check_only +class ConfigManagementHierarchyControllerConfig( + typing_extensions.TypedDict, total=False +): + enableHierarchicalResourceQuota: bool + enablePodTreeLabels: bool + enabled: bool + +@typing.type_check_only +class ConfigManagementHierarchyControllerDeploymentState( + typing_extensions.TypedDict, total=False +): + extension: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + hnc: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementHierarchyControllerState( + typing_extensions.TypedDict, total=False +): + state: ConfigManagementHierarchyControllerDeploymentState + version: ConfigManagementHierarchyControllerVersion + +@typing.type_check_only +class ConfigManagementHierarchyControllerVersion( + typing_extensions.TypedDict, total=False +): + extension: str + hnc: str + +@typing.type_check_only +class ConfigManagementInstallError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementOciConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + policyDir: str + secretType: str + syncRepo: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementOperatorState(typing_extensions.TypedDict, total=False): + deploymentState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + errors: _list[ConfigManagementInstallError] + version: str + +@typing.type_check_only +class ConfigManagementPolicyController(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + enabled: bool + exemptableNamespaces: _list[str] + logDeniesEnabled: bool + monitoring: ConfigManagementPolicyControllerMonitoring + mutationEnabled: bool + referentialRulesEnabled: bool + templateLibraryInstalled: bool + updateTime: str + +@typing.type_check_only +class ConfigManagementPolicyControllerMigration( + typing_extensions.TypedDict, total=False +): + copyTime: str + stage: typing_extensions.Literal["STAGE_UNSPECIFIED", "ACM_MANAGED", "POCO_MANAGED"] + +@typing.type_check_only +class ConfigManagementPolicyControllerMonitoring( + typing_extensions.TypedDict, total=False +): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class ConfigManagementPolicyControllerState(typing_extensions.TypedDict, total=False): + deploymentState: ConfigManagementGatekeeperDeploymentState + migration: ConfigManagementPolicyControllerMigration + version: ConfigManagementPolicyControllerVersion + +@typing.type_check_only +class ConfigManagementPolicyControllerVersion(typing_extensions.TypedDict, total=False): + version: str + +@typing.type_check_only +class ConfigManagementSpec(typing_extensions.TypedDict, total=False): + binauthz: ConfigManagementBinauthzConfig + cluster: str + configSync: ConfigManagementConfigSync + hierarchyController: ConfigManagementHierarchyControllerConfig + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + policyController: ConfigManagementPolicyController + version: str + +@typing.type_check_only +class ConfigManagementState(typing_extensions.TypedDict, total=False): + binauthzState: ConfigManagementBinauthzState + clusterName: str + configSyncState: ConfigManagementConfigSyncState + hierarchyControllerState: ConfigManagementHierarchyControllerState + membershipSpec: ConfigManagementSpec + operatorState: ConfigManagementOperatorState + policyControllerState: ConfigManagementPolicyControllerState + +@typing.type_check_only +class ConfigManagementSyncError(typing_extensions.TypedDict, total=False): + code: str + errorMessage: str + errorResources: _list[ConfigManagementErrorResource] + +@typing.type_check_only +class ConfigManagementSyncState(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "SYNC_CODE_UNSPECIFIED", + "SYNCED", + "PENDING", + "ERROR", + "NOT_CONFIGURED", + "NOT_INSTALLED", + "UNAUTHORIZED", + "UNREACHABLE", + ] + errors: _list[ConfigManagementSyncError] + importToken: str + lastSync: str + lastSyncTime: str + sourceToken: str + syncToken: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class FeatureSpec(typing_extensions.TypedDict, total=False): + cloudbuild: CloudBuildSpec + configmanagement: ConfigManagementSpec + identityservice: IdentityServiceSpec + origin: Origin + policycontroller: PolicyControllerSpec + servicemesh: ServiceMeshSpec + workloadcertificate: WorkloadCertificateSpec + +@typing.type_check_only +class FeatureState(typing_extensions.TypedDict, total=False): + appdevexperience: AppDevExperienceState + clusterupgrade: ClusterUpgradeState + configmanagement: ConfigManagementState + identityservice: IdentityServiceState + metering: MeteringState + policycontroller: PolicyControllerState + servicemesh: ServiceMeshState + state: State + @typing.type_check_only class GoogleRpcStatus(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class IdentityServiceAuthMethod(typing_extensions.TypedDict, total=False): + azureadConfig: IdentityServiceAzureADConfig + googleConfig: IdentityServiceGoogleConfig + ldapConfig: IdentityServiceLdapConfig + name: str + oidcConfig: IdentityServiceOidcConfig + proxy: str + samlConfig: IdentityServiceSamlConfig + +@typing.type_check_only +class IdentityServiceAzureADConfig(typing_extensions.TypedDict, total=False): + clientId: str + clientSecret: str + encryptedClientSecret: str + groupFormat: str + kubectlRedirectUri: str + tenant: str + userClaim: str + +@typing.type_check_only +class IdentityServiceDiagnosticInterface(typing_extensions.TypedDict, total=False): + enabled: bool + expirationTime: str + +@typing.type_check_only +class IdentityServiceGoogleConfig(typing_extensions.TypedDict, total=False): + disable: bool + +@typing.type_check_only +class IdentityServiceGroupConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + +@typing.type_check_only +class IdentityServiceIdentityServiceOptions(typing_extensions.TypedDict, total=False): + diagnosticInterface: IdentityServiceDiagnosticInterface + sessionDuration: str + +@typing.type_check_only +class IdentityServiceLdapConfig(typing_extensions.TypedDict, total=False): + group: IdentityServiceGroupConfig + server: IdentityServiceServerConfig + serviceAccount: IdentityServiceServiceAccountConfig + user: IdentityServiceUserConfig + +@typing.type_check_only +class IdentityServiceOidcConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + clientId: str + clientSecret: str + deployCloudConsoleProxy: bool + enableAccessToken: bool + encryptedClientSecret: str + extraParams: str + groupPrefix: str + groupsClaim: str + issuerUri: str + kubectlRedirectUri: str + scopes: str + userClaim: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceSamlConfig(typing_extensions.TypedDict, total=False): + attributeMapping: dict[str, typing.Any] + groupPrefix: str + groupsAttribute: str + identityProviderCertificates: _list[str] + identityProviderId: str + identityProviderSsoUri: str + userAttribute: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceServerConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + connectionType: str + host: str + +@typing.type_check_only +class IdentityServiceServiceAccountConfig(typing_extensions.TypedDict, total=False): + simpleBindCredentials: IdentityServiceSimpleBindCredentials + +@typing.type_check_only +class IdentityServiceSimpleBindCredentials(typing_extensions.TypedDict, total=False): + dn: str + encryptedPassword: str + password: str + +@typing.type_check_only +class IdentityServiceSpec(typing_extensions.TypedDict, total=False): + authMethods: _list[IdentityServiceAuthMethod] + identityServiceOptions: IdentityServiceIdentityServiceOptions + +@typing.type_check_only +class IdentityServiceState(typing_extensions.TypedDict, total=False): + failureReason: str + installedVersion: str + memberConfig: IdentityServiceSpec + state: typing_extensions.Literal["DEPLOYMENT_STATE_UNSPECIFIED", "OK", "ERROR"] + +@typing.type_check_only +class IdentityServiceUserConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + loginAttribute: str + +@typing.type_check_only +class LifecycleState(typing_extensions.TypedDict, total=False): + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ENABLING", + "ACTIVE", + "DISABLING", + "UPDATING", + "SERVICE_UPDATING", + ] + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMembershipFeaturesResponse(typing_extensions.TypedDict, total=False): + membershipFeatures: _list[MembershipFeature] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -34,6 +514,22 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MembershipFeature(typing_extensions.TypedDict, total=False): + createTime: str + deleteTime: str + labels: dict[str, typing.Any] + lifecycleState: LifecycleState + name: str + spec: FeatureSpec + state: FeatureState + updateTime: str + +@typing.type_check_only +class MeteringState(typing_extensions.TypedDict, total=False): + lastMeasurementTime: str + preciseLastMeasuredClusterVcpuCapacity: float + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -41,3 +537,268 @@ class Operation(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + cancelRequested: bool + createTime: str + endTime: str + statusDetail: str + target: str + verb: str + +@typing.type_check_only +class Origin(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "FLEET", "FLEET_OUT_OF_SYNC", "USER" + ] + +@typing.type_check_only +class PolicyControllerBundleInstallSpec(typing_extensions.TypedDict, total=False): + exemptedNamespaces: _list[str] + +@typing.type_check_only +class PolicyControllerHubConfig(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + constraintViolationLimit: str + deploymentConfigs: dict[str, typing.Any] + exemptableNamespaces: _list[str] + installSpec: typing_extensions.Literal[ + "INSTALL_SPEC_UNSPECIFIED", + "INSTALL_SPEC_NOT_INSTALLED", + "INSTALL_SPEC_ENABLED", + "INSTALL_SPEC_SUSPENDED", + "INSTALL_SPEC_DETACHED", + ] + logDeniesEnabled: bool + monitoring: PolicyControllerMonitoringConfig + mutationEnabled: bool + policyContent: PolicyControllerPolicyContentSpec + referentialRulesEnabled: bool + +@typing.type_check_only +class PolicyControllerMonitoringConfig(typing_extensions.TypedDict, total=False): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class PolicyControllerOnClusterState(typing_extensions.TypedDict, total=False): + details: str + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerPolicyContentSpec(typing_extensions.TypedDict, total=False): + bundles: dict[str, typing.Any] + templateLibrary: PolicyControllerTemplateLibraryConfig + +@typing.type_check_only +class PolicyControllerPolicyContentState(typing_extensions.TypedDict, total=False): + bundleStates: dict[str, typing.Any] + referentialSyncConfigState: PolicyControllerOnClusterState + templateLibraryState: PolicyControllerOnClusterState + +@typing.type_check_only +class PolicyControllerPolicyControllerDeploymentConfig( + typing_extensions.TypedDict, total=False +): + containerResources: PolicyControllerResourceRequirements + podAffinity: typing_extensions.Literal[ + "AFFINITY_UNSPECIFIED", "NO_AFFINITY", "ANTI_AFFINITY" + ] + podAntiAffinity: bool + podTolerations: _list[PolicyControllerToleration] + replicaCount: str + +@typing.type_check_only +class PolicyControllerResourceList(typing_extensions.TypedDict, total=False): + cpu: str + memory: str + +@typing.type_check_only +class PolicyControllerResourceRequirements(typing_extensions.TypedDict, total=False): + limits: PolicyControllerResourceList + requests: PolicyControllerResourceList + +@typing.type_check_only +class PolicyControllerSpec(typing_extensions.TypedDict, total=False): + policyControllerHubConfig: PolicyControllerHubConfig + version: str + +@typing.type_check_only +class PolicyControllerState(typing_extensions.TypedDict, total=False): + componentStates: dict[str, typing.Any] + policyContentState: PolicyControllerPolicyContentState + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerTemplateLibraryConfig(typing_extensions.TypedDict, total=False): + installation: typing_extensions.Literal[ + "INSTALLATION_UNSPECIFIED", "NOT_INSTALLED", "ALL" + ] + +@typing.type_check_only +class PolicyControllerToleration(typing_extensions.TypedDict, total=False): + effect: str + key: str + operator: str + value: str + +@typing.type_check_only +class ServiceMeshAnalysisMessage(typing_extensions.TypedDict, total=False): + args: dict[str, typing.Any] + description: str + messageBase: ServiceMeshAnalysisMessageBase + resourcePaths: _list[str] + +@typing.type_check_only +class ServiceMeshAnalysisMessageBase(typing_extensions.TypedDict, total=False): + documentationUrl: str + level: typing_extensions.Literal["LEVEL_UNSPECIFIED", "ERROR", "WARNING", "INFO"] + type: ServiceMeshType + +@typing.type_check_only +class ServiceMeshCondition(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "MESH_IAM_PERMISSION_DENIED", + "MESH_IAM_CROSS_PROJECT_PERMISSION_DENIED", + "CNI_CONFIG_UNSUPPORTED", + "GKE_SANDBOX_UNSUPPORTED", + "NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED", + "CNI_INSTALLATION_FAILED", + "CNI_POD_UNSCHEDULABLE", + "CLUSTER_HAS_ZERO_NODES", + "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", + "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", + "CONFIG_APPLY_INTERNAL_ERROR", + "CONFIG_VALIDATION_ERROR", + "CONFIG_VALIDATION_WARNING", + "QUOTA_EXCEEDED_BACKEND_SERVICES", + "QUOTA_EXCEEDED_HEALTH_CHECKS", + "QUOTA_EXCEEDED_HTTP_ROUTES", + "QUOTA_EXCEEDED_TCP_ROUTES", + "QUOTA_EXCEEDED_TLS_ROUTES", + "QUOTA_EXCEEDED_TRAFFIC_POLICIES", + "QUOTA_EXCEEDED_ENDPOINT_POLICIES", + "QUOTA_EXCEEDED_GATEWAYS", + "QUOTA_EXCEEDED_MESHES", + "QUOTA_EXCEEDED_SERVER_TLS_POLICIES", + "QUOTA_EXCEEDED_CLIENT_TLS_POLICIES", + "QUOTA_EXCEEDED_SERVICE_LB_POLICIES", + "QUOTA_EXCEEDED_HTTP_FILTERS", + "QUOTA_EXCEEDED_TCP_FILTERS", + "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", + ] + details: str + documentationLink: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "ERROR", "WARNING", "INFO" + ] + +@typing.type_check_only +class ServiceMeshControlPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + implementation: typing_extensions.Literal[ + "IMPLEMENTATION_UNSPECIFIED", "ISTIOD", "TRAFFIC_DIRECTOR", "UPDATING" + ] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshDataPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] + controlPlane: typing_extensions.Literal[ + "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" + ] + defaultChannel: typing_extensions.Literal[ + "CHANNEL_UNSPECIFIED", "RAPID", "REGULAR", "STABLE" + ] + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + +@typing.type_check_only +class ServiceMeshState(typing_extensions.TypedDict, total=False): + analysisMessages: _list[ServiceMeshAnalysisMessage] + conditions: _list[ServiceMeshCondition] + configApiVersion: str + controlPlaneManagement: ServiceMeshControlPlaneManagement + dataPlaneManagement: ServiceMeshDataPlaneManagement + +@typing.type_check_only +class ServiceMeshStatusDetails(typing_extensions.TypedDict, total=False): + code: str + details: str + +@typing.type_check_only +class ServiceMeshType(typing_extensions.TypedDict, total=False): + code: str + displayName: str + +@typing.type_check_only +class State(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "WARNING", "ERROR"] + description: str + updateTime: str + +@typing.type_check_only +class WorkloadCertificateSpec(typing_extensions.TypedDict, total=False): + certificateManagement: typing_extensions.Literal[ + "CERTIFICATE_MANAGEMENT_UNSPECIFIED", "DISABLED", "ENABLED" + ] diff --git a/googleapiclient-stubs/_apis/gkehub/v2alpha/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v2alpha/resources.pyi index 73f1ea0c..0aac1977 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2alpha/resources.pyi @@ -17,6 +17,53 @@ class GKEHubResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class MembershipsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FeaturesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: MembershipFeature = ..., + featureId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MembershipFeatureHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMembershipFeaturesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMembershipFeaturesResponseHttpRequest, + previous_response: ListMembershipFeaturesResponse, + ) -> ListMembershipFeaturesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: MembershipFeature = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def features(self) -> FeaturesResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -61,6 +108,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def memberships(self) -> MembershipsResource: ... def operations(self) -> OperationsResource: ... def locations(self) -> LocationsResource: ... @@ -95,6 +143,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMembershipFeaturesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMembershipFeaturesResponse: ... + @typing.type_check_only class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -111,6 +167,14 @@ class LocationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Location: ... +@typing.type_check_only +class MembershipFeatureHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MembershipFeature: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/gkehub/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v2alpha/schemas.pyi index e3e66c67..aff4c593 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2alpha/schemas.pyi @@ -4,23 +4,503 @@ import typing_extensions _list = list +@typing.type_check_only +class AppDevExperienceState(typing_extensions.TypedDict, total=False): + networkingInstallSucceeded: AppDevExperienceStatus + +@typing.type_check_only +class AppDevExperienceStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "FAILED", "UNKNOWN"] + description: str + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudBuildSpec(typing_extensions.TypedDict, total=False): + securityPolicy: typing_extensions.Literal[ + "SECURITY_POLICY_UNSPECIFIED", "NON_PRIVILEGED", "PRIVILEGED" + ] + version: str + +@typing.type_check_only +class ClusterUpgradeGKEUpgrade(typing_extensions.TypedDict, total=False): + name: str + version: str + +@typing.type_check_only +class ClusterUpgradeIgnoredMembership(typing_extensions.TypedDict, total=False): + ignoredTime: str + reason: str + +@typing.type_check_only +class ClusterUpgradeMembershipGKEUpgradeState(typing_extensions.TypedDict, total=False): + status: ClusterUpgradeUpgradeStatus + upgrade: ClusterUpgradeGKEUpgrade + +@typing.type_check_only +class ClusterUpgradeState(typing_extensions.TypedDict, total=False): + ignored: ClusterUpgradeIgnoredMembership + upgrades: _list[ClusterUpgradeMembershipGKEUpgradeState] + +@typing.type_check_only +class ClusterUpgradeUpgradeStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "INELIGIBLE", + "PENDING", + "IN_PROGRESS", + "SOAKING", + "FORCED_SOAKING", + "COMPLETE", + ] + reason: str + updateTime: str + +@typing.type_check_only +class ConfigManagementBinauthzConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class ConfigManagementBinauthzState(typing_extensions.TypedDict, total=False): + version: ConfigManagementBinauthzVersion + webhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementBinauthzVersion(typing_extensions.TypedDict, total=False): + webhookVersion: str + +@typing.type_check_only +class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): + enabled: bool + git: ConfigManagementGitConfig + metricsGcpServiceAccountEmail: str + oci: ConfigManagementOciConfig + preventDrift: bool + sourceFormat: str + stopSyncing: bool + +@typing.type_check_only +class ConfigManagementConfigSyncDeploymentState( + typing_extensions.TypedDict, total=False +): + admissionWebhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gitSync: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + importer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + monitor: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + reconcilerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + rootReconciler: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + syncer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int + deploymentState: ConfigManagementConfigSyncDeploymentState + errors: _list[ConfigManagementConfigSyncError] + reposyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + rootsyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CONFIG_SYNC_NOT_INSTALLED", + "CONFIG_SYNC_INSTALLED", + "CONFIG_SYNC_ERROR", + "CONFIG_SYNC_PENDING", + ] + syncState: ConfigManagementSyncState + version: ConfigManagementConfigSyncVersion + +@typing.type_check_only +class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False): + admissionWebhook: str + gitSync: str + importer: str + monitor: str + otelCollector: str + reconcilerManager: str + resourceGroupControllerManager: str + rootReconciler: str + syncer: str + +@typing.type_check_only +class ConfigManagementErrorResource(typing_extensions.TypedDict, total=False): + resourceGvk: ConfigManagementGroupVersionKind + resourceName: str + resourceNamespace: str + sourcePath: str + +@typing.type_check_only +class ConfigManagementGatekeeperDeploymentState( + typing_extensions.TypedDict, total=False +): + gatekeeperAudit: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperControllerManagerState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperMutation: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementGitConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + httpsProxy: str + policyDir: str + secretType: str + syncBranch: str + syncRepo: str + syncRev: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementGroupVersionKind(typing_extensions.TypedDict, total=False): + group: str + kind: str + version: str + +@typing.type_check_only +class ConfigManagementHierarchyControllerConfig( + typing_extensions.TypedDict, total=False +): + enableHierarchicalResourceQuota: bool + enablePodTreeLabels: bool + enabled: bool + +@typing.type_check_only +class ConfigManagementHierarchyControllerDeploymentState( + typing_extensions.TypedDict, total=False +): + extension: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + hnc: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementHierarchyControllerState( + typing_extensions.TypedDict, total=False +): + state: ConfigManagementHierarchyControllerDeploymentState + version: ConfigManagementHierarchyControllerVersion + +@typing.type_check_only +class ConfigManagementHierarchyControllerVersion( + typing_extensions.TypedDict, total=False +): + extension: str + hnc: str + +@typing.type_check_only +class ConfigManagementInstallError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementOciConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + policyDir: str + secretType: str + syncRepo: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementOperatorState(typing_extensions.TypedDict, total=False): + deploymentState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + errors: _list[ConfigManagementInstallError] + version: str + +@typing.type_check_only +class ConfigManagementPolicyController(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + enabled: bool + exemptableNamespaces: _list[str] + logDeniesEnabled: bool + monitoring: ConfigManagementPolicyControllerMonitoring + mutationEnabled: bool + referentialRulesEnabled: bool + templateLibraryInstalled: bool + updateTime: str + +@typing.type_check_only +class ConfigManagementPolicyControllerMigration( + typing_extensions.TypedDict, total=False +): + copyTime: str + stage: typing_extensions.Literal["STAGE_UNSPECIFIED", "ACM_MANAGED", "POCO_MANAGED"] + +@typing.type_check_only +class ConfigManagementPolicyControllerMonitoring( + typing_extensions.TypedDict, total=False +): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class ConfigManagementPolicyControllerState(typing_extensions.TypedDict, total=False): + deploymentState: ConfigManagementGatekeeperDeploymentState + migration: ConfigManagementPolicyControllerMigration + version: ConfigManagementPolicyControllerVersion + +@typing.type_check_only +class ConfigManagementPolicyControllerVersion(typing_extensions.TypedDict, total=False): + version: str + +@typing.type_check_only +class ConfigManagementSpec(typing_extensions.TypedDict, total=False): + binauthz: ConfigManagementBinauthzConfig + cluster: str + configSync: ConfigManagementConfigSync + hierarchyController: ConfigManagementHierarchyControllerConfig + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + policyController: ConfigManagementPolicyController + version: str + +@typing.type_check_only +class ConfigManagementState(typing_extensions.TypedDict, total=False): + binauthzState: ConfigManagementBinauthzState + clusterName: str + configSyncState: ConfigManagementConfigSyncState + hierarchyControllerState: ConfigManagementHierarchyControllerState + membershipSpec: ConfigManagementSpec + operatorState: ConfigManagementOperatorState + policyControllerState: ConfigManagementPolicyControllerState + +@typing.type_check_only +class ConfigManagementSyncError(typing_extensions.TypedDict, total=False): + code: str + errorMessage: str + errorResources: _list[ConfigManagementErrorResource] + +@typing.type_check_only +class ConfigManagementSyncState(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "SYNC_CODE_UNSPECIFIED", + "SYNCED", + "PENDING", + "ERROR", + "NOT_CONFIGURED", + "NOT_INSTALLED", + "UNAUTHORIZED", + "UNREACHABLE", + ] + errors: _list[ConfigManagementSyncError] + importToken: str + lastSync: str + lastSyncTime: str + sourceToken: str + syncToken: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class FeatureSpec(typing_extensions.TypedDict, total=False): + cloudbuild: CloudBuildSpec + configmanagement: ConfigManagementSpec + identityservice: IdentityServiceSpec + origin: Origin + policycontroller: PolicyControllerSpec + servicemesh: ServiceMeshSpec + workloadcertificate: WorkloadCertificateSpec + +@typing.type_check_only +class FeatureState(typing_extensions.TypedDict, total=False): + appdevexperience: AppDevExperienceState + clusterupgrade: ClusterUpgradeState + configmanagement: ConfigManagementState + identityservice: IdentityServiceState + metering: MeteringState + policycontroller: PolicyControllerState + servicemesh: ServiceMeshState + state: State + @typing.type_check_only class GoogleRpcStatus(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class IdentityServiceAuthMethod(typing_extensions.TypedDict, total=False): + azureadConfig: IdentityServiceAzureADConfig + googleConfig: IdentityServiceGoogleConfig + ldapConfig: IdentityServiceLdapConfig + name: str + oidcConfig: IdentityServiceOidcConfig + proxy: str + samlConfig: IdentityServiceSamlConfig + +@typing.type_check_only +class IdentityServiceAzureADConfig(typing_extensions.TypedDict, total=False): + clientId: str + clientSecret: str + encryptedClientSecret: str + groupFormat: str + kubectlRedirectUri: str + tenant: str + userClaim: str + +@typing.type_check_only +class IdentityServiceDiagnosticInterface(typing_extensions.TypedDict, total=False): + enabled: bool + expirationTime: str + +@typing.type_check_only +class IdentityServiceGoogleConfig(typing_extensions.TypedDict, total=False): + disable: bool + +@typing.type_check_only +class IdentityServiceGroupConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + +@typing.type_check_only +class IdentityServiceIdentityServiceOptions(typing_extensions.TypedDict, total=False): + diagnosticInterface: IdentityServiceDiagnosticInterface + sessionDuration: str + +@typing.type_check_only +class IdentityServiceLdapConfig(typing_extensions.TypedDict, total=False): + group: IdentityServiceGroupConfig + server: IdentityServiceServerConfig + serviceAccount: IdentityServiceServiceAccountConfig + user: IdentityServiceUserConfig + +@typing.type_check_only +class IdentityServiceOidcConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + clientId: str + clientSecret: str + deployCloudConsoleProxy: bool + enableAccessToken: bool + encryptedClientSecret: str + extraParams: str + groupPrefix: str + groupsClaim: str + issuerUri: str + kubectlRedirectUri: str + scopes: str + userClaim: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceSamlConfig(typing_extensions.TypedDict, total=False): + attributeMapping: dict[str, typing.Any] + groupPrefix: str + groupsAttribute: str + identityProviderCertificates: _list[str] + identityProviderId: str + identityProviderSsoUri: str + userAttribute: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceServerConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + connectionType: str + host: str + +@typing.type_check_only +class IdentityServiceServiceAccountConfig(typing_extensions.TypedDict, total=False): + simpleBindCredentials: IdentityServiceSimpleBindCredentials + +@typing.type_check_only +class IdentityServiceSimpleBindCredentials(typing_extensions.TypedDict, total=False): + dn: str + encryptedPassword: str + password: str + +@typing.type_check_only +class IdentityServiceSpec(typing_extensions.TypedDict, total=False): + authMethods: _list[IdentityServiceAuthMethod] + identityServiceOptions: IdentityServiceIdentityServiceOptions + +@typing.type_check_only +class IdentityServiceState(typing_extensions.TypedDict, total=False): + failureReason: str + installedVersion: str + memberConfig: IdentityServiceSpec + state: typing_extensions.Literal["DEPLOYMENT_STATE_UNSPECIFIED", "OK", "ERROR"] + +@typing.type_check_only +class IdentityServiceUserConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + loginAttribute: str + +@typing.type_check_only +class LifecycleState(typing_extensions.TypedDict, total=False): + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ENABLING", + "ACTIVE", + "DISABLING", + "UPDATING", + "SERVICE_UPDATING", + ] + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMembershipFeaturesResponse(typing_extensions.TypedDict, total=False): + membershipFeatures: _list[MembershipFeature] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -34,6 +514,22 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MembershipFeature(typing_extensions.TypedDict, total=False): + createTime: str + deleteTime: str + labels: dict[str, typing.Any] + lifecycleState: LifecycleState + name: str + spec: FeatureSpec + state: FeatureState + updateTime: str + +@typing.type_check_only +class MeteringState(typing_extensions.TypedDict, total=False): + lastMeasurementTime: str + preciseLastMeasuredClusterVcpuCapacity: float + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -41,3 +537,268 @@ class Operation(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + cancelRequested: bool + createTime: str + endTime: str + statusDetail: str + target: str + verb: str + +@typing.type_check_only +class Origin(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "FLEET", "FLEET_OUT_OF_SYNC", "USER" + ] + +@typing.type_check_only +class PolicyControllerBundleInstallSpec(typing_extensions.TypedDict, total=False): + exemptedNamespaces: _list[str] + +@typing.type_check_only +class PolicyControllerHubConfig(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + constraintViolationLimit: str + deploymentConfigs: dict[str, typing.Any] + exemptableNamespaces: _list[str] + installSpec: typing_extensions.Literal[ + "INSTALL_SPEC_UNSPECIFIED", + "INSTALL_SPEC_NOT_INSTALLED", + "INSTALL_SPEC_ENABLED", + "INSTALL_SPEC_SUSPENDED", + "INSTALL_SPEC_DETACHED", + ] + logDeniesEnabled: bool + monitoring: PolicyControllerMonitoringConfig + mutationEnabled: bool + policyContent: PolicyControllerPolicyContentSpec + referentialRulesEnabled: bool + +@typing.type_check_only +class PolicyControllerMonitoringConfig(typing_extensions.TypedDict, total=False): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class PolicyControllerOnClusterState(typing_extensions.TypedDict, total=False): + details: str + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerPolicyContentSpec(typing_extensions.TypedDict, total=False): + bundles: dict[str, typing.Any] + templateLibrary: PolicyControllerTemplateLibraryConfig + +@typing.type_check_only +class PolicyControllerPolicyContentState(typing_extensions.TypedDict, total=False): + bundleStates: dict[str, typing.Any] + referentialSyncConfigState: PolicyControllerOnClusterState + templateLibraryState: PolicyControllerOnClusterState + +@typing.type_check_only +class PolicyControllerPolicyControllerDeploymentConfig( + typing_extensions.TypedDict, total=False +): + containerResources: PolicyControllerResourceRequirements + podAffinity: typing_extensions.Literal[ + "AFFINITY_UNSPECIFIED", "NO_AFFINITY", "ANTI_AFFINITY" + ] + podAntiAffinity: bool + podTolerations: _list[PolicyControllerToleration] + replicaCount: str + +@typing.type_check_only +class PolicyControllerResourceList(typing_extensions.TypedDict, total=False): + cpu: str + memory: str + +@typing.type_check_only +class PolicyControllerResourceRequirements(typing_extensions.TypedDict, total=False): + limits: PolicyControllerResourceList + requests: PolicyControllerResourceList + +@typing.type_check_only +class PolicyControllerSpec(typing_extensions.TypedDict, total=False): + policyControllerHubConfig: PolicyControllerHubConfig + version: str + +@typing.type_check_only +class PolicyControllerState(typing_extensions.TypedDict, total=False): + componentStates: dict[str, typing.Any] + policyContentState: PolicyControllerPolicyContentState + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerTemplateLibraryConfig(typing_extensions.TypedDict, total=False): + installation: typing_extensions.Literal[ + "INSTALLATION_UNSPECIFIED", "NOT_INSTALLED", "ALL" + ] + +@typing.type_check_only +class PolicyControllerToleration(typing_extensions.TypedDict, total=False): + effect: str + key: str + operator: str + value: str + +@typing.type_check_only +class ServiceMeshAnalysisMessage(typing_extensions.TypedDict, total=False): + args: dict[str, typing.Any] + description: str + messageBase: ServiceMeshAnalysisMessageBase + resourcePaths: _list[str] + +@typing.type_check_only +class ServiceMeshAnalysisMessageBase(typing_extensions.TypedDict, total=False): + documentationUrl: str + level: typing_extensions.Literal["LEVEL_UNSPECIFIED", "ERROR", "WARNING", "INFO"] + type: ServiceMeshType + +@typing.type_check_only +class ServiceMeshCondition(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "MESH_IAM_PERMISSION_DENIED", + "MESH_IAM_CROSS_PROJECT_PERMISSION_DENIED", + "CNI_CONFIG_UNSUPPORTED", + "GKE_SANDBOX_UNSUPPORTED", + "NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED", + "CNI_INSTALLATION_FAILED", + "CNI_POD_UNSCHEDULABLE", + "CLUSTER_HAS_ZERO_NODES", + "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", + "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", + "CONFIG_APPLY_INTERNAL_ERROR", + "CONFIG_VALIDATION_ERROR", + "CONFIG_VALIDATION_WARNING", + "QUOTA_EXCEEDED_BACKEND_SERVICES", + "QUOTA_EXCEEDED_HEALTH_CHECKS", + "QUOTA_EXCEEDED_HTTP_ROUTES", + "QUOTA_EXCEEDED_TCP_ROUTES", + "QUOTA_EXCEEDED_TLS_ROUTES", + "QUOTA_EXCEEDED_TRAFFIC_POLICIES", + "QUOTA_EXCEEDED_ENDPOINT_POLICIES", + "QUOTA_EXCEEDED_GATEWAYS", + "QUOTA_EXCEEDED_MESHES", + "QUOTA_EXCEEDED_SERVER_TLS_POLICIES", + "QUOTA_EXCEEDED_CLIENT_TLS_POLICIES", + "QUOTA_EXCEEDED_SERVICE_LB_POLICIES", + "QUOTA_EXCEEDED_HTTP_FILTERS", + "QUOTA_EXCEEDED_TCP_FILTERS", + "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", + ] + details: str + documentationLink: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "ERROR", "WARNING", "INFO" + ] + +@typing.type_check_only +class ServiceMeshControlPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + implementation: typing_extensions.Literal[ + "IMPLEMENTATION_UNSPECIFIED", "ISTIOD", "TRAFFIC_DIRECTOR", "UPDATING" + ] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshDataPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] + controlPlane: typing_extensions.Literal[ + "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" + ] + defaultChannel: typing_extensions.Literal[ + "CHANNEL_UNSPECIFIED", "RAPID", "REGULAR", "STABLE" + ] + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + +@typing.type_check_only +class ServiceMeshState(typing_extensions.TypedDict, total=False): + analysisMessages: _list[ServiceMeshAnalysisMessage] + conditions: _list[ServiceMeshCondition] + configApiVersion: str + controlPlaneManagement: ServiceMeshControlPlaneManagement + dataPlaneManagement: ServiceMeshDataPlaneManagement + +@typing.type_check_only +class ServiceMeshStatusDetails(typing_extensions.TypedDict, total=False): + code: str + details: str + +@typing.type_check_only +class ServiceMeshType(typing_extensions.TypedDict, total=False): + code: str + displayName: str + +@typing.type_check_only +class State(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "WARNING", "ERROR"] + description: str + updateTime: str + +@typing.type_check_only +class WorkloadCertificateSpec(typing_extensions.TypedDict, total=False): + certificateManagement: typing_extensions.Literal[ + "CERTIFICATE_MANAGEMENT_UNSPECIFIED", "DISABLED", "ENABLED" + ] diff --git a/googleapiclient-stubs/_apis/gkehub/v2beta/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v2beta/resources.pyi index 73f1ea0c..0aac1977 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2beta/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2beta/resources.pyi @@ -17,6 +17,53 @@ class GKEHubResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class MembershipsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FeaturesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: MembershipFeature = ..., + featureId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MembershipFeatureHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMembershipFeaturesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMembershipFeaturesResponseHttpRequest, + previous_response: ListMembershipFeaturesResponse, + ) -> ListMembershipFeaturesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: MembershipFeature = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def features(self) -> FeaturesResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -61,6 +108,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def memberships(self) -> MembershipsResource: ... def operations(self) -> OperationsResource: ... def locations(self) -> LocationsResource: ... @@ -95,6 +143,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMembershipFeaturesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMembershipFeaturesResponse: ... + @typing.type_check_only class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -111,6 +167,14 @@ class LocationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Location: ... +@typing.type_check_only +class MembershipFeatureHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MembershipFeature: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/gkehub/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v2beta/schemas.pyi index e3e66c67..aff4c593 100644 --- a/googleapiclient-stubs/_apis/gkehub/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v2beta/schemas.pyi @@ -4,23 +4,503 @@ import typing_extensions _list = list +@typing.type_check_only +class AppDevExperienceState(typing_extensions.TypedDict, total=False): + networkingInstallSucceeded: AppDevExperienceStatus + +@typing.type_check_only +class AppDevExperienceStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "FAILED", "UNKNOWN"] + description: str + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudBuildSpec(typing_extensions.TypedDict, total=False): + securityPolicy: typing_extensions.Literal[ + "SECURITY_POLICY_UNSPECIFIED", "NON_PRIVILEGED", "PRIVILEGED" + ] + version: str + +@typing.type_check_only +class ClusterUpgradeGKEUpgrade(typing_extensions.TypedDict, total=False): + name: str + version: str + +@typing.type_check_only +class ClusterUpgradeIgnoredMembership(typing_extensions.TypedDict, total=False): + ignoredTime: str + reason: str + +@typing.type_check_only +class ClusterUpgradeMembershipGKEUpgradeState(typing_extensions.TypedDict, total=False): + status: ClusterUpgradeUpgradeStatus + upgrade: ClusterUpgradeGKEUpgrade + +@typing.type_check_only +class ClusterUpgradeState(typing_extensions.TypedDict, total=False): + ignored: ClusterUpgradeIgnoredMembership + upgrades: _list[ClusterUpgradeMembershipGKEUpgradeState] + +@typing.type_check_only +class ClusterUpgradeUpgradeStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "INELIGIBLE", + "PENDING", + "IN_PROGRESS", + "SOAKING", + "FORCED_SOAKING", + "COMPLETE", + ] + reason: str + updateTime: str + +@typing.type_check_only +class ConfigManagementBinauthzConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class ConfigManagementBinauthzState(typing_extensions.TypedDict, total=False): + version: ConfigManagementBinauthzVersion + webhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementBinauthzVersion(typing_extensions.TypedDict, total=False): + webhookVersion: str + +@typing.type_check_only +class ConfigManagementConfigSync(typing_extensions.TypedDict, total=False): + enabled: bool + git: ConfigManagementGitConfig + metricsGcpServiceAccountEmail: str + oci: ConfigManagementOciConfig + preventDrift: bool + sourceFormat: str + stopSyncing: bool + +@typing.type_check_only +class ConfigManagementConfigSyncDeploymentState( + typing_extensions.TypedDict, total=False +): + admissionWebhook: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gitSync: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + importer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + monitor: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + reconcilerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + rootReconciler: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + syncer: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementConfigSyncError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementConfigSyncState(typing_extensions.TypedDict, total=False): + clusterLevelStopSyncingState: typing_extensions.Literal[ + "STOP_SYNCING_STATE_UNSPECIFIED", "NOT_STOPPED", "PENDING", "STOPPED" + ] + crCount: int + deploymentState: ConfigManagementConfigSyncDeploymentState + errors: _list[ConfigManagementConfigSyncError] + reposyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + rootsyncCrd: typing_extensions.Literal[ + "CRD_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLED", + "TERMINATING", + "INSTALLING", + ] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CONFIG_SYNC_NOT_INSTALLED", + "CONFIG_SYNC_INSTALLED", + "CONFIG_SYNC_ERROR", + "CONFIG_SYNC_PENDING", + ] + syncState: ConfigManagementSyncState + version: ConfigManagementConfigSyncVersion + +@typing.type_check_only +class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False): + admissionWebhook: str + gitSync: str + importer: str + monitor: str + otelCollector: str + reconcilerManager: str + resourceGroupControllerManager: str + rootReconciler: str + syncer: str + +@typing.type_check_only +class ConfigManagementErrorResource(typing_extensions.TypedDict, total=False): + resourceGvk: ConfigManagementGroupVersionKind + resourceName: str + resourceNamespace: str + sourcePath: str + +@typing.type_check_only +class ConfigManagementGatekeeperDeploymentState( + typing_extensions.TypedDict, total=False +): + gatekeeperAudit: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperControllerManagerState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + gatekeeperMutation: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementGitConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + httpsProxy: str + policyDir: str + secretType: str + syncBranch: str + syncRepo: str + syncRev: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementGroupVersionKind(typing_extensions.TypedDict, total=False): + group: str + kind: str + version: str + +@typing.type_check_only +class ConfigManagementHierarchyControllerConfig( + typing_extensions.TypedDict, total=False +): + enableHierarchicalResourceQuota: bool + enablePodTreeLabels: bool + enabled: bool + +@typing.type_check_only +class ConfigManagementHierarchyControllerDeploymentState( + typing_extensions.TypedDict, total=False +): + extension: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + hnc: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + +@typing.type_check_only +class ConfigManagementHierarchyControllerState( + typing_extensions.TypedDict, total=False +): + state: ConfigManagementHierarchyControllerDeploymentState + version: ConfigManagementHierarchyControllerVersion + +@typing.type_check_only +class ConfigManagementHierarchyControllerVersion( + typing_extensions.TypedDict, total=False +): + extension: str + hnc: str + +@typing.type_check_only +class ConfigManagementInstallError(typing_extensions.TypedDict, total=False): + errorMessage: str + +@typing.type_check_only +class ConfigManagementOciConfig(typing_extensions.TypedDict, total=False): + gcpServiceAccountEmail: str + policyDir: str + secretType: str + syncRepo: str + syncWaitSecs: str + +@typing.type_check_only +class ConfigManagementOperatorState(typing_extensions.TypedDict, total=False): + deploymentState: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] + errors: _list[ConfigManagementInstallError] + version: str + +@typing.type_check_only +class ConfigManagementPolicyController(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + enabled: bool + exemptableNamespaces: _list[str] + logDeniesEnabled: bool + monitoring: ConfigManagementPolicyControllerMonitoring + mutationEnabled: bool + referentialRulesEnabled: bool + templateLibraryInstalled: bool + updateTime: str + +@typing.type_check_only +class ConfigManagementPolicyControllerMigration( + typing_extensions.TypedDict, total=False +): + copyTime: str + stage: typing_extensions.Literal["STAGE_UNSPECIFIED", "ACM_MANAGED", "POCO_MANAGED"] + +@typing.type_check_only +class ConfigManagementPolicyControllerMonitoring( + typing_extensions.TypedDict, total=False +): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class ConfigManagementPolicyControllerState(typing_extensions.TypedDict, total=False): + deploymentState: ConfigManagementGatekeeperDeploymentState + migration: ConfigManagementPolicyControllerMigration + version: ConfigManagementPolicyControllerVersion + +@typing.type_check_only +class ConfigManagementPolicyControllerVersion(typing_extensions.TypedDict, total=False): + version: str + +@typing.type_check_only +class ConfigManagementSpec(typing_extensions.TypedDict, total=False): + binauthz: ConfigManagementBinauthzConfig + cluster: str + configSync: ConfigManagementConfigSync + hierarchyController: ConfigManagementHierarchyControllerConfig + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + policyController: ConfigManagementPolicyController + version: str + +@typing.type_check_only +class ConfigManagementState(typing_extensions.TypedDict, total=False): + binauthzState: ConfigManagementBinauthzState + clusterName: str + configSyncState: ConfigManagementConfigSyncState + hierarchyControllerState: ConfigManagementHierarchyControllerState + membershipSpec: ConfigManagementSpec + operatorState: ConfigManagementOperatorState + policyControllerState: ConfigManagementPolicyControllerState + +@typing.type_check_only +class ConfigManagementSyncError(typing_extensions.TypedDict, total=False): + code: str + errorMessage: str + errorResources: _list[ConfigManagementErrorResource] + +@typing.type_check_only +class ConfigManagementSyncState(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "SYNC_CODE_UNSPECIFIED", + "SYNCED", + "PENDING", + "ERROR", + "NOT_CONFIGURED", + "NOT_INSTALLED", + "UNAUTHORIZED", + "UNREACHABLE", + ] + errors: _list[ConfigManagementSyncError] + importToken: str + lastSync: str + lastSyncTime: str + sourceToken: str + syncToken: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class FeatureSpec(typing_extensions.TypedDict, total=False): + cloudbuild: CloudBuildSpec + configmanagement: ConfigManagementSpec + identityservice: IdentityServiceSpec + origin: Origin + policycontroller: PolicyControllerSpec + servicemesh: ServiceMeshSpec + workloadcertificate: WorkloadCertificateSpec + +@typing.type_check_only +class FeatureState(typing_extensions.TypedDict, total=False): + appdevexperience: AppDevExperienceState + clusterupgrade: ClusterUpgradeState + configmanagement: ConfigManagementState + identityservice: IdentityServiceState + metering: MeteringState + policycontroller: PolicyControllerState + servicemesh: ServiceMeshState + state: State + @typing.type_check_only class GoogleRpcStatus(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class IdentityServiceAuthMethod(typing_extensions.TypedDict, total=False): + azureadConfig: IdentityServiceAzureADConfig + googleConfig: IdentityServiceGoogleConfig + ldapConfig: IdentityServiceLdapConfig + name: str + oidcConfig: IdentityServiceOidcConfig + proxy: str + samlConfig: IdentityServiceSamlConfig + +@typing.type_check_only +class IdentityServiceAzureADConfig(typing_extensions.TypedDict, total=False): + clientId: str + clientSecret: str + encryptedClientSecret: str + groupFormat: str + kubectlRedirectUri: str + tenant: str + userClaim: str + +@typing.type_check_only +class IdentityServiceDiagnosticInterface(typing_extensions.TypedDict, total=False): + enabled: bool + expirationTime: str + +@typing.type_check_only +class IdentityServiceGoogleConfig(typing_extensions.TypedDict, total=False): + disable: bool + +@typing.type_check_only +class IdentityServiceGroupConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + +@typing.type_check_only +class IdentityServiceIdentityServiceOptions(typing_extensions.TypedDict, total=False): + diagnosticInterface: IdentityServiceDiagnosticInterface + sessionDuration: str + +@typing.type_check_only +class IdentityServiceLdapConfig(typing_extensions.TypedDict, total=False): + group: IdentityServiceGroupConfig + server: IdentityServiceServerConfig + serviceAccount: IdentityServiceServiceAccountConfig + user: IdentityServiceUserConfig + +@typing.type_check_only +class IdentityServiceOidcConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + clientId: str + clientSecret: str + deployCloudConsoleProxy: bool + enableAccessToken: bool + encryptedClientSecret: str + extraParams: str + groupPrefix: str + groupsClaim: str + issuerUri: str + kubectlRedirectUri: str + scopes: str + userClaim: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceSamlConfig(typing_extensions.TypedDict, total=False): + attributeMapping: dict[str, typing.Any] + groupPrefix: str + groupsAttribute: str + identityProviderCertificates: _list[str] + identityProviderId: str + identityProviderSsoUri: str + userAttribute: str + userPrefix: str + +@typing.type_check_only +class IdentityServiceServerConfig(typing_extensions.TypedDict, total=False): + certificateAuthorityData: str + connectionType: str + host: str + +@typing.type_check_only +class IdentityServiceServiceAccountConfig(typing_extensions.TypedDict, total=False): + simpleBindCredentials: IdentityServiceSimpleBindCredentials + +@typing.type_check_only +class IdentityServiceSimpleBindCredentials(typing_extensions.TypedDict, total=False): + dn: str + encryptedPassword: str + password: str + +@typing.type_check_only +class IdentityServiceSpec(typing_extensions.TypedDict, total=False): + authMethods: _list[IdentityServiceAuthMethod] + identityServiceOptions: IdentityServiceIdentityServiceOptions + +@typing.type_check_only +class IdentityServiceState(typing_extensions.TypedDict, total=False): + failureReason: str + installedVersion: str + memberConfig: IdentityServiceSpec + state: typing_extensions.Literal["DEPLOYMENT_STATE_UNSPECIFIED", "OK", "ERROR"] + +@typing.type_check_only +class IdentityServiceUserConfig(typing_extensions.TypedDict, total=False): + baseDn: str + filter: str + idAttribute: str + loginAttribute: str + +@typing.type_check_only +class LifecycleState(typing_extensions.TypedDict, total=False): + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ENABLING", + "ACTIVE", + "DISABLING", + "UPDATING", + "SERVICE_UPDATING", + ] + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMembershipFeaturesResponse(typing_extensions.TypedDict, total=False): + membershipFeatures: _list[MembershipFeature] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -34,6 +514,22 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MembershipFeature(typing_extensions.TypedDict, total=False): + createTime: str + deleteTime: str + labels: dict[str, typing.Any] + lifecycleState: LifecycleState + name: str + spec: FeatureSpec + state: FeatureState + updateTime: str + +@typing.type_check_only +class MeteringState(typing_extensions.TypedDict, total=False): + lastMeasurementTime: str + preciseLastMeasuredClusterVcpuCapacity: float + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -41,3 +537,268 @@ class Operation(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + cancelRequested: bool + createTime: str + endTime: str + statusDetail: str + target: str + verb: str + +@typing.type_check_only +class Origin(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "FLEET", "FLEET_OUT_OF_SYNC", "USER" + ] + +@typing.type_check_only +class PolicyControllerBundleInstallSpec(typing_extensions.TypedDict, total=False): + exemptedNamespaces: _list[str] + +@typing.type_check_only +class PolicyControllerHubConfig(typing_extensions.TypedDict, total=False): + auditIntervalSeconds: str + constraintViolationLimit: str + deploymentConfigs: dict[str, typing.Any] + exemptableNamespaces: _list[str] + installSpec: typing_extensions.Literal[ + "INSTALL_SPEC_UNSPECIFIED", + "INSTALL_SPEC_NOT_INSTALLED", + "INSTALL_SPEC_ENABLED", + "INSTALL_SPEC_SUSPENDED", + "INSTALL_SPEC_DETACHED", + ] + logDeniesEnabled: bool + monitoring: PolicyControllerMonitoringConfig + mutationEnabled: bool + policyContent: PolicyControllerPolicyContentSpec + referentialRulesEnabled: bool + +@typing.type_check_only +class PolicyControllerMonitoringConfig(typing_extensions.TypedDict, total=False): + backends: _list[ + typing_extensions.Literal[ + "MONITORING_BACKEND_UNSPECIFIED", "PROMETHEUS", "CLOUD_MONITORING" + ] + ] + +@typing.type_check_only +class PolicyControllerOnClusterState(typing_extensions.TypedDict, total=False): + details: str + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerPolicyContentSpec(typing_extensions.TypedDict, total=False): + bundles: dict[str, typing.Any] + templateLibrary: PolicyControllerTemplateLibraryConfig + +@typing.type_check_only +class PolicyControllerPolicyContentState(typing_extensions.TypedDict, total=False): + bundleStates: dict[str, typing.Any] + referentialSyncConfigState: PolicyControllerOnClusterState + templateLibraryState: PolicyControllerOnClusterState + +@typing.type_check_only +class PolicyControllerPolicyControllerDeploymentConfig( + typing_extensions.TypedDict, total=False +): + containerResources: PolicyControllerResourceRequirements + podAffinity: typing_extensions.Literal[ + "AFFINITY_UNSPECIFIED", "NO_AFFINITY", "ANTI_AFFINITY" + ] + podAntiAffinity: bool + podTolerations: _list[PolicyControllerToleration] + replicaCount: str + +@typing.type_check_only +class PolicyControllerResourceList(typing_extensions.TypedDict, total=False): + cpu: str + memory: str + +@typing.type_check_only +class PolicyControllerResourceRequirements(typing_extensions.TypedDict, total=False): + limits: PolicyControllerResourceList + requests: PolicyControllerResourceList + +@typing.type_check_only +class PolicyControllerSpec(typing_extensions.TypedDict, total=False): + policyControllerHubConfig: PolicyControllerHubConfig + version: str + +@typing.type_check_only +class PolicyControllerState(typing_extensions.TypedDict, total=False): + componentStates: dict[str, typing.Any] + policyContentState: PolicyControllerPolicyContentState + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "NOT_INSTALLED", + "INSTALLING", + "ACTIVE", + "UPDATING", + "DECOMMISSIONING", + "CLUSTER_ERROR", + "HUB_ERROR", + "SUSPENDED", + "DETACHED", + ] + +@typing.type_check_only +class PolicyControllerTemplateLibraryConfig(typing_extensions.TypedDict, total=False): + installation: typing_extensions.Literal[ + "INSTALLATION_UNSPECIFIED", "NOT_INSTALLED", "ALL" + ] + +@typing.type_check_only +class PolicyControllerToleration(typing_extensions.TypedDict, total=False): + effect: str + key: str + operator: str + value: str + +@typing.type_check_only +class ServiceMeshAnalysisMessage(typing_extensions.TypedDict, total=False): + args: dict[str, typing.Any] + description: str + messageBase: ServiceMeshAnalysisMessageBase + resourcePaths: _list[str] + +@typing.type_check_only +class ServiceMeshAnalysisMessageBase(typing_extensions.TypedDict, total=False): + documentationUrl: str + level: typing_extensions.Literal["LEVEL_UNSPECIFIED", "ERROR", "WARNING", "INFO"] + type: ServiceMeshType + +@typing.type_check_only +class ServiceMeshCondition(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "MESH_IAM_PERMISSION_DENIED", + "MESH_IAM_CROSS_PROJECT_PERMISSION_DENIED", + "CNI_CONFIG_UNSUPPORTED", + "GKE_SANDBOX_UNSUPPORTED", + "NODEPOOL_WORKLOAD_IDENTITY_FEDERATION_REQUIRED", + "CNI_INSTALLATION_FAILED", + "CNI_POD_UNSCHEDULABLE", + "CLUSTER_HAS_ZERO_NODES", + "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", + "VPCSC_GA_SUPPORTED", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", + "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT_SAFE", + "CONFIG_APPLY_INTERNAL_ERROR", + "CONFIG_VALIDATION_ERROR", + "CONFIG_VALIDATION_WARNING", + "QUOTA_EXCEEDED_BACKEND_SERVICES", + "QUOTA_EXCEEDED_HEALTH_CHECKS", + "QUOTA_EXCEEDED_HTTP_ROUTES", + "QUOTA_EXCEEDED_TCP_ROUTES", + "QUOTA_EXCEEDED_TLS_ROUTES", + "QUOTA_EXCEEDED_TRAFFIC_POLICIES", + "QUOTA_EXCEEDED_ENDPOINT_POLICIES", + "QUOTA_EXCEEDED_GATEWAYS", + "QUOTA_EXCEEDED_MESHES", + "QUOTA_EXCEEDED_SERVER_TLS_POLICIES", + "QUOTA_EXCEEDED_CLIENT_TLS_POLICIES", + "QUOTA_EXCEEDED_SERVICE_LB_POLICIES", + "QUOTA_EXCEEDED_HTTP_FILTERS", + "QUOTA_EXCEEDED_TCP_FILTERS", + "QUOTA_EXCEEDED_NETWORK_ENDPOINT_GROUPS", + "MODERNIZATION_SCHEDULED", + "MODERNIZATION_IN_PROGRESS", + "MODERNIZATION_COMPLETED", + "MODERNIZATION_ABORTED", + ] + details: str + documentationLink: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "ERROR", "WARNING", "INFO" + ] + +@typing.type_check_only +class ServiceMeshControlPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + implementation: typing_extensions.Literal[ + "IMPLEMENTATION_UNSPECIFIED", "ISTIOD", "TRAFFIC_DIRECTOR", "UPDATING" + ] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshDataPlaneManagement(typing_extensions.TypedDict, total=False): + details: _list[ServiceMeshStatusDetails] + state: typing_extensions.Literal[ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED", + ] + +@typing.type_check_only +class ServiceMeshSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] + controlPlane: typing_extensions.Literal[ + "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" + ] + defaultChannel: typing_extensions.Literal[ + "CHANNEL_UNSPECIFIED", "RAPID", "REGULAR", "STABLE" + ] + management: typing_extensions.Literal[ + "MANAGEMENT_UNSPECIFIED", "MANAGEMENT_AUTOMATIC", "MANAGEMENT_MANUAL" + ] + +@typing.type_check_only +class ServiceMeshState(typing_extensions.TypedDict, total=False): + analysisMessages: _list[ServiceMeshAnalysisMessage] + conditions: _list[ServiceMeshCondition] + configApiVersion: str + controlPlaneManagement: ServiceMeshControlPlaneManagement + dataPlaneManagement: ServiceMeshDataPlaneManagement + +@typing.type_check_only +class ServiceMeshStatusDetails(typing_extensions.TypedDict, total=False): + code: str + details: str + +@typing.type_check_only +class ServiceMeshType(typing_extensions.TypedDict, total=False): + code: str + displayName: str + +@typing.type_check_only +class State(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["CODE_UNSPECIFIED", "OK", "WARNING", "ERROR"] + description: str + updateTime: str + +@typing.type_check_only +class WorkloadCertificateSpec(typing_extensions.TypedDict, total=False): + certificateManagement: typing_extensions.Literal[ + "CERTIFICATE_MANAGEMENT_UNSPECIFIED", "DISABLED", "ENABLED" + ] diff --git a/googleapiclient-stubs/_apis/gkeonprem/v1/resources.pyi b/googleapiclient-stubs/_apis/gkeonprem/v1/resources.pyi index 17b853f0..cf250289 100644 --- a/googleapiclient-stubs/_apis/gkeonprem/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/gkeonprem/v1/resources.pyi @@ -430,6 +430,16 @@ class GKEOnPremResource(googleapiclient.discovery.Resource): previous_response: ListOperationsResponse, ) -> ListOperationsResponseHttpRequest | None: ... + def create( + self, + *, + parent: str, + body: VmwareAdminCluster = ..., + allowPreflightFailure: bool = ..., + validateOnly: bool = ..., + vmwareAdminClusterId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def enroll( self, *, diff --git a/googleapiclient-stubs/_apis/gkeonprem/v1/schemas.pyi b/googleapiclient-stubs/_apis/gkeonprem/v1/schemas.pyi index 9717fd7d..9997895a 100644 --- a/googleapiclient-stubs/_apis/gkeonprem/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkeonprem/v1/schemas.pyi @@ -787,7 +787,8 @@ class VmwareAdminManualLbConfig(typing_extensions.TypedDict, total=False): konnectivityServerNodePort: int @typing.type_check_only -class VmwareAdminMetalLbConfig(typing_extensions.TypedDict, total=False): ... +class VmwareAdminMetalLbConfig(typing_extensions.TypedDict, total=False): + enabled: bool @typing.type_check_only class VmwareAdminNetworkConfig(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi b/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi index 6be145eb..1cce5790 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi @@ -622,6 +622,17 @@ class CloudHealthcareResource(googleapiclient.discovery.Resource): def Binary_vread( self, *, name: str, **kwargs: typing.Any ) -> HttpBodyHttpRequest: ... + def Consent_enforcement_status( + self, *, name: str, **kwargs: typing.Any + ) -> HttpBodyHttpRequest: ... + def Patient_consent_enforcement_status( + self, + *, + name: str, + x_count: int = ..., + x_page_token: str = ..., + **kwargs: typing.Any, + ) -> HttpBodyHttpRequest: ... def Patient_everything( self, *, @@ -732,6 +743,20 @@ class CloudHealthcareResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> HttpBodyHttpRequest: ... + def applyAdminConsents( + self, + *, + name: str, + body: ApplyAdminConsentsRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def applyConsents( + self, + *, + name: str, + body: ApplyConsentsRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, @@ -750,6 +775,9 @@ class CloudHealthcareResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... + def explainDataAccess( + self, *, name: str, resourceId: str = ..., **kwargs: typing.Any + ) -> ExplainDataAccessResponseHttpRequest: ... def export( self, *, @@ -1215,6 +1243,14 @@ class EvaluateUserConsentsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> EvaluateUserConsentsResponse: ... +@typing.type_check_only +class ExplainDataAccessResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ExplainDataAccessResponse: ... + @typing.type_check_only class FhirStoreHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi b/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi index 0a5f62bf..1ec21f24 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi @@ -4,12 +4,22 @@ import typing_extensions _list = list +@typing.type_check_only +class AccessDeterminationLogConfig(typing_extensions.TypedDict, total=False): + logLevel: typing_extensions.Literal[ + "LOG_LEVEL_UNSPECIFIED", "DISABLED", "MINIMUM", "VERBOSE" + ] + @typing.type_check_only class ActivateConsentRequest(typing_extensions.TypedDict, total=False): consentArtifact: str expireTime: str ttl: str +@typing.type_check_only +class AdminConsents(typing_extensions.TypedDict, total=False): + names: _list[str] + @typing.type_check_only class AnalyzeEntitiesRequest(typing_extensions.TypedDict, total=False): alternativeOutputFormat: typing_extensions.Literal[ @@ -29,6 +39,35 @@ class AnalyzeEntitiesResponse(typing_extensions.TypedDict, total=False): fhirBundle: str relationships: _list[EntityMentionRelationship] +@typing.type_check_only +class ApplyAdminConsentsErrorDetail(typing_extensions.TypedDict, total=False): + consentErrors: _list[ConsentErrors] + existingOperationId: str + +@typing.type_check_only +class ApplyAdminConsentsRequest(typing_extensions.TypedDict, total=False): + newConsentsList: AdminConsents + validateOnly: bool + +@typing.type_check_only +class ApplyAdminConsentsResponse(typing_extensions.TypedDict, total=False): + affectedResources: str + consentApplySuccess: str + failedResources: str + +@typing.type_check_only +class ApplyConsentsRequest(typing_extensions.TypedDict, total=False): + patientScope: PatientScope + timeRange: TimeRange + validateOnly: bool + +@typing.type_check_only +class ApplyConsentsResponse(typing_extensions.TypedDict, total=False): + affectedResources: str + consentApplyFailure: str + consentApplySuccess: str + failedResources: str + @typing.type_check_only class ArchiveUserDataMappingRequest(typing_extensions.TypedDict, total=False): ... @@ -117,6 +156,12 @@ class Consent(typing_extensions.TypedDict, total=False): ttl: str userId: str +@typing.type_check_only +class ConsentAccessorScope(typing_extensions.TypedDict, total=False): + actor: str + environment: str + purpose: str + @typing.type_check_only class ConsentArtifact(typing_extensions.TypedDict, total=False): consentContentScreenshots: _list[Image] @@ -128,6 +173,19 @@ class ConsentArtifact(typing_extensions.TypedDict, total=False): userSignature: Signature witnessSignature: Signature +@typing.type_check_only +class ConsentConfig(typing_extensions.TypedDict, total=False): + accessDeterminationLogConfig: AccessDeterminationLogConfig + accessEnforced: bool + consentHeaderHandling: ConsentHeaderHandling + enforcedAdminConsents: _list[str] + version: typing_extensions.Literal["CONSENT_ENFORCEMENT_VERSION_UNSPECIFIED", "V1"] + +@typing.type_check_only +class ConsentErrors(typing_extensions.TypedDict, total=False): + error: Status + name: str + @typing.type_check_only class ConsentEvaluation(typing_extensions.TypedDict, total=False): evaluationResult: typing_extensions.Literal[ @@ -138,6 +196,12 @@ class ConsentEvaluation(typing_extensions.TypedDict, total=False): "HAS_SATISFIED_POLICY", ] +@typing.type_check_only +class ConsentHeaderHandling(typing_extensions.TypedDict, total=False): + profile: typing_extensions.Literal[ + "SCOPE_PROFILE_UNSPECIFIED", "PERMIT_EMPTY_SCOPE", "REQUIRED_ON_READ" + ] + @typing.type_check_only class ConsentList(typing_extensions.TypedDict, total=False): consents: _list[str] @@ -286,6 +350,42 @@ class EvaluateUserConsentsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str results: _list[Result] +@typing.type_check_only +class ExplainDataAccessConsentInfo(typing_extensions.TypedDict, total=False): + cascadeOrigins: _list[str] + consentResource: str + enforcementTime: str + matchingAccessorScopes: _list[ConsentAccessorScope] + patientConsentOwner: str + type: typing_extensions.Literal[ + "CONSENT_POLICY_TYPE_UNSPECIFIED", + "CONSENT_POLICY_TYPE_PATIENT", + "CONSENT_POLICY_TYPE_ADMIN", + ] + variants: _list[ + typing_extensions.Literal[ + "CONSENT_VARIANT_UNSPECIFIED", + "CONSENT_VARIANT_STANDARD", + "CONSENT_VARIANT_CASCADE", + ] + ] + +@typing.type_check_only +class ExplainDataAccessConsentScope(typing_extensions.TypedDict, total=False): + accessorScope: ConsentAccessorScope + decision: typing_extensions.Literal[ + "CONSENT_DECISION_TYPE_UNSPECIFIED", + "CONSENT_DECISION_TYPE_PERMIT", + "CONSENT_DECISION_TYPE_DENY", + ] + enforcingConsents: _list[ExplainDataAccessConsentInfo] + exceptions: _list[ExplainDataAccessConsentScope] + +@typing.type_check_only +class ExplainDataAccessResponse(typing_extensions.TypedDict, total=False): + consentScopes: _list[ExplainDataAccessConsentScope] + warning: str + @typing.type_check_only class ExportDicomDataRequest(typing_extensions.TypedDict, total=False): bigqueryDestination: GoogleCloudHealthcareV1DicomBigQueryDestination @@ -347,6 +447,7 @@ class FhirStore(typing_extensions.TypedDict, total=False): complexDataTypeReferenceParsing: typing_extensions.Literal[ "COMPLEX_DATA_TYPE_REFERENCE_PARSING_UNSPECIFIED", "DISABLED", "ENABLED" ] + consentConfig: ConsentConfig defaultSearchHandlingStrict: bool disableReferentialIntegrity: bool disableResourceVersioning: bool @@ -712,6 +813,10 @@ class PatientId(typing_extensions.TypedDict, total=False): type: str value: str +@typing.type_check_only +class PatientScope(typing_extensions.TypedDict, total=False): + patientIds: _list[str] + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -941,6 +1046,11 @@ class TimePartitioning(typing_extensions.TypedDict, total=False): "PARTITION_TYPE_UNSPECIFIED", "HOUR", "DAY", "MONTH", "YEAR" ] +@typing.type_check_only +class TimeRange(typing_extensions.TypedDict, total=False): + end: str + start: str + @typing.type_check_only class Type(typing_extensions.TypedDict, total=False): fields: _list[Field] diff --git a/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi index dd47497a..9b3662a9 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi @@ -757,6 +757,7 @@ class GoogleCloudHealthcareV1beta1DicomStreamConfig( class GoogleCloudHealthcareV1beta1FhirBigQueryDestination( typing_extensions.TypedDict, total=False ): + changeDataCaptureConfig: GoogleCloudHealthcareV1beta1FhirChangeDataCaptureConfig datasetUri: str force: bool schemaConfig: SchemaConfig @@ -764,6 +765,14 @@ class GoogleCloudHealthcareV1beta1FhirBigQueryDestination( "WRITE_DISPOSITION_UNSPECIFIED", "WRITE_EMPTY", "WRITE_TRUNCATE", "WRITE_APPEND" ] +@typing.type_check_only +class GoogleCloudHealthcareV1beta1FhirChangeDataCaptureConfig( + typing_extensions.TypedDict, total=False +): + historyMode: typing_extensions.Literal[ + "HISTORY_MODE_UNSPECIFIED", "KEEP_LATEST_VERSION", "KEEP_ALL_VERSIONS" + ] + @typing.type_check_only class GoogleCloudHealthcareV1beta1FhirExportResourcesResponse( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/iamcredentials/v1/resources.pyi b/googleapiclient-stubs/_apis/iamcredentials/v1/resources.pyi index 4d81babc..48ffec41 100644 --- a/googleapiclient-stubs/_apis/iamcredentials/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/iamcredentials/v1/resources.pyi @@ -31,6 +31,9 @@ class IAMCredentialsResource(googleapiclient.discovery.Resource): body: GenerateIdTokenRequest = ..., **kwargs: typing.Any, ) -> GenerateIdTokenResponseHttpRequest: ... + def getAllowedLocations( + self, *, name: str, **kwargs: typing.Any + ) -> ServiceAccountAllowedLocationsHttpRequest: ... def signBlob( self, *, name: str, body: SignBlobRequest = ..., **kwargs: typing.Any ) -> SignBlobResponseHttpRequest: ... @@ -70,6 +73,14 @@ class GenerateIdTokenResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> GenerateIdTokenResponse: ... +@typing.type_check_only +class ServiceAccountAllowedLocationsHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ServiceAccountAllowedLocations: ... + @typing.type_check_only class SignBlobResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/iamcredentials/v1/schemas.pyi b/googleapiclient-stubs/_apis/iamcredentials/v1/schemas.pyi index a6ba31d1..0b989f55 100644 --- a/googleapiclient-stubs/_apis/iamcredentials/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/iamcredentials/v1/schemas.pyi @@ -25,6 +25,11 @@ class GenerateIdTokenRequest(typing_extensions.TypedDict, total=False): class GenerateIdTokenResponse(typing_extensions.TypedDict, total=False): token: str +@typing.type_check_only +class ServiceAccountAllowedLocations(typing_extensions.TypedDict, total=False): + encodedLocations: str + locations: _list[str] + @typing.type_check_only class SignBlobRequest(typing_extensions.TypedDict, total=False): delegates: _list[str] diff --git a/googleapiclient-stubs/_apis/identitytoolkit/v1/schemas.pyi b/googleapiclient-stubs/_apis/identitytoolkit/v1/schemas.pyi index 8b63c0c6..bb2b64f0 100644 --- a/googleapiclient-stubs/_apis/identitytoolkit/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/identitytoolkit/v1/schemas.pyi @@ -412,11 +412,21 @@ class GoogleCloudIdentitytoolkitV1SendVerificationCodeRequest( typing_extensions.TypedDict, total=False ): autoRetrievalInfo: GoogleCloudIdentitytoolkitV1AutoRetrievalInfo + captchaResponse: str + clientType: typing_extensions.Literal[ + "CLIENT_TYPE_UNSPECIFIED", + "CLIENT_TYPE_WEB", + "CLIENT_TYPE_ANDROID", + "CLIENT_TYPE_IOS", + ] iosReceipt: str iosSecret: str phoneNumber: str playIntegrityToken: str recaptchaToken: str + recaptchaVersion: typing_extensions.Literal[ + "RECAPTCHA_VERSION_UNSPECIFIED", "RECAPTCHA_ENTERPRISE" + ] safetyNetToken: str tenantId: str diff --git a/googleapiclient-stubs/_apis/identitytoolkit/v2/schemas.pyi b/googleapiclient-stubs/_apis/identitytoolkit/v2/schemas.pyi index f6e04e1c..3cca0085 100644 --- a/googleapiclient-stubs/_apis/identitytoolkit/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/identitytoolkit/v2/schemas.pyi @@ -378,8 +378,16 @@ class GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig( "RECAPTCHA_PROVIDER_ENFORCEMENT_STATE_UNSPECIFIED", "OFF", "AUDIT", "ENFORCE" ] managedRules: _list[GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule] + phoneEnforcementState: typing_extensions.Literal[ + "RECAPTCHA_PROVIDER_ENFORCEMENT_STATE_UNSPECIFIED", "OFF", "AUDIT", "ENFORCE" + ] recaptchaKeys: _list[GoogleCloudIdentitytoolkitAdminV2RecaptchaKey] + tollFraudManagedRules: _list[ + GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule + ] useAccountDefender: bool + useSmsBotScore: bool + useSmsTollFraudProtection: bool @typing.type_check_only class GoogleCloudIdentitytoolkitAdminV2RecaptchaKey( @@ -395,6 +403,13 @@ class GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule( action: typing_extensions.Literal["RECAPTCHA_ACTION_UNSPECIFIED", "BLOCK"] endScore: float +@typing.type_check_only +class GoogleCloudIdentitytoolkitAdminV2RecaptchaTollFraudManagedRule( + typing_extensions.TypedDict, total=False +): + action: typing_extensions.Literal["RECAPTCHA_ACTION_UNSPECIFIED", "BLOCK"] + startScore: float + @typing.type_check_only class GoogleCloudIdentitytoolkitAdminV2RequestLogging( typing_extensions.TypedDict, total=False @@ -623,6 +638,8 @@ class GoogleCloudIdentitytoolkitV2RecaptchaConfig( GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState ] recaptchaKey: str + useSmsBotScore: bool + useSmsTollFraudProtection: bool @typing.type_check_only class GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState( @@ -632,7 +649,7 @@ class GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState( "ENFORCEMENT_STATE_UNSPECIFIED", "OFF", "AUDIT", "ENFORCE" ] provider: typing_extensions.Literal[ - "RECAPTCHA_PROVIDER_UNSPECIFIED", "EMAIL_PASSWORD_PROVIDER" + "RECAPTCHA_PROVIDER_UNSPECIFIED", "EMAIL_PASSWORD_PROVIDER", "PHONE_PROVIDER" ] @typing.type_check_only @@ -674,11 +691,21 @@ class GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo( typing_extensions.TypedDict, total=False ): autoRetrievalInfo: GoogleCloudIdentitytoolkitV2AutoRetrievalInfo + captchaResponse: str + clientType: typing_extensions.Literal[ + "CLIENT_TYPE_UNSPECIFIED", + "CLIENT_TYPE_WEB", + "CLIENT_TYPE_ANDROID", + "CLIENT_TYPE_IOS", + ] iosReceipt: str iosSecret: str phoneNumber: str playIntegrityToken: str recaptchaToken: str + recaptchaVersion: typing_extensions.Literal[ + "RECAPTCHA_VERSION_UNSPECIFIED", "RECAPTCHA_ENTERPRISE" + ] safetyNetToken: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/integrations/v1/resources.pyi b/googleapiclient-stubs/_apis/integrations/v1/resources.pyi index 11cdb8bf..ecd19610 100644 --- a/googleapiclient-stubs/_apis/integrations/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/integrations/v1/resources.pyi @@ -308,6 +308,15 @@ class IntegrationsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudIntegrationsV1alphaResolveSuspensionResponseHttpRequest: ... + def cancel( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaCancelExecutionRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaCancelExecutionResponseHttpRequest + ): ... def download( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudIntegrationsV1alphaDownloadExecutionResponseHttpRequest: ... @@ -350,10 +359,120 @@ class IntegrationsResource(googleapiclient.discovery.Resource): GoogleCloudIntegrationsV1alphaListExecutionsResponseHttpRequest | None ): ... + def replay( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaReplayExecutionRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaReplayExecutionResponseHttpRequest + ): ... def suspensions(self) -> SuspensionsResource: ... @typing.type_check_only class VersionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class TestCasesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudIntegrationsV1alphaTestCase = ..., + testCaseId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaTestCaseHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def download( + self, + *, + name: str, + fileFormat: typing_extensions.Literal[ + "FILE_FORMAT_UNSPECIFIED", "JSON", "YAML" + ] = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaDownloadTestCaseResponseHttpRequest: ... + def execute( + self, + *, + parent: str, + body: GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaExecuteTestCasesResponseHttpRequest: ... + def executeTest( + self, + *, + testCaseName: str, + body: GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaExecuteTestCaseResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudIntegrationsV1alphaTestCaseHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + readMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaListTestCasesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudIntegrationsV1alphaListTestCasesResponseHttpRequest, + previous_response: GoogleCloudIntegrationsV1alphaListTestCasesResponse, + ) -> ( + GoogleCloudIntegrationsV1alphaListTestCasesResponseHttpRequest + | None + ): ... + def listExecutions( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + readMask: str = ..., + truncateParams: bool = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponseHttpRequest: ... + def listExecutions_next( + self, + previous_request: GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponseHttpRequest, + previous_response: GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse, + ) -> ( + GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaTestCase = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaTestCaseHttpRequest: ... + def takeoverEditLock( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaTestCaseHttpRequest: ... + def upload( + self, + *, + parent: str, + body: GoogleCloudIntegrationsV1alphaUploadTestCaseRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaUploadTestCaseResponseHttpRequest: ... + def create( self, *, @@ -462,6 +581,7 @@ class IntegrationsResource(googleapiclient.discovery.Resource): body: GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponseHttpRequest: ... + def testCases(self) -> TestCasesResource: ... def delete( self, *, name: str, **kwargs: typing.Any @@ -1141,6 +1261,15 @@ class IntegrationsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudIntegrationsV1alphaUseTemplateResponseHttpRequest: ... + def generateOpenApiSpec( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponseHttpRequest + ): ... def getClients( self, *, parent: str, **kwargs: typing.Any ) -> GoogleCloudIntegrationsV1alphaGetClientResponseHttpRequest: ... @@ -1186,6 +1315,16 @@ class GoogleCloudIntegrationsV1alphaAuthConfigHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaAuthConfig: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaCancelExecutionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaCancelExecutionResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaCertificateHttpRequest( googleapiclient.http.HttpRequest @@ -1266,6 +1405,16 @@ class GoogleCloudIntegrationsV1alphaDownloadTemplateResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaDownloadTemplateResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaDownloadTestCaseResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1296,6 +1445,26 @@ class GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCaseResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse: ... + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCasesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaExecutionHttpRequest( googleapiclient.http.HttpRequest @@ -1306,6 +1475,16 @@ class GoogleCloudIntegrationsV1alphaExecutionHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaExecution: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaGenerateTokenResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1496,6 +1675,26 @@ class GoogleCloudIntegrationsV1alphaListTemplatesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaListTemplatesResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse: ... + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTestCasesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaListTestCasesResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1506,6 +1705,16 @@ class GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponseHttpRequest num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaReplayExecutionResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaResolveSuspensionResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1576,6 +1785,16 @@ class GoogleCloudIntegrationsV1alphaTemplateHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaTemplate: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTestCaseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaTestCase: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTestIntegrationsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1606,6 +1825,16 @@ class GoogleCloudIntegrationsV1alphaUploadTemplateResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaUploadTemplateResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTestCaseResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaUploadTestCaseResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaUseTemplateResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi b/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi index 8d326008..e17555a4 100644 --- a/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi @@ -1366,6 +1366,11 @@ class EnterpriseCrmFrontendsEventbusProtoEventExecutionInfoReplayInfo( typing_extensions.TypedDict, total=False ): originalExecutionInfoId: str + replayMode: typing_extensions.Literal[ + "REPLAY_MODE_UNSPECIFIED", + "REPLAY_MODE_FROM_BEGINNING", + "REPLAY_MODE_POINT_OF_FAILURE", + ] replayReason: str replayedExecutionInfoIds: _list[str] @@ -1637,10 +1642,12 @@ class EnterpriseCrmFrontendsEventbusProtoTriggerConfig( description: str enabledClients: _list[str] errorCatcherId: str + inputVariables: EnterpriseCrmFrontendsEventbusProtoTriggerConfigVariables label: str nextTasksExecutionPolicy: typing_extensions.Literal[ "UNSPECIFIED", "RUN_ALL_MATCH", "RUN_FIRST_MATCH" ] + outputVariables: EnterpriseCrmFrontendsEventbusProtoTriggerConfigVariables pauseWorkflowExecutions: bool position: EnterpriseCrmEventbusProtoCoordinate properties: dict[str, typing.Any] @@ -1665,8 +1672,15 @@ class EnterpriseCrmFrontendsEventbusProtoTriggerConfig( "CLOUD_SCHEDULER", "INTEGRATION_CONNECTOR_TRIGGER", "PRIVATE_TRIGGER", + "EVENTARC_TRIGGER", ] +@typing.type_check_only +class EnterpriseCrmFrontendsEventbusProtoTriggerConfigVariables( + typing_extensions.TypedDict, total=False +): + names: _list[str] + @typing.type_check_only class EnterpriseCrmFrontendsEventbusProtoWorkflowParameterEntry( typing_extensions.TypedDict, total=False @@ -1825,7 +1839,12 @@ class GoogleCloudConnectorsV1Connection(typing_extensions.TypedDict, total=False connectorVersion: str connectorVersionInfraConfig: GoogleCloudConnectorsV1ConnectorVersionInfraConfig connectorVersionLaunchStage: typing_extensions.Literal[ - "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" + "LAUNCH_STAGE_UNSPECIFIED", + "PREVIEW", + "GA", + "DEPRECATED", + "TEST", + "PRIVATE_PREVIEW", ] createTime: str description: str @@ -1947,6 +1966,7 @@ class GoogleCloudConnectorsV1EventingRuntimeData( eventsListenerPscSa: str status: GoogleCloudConnectorsV1EventingStatus webhookData: GoogleCloudConnectorsV1EventingRuntimeDataWebhookData + webhookSubscriptions: GoogleCloudConnectorsV1EventingRuntimeDataWebhookSubscriptions @typing.type_check_only class GoogleCloudConnectorsV1EventingRuntimeDataWebhookData( @@ -1959,6 +1979,12 @@ class GoogleCloudConnectorsV1EventingRuntimeDataWebhookData( nextRefreshTime: str updateTime: str +@typing.type_check_only +class GoogleCloudConnectorsV1EventingRuntimeDataWebhookSubscriptions( + typing_extensions.TypedDict, total=False +): + webhookData: _list[GoogleCloudConnectorsV1EventingRuntimeDataWebhookData] + @typing.type_check_only class GoogleCloudConnectorsV1EventingStatus(typing_extensions.TypedDict, total=False): description: str @@ -2023,6 +2049,41 @@ class GoogleCloudIntegrationsV1alphaAccessToken( refreshTokenExpireTime: str tokenType: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaApiTriggerResource( + typing_extensions.TypedDict, total=False +): + integrationResource: str + triggerId: _list[str] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaAssertion(typing_extensions.TypedDict, total=False): + assertionStrategy: typing_extensions.Literal[ + "ASSERTION_STRATEGY_UNSPECIFIED", + "ASSERT_SUCCESSFUL_EXECUTION", + "ASSERT_FAILED_EXECUTION", + "ASSERT_NO_EXECUTION", + "ASSERT_EQUALS", + "ASSERT_NOT_EQUALS", + "ASSERT_CONTAINS", + "ASSERT_CONDITION", + ] + condition: str + parameter: GoogleCloudIntegrationsV1alphaEventParameter + retryCount: int + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaAssertionResult( + typing_extensions.TypedDict, total=False +): + assertion: GoogleCloudIntegrationsV1alphaAssertion + failureMessage: str + status: typing_extensions.Literal[ + "ASSERTION_STATUS_UNSPECIFIED", "SUCCEEDED", "FAILED" + ] + taskName: str + taskNumber: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaAttemptStats( typing_extensions.TypedDict, total=False @@ -2086,6 +2147,18 @@ class GoogleCloudIntegrationsV1alphaBooleanParameterArray( ): booleanValues: _list[bool] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaCancelExecutionRequest( + typing_extensions.TypedDict, total=False +): + cancelReason: str + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaCancelExecutionResponse( + typing_extensions.TypedDict, total=False +): + isCanceled: bool + @typing.type_check_only class GoogleCloudIntegrationsV1alphaCertificate( typing_extensions.TypedDict, total=False @@ -2276,6 +2349,12 @@ class GoogleCloudIntegrationsV1alphaDownloadTemplateResponse( ): content: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaDownloadTestCaseResponse( + typing_extensions.TypedDict, total=False +): + content: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse( typing_extensions.TypedDict, total=False @@ -2329,6 +2408,36 @@ class GoogleCloudIntegrationsV1alphaExecuteIntegrationsResponse( outputParameters: dict[str, typing.Any] parameterEntries: _list[EnterpriseCrmFrontendsEventbusProtoParameterEntry] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCaseRequest( + typing_extensions.TypedDict, total=False +): + inputParameters: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse( + typing_extensions.TypedDict, total=False +): + assertionResults: _list[GoogleCloudIntegrationsV1alphaAssertionResult] + executionId: str + outputParameters: dict[str, typing.Any] + testExecutionState: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PASSED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCasesRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaExecuteTestCasesResponse( + typing_extensions.TypedDict, total=False +): + executeTestCaseResponses: _list[ + GoogleCloudIntegrationsV1alphaExecuteTestCaseResponse + ] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaExecution(typing_extensions.TypedDict, total=False): cloudLoggingDetails: GoogleCloudIntegrationsV1alphaCloudLoggingDetails @@ -2375,6 +2484,11 @@ class GoogleCloudIntegrationsV1alphaExecutionReplayInfo( typing_extensions.TypedDict, total=False ): originalExecutionInfoId: str + replayMode: typing_extensions.Literal[ + "REPLAY_MODE_UNSPECIFIED", + "REPLAY_MODE_FROM_BEGINNING", + "REPLAY_MODE_POINT_OF_FAILURE", + ] replayReason: str replayedExecutionInfoIds: _list[str] @@ -2428,6 +2542,19 @@ class GoogleCloudIntegrationsV1alphaFile(typing_extensions.TypedDict, total=Fals "INTEGRATION_FILE_UNSPECIFIED", "INTEGRATION", "INTEGRATION_CONFIG_VARIABLES" ] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecRequest( + typing_extensions.TypedDict, total=False +): + apiTriggerResources: _list[GoogleCloudIntegrationsV1alphaApiTriggerResource] + fileFormat: typing_extensions.Literal["FILE_FORMAT_UNSPECIFIED", "JSON", "YAML"] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaGenerateOpenApiSpecResponse( + typing_extensions.TypedDict, total=False +): + openApiSpec: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaGenerateTokenResponse( typing_extensions.TypedDict, total=False @@ -2731,6 +2858,34 @@ class GoogleCloudIntegrationsV1alphaListTemplatesResponse( nextPageToken: str templates: _list[GoogleCloudIntegrationsV1alphaTemplate] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTestCaseExecutionsResponse( + typing_extensions.TypedDict, total=False +): + executions: _list[GoogleCloudIntegrationsV1alphaExecution] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTestCasesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + testCases: _list[GoogleCloudIntegrationsV1alphaTestCase] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaMockConfig( + typing_extensions.TypedDict, total=False +): + failedExecutions: str + mockStrategy: typing_extensions.Literal[ + "MOCK_STRATEGY_UNSPECIFIED", + "NO_MOCK_STRATEGY", + "SPECIFIC_MOCK_STRATEGY", + "FAILURE_MOCK_STRATEGY", + "SKIP_MOCK_STRATEGY", + ] + parameters: _list[GoogleCloudIntegrationsV1alphaEventParameter] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaNextTask(typing_extensions.TypedDict, total=False): condition: str @@ -2901,6 +3056,20 @@ class GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest( ): runAsServiceAccount: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionRequest( + typing_extensions.TypedDict, total=False +): + replayReason: str + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionResponse( + typing_extensions.TypedDict, total=False +): + executionId: str + outputParameters: dict[str, typing.Any] + replayedExecutionId: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaResolveSuspensionRequest( typing_extensions.TypedDict, total=False @@ -3080,6 +3249,11 @@ class GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse( ): integrationVersion: GoogleCloudIntegrationsV1alphaIntegrationVersion +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTakeoverTestCaseEditLockRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTaskConfig( typing_extensions.TypedDict, total=False @@ -3196,6 +3370,26 @@ class GoogleCloudIntegrationsV1alphaTemplateComponent( name: str type: typing_extensions.Literal["TYPE_UNSPECIFIED", "TRIGGER", "TASK", "CONNECTOR"] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTestCase(typing_extensions.TypedDict, total=False): + createTime: str + creatorEmail: str + databasePersistencePolicy: typing_extensions.Literal[ + "DATABASE_PERSISTENCE_POLICY_UNSPECIFIED", + "DATABASE_PERSISTENCE_DISABLED", + "DATABASE_PERSISTENCE_ASYNC", + ] + description: str + displayName: str + lastModifierEmail: str + lockHolderEmail: str + name: str + testInputParameters: _list[GoogleCloudIntegrationsV1alphaIntegrationParameter] + testTaskConfigs: _list[GoogleCloudIntegrationsV1alphaTestTaskConfig] + triggerConfig: GoogleCloudIntegrationsV1alphaTriggerConfig + triggerId: str + updateTime: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTestIntegrationsRequest( typing_extensions.TypedDict, total=False @@ -3219,6 +3413,16 @@ class GoogleCloudIntegrationsV1alphaTestIntegrationsResponse( parameterEntries: _list[EnterpriseCrmFrontendsEventbusProtoParameterEntry] parameters: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTestTaskConfig( + typing_extensions.TypedDict, total=False +): + assertions: _list[GoogleCloudIntegrationsV1alphaAssertion] + mockConfig: GoogleCloudIntegrationsV1alphaMockConfig + task: str + taskConfig: GoogleCloudIntegrationsV1alphaTaskConfig + taskNumber: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTriggerConfig( typing_extensions.TypedDict, total=False @@ -3227,10 +3431,12 @@ class GoogleCloudIntegrationsV1alphaTriggerConfig( cloudSchedulerConfig: GoogleCloudIntegrationsV1alphaCloudSchedulerConfig description: str errorCatcherId: str + inputVariables: GoogleCloudIntegrationsV1alphaTriggerConfigVariables label: str nextTasksExecutionPolicy: typing_extensions.Literal[ "NEXT_TASKS_EXECUTION_POLICY_UNSPECIFIED", "RUN_ALL_MATCH", "RUN_FIRST_MATCH" ] + outputVariables: GoogleCloudIntegrationsV1alphaTriggerConfigVariables position: GoogleCloudIntegrationsV1alphaCoordinate properties: dict[str, typing.Any] startTasks: _list[GoogleCloudIntegrationsV1alphaNextTask] @@ -3247,8 +3453,16 @@ class GoogleCloudIntegrationsV1alphaTriggerConfig( "CLOUD_SCHEDULER", "INTEGRATION_CONNECTOR_TRIGGER", "PRIVATE_TRIGGER", + "CLOUD_PUBSUB", + "EVENTARC_TRIGGER", ] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTriggerConfigVariables( + typing_extensions.TypedDict, total=False +): + names: _list[str] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest( typing_extensions.TypedDict, total=False @@ -3286,6 +3500,19 @@ class GoogleCloudIntegrationsV1alphaUploadTemplateResponse( ): template: GoogleCloudIntegrationsV1alphaTemplate +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTestCaseRequest( + typing_extensions.TypedDict, total=False +): + content: str + fileFormat: typing_extensions.Literal["FILE_FORMAT_UNSPECIFIED", "JSON", "YAML"] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTestCaseResponse( + typing_extensions.TypedDict, total=False +): + testCase: GoogleCloudIntegrationsV1alphaTestCase + @typing.type_check_only class GoogleCloudIntegrationsV1alphaUseTemplateRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi b/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi index 161d689a..8cb17902 100644 --- a/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi @@ -593,6 +593,9 @@ class SearchJobsRequest(typing_extensions.TypedDict, total=False): offset: int orderBy: str pageToken: str + relevanceThreshold: typing_extensions.Literal[ + "RELEVANCE_THRESHOLD_UNSPECIFIED", "LOWEST", "LOW", "MEDIUM", "HIGH" + ] requestMetadata: RequestMetadata searchMode: typing_extensions.Literal[ "SEARCH_MODE_UNSPECIFIED", "JOB_SEARCH", "FEATURED_JOB_SEARCH" diff --git a/googleapiclient-stubs/_apis/language/v1/schemas.pyi b/googleapiclient-stubs/_apis/language/v1/schemas.pyi index d0e6e836..5aded579 100644 --- a/googleapiclient-stubs/_apis/language/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/language/v1/schemas.pyi @@ -160,7 +160,12 @@ class CpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -474,7 +479,12 @@ class GpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -738,7 +748,12 @@ class RamMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1223,6 +1238,8 @@ class XPSImageModelServingSpecModelThroughputEstimation( "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", + "NVIDIA_H200_141GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", diff --git a/googleapiclient-stubs/_apis/language/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/language/v1beta2/schemas.pyi index c21a24de..8375d7ee 100644 --- a/googleapiclient-stubs/_apis/language/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/language/v1beta2/schemas.pyi @@ -160,7 +160,12 @@ class CpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -478,7 +483,12 @@ class GpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -742,7 +752,12 @@ class RamMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1227,6 +1242,8 @@ class XPSImageModelServingSpecModelThroughputEstimation( "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", + "NVIDIA_H200_141GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", diff --git a/googleapiclient-stubs/_apis/language/v2/schemas.pyi b/googleapiclient-stubs/_apis/language/v2/schemas.pyi index 28ca37bc..18a04716 100644 --- a/googleapiclient-stubs/_apis/language/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/language/v2/schemas.pyi @@ -54,6 +54,7 @@ class AnnotateTextResponse(typing_extensions.TypedDict, total=False): class ClassificationCategory(typing_extensions.TypedDict, total=False): confidence: float name: str + severity: float @typing.type_check_only class ClassifyTextRequest(typing_extensions.TypedDict, total=False): @@ -125,8 +126,12 @@ class CpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -351,8 +356,12 @@ class GpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -493,6 +502,9 @@ class InfraUsage(typing_extensions.TypedDict, total=False): @typing.type_check_only class ModerateTextRequest(typing_extensions.TypedDict, total=False): document: Document + modelVersion: typing_extensions.Literal[ + "MODEL_VERSION_UNSPECIFIED", "MODEL_VERSION_1", "MODEL_VERSION_2" + ] @typing.type_check_only class ModerateTextResponse(typing_extensions.TypedDict, total=False): @@ -535,8 +547,12 @@ class RamMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_2G", "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", + "A3_HIGHGPU_1G", + "A3_HIGHGPU_2G", + "A3_HIGHGPU_4G", "A3_HIGHGPU_8G", "A3_MEGAGPU_8G", + "A3_ULTRAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1015,6 +1031,7 @@ class XPSImageModelServingSpecModelThroughputEstimation( "NVIDIA_L4", "NVIDIA_H100_80GB", "NVIDIA_H100_MEGA_80GB", + "NVIDIA_H200_141GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", diff --git a/googleapiclient-stubs/_apis/looker/v1/schemas.pyi b/googleapiclient-stubs/_apis/looker/v1/schemas.pyi index 1d599225..0a985e9d 100644 --- a/googleapiclient-stubs/_apis/looker/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/looker/v1/schemas.pyi @@ -130,6 +130,9 @@ class Instance(typing_extensions.TypedDict, total=False): "LOOKER_CORE_STANDARD_ANNUAL", "LOOKER_CORE_ENTERPRISE_ANNUAL", "LOOKER_CORE_EMBED_ANNUAL", + "LOOKER_CORE_NONPROD_STANDARD_ANNUAL", + "LOOKER_CORE_NONPROD_ENTERPRISE_ANNUAL", + "LOOKER_CORE_NONPROD_EMBED_ANNUAL", ] privateIpEnabled: bool pscConfig: PscConfig diff --git a/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi b/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi index 0b670531..8d919116 100644 --- a/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi @@ -9,9 +9,30 @@ class ApplyParametersRequest(typing_extensions.TypedDict, total=False): applyAll: bool nodeIds: _list[str] +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class DailyCycle(typing_extensions.TypedDict, total=False): duration: str @@ -29,9 +50,17 @@ class DenyMaintenancePeriod(typing_extensions.TypedDict, total=False): startDate: Date time: TimeOfDay +@typing.type_check_only +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + @typing.type_check_only class GoogleCloudMemcacheV1LocationMetadata(typing_extensions.TypedDict, total=False): availableZones: dict[str, typing.Any] @@ -201,6 +230,41 @@ class InstanceMessage(typing_extensions.TypedDict, total=False): code: typing_extensions.Literal["CODE_UNSPECIFIED", "ZONE_DISTRIBUTION_UNBALANCED"] message: str +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListInstancesResponse(typing_extensions.TypedDict, total=False): instances: _list[Instance] @@ -225,6 +289,30 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + @typing.type_check_only class LocationMetadata(typing_extensions.TypedDict, total=False): availableZones: dict[str, typing.Any] @@ -293,6 +381,24 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + @typing.type_check_only class RescheduleMaintenanceRequest(typing_extensions.TypedDict, total=False): rescheduleType: typing_extensions.Literal[ @@ -318,12 +424,21 @@ class Schedule(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TimeOfDay(typing_extensions.TypedDict, total=False): hours: int @@ -363,5 +478,9 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str + @typing.type_check_only class ZoneMetadata(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi index 6efa35c1..2849a40c 100644 --- a/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi @@ -14,9 +14,30 @@ class ApplySoftwareUpdateRequest(typing_extensions.TypedDict, total=False): applyAll: bool nodeIds: _list[str] +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class DailyCycle(typing_extensions.TypedDict, total=False): duration: str @@ -34,9 +55,17 @@ class DenyMaintenancePeriod(typing_extensions.TypedDict, total=False): startDate: Date time: TimeOfDay +@typing.type_check_only +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + @typing.type_check_only class GoogleCloudMemcacheV1beta2LocationMetadata( typing_extensions.TypedDict, total=False @@ -215,6 +244,41 @@ class InstanceMessage(typing_extensions.TypedDict, total=False): code: typing_extensions.Literal["CODE_UNSPECIFIED", "ZONE_DISTRIBUTION_UNBALANCED"] message: str +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListInstancesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -239,6 +303,30 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + @typing.type_check_only class LocationMetadata(typing_extensions.TypedDict, total=False): availableZones: dict[str, typing.Any] @@ -308,6 +396,24 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + @typing.type_check_only class RescheduleMaintenanceRequest(typing_extensions.TypedDict, total=False): rescheduleType: typing_extensions.Literal[ @@ -333,12 +439,21 @@ class Schedule(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TimeOfDay(typing_extensions.TypedDict, total=False): hours: int @@ -378,5 +493,9 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str + @typing.type_check_only class ZoneMetadata(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi index 78e90d0e..320d24fd 100644 --- a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi @@ -108,8 +108,7 @@ class MerchantResource(googleapiclient.discovery.Resource): languageCode: str = ..., pageSize: int = ..., pageToken: str = ..., - timeZone_id: str = ..., - timeZone_version: str = ..., + timeZone: str = ..., **kwargs: typing.Any, ) -> ListAccountIssuesResponseHttpRequest: ... def list_next( @@ -261,7 +260,9 @@ class MerchantResource(googleapiclient.discovery.Resource): def createAndConfigure( self, *, body: CreateAndConfigureAccountRequest = ..., **kwargs: typing.Any ) -> AccountHttpRequest: ... - def delete(self, *, name: str, **kwargs: typing.Any) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get(self, *, name: str, **kwargs: typing.Any) -> AccountHttpRequest: ... def list( self, diff --git a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi index b2669595..2f7a7d5f 100644 --- a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi @@ -4,11 +4,6 @@ import typing_extensions _list = list -@typing.type_check_only -class AcceptTermsOfService(typing_extensions.TypedDict, total=False): - name: str - regionCode: str - @typing.type_check_only class Accepted(typing_extensions.TypedDict, total=False): acceptedBy: str @@ -25,6 +20,9 @@ class Account(typing_extensions.TypedDict, total=False): testAccount: bool timeZone: TimeZone +@typing.type_check_only +class AccountAggregation(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class AccountIssue(typing_extensions.TypedDict, total=False): detail: str @@ -38,7 +36,7 @@ class AccountIssue(typing_extensions.TypedDict, total=False): @typing.type_check_only class AddAccountService(typing_extensions.TypedDict, total=False): - accountAggregation: Empty + accountAggregation: AccountAggregation provider: str @typing.type_check_only @@ -107,11 +105,11 @@ class CarrierRate(typing_extensions.TypedDict, total=False): percentageAdjustment: str @typing.type_check_only -class ClaimHomepageRequest(typing_extensions.TypedDict, total=False): ... +class ClaimHomepageRequest(typing_extensions.TypedDict, total=False): + overwrite: bool @typing.type_check_only class CreateAndConfigureAccountRequest(typing_extensions.TypedDict, total=False): - acceptTermsOfService: AcceptTermsOfService account: Account service: _list[AddAccountService] users: _list[CreateUserRequest] @@ -233,6 +231,7 @@ class ImpactedDestination(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -313,6 +312,7 @@ class OnlineReturnPolicy(typing_extensions.TypedDict, total=False): returnPolicyId: str returnPolicyUri: str returnShippingFee: ReturnShippingFee + seasonalOverrides: _list[SeasonalOverride] @typing.type_check_only class PhoneNumber(typing_extensions.TypedDict, total=False): @@ -382,6 +382,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -389,6 +390,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str @@ -449,6 +451,13 @@ class ReturnShippingFee(typing_extensions.TypedDict, total=False): class Row(typing_extensions.TypedDict, total=False): cells: _list[Value] +@typing.type_check_only +class SeasonalOverride(typing_extensions.TypedDict, total=False): + begin: Date + end: Date + label: str + policy: Policy + @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): active: bool diff --git a/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi index 3828c3f2..1473dcc4 100644 --- a/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi @@ -81,6 +81,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -88,6 +89,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi index cb767492..c2df69a0 100644 --- a/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi @@ -13,8 +13,10 @@ class DataSource(typing_extensions.TypedDict, total=False): "INPUT_UNSPECIFIED", "API", "FILE", "UI", "AUTOFEED" ] localInventoryDataSource: LocalInventoryDataSource + merchantReviewDataSource: MerchantReviewDataSource name: str primaryProductDataSource: PrimaryProductDataSource + productReviewDataSource: ProductReviewDataSource promotionDataSource: PromotionDataSource regionalInventoryDataSource: RegionalInventoryDataSource supplementalProductDataSource: SupplementalProductDataSource @@ -101,6 +103,9 @@ class LocalInventoryDataSource(typing_extensions.TypedDict, total=False): contentLanguage: str feedLabel: str +@typing.type_check_only +class MerchantReviewDataSource(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class PrimaryProductDataSource(typing_extensions.TypedDict, total=False): channel: typing_extensions.Literal[ @@ -134,13 +139,18 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] +@typing.type_check_only +class ProductReviewDataSource(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi index e408bfa6..202b9018 100644 --- a/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi @@ -71,6 +71,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -78,6 +79,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi index e183f2be..fb53215e 100644 --- a/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi @@ -90,6 +90,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -97,6 +98,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi index 329b2288..519b89e5 100644 --- a/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi @@ -45,6 +45,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -52,6 +53,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi index caddbd46..a97bc549 100644 --- a/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi @@ -91,6 +91,7 @@ class Attributes(typing_extensions.TypedDict, total=False): structuredDescription: ProductStructuredDescription structuredTitle: ProductStructuredTitle subscriptionCost: SubscriptionCost + sustainabilityIncentives: _list[ProductSustainabilityIncentive] taxCategory: str taxes: _list[Tax] title: str @@ -146,6 +147,7 @@ class DestinationStatus(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -194,6 +196,7 @@ class ItemLevelIssue(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] resolution: str severity: typing_extensions.Literal[ @@ -218,6 +221,7 @@ class LoyaltyProgram(typing_extensions.TypedDict, total=False): memberPriceEffectiveDate: Interval price: Price programLabel: str + shippingLabel: str tierLabel: str @typing.type_check_only @@ -261,6 +265,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -299,6 +304,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str @@ -314,6 +320,14 @@ class ProductStructuredTitle(typing_extensions.TypedDict, total=False): content: str digitalSourceType: str +@typing.type_check_only +class ProductSustainabilityIncentive(typing_extensions.TypedDict, total=False): + amount: Price + percentage: float + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "EV_TAX_CREDIT", "EV_PRICE_DISCOUNT" + ] + @typing.type_check_only class ProductWeight(typing_extensions.TypedDict, total=False): unit: str diff --git a/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi index 0627186d..80a29587 100644 --- a/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi @@ -56,6 +56,12 @@ class Attributes(typing_extensions.TypedDict, total=False): "FREE_LISTINGS", "FREE_LOCAL_LISTINGS", "YOUTUBE_SHOPPING", + "YOUTUBE_SHOPPING_CHECKOUT", + "YOUTUBE_AFFILIATE", + "FREE_VEHICLE_LISTINGS", + "VEHICLE_ADS", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", ] ] promotionDisplayTimePeriod: Interval @@ -93,6 +99,7 @@ class DestinationStatus(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] status: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -140,6 +147,7 @@ class ItemLevelIssue(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] resolution: str severity: typing_extensions.Literal[ @@ -179,6 +187,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -186,6 +195,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi index c476505b..966c7bb4 100644 --- a/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi @@ -39,6 +39,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -46,6 +47,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi index a4caf710..179facec 100644 --- a/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi @@ -149,6 +149,7 @@ class IssueSeverityPerReportingContext(typing_extensions.TypedDict, total=False) "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -252,6 +253,7 @@ class ProductChange(typing_extensions.TypedDict, total=False): "LOCAL_CLOUD_RETAIL", "PRODUCT_REVIEWS", "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", ] @typing.type_check_only @@ -292,6 +294,7 @@ class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): account: str attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] changes: _list[ProductChange] + expirationTime: str managingAccount: str resource: str resourceId: str diff --git a/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/resources.pyi new file mode 100644 index 00000000..9168b4ee --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/resources.pyi @@ -0,0 +1,133 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class MerchantReviewsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MerchantReviewHttpRequest: ... + def insert( + self, + *, + parent: str, + body: MerchantReview = ..., + dataSource: str = ..., + **kwargs: typing.Any, + ) -> MerchantReviewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMerchantReviewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMerchantReviewsResponseHttpRequest, + previous_response: ListMerchantReviewsResponse, + ) -> ListMerchantReviewsResponseHttpRequest | None: ... + + @typing.type_check_only + class ProductReviewsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ProductReviewHttpRequest: ... + def insert( + self, + *, + parent: str, + body: ProductReview = ..., + dataSource: str = ..., + **kwargs: typing.Any, + ) -> ProductReviewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListProductReviewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListProductReviewsResponseHttpRequest, + previous_response: ListProductReviewsResponse, + ) -> ListProductReviewsResponseHttpRequest | None: ... + + def merchantReviews(self) -> MerchantReviewsResource: ... + def productReviews(self) -> ProductReviewsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListMerchantReviewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMerchantReviewsResponse: ... + +@typing.type_check_only +class ListProductReviewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListProductReviewsResponse: ... + +@typing.type_check_only +class MerchantReviewHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MerchantReview: ... + +@typing.type_check_only +class ProductReviewHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ProductReview: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/schemas.pyi new file mode 100644 index 00000000..c940865d --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reviews_v1beta/schemas.pyi @@ -0,0 +1,266 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CustomAttribute(typing_extensions.TypedDict, total=False): + groupValues: _list[CustomAttribute] + name: str + value: str + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ListMerchantReviewsResponse(typing_extensions.TypedDict, total=False): + merchantReviews: _list[MerchantReview] + nextPageToken: str + +@typing.type_check_only +class ListProductReviewsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + productReviews: _list[ProductReview] + +@typing.type_check_only +class MerchantReview(typing_extensions.TypedDict, total=False): + attributes: MerchantReviewAttributes + customAttributes: _list[CustomAttribute] + dataSource: str + merchantReviewId: str + merchantReviewStatus: MerchantReviewStatus + name: str + +@typing.type_check_only +class MerchantReviewAttributes(typing_extensions.TypedDict, total=False): + collectionMethod: typing_extensions.Literal[ + "COLLECTION_METHOD_UNSPECIFIED", + "MERCHANT_UNSOLICITED", + "POINT_OF_SALE", + "AFTER_FULFILLMENT", + ] + content: str + isAnonymous: bool + maxRating: str + merchantDisplayName: str + merchantId: str + merchantLink: str + merchantRatingLink: str + minRating: str + rating: float + reviewCountry: str + reviewLanguage: str + reviewTime: str + reviewerId: str + reviewerUsername: str + title: str + +@typing.type_check_only +class MerchantReviewDestinationStatus(typing_extensions.TypedDict, total=False): + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + "PRODUCT_REVIEWS", + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", + ] + +@typing.type_check_only +class MerchantReviewItemLevelIssue(typing_extensions.TypedDict, total=False): + attribute: str + code: str + description: str + detail: str + documentation: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + "PRODUCT_REVIEWS", + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", + ] + resolution: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "NOT_IMPACTED", "DISAPPROVED" + ] + +@typing.type_check_only +class MerchantReviewStatus(typing_extensions.TypedDict, total=False): + createTime: str + destinationStatuses: _list[MerchantReviewDestinationStatus] + itemLevelIssues: _list[MerchantReviewItemLevelIssue] + lastUpdateTime: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + "PRODUCT_REVIEWS", + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", + ] + +@typing.type_check_only +class ProductReview(typing_extensions.TypedDict, total=False): + attributes: ProductReviewAttributes + customAttributes: _list[CustomAttribute] + dataSource: str + name: str + productReviewId: str + productReviewStatus: ProductReviewStatus + +@typing.type_check_only +class ProductReviewAttributes(typing_extensions.TypedDict, total=False): + aggregatorName: str + asins: _list[str] + brands: _list[str] + collectionMethod: typing_extensions.Literal[ + "COLLECTION_METHOD_UNSPECIFIED", "UNSOLICITED", "POST_FULFILLMENT" + ] + cons: _list[str] + content: str + gtins: _list[str] + isSpam: bool + maxRating: str + minRating: str + mpns: _list[str] + productLinks: _list[str] + productNames: _list[str] + pros: _list[str] + publisherFavicon: str + publisherName: str + rating: float + reviewCountry: str + reviewLanguage: str + reviewLink: ReviewLink + reviewTime: str + reviewerId: str + reviewerImageLinks: _list[str] + reviewerIsAnonymous: bool + reviewerUsername: str + skus: _list[str] + subclientName: str + title: str + transactionId: str + +@typing.type_check_only +class ProductReviewDestinationStatus(typing_extensions.TypedDict, total=False): + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + "PRODUCT_REVIEWS", + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", + ] + +@typing.type_check_only +class ProductReviewItemLevelIssue(typing_extensions.TypedDict, total=False): + attribute: str + code: str + description: str + detail: str + documentation: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + "PRODUCT_REVIEWS", + "MERCHANT_REVIEWS", + "YOUTUBE_CHECKOUT", + ] + resolution: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "NOT_IMPACTED", "DISAPPROVED" + ] + +@typing.type_check_only +class ProductReviewStatus(typing_extensions.TypedDict, total=False): + createTime: str + destinationStatuses: _list[ProductReviewDestinationStatus] + itemLevelIssues: _list[ProductReviewItemLevelIssue] + lastUpdateTime: str + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + expirationTime: str + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class ReviewLink(typing_extensions.TypedDict, total=False): + link: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "SINGLETON", "GROUP"] diff --git a/googleapiclient-stubs/_apis/metastore/v2/__init__.pyi b/googleapiclient-stubs/_apis/metastore/v2/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/metastore/v2/resources.pyi b/googleapiclient-stubs/_apis/metastore/v2/resources.pyi new file mode 100644 index 00000000..4175780a --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2/resources.pyi @@ -0,0 +1,207 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class DataprocMetastoreResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2Backup = ..., + backupId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2BackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2ListBackupsResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2ListBackupsResponse, + ) -> ( + GoogleCloudMetastoreV2ListBackupsResponseHttpRequest | None + ): ... + + def alterLocation( + self, + *, + service: str, + body: GoogleCloudMetastoreV2AlterMetadataResourceLocationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def alterTableProperties( + self, + *, + service: str, + body: GoogleCloudMetastoreV2AlterTablePropertiesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2Service = ..., + requestId: str = ..., + serviceId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def exportMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2ExportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2ServiceHttpRequest: ... + def importMetadata( + self, + *, + name: str, + body: GoogleCloudMetastoreV2ImportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2ListServicesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2ListServicesResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2ListServicesResponse, + ) -> GoogleCloudMetastoreV2ListServicesResponseHttpRequest | None: ... + def moveTableToDatabase( + self, + *, + service: str, + body: GoogleCloudMetastoreV2MoveTableToDatabaseRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def patch( + self, + *, + name: str, + body: GoogleCloudMetastoreV2Service = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def queryMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2QueryMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def restore( + self, + *, + service: str, + body: GoogleCloudMetastoreV2RestoreServiceRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + + def services(self) -> ServicesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2Backup: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2ListBackupsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2ListBackupsResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2ListServicesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2ListServicesResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2ServiceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2Service: ... + +@typing.type_check_only +class GoogleLongrunningOperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleLongrunningOperation: ... diff --git a/googleapiclient-stubs/_apis/metastore/v2/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v2/schemas.pyi new file mode 100644 index 00000000..7677f9f3 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2/schemas.pyi @@ -0,0 +1,402 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1CustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1ErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1HiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1LocationMetadata(typing_extensions.TypedDict, total=False): + customRegionMetadata: _list[GoogleCloudMetastoreV1CustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1MultiRegionMetadata + supportedHiveMetastoreVersions: _list[GoogleCloudMetastoreV1HiveMetastoreVersion] + +@typing.type_check_only +class GoogleCloudMetastoreV1MoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1MultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1QueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1alphaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1alphaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1alphaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1betaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1betaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1betaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV2AlterMetadataResourceLocationRequest( + typing_extensions.TypedDict, total=False +): + locationUri: str + resourceName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2AlterTablePropertiesRequest( + typing_extensions.TypedDict, total=False +): + properties: dict[str, typing.Any] + tableName: str + updateMask: str + +@typing.type_check_only +class GoogleCloudMetastoreV2AuxiliaryVersionConfig( + typing_extensions.TypedDict, total=False +): + configOverrides: dict[str, typing.Any] + endpoints: _list[GoogleCloudMetastoreV2Endpoint] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2Backup(typing_extensions.TypedDict, total=False): + createTime: str + description: str + endTime: str + name: str + restoringServices: _list[str] + serviceRevision: GoogleCloudMetastoreV2Service + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "DELETING", "ACTIVE", "FAILED", "RESTORING" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2DataCatalogConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2DatabaseDump(typing_extensions.TypedDict, total=False): + gcsUri: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + +@typing.type_check_only +class GoogleCloudMetastoreV2EncryptionConfig( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2Endpoint(typing_extensions.TypedDict, total=False): + endpointUri: str + region: str + +@typing.type_check_only +class GoogleCloudMetastoreV2ExportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDumpType: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + destinationGcsFolder: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2HiveMetastoreConfig( + typing_extensions.TypedDict, total=False +): + auxiliaryVersions: dict[str, typing.Any] + configOverrides: dict[str, typing.Any] + endpointProtocol: typing_extensions.Literal[ + "ENDPOINT_PROTOCOL_UNSPECIFIED", "THRIFT", "GRPC" + ] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2ImportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDump: GoogleCloudMetastoreV2DatabaseDump + description: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2LatestBackup(typing_extensions.TypedDict, total=False): + backupId: str + duration: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "IN_PROGRESS", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2ListBackupsResponse( + typing_extensions.TypedDict, total=False +): + backups: _list[GoogleCloudMetastoreV2Backup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2ListServicesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + services: _list[GoogleCloudMetastoreV2Service] + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2MetadataIntegration( + typing_extensions.TypedDict, total=False +): + dataCatalogConfig: GoogleCloudMetastoreV2DataCatalogConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2MoveTableToDatabaseRequest( + typing_extensions.TypedDict, total=False +): + dbName: str + destinationDbName: str + tableName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2QueryMetadataRequest( + typing_extensions.TypedDict, total=False +): + query: str + +@typing.type_check_only +class GoogleCloudMetastoreV2RestoreServiceRequest( + typing_extensions.TypedDict, total=False +): + backup: str + backupLocation: str + requestId: str + restoreType: typing_extensions.Literal[ + "RESTORE_TYPE_UNSPECIFIED", "FULL", "METADATA_ONLY" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2ScalingConfig(typing_extensions.TypedDict, total=False): + scalingFactor: int + +@typing.type_check_only +class GoogleCloudMetastoreV2ScheduledBackup(typing_extensions.TypedDict, total=False): + backupLocation: str + cronSchedule: str + enabled: bool + latestBackup: GoogleCloudMetastoreV2LatestBackup + nextScheduledTime: str + timeZone: str + +@typing.type_check_only +class GoogleCloudMetastoreV2Service(typing_extensions.TypedDict, total=False): + createTime: str + encryptionConfig: GoogleCloudMetastoreV2EncryptionConfig + endpoints: _list[GoogleCloudMetastoreV2Endpoint] + hiveMetastoreConfig: GoogleCloudMetastoreV2HiveMetastoreConfig + labels: dict[str, typing.Any] + metadataIntegration: GoogleCloudMetastoreV2MetadataIntegration + name: str + scalingConfig: GoogleCloudMetastoreV2ScalingConfig + scheduledBackup: GoogleCloudMetastoreV2ScheduledBackup + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "SUSPENDING", + "SUSPENDED", + "UPDATING", + "DELETING", + "ERROR", + ] + stateMessage: str + uid: str + updateTime: str + warehouseGcsUri: str + +@typing.type_check_only +class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): + done: bool + error: GoogleRpcStatus + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class GoogleRpcStatus(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/metastore/v2alpha/__init__.pyi b/googleapiclient-stubs/_apis/metastore/v2alpha/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2alpha/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/metastore/v2alpha/resources.pyi b/googleapiclient-stubs/_apis/metastore/v2alpha/resources.pyi new file mode 100644 index 00000000..4b286ec7 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2alpha/resources.pyi @@ -0,0 +1,295 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class DataprocMetastoreResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2alphaBackup = ..., + backupId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2alphaBackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2alphaListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2alphaListBackupsResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2alphaListBackupsResponse, + ) -> ( + GoogleCloudMetastoreV2alphaListBackupsResponseHttpRequest | None + ): ... + + @typing.type_check_only + class MigrationExecutionsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2alphaMigrationExecutionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2alphaListMigrationExecutionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2alphaListMigrationExecutionsResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse, + ) -> ( + GoogleCloudMetastoreV2alphaListMigrationExecutionsResponseHttpRequest + | None + ): ... + + def alterLocation( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def alterTableProperties( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def cancelMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaCancelMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def completeMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaCompleteMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2alphaService = ..., + requestId: str = ..., + serviceId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def exportMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaExportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2alphaServiceHttpRequest: ... + def importMetadata( + self, + *, + name: str, + body: GoogleCloudMetastoreV2alphaImportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2alphaListServicesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2alphaListServicesResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2alphaListServicesResponse, + ) -> ( + GoogleCloudMetastoreV2alphaListServicesResponseHttpRequest | None + ): ... + def moveTableToDatabase( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def patch( + self, + *, + name: str, + body: GoogleCloudMetastoreV2alphaService = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def queryMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaQueryMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def removeIamPolicy( + self, + *, + resource: str, + body: GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2alphaRemoveIamPolicyResponseHttpRequest: ... + def restore( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaRestoreServiceRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def startMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2alphaStartMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + def migrationExecutions(self) -> MigrationExecutionsResource: ... + + def services(self) -> ServicesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaBackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaBackup: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListBackupsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaListBackupsResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListMigrationExecutionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListServicesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaListServicesResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaMigrationExecutionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaMigrationExecution: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaRemoveIamPolicyResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaServiceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2alphaService: ... + +@typing.type_check_only +class GoogleLongrunningOperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleLongrunningOperation: ... diff --git a/googleapiclient-stubs/_apis/metastore/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v2alpha/schemas.pyi new file mode 100644 index 00000000..36d4e8d1 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2alpha/schemas.pyi @@ -0,0 +1,512 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1CustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1ErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1HiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1LocationMetadata(typing_extensions.TypedDict, total=False): + customRegionMetadata: _list[GoogleCloudMetastoreV1CustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1MultiRegionMetadata + supportedHiveMetastoreVersions: _list[GoogleCloudMetastoreV1HiveMetastoreVersion] + +@typing.type_check_only +class GoogleCloudMetastoreV1MoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1MultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1QueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1alphaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1alphaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1alphaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1betaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1betaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1betaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaAlterMetadataResourceLocationRequest( + typing_extensions.TypedDict, total=False +): + locationUri: str + resourceName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaAlterTablePropertiesRequest( + typing_extensions.TypedDict, total=False +): + properties: dict[str, typing.Any] + tableName: str + updateMask: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaAutoscalingConfig( + typing_extensions.TypedDict, total=False +): + autoscalingEnabled: bool + autoscalingFactor: int + limitConfig: GoogleCloudMetastoreV2alphaLimitConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaAuxiliaryVersionConfig( + typing_extensions.TypedDict, total=False +): + configOverrides: dict[str, typing.Any] + endpoints: _list[GoogleCloudMetastoreV2alphaEndpoint] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaBackup(typing_extensions.TypedDict, total=False): + createTime: str + description: str + endTime: str + name: str + restoringServices: _list[str] + serviceRevision: GoogleCloudMetastoreV2alphaService + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "DELETING", "ACTIVE", "FAILED", "RESTORING" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaCancelMigrationRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaCdcConfig(typing_extensions.TypedDict, total=False): + bucket: str + password: str + reverseProxySubnet: str + rootPath: str + subnetIpRange: str + username: str + vpcNetwork: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig( + typing_extensions.TypedDict, total=False +): + hiveDatabaseName: str + instanceConnectionName: str + ipAddress: str + natSubnet: str + password: str + port: int + proxySubnet: str + username: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig( + typing_extensions.TypedDict, total=False +): + cdcConfig: GoogleCloudMetastoreV2alphaCdcConfig + cloudSqlConnectionConfig: GoogleCloudMetastoreV2alphaCloudSQLConnectionConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaCompleteMigrationRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaDataCatalogConfig( + typing_extensions.TypedDict, total=False +): + enabled: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaDatabaseDump(typing_extensions.TypedDict, total=False): + gcsUri: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaEncryptionConfig( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaEndpoint(typing_extensions.TypedDict, total=False): + endpointUri: str + region: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaExportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDumpType: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + destinationGcsFolder: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaHiveMetastoreConfig( + typing_extensions.TypedDict, total=False +): + auxiliaryVersions: dict[str, typing.Any] + configOverrides: dict[str, typing.Any] + endpointProtocol: typing_extensions.Literal[ + "ENDPOINT_PROTOCOL_UNSPECIFIED", "THRIFT", "GRPC" + ] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaImportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDump: GoogleCloudMetastoreV2alphaDatabaseDump + description: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaLatestBackup(typing_extensions.TypedDict, total=False): + backupId: str + duration: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "IN_PROGRESS", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaLimitConfig(typing_extensions.TypedDict, total=False): + maxScalingFactor: int + minScalingFactor: int + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListBackupsResponse( + typing_extensions.TypedDict, total=False +): + backups: _list[GoogleCloudMetastoreV2alphaBackup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListMigrationExecutionsResponse( + typing_extensions.TypedDict, total=False +): + migrationExecutions: _list[GoogleCloudMetastoreV2alphaMigrationExecution] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaListServicesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + services: _list[GoogleCloudMetastoreV2alphaService] + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaMetadataIntegration( + typing_extensions.TypedDict, total=False +): + dataCatalogConfig: GoogleCloudMetastoreV2alphaDataCatalogConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaMigrationExecution( + typing_extensions.TypedDict, total=False +): + cloudSqlMigrationConfig: GoogleCloudMetastoreV2alphaCloudSQLMigrationConfig + createTime: str + endTime: str + name: str + phase: typing_extensions.Literal["PHASE_UNSPECIFIED", "REPLICATION", "CUTOVER"] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "STARTING", + "RUNNING", + "CANCELLING", + "AWAITING_USER_ACTION", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "DELETING", + ] + stateMessage: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaMoveTableToDatabaseRequest( + typing_extensions.TypedDict, total=False +): + dbName: str + destinationDbName: str + tableName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaQueryMetadataRequest( + typing_extensions.TypedDict, total=False +): + query: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaRemoveIamPolicyRequest( + typing_extensions.TypedDict, total=False +): + asynchronous: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaRemoveIamPolicyResponse( + typing_extensions.TypedDict, total=False +): + success: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaRestoreServiceRequest( + typing_extensions.TypedDict, total=False +): + backup: str + backupLocation: str + requestId: str + restoreType: typing_extensions.Literal[ + "RESTORE_TYPE_UNSPECIFIED", "FULL", "METADATA_ONLY" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaScalingConfig( + typing_extensions.TypedDict, total=False +): + autoscalingConfig: GoogleCloudMetastoreV2alphaAutoscalingConfig + scalingFactor: int + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaScheduledBackup( + typing_extensions.TypedDict, total=False +): + backupLocation: str + cronSchedule: str + enabled: bool + latestBackup: GoogleCloudMetastoreV2alphaLatestBackup + nextScheduledTime: str + timeZone: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaService(typing_extensions.TypedDict, total=False): + createTime: str + encryptionConfig: GoogleCloudMetastoreV2alphaEncryptionConfig + endpoints: _list[GoogleCloudMetastoreV2alphaEndpoint] + hiveMetastoreConfig: GoogleCloudMetastoreV2alphaHiveMetastoreConfig + labels: dict[str, typing.Any] + metadataIntegration: GoogleCloudMetastoreV2alphaMetadataIntegration + name: str + scalingConfig: GoogleCloudMetastoreV2alphaScalingConfig + scheduledBackup: GoogleCloudMetastoreV2alphaScheduledBackup + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "SUSPENDING", + "SUSPENDED", + "UPDATING", + "DELETING", + "ERROR", + "MIGRATING", + ] + stateMessage: str + uid: str + updateTime: str + warehouseGcsUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV2alphaStartMigrationRequest( + typing_extensions.TypedDict, total=False +): + migrationExecution: GoogleCloudMetastoreV2alphaMigrationExecution + requestId: str + +@typing.type_check_only +class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): + done: bool + error: GoogleRpcStatus + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class GoogleRpcStatus(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/metastore/v2beta/__init__.pyi b/googleapiclient-stubs/_apis/metastore/v2beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/metastore/v2beta/resources.pyi b/googleapiclient-stubs/_apis/metastore/v2beta/resources.pyi new file mode 100644 index 00000000..4226e270 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2beta/resources.pyi @@ -0,0 +1,295 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class DataprocMetastoreResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2betaBackup = ..., + backupId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2betaBackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2betaListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2betaListBackupsResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2betaListBackupsResponse, + ) -> ( + GoogleCloudMetastoreV2betaListBackupsResponseHttpRequest | None + ): ... + + @typing.type_check_only + class MigrationExecutionsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2betaMigrationExecutionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2betaListMigrationExecutionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2betaListMigrationExecutionsResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2betaListMigrationExecutionsResponse, + ) -> ( + GoogleCloudMetastoreV2betaListMigrationExecutionsResponseHttpRequest + | None + ): ... + + def alterLocation( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaAlterMetadataResourceLocationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def alterTableProperties( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaAlterTablePropertiesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def cancelMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaCancelMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def completeMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaCompleteMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleCloudMetastoreV2betaService = ..., + requestId: str = ..., + serviceId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def exportMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaExportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudMetastoreV2betaServiceHttpRequest: ... + def importMetadata( + self, + *, + name: str, + body: GoogleCloudMetastoreV2betaImportMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2betaListServicesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudMetastoreV2betaListServicesResponseHttpRequest, + previous_response: GoogleCloudMetastoreV2betaListServicesResponse, + ) -> ( + GoogleCloudMetastoreV2betaListServicesResponseHttpRequest | None + ): ... + def moveTableToDatabase( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaMoveTableToDatabaseRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def patch( + self, + *, + name: str, + body: GoogleCloudMetastoreV2betaService = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def queryMetadata( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaQueryMetadataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def removeIamPolicy( + self, + *, + resource: str, + body: GoogleCloudMetastoreV2betaRemoveIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudMetastoreV2betaRemoveIamPolicyResponseHttpRequest: ... + def restore( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaRestoreServiceRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def startMigration( + self, + *, + service: str, + body: GoogleCloudMetastoreV2betaStartMigrationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + def migrationExecutions(self) -> MigrationExecutionsResource: ... + + def services(self) -> ServicesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaBackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaBackup: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListBackupsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaListBackupsResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListMigrationExecutionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaListMigrationExecutionsResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListServicesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaListServicesResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaMigrationExecutionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaMigrationExecution: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaRemoveIamPolicyResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaRemoveIamPolicyResponse: ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaServiceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudMetastoreV2betaService: ... + +@typing.type_check_only +class GoogleLongrunningOperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleLongrunningOperation: ... diff --git a/googleapiclient-stubs/_apis/metastore/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v2beta/schemas.pyi new file mode 100644 index 00000000..6b8daba6 --- /dev/null +++ b/googleapiclient-stubs/_apis/metastore/v2beta/schemas.pyi @@ -0,0 +1,510 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class GoogleCloudMetastoreV1AlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1CustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1ErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1HiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1LocationMetadata(typing_extensions.TypedDict, total=False): + customRegionMetadata: _list[GoogleCloudMetastoreV1CustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1MultiRegionMetadata + supportedHiveMetastoreVersions: _list[GoogleCloudMetastoreV1HiveMetastoreVersion] + +@typing.type_check_only +class GoogleCloudMetastoreV1MoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1MultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1QueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1alphaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1alphaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1alphaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1alphaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaAlterMetadataResourceLocationResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCancelMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCompleteMigrationResponse( + typing_extensions.TypedDict, total=False +): + migrationExecution: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaCustomRegionMetadata( + typing_extensions.TypedDict, total=False +): + optionalReadOnlyRegions: _list[str] + requiredReadWriteRegions: _list[str] + witnessRegion: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaErrorDetails(typing_extensions.TypedDict, total=False): + details: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaHiveMetastoreVersion( + typing_extensions.TypedDict, total=False +): + isDefault: bool + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaLocationMetadata( + typing_extensions.TypedDict, total=False +): + customRegionMetadata: _list[GoogleCloudMetastoreV1betaCustomRegionMetadata] + multiRegionMetadata: GoogleCloudMetastoreV1betaMultiRegionMetadata + supportedHiveMetastoreVersions: _list[ + GoogleCloudMetastoreV1betaHiveMetastoreVersion + ] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMoveTableToDatabaseResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV1betaMultiRegionMetadata( + typing_extensions.TypedDict, total=False +): + constituentRegions: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV1betaOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudMetastoreV1betaQueryMetadataResponse( + typing_extensions.TypedDict, total=False +): + resultManifestUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaAlterMetadataResourceLocationRequest( + typing_extensions.TypedDict, total=False +): + locationUri: str + resourceName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaAlterTablePropertiesRequest( + typing_extensions.TypedDict, total=False +): + properties: dict[str, typing.Any] + tableName: str + updateMask: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaAutoscalingConfig( + typing_extensions.TypedDict, total=False +): + autoscalingEnabled: bool + autoscalingFactor: int + limitConfig: GoogleCloudMetastoreV2betaLimitConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2betaAuxiliaryVersionConfig( + typing_extensions.TypedDict, total=False +): + configOverrides: dict[str, typing.Any] + endpoints: _list[GoogleCloudMetastoreV2betaEndpoint] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaBackup(typing_extensions.TypedDict, total=False): + createTime: str + description: str + endTime: str + name: str + restoringServices: _list[str] + serviceRevision: GoogleCloudMetastoreV2betaService + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "DELETING", "ACTIVE", "FAILED", "RESTORING" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaCancelMigrationRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaCdcConfig(typing_extensions.TypedDict, total=False): + bucket: str + password: str + reverseProxySubnet: str + rootPath: str + subnetIpRange: str + username: str + vpcNetwork: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaCloudSQLConnectionConfig( + typing_extensions.TypedDict, total=False +): + hiveDatabaseName: str + instanceConnectionName: str + ipAddress: str + natSubnet: str + password: str + port: int + proxySubnet: str + username: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaCloudSQLMigrationConfig( + typing_extensions.TypedDict, total=False +): + cdcConfig: GoogleCloudMetastoreV2betaCdcConfig + cloudSqlConnectionConfig: GoogleCloudMetastoreV2betaCloudSQLConnectionConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2betaCompleteMigrationRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaDataCatalogConfig( + typing_extensions.TypedDict, total=False +): + enabled: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2betaDatabaseDump(typing_extensions.TypedDict, total=False): + gcsUri: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaEncryptionConfig( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudMetastoreV2betaEndpoint(typing_extensions.TypedDict, total=False): + endpointUri: str + region: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaExportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDumpType: typing_extensions.Literal["TYPE_UNSPECIFIED", "MYSQL", "AVRO"] + destinationGcsFolder: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaHiveMetastoreConfig( + typing_extensions.TypedDict, total=False +): + auxiliaryVersions: dict[str, typing.Any] + configOverrides: dict[str, typing.Any] + endpointProtocol: typing_extensions.Literal[ + "ENDPOINT_PROTOCOL_UNSPECIFIED", "THRIFT", "GRPC" + ] + version: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaImportMetadataRequest( + typing_extensions.TypedDict, total=False +): + databaseDump: GoogleCloudMetastoreV2betaDatabaseDump + description: str + requestId: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaLatestBackup(typing_extensions.TypedDict, total=False): + backupId: str + duration: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "IN_PROGRESS", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaLimitConfig(typing_extensions.TypedDict, total=False): + maxScalingFactor: int + minScalingFactor: int + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListBackupsResponse( + typing_extensions.TypedDict, total=False +): + backups: _list[GoogleCloudMetastoreV2betaBackup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListMigrationExecutionsResponse( + typing_extensions.TypedDict, total=False +): + migrationExecutions: _list[GoogleCloudMetastoreV2betaMigrationExecution] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaListServicesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + services: _list[GoogleCloudMetastoreV2betaService] + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaMetadataIntegration( + typing_extensions.TypedDict, total=False +): + dataCatalogConfig: GoogleCloudMetastoreV2betaDataCatalogConfig + +@typing.type_check_only +class GoogleCloudMetastoreV2betaMigrationExecution( + typing_extensions.TypedDict, total=False +): + cloudSqlMigrationConfig: GoogleCloudMetastoreV2betaCloudSQLMigrationConfig + createTime: str + endTime: str + name: str + phase: typing_extensions.Literal["PHASE_UNSPECIFIED", "REPLICATION", "CUTOVER"] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "STARTING", + "RUNNING", + "CANCELLING", + "AWAITING_USER_ACTION", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "DELETING", + ] + stateMessage: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaMoveTableToDatabaseRequest( + typing_extensions.TypedDict, total=False +): + dbName: str + destinationDbName: str + tableName: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaQueryMetadataRequest( + typing_extensions.TypedDict, total=False +): + query: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaRemoveIamPolicyRequest( + typing_extensions.TypedDict, total=False +): + asynchronous: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2betaRemoveIamPolicyResponse( + typing_extensions.TypedDict, total=False +): + success: bool + +@typing.type_check_only +class GoogleCloudMetastoreV2betaRestoreServiceRequest( + typing_extensions.TypedDict, total=False +): + backup: str + backupLocation: str + requestId: str + restoreType: typing_extensions.Literal[ + "RESTORE_TYPE_UNSPECIFIED", "FULL", "METADATA_ONLY" + ] + +@typing.type_check_only +class GoogleCloudMetastoreV2betaScalingConfig(typing_extensions.TypedDict, total=False): + autoscalingConfig: GoogleCloudMetastoreV2betaAutoscalingConfig + scalingFactor: int + +@typing.type_check_only +class GoogleCloudMetastoreV2betaScheduledBackup( + typing_extensions.TypedDict, total=False +): + backupLocation: str + cronSchedule: str + enabled: bool + latestBackup: GoogleCloudMetastoreV2betaLatestBackup + nextScheduledTime: str + timeZone: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaService(typing_extensions.TypedDict, total=False): + createTime: str + encryptionConfig: GoogleCloudMetastoreV2betaEncryptionConfig + endpoints: _list[GoogleCloudMetastoreV2betaEndpoint] + hiveMetastoreConfig: GoogleCloudMetastoreV2betaHiveMetastoreConfig + labels: dict[str, typing.Any] + metadataIntegration: GoogleCloudMetastoreV2betaMetadataIntegration + name: str + scalingConfig: GoogleCloudMetastoreV2betaScalingConfig + scheduledBackup: GoogleCloudMetastoreV2betaScheduledBackup + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "SUSPENDING", + "SUSPENDED", + "UPDATING", + "DELETING", + "ERROR", + "MIGRATING", + ] + stateMessage: str + uid: str + updateTime: str + warehouseGcsUri: str + +@typing.type_check_only +class GoogleCloudMetastoreV2betaStartMigrationRequest( + typing_extensions.TypedDict, total=False +): + migrationExecution: GoogleCloudMetastoreV2betaMigrationExecution + requestId: str + +@typing.type_check_only +class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): + done: bool + error: GoogleRpcStatus + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class GoogleRpcStatus(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/migrationcenter/v1/resources.pyi b/googleapiclient-stubs/_apis/migrationcenter/v1/resources.pyi index c99cbe5d..0d81b6de 100644 --- a/googleapiclient-stubs/_apis/migrationcenter/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/migrationcenter/v1/resources.pyi @@ -372,6 +372,27 @@ class MigrationCenterAPIResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class RelationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> RelationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRelationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRelationsResponseHttpRequest, + previous_response: ListRelationsResponse, + ) -> ListRelationsResponseHttpRequest | None: ... + @typing.type_check_only class ReportConfigsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -569,6 +590,7 @@ class MigrationCenterAPIResource(googleapiclient.discovery.Resource): def importJobs(self) -> ImportJobsResource: ... def operations(self) -> OperationsResource: ... def preferenceSets(self) -> PreferenceSetsResource: ... + def relations(self) -> RelationsResource: ... def reportConfigs(self) -> ReportConfigsResource: ... def sources(self) -> SourcesResource: ... @@ -732,6 +754,14 @@ class ListPreferenceSetsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListPreferenceSetsResponse: ... +@typing.type_check_only +class ListRelationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRelationsResponse: ... + @typing.type_check_only class ListReportConfigsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -780,6 +810,14 @@ class PreferenceSetHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> PreferenceSet: ... +@typing.type_check_only +class RelationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Relation: ... + @typing.type_check_only class ReportHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/migrationcenter/v1/schemas.pyi b/googleapiclient-stubs/_apis/migrationcenter/v1/schemas.pyi index 6c5ec83b..10ccb454 100644 --- a/googleapiclient-stubs/_apis/migrationcenter/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/migrationcenter/v1/schemas.pyi @@ -75,12 +75,15 @@ class Asset(typing_extensions.TypedDict, total=False): assignedGroups: _list[str] attributes: dict[str, typing.Any] createTime: str + databaseDeploymentDetails: DatabaseDeploymentDetails + databaseDetails: DatabaseDetails insightList: InsightList labels: dict[str, typing.Any] machineDetails: MachineDetails name: str performanceData: AssetPerformanceData sources: _list[str] + title: str updateTime: str @typing.type_check_only @@ -94,6 +97,8 @@ class AssetFrame(typing_extensions.TypedDict, total=False): "SOURCE_TYPE_CUSTOM", "SOURCE_TYPE_DISCOVERY_CLIENT", ] + databaseDeploymentDetails: DatabaseDeploymentDetails + databaseDetails: DatabaseDetails labels: dict[str, typing.Any] machineDetails: MachineDetails performanceSamples: _list[PerformanceSample] @@ -110,11 +115,21 @@ class AssetPerformanceData(typing_extensions.TypedDict, total=False): @typing.type_check_only class AwsEc2PlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str machineTypeLabel: str @typing.type_check_only class AzureVmPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str machineTypeLabel: str provisioningState: str @@ -201,6 +216,8 @@ class DailyResourceUsageAggregationCPU(typing_extensions.TypedDict, total=False) @typing.type_check_only class DailyResourceUsageAggregationDisk(typing_extensions.TypedDict, total=False): iops: DailyResourceUsageAggregationStats + readIops: DailyResourceUsageAggregationStats + writeIops: DailyResourceUsageAggregationStats @typing.type_check_only class DailyResourceUsageAggregationMemory(typing_extensions.TypedDict, total=False): @@ -218,6 +235,84 @@ class DailyResourceUsageAggregationStats(typing_extensions.TypedDict, total=Fals ninteyFifthPercentile: float peak: float +@typing.type_check_only +class DatabaseDeploymentDetails(typing_extensions.TypedDict, total=False): + aggregatedStats: DatabaseDeploymentDetailsAggregatedStats + edition: str + generatedId: str + manualUniqueId: str + mysql: MysqlDatabaseDeployment + postgresql: PostgreSqlDatabaseDeployment + sqlServer: SqlServerDatabaseDeployment + topology: DatabaseDeploymentTopology + version: str + +@typing.type_check_only +class DatabaseDeploymentDetailsAggregatedStats( + typing_extensions.TypedDict, total=False +): + databaseCount: int + +@typing.type_check_only +class DatabaseDeploymentTopology(typing_extensions.TypedDict, total=False): + coreCount: int + coreLimit: int + diskAllocatedBytes: str + diskUsedBytes: str + instances: _list[DatabaseInstance] + memoryBytes: str + memoryLimitBytes: str + physicalCoreCount: int + physicalCoreLimit: int + +@typing.type_check_only +class DatabaseDetails(typing_extensions.TypedDict, total=False): + allocatedStorageBytes: str + databaseName: str + parentDatabaseDeployment: DatabaseDetailsParentDatabaseDeployment + schemas: _list[DatabaseSchema] + +@typing.type_check_only +class DatabaseDetailsParentDatabaseDeployment(typing_extensions.TypedDict, total=False): + generatedId: str + manualUniqueId: str + +@typing.type_check_only +class DatabaseInstance(typing_extensions.TypedDict, total=False): + instanceName: str + network: DatabaseInstanceNetwork + role: typing_extensions.Literal[ + "ROLE_UNSPECIFIED", "PRIMARY", "SECONDARY", "ARBITER" + ] + +@typing.type_check_only +class DatabaseInstanceNetwork(typing_extensions.TypedDict, total=False): + hostNames: _list[str] + ipAddresses: _list[str] + primaryMacAddress: str + +@typing.type_check_only +class DatabaseObjects(typing_extensions.TypedDict, total=False): + category: typing_extensions.Literal[ + "CATEGORY_UNSPECIFIED", + "TABLE", + "INDEX", + "CONSTRAINTS", + "VIEWS", + "SOURCE_CODE", + "OTHER", + ] + count: str + +@typing.type_check_only +class DatabaseSchema(typing_extensions.TypedDict, total=False): + mysql: MySqlSchemaDetails + objects: _list[DatabaseObjects] + postgresql: PostgreSqlSchemaDetails + schemaName: str + sqlServer: SqlServerSchemaDetails + tablesSizeBytes: str + @typing.type_check_only class Date(typing_extensions.TypedDict, total=False): day: int @@ -285,6 +380,8 @@ class DiskPartitionList(typing_extensions.TypedDict, total=False): @typing.type_check_only class DiskUsageSample(typing_extensions.TypedDict, total=False): averageIops: float + averageReadIops: float + averageWriteIops: float @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -345,6 +442,11 @@ class GenericInsight(typing_extensions.TypedDict, total=False): @typing.type_check_only class GenericPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str @typing.type_check_only @@ -423,6 +525,7 @@ class ImportDataFile(typing_extensions.TypedDict, total=False): "IMPORT_JOB_FORMAT_EXPORTED_AWS_CSV", "IMPORT_JOB_FORMAT_EXPORTED_AZURE_CSV", "IMPORT_JOB_FORMAT_STRATOZONE_CSV", + "IMPORT_JOB_FORMAT_DATABASE_ZIP", ] name: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "CREATING", "ACTIVE"] @@ -459,6 +562,8 @@ class ImportJob(typing_extensions.TypedDict, total=False): @typing.type_check_only class ImportRowError(typing_extensions.TypedDict, total=False): + archiveError: ImportRowErrorArchiveErrorDetails + assetTitle: str csvError: ImportRowErrorCsvErrorDetails errors: _list[ImportError] rowNumber: int @@ -466,6 +571,11 @@ class ImportRowError(typing_extensions.TypedDict, total=False): vmUuid: str xlsxError: ImportRowErrorXlsxErrorDetails +@typing.type_check_only +class ImportRowErrorArchiveErrorDetails(typing_extensions.TypedDict, total=False): + csvError: ImportRowErrorCsvErrorDetails + filePath: str + @typing.type_check_only class ImportRowErrorCsvErrorDetails(typing_extensions.TypedDict, total=False): rowNumber: int @@ -537,6 +647,11 @@ class ListPreferenceSetsResponse(typing_extensions.TypedDict, total=False): preferenceSets: _list[PreferenceSet] unreachable: _list[str] +@typing.type_check_only +class ListRelationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + relations: _list[Relation] + @typing.type_check_only class ListReportConfigsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -567,6 +682,7 @@ class Location(typing_extensions.TypedDict, total=False): class MachineArchitectureDetails(typing_extensions.TypedDict, total=False): bios: BiosDetails cpuArchitecture: str + cpuManufacturer: str cpuName: str cpuSocketCount: int cpuThreadCount: int @@ -634,6 +750,54 @@ class Money(typing_extensions.TypedDict, total=False): nanos: int units: str +@typing.type_check_only +class MySqlPlugin(typing_extensions.TypedDict, total=False): + enabled: bool + plugin: str + version: str + +@typing.type_check_only +class MySqlProperty(typing_extensions.TypedDict, total=False): + enabled: bool + numericValue: str + property: str + +@typing.type_check_only +class MySqlSchemaDetails(typing_extensions.TypedDict, total=False): + storageEngines: _list[MySqlStorageEngineDetails] + +@typing.type_check_only +class MySqlStorageEngineDetails(typing_extensions.TypedDict, total=False): + encryptedTableCount: int + engine: typing_extensions.Literal[ + "ENGINE_UNSPECIFIED", + "INNODB", + "MYISAM", + "MEMORY", + "CSV", + "ARCHIVE", + "BLACKHOLE", + "NDB", + "MERGE", + "FEDERATED", + "EXAMPLE", + "OTHER", + ] + tableCount: int + +@typing.type_check_only +class MySqlVariable(typing_extensions.TypedDict, total=False): + category: str + value: str + variable: str + +@typing.type_check_only +class MysqlDatabaseDeployment(typing_extensions.TypedDict, total=False): + plugins: _list[MySqlPlugin] + properties: _list[MySqlProperty] + resourceGroupsCount: int + variables: _list[MySqlVariable] + @typing.type_check_only class NetworkAdapterDetails(typing_extensions.TypedDict, total=False): adapterType: str @@ -730,6 +894,11 @@ class PerformanceSample(typing_extensions.TypedDict, total=False): @typing.type_check_only class PhysicalPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str @typing.type_check_only @@ -740,6 +909,37 @@ class PlatformDetails(typing_extensions.TypedDict, total=False): physicalDetails: PhysicalPlatformDetails vmwareDetails: VmwarePlatformDetails +@typing.type_check_only +class PostgreSqlDatabaseDeployment(typing_extensions.TypedDict, total=False): + properties: _list[PostgreSqlProperty] + settings: _list[PostgreSqlSetting] + +@typing.type_check_only +class PostgreSqlExtension(typing_extensions.TypedDict, total=False): + extension: str + version: str + +@typing.type_check_only +class PostgreSqlProperty(typing_extensions.TypedDict, total=False): + enabled: bool + numericValue: str + property: str + +@typing.type_check_only +class PostgreSqlSchemaDetails(typing_extensions.TypedDict, total=False): + foreignTablesCount: int + postgresqlExtensions: _list[PostgreSqlExtension] + +@typing.type_check_only +class PostgreSqlSetting(typing_extensions.TypedDict, total=False): + boolValue: bool + intValue: str + realValue: float + setting: str + source: str + stringValue: str + unit: str + @typing.type_check_only class PreferenceSet(typing_extensions.TypedDict, total=False): createTime: str @@ -753,6 +953,16 @@ class PreferenceSet(typing_extensions.TypedDict, total=False): class RegionPreferences(typing_extensions.TypedDict, total=False): preferredRegions: _list[str] +@typing.type_check_only +class Relation(typing_extensions.TypedDict, total=False): + createTime: str + dstAsset: str + name: str + srcAsset: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "LOGICAL_DATABASE", "DATABASE_DEPLOYMENT_HOSTING_SERVER" + ] + @typing.type_check_only class RemoveAssetsFromGroupRequest(typing_extensions.TypedDict, total=False): allowMissing: bool @@ -994,6 +1204,32 @@ class Source(typing_extensions.TypedDict, total=False): ] updateTime: str +@typing.type_check_only +class SqlServerDatabaseDeployment(typing_extensions.TypedDict, total=False): + features: _list[SqlServerFeature] + serverFlags: _list[SqlServerServerFlag] + traceFlags: _list[SqlServerTraceFlag] + +@typing.type_check_only +class SqlServerFeature(typing_extensions.TypedDict, total=False): + enabled: bool + featureName: str + +@typing.type_check_only +class SqlServerSchemaDetails(typing_extensions.TypedDict, total=False): + clrObjectCount: int + +@typing.type_check_only +class SqlServerServerFlag(typing_extensions.TypedDict, total=False): + serverFlagName: str + value: str + valueInUse: str + +@typing.type_check_only +class SqlServerTraceFlag(typing_extensions.TypedDict, total=False): + scope: typing_extensions.Literal["SCOPE_UNSPECIFIED", "OFF", "GLOBAL", "SESSION"] + traceFlagName: str + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -1088,6 +1324,11 @@ class VmwareEnginePreferences(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwarePlatformDetails(typing_extensions.TypedDict, total=False): + esxHyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] esxVersion: str osid: str vcenterFolder: str diff --git a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi index 01f70450..dd6c1c59 100644 --- a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi @@ -163,11 +163,21 @@ class AssetsExportJobPerformanceData(typing_extensions.TypedDict, total=False): @typing.type_check_only class AwsEc2PlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str machineTypeLabel: str @typing.type_check_only class AzureVmPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str machineTypeLabel: str provisioningState: str @@ -695,6 +705,11 @@ class GenericInsight(typing_extensions.TypedDict, total=False): @typing.type_check_only class GenericPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str @typing.type_check_only @@ -1148,6 +1163,7 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): class OutputFile(typing_extensions.TypedDict, total=False): csvOutputFile: CsvOutputFile fileSizeBytes: int + xlsxOutputFile: XlsxOutputFile @typing.type_check_only class OutputFileList(typing_extensions.TypedDict, total=False): @@ -1168,6 +1184,11 @@ class PerformanceSample(typing_extensions.TypedDict, total=False): @typing.type_check_only class PhysicalPlatformDetails(typing_extensions.TypedDict, total=False): + hyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] location: str @typing.type_check_only @@ -1467,6 +1488,7 @@ class SendDiscoveryClientHeartbeatRequest(typing_extensions.TypedDict, total=Fal @typing.type_check_only class Settings(typing_extensions.TypedDict, total=False): + customerConsentForGoogleSalesToAccessMigrationCenter: bool disableCloudLogging: bool name: str preferenceSet: str @@ -1477,7 +1499,8 @@ class SignedUri(typing_extensions.TypedDict, total=False): uri: str @typing.type_check_only -class SignedUriDestination(typing_extensions.TypedDict, total=False): ... +class SignedUriDestination(typing_extensions.TypedDict, total=False): + fileFormat: typing_extensions.Literal["FILE_FORMAT_UNSPECIFIED", "CSV", "XLSX"] @typing.type_check_only class SignedUris(typing_extensions.TypedDict, total=False): @@ -1757,6 +1780,15 @@ class VmwareEnginePreferences(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwarePlatformDetails(typing_extensions.TypedDict, total=False): + esxHyperthreading: typing_extensions.Literal[ + "HYPERTHREADING_STATUS_UNSPECIFIED", + "HYPERTHREADING_STATUS_DISABLED", + "HYPERTHREADING_STATUS_ENABLED", + ] esxVersion: str osid: str vcenterVersion: str + +@typing.type_check_only +class XlsxOutputFile(typing_extensions.TypedDict, total=False): + signedUri: SignedUri diff --git a/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi b/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi index a0fd1b22..bb0f5fea 100644 --- a/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi @@ -100,6 +100,16 @@ class ColumnSettings(typing_extensions.TypedDict, total=False): thresholds: _list[Threshold] visible: bool +@typing.type_check_only +class ColumnSortingOptions(typing_extensions.TypedDict, total=False): + column: str + direction: typing_extensions.Literal[ + "SORT_ORDER_UNSPECIFIED", + "SORT_ORDER_NONE", + "SORT_ORDER_ASCENDING", + "SORT_ORDER_DESCENDING", + ] + @typing.type_check_only class Dashboard(typing_extensions.TypedDict, total=False): annotations: DashboardAnnotations @@ -149,6 +159,7 @@ class DataSet(typing_extensions.TypedDict, total=False): plotType: typing_extensions.Literal[ "PLOT_TYPE_UNSPECIFIED", "LINE", "STACKED_AREA", "STACKED_BAR", "HEATMAP" ] + sort: _list[ColumnSortingOptions] targetAxis: typing_extensions.Literal["TARGET_AXIS_UNSPECIFIED", "Y1", "Y2"] timeSeriesQuery: TimeSeriesQuery @@ -208,6 +219,7 @@ class EventAnnotation(typing_extensions.TypedDict, total=False): "UPTIME_CHECK_FAILURE", "CLOUD_ALERTING_ALERT", "SERVICE_HEALTH_INCIDENT", + "SAP_BACKINT", ] filter: str resourceNames: _list[str] diff --git a/googleapiclient-stubs/_apis/monitoring/v3/resources.pyi b/googleapiclient-stubs/_apis/monitoring/v3/resources.pyi index e11e3716..e151eeb9 100644 --- a/googleapiclient-stubs/_apis/monitoring/v3/resources.pyi +++ b/googleapiclient-stubs/_apis/monitoring/v3/resources.pyi @@ -340,6 +340,7 @@ class MonitoringResource(googleapiclient.discovery.Resource): self, *, name: str, + activeOnly: bool = ..., filter: str = ..., pageSize: int = ..., pageToken: str = ..., diff --git a/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi b/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi index dbdf69a6..6f41f4bf 100644 --- a/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi @@ -70,6 +70,9 @@ class AlertPolicy(typing_extensions.TypedDict, total=False): class AlertStrategy(typing_extensions.TypedDict, total=False): autoClose: str notificationChannelStrategy: _list[NotificationChannelStrategy] + notificationPrompts: _list[ + typing_extensions.Literal["NOTIFICATION_PROMPT_UNSPECIFIED", "OPENED", "CLOSED"] + ] notificationRateLimit: NotificationRateLimit @typing.type_check_only @@ -97,6 +100,10 @@ class BasicSli(typing_extensions.TypedDict, total=False): method: _list[str] version: _list[str] +@typing.type_check_only +class BooleanTest(typing_extensions.TypedDict, total=False): + column: str + @typing.type_check_only class BucketOptions(typing_extensions.TypedDict, total=False): explicitBuckets: Explicit @@ -160,6 +167,7 @@ class Condition(typing_extensions.TypedDict, total=False): conditionMatchedLog: LogMatch conditionMonitoringQueryLanguage: MonitoringQueryLanguageCondition conditionPrometheusQueryLanguage: PrometheusQueryLanguageCondition + conditionSql: SqlCondition conditionThreshold: MetricThreshold displayName: str name: str @@ -206,6 +214,11 @@ class Criteria(typing_extensions.TypedDict, total=False): @typing.type_check_only class Custom(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Daily(typing_extensions.TypedDict, total=False): + executionTime: TimeOfDay + periodicity: int + @typing.type_check_only class Distribution(typing_extensions.TypedDict, total=False): bucketCounts: _list[str] @@ -348,6 +361,11 @@ class Group(typing_extensions.TypedDict, total=False): name: str parentName: str +@typing.type_check_only +class Hourly(typing_extensions.TypedDict, total=False): + minuteOffset: int + periodicity: int + @typing.type_check_only class HttpCheck(typing_extensions.TypedDict, total=False): acceptedResponseStatusCodes: _list[ResponseStatusCode] @@ -601,6 +619,10 @@ class MetricThreshold(typing_extensions.TypedDict, total=False): thresholdValue: float trigger: Trigger +@typing.type_check_only +class Minutes(typing_extensions.TypedDict, total=False): + periodicity: int + @typing.type_check_only class MonitoredResource(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] @@ -729,6 +751,7 @@ class PointData(typing_extensions.TypedDict, total=False): @typing.type_check_only class PrometheusQueryLanguageCondition(typing_extensions.TypedDict, total=False): alertRule: str + disableMetricValidation: bool duration: str evaluationInterval: str labels: dict[str, typing.Any] @@ -778,6 +801,19 @@ class ResponseStatusCode(typing_extensions.TypedDict, total=False): ] statusValue: int +@typing.type_check_only +class RowCountTest(typing_extensions.TypedDict, total=False): + comparison: typing_extensions.Literal[ + "COMPARISON_UNSPECIFIED", + "COMPARISON_GT", + "COMPARISON_GE", + "COMPARISON_LT", + "COMPARISON_LE", + "COMPARISON_EQ", + "COMPARISON_NE", + ] + threshold: str + @typing.type_check_only class SendNotificationChannelVerificationCodeRequest( typing_extensions.TypedDict, total=False @@ -847,6 +883,15 @@ class SourceContext(typing_extensions.TypedDict, total=False): class SpanContext(typing_extensions.TypedDict, total=False): spanName: str +@typing.type_check_only +class SqlCondition(typing_extensions.TypedDict, total=False): + booleanTest: BooleanTest + daily: Daily + hourly: Hourly + minutes: Minutes + query: str + rowCountTest: RowCountTest + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -871,6 +916,13 @@ class TimeInterval(typing_extensions.TypedDict, total=False): endTime: str startTime: str +@typing.type_check_only +class TimeOfDay(typing_extensions.TypedDict, total=False): + hours: int + minutes: int + nanos: int + seconds: int + @typing.type_check_only class TimeSeries(typing_extensions.TypedDict, total=False): description: str diff --git a/googleapiclient-stubs/_apis/netapp/__init__.pyi b/googleapiclient-stubs/_apis/netapp/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/netapp/v1/__init__.pyi b/googleapiclient-stubs/_apis/netapp/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/netapp/v1/resources.pyi b/googleapiclient-stubs/_apis/netapp/v1/resources.pyi new file mode 100644 index 00000000..3b6d19aa --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1/resources.pyi @@ -0,0 +1,714 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class NetAppFilesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActiveDirectoriesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: ActiveDirectory = ..., + activeDirectoryId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ActiveDirectoryHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListActiveDirectoriesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListActiveDirectoriesResponseHttpRequest, + previous_response: ListActiveDirectoriesResponse, + ) -> ListActiveDirectoriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: ActiveDirectory = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class BackupPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: BackupPolicy = ..., + backupPolicyId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupPolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupPoliciesResponseHttpRequest, + previous_response: ListBackupPoliciesResponse, + ) -> ListBackupPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupPolicy = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class BackupVaultsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Backup = ..., + backupId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupsResponseHttpRequest, + previous_response: ListBackupsResponse, + ) -> ListBackupsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Backup = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: BackupVault = ..., + backupVaultId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupVaultHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupVaultsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupVaultsResponseHttpRequest, + previous_response: ListBackupVaultsResponse, + ) -> ListBackupVaultsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupVault = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + + @typing.type_check_only + class KmsConfigsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: KmsConfig = ..., + kmsConfigId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def encrypt( + self, + *, + name: str, + body: EncryptVolumesRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> KmsConfigHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListKmsConfigsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListKmsConfigsResponseHttpRequest, + previous_response: ListKmsConfigsResponse, + ) -> ListKmsConfigsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: KmsConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def verify( + self, + *, + name: str, + body: VerifyKmsConfigRequest = ..., + **kwargs: typing.Any, + ) -> VerifyKmsConfigResponseHttpRequest: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + @typing.type_check_only + class StoragePoolsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: StoragePool = ..., + storagePoolId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> StoragePoolHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListStoragePoolsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListStoragePoolsResponseHttpRequest, + previous_response: ListStoragePoolsResponse, + ) -> ListStoragePoolsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: StoragePool = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def switch( + self, + *, + name: str, + body: SwitchActiveReplicaZoneRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def validateDirectoryService( + self, + *, + name: str, + body: ValidateDirectoryServiceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class VolumesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ReplicationsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Replication = ..., + replicationId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def establishPeering( + self, + *, + name: str, + body: EstablishPeeringRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ReplicationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListReplicationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListReplicationsResponseHttpRequest, + previous_response: ListReplicationsResponse, + ) -> ListReplicationsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Replication = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def resume( + self, + *, + name: str, + body: ResumeReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def reverseDirection( + self, + *, + name: str, + body: ReverseReplicationDirectionRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def stop( + self, + *, + name: str, + body: StopReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def sync( + self, + *, + name: str, + body: SyncReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class SnapshotsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Snapshot = ..., + snapshotId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SnapshotHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSnapshotsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListSnapshotsResponseHttpRequest, + previous_response: ListSnapshotsResponse, + ) -> ListSnapshotsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Snapshot = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: Volume = ..., + volumeId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> VolumeHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListVolumesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListVolumesResponseHttpRequest, + previous_response: ListVolumesResponse, + ) -> ListVolumesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Volume = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def revert( + self, + *, + name: str, + body: RevertVolumeRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def replications(self) -> ReplicationsResource: ... + def snapshots(self) -> SnapshotsResource: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def activeDirectories(self) -> ActiveDirectoriesResource: ... + def backupPolicies(self) -> BackupPoliciesResource: ... + def backupVaults(self) -> BackupVaultsResource: ... + def kmsConfigs(self) -> KmsConfigsResource: ... + def operations(self) -> OperationsResource: ... + def storagePools(self) -> StoragePoolsResource: ... + def volumes(self) -> VolumesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class ActiveDirectoryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ActiveDirectory: ... + +@typing.type_check_only +class BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Backup: ... + +@typing.type_check_only +class BackupPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupPolicy: ... + +@typing.type_check_only +class BackupVaultHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupVault: ... + +@typing.type_check_only +class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleProtobufEmpty: ... + +@typing.type_check_only +class KmsConfigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> KmsConfig: ... + +@typing.type_check_only +class ListActiveDirectoriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListActiveDirectoriesResponse: ... + +@typing.type_check_only +class ListBackupPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupPoliciesResponse: ... + +@typing.type_check_only +class ListBackupVaultsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupVaultsResponse: ... + +@typing.type_check_only +class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupsResponse: ... + +@typing.type_check_only +class ListKmsConfigsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListKmsConfigsResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class ListReplicationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListReplicationsResponse: ... + +@typing.type_check_only +class ListSnapshotsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSnapshotsResponse: ... + +@typing.type_check_only +class ListStoragePoolsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListStoragePoolsResponse: ... + +@typing.type_check_only +class ListVolumesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListVolumesResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... + +@typing.type_check_only +class ReplicationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Replication: ... + +@typing.type_check_only +class SnapshotHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Snapshot: ... + +@typing.type_check_only +class StoragePoolHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> StoragePool: ... + +@typing.type_check_only +class VerifyKmsConfigResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> VerifyKmsConfigResponse: ... + +@typing.type_check_only +class VolumeHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Volume: ... diff --git a/googleapiclient-stubs/_apis/netapp/v1/schemas.pyi b/googleapiclient-stubs/_apis/netapp/v1/schemas.pyi new file mode 100644 index 00000000..2b3f3827 --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1/schemas.pyi @@ -0,0 +1,560 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class ActiveDirectory(typing_extensions.TypedDict, total=False): + administrators: _list[str] + aesEncryption: bool + backupOperators: _list[str] + createTime: str + description: str + dns: str + domain: str + encryptDcConnections: bool + kdcHostname: str + kdcIp: str + labels: dict[str, typing.Any] + ldapSigning: bool + name: str + netBiosPrefix: str + nfsUsersWithLdap: bool + organizationalUnit: str + password: str + securityOperators: _list[str] + site: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "READY", + "UPDATING", + "IN_USE", + "DELETING", + "ERROR", + "DIAGNOSING", + ] + stateDetails: str + username: str + +@typing.type_check_only +class Backup(typing_extensions.TypedDict, total=False): + backupType: typing_extensions.Literal["TYPE_UNSPECIFIED", "MANUAL", "SCHEDULED"] + chainStorageBytes: str + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + satisfiesPzi: bool + satisfiesPzs: bool + sourceSnapshot: str + sourceVolume: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "UPLOADING", + "READY", + "DELETING", + "ERROR", + "UPDATING", + ] + volumeUsageBytes: str + +@typing.type_check_only +class BackupConfig(typing_extensions.TypedDict, total=False): + backupChainBytes: str + backupPolicies: _list[str] + backupVault: str + scheduledBackupEnabled: bool + +@typing.type_check_only +class BackupPolicy(typing_extensions.TypedDict, total=False): + assignedVolumeCount: int + createTime: str + dailyBackupLimit: int + description: str + enabled: bool + labels: dict[str, typing.Any] + monthlyBackupLimit: int + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING", "ERROR", "UPDATING" + ] + weeklyBackupLimit: int + +@typing.type_check_only +class BackupVault(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING", "ERROR", "UPDATING" + ] + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DailySchedule(typing_extensions.TypedDict, total=False): + hour: float + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class DestinationVolumeParameters(typing_extensions.TypedDict, total=False): + description: str + shareName: str + storagePool: str + tieringPolicy: TieringPolicy + volumeId: str + +@typing.type_check_only +class EncryptVolumesRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EstablishPeeringRequest(typing_extensions.TypedDict, total=False): + peerClusterName: str + peerIpAddresses: _list[str] + peerSvmName: str + peerVolumeName: str + +@typing.type_check_only +class ExportPolicy(typing_extensions.TypedDict, total=False): + rules: _list[SimpleExportPolicyRule] + +@typing.type_check_only +class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class HourlySchedule(typing_extensions.TypedDict, total=False): + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class HybridPeeringDetails(typing_extensions.TypedDict, total=False): + command: str + commandExpiryTime: str + passphrase: str + subnetIp: str + +@typing.type_check_only +class HybridReplicationParameters(typing_extensions.TypedDict, total=False): + clusterLocation: str + description: str + labels: dict[str, typing.Any] + peerClusterName: str + peerIpAddresses: _list[str] + peerSvmName: str + peerVolumeName: str + replication: str + +@typing.type_check_only +class KmsConfig(typing_extensions.TypedDict, total=False): + createTime: str + cryptoKeyName: str + description: str + instructions: str + labels: dict[str, typing.Any] + name: str + serviceAccount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "IN_USE", + "ERROR", + "KEY_CHECK_PENDING", + "KEY_NOT_REACHABLE", + "DISABLING", + "DISABLED", + "MIGRATING", + ] + stateDetails: str + +@typing.type_check_only +class ListActiveDirectoriesResponse(typing_extensions.TypedDict, total=False): + activeDirectories: _list[ActiveDirectory] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupPoliciesResponse(typing_extensions.TypedDict, total=False): + backupPolicies: _list[BackupPolicy] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupVaultsResponse(typing_extensions.TypedDict, total=False): + backupVaults: _list[BackupVault] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupsResponse(typing_extensions.TypedDict, total=False): + backups: _list[Backup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListKmsConfigsResponse(typing_extensions.TypedDict, total=False): + kmsConfigs: _list[KmsConfig] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class ListReplicationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + replications: _list[Replication] + unreachable: _list[str] + +@typing.type_check_only +class ListSnapshotsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + snapshots: _list[Snapshot] + unreachable: _list[str] + +@typing.type_check_only +class ListStoragePoolsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + storagePools: _list[StoragePool] + unreachable: _list[str] + +@typing.type_check_only +class ListVolumesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + unreachable: _list[str] + volumes: _list[Volume] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class LocationMetadata(typing_extensions.TypedDict, total=False): + supportedServiceLevels: _list[ + typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + ] + +@typing.type_check_only +class MonthlySchedule(typing_extensions.TypedDict, total=False): + daysOfMonth: str + hour: float + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class MountOption(typing_extensions.TypedDict, total=False): + export: str + exportFull: str + instructions: str + ipAddress: str + protocol: typing_extensions.Literal[ + "PROTOCOLS_UNSPECIFIED", "NFSV3", "NFSV4", "SMB" + ] + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class Replication(typing_extensions.TypedDict, total=False): + clusterLocation: str + createTime: str + description: str + destinationVolume: str + destinationVolumeParameters: DestinationVolumeParameters + healthy: bool + hybridPeeringDetails: HybridPeeringDetails + hybridReplicationType: typing_extensions.Literal[ + "HYBRID_REPLICATION_TYPE_UNSPECIFIED", "MIGRATION", "CONTINUOUS_REPLICATION" + ] + labels: dict[str, typing.Any] + mirrorState: typing_extensions.Literal[ + "MIRROR_STATE_UNSPECIFIED", + "PREPARING", + "MIRRORED", + "STOPPED", + "TRANSFERRING", + "BASELINE_TRANSFERRING", + "ABORTED", + ] + name: str + replicationSchedule: typing_extensions.Literal[ + "REPLICATION_SCHEDULE_UNSPECIFIED", "EVERY_10_MINUTES", "HOURLY", "DAILY" + ] + role: typing_extensions.Literal[ + "REPLICATION_ROLE_UNSPECIFIED", "SOURCE", "DESTINATION" + ] + sourceVolume: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "READY", + "UPDATING", + "DELETING", + "ERROR", + "PENDING_CLUSTER_PEERING", + "PENDING_SVM_PEERING", + ] + stateDetails: str + transferStats: TransferStats + +@typing.type_check_only +class RestoreParameters(typing_extensions.TypedDict, total=False): + sourceBackup: str + sourceSnapshot: str + +@typing.type_check_only +class ResumeReplicationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ReverseReplicationDirectionRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class RevertVolumeRequest(typing_extensions.TypedDict, total=False): + snapshotId: str + +@typing.type_check_only +class SimpleExportPolicyRule(typing_extensions.TypedDict, total=False): + accessType: typing_extensions.Literal[ + "ACCESS_TYPE_UNSPECIFIED", "READ_ONLY", "READ_WRITE", "READ_NONE" + ] + allowedClients: str + hasRootAccess: str + kerberos5ReadOnly: bool + kerberos5ReadWrite: bool + kerberos5iReadOnly: bool + kerberos5iReadWrite: bool + kerberos5pReadOnly: bool + kerberos5pReadWrite: bool + nfsv3: bool + nfsv4: bool + +@typing.type_check_only +class Snapshot(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "DISABLED", + "ERROR", + ] + stateDetails: str + usedBytes: float + +@typing.type_check_only +class SnapshotPolicy(typing_extensions.TypedDict, total=False): + dailySchedule: DailySchedule + enabled: bool + hourlySchedule: HourlySchedule + monthlySchedule: MonthlySchedule + weeklySchedule: WeeklySchedule + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str + +@typing.type_check_only +class StopReplicationRequest(typing_extensions.TypedDict, total=False): + force: bool + +@typing.type_check_only +class StoragePool(typing_extensions.TypedDict, total=False): + activeDirectory: str + allowAutoTiering: bool + capacityGib: str + createTime: str + description: str + encryptionType: typing_extensions.Literal[ + "ENCRYPTION_TYPE_UNSPECIFIED", "SERVICE_MANAGED", "CLOUD_KMS" + ] + globalAccessAllowed: bool + kmsConfig: str + labels: dict[str, typing.Any] + ldapEnabled: bool + name: str + network: str + psaRange: str + replicaZone: str + satisfiesPzi: bool + satisfiesPzs: bool + serviceLevel: typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "RESTORING", + "DISABLED", + "ERROR", + ] + stateDetails: str + volumeCapacityGib: str + volumeCount: int + zone: str + +@typing.type_check_only +class SwitchActiveReplicaZoneRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class SyncReplicationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class TieringPolicy(typing_extensions.TypedDict, total=False): + coolingThresholdDays: int + tierAction: typing_extensions.Literal[ + "TIER_ACTION_UNSPECIFIED", "ENABLED", "PAUSED" + ] + +@typing.type_check_only +class TransferStats(typing_extensions.TypedDict, total=False): + lagDuration: str + lastTransferBytes: str + lastTransferDuration: str + lastTransferEndTime: str + lastTransferError: str + totalTransferDuration: str + transferBytes: str + updateTime: str + +@typing.type_check_only +class ValidateDirectoryServiceRequest(typing_extensions.TypedDict, total=False): + directoryServiceType: typing_extensions.Literal[ + "DIRECTORY_SERVICE_TYPE_UNSPECIFIED", "ACTIVE_DIRECTORY" + ] + +@typing.type_check_only +class VerifyKmsConfigRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class VerifyKmsConfigResponse(typing_extensions.TypedDict, total=False): + healthError: str + healthy: bool + instructions: str + +@typing.type_check_only +class Volume(typing_extensions.TypedDict, total=False): + activeDirectory: str + backupConfig: BackupConfig + capacityGib: str + coldTierSizeGib: str + createTime: str + description: str + encryptionType: typing_extensions.Literal[ + "ENCRYPTION_TYPE_UNSPECIFIED", "SERVICE_MANAGED", "CLOUD_KMS" + ] + exportPolicy: ExportPolicy + hasReplication: bool + hybridReplicationParameters: HybridReplicationParameters + kerberosEnabled: bool + kmsConfig: str + labels: dict[str, typing.Any] + largeCapacity: bool + ldapEnabled: bool + mountOptions: _list[MountOption] + multipleEndpoints: bool + name: str + network: str + protocols: _list[ + typing_extensions.Literal["PROTOCOLS_UNSPECIFIED", "NFSV3", "NFSV4", "SMB"] + ] + psaRange: str + replicaZone: str + restoreParameters: RestoreParameters + restrictedActions: _list[ + typing_extensions.Literal["RESTRICTED_ACTION_UNSPECIFIED", "DELETE"] + ] + securityStyle: typing_extensions.Literal[ + "SECURITY_STYLE_UNSPECIFIED", "NTFS", "UNIX" + ] + serviceLevel: typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + shareName: str + smbSettings: _list[ + typing_extensions.Literal[ + "SMB_SETTINGS_UNSPECIFIED", + "ENCRYPT_DATA", + "BROWSABLE", + "CHANGE_NOTIFY", + "NON_BROWSABLE", + "OPLOCKS", + "SHOW_SNAPSHOT", + "SHOW_PREVIOUS_VERSIONS", + "ACCESS_BASED_ENUMERATION", + "CONTINUOUSLY_AVAILABLE", + ] + ] + snapReserve: float + snapshotDirectory: bool + snapshotPolicy: SnapshotPolicy + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "RESTORING", + "DISABLED", + "ERROR", + "PREPARING", + "READ_ONLY", + ] + stateDetails: str + storagePool: str + tieringPolicy: TieringPolicy + unixPermissions: str + usedGib: str + zone: str + +@typing.type_check_only +class WeeklySchedule(typing_extensions.TypedDict, total=False): + day: str + hour: float + minute: float + snapshotsToKeep: float diff --git a/googleapiclient-stubs/_apis/netapp/v1beta1/__init__.pyi b/googleapiclient-stubs/_apis/netapp/v1beta1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1beta1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/netapp/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/netapp/v1beta1/resources.pyi new file mode 100644 index 00000000..3b6d19aa --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1beta1/resources.pyi @@ -0,0 +1,714 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class NetAppFilesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActiveDirectoriesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: ActiveDirectory = ..., + activeDirectoryId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ActiveDirectoryHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListActiveDirectoriesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListActiveDirectoriesResponseHttpRequest, + previous_response: ListActiveDirectoriesResponse, + ) -> ListActiveDirectoriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: ActiveDirectory = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class BackupPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: BackupPolicy = ..., + backupPolicyId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupPolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupPoliciesResponseHttpRequest, + previous_response: ListBackupPoliciesResponse, + ) -> ListBackupPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupPolicy = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class BackupVaultsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Backup = ..., + backupId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupsResponseHttpRequest, + previous_response: ListBackupsResponse, + ) -> ListBackupsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Backup = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: BackupVault = ..., + backupVaultId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupVaultHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupVaultsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupVaultsResponseHttpRequest, + previous_response: ListBackupVaultsResponse, + ) -> ListBackupVaultsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupVault = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + + @typing.type_check_only + class KmsConfigsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: KmsConfig = ..., + kmsConfigId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def encrypt( + self, + *, + name: str, + body: EncryptVolumesRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> KmsConfigHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListKmsConfigsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListKmsConfigsResponseHttpRequest, + previous_response: ListKmsConfigsResponse, + ) -> ListKmsConfigsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: KmsConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def verify( + self, + *, + name: str, + body: VerifyKmsConfigRequest = ..., + **kwargs: typing.Any, + ) -> VerifyKmsConfigResponseHttpRequest: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + @typing.type_check_only + class StoragePoolsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: StoragePool = ..., + storagePoolId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> StoragePoolHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListStoragePoolsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListStoragePoolsResponseHttpRequest, + previous_response: ListStoragePoolsResponse, + ) -> ListStoragePoolsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: StoragePool = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def switch( + self, + *, + name: str, + body: SwitchActiveReplicaZoneRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def validateDirectoryService( + self, + *, + name: str, + body: ValidateDirectoryServiceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class VolumesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ReplicationsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Replication = ..., + replicationId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def establishPeering( + self, + *, + name: str, + body: EstablishPeeringRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ReplicationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListReplicationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListReplicationsResponseHttpRequest, + previous_response: ListReplicationsResponse, + ) -> ListReplicationsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Replication = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def resume( + self, + *, + name: str, + body: ResumeReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def reverseDirection( + self, + *, + name: str, + body: ReverseReplicationDirectionRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def stop( + self, + *, + name: str, + body: StopReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def sync( + self, + *, + name: str, + body: SyncReplicationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class SnapshotsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Snapshot = ..., + snapshotId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SnapshotHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSnapshotsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListSnapshotsResponseHttpRequest, + previous_response: ListSnapshotsResponse, + ) -> ListSnapshotsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Snapshot = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: Volume = ..., + volumeId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> VolumeHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListVolumesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListVolumesResponseHttpRequest, + previous_response: ListVolumesResponse, + ) -> ListVolumesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Volume = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def revert( + self, + *, + name: str, + body: RevertVolumeRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def replications(self) -> ReplicationsResource: ... + def snapshots(self) -> SnapshotsResource: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def activeDirectories(self) -> ActiveDirectoriesResource: ... + def backupPolicies(self) -> BackupPoliciesResource: ... + def backupVaults(self) -> BackupVaultsResource: ... + def kmsConfigs(self) -> KmsConfigsResource: ... + def operations(self) -> OperationsResource: ... + def storagePools(self) -> StoragePoolsResource: ... + def volumes(self) -> VolumesResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class ActiveDirectoryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ActiveDirectory: ... + +@typing.type_check_only +class BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Backup: ... + +@typing.type_check_only +class BackupPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupPolicy: ... + +@typing.type_check_only +class BackupVaultHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupVault: ... + +@typing.type_check_only +class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleProtobufEmpty: ... + +@typing.type_check_only +class KmsConfigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> KmsConfig: ... + +@typing.type_check_only +class ListActiveDirectoriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListActiveDirectoriesResponse: ... + +@typing.type_check_only +class ListBackupPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupPoliciesResponse: ... + +@typing.type_check_only +class ListBackupVaultsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupVaultsResponse: ... + +@typing.type_check_only +class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupsResponse: ... + +@typing.type_check_only +class ListKmsConfigsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListKmsConfigsResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class ListReplicationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListReplicationsResponse: ... + +@typing.type_check_only +class ListSnapshotsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSnapshotsResponse: ... + +@typing.type_check_only +class ListStoragePoolsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListStoragePoolsResponse: ... + +@typing.type_check_only +class ListVolumesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListVolumesResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... + +@typing.type_check_only +class ReplicationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Replication: ... + +@typing.type_check_only +class SnapshotHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Snapshot: ... + +@typing.type_check_only +class StoragePoolHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> StoragePool: ... + +@typing.type_check_only +class VerifyKmsConfigResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> VerifyKmsConfigResponse: ... + +@typing.type_check_only +class VolumeHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Volume: ... diff --git a/googleapiclient-stubs/_apis/netapp/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/netapp/v1beta1/schemas.pyi new file mode 100644 index 00000000..2b3f3827 --- /dev/null +++ b/googleapiclient-stubs/_apis/netapp/v1beta1/schemas.pyi @@ -0,0 +1,560 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class ActiveDirectory(typing_extensions.TypedDict, total=False): + administrators: _list[str] + aesEncryption: bool + backupOperators: _list[str] + createTime: str + description: str + dns: str + domain: str + encryptDcConnections: bool + kdcHostname: str + kdcIp: str + labels: dict[str, typing.Any] + ldapSigning: bool + name: str + netBiosPrefix: str + nfsUsersWithLdap: bool + organizationalUnit: str + password: str + securityOperators: _list[str] + site: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "READY", + "UPDATING", + "IN_USE", + "DELETING", + "ERROR", + "DIAGNOSING", + ] + stateDetails: str + username: str + +@typing.type_check_only +class Backup(typing_extensions.TypedDict, total=False): + backupType: typing_extensions.Literal["TYPE_UNSPECIFIED", "MANUAL", "SCHEDULED"] + chainStorageBytes: str + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + satisfiesPzi: bool + satisfiesPzs: bool + sourceSnapshot: str + sourceVolume: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "UPLOADING", + "READY", + "DELETING", + "ERROR", + "UPDATING", + ] + volumeUsageBytes: str + +@typing.type_check_only +class BackupConfig(typing_extensions.TypedDict, total=False): + backupChainBytes: str + backupPolicies: _list[str] + backupVault: str + scheduledBackupEnabled: bool + +@typing.type_check_only +class BackupPolicy(typing_extensions.TypedDict, total=False): + assignedVolumeCount: int + createTime: str + dailyBackupLimit: int + description: str + enabled: bool + labels: dict[str, typing.Any] + monthlyBackupLimit: int + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING", "ERROR", "UPDATING" + ] + weeklyBackupLimit: int + +@typing.type_check_only +class BackupVault(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING", "ERROR", "UPDATING" + ] + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DailySchedule(typing_extensions.TypedDict, total=False): + hour: float + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class DestinationVolumeParameters(typing_extensions.TypedDict, total=False): + description: str + shareName: str + storagePool: str + tieringPolicy: TieringPolicy + volumeId: str + +@typing.type_check_only +class EncryptVolumesRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EstablishPeeringRequest(typing_extensions.TypedDict, total=False): + peerClusterName: str + peerIpAddresses: _list[str] + peerSvmName: str + peerVolumeName: str + +@typing.type_check_only +class ExportPolicy(typing_extensions.TypedDict, total=False): + rules: _list[SimpleExportPolicyRule] + +@typing.type_check_only +class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class HourlySchedule(typing_extensions.TypedDict, total=False): + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class HybridPeeringDetails(typing_extensions.TypedDict, total=False): + command: str + commandExpiryTime: str + passphrase: str + subnetIp: str + +@typing.type_check_only +class HybridReplicationParameters(typing_extensions.TypedDict, total=False): + clusterLocation: str + description: str + labels: dict[str, typing.Any] + peerClusterName: str + peerIpAddresses: _list[str] + peerSvmName: str + peerVolumeName: str + replication: str + +@typing.type_check_only +class KmsConfig(typing_extensions.TypedDict, total=False): + createTime: str + cryptoKeyName: str + description: str + instructions: str + labels: dict[str, typing.Any] + name: str + serviceAccount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "IN_USE", + "ERROR", + "KEY_CHECK_PENDING", + "KEY_NOT_REACHABLE", + "DISABLING", + "DISABLED", + "MIGRATING", + ] + stateDetails: str + +@typing.type_check_only +class ListActiveDirectoriesResponse(typing_extensions.TypedDict, total=False): + activeDirectories: _list[ActiveDirectory] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupPoliciesResponse(typing_extensions.TypedDict, total=False): + backupPolicies: _list[BackupPolicy] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupVaultsResponse(typing_extensions.TypedDict, total=False): + backupVaults: _list[BackupVault] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupsResponse(typing_extensions.TypedDict, total=False): + backups: _list[Backup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListKmsConfigsResponse(typing_extensions.TypedDict, total=False): + kmsConfigs: _list[KmsConfig] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class ListReplicationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + replications: _list[Replication] + unreachable: _list[str] + +@typing.type_check_only +class ListSnapshotsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + snapshots: _list[Snapshot] + unreachable: _list[str] + +@typing.type_check_only +class ListStoragePoolsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + storagePools: _list[StoragePool] + unreachable: _list[str] + +@typing.type_check_only +class ListVolumesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + unreachable: _list[str] + volumes: _list[Volume] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class LocationMetadata(typing_extensions.TypedDict, total=False): + supportedServiceLevels: _list[ + typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + ] + +@typing.type_check_only +class MonthlySchedule(typing_extensions.TypedDict, total=False): + daysOfMonth: str + hour: float + minute: float + snapshotsToKeep: float + +@typing.type_check_only +class MountOption(typing_extensions.TypedDict, total=False): + export: str + exportFull: str + instructions: str + ipAddress: str + protocol: typing_extensions.Literal[ + "PROTOCOLS_UNSPECIFIED", "NFSV3", "NFSV4", "SMB" + ] + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class Replication(typing_extensions.TypedDict, total=False): + clusterLocation: str + createTime: str + description: str + destinationVolume: str + destinationVolumeParameters: DestinationVolumeParameters + healthy: bool + hybridPeeringDetails: HybridPeeringDetails + hybridReplicationType: typing_extensions.Literal[ + "HYBRID_REPLICATION_TYPE_UNSPECIFIED", "MIGRATION", "CONTINUOUS_REPLICATION" + ] + labels: dict[str, typing.Any] + mirrorState: typing_extensions.Literal[ + "MIRROR_STATE_UNSPECIFIED", + "PREPARING", + "MIRRORED", + "STOPPED", + "TRANSFERRING", + "BASELINE_TRANSFERRING", + "ABORTED", + ] + name: str + replicationSchedule: typing_extensions.Literal[ + "REPLICATION_SCHEDULE_UNSPECIFIED", "EVERY_10_MINUTES", "HOURLY", "DAILY" + ] + role: typing_extensions.Literal[ + "REPLICATION_ROLE_UNSPECIFIED", "SOURCE", "DESTINATION" + ] + sourceVolume: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "READY", + "UPDATING", + "DELETING", + "ERROR", + "PENDING_CLUSTER_PEERING", + "PENDING_SVM_PEERING", + ] + stateDetails: str + transferStats: TransferStats + +@typing.type_check_only +class RestoreParameters(typing_extensions.TypedDict, total=False): + sourceBackup: str + sourceSnapshot: str + +@typing.type_check_only +class ResumeReplicationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ReverseReplicationDirectionRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class RevertVolumeRequest(typing_extensions.TypedDict, total=False): + snapshotId: str + +@typing.type_check_only +class SimpleExportPolicyRule(typing_extensions.TypedDict, total=False): + accessType: typing_extensions.Literal[ + "ACCESS_TYPE_UNSPECIFIED", "READ_ONLY", "READ_WRITE", "READ_NONE" + ] + allowedClients: str + hasRootAccess: str + kerberos5ReadOnly: bool + kerberos5ReadWrite: bool + kerberos5iReadOnly: bool + kerberos5iReadWrite: bool + kerberos5pReadOnly: bool + kerberos5pReadWrite: bool + nfsv3: bool + nfsv4: bool + +@typing.type_check_only +class Snapshot(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "DISABLED", + "ERROR", + ] + stateDetails: str + usedBytes: float + +@typing.type_check_only +class SnapshotPolicy(typing_extensions.TypedDict, total=False): + dailySchedule: DailySchedule + enabled: bool + hourlySchedule: HourlySchedule + monthlySchedule: MonthlySchedule + weeklySchedule: WeeklySchedule + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str + +@typing.type_check_only +class StopReplicationRequest(typing_extensions.TypedDict, total=False): + force: bool + +@typing.type_check_only +class StoragePool(typing_extensions.TypedDict, total=False): + activeDirectory: str + allowAutoTiering: bool + capacityGib: str + createTime: str + description: str + encryptionType: typing_extensions.Literal[ + "ENCRYPTION_TYPE_UNSPECIFIED", "SERVICE_MANAGED", "CLOUD_KMS" + ] + globalAccessAllowed: bool + kmsConfig: str + labels: dict[str, typing.Any] + ldapEnabled: bool + name: str + network: str + psaRange: str + replicaZone: str + satisfiesPzi: bool + satisfiesPzs: bool + serviceLevel: typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "RESTORING", + "DISABLED", + "ERROR", + ] + stateDetails: str + volumeCapacityGib: str + volumeCount: int + zone: str + +@typing.type_check_only +class SwitchActiveReplicaZoneRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class SyncReplicationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class TieringPolicy(typing_extensions.TypedDict, total=False): + coolingThresholdDays: int + tierAction: typing_extensions.Literal[ + "TIER_ACTION_UNSPECIFIED", "ENABLED", "PAUSED" + ] + +@typing.type_check_only +class TransferStats(typing_extensions.TypedDict, total=False): + lagDuration: str + lastTransferBytes: str + lastTransferDuration: str + lastTransferEndTime: str + lastTransferError: str + totalTransferDuration: str + transferBytes: str + updateTime: str + +@typing.type_check_only +class ValidateDirectoryServiceRequest(typing_extensions.TypedDict, total=False): + directoryServiceType: typing_extensions.Literal[ + "DIRECTORY_SERVICE_TYPE_UNSPECIFIED", "ACTIVE_DIRECTORY" + ] + +@typing.type_check_only +class VerifyKmsConfigRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class VerifyKmsConfigResponse(typing_extensions.TypedDict, total=False): + healthError: str + healthy: bool + instructions: str + +@typing.type_check_only +class Volume(typing_extensions.TypedDict, total=False): + activeDirectory: str + backupConfig: BackupConfig + capacityGib: str + coldTierSizeGib: str + createTime: str + description: str + encryptionType: typing_extensions.Literal[ + "ENCRYPTION_TYPE_UNSPECIFIED", "SERVICE_MANAGED", "CLOUD_KMS" + ] + exportPolicy: ExportPolicy + hasReplication: bool + hybridReplicationParameters: HybridReplicationParameters + kerberosEnabled: bool + kmsConfig: str + labels: dict[str, typing.Any] + largeCapacity: bool + ldapEnabled: bool + mountOptions: _list[MountOption] + multipleEndpoints: bool + name: str + network: str + protocols: _list[ + typing_extensions.Literal["PROTOCOLS_UNSPECIFIED", "NFSV3", "NFSV4", "SMB"] + ] + psaRange: str + replicaZone: str + restoreParameters: RestoreParameters + restrictedActions: _list[ + typing_extensions.Literal["RESTRICTED_ACTION_UNSPECIFIED", "DELETE"] + ] + securityStyle: typing_extensions.Literal[ + "SECURITY_STYLE_UNSPECIFIED", "NTFS", "UNIX" + ] + serviceLevel: typing_extensions.Literal[ + "SERVICE_LEVEL_UNSPECIFIED", "PREMIUM", "EXTREME", "STANDARD", "FLEX" + ] + shareName: str + smbSettings: _list[ + typing_extensions.Literal[ + "SMB_SETTINGS_UNSPECIFIED", + "ENCRYPT_DATA", + "BROWSABLE", + "CHANGE_NOTIFY", + "NON_BROWSABLE", + "OPLOCKS", + "SHOW_SNAPSHOT", + "SHOW_PREVIOUS_VERSIONS", + "ACCESS_BASED_ENUMERATION", + "CONTINUOUSLY_AVAILABLE", + ] + ] + snapReserve: float + snapshotDirectory: bool + snapshotPolicy: SnapshotPolicy + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "READY", + "CREATING", + "DELETING", + "UPDATING", + "RESTORING", + "DISABLED", + "ERROR", + "PREPARING", + "READ_ONLY", + ] + stateDetails: str + storagePool: str + tieringPolicy: TieringPolicy + unixPermissions: str + usedGib: str + zone: str + +@typing.type_check_only +class WeeklySchedule(typing_extensions.TypedDict, total=False): + day: str + hour: float + minute: float + snapshotsToKeep: float diff --git a/googleapiclient-stubs/_apis/networkconnectivity/v1/resources.pyi b/googleapiclient-stubs/_apis/networkconnectivity/v1/resources.pyi index b9c508a9..bae8507f 100644 --- a/googleapiclient-stubs/_apis/networkconnectivity/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkconnectivity/v1/resources.pyi @@ -187,6 +187,22 @@ class NetworkconnectivityResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def queryStatus( + self, + *, + name: str, + filter: str = ..., + groupBy: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> QueryHubStatusResponseHttpRequest: ... + def queryStatus_next( + self, + previous_request: QueryHubStatusResponseHttpRequest, + previous_response: QueryHubStatusResponse, + ) -> QueryHubStatusResponseHttpRequest | None: ... def rejectSpoke( self, *, @@ -902,6 +918,14 @@ class PolicyBasedRouteHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> PolicyBasedRoute: ... +@typing.type_check_only +class QueryHubStatusResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> QueryHubStatusResponse: ... + @typing.type_check_only class RegionalEndpointHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi index 3a746e80..b0148b39 100644 --- a/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi @@ -39,6 +39,7 @@ class Binding(typing_extensions.TypedDict, total=False): class ConsumerPscConfig(typing_extensions.TypedDict, total=False): consumerInstanceProject: str disableGlobalAccess: bool + ipVersion: typing_extensions.Literal["IP_VERSION_UNSPECIFIED", "IPV4", "IPV6"] network: str producerInstanceId: str producerInstanceMetadata: dict[str, typing.Any] @@ -65,6 +66,7 @@ class ConsumerPscConnection(typing_extensions.TypedDict, total=False): forwardingRule: str gceOperation: str ip: str + ipVersion: typing_extensions.Literal["IP_VERSION_UNSPECIFIED", "IPV4", "IPV6"] network: str producerInstanceId: str producerInstanceMetadata: dict[str, typing.Any] @@ -73,7 +75,13 @@ class ConsumerPscConnection(typing_extensions.TypedDict, total=False): selectedSubnetwork: str serviceAttachmentUri: str state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "ACTIVE", "FAILED", "CREATING", "DELETING" + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "CREATING", + "DELETING", + "CREATE_REPAIRING", + "DELETE_REPAIRING", ] @typing.type_check_only @@ -173,6 +181,12 @@ class Hub(typing_extensions.TypedDict, total=False): uniqueId: str updateTime: str +@typing.type_check_only +class HubStatusEntry(typing_extensions.TypedDict, total=False): + count: int + groupBy: str + pscPropagationStatus: PscPropagationStatus + @typing.type_check_only class InterconnectAttachment(typing_extensions.TypedDict, total=False): region: str @@ -211,6 +225,15 @@ class LinkedInterconnectAttachments(typing_extensions.TypedDict, total=False): uris: _list[str] vpcNetwork: str +@typing.type_check_only +class LinkedProducerVpcNetwork(typing_extensions.TypedDict, total=False): + excludeExportRanges: _list[str] + includeExportRanges: _list[str] + network: str + peering: str + producerNetwork: str + serviceConsumerVpcSpoke: str + @typing.type_check_only class LinkedRouterApplianceInstances(typing_extensions.TypedDict, total=False): includeImportRanges: _list[str] @@ -424,15 +447,45 @@ class PscConnection(typing_extensions.TypedDict, total=False): "ERROR_PRODUCER_SIDE", ] gceOperation: str + ipVersion: typing_extensions.Literal["IP_VERSION_UNSPECIFIED", "IPV4", "IPV6"] producerInstanceId: str producerInstanceMetadata: dict[str, typing.Any] pscConnectionId: str selectedSubnetwork: str serviceClass: str state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "ACTIVE", "FAILED", "CREATING", "DELETING" + "STATE_UNSPECIFIED", + "ACTIVE", + "FAILED", + "CREATING", + "DELETING", + "CREATE_REPAIRING", + "DELETE_REPAIRING", ] +@typing.type_check_only +class PscPropagationStatus(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "CODE_UNSPECIFIED", + "READY", + "PROPAGATING", + "ERROR_PRODUCER_PROPAGATED_CONNECTION_LIMIT_EXCEEDED", + "ERROR_PRODUCER_NAT_IP_SPACE_EXHAUSTED", + "ERROR_PRODUCER_QUOTA_EXCEEDED", + "ERROR_CONSUMER_QUOTA_EXCEEDED", + ] + message: str + sourceForwardingRule: str + sourceGroup: str + sourceSpoke: str + targetGroup: str + targetSpoke: str + +@typing.type_check_only +class QueryHubStatusResponse(typing_extensions.TypedDict, total=False): + hubStatusEntries: _list[HubStatusEntry] + nextPageToken: str + @typing.type_check_only class RegionalEndpoint(typing_extensions.TypedDict, total=False): accessType: typing_extensions.Literal[ @@ -589,6 +642,7 @@ class Spoke(typing_extensions.TypedDict, total=False): hub: str labels: dict[str, typing.Any] linkedInterconnectAttachments: LinkedInterconnectAttachments + linkedProducerVpcNetwork: LinkedProducerVpcNetwork linkedRouterApplianceInstances: LinkedRouterApplianceInstances linkedVpcNetwork: LinkedVpcNetwork linkedVpnTunnels: LinkedVpnTunnels @@ -600,6 +654,7 @@ class Spoke(typing_extensions.TypedDict, total=False): "INTERCONNECT_ATTACHMENT", "ROUTER_APPLIANCE", "VPC_NETWORK", + "PRODUCER_VPC_NETWORK", ] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -634,7 +689,14 @@ class SpokeStateCount(typing_extensions.TypedDict, total=False): class SpokeStateReasonCount(typing_extensions.TypedDict, total=False): count: str stateReasonCode: typing_extensions.Literal[ - "CODE_UNSPECIFIED", "PENDING_REVIEW", "REJECTED", "PAUSED", "FAILED" + "CODE_UNSPECIFIED", + "PENDING_REVIEW", + "REJECTED", + "PAUSED", + "FAILED", + "UPDATE_PENDING_REVIEW", + "UPDATE_REJECTED", + "UPDATE_FAILED", ] @typing.type_check_only @@ -652,12 +714,20 @@ class SpokeTypeCount(typing_extensions.TypedDict, total=False): "INTERCONNECT_ATTACHMENT", "ROUTER_APPLIANCE", "VPC_NETWORK", + "PRODUCER_VPC_NETWORK", ] @typing.type_check_only class StateReason(typing_extensions.TypedDict, total=False): code: typing_extensions.Literal[ - "CODE_UNSPECIFIED", "PENDING_REVIEW", "REJECTED", "PAUSED", "FAILED" + "CODE_UNSPECIFIED", + "PENDING_REVIEW", + "REJECTED", + "PAUSED", + "FAILED", + "UPDATE_PENDING_REVIEW", + "UPDATE_REJECTED", + "UPDATE_FAILED", ] message: str userDetails: str diff --git a/googleapiclient-stubs/_apis/networkconnectivity/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/networkconnectivity/v1alpha1/schemas.pyi index 182169de..e231390f 100644 --- a/googleapiclient-stubs/_apis/networkconnectivity/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkconnectivity/v1alpha1/schemas.pyi @@ -73,6 +73,7 @@ class Hub(typing_extensions.TypedDict, total=False): class InternalRange(typing_extensions.TypedDict, total=False): createTime: str description: str + immutable: bool ipCidrRange: str labels: dict[str, typing.Any] migration: Migration diff --git a/googleapiclient-stubs/_apis/networkmanagement/v1/resources.pyi b/googleapiclient-stubs/_apis/networkmanagement/v1/resources.pyi index 448b3ac9..8d34e6f1 100644 --- a/googleapiclient-stubs/_apis/networkmanagement/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkmanagement/v1/resources.pyi @@ -120,6 +120,46 @@ class NetworkManagementResource(googleapiclient.discovery.Resource): def connectivityTests(self) -> ConnectivityTestsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class VpcFlowLogsConfigsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: VpcFlowLogsConfig = ..., + vpcFlowLogsConfigId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> VpcFlowLogsConfigHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListVpcFlowLogsConfigsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListVpcFlowLogsConfigsResponseHttpRequest, + previous_response: ListVpcFlowLogsConfigsResponse, + ) -> ListVpcFlowLogsConfigsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: VpcFlowLogsConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( self, *, name: str, **kwargs: typing.Any ) -> LocationHttpRequest: ... @@ -138,6 +178,7 @@ class NetworkManagementResource(googleapiclient.discovery.Resource): previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... def global_(self) -> GlobalResource: ... + def vpcFlowLogsConfigs(self) -> VpcFlowLogsConfigsResource: ... def locations(self) -> LocationsResource: ... @@ -195,6 +236,14 @@ class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListOperationsResponse: ... +@typing.type_check_only +class ListVpcFlowLogsConfigsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListVpcFlowLogsConfigsResponse: ... + @typing.type_check_only class LocationHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -226,3 +275,11 @@ class TestIamPermissionsResponseHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> TestIamPermissionsResponse: ... + +@typing.type_check_only +class VpcFlowLogsConfigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> VpcFlowLogsConfig: ... diff --git a/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi index 0c1ccb04..70b8b33e 100644 --- a/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi @@ -22,6 +22,7 @@ class AbortInfo(typing_extensions.TypedDict, total=False): "PERMISSION_DENIED", "PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS", "PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS", + "PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS", "NO_SOURCE_LOCATION", "INVALID_ARGUMENT", "TRACE_TOO_LONG", @@ -123,6 +124,8 @@ class ConnectivityTest(typing_extensions.TypedDict, total=False): protocol: str reachabilityDetails: ReachabilityDetails relatedProjects: _list[str] + returnReachabilityDetails: ReachabilityDetails + roundTrip: bool source: Endpoint updateTime: str @@ -238,6 +241,8 @@ class DropInfo(typing_extensions.TypedDict, total=False): "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION", + "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED", ] destinationIp: str region: str @@ -265,6 +270,7 @@ class Endpoint(typing_extensions.TypedDict, total=False): "VPN_GATEWAY", "PSC", ] + fqdn: str gkeMasterCluster: str instance: str ipAddress: str @@ -288,6 +294,8 @@ class Endpoint(typing_extensions.TypedDict, total=False): ] port: int projectId: str + redisCluster: str + redisInstance: str @typing.type_check_only class EndpointInfo(typing_extensions.TypedDict, total=False): @@ -322,6 +330,7 @@ class FirewallInfo(typing_extensions.TypedDict, total=False): "NETWORK_REGIONAL_FIREWALL_POLICY_RULE", "UNSUPPORTED_FIREWALL_POLICY_RULE", "TRACKING_STATE", + "ANALYSIS_SKIPPED", ] networkUri: str policy: str @@ -366,6 +375,7 @@ class ForwardingRuleInfo(typing_extensions.TypedDict, total=False): class GKEMasterInfo(typing_extensions.TypedDict, total=False): clusterNetworkUri: str clusterUri: str + dnsEndpoint: str externalIp: str internalIp: str @@ -419,6 +429,12 @@ class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str operations: _list[Operation] +@typing.type_check_only +class ListVpcFlowLogsConfigsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + unreachable: _list[str] + vpcFlowLogsConfigs: _list[VpcFlowLogsConfig] + @typing.type_check_only class LoadBalancerBackend(typing_extensions.TypedDict, total=False): displayName: str @@ -600,10 +616,12 @@ class RouteInfo(typing_extensions.TypedDict, total=False): destPortRanges: _list[str] displayName: str instanceTags: _list[str] + nccHubRouteUri: str nccHubUri: str nccSpokeUri: str networkUri: str nextHop: str + nextHopNetworkUri: str nextHopType: typing_extensions.Literal[ "NEXT_HOP_TYPE_UNSPECIFIED", "NEXT_HOP_IP", @@ -619,6 +637,9 @@ class RouteInfo(typing_extensions.TypedDict, total=False): "NEXT_HOP_ROUTER_APPLIANCE", "NEXT_HOP_NCC_HUB", ] + nextHopUri: str + originatingRouteDisplayName: str + originatingRouteUri: str priority: int protocols: _list[str] region: str @@ -634,6 +655,7 @@ class RouteInfo(typing_extensions.TypedDict, total=False): "PEERING_STATIC", "PEERING_DYNAMIC", "POLICY_BASED", + "ADVERTISED", ] srcIpRange: str srcPortRanges: _list[str] @@ -747,6 +769,40 @@ class VpcConnectorInfo(typing_extensions.TypedDict, total=False): location: str uri: str +@typing.type_check_only +class VpcFlowLogsConfig(typing_extensions.TypedDict, total=False): + aggregationInterval: typing_extensions.Literal[ + "AGGREGATION_INTERVAL_UNSPECIFIED", + "INTERVAL_5_SEC", + "INTERVAL_30_SEC", + "INTERVAL_1_MIN", + "INTERVAL_5_MIN", + "INTERVAL_10_MIN", + "INTERVAL_15_MIN", + ] + createTime: str + description: str + filterExpr: str + flowSampling: float + interconnectAttachment: str + labels: dict[str, typing.Any] + metadata: typing_extensions.Literal[ + "METADATA_UNSPECIFIED", + "INCLUDE_ALL_METADATA", + "EXCLUDE_ALL_METADATA", + "CUSTOM_METADATA", + ] + metadataFields: _list[str] + name: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ENABLED", "DISABLED"] + targetResourceState: typing_extensions.Literal[ + "TARGET_RESOURCE_STATE_UNSPECIFIED", + "TARGET_RESOURCE_EXISTS", + "TARGET_RESOURCE_DOES_NOT_EXIST", + ] + updateTime: str + vpnTunnel: str + @typing.type_check_only class VpnGatewayInfo(typing_extensions.TypedDict, total=False): displayName: str diff --git a/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi index f77e5a3f..9dd30004 100644 --- a/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi @@ -22,6 +22,7 @@ class AbortInfo(typing_extensions.TypedDict, total=False): "PERMISSION_DENIED", "PERMISSION_DENIED_NO_CLOUD_NAT_CONFIGS", "PERMISSION_DENIED_NO_NEG_ENDPOINT_CONFIGS", + "PERMISSION_DENIED_NO_CLOUD_ROUTER_CONFIGS", "NO_SOURCE_LOCATION", "INVALID_ARGUMENT", "TRACE_TOO_LONG", @@ -98,7 +99,6 @@ class CloudRunRevisionEndpoint(typing_extensions.TypedDict, total=False): class CloudRunRevisionInfo(typing_extensions.TypedDict, total=False): displayName: str location: str - serviceName: str serviceUri: str uri: str @@ -124,6 +124,8 @@ class ConnectivityTest(typing_extensions.TypedDict, total=False): protocol: str reachabilityDetails: ReachabilityDetails relatedProjects: _list[str] + returnReachabilityDetails: ReachabilityDetails + roundTrip: bool source: Endpoint updateTime: str @@ -239,6 +241,8 @@ class DropInfo(typing_extensions.TypedDict, total=False): "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION", + "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED", ] destinationIp: str region: str @@ -254,6 +258,7 @@ class Empty(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class Endpoint(typing_extensions.TypedDict, total=False): + alloyDbInstance: str appEngineVersion: AppEngineVersionEndpoint cloudFunction: CloudFunctionEndpoint cloudRunRevision: CloudRunRevisionEndpoint @@ -266,6 +271,7 @@ class Endpoint(typing_extensions.TypedDict, total=False): "VPN_GATEWAY", "PSC", ] + fqdn: str gkeMasterCluster: str instance: str ipAddress: str @@ -325,6 +331,7 @@ class FirewallInfo(typing_extensions.TypedDict, total=False): "NETWORK_REGIONAL_FIREWALL_POLICY_RULE", "UNSUPPORTED_FIREWALL_POLICY_RULE", "TRACKING_STATE", + "ANALYSIS_SKIPPED", ] networkUri: str policy: str @@ -369,6 +376,7 @@ class ForwardingRuleInfo(typing_extensions.TypedDict, total=False): class GKEMasterInfo(typing_extensions.TypedDict, total=False): clusterNetworkUri: str clusterUri: str + dnsEndpoint: str externalIp: str internalIp: str @@ -609,10 +617,12 @@ class RouteInfo(typing_extensions.TypedDict, total=False): destPortRanges: _list[str] displayName: str instanceTags: _list[str] + nccHubRouteUri: str nccHubUri: str nccSpokeUri: str networkUri: str nextHop: str + nextHopNetworkUri: str nextHopType: typing_extensions.Literal[ "NEXT_HOP_TYPE_UNSPECIFIED", "NEXT_HOP_IP", @@ -628,6 +638,9 @@ class RouteInfo(typing_extensions.TypedDict, total=False): "NEXT_HOP_ROUTER_APPLIANCE", "NEXT_HOP_NCC_HUB", ] + nextHopUri: str + originatingRouteDisplayName: str + originatingRouteUri: str priority: int protocols: _list[str] region: str @@ -643,6 +656,7 @@ class RouteInfo(typing_extensions.TypedDict, total=False): "PEERING_STATIC", "PEERING_DYNAMIC", "POLICY_BASED", + "ADVERTISED", ] srcIpRange: str srcPortRanges: _list[str] @@ -782,6 +796,11 @@ class VpcFlowLogsConfig(typing_extensions.TypedDict, total=False): metadataFields: _list[str] name: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "ENABLED", "DISABLED"] + targetResourceState: typing_extensions.Literal[ + "TARGET_RESOURCE_STATE_UNSPECIFIED", + "TARGET_RESOURCE_EXISTS", + "TARGET_RESOURCE_DOES_NOT_EXIST", + ] updateTime: str vpnTunnel: str diff --git a/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi b/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi index 061b223e..6b246956 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi @@ -407,6 +407,21 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): @typing.type_check_only class AuthzPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: AuthzPolicy = ..., + authzPolicyId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AuthzPolicyHttpRequest: ... def getIamPolicy( self, *, @@ -414,6 +429,30 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): options_requestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> GoogleIamV1PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuthzPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuthzPoliciesResponseHttpRequest, + previous_response: ListAuthzPoliciesResponse, + ) -> ListAuthzPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: AuthzPolicy = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def setIamPolicy( self, *, @@ -837,6 +876,14 @@ class AuthorizationPolicyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> AuthorizationPolicy: ... +@typing.type_check_only +class AuthzPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AuthzPolicy: ... + @typing.type_check_only class ClientTlsPolicyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -927,6 +974,14 @@ class ListAuthorizationPoliciesResponseHttpRequest(googleapiclient.http.HttpRequ num_retries: int = 0, ) -> ListAuthorizationPoliciesResponse: ... +@typing.type_check_only +class ListAuthzPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAuthzPoliciesResponse: ... + @typing.type_check_only class ListClientTlsPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi b/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi index 8075e5fd..d8884205 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi @@ -34,6 +34,107 @@ class AuthorizationPolicy(typing_extensions.TypedDict, total=False): rules: _list[Rule] updateTime: str +@typing.type_check_only +class AuthzPolicy(typing_extensions.TypedDict, total=False): + action: typing_extensions.Literal[ + "AUTHZ_ACTION_UNSPECIFIED", "ALLOW", "DENY", "CUSTOM" + ] + createTime: str + customProvider: AuthzPolicyCustomProvider + description: str + httpRules: _list[AuthzPolicyAuthzRule] + labels: dict[str, typing.Any] + name: str + target: AuthzPolicyTarget + updateTime: str + +AlternativeAuthzPolicyAuthzRule = typing_extensions.TypedDict( + "AlternativeAuthzPolicyAuthzRule", + { + "from": AuthzPolicyAuthzRuleFrom, + "to": AuthzPolicyAuthzRuleTo, + "when": str, + }, + total=False, +) + +@typing.type_check_only +class AuthzPolicyAuthzRule(AlternativeAuthzPolicyAuthzRule): ... + +@typing.type_check_only +class AuthzPolicyAuthzRuleFrom(typing_extensions.TypedDict, total=False): + notSources: _list[AuthzPolicyAuthzRuleFromRequestSource] + sources: _list[AuthzPolicyAuthzRuleFromRequestSource] + +@typing.type_check_only +class AuthzPolicyAuthzRuleFromRequestSource(typing_extensions.TypedDict, total=False): + principals: _list[AuthzPolicyAuthzRuleStringMatch] + resources: _list[AuthzPolicyAuthzRuleRequestResource] + +@typing.type_check_only +class AuthzPolicyAuthzRuleHeaderMatch(typing_extensions.TypedDict, total=False): + name: str + value: AuthzPolicyAuthzRuleStringMatch + +@typing.type_check_only +class AuthzPolicyAuthzRuleRequestResource(typing_extensions.TypedDict, total=False): + iamServiceAccount: AuthzPolicyAuthzRuleStringMatch + tagValueIdSet: AuthzPolicyAuthzRuleRequestResourceTagValueIdSet + +@typing.type_check_only +class AuthzPolicyAuthzRuleRequestResourceTagValueIdSet( + typing_extensions.TypedDict, total=False +): + ids: _list[str] + +@typing.type_check_only +class AuthzPolicyAuthzRuleStringMatch(typing_extensions.TypedDict, total=False): + contains: str + exact: str + ignoreCase: bool + prefix: str + suffix: str + +@typing.type_check_only +class AuthzPolicyAuthzRuleTo(typing_extensions.TypedDict, total=False): + notOperations: _list[AuthzPolicyAuthzRuleToRequestOperation] + operations: _list[AuthzPolicyAuthzRuleToRequestOperation] + +@typing.type_check_only +class AuthzPolicyAuthzRuleToRequestOperation(typing_extensions.TypedDict, total=False): + headerSet: AuthzPolicyAuthzRuleToRequestOperationHeaderSet + hosts: _list[AuthzPolicyAuthzRuleStringMatch] + methods: _list[str] + paths: _list[AuthzPolicyAuthzRuleStringMatch] + +@typing.type_check_only +class AuthzPolicyAuthzRuleToRequestOperationHeaderSet( + typing_extensions.TypedDict, total=False +): + headers: _list[AuthzPolicyAuthzRuleHeaderMatch] + +@typing.type_check_only +class AuthzPolicyCustomProvider(typing_extensions.TypedDict, total=False): + authzExtension: AuthzPolicyCustomProviderAuthzExtension + cloudIap: AuthzPolicyCustomProviderCloudIap + +@typing.type_check_only +class AuthzPolicyCustomProviderAuthzExtension(typing_extensions.TypedDict, total=False): + resources: _list[str] + +@typing.type_check_only +class AuthzPolicyCustomProviderCloudIap(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class AuthzPolicyTarget(typing_extensions.TypedDict, total=False): + loadBalancingScheme: typing_extensions.Literal[ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED", + "INTERNAL_SELF_MANAGED", + ] + resources: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -57,6 +158,14 @@ class CloneAddressGroupItemsRequest(typing_extensions.TypedDict, total=False): requestId: str sourceAddressGroup: str +@typing.type_check_only +class CustomInterceptProfile(typing_extensions.TypedDict, total=False): + interceptEndpointGroup: str + +@typing.type_check_only +class CustomMirroringProfile(typing_extensions.TypedDict, total=False): + mirroringEndpointGroup: str + @typing.type_check_only class Destination(typing_extensions.TypedDict, total=False): hosts: _list[str] @@ -213,6 +322,12 @@ class ListAuthorizationPoliciesResponse(typing_extensions.TypedDict, total=False authorizationPolicies: _list[AuthorizationPolicy] nextPageToken: str +@typing.type_check_only +class ListAuthzPoliciesResponse(typing_extensions.TypedDict, total=False): + authzPolicies: _list[AuthzPolicy] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListClientTlsPoliciesResponse(typing_extensions.TypedDict, total=False): clientTlsPolicies: _list[ClientTlsPolicy] @@ -330,17 +445,26 @@ class Rule(typing_extensions.TypedDict, total=False): @typing.type_check_only class SecurityProfile(typing_extensions.TypedDict, total=False): createTime: str + customInterceptProfile: CustomInterceptProfile + customMirroringProfile: CustomMirroringProfile description: str etag: str labels: dict[str, typing.Any] name: str threatPreventionProfile: ThreatPreventionProfile - type: typing_extensions.Literal["PROFILE_TYPE_UNSPECIFIED", "THREAT_PREVENTION"] + type: typing_extensions.Literal[ + "PROFILE_TYPE_UNSPECIFIED", + "THREAT_PREVENTION", + "CUSTOM_MIRRORING", + "CUSTOM_INTERCEPT", + ] updateTime: str @typing.type_check_only class SecurityProfileGroup(typing_extensions.TypedDict, total=False): createTime: str + customInterceptProfile: str + customMirroringProfile: str description: str etag: str labels: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi index ae770bdf..cf094e87 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi @@ -648,6 +648,178 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): ) -> OperationHttpRequest: ... def rules(self) -> RulesResource: ... + @typing.type_check_only + class InterceptDeploymentGroupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: InterceptDeploymentGroup = ..., + interceptDeploymentGroupId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InterceptDeploymentGroupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInterceptDeploymentGroupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInterceptDeploymentGroupsResponseHttpRequest, + previous_response: ListInterceptDeploymentGroupsResponse, + ) -> ListInterceptDeploymentGroupsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: InterceptDeploymentGroup = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class InterceptDeploymentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: InterceptDeployment = ..., + interceptDeploymentId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InterceptDeploymentHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInterceptDeploymentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInterceptDeploymentsResponseHttpRequest, + previous_response: ListInterceptDeploymentsResponse, + ) -> ListInterceptDeploymentsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: InterceptDeployment = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class InterceptEndpointGroupAssociationsResource( + googleapiclient.discovery.Resource + ): + def create( + self, + *, + parent: str, + body: InterceptEndpointGroupAssociation = ..., + interceptEndpointGroupAssociationId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InterceptEndpointGroupAssociationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInterceptEndpointGroupAssociationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInterceptEndpointGroupAssociationsResponseHttpRequest, + previous_response: ListInterceptEndpointGroupAssociationsResponse, + ) -> ( + ListInterceptEndpointGroupAssociationsResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: InterceptEndpointGroupAssociation = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class InterceptEndpointGroupsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: InterceptEndpointGroup = ..., + interceptEndpointGroupId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InterceptEndpointGroupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInterceptEndpointGroupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInterceptEndpointGroupsResponseHttpRequest, + previous_response: ListInterceptEndpointGroupsResponse, + ) -> ListInterceptEndpointGroupsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: InterceptEndpointGroup = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class MirroringDeploymentGroupsResource(googleapiclient.discovery.Resource): def create( @@ -1010,6 +1182,14 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): self, ) -> FirewallEndpointAssociationsResource: ... def gatewaySecurityPolicies(self) -> GatewaySecurityPoliciesResource: ... + def interceptDeploymentGroups( + self, + ) -> InterceptDeploymentGroupsResource: ... + def interceptDeployments(self) -> InterceptDeploymentsResource: ... + def interceptEndpointGroupAssociations( + self, + ) -> InterceptEndpointGroupAssociationsResource: ... + def interceptEndpointGroups(self) -> InterceptEndpointGroupsResource: ... def mirroringDeploymentGroups( self, ) -> MirroringDeploymentGroupsResource: ... @@ -1130,6 +1310,38 @@ class GoogleIamV1TestIamPermissionsResponseHttpRequest( num_retries: int = 0, ) -> GoogleIamV1TestIamPermissionsResponse: ... +@typing.type_check_only +class InterceptDeploymentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterceptDeployment: ... + +@typing.type_check_only +class InterceptDeploymentGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterceptDeploymentGroup: ... + +@typing.type_check_only +class InterceptEndpointGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterceptEndpointGroup: ... + +@typing.type_check_only +class InterceptEndpointGroupAssociationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InterceptEndpointGroupAssociation: ... + @typing.type_check_only class ListAddressGroupReferencesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -1206,6 +1418,42 @@ class ListGatewaySecurityPolicyRulesResponseHttpRequest( num_retries: int = 0, ) -> ListGatewaySecurityPolicyRulesResponse: ... +@typing.type_check_only +class ListInterceptDeploymentGroupsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInterceptDeploymentGroupsResponse: ... + +@typing.type_check_only +class ListInterceptDeploymentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInterceptDeploymentsResponse: ... + +@typing.type_check_only +class ListInterceptEndpointGroupAssociationsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInterceptEndpointGroupAssociationsResponse: ... + +@typing.type_check_only +class ListInterceptEndpointGroupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInterceptEndpointGroupsResponse: ... + @typing.type_check_only class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi index 174c801b..5fdb29d1 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi @@ -158,6 +158,14 @@ class CloneAddressGroupItemsRequest(typing_extensions.TypedDict, total=False): requestId: str sourceAddressGroup: str +@typing.type_check_only +class CustomInterceptProfile(typing_extensions.TypedDict, total=False): + interceptEndpointGroup: str + +@typing.type_check_only +class CustomMirroringProfile(typing_extensions.TypedDict, total=False): + mirroringEndpointGroup: str + @typing.type_check_only class Destination(typing_extensions.TypedDict, total=False): hosts: _list[str] @@ -289,6 +297,108 @@ class HttpHeaderMatch(typing_extensions.TypedDict, total=False): headerName: str regexMatch: str +@typing.type_check_only +class InterceptDeployment(typing_extensions.TypedDict, total=False): + createTime: str + description: str + forwardingRule: str + interceptDeploymentGroup: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "OUT_OF_SYNC", + "DELETE_FAILED", + ] + updateTime: str + +@typing.type_check_only +class InterceptDeploymentGroup(typing_extensions.TypedDict, total=False): + connectedEndpointGroups: _list[InterceptDeploymentGroupConnectedEndpointGroup] + createTime: str + description: str + labels: dict[str, typing.Any] + name: str + network: str + reconciling: bool + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "ACTIVE", "CREATING", "DELETING" + ] + updateTime: str + +@typing.type_check_only +class InterceptDeploymentGroupConnectedEndpointGroup( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class InterceptEndpointGroup(typing_extensions.TypedDict, total=False): + associations: _list[InterceptEndpointGroupAssociationDetails] + createTime: str + description: str + interceptDeploymentGroup: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CLOSED", + "CREATING", + "DELETING", + "OUT_OF_SYNC", + "DELETE_FAILED", + ] + updateTime: str + +@typing.type_check_only +class InterceptEndpointGroupAssociation(typing_extensions.TypedDict, total=False): + createTime: str + interceptEndpointGroup: str + labels: dict[str, typing.Any] + locationsDetails: _list[InterceptEndpointGroupAssociationLocationDetails] + name: str + network: str + reconciling: bool + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "CLOSED", + "OUT_OF_SYNC", + "DELETE_FAILED", + ] + updateTime: str + +@typing.type_check_only +class InterceptEndpointGroupAssociationDetails( + typing_extensions.TypedDict, total=False +): + name: str + network: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CREATING", + "DELETING", + "CLOSED", + "OUT_OF_SYNC", + "DELETE_FAILED", + ] + +@typing.type_check_only +class InterceptEndpointGroupAssociationLocationDetails( + typing_extensions.TypedDict, total=False +): + location: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "OUT_OF_SYNC"] + @typing.type_check_only class ListAddressGroupReferencesResponse(typing_extensions.TypedDict, total=False): addressGroupReferences: _list[ @@ -351,6 +461,29 @@ class ListGatewaySecurityPolicyRulesResponse(typing_extensions.TypedDict, total= nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ListInterceptDeploymentGroupsResponse(typing_extensions.TypedDict, total=False): + interceptDeploymentGroups: _list[InterceptDeploymentGroup] + nextPageToken: str + +@typing.type_check_only +class ListInterceptDeploymentsResponse(typing_extensions.TypedDict, total=False): + interceptDeployments: _list[InterceptDeployment] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListInterceptEndpointGroupAssociationsResponse( + typing_extensions.TypedDict, total=False +): + interceptEndpointGroupAssociations: _list[InterceptEndpointGroupAssociation] + nextPageToken: str + +@typing.type_check_only +class ListInterceptEndpointGroupsResponse(typing_extensions.TypedDict, total=False): + interceptEndpointGroups: _list[InterceptEndpointGroup] + nextPageToken: str + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] @@ -542,17 +675,26 @@ class Rule(typing_extensions.TypedDict, total=False): @typing.type_check_only class SecurityProfile(typing_extensions.TypedDict, total=False): createTime: str + customInterceptProfile: CustomInterceptProfile + customMirroringProfile: CustomMirroringProfile description: str etag: str labels: dict[str, typing.Any] name: str threatPreventionProfile: ThreatPreventionProfile - type: typing_extensions.Literal["PROFILE_TYPE_UNSPECIFIED", "THREAT_PREVENTION"] + type: typing_extensions.Literal[ + "PROFILE_TYPE_UNSPECIFIED", + "THREAT_PREVENTION", + "CUSTOM_MIRRORING", + "CUSTOM_INTERCEPT", + ] updateTime: str @typing.type_check_only class SecurityProfileGroup(typing_extensions.TypedDict, total=False): createTime: str + customInterceptProfile: str + customMirroringProfile: str description: str etag: str labels: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi b/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi index 8a2fa65c..731bbbd4 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi @@ -17,6 +17,48 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AuthzExtensionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: AuthzExtension = ..., + authzExtensionId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AuthzExtensionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuthzExtensionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuthzExtensionsResponseHttpRequest, + previous_response: ListAuthzExtensionsResponse, + ) -> ListAuthzExtensionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: AuthzExtension = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class EdgeCacheKeysetsResource(googleapiclient.discovery.Resource): def getIamPolicy( @@ -129,6 +171,25 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): @typing.type_check_only class GatewaysResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class RouteViewsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GatewayRouteViewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListGatewayRouteViewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListGatewayRouteViewsResponseHttpRequest, + previous_response: ListGatewayRouteViewsResponse, + ) -> ListGatewayRouteViewsResponseHttpRequest | None: ... + def create( self, *, @@ -164,6 +225,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def routeViews(self) -> RouteViewsResource: ... @typing.type_check_only class GrpcRoutesResource(googleapiclient.discovery.Resource): @@ -327,6 +389,25 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): @typing.type_check_only class MeshesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class RouteViewsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MeshRouteViewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMeshRouteViewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMeshRouteViewsResponseHttpRequest, + previous_response: ListMeshRouteViewsResponse, + ) -> ListMeshRouteViewsResponseHttpRequest | None: ... + def create( self, *, @@ -362,6 +443,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def routeViews(self) -> RouteViewsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -439,13 +521,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> ServiceLbPolicyHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -467,20 +542,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class TcpRoutesResource(googleapiclient.discovery.Resource): @@ -558,6 +619,83 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class WasmPluginsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class VersionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: WasmPluginVersion = ..., + wasmPluginVersionId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> WasmPluginVersionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListWasmPluginVersionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListWasmPluginVersionsResponseHttpRequest, + previous_response: ListWasmPluginVersionsResponse, + ) -> ListWasmPluginVersionsResponseHttpRequest | None: ... + + def create( + self, + *, + parent: str, + body: WasmPlugin = ..., + wasmPluginId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, + *, + name: str, + view: typing_extensions.Literal[ + "WASM_PLUGIN_VIEW_UNSPECIFIED", + "WASM_PLUGIN_VIEW_BASIC", + "WASM_PLUGIN_VIEW_FULL", + ] = ..., + **kwargs: typing.Any, + ) -> WasmPluginHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListWasmPluginsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListWasmPluginsResponseHttpRequest, + previous_response: ListWasmPluginsResponse, + ) -> ListWasmPluginsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: WasmPlugin = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def versions(self) -> VersionsResource: ... + def get( self, *, name: str, **kwargs: typing.Any ) -> LocationHttpRequest: ... @@ -575,6 +713,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def authzExtensions(self) -> AuthzExtensionsResource: ... def edgeCacheKeysets(self) -> EdgeCacheKeysetsResource: ... def edgeCacheOrigins(self) -> EdgeCacheOriginsResource: ... def edgeCacheServices(self) -> EdgeCacheServicesResource: ... @@ -590,6 +729,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def serviceLbPolicies(self) -> ServiceLbPoliciesResource: ... def tcpRoutes(self) -> TcpRoutesResource: ... def tlsRoutes(self) -> TlsRoutesResource: ... + def wasmPlugins(self) -> WasmPluginsResource: ... def locations(self) -> LocationsResource: ... @@ -607,6 +747,14 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class AuthzExtensionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AuthzExtension: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -631,6 +779,14 @@ class GatewayHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Gateway: ... +@typing.type_check_only +class GatewayRouteViewHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GatewayRouteView: ... + @typing.type_check_only class GrpcRouteHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -663,6 +819,14 @@ class LbTrafficExtensionHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> LbTrafficExtension: ... +@typing.type_check_only +class ListAuthzExtensionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAuthzExtensionsResponse: ... + @typing.type_check_only class ListEndpointPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -671,6 +835,14 @@ class ListEndpointPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListEndpointPoliciesResponse: ... +@typing.type_check_only +class ListGatewayRouteViewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListGatewayRouteViewsResponse: ... + @typing.type_check_only class ListGatewaysResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -719,6 +891,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMeshRouteViewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMeshRouteViewsResponse: ... + @typing.type_check_only class ListMeshesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -767,6 +947,22 @@ class ListTlsRoutesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListTlsRoutesResponse: ... +@typing.type_check_only +class ListWasmPluginVersionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListWasmPluginVersionsResponse: ... + +@typing.type_check_only +class ListWasmPluginsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListWasmPluginsResponse: ... + @typing.type_check_only class LocationHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -783,6 +979,14 @@ class MeshHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Mesh: ... +@typing.type_check_only +class MeshRouteViewHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MeshRouteView: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -838,3 +1042,19 @@ class TlsRouteHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> TlsRoute: ... + +@typing.type_check_only +class WasmPluginHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WasmPlugin: ... + +@typing.type_check_only +class WasmPluginVersionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WasmPluginVersion: ... diff --git a/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi index 9ef2d088..6c376dfd 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi @@ -16,6 +16,24 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class AuthzExtension(typing_extensions.TypedDict, total=False): + authority: str + createTime: str + description: str + failOpen: bool + forwardHeaders: _list[str] + labels: dict[str, typing.Any] + loadBalancingScheme: typing_extensions.Literal[ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" + ] + metadata: dict[str, typing.Any] + name: str + service: str + timeout: str + updateTime: str + wireFormat: typing_extensions.Literal["WIRE_FORMAT_UNSPECIFIED", "EXT_PROC_GRPC"] + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr @@ -80,6 +98,7 @@ class ExtensionChainExtension(typing_extensions.TypedDict, total=False): authority: str failOpen: bool forwardHeaders: _list[str] + metadata: dict[str, typing.Any] name: str service: str supportedEvents: _list[ @@ -126,6 +145,14 @@ class Gateway(typing_extensions.TypedDict, total=False): ] updateTime: str +@typing.type_check_only +class GatewayRouteView(typing_extensions.TypedDict, total=False): + name: str + routeId: str + routeLocation: str + routeProjectNumber: str + routeType: str + @typing.type_check_only class GrpcRoute(typing_extensions.TypedDict, total=False): createTime: str @@ -376,11 +403,22 @@ class LbTrafficExtension(typing_extensions.TypedDict, total=False): name: str updateTime: str +@typing.type_check_only +class ListAuthzExtensionsResponse(typing_extensions.TypedDict, total=False): + authzExtensions: _list[AuthzExtension] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListEndpointPoliciesResponse(typing_extensions.TypedDict, total=False): endpointPolicies: _list[EndpointPolicy] nextPageToken: str +@typing.type_check_only +class ListGatewayRouteViewsResponse(typing_extensions.TypedDict, total=False): + gatewayRouteViews: _list[GatewayRouteView] + nextPageToken: str + @typing.type_check_only class ListGatewaysResponse(typing_extensions.TypedDict, total=False): gateways: _list[Gateway] @@ -414,6 +452,11 @@ class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMeshRouteViewsResponse(typing_extensions.TypedDict, total=False): + meshRouteViews: _list[MeshRouteView] + nextPageToken: str + @typing.type_check_only class ListMeshesResponse(typing_extensions.TypedDict, total=False): meshes: _list[Mesh] @@ -444,6 +487,16 @@ class ListTlsRoutesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str tlsRoutes: _list[TlsRoute] +@typing.type_check_only +class ListWasmPluginVersionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + wasmPluginVersions: _list[WasmPluginVersion] + +@typing.type_check_only +class ListWasmPluginsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + wasmPlugins: _list[WasmPlugin] + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -480,6 +533,14 @@ class Mesh(typing_extensions.TypedDict, total=False): selfLink: str updateTime: str +@typing.type_check_only +class MeshRouteView(typing_extensions.TypedDict, total=False): + name: str + routeId: str + routeLocation: str + routeProjectNumber: str + routeType: str + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -631,3 +692,52 @@ class TlsRouteRouteRule(typing_extensions.TypedDict, total=False): @typing.type_check_only class TrafficPortSelector(typing_extensions.TypedDict, total=False): ports: _list[str] + +@typing.type_check_only +class WasmPlugin(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + logConfig: WasmPluginLogConfig + mainVersionId: str + name: str + updateTime: str + usedBy: _list[WasmPluginUsedBy] + versions: dict[str, typing.Any] + +@typing.type_check_only +class WasmPluginLogConfig(typing_extensions.TypedDict, total=False): + enable: bool + minLogLevel: typing_extensions.Literal[ + "LOG_LEVEL_UNSPECIFIED", "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL" + ] + sampleRate: float + +@typing.type_check_only +class WasmPluginUsedBy(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class WasmPluginVersion(typing_extensions.TypedDict, total=False): + createTime: str + description: str + imageDigest: str + imageUri: str + labels: dict[str, typing.Any] + name: str + pluginConfigData: str + pluginConfigDigest: str + pluginConfigUri: str + updateTime: str + +@typing.type_check_only +class WasmPluginVersionDetails(typing_extensions.TypedDict, total=False): + createTime: str + description: str + imageDigest: str + imageUri: str + labels: dict[str, typing.Any] + pluginConfigData: str + pluginConfigDigest: str + pluginConfigUri: str + updateTime: str diff --git a/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi index fce4fa9e..2ea92ca6 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi @@ -99,6 +99,25 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): @typing.type_check_only class GatewaysResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class RouteViewsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GatewayRouteViewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListGatewayRouteViewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListGatewayRouteViewsResponseHttpRequest, + previous_response: ListGatewayRouteViewsResponse, + ) -> ListGatewayRouteViewsResponseHttpRequest | None: ... + def create( self, *, @@ -134,6 +153,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def routeViews(self) -> RouteViewsResource: ... @typing.type_check_only class GrpcRoutesResource(googleapiclient.discovery.Resource): @@ -297,6 +317,25 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): @typing.type_check_only class MeshesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class RouteViewsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MeshRouteViewHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMeshRouteViewsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMeshRouteViewsResponseHttpRequest, + previous_response: ListMeshRouteViewsResponse, + ) -> ListMeshRouteViewsResponseHttpRequest | None: ... + def create( self, *, @@ -332,6 +371,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def routeViews(self) -> RouteViewsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -409,13 +449,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> ServiceLbPolicyHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -437,20 +470,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class TcpRoutesResource(googleapiclient.discovery.Resource): @@ -528,6 +547,83 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class WasmPluginsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class VersionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: WasmPluginVersion = ..., + wasmPluginVersionId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> WasmPluginVersionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListWasmPluginVersionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListWasmPluginVersionsResponseHttpRequest, + previous_response: ListWasmPluginVersionsResponse, + ) -> ListWasmPluginVersionsResponseHttpRequest | None: ... + + def create( + self, + *, + parent: str, + body: WasmPlugin = ..., + wasmPluginId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, + *, + name: str, + view: typing_extensions.Literal[ + "WASM_PLUGIN_VIEW_UNSPECIFIED", + "WASM_PLUGIN_VIEW_BASIC", + "WASM_PLUGIN_VIEW_FULL", + ] = ..., + **kwargs: typing.Any, + ) -> WasmPluginHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListWasmPluginsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListWasmPluginsResponseHttpRequest, + previous_response: ListWasmPluginsResponse, + ) -> ListWasmPluginsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: WasmPlugin = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def versions(self) -> VersionsResource: ... + def get( self, *, name: str, **kwargs: typing.Any ) -> LocationHttpRequest: ... @@ -558,6 +654,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def serviceLbPolicies(self) -> ServiceLbPoliciesResource: ... def tcpRoutes(self) -> TcpRoutesResource: ... def tlsRoutes(self) -> TlsRoutesResource: ... + def wasmPlugins(self) -> WasmPluginsResource: ... def locations(self) -> LocationsResource: ... @@ -607,6 +704,14 @@ class GatewayHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Gateway: ... +@typing.type_check_only +class GatewayRouteViewHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GatewayRouteView: ... + @typing.type_check_only class GrpcRouteHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -655,6 +760,14 @@ class ListEndpointPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListEndpointPoliciesResponse: ... +@typing.type_check_only +class ListGatewayRouteViewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListGatewayRouteViewsResponse: ... + @typing.type_check_only class ListGatewaysResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -703,6 +816,14 @@ class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListLocationsResponse: ... +@typing.type_check_only +class ListMeshRouteViewsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMeshRouteViewsResponse: ... + @typing.type_check_only class ListMeshesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -751,6 +872,22 @@ class ListTlsRoutesResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListTlsRoutesResponse: ... +@typing.type_check_only +class ListWasmPluginVersionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListWasmPluginVersionsResponse: ... + +@typing.type_check_only +class ListWasmPluginsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListWasmPluginsResponse: ... + @typing.type_check_only class LocationHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -768,20 +905,20 @@ class MeshHttpRequest(googleapiclient.http.HttpRequest): ) -> Mesh: ... @typing.type_check_only -class OperationHttpRequest(googleapiclient.http.HttpRequest): +class MeshRouteViewHttpRequest(googleapiclient.http.HttpRequest): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> Operation: ... + ) -> MeshRouteView: ... @typing.type_check_only -class PolicyHttpRequest(googleapiclient.http.HttpRequest): +class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> Policy: ... + ) -> Operation: ... @typing.type_check_only class ServiceBindingHttpRequest(googleapiclient.http.HttpRequest): @@ -808,17 +945,25 @@ class TcpRouteHttpRequest(googleapiclient.http.HttpRequest): ) -> TcpRoute: ... @typing.type_check_only -class TestIamPermissionsResponseHttpRequest(googleapiclient.http.HttpRequest): +class TlsRouteHttpRequest(googleapiclient.http.HttpRequest): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> TestIamPermissionsResponse: ... + ) -> TlsRoute: ... @typing.type_check_only -class TlsRouteHttpRequest(googleapiclient.http.HttpRequest): +class WasmPluginHttpRequest(googleapiclient.http.HttpRequest): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> TlsRoute: ... + ) -> WasmPlugin: ... + +@typing.type_check_only +class WasmPluginVersionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WasmPluginVersion: ... diff --git a/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi index 15354d87..d57e5b32 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi @@ -4,18 +4,6 @@ import typing_extensions _list = list -@typing.type_check_only -class AuditConfig(typing_extensions.TypedDict, total=False): - auditLogConfigs: _list[AuditLogConfig] - service: str - -@typing.type_check_only -class AuditLogConfig(typing_extensions.TypedDict, total=False): - exemptedMembers: _list[str] - logType: typing_extensions.Literal[ - "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" - ] - @typing.type_check_only class AuthzExtension(typing_extensions.TypedDict, total=False): authority: str @@ -34,12 +22,6 @@ class AuthzExtension(typing_extensions.TypedDict, total=False): updateTime: str wireFormat: typing_extensions.Literal["WIRE_FORMAT_UNSPECIFIED", "EXT_PROC_GRPC"] -@typing.type_check_only -class Binding(typing_extensions.TypedDict, total=False): - condition: Expr - members: _list[str] - role: str - @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -66,13 +48,6 @@ class EndpointPolicy(typing_extensions.TypedDict, total=False): ] updateTime: str -@typing.type_check_only -class Expr(typing_extensions.TypedDict, total=False): - description: str - expression: str - location: str - title: str - @typing.type_check_only class ExtensionChain(typing_extensions.TypedDict, total=False): extensions: _list[ExtensionChainExtension] @@ -84,6 +59,7 @@ class ExtensionChainExtension(typing_extensions.TypedDict, total=False): authority: str failOpen: bool forwardHeaders: _list[str] + metadata: dict[str, typing.Any] name: str service: str supportedEvents: _list[ @@ -130,6 +106,14 @@ class Gateway(typing_extensions.TypedDict, total=False): ] updateTime: str +@typing.type_check_only +class GatewayRouteView(typing_extensions.TypedDict, total=False): + name: str + routeId: str + routeLocation: str + routeProjectNumber: str + routeType: str + @typing.type_check_only class GrpcRoute(typing_extensions.TypedDict, total=False): createTime: str @@ -391,6 +375,11 @@ class ListEndpointPoliciesResponse(typing_extensions.TypedDict, total=False): endpointPolicies: _list[EndpointPolicy] nextPageToken: str +@typing.type_check_only +class ListGatewayRouteViewsResponse(typing_extensions.TypedDict, total=False): + gatewayRouteViews: _list[GatewayRouteView] + nextPageToken: str + @typing.type_check_only class ListGatewaysResponse(typing_extensions.TypedDict, total=False): gateways: _list[Gateway] @@ -424,6 +413,11 @@ class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] nextPageToken: str +@typing.type_check_only +class ListMeshRouteViewsResponse(typing_extensions.TypedDict, total=False): + meshRouteViews: _list[MeshRouteView] + nextPageToken: str + @typing.type_check_only class ListMeshesResponse(typing_extensions.TypedDict, total=False): meshes: _list[Mesh] @@ -454,6 +448,16 @@ class ListTlsRoutesResponse(typing_extensions.TypedDict, total=False): nextPageToken: str tlsRoutes: _list[TlsRoute] +@typing.type_check_only +class ListWasmPluginVersionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + wasmPluginVersions: _list[WasmPluginVersion] + +@typing.type_check_only +class ListWasmPluginsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + wasmPlugins: _list[WasmPlugin] + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -490,6 +494,14 @@ class Mesh(typing_extensions.TypedDict, total=False): selfLink: str updateTime: str +@typing.type_check_only +class MeshRouteView(typing_extensions.TypedDict, total=False): + name: str + routeId: str + routeLocation: str + routeProjectNumber: str + routeType: str + @typing.type_check_only class MetadataLabelMatcher(typing_extensions.TypedDict, total=False): metadataLabelMatchCriteria: typing_extensions.Literal[ @@ -520,13 +532,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class Policy(typing_extensions.TypedDict, total=False): - auditConfigs: _list[AuditConfig] - bindings: _list[Binding] - etag: str - version: int - @typing.type_check_only class RetryFilterPerRouteConfig(typing_extensions.TypedDict, total=False): cryptoKeyName: str @@ -566,11 +571,6 @@ class ServiceLbPolicyAutoCapacityDrain(typing_extensions.TypedDict, total=False) class ServiceLbPolicyFailoverConfig(typing_extensions.TypedDict, total=False): failoverHealthThreshold: int -@typing.type_check_only -class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): - policy: Policy - updateMask: str - @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -610,14 +610,6 @@ class TcpRouteRouteRule(typing_extensions.TypedDict, total=False): action: TcpRouteRouteAction matches: _list[TcpRouteRouteMatch] -@typing.type_check_only -class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): - permissions: _list[str] - -@typing.type_check_only -class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): - permissions: _list[str] - @typing.type_check_only class TlsRoute(typing_extensions.TypedDict, total=False): createTime: str @@ -653,3 +645,52 @@ class TlsRouteRouteRule(typing_extensions.TypedDict, total=False): @typing.type_check_only class TrafficPortSelector(typing_extensions.TypedDict, total=False): ports: _list[str] + +@typing.type_check_only +class WasmPlugin(typing_extensions.TypedDict, total=False): + createTime: str + description: str + labels: dict[str, typing.Any] + logConfig: WasmPluginLogConfig + mainVersionId: str + name: str + updateTime: str + usedBy: _list[WasmPluginUsedBy] + versions: dict[str, typing.Any] + +@typing.type_check_only +class WasmPluginLogConfig(typing_extensions.TypedDict, total=False): + enable: bool + minLogLevel: typing_extensions.Literal[ + "LOG_LEVEL_UNSPECIFIED", "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "CRITICAL" + ] + sampleRate: float + +@typing.type_check_only +class WasmPluginUsedBy(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class WasmPluginVersion(typing_extensions.TypedDict, total=False): + createTime: str + description: str + imageDigest: str + imageUri: str + labels: dict[str, typing.Any] + name: str + pluginConfigData: str + pluginConfigDigest: str + pluginConfigUri: str + updateTime: str + +@typing.type_check_only +class WasmPluginVersionDetails(typing_extensions.TypedDict, total=False): + createTime: str + description: str + imageDigest: str + imageUri: str + labels: dict[str, typing.Any] + pluginConfigData: str + pluginConfigDigest: str + pluginConfigUri: str + updateTime: str diff --git a/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi b/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi index f3585aa6..9a3408f8 100644 --- a/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi @@ -16,6 +16,8 @@ class AcceleratorConfig(typing_extensions.TypedDict, total=False): "NVIDIA_TESLA_A100", "NVIDIA_A100_80GB", "NVIDIA_L4", + "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "NVIDIA_TESLA_T4_VWS", "NVIDIA_TESLA_P100_VWS", "NVIDIA_TESLA_P4_VWS", @@ -147,6 +149,7 @@ class Instance(typing_extensions.TypedDict, total=False): createTime: str creator: str disableProxyAccess: bool + enableThirdPartyIdentity: bool gceSetup: GceSetup healthInfo: dict[str, typing.Any] healthState: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/oracledatabase/v1/schemas.pyi b/googleapiclient-stubs/_apis/oracledatabase/v1/schemas.pyi index 78065faa..d151323e 100644 --- a/googleapiclient-stubs/_apis/oracledatabase/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/oracledatabase/v1/schemas.pyi @@ -495,7 +495,11 @@ class Entitlement(typing_extensions.TypedDict, total=False): entitlementId: str name: str state: typing_extensions.Literal[ - "STATE_UNSPECIFIED", "ACCOUNT_NOT_LINKED", "ACCOUNT_NOT_ACTIVE", "ACTIVE" + "STATE_UNSPECIFIED", + "ACCOUNT_NOT_LINKED", + "ACCOUNT_NOT_ACTIVE", + "ACTIVE", + "ACCOUNT_SUSPENDED", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/orgpolicy/v2/schemas.pyi b/googleapiclient-stubs/_apis/orgpolicy/v2/schemas.pyi index a2065d9b..3d3f5aa3 100644 --- a/googleapiclient-stubs/_apis/orgpolicy/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/orgpolicy/v2/schemas.pyi @@ -22,11 +22,52 @@ class GoogleCloudOrgpolicyV2Constraint(typing_extensions.TypedDict, total=False) listConstraint: GoogleCloudOrgpolicyV2ConstraintListConstraint name: str supportsDryRun: bool + supportsSimulation: bool @typing.type_check_only class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint( typing_extensions.TypedDict, total=False -): ... +): + customConstraintDefinition: ( + GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition + ) + +@typing.type_check_only +class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition( + typing_extensions.TypedDict, total=False +): + actionType: typing_extensions.Literal["ACTION_TYPE_UNSPECIFIED", "ALLOW", "DENY"] + condition: str + methodTypes: _list[ + typing_extensions.Literal[ + "METHOD_TYPE_UNSPECIFIED", + "CREATE", + "UPDATE", + "DELETE", + "REMOVE_GRANT", + "GOVERN_TAGS", + ] + ] + parameters: dict[str, typing.Any] + resourceTypes: _list[str] + +@typing.type_check_only +class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter( + typing_extensions.TypedDict, total=False +): + defaultValue: typing.Any + item: typing_extensions.Literal["TYPE_UNSPECIFIED", "LIST", "STRING", "BOOLEAN"] + metadata: ( + GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata + ) + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "LIST", "STRING", "BOOLEAN"] + validValuesExpr: str + +@typing.type_check_only +class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata( + typing_extensions.TypedDict, total=False +): + description: str @typing.type_check_only class GoogleCloudOrgpolicyV2ConstraintListConstraint( @@ -100,6 +141,7 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule( condition: GoogleTypeExpr denyAll: bool enforce: bool + parameters: dict[str, typing.Any] values: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/osconfig/v1/schemas.pyi b/googleapiclient-stubs/_apis/osconfig/v1/schemas.pyi index 4df3f21b..9a7aa6ee 100644 --- a/googleapiclient-stubs/_apis/osconfig/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/osconfig/v1/schemas.pyi @@ -122,6 +122,18 @@ class GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata( ] rolloutUpdateTime: str +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class Inventory(typing_extensions.TypedDict, total=False): items: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/osconfig/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/osconfig/v1alpha/schemas.pyi index 987a5982..b6e186ed 100644 --- a/googleapiclient-stubs/_apis/osconfig/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/osconfig/v1alpha/schemas.pyi @@ -80,6 +80,18 @@ class GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata( ] rolloutUpdateTime: str +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class InstanceOSPoliciesCompliance(typing_extensions.TypedDict, total=False): detailedState: str diff --git a/googleapiclient-stubs/_apis/osconfig/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/osconfig/v1beta/schemas.pyi index a2d58b95..9f032f13 100644 --- a/googleapiclient-stubs/_apis/osconfig/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/osconfig/v1beta/schemas.pyi @@ -128,6 +128,18 @@ class GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata( ] rolloutUpdateTime: str +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class GuestPolicy(typing_extensions.TypedDict, total=False): assignment: Assignment diff --git a/googleapiclient-stubs/_apis/osconfig/v2beta/__init__.pyi b/googleapiclient-stubs/_apis/osconfig/v2beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/osconfig/v2beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/osconfig/v2beta/resources.pyi b/googleapiclient-stubs/_apis/osconfig/v2beta/resources.pyi new file mode 100644 index 00000000..75851680 --- /dev/null +++ b/googleapiclient-stubs/_apis/osconfig/v2beta/resources.pyi @@ -0,0 +1,350 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class OSConfigResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FoldersResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class GlobalResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PolicyOrchestratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + policyOrchestratorId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + etag: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudOsconfigV2beta__PolicyOrchestratorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest, + previous_response: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, + ) -> ( + GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def policyOrchestrators(self) -> PolicyOrchestratorsResource: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def global_(self) -> GlobalResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class GlobalResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PolicyOrchestratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + policyOrchestratorId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + etag: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudOsconfigV2beta__PolicyOrchestratorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest, + previous_response: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, + ) -> ( + GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def policyOrchestrators(self) -> PolicyOrchestratorsResource: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def global_(self) -> GlobalResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class GlobalResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PolicyOrchestratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + policyOrchestratorId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + etag: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudOsconfigV2beta__PolicyOrchestratorHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest, + previous_response: GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse, + ) -> ( + GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudOsconfigV2beta__PolicyOrchestrator = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def policyOrchestrators(self) -> PolicyOrchestratorsResource: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def global_(self) -> GlobalResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def folders(self) -> FoldersResource: ... + def organizations(self) -> OrganizationsResource: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse: ... + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__PolicyOrchestratorHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudOsconfigV2beta__PolicyOrchestrator: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/osconfig/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/osconfig/v2beta/schemas.pyi new file mode 100644 index 00000000..02fd415e --- /dev/null +++ b/googleapiclient-stubs/_apis/osconfig/v2beta/schemas.pyi @@ -0,0 +1,363 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FixedOrPercent(typing_extensions.TypedDict, total=False): + fixed: int + percent: int + +@typing.type_check_only +class GoogleCloudOsconfigV1__OSPolicyAssignmentOperationMetadata( + typing_extensions.TypedDict, total=False +): + apiMethod: typing_extensions.Literal[ + "API_METHOD_UNSPECIFIED", "CREATE", "UPDATE", "DELETE" + ] + osPolicyAssignment: str + rolloutStartTime: str + rolloutState: typing_extensions.Literal[ + "ROLLOUT_STATE_UNSPECIFIED", + "IN_PROGRESS", + "CANCELLING", + "CANCELLED", + "SUCCEEDED", + ] + rolloutUpdateTime: str + +@typing.type_check_only +class GoogleCloudOsconfigV2beta_OrchestrationScope_LocationSelector( + typing_extensions.TypedDict, total=False +): + includedLocations: _list[str] + +@typing.type_check_only +class GoogleCloudOsconfigV2beta_OrchestrationScope_ResourceHierarchySelector( + typing_extensions.TypedDict, total=False +): + includedFolders: _list[str] + includedProjects: _list[str] + +@typing.type_check_only +class GoogleCloudOsconfigV2beta_OrchestrationScope_Selector( + typing_extensions.TypedDict, total=False +): + locationSelector: GoogleCloudOsconfigV2beta_OrchestrationScope_LocationSelector + resourceHierarchySelector: ( + GoogleCloudOsconfigV2beta_OrchestrationScope_ResourceHierarchySelector + ) + +@typing.type_check_only +class GoogleCloudOsconfigV2beta_PolicyOrchestrator_IterationState( + typing_extensions.TypedDict, total=False +): + error: Status + failedActions: str + finishTime: str + performedActions: str + progress: float + rolloutResource: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED", "UNKNOWN" + ] + +@typing.type_check_only +class GoogleCloudOsconfigV2beta_PolicyOrchestrator_OrchestrationState( + typing_extensions.TypedDict, total=False +): + currentIterationState: GoogleCloudOsconfigV2beta_PolicyOrchestrator_IterationState + previousIterationState: GoogleCloudOsconfigV2beta_PolicyOrchestrator_IterationState + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__ListPolicyOrchestratorsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + policyOrchestrators: _list[GoogleCloudOsconfigV2beta__PolicyOrchestrator] + unreachable: _list[str] + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OperationMetadata( + typing_extensions.TypedDict, total=False +): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OrchestratedResource( + typing_extensions.TypedDict, total=False +): + id: str + osPolicyAssignmentV1Payload: OSPolicyAssignment + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__OrchestrationScope( + typing_extensions.TypedDict, total=False +): + selectors: _list[GoogleCloudOsconfigV2beta_OrchestrationScope_Selector] + +@typing.type_check_only +class GoogleCloudOsconfigV2beta__PolicyOrchestrator( + typing_extensions.TypedDict, total=False +): + action: str + createTime: str + description: str + etag: str + labels: dict[str, typing.Any] + name: str + orchestratedResource: GoogleCloudOsconfigV2beta__OrchestratedResource + orchestrationScope: GoogleCloudOsconfigV2beta__OrchestrationScope + orchestrationState: GoogleCloudOsconfigV2beta_PolicyOrchestrator_OrchestrationState + reconciling: bool + state: str + updateTime: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class OSPolicy(typing_extensions.TypedDict, total=False): + allowNoResourceGroupMatch: bool + description: str + id: str + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "VALIDATION", "ENFORCEMENT"] + resourceGroups: _list[OSPolicyResourceGroup] + +@typing.type_check_only +class OSPolicyAssignment(typing_extensions.TypedDict, total=False): + baseline: bool + deleted: bool + description: str + etag: str + instanceFilter: OSPolicyAssignmentInstanceFilter + name: str + osPolicies: _list[OSPolicy] + reconciling: bool + revisionCreateTime: str + revisionId: str + rollout: OSPolicyAssignmentRollout + rolloutState: typing_extensions.Literal[ + "ROLLOUT_STATE_UNSPECIFIED", + "IN_PROGRESS", + "CANCELLING", + "CANCELLED", + "SUCCEEDED", + ] + uid: str + +@typing.type_check_only +class OSPolicyAssignmentInstanceFilter(typing_extensions.TypedDict, total=False): + all: bool + exclusionLabels: _list[OSPolicyAssignmentLabelSet] + inclusionLabels: _list[OSPolicyAssignmentLabelSet] + inventories: _list[OSPolicyAssignmentInstanceFilterInventory] + +@typing.type_check_only +class OSPolicyAssignmentInstanceFilterInventory( + typing_extensions.TypedDict, total=False +): + osShortName: str + osVersion: str + +@typing.type_check_only +class OSPolicyAssignmentLabelSet(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + +@typing.type_check_only +class OSPolicyAssignmentOperationMetadata(typing_extensions.TypedDict, total=False): + apiMethod: typing_extensions.Literal[ + "API_METHOD_UNSPECIFIED", "CREATE", "UPDATE", "DELETE" + ] + osPolicyAssignment: str + rolloutStartTime: str + rolloutState: typing_extensions.Literal[ + "ROLLOUT_STATE_UNSPECIFIED", + "IN_PROGRESS", + "CANCELLING", + "CANCELLED", + "SUCCEEDED", + ] + rolloutUpdateTime: str + +@typing.type_check_only +class OSPolicyAssignmentRollout(typing_extensions.TypedDict, total=False): + disruptionBudget: FixedOrPercent + minWaitDuration: str + +@typing.type_check_only +class OSPolicyInventoryFilter(typing_extensions.TypedDict, total=False): + osShortName: str + osVersion: str + +@typing.type_check_only +class OSPolicyResource(typing_extensions.TypedDict, total=False): + exec: OSPolicyResourceExecResource + file: OSPolicyResourceFileResource + id: str + pkg: OSPolicyResourcePackageResource + repository: OSPolicyResourceRepositoryResource + +@typing.type_check_only +class OSPolicyResourceExecResource(typing_extensions.TypedDict, total=False): + enforce: OSPolicyResourceExecResourceExec + validate: OSPolicyResourceExecResourceExec + +@typing.type_check_only +class OSPolicyResourceExecResourceExec(typing_extensions.TypedDict, total=False): + args: _list[str] + file: OSPolicyResourceFile + interpreter: typing_extensions.Literal[ + "INTERPRETER_UNSPECIFIED", "NONE", "SHELL", "POWERSHELL" + ] + outputFilePath: str + script: str + +@typing.type_check_only +class OSPolicyResourceFile(typing_extensions.TypedDict, total=False): + allowInsecure: bool + gcs: OSPolicyResourceFileGcs + localPath: str + remote: OSPolicyResourceFileRemote + +@typing.type_check_only +class OSPolicyResourceFileGcs(typing_extensions.TypedDict, total=False): + bucket: str + generation: str + object: str + +@typing.type_check_only +class OSPolicyResourceFileRemote(typing_extensions.TypedDict, total=False): + sha256Checksum: str + uri: str + +@typing.type_check_only +class OSPolicyResourceFileResource(typing_extensions.TypedDict, total=False): + content: str + file: OSPolicyResourceFile + path: str + permissions: str + state: typing_extensions.Literal[ + "DESIRED_STATE_UNSPECIFIED", "PRESENT", "ABSENT", "CONTENTS_MATCH" + ] + +@typing.type_check_only +class OSPolicyResourceGroup(typing_extensions.TypedDict, total=False): + inventoryFilters: _list[OSPolicyInventoryFilter] + resources: _list[OSPolicyResource] + +@typing.type_check_only +class OSPolicyResourcePackageResource(typing_extensions.TypedDict, total=False): + apt: OSPolicyResourcePackageResourceAPT + deb: OSPolicyResourcePackageResourceDeb + desiredState: typing_extensions.Literal[ + "DESIRED_STATE_UNSPECIFIED", "INSTALLED", "REMOVED" + ] + googet: OSPolicyResourcePackageResourceGooGet + msi: OSPolicyResourcePackageResourceMSI + rpm: OSPolicyResourcePackageResourceRPM + yum: OSPolicyResourcePackageResourceYUM + zypper: OSPolicyResourcePackageResourceZypper + +@typing.type_check_only +class OSPolicyResourcePackageResourceAPT(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class OSPolicyResourcePackageResourceDeb(typing_extensions.TypedDict, total=False): + pullDeps: bool + source: OSPolicyResourceFile + +@typing.type_check_only +class OSPolicyResourcePackageResourceGooGet(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class OSPolicyResourcePackageResourceMSI(typing_extensions.TypedDict, total=False): + properties: _list[str] + source: OSPolicyResourceFile + +@typing.type_check_only +class OSPolicyResourcePackageResourceRPM(typing_extensions.TypedDict, total=False): + pullDeps: bool + source: OSPolicyResourceFile + +@typing.type_check_only +class OSPolicyResourcePackageResourceYUM(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class OSPolicyResourcePackageResourceZypper(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class OSPolicyResourceRepositoryResource(typing_extensions.TypedDict, total=False): + apt: OSPolicyResourceRepositoryResourceAptRepository + goo: OSPolicyResourceRepositoryResourceGooRepository + yum: OSPolicyResourceRepositoryResourceYumRepository + zypper: OSPolicyResourceRepositoryResourceZypperRepository + +@typing.type_check_only +class OSPolicyResourceRepositoryResourceAptRepository( + typing_extensions.TypedDict, total=False +): + archiveType: typing_extensions.Literal["ARCHIVE_TYPE_UNSPECIFIED", "DEB", "DEB_SRC"] + components: _list[str] + distribution: str + gpgKey: str + uri: str + +@typing.type_check_only +class OSPolicyResourceRepositoryResourceGooRepository( + typing_extensions.TypedDict, total=False +): + name: str + url: str + +@typing.type_check_only +class OSPolicyResourceRepositoryResourceYumRepository( + typing_extensions.TypedDict, total=False +): + baseUrl: str + displayName: str + gpgKeys: _list[str] + id: str + +@typing.type_check_only +class OSPolicyResourceRepositoryResourceZypperRepository( + typing_extensions.TypedDict, total=False +): + baseUrl: str + displayName: str + gpgKeys: _list[str] + id: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/parallelstore/__init__.pyi b/googleapiclient-stubs/_apis/parallelstore/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/parallelstore/v1/__init__.pyi b/googleapiclient-stubs/_apis/parallelstore/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/parallelstore/v1/resources.pyi b/googleapiclient-stubs/_apis/parallelstore/v1/resources.pyi new file mode 100644 index 00000000..cc007436 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1/resources.pyi @@ -0,0 +1,196 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class ParallelstoreResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class InstancesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Instance = ..., + instanceId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def exportData( + self, + *, + name: str, + body: ExportDataRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InstanceHttpRequest: ... + def importData( + self, + *, + name: str, + body: ImportDataRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInstancesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInstancesResponseHttpRequest, + previous_response: ListInstancesResponse, + ) -> ListInstancesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Instance = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def instances(self) -> InstancesResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleProtobufEmpty: ... + +@typing.type_check_only +class InstanceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Instance: ... + +@typing.type_check_only +class ListInstancesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInstancesResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/parallelstore/v1/schemas.pyi b/googleapiclient-stubs/_apis/parallelstore/v1/schemas.pyi new file mode 100644 index 00000000..39d8d0e6 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1/schemas.pyi @@ -0,0 +1,126 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DestinationGcsBucket(typing_extensions.TypedDict, total=False): + uri: str + +@typing.type_check_only +class DestinationParallelstore(typing_extensions.TypedDict, total=False): + path: str + +@typing.type_check_only +class ExportDataRequest(typing_extensions.TypedDict, total=False): + destinationGcsBucket: DestinationGcsBucket + requestId: str + serviceAccount: str + sourceParallelstore: SourceParallelstore + +@typing.type_check_only +class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ImportDataRequest(typing_extensions.TypedDict, total=False): + destinationParallelstore: DestinationParallelstore + requestId: str + serviceAccount: str + sourceGcsBucket: SourceGcsBucket + +@typing.type_check_only +class Instance(typing_extensions.TypedDict, total=False): + accessPoints: _list[str] + capacityGib: str + createTime: str + deploymentType: typing_extensions.Literal[ + "DEPLOYMENT_TYPE_UNSPECIFIED", "SCRATCH", "PERSISTENT" + ] + description: str + directoryStripeLevel: typing_extensions.Literal[ + "DIRECTORY_STRIPE_LEVEL_UNSPECIFIED", + "DIRECTORY_STRIPE_LEVEL_MIN", + "DIRECTORY_STRIPE_LEVEL_BALANCED", + "DIRECTORY_STRIPE_LEVEL_MAX", + ] + effectiveReservedIpRange: str + fileStripeLevel: typing_extensions.Literal[ + "FILE_STRIPE_LEVEL_UNSPECIFIED", + "FILE_STRIPE_LEVEL_MIN", + "FILE_STRIPE_LEVEL_BALANCED", + "FILE_STRIPE_LEVEL_MAX", + ] + labels: dict[str, typing.Any] + name: str + network: str + reservedIpRange: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "FAILED", + "UPGRADING", + "REPAIRING", + ] + updateTime: str + +@typing.type_check_only +class ListInstancesResponse(typing_extensions.TypedDict, total=False): + instances: _list[Instance] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class SourceGcsBucket(typing_extensions.TypedDict, total=False): + uri: str + +@typing.type_check_only +class SourceParallelstore(typing_extensions.TypedDict, total=False): + path: str + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/parallelstore/v1beta/__init__.pyi b/googleapiclient-stubs/_apis/parallelstore/v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/parallelstore/v1beta/resources.pyi b/googleapiclient-stubs/_apis/parallelstore/v1beta/resources.pyi new file mode 100644 index 00000000..1b4389b5 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1beta/resources.pyi @@ -0,0 +1,192 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class ParallelstoreResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class InstancesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Instance = ..., + instanceId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def exportData( + self, + *, + name: str, + body: ExportDataRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> InstanceHttpRequest: ... + def importData( + self, + *, + name: str, + body: ImportDataRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListInstancesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListInstancesResponseHttpRequest, + previous_response: ListInstancesResponse, + ) -> ListInstancesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Instance = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class OperationsResource(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 + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def instances(self) -> InstancesResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleProtobufEmpty: ... + +@typing.type_check_only +class InstanceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Instance: ... + +@typing.type_check_only +class ListInstancesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInstancesResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/parallelstore/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/parallelstore/v1beta/schemas.pyi new file mode 100644 index 00000000..18372397 --- /dev/null +++ b/googleapiclient-stubs/_apis/parallelstore/v1beta/schemas.pyi @@ -0,0 +1,123 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class DestinationGcsBucket(typing_extensions.TypedDict, total=False): + uri: str + +@typing.type_check_only +class DestinationParallelstore(typing_extensions.TypedDict, total=False): + path: str + +@typing.type_check_only +class ExportDataRequest(typing_extensions.TypedDict, total=False): + destinationGcsBucket: DestinationGcsBucket + requestId: str + serviceAccount: str + sourceParallelstore: SourceParallelstore + +@typing.type_check_only +class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ImportDataRequest(typing_extensions.TypedDict, total=False): + destinationParallelstore: DestinationParallelstore + requestId: str + serviceAccount: str + sourceGcsBucket: SourceGcsBucket + +@typing.type_check_only +class Instance(typing_extensions.TypedDict, total=False): + accessPoints: _list[str] + capacityGib: str + createTime: str + deploymentType: typing_extensions.Literal[ + "DEPLOYMENT_TYPE_UNSPECIFIED", "SCRATCH", "PERSISTENT" + ] + description: str + directoryStripeLevel: typing_extensions.Literal[ + "DIRECTORY_STRIPE_LEVEL_UNSPECIFIED", + "DIRECTORY_STRIPE_LEVEL_MIN", + "DIRECTORY_STRIPE_LEVEL_BALANCED", + "DIRECTORY_STRIPE_LEVEL_MAX", + ] + effectiveReservedIpRange: str + fileStripeLevel: typing_extensions.Literal[ + "FILE_STRIPE_LEVEL_UNSPECIFIED", + "FILE_STRIPE_LEVEL_MIN", + "FILE_STRIPE_LEVEL_BALANCED", + "FILE_STRIPE_LEVEL_MAX", + ] + labels: dict[str, typing.Any] + name: str + network: str + reservedIpRange: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "DELETING", + "FAILED", + "UPGRADING", + "REPAIRING", + ] + updateTime: str + +@typing.type_check_only +class ListInstancesResponse(typing_extensions.TypedDict, total=False): + instances: _list[Instance] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class SourceGcsBucket(typing_extensions.TypedDict, total=False): + uri: str + +@typing.type_check_only +class SourceParallelstore(typing_extensions.TypedDict, total=False): + path: str + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/resources.pyi b/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/resources.pyi index 0998e4db..6a711705 100644 --- a/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/resources.pyi @@ -122,9 +122,20 @@ class PaymentsResellerSubscriptionResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponseHttpRequest: ... + @typing.type_check_only + class UserSessionsResource(googleapiclient.discovery.Resource): + def generate( + self, + *, + parent: str, + body: GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponseHttpRequest: ... + def products(self) -> ProductsResource: ... def promotions(self) -> PromotionsResource: ... def subscriptions(self) -> SubscriptionsResource: ... + def userSessions(self) -> UserSessionsResource: ... def new_batch_http_request( self, @@ -180,6 +191,16 @@ class GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponseHtt num_retries: int = 0, ) -> GoogleCloudPaymentsResellerSubscriptionV1FindEligiblePromotionsResponse: ... +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse: ... + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/schemas.pyi b/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/schemas.pyi index 712f279b..8f36761d 100644 --- a/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/paymentsresellersubscription/v1/schemas.pyi @@ -36,6 +36,14 @@ class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionResponse( ): subscription: GoogleCloudPaymentsResellerSubscriptionV1Subscription +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent( + typing_extensions.TypedDict, total=False +): + parent: str + subscription: GoogleCloudPaymentsResellerSubscriptionV1Subscription + subscriptionId: str + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1Duration( typing_extensions.TypedDict, total=False @@ -43,6 +51,12 @@ class GoogleCloudPaymentsResellerSubscriptionV1Duration( count: int unit: typing_extensions.Literal["UNIT_UNSPECIFIED", "MONTH", "DAY", "HOUR"] +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent( + typing_extensions.TypedDict, total=False +): + name: str + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest( typing_extensions.TypedDict, total=False @@ -107,6 +121,18 @@ class GoogleCloudPaymentsResellerSubscriptionV1FiniteBillingCycleDetails( ): billingCycleCountLimit: str +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest( + typing_extensions.TypedDict, total=False +): + intentPayload: GoogleCloudPaymentsResellerSubscriptionV1IntentPayload + +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse( + typing_extensions.TypedDict, total=False +): + userSession: GoogleCloudPaymentsResellerSubscriptionV1UserSession + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload( typing_extensions.TypedDict, total=False @@ -128,6 +154,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload( ] storeId: str +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload( + typing_extensions.TypedDict, total=False +): + createIntent: GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent + entitleIntent: GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse( typing_extensions.TypedDict, total=False @@ -244,6 +277,9 @@ class GoogleCloudPaymentsResellerSubscriptionV1Subscription( endUserEntitled: bool freeTrialEndTime: str lineItems: _list[GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem] + migrationDetails: ( + GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails + ) name: str partnerUserToken: str processingState: typing_extensions.Literal[ @@ -339,6 +375,12 @@ class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurr ): servicePeriod: GoogleCloudPaymentsResellerSubscriptionV1ServicePeriod +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails( + typing_extensions.TypedDict, total=False +): + migratedSubscriptionId: str + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec( typing_extensions.TypedDict, total=False @@ -376,6 +418,13 @@ class GoogleCloudPaymentsResellerSubscriptionV1UndoCancelSubscriptionResponse( ): subscription: GoogleCloudPaymentsResellerSubscriptionV1Subscription +@typing.type_check_only +class GoogleCloudPaymentsResellerSubscriptionV1UserSession( + typing_extensions.TypedDict, total=False +): + expireTime: str + token: str + @typing.type_check_only class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/places/v1/schemas.pyi b/googleapiclient-stubs/_apis/places/v1/schemas.pyi index f96f42cb..4a4613b3 100644 --- a/googleapiclient-stubs/_apis/places/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/places/v1/schemas.pyi @@ -9,6 +9,40 @@ class GoogleGeoTypeViewport(typing_extensions.TypedDict, total=False): high: GoogleTypeLatLng low: GoogleTypeLatLng +@typing.type_check_only +class GoogleMapsPlacesV1AddressDescriptor(typing_extensions.TypedDict, total=False): + areas: _list[GoogleMapsPlacesV1AddressDescriptorArea] + landmarks: _list[GoogleMapsPlacesV1AddressDescriptorLandmark] + +@typing.type_check_only +class GoogleMapsPlacesV1AddressDescriptorArea(typing_extensions.TypedDict, total=False): + containment: typing_extensions.Literal[ + "CONTAINMENT_UNSPECIFIED", "WITHIN", "OUTSKIRTS", "NEAR" + ] + displayName: GoogleTypeLocalizedText + name: str + placeId: str + +@typing.type_check_only +class GoogleMapsPlacesV1AddressDescriptorLandmark( + typing_extensions.TypedDict, total=False +): + displayName: GoogleTypeLocalizedText + name: str + placeId: str + spatialRelationship: typing_extensions.Literal[ + "NEAR", + "WITHIN", + "BESIDE", + "ACROSS_THE_ROAD", + "DOWN_THE_ROAD", + "AROUND_THE_CORNER", + "BEHIND", + ] + straightLineDistanceMeters: float + travelDistanceMeters: float + types: _list[str] + @typing.type_check_only class GoogleMapsPlacesV1AuthorAttribution(typing_extensions.TypedDict, total=False): displayName: str @@ -19,6 +53,7 @@ class GoogleMapsPlacesV1AuthorAttribution(typing_extensions.TypedDict, total=Fal class GoogleMapsPlacesV1AutocompletePlacesRequest( typing_extensions.TypedDict, total=False ): + includePureServiceAreaBusinesses: bool includeQueryPredictions: bool includedPrimaryTypes: _list[str] includedRegionCodes: _list[str] @@ -199,6 +234,7 @@ class GoogleMapsPlacesV1FuelOptionsFuelPrice(typing_extensions.TypedDict, total= type: typing_extensions.Literal[ "FUEL_TYPE_UNSPECIFIED", "DIESEL", + "DIESEL_PLUS", "REGULAR_UNLEADED", "MIDGRADE", "PREMIUM", @@ -213,6 +249,7 @@ class GoogleMapsPlacesV1FuelOptionsFuelPrice(typing_extensions.TypedDict, total= "LPG", "E80", "E85", + "E100", "METHANE", "BIO_DIESEL", "TRUCK_DIESEL", @@ -222,6 +259,8 @@ class GoogleMapsPlacesV1FuelOptionsFuelPrice(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleMapsPlacesV1Photo(typing_extensions.TypedDict, total=False): authorAttributions: _list[GoogleMapsPlacesV1AuthorAttribution] + flagContentUri: str + googleMapsUri: str heightPx: int name: str widthPx: int @@ -235,6 +274,7 @@ class GoogleMapsPlacesV1PhotoMedia(typing_extensions.TypedDict, total=False): class GoogleMapsPlacesV1Place(typing_extensions.TypedDict, total=False): accessibilityOptions: GoogleMapsPlacesV1PlaceAccessibilityOptions addressComponents: _list[GoogleMapsPlacesV1PlaceAddressComponent] + addressDescriptor: GoogleMapsPlacesV1AddressDescriptor adrFormatAddress: str allowsDogs: bool areaSummary: GoogleMapsPlacesV1PlaceAreaSummary @@ -245,6 +285,7 @@ class GoogleMapsPlacesV1Place(typing_extensions.TypedDict, total=False): "CLOSED_TEMPORARILY", "CLOSED_PERMANENTLY", ] + containingPlaces: _list[GoogleMapsPlacesV1PlaceContainingPlace] curbsidePickup: bool currentOpeningHours: GoogleMapsPlacesV1PlaceOpeningHours currentSecondaryOpeningHours: _list[GoogleMapsPlacesV1PlaceOpeningHours] @@ -259,6 +300,7 @@ class GoogleMapsPlacesV1Place(typing_extensions.TypedDict, total=False): goodForChildren: bool goodForGroups: bool goodForWatchingSports: bool + googleMapsLinks: GoogleMapsPlacesV1PlaceGoogleMapsLinks googleMapsUri: str iconBackgroundColor: str iconMaskBaseUri: str @@ -282,8 +324,10 @@ class GoogleMapsPlacesV1Place(typing_extensions.TypedDict, total=False): "PRICE_LEVEL_EXPENSIVE", "PRICE_LEVEL_VERY_EXPENSIVE", ] + priceRange: GoogleMapsPlacesV1PriceRange primaryType: str primaryTypeDisplayName: GoogleTypeLocalizedText + pureServiceAreaBusiness: bool rating: float regularOpeningHours: GoogleMapsPlacesV1PlaceOpeningHours regularSecondaryOpeningHours: _list[GoogleMapsPlacesV1PlaceOpeningHours] @@ -328,22 +372,40 @@ class GoogleMapsPlacesV1PlaceAddressComponent(typing_extensions.TypedDict, total @typing.type_check_only class GoogleMapsPlacesV1PlaceAreaSummary(typing_extensions.TypedDict, total=False): contentBlocks: _list[GoogleMapsPlacesV1ContentBlock] + flagContentUri: str @typing.type_check_only class GoogleMapsPlacesV1PlaceAttribution(typing_extensions.TypedDict, total=False): provider: str providerUri: str +@typing.type_check_only +class GoogleMapsPlacesV1PlaceContainingPlace(typing_extensions.TypedDict, total=False): + id: str + name: str + @typing.type_check_only class GoogleMapsPlacesV1PlaceGenerativeSummary( typing_extensions.TypedDict, total=False ): description: GoogleTypeLocalizedText + descriptionFlagContentUri: str overview: GoogleTypeLocalizedText + overviewFlagContentUri: str references: GoogleMapsPlacesV1References +@typing.type_check_only +class GoogleMapsPlacesV1PlaceGoogleMapsLinks(typing_extensions.TypedDict, total=False): + directionsUri: str + photosUri: str + placeUri: str + reviewsUri: str + writeAReviewUri: str + @typing.type_check_only class GoogleMapsPlacesV1PlaceOpeningHours(typing_extensions.TypedDict, total=False): + nextCloseTime: str + nextOpenTime: str openNow: bool periods: _list[GoogleMapsPlacesV1PlaceOpeningHoursPeriod] secondaryHoursType: typing_extensions.Literal[ @@ -419,6 +481,11 @@ class GoogleMapsPlacesV1PlaceSubDestination(typing_extensions.TypedDict, total=F class GoogleMapsPlacesV1Polyline(typing_extensions.TypedDict, total=False): encodedPolyline: str +@typing.type_check_only +class GoogleMapsPlacesV1PriceRange(typing_extensions.TypedDict, total=False): + endPrice: GoogleTypeMoney + startPrice: GoogleTypeMoney + @typing.type_check_only class GoogleMapsPlacesV1References(typing_extensions.TypedDict, total=False): places: _list[str] @@ -427,6 +494,8 @@ class GoogleMapsPlacesV1References(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleMapsPlacesV1Review(typing_extensions.TypedDict, total=False): authorAttribution: GoogleMapsPlacesV1AuthorAttribution + flagContentUri: str + googleMapsUri: str name: str originalText: GoogleTypeLocalizedText publishTime: str @@ -457,6 +526,7 @@ class GoogleMapsPlacesV1RoutingParameters(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleMapsPlacesV1RoutingSummary(typing_extensions.TypedDict, total=False): + directionsUri: str legs: _list[GoogleMapsPlacesV1RoutingSummaryLeg] @typing.type_check_only @@ -493,6 +563,7 @@ class GoogleMapsPlacesV1SearchNearbyResponse(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleMapsPlacesV1SearchTextRequest(typing_extensions.TypedDict, total=False): evOptions: GoogleMapsPlacesV1SearchTextRequestEVOptions + includePureServiceAreaBusinesses: bool includedType: str languageCode: str locationBias: GoogleMapsPlacesV1SearchTextRequestLocationBias @@ -568,6 +639,7 @@ class GoogleMapsPlacesV1SearchTextResponse(typing_extensions.TypedDict, total=Fa nextPageToken: str places: _list[GoogleMapsPlacesV1Place] routingSummaries: _list[GoogleMapsPlacesV1RoutingSummary] + searchUri: str @typing.type_check_only class GoogleTypeDate(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/playdeveloperreporting/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/playdeveloperreporting/v1alpha1/schemas.pyi index 1d184083..39210c75 100644 --- a/googleapiclient-stubs/_apis/playdeveloperreporting/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/playdeveloperreporting/v1alpha1/schemas.pyi @@ -82,6 +82,7 @@ class GooglePlayDeveloperReportingV1alpha1ErrorCountMetricSet( class GooglePlayDeveloperReportingV1alpha1ErrorIssue( typing_extensions.TypedDict, total=False ): + annotations: _list[GooglePlayDeveloperReportingV1alpha1IssueAnnotation] cause: str distinctUsers: str distinctUsersPercent: GoogleTypeDecimal @@ -96,7 +97,7 @@ class GooglePlayDeveloperReportingV1alpha1ErrorIssue( name: str sampleErrorReports: _list[str] type: typing_extensions.Literal[ - "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH" + "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH", "NON_FATAL" ] @typing.type_check_only @@ -111,7 +112,7 @@ class GooglePlayDeveloperReportingV1alpha1ErrorReport( osVersion: GooglePlayDeveloperReportingV1alpha1OsVersion reportText: str type: typing_extensions.Literal[ - "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH" + "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH", "NON_FATAL" ] vcsInformation: str @@ -137,6 +138,14 @@ class GooglePlayDeveloperReportingV1alpha1FreshnessInfoFreshness( ] latestEndTime: GoogleTypeDateTime +@typing.type_check_only +class GooglePlayDeveloperReportingV1alpha1IssueAnnotation( + typing_extensions.TypedDict, total=False +): + body: str + category: str + title: str + @typing.type_check_only class GooglePlayDeveloperReportingV1alpha1ListAnomaliesResponse( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/playdeveloperreporting/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/playdeveloperreporting/v1beta1/schemas.pyi index cbf3896d..e7079e5e 100644 --- a/googleapiclient-stubs/_apis/playdeveloperreporting/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/playdeveloperreporting/v1beta1/schemas.pyi @@ -82,6 +82,7 @@ class GooglePlayDeveloperReportingV1beta1ErrorCountMetricSet( class GooglePlayDeveloperReportingV1beta1ErrorIssue( typing_extensions.TypedDict, total=False ): + annotations: _list[GooglePlayDeveloperReportingV1beta1IssueAnnotation] cause: str distinctUsers: str distinctUsersPercent: GoogleTypeDecimal @@ -96,7 +97,7 @@ class GooglePlayDeveloperReportingV1beta1ErrorIssue( name: str sampleErrorReports: _list[str] type: typing_extensions.Literal[ - "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH" + "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH", "NON_FATAL" ] @typing.type_check_only @@ -111,7 +112,7 @@ class GooglePlayDeveloperReportingV1beta1ErrorReport( osVersion: GooglePlayDeveloperReportingV1beta1OsVersion reportText: str type: typing_extensions.Literal[ - "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH" + "ERROR_TYPE_UNSPECIFIED", "APPLICATION_NOT_RESPONDING", "CRASH", "NON_FATAL" ] vcsInformation: str @@ -137,6 +138,14 @@ class GooglePlayDeveloperReportingV1beta1FreshnessInfoFreshness( ] latestEndTime: GoogleTypeDateTime +@typing.type_check_only +class GooglePlayDeveloperReportingV1beta1IssueAnnotation( + typing_extensions.TypedDict, total=False +): + body: str + category: str + title: str + @typing.type_check_only class GooglePlayDeveloperReportingV1beta1ListAnomaliesResponse( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi b/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi index 56cba425..fdabb2b0 100644 --- a/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi @@ -71,8 +71,13 @@ class DecodeIntegrityTokenRequest(typing_extensions.TypedDict, total=False): class DecodeIntegrityTokenResponse(typing_extensions.TypedDict, total=False): tokenPayloadExternal: TokenPayloadExternal +@typing.type_check_only +class DeviceAttributes(typing_extensions.TypedDict, total=False): + sdkVersion: int + @typing.type_check_only class DeviceIntegrity(typing_extensions.TypedDict, total=False): + deviceAttributes: DeviceAttributes deviceRecall: DeviceRecall deviceRecognitionVerdict: _list[ typing_extensions.Literal[ @@ -83,6 +88,15 @@ class DeviceIntegrity(typing_extensions.TypedDict, total=False): "MEETS_VIRTUAL_INTEGRITY", ] ] + legacyDeviceRecognitionVerdict: _list[ + typing_extensions.Literal[ + "UNKNOWN", + "MEETS_BASIC_INTEGRITY", + "MEETS_DEVICE_INTEGRITY", + "MEETS_STRONG_INTEGRITY", + "MEETS_VIRTUAL_INTEGRITY", + ] + ] recentDeviceActivity: RecentDeviceActivity @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi b/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi index 9457e170..82cdd302 100644 --- a/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi @@ -55,6 +55,7 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule( condition: GoogleTypeExpr denyAll: bool enforce: bool + parameters: dict[str, typing.Any] values: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/policysimulator/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/policysimulator/v1alpha/schemas.pyi index 022e5f09..1f1b40c2 100644 --- a/googleapiclient-stubs/_apis/policysimulator/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/policysimulator/v1alpha/schemas.pyi @@ -55,6 +55,7 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule( condition: GoogleTypeExpr denyAll: bool enforce: bool + parameters: dict[str, typing.Any] values: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/policysimulator/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/policysimulator/v1beta/schemas.pyi index 775ee442..9336f93c 100644 --- a/googleapiclient-stubs/_apis/policysimulator/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/policysimulator/v1beta/schemas.pyi @@ -55,6 +55,7 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule( condition: GoogleTypeExpr denyAll: bool enforce: bool + parameters: dict[str, typing.Any] values: GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi b/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi index e115b710..3555ace5 100644 --- a/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi @@ -18,6 +18,9 @@ class AvroConfig(typing_extensions.TypedDict, total=False): useTopicSchema: bool writeMetadata: bool +@typing.type_check_only +class AvroFormat(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class AwsKinesis(typing_extensions.TypedDict, total=False): awsRoleArn: str @@ -33,6 +36,41 @@ class AwsKinesis(typing_extensions.TypedDict, total=False): ] streamArn: str +@typing.type_check_only +class AwsMsk(typing_extensions.TypedDict, total=False): + awsRoleArn: str + clusterArn: str + gcpServiceAccount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "MSK_PERMISSION_DENIED", + "PUBLISH_PERMISSION_DENIED", + "CLUSTER_NOT_FOUND", + "TOPIC_NOT_FOUND", + ] + topic: str + +@typing.type_check_only +class AzureEventHubs(typing_extensions.TypedDict, total=False): + clientId: str + eventHub: str + gcpServiceAccount: str + namespace: str + resourceGroup: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "EVENT_HUBS_PERMISSION_DENIED", + "PUBLISH_PERMISSION_DENIED", + "NAMESPACE_NOT_FOUND", + "EVENT_HUB_NOT_FOUND", + "SUBSCRIPTION_NOT_FOUND", + "RESOURCE_GROUP_NOT_FOUND", + ] + subscriptionId: str + tenantId: str + @typing.type_check_only class BigQueryConfig(typing_extensions.TypedDict, total=False): dropUnknownFields: bool @@ -56,6 +94,23 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class CloudStorage(typing_extensions.TypedDict, total=False): + avroFormat: AvroFormat + bucket: str + matchGlob: str + minimumObjectCreateTime: str + pubsubAvroFormat: PubSubAvroFormat + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CLOUD_STORAGE_PERMISSION_DENIED", + "PUBLISH_PERMISSION_DENIED", + "BUCKET_NOT_FOUND", + "TOO_MANY_OBJECTS", + ] + textFormat: TextFormat + @typing.type_check_only class CloudStorageConfig(typing_extensions.TypedDict, total=False): avroConfig: AvroConfig @@ -81,6 +136,23 @@ class CloudStorageConfig(typing_extensions.TypedDict, total=False): class CommitSchemaRequest(typing_extensions.TypedDict, total=False): schema: Schema +@typing.type_check_only +class ConfluentCloud(typing_extensions.TypedDict, total=False): + bootstrapServer: str + clusterId: str + gcpServiceAccount: str + identityPoolId: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "CONFLUENT_CLOUD_PERMISSION_DENIED", + "PUBLISH_PERMISSION_DENIED", + "UNREACHABLE_BOOTSTRAP_SERVER", + "CLUSTER_NOT_FOUND", + "TOPIC_NOT_FOUND", + ] + topic: str + @typing.type_check_only class CreateSnapshotRequest(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] @@ -111,6 +183,11 @@ class Expr(typing_extensions.TypedDict, total=False): @typing.type_check_only class IngestionDataSourceSettings(typing_extensions.TypedDict, total=False): awsKinesis: AwsKinesis + awsMsk: AwsMsk + azureEventHubs: AzureEventHubs + cloudStorage: CloudStorage + confluentCloud: ConfluentCloud + platformLogsSettings: PlatformLogsSettings @typing.type_check_only class ListSchemaRevisionsResponse(typing_extensions.TypedDict, total=False): @@ -170,12 +247,21 @@ class OidcToken(typing_extensions.TypedDict, total=False): audience: str serviceAccountEmail: str +@typing.type_check_only +class PlatformLogsSettings(typing_extensions.TypedDict, total=False): + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "DISABLED", "DEBUG", "INFO", "WARNING", "ERROR" + ] + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): bindings: _list[Binding] etag: str version: int +@typing.type_check_only +class PubSubAvroFormat(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class PublishRequest(typing_extensions.TypedDict, total=False): messages: _list[PubsubMessage] @@ -294,6 +380,10 @@ class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class TextConfig(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class TextFormat(typing_extensions.TypedDict, total=False): + delimiter: str + @typing.type_check_only class Topic(typing_extensions.TypedDict, total=False): ingestionDataSourceSettings: IngestionDataSourceSettings diff --git a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi index 2ad78458..993306d4 100644 --- a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi @@ -432,6 +432,9 @@ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse( class GoogleCloudRecaptchaenterpriseV1RiskAnalysis( typing_extensions.TypedDict, total=False ): + challenge: typing_extensions.Literal[ + "CHALLENGE_UNSPECIFIED", "NOCAPTCHA", "PASSED", "FAILED" + ] extendedVerdictReasons: _list[str] reasons: _list[ typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/recommender/v1/schemas.pyi b/googleapiclient-stubs/_apis/recommender/v1/schemas.pyi index d61add63..11e2d3d3 100644 --- a/googleapiclient-stubs/_apis/recommender/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/recommender/v1/schemas.pyi @@ -22,8 +22,10 @@ class GoogleCloudRecommenderV1Impact(typing_extensions.TypedDict, total=False): "RELIABILITY", ] costProjection: GoogleCloudRecommenderV1CostProjection + impactComponents: _list[GoogleCloudRecommenderV1Impact] reliabilityProjection: GoogleCloudRecommenderV1ReliabilityProjection securityProjection: GoogleCloudRecommenderV1SecurityProjection + service: str sustainabilityProjection: GoogleCloudRecommenderV1SustainabilityProjection @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/recommender/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/recommender/v1beta1/schemas.pyi index 4f6089a8..fac7735f 100644 --- a/googleapiclient-stubs/_apis/recommender/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/recommender/v1beta1/schemas.pyi @@ -42,8 +42,10 @@ class GoogleCloudRecommenderV1beta1Impact(typing_extensions.TypedDict, total=Fal "RELIABILITY", ] costProjection: GoogleCloudRecommenderV1beta1CostProjection + impactComponents: _list[GoogleCloudRecommenderV1beta1Impact] reliabilityProjection: GoogleCloudRecommenderV1beta1ReliabilityProjection securityProjection: GoogleCloudRecommenderV1beta1SecurityProjection + service: str sustainabilityProjection: GoogleCloudRecommenderV1beta1SustainabilityProjection @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/redis/v1/resources.pyi b/googleapiclient-stubs/_apis/redis/v1/resources.pyi index 49b92585..a60082c1 100644 --- a/googleapiclient-stubs/_apis/redis/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/redis/v1/resources.pyi @@ -17,8 +17,64 @@ class CloudRedisResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupCollectionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def export( + self, + *, + name: str, + body: ExportBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupsResponseHttpRequest, + previous_response: ListBackupsResponse, + ) -> ListBackupsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupCollectionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupCollectionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupCollectionsResponseHttpRequest, + previous_response: ListBackupCollectionsResponse, + ) -> ListBackupCollectionsResponseHttpRequest | None: ... + def backups(self) -> BackupsResource: ... + @typing.type_check_only class ClustersResource(googleapiclient.discovery.Resource): + def backup( + self, + *, + name: str, + body: BackupClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, @@ -186,6 +242,7 @@ class CloudRedisResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def backupCollections(self) -> BackupCollectionsResource: ... def clusters(self) -> ClustersResource: ... def instances(self) -> InstancesResource: ... def operations(self) -> OperationsResource: ... @@ -206,6 +263,22 @@ class CloudRedisResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Backup: ... + +@typing.type_check_only +class BackupCollectionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupCollection: ... + @typing.type_check_only class CertificateAuthorityHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -246,6 +319,22 @@ class InstanceAuthStringHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> InstanceAuthString: ... +@typing.type_check_only +class ListBackupCollectionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupCollectionsResponse: ... + +@typing.type_check_only +class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupsResponse: ... + @typing.type_check_only class ListClustersResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/redis/v1/schemas.pyi b/googleapiclient-stubs/_apis/redis/v1/schemas.pyi index 40f6e6d8..80d69665 100644 --- a/googleapiclient-stubs/_apis/redis/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/redis/v1/schemas.pyi @@ -11,12 +11,12 @@ class AOFConfig(typing_extensions.TypedDict, total=False): ] @typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - ccfeRmsPath: str - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] +class AutomatedBackupConfig(typing_extensions.TypedDict, total=False): + automatedBackupMode: typing_extensions.Literal[ + "AUTOMATED_BACKUP_MODE_UNSPECIFIED", "DISABLED", "ENABLED" + ] + fixedFrequencySchedule: FixedFrequencySchedule + retention: str @typing.type_check_only class AvailabilityConfiguration(typing_extensions.TypedDict, total=False): @@ -32,12 +32,59 @@ class AvailabilityConfiguration(typing_extensions.TypedDict, total=False): externalReplicaConfigured: bool promotableReplicaConfigured: bool +@typing.type_check_only +class Backup(typing_extensions.TypedDict, total=False): + backupFiles: _list[BackupFile] + backupType: typing_extensions.Literal[ + "BACKUP_TYPE_UNSPECIFIED", "ON_DEMAND", "AUTOMATED" + ] + cluster: str + clusterUid: str + createTime: str + encryptionInfo: EncryptionInfo + engineVersion: str + expireTime: str + name: str + nodeType: typing_extensions.Literal[ + "NODE_TYPE_UNSPECIFIED", + "REDIS_SHARED_CORE_NANO", + "REDIS_HIGHMEM_MEDIUM", + "REDIS_HIGHMEM_XLARGE", + "REDIS_STANDARD_SMALL", + ] + replicaCount: int + shardCount: int + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "SUSPENDED" + ] + totalSizeBytes: str + uid: str + +@typing.type_check_only +class BackupClusterRequest(typing_extensions.TypedDict, total=False): + backupId: str + ttl: str + +@typing.type_check_only +class BackupCollection(typing_extensions.TypedDict, total=False): + cluster: str + clusterUid: str + kmsKey: str + name: str + uid: str + @typing.type_check_only class BackupConfiguration(typing_extensions.TypedDict, total=False): automatedBackupEnabled: bool backupRetentionSettings: RetentionSettings pointInTimeRecoveryEnabled: bool +@typing.type_check_only +class BackupFile(typing_extensions.TypedDict, total=False): + createTime: str + fileName: str + sizeBytes: str + @typing.type_check_only class BackupRun(typing_extensions.TypedDict, total=False): endTime: str @@ -45,10 +92,6 @@ class BackupRun(typing_extensions.TypedDict, total=False): startTime: str status: typing_extensions.Literal["STATUS_UNSPECIFIED", "SUCCESSFUL", "FAILED"] -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CertChain(typing_extensions.TypedDict, total=False): certificates: _list[str] @@ -58,26 +101,25 @@ class CertificateAuthority(typing_extensions.TypedDict, total=False): managedServerCa: ManagedCertificateAuthority name: str -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class Cluster(typing_extensions.TypedDict, total=False): + asyncClusterEndpointsDeletionEnabled: bool authorizationMode: typing_extensions.Literal[ "AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED" ] + automatedBackupConfig: AutomatedBackupConfig + backupCollection: str + clusterEndpoints: _list[ClusterEndpoint] createTime: str crossClusterReplicationConfig: CrossClusterReplicationConfig deletionProtectionEnabled: bool discoveryEndpoints: _list[DiscoveryEndpoint] + encryptionInfo: EncryptionInfo + gcsSource: GcsBackupSource + kmsKey: str maintenancePolicy: ClusterMaintenancePolicy maintenanceSchedule: ClusterMaintenanceSchedule + managedBackupSource: ManagedBackupSource name: str nodeType: typing_extensions.Literal[ "NODE_TYPE_UNSPECIFIED", @@ -90,6 +132,7 @@ class Cluster(typing_extensions.TypedDict, total=False): preciseSizeGb: float pscConfigs: _list[PscConfig] pscConnections: _list[PscConnection] + pscServiceAttachments: _list[PscServiceAttachment] redisConfigs: dict[str, typing.Any] replicaCount: int shardCount: int @@ -106,6 +149,10 @@ class Cluster(typing_extensions.TypedDict, total=False): uid: str zoneDistributionConfig: ZoneDistributionConfig +@typing.type_check_only +class ClusterEndpoint(typing_extensions.TypedDict, total=False): + connections: _list[ConnectionDetail] + @typing.type_check_only class ClusterMaintenancePolicy(typing_extensions.TypedDict, total=False): createTime: str @@ -144,6 +191,11 @@ class Compliance(typing_extensions.TypedDict, total=False): standard: str version: str +@typing.type_check_only +class ConnectionDetail(typing_extensions.TypedDict, total=False): + pscAutoConnection: PscAutoConnection + pscConnection: PscConnection + @typing.type_check_only class CrossClusterReplicationConfig(typing_extensions.TypedDict, total=False): clusterRole: typing_extensions.Literal[ @@ -285,6 +337,8 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -318,6 +372,9 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): "STATE_OTHER", ] customMetadata: CustomMetadataData + edition: typing_extensions.Literal[ + "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", "EDITION_ENTERPRISE_PLUS" + ] entitlements: _list[Entitlement] expectedState: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -343,6 +400,7 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): location: str machineConfiguration: MachineConfiguration primaryResourceId: DatabaseResourceId + primaryResourceLocation: str product: Product resourceContainer: str resourceName: str @@ -443,12 +501,10 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class DiscoveryEndpoint(typing_extensions.TypedDict, total=False): address: str @@ -458,6 +514,25 @@ class DiscoveryEndpoint(typing_extensions.TypedDict, total=False): @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class EncryptionInfo(typing_extensions.TypedDict, total=False): + encryptionType: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "GOOGLE_DEFAULT_ENCRYPTION", "CUSTOMER_MANAGED_ENCRYPTION" + ] + kmsKeyPrimaryState: typing_extensions.Literal[ + "KMS_KEY_STATE_UNSPECIFIED", + "ENABLED", + "PERMISSION_DENIED", + "DISABLED", + "DESTROYED", + "DESTROY_SCHEDULED", + "EKM_KEY_UNREACHABLE_DETECTED", + "BILLING_DISABLED", + "UNKNOWN_FAILURE", + ] + kmsKeyVersions: _list[str] + lastUpdateTime: str + @typing.type_check_only class Entitlement(typing_extensions.TypedDict, total=False): entitlementState: typing_extensions.Literal[ @@ -466,12 +541,12 @@ class Entitlement(typing_extensions.TypedDict, total=False): type: typing_extensions.Literal["ENTITLEMENT_TYPE_UNSPECIFIED", "GEMINI"] @typing.type_check_only -class ExportInstanceRequest(typing_extensions.TypedDict, total=False): - outputConfig: OutputConfig +class ExportBackupRequest(typing_extensions.TypedDict, total=False): + gcsBucket: str @typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy +class ExportInstanceRequest(typing_extensions.TypedDict, total=False): + outputConfig: OutputConfig @typing.type_check_only class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): @@ -479,6 +554,14 @@ class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): "DATA_PROTECTION_MODE_UNSPECIFIED", "LIMITED_DATA_LOSS", "FORCE_DATA_LOSS" ] +@typing.type_check_only +class FixedFrequencySchedule(typing_extensions.TypedDict, total=False): + startTime: TimeOfDay + +@typing.type_check_only +class GcsBackupSource(typing_extensions.TypedDict, total=False): + uris: _list[str] + @typing.type_check_only class GcsDestination(typing_extensions.TypedDict, total=False): uri: str @@ -587,39 +670,16 @@ class InternalResourceMetadata(typing_extensions.TypedDict, total=False): resourceName: str @typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - requirementOverride: RequirementOverride - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] +class ListBackupCollectionsResponse(typing_extensions.TypedDict, total=False): + backupCollections: _list[BackupCollection] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupsResponse(typing_extensions.TypedDict, total=False): + backups: _list[Backup] + nextPageToken: str + unreachable: _list[str] @typing.type_check_only class ListClustersResponse(typing_extensions.TypedDict, total=False): @@ -651,35 +711,12 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str -@typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation - @typing.type_check_only class MachineConfiguration(typing_extensions.TypedDict, total=False): cpuCount: int memorySizeInBytes: str shardCount: int + vcpuCount: float @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): @@ -695,6 +732,10 @@ class MaintenanceSchedule(typing_extensions.TypedDict, total=False): scheduleDeadlineTime: str startTime: str +@typing.type_check_only +class ManagedBackupSource(typing_extensions.TypedDict, total=False): + backup: str + @typing.type_check_only class ManagedCertificateAuthority(typing_extensions.TypedDict, total=False): caCerts: _list[CertChain] @@ -721,6 +762,7 @@ class ObservabilityMetricData(typing_extensions.TypedDict, total=False): "NETWORK_CONNECTIONS", "STORAGE_UTILIZATION", "STORAGE_USED_BYTES", + "NODE_COUNT", ] observationTime: str resourceName: str @@ -777,10 +819,6 @@ class PersistenceConfig(typing_extensions.TypedDict, total=False): ] rdbSnapshotStartTime: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - @typing.type_check_only class Product(typing_extensions.TypedDict, total=False): engine: typing_extensions.Literal[ @@ -817,6 +855,26 @@ class Product(typing_extensions.TypedDict, total=False): ] version: str +@typing.type_check_only +class PscAutoConnection(typing_extensions.TypedDict, total=False): + address: str + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] + forwardingRule: str + network: str + projectId: str + pscConnectionId: str + pscConnectionStatus: typing_extensions.Literal[ + "PSC_CONNECTION_STATUS_UNSPECIFIED", + "PSC_CONNECTION_STATUS_ACTIVE", + "PSC_CONNECTION_STATUS_NOT_FOUND", + ] + serviceAttachment: str + @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): network: str @@ -824,10 +882,31 @@ class PscConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class PscConnection(typing_extensions.TypedDict, total=False): address: str + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] forwardingRule: str network: str projectId: str pscConnectionId: str + pscConnectionStatus: typing_extensions.Literal[ + "PSC_CONNECTION_STATUS_UNSPECIFIED", + "PSC_CONNECTION_STATUS_ACTIVE", + "PSC_CONNECTION_STATUS_NOT_FOUND", + ] + serviceAttachment: str + +@typing.type_check_only +class PscServiceAttachment(typing_extensions.TypedDict, total=False): + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] serviceAttachment: str @typing.type_check_only @@ -848,25 +927,11 @@ class ReconciliationOperationMetadata(typing_extensions.TypedDict, total=False): "UNKNOWN_REPAIR_ACTION", "DELETE", "RETRY" ] -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - @typing.type_check_only class RemoteCluster(typing_extensions.TypedDict, total=False): cluster: str uid: str -@typing.type_check_only -class RequirementOverride(typing_extensions.TypedDict, total=False): - ziOverride: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zsOverride: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - @typing.type_check_only class RescheduleClusterMaintenanceRequest(typing_extensions.TypedDict, total=False): rescheduleType: typing_extensions.Literal[ @@ -886,16 +951,17 @@ class RescheduleMaintenanceRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class RetentionSettings(typing_extensions.TypedDict, total=False): + durationBasedRetention: str quantityBasedRetention: int retentionUnit: typing_extensions.Literal[ - "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", "RETENTION_UNIT_OTHER" + "RETENTION_UNIT_UNSPECIFIED", + "COUNT", + "TIME", + "DURATION", + "RETENTION_UNIT_OTHER", ] timeBasedRetention: str - -@typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] + timestampBasedRetentionTime: str @typing.type_check_only class StateInfo(typing_extensions.TypedDict, total=False): @@ -911,10 +977,6 @@ class Status(typing_extensions.TypedDict, total=False): class Tags(typing_extensions.TypedDict, total=False): tags: dict[str, typing.Any] -@typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] - @typing.type_check_only class TimeOfDay(typing_extensions.TypedDict, total=False): hours: int @@ -965,10 +1027,6 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str - @typing.type_check_only class ZoneDistributionConfig(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/redis/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/redis/v1beta1/resources.pyi index 49b92585..a60082c1 100644 --- a/googleapiclient-stubs/_apis/redis/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/redis/v1beta1/resources.pyi @@ -17,8 +17,64 @@ class CloudRedisResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupCollectionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def export( + self, + *, + name: str, + body: ExportBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupsResponseHttpRequest, + previous_response: ListBackupsResponse, + ) -> ListBackupsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupCollectionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupCollectionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupCollectionsResponseHttpRequest, + previous_response: ListBackupCollectionsResponse, + ) -> ListBackupCollectionsResponseHttpRequest | None: ... + def backups(self) -> BackupsResource: ... + @typing.type_check_only class ClustersResource(googleapiclient.discovery.Resource): + def backup( + self, + *, + name: str, + body: BackupClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, @@ -186,6 +242,7 @@ class CloudRedisResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def backupCollections(self) -> BackupCollectionsResource: ... def clusters(self) -> ClustersResource: ... def instances(self) -> InstancesResource: ... def operations(self) -> OperationsResource: ... @@ -206,6 +263,22 @@ class CloudRedisResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Backup: ... + +@typing.type_check_only +class BackupCollectionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupCollection: ... + @typing.type_check_only class CertificateAuthorityHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -246,6 +319,22 @@ class InstanceAuthStringHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> InstanceAuthString: ... +@typing.type_check_only +class ListBackupCollectionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupCollectionsResponse: ... + +@typing.type_check_only +class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupsResponse: ... + @typing.type_check_only class ListClustersResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi index fbc35a71..d0379df5 100644 --- a/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi @@ -11,12 +11,12 @@ class AOFConfig(typing_extensions.TypedDict, total=False): ] @typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - ccfeRmsPath: str - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] +class AutomatedBackupConfig(typing_extensions.TypedDict, total=False): + automatedBackupMode: typing_extensions.Literal[ + "AUTOMATED_BACKUP_MODE_UNSPECIFIED", "DISABLED", "ENABLED" + ] + fixedFrequencySchedule: FixedFrequencySchedule + retention: str @typing.type_check_only class AvailabilityConfiguration(typing_extensions.TypedDict, total=False): @@ -32,12 +32,59 @@ class AvailabilityConfiguration(typing_extensions.TypedDict, total=False): externalReplicaConfigured: bool promotableReplicaConfigured: bool +@typing.type_check_only +class Backup(typing_extensions.TypedDict, total=False): + backupFiles: _list[BackupFile] + backupType: typing_extensions.Literal[ + "BACKUP_TYPE_UNSPECIFIED", "ON_DEMAND", "AUTOMATED" + ] + cluster: str + clusterUid: str + createTime: str + encryptionInfo: EncryptionInfo + engineVersion: str + expireTime: str + name: str + nodeType: typing_extensions.Literal[ + "NODE_TYPE_UNSPECIFIED", + "REDIS_SHARED_CORE_NANO", + "REDIS_HIGHMEM_MEDIUM", + "REDIS_HIGHMEM_XLARGE", + "REDIS_STANDARD_SMALL", + ] + replicaCount: int + shardCount: int + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "SUSPENDED" + ] + totalSizeBytes: str + uid: str + +@typing.type_check_only +class BackupClusterRequest(typing_extensions.TypedDict, total=False): + backupId: str + ttl: str + +@typing.type_check_only +class BackupCollection(typing_extensions.TypedDict, total=False): + cluster: str + clusterUid: str + kmsKey: str + name: str + uid: str + @typing.type_check_only class BackupConfiguration(typing_extensions.TypedDict, total=False): automatedBackupEnabled: bool backupRetentionSettings: RetentionSettings pointInTimeRecoveryEnabled: bool +@typing.type_check_only +class BackupFile(typing_extensions.TypedDict, total=False): + createTime: str + fileName: str + sizeBytes: str + @typing.type_check_only class BackupRun(typing_extensions.TypedDict, total=False): endTime: str @@ -45,10 +92,6 @@ class BackupRun(typing_extensions.TypedDict, total=False): startTime: str status: typing_extensions.Literal["STATUS_UNSPECIFIED", "SUCCESSFUL", "FAILED"] -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CertChain(typing_extensions.TypedDict, total=False): certificates: _list[str] @@ -58,26 +101,25 @@ class CertificateAuthority(typing_extensions.TypedDict, total=False): managedServerCa: ManagedCertificateAuthority name: str -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class Cluster(typing_extensions.TypedDict, total=False): + asyncClusterEndpointsDeletionEnabled: bool authorizationMode: typing_extensions.Literal[ "AUTH_MODE_UNSPECIFIED", "AUTH_MODE_IAM_AUTH", "AUTH_MODE_DISABLED" ] + automatedBackupConfig: AutomatedBackupConfig + backupCollection: str + clusterEndpoints: _list[ClusterEndpoint] createTime: str crossClusterReplicationConfig: CrossClusterReplicationConfig deletionProtectionEnabled: bool discoveryEndpoints: _list[DiscoveryEndpoint] + encryptionInfo: EncryptionInfo + gcsSource: GcsBackupSource + kmsKey: str maintenancePolicy: ClusterMaintenancePolicy maintenanceSchedule: ClusterMaintenanceSchedule + managedBackupSource: ManagedBackupSource name: str nodeType: typing_extensions.Literal[ "NODE_TYPE_UNSPECIFIED", @@ -90,6 +132,7 @@ class Cluster(typing_extensions.TypedDict, total=False): preciseSizeGb: float pscConfigs: _list[PscConfig] pscConnections: _list[PscConnection] + pscServiceAttachments: _list[PscServiceAttachment] redisConfigs: dict[str, typing.Any] replicaCount: int shardCount: int @@ -106,6 +149,10 @@ class Cluster(typing_extensions.TypedDict, total=False): uid: str zoneDistributionConfig: ZoneDistributionConfig +@typing.type_check_only +class ClusterEndpoint(typing_extensions.TypedDict, total=False): + connections: _list[ConnectionDetail] + @typing.type_check_only class ClusterMaintenancePolicy(typing_extensions.TypedDict, total=False): createTime: str @@ -144,6 +191,11 @@ class Compliance(typing_extensions.TypedDict, total=False): standard: str version: str +@typing.type_check_only +class ConnectionDetail(typing_extensions.TypedDict, total=False): + pscAutoConnection: PscAutoConnection + pscConnection: PscConnection + @typing.type_check_only class CrossClusterReplicationConfig(typing_extensions.TypedDict, total=False): clusterRole: typing_extensions.Literal[ @@ -285,6 +337,8 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -318,6 +372,9 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): "STATE_OTHER", ] customMetadata: CustomMetadataData + edition: typing_extensions.Literal[ + "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", "EDITION_ENTERPRISE_PLUS" + ] entitlements: _list[Entitlement] expectedState: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -343,6 +400,7 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): location: str machineConfiguration: MachineConfiguration primaryResourceId: DatabaseResourceId + primaryResourceLocation: str product: Product resourceContainer: str resourceName: str @@ -443,12 +501,10 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_WEAK_PASSWORD_HASH_ALGORITHM", + "SIGNAL_TYPE_NO_USER_PASSWORD_POLICY", ] -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class DiscoveryEndpoint(typing_extensions.TypedDict, total=False): address: str @@ -458,6 +514,25 @@ class DiscoveryEndpoint(typing_extensions.TypedDict, total=False): @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class EncryptionInfo(typing_extensions.TypedDict, total=False): + encryptionType: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "GOOGLE_DEFAULT_ENCRYPTION", "CUSTOMER_MANAGED_ENCRYPTION" + ] + kmsKeyPrimaryState: typing_extensions.Literal[ + "KMS_KEY_STATE_UNSPECIFIED", + "ENABLED", + "PERMISSION_DENIED", + "DISABLED", + "DESTROYED", + "DESTROY_SCHEDULED", + "EKM_KEY_UNREACHABLE_DETECTED", + "BILLING_DISABLED", + "UNKNOWN_FAILURE", + ] + kmsKeyVersions: _list[str] + lastUpdateTime: str + @typing.type_check_only class Entitlement(typing_extensions.TypedDict, total=False): entitlementState: typing_extensions.Literal[ @@ -466,12 +541,12 @@ class Entitlement(typing_extensions.TypedDict, total=False): type: typing_extensions.Literal["ENTITLEMENT_TYPE_UNSPECIFIED", "GEMINI"] @typing.type_check_only -class ExportInstanceRequest(typing_extensions.TypedDict, total=False): - outputConfig: OutputConfig +class ExportBackupRequest(typing_extensions.TypedDict, total=False): + gcsBucket: str @typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy +class ExportInstanceRequest(typing_extensions.TypedDict, total=False): + outputConfig: OutputConfig @typing.type_check_only class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): @@ -479,6 +554,14 @@ class FailoverInstanceRequest(typing_extensions.TypedDict, total=False): "DATA_PROTECTION_MODE_UNSPECIFIED", "LIMITED_DATA_LOSS", "FORCE_DATA_LOSS" ] +@typing.type_check_only +class FixedFrequencySchedule(typing_extensions.TypedDict, total=False): + startTime: TimeOfDay + +@typing.type_check_only +class GcsBackupSource(typing_extensions.TypedDict, total=False): + uris: _list[str] + @typing.type_check_only class GcsDestination(typing_extensions.TypedDict, total=False): uri: str @@ -587,39 +670,16 @@ class InternalResourceMetadata(typing_extensions.TypedDict, total=False): resourceName: str @typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - requirementOverride: RequirementOverride - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] +class ListBackupCollectionsResponse(typing_extensions.TypedDict, total=False): + backupCollections: _list[BackupCollection] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupsResponse(typing_extensions.TypedDict, total=False): + backups: _list[Backup] + nextPageToken: str + unreachable: _list[str] @typing.type_check_only class ListClustersResponse(typing_extensions.TypedDict, total=False): @@ -651,35 +711,12 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str -@typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation - @typing.type_check_only class MachineConfiguration(typing_extensions.TypedDict, total=False): cpuCount: int memorySizeInBytes: str shardCount: int + vcpuCount: float @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): @@ -695,6 +732,10 @@ class MaintenanceSchedule(typing_extensions.TypedDict, total=False): scheduleDeadlineTime: str startTime: str +@typing.type_check_only +class ManagedBackupSource(typing_extensions.TypedDict, total=False): + backup: str + @typing.type_check_only class ManagedCertificateAuthority(typing_extensions.TypedDict, total=False): caCerts: _list[CertChain] @@ -721,6 +762,7 @@ class ObservabilityMetricData(typing_extensions.TypedDict, total=False): "NETWORK_CONNECTIONS", "STORAGE_UTILIZATION", "STORAGE_USED_BYTES", + "NODE_COUNT", ] observationTime: str resourceName: str @@ -777,10 +819,6 @@ class PersistenceConfig(typing_extensions.TypedDict, total=False): ] rdbSnapshotStartTime: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - @typing.type_check_only class Product(typing_extensions.TypedDict, total=False): engine: typing_extensions.Literal[ @@ -817,6 +855,26 @@ class Product(typing_extensions.TypedDict, total=False): ] version: str +@typing.type_check_only +class PscAutoConnection(typing_extensions.TypedDict, total=False): + address: str + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] + forwardingRule: str + network: str + projectId: str + pscConnectionId: str + pscConnectionStatus: typing_extensions.Literal[ + "PSC_CONNECTION_STATUS_UNSPECIFIED", + "PSC_CONNECTION_STATUS_ACTIVE", + "PSC_CONNECTION_STATUS_NOT_FOUND", + ] + serviceAttachment: str + @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): network: str @@ -824,10 +882,31 @@ class PscConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class PscConnection(typing_extensions.TypedDict, total=False): address: str + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] forwardingRule: str network: str projectId: str pscConnectionId: str + pscConnectionStatus: typing_extensions.Literal[ + "PSC_CONNECTION_STATUS_UNSPECIFIED", + "PSC_CONNECTION_STATUS_ACTIVE", + "PSC_CONNECTION_STATUS_NOT_FOUND", + ] + serviceAttachment: str + +@typing.type_check_only +class PscServiceAttachment(typing_extensions.TypedDict, total=False): + connectionType: typing_extensions.Literal[ + "CONNECTION_TYPE_UNSPECIFIED", + "CONNECTION_TYPE_DISCOVERY", + "CONNECTION_TYPE_PRIMARY", + "CONNECTION_TYPE_READER", + ] serviceAttachment: str @typing.type_check_only @@ -848,25 +927,11 @@ class ReconciliationOperationMetadata(typing_extensions.TypedDict, total=False): "UNKNOWN_REPAIR_ACTION", "DELETE", "RETRY" ] -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - @typing.type_check_only class RemoteCluster(typing_extensions.TypedDict, total=False): cluster: str uid: str -@typing.type_check_only -class RequirementOverride(typing_extensions.TypedDict, total=False): - ziOverride: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zsOverride: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - @typing.type_check_only class RescheduleClusterMaintenanceRequest(typing_extensions.TypedDict, total=False): rescheduleType: typing_extensions.Literal[ @@ -886,16 +951,17 @@ class RescheduleMaintenanceRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class RetentionSettings(typing_extensions.TypedDict, total=False): + durationBasedRetention: str quantityBasedRetention: int retentionUnit: typing_extensions.Literal[ - "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", "RETENTION_UNIT_OTHER" + "RETENTION_UNIT_UNSPECIFIED", + "COUNT", + "TIME", + "DURATION", + "RETENTION_UNIT_OTHER", ] timeBasedRetention: str - -@typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] + timestampBasedRetentionTime: str @typing.type_check_only class StateInfo(typing_extensions.TypedDict, total=False): @@ -911,10 +977,6 @@ class Status(typing_extensions.TypedDict, total=False): class Tags(typing_extensions.TypedDict, total=False): tags: dict[str, typing.Any] -@typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] - @typing.type_check_only class TimeOfDay(typing_extensions.TypedDict, total=False): hours: int @@ -965,10 +1027,6 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): duration: str startTime: TimeOfDay -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str - @typing.type_check_only class ZoneDistributionConfig(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/retail/v2/resources.pyi b/googleapiclient-stubs/_apis/retail/v2/resources.pyi index c81d9820..d0e142c6 100644 --- a/googleapiclient-stubs/_apis/retail/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/retail/v2/resources.pyi @@ -195,6 +195,22 @@ class CloudRetailResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudRetailV2ControlHttpRequest: ... + @typing.type_check_only + class GenerativeQuestionResource(googleapiclient.discovery.Resource): + def batchUpdate( + self, + *, + parent: str, + body: GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponseHttpRequest: ... + + @typing.type_check_only + class GenerativeQuestionsResource(googleapiclient.discovery.Resource): + def list( + self, *, parent: str, **kwargs: typing.Any + ) -> GoogleCloudRetailV2ListGenerativeQuestionConfigsResponseHttpRequest: ... + @typing.type_check_only class ModelsResource(googleapiclient.discovery.Resource): def create( @@ -375,11 +391,7 @@ class CloudRetailResource(googleapiclient.discovery.Resource): self, *, parent: str, - ets: str = ..., - prebuiltRule: str = ..., - rawJson: str = ..., - uri: str = ..., - userEvent: str = ..., + body: GoogleCloudRetailV2CollectUserEventRequest = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... def import_( @@ -442,6 +454,9 @@ class CloudRetailResource(googleapiclient.discovery.Resource): def getDefaultBranch( self, *, catalog: str, **kwargs: typing.Any ) -> GoogleCloudRetailV2GetDefaultBranchResponseHttpRequest: ... + def getGenerativeQuestionFeature( + self, *, catalog: str, **kwargs: typing.Any + ) -> GoogleCloudRetailV2GenerativeQuestionsFeatureConfigHttpRequest: ... def list( self, *, @@ -486,10 +501,28 @@ class CloudRetailResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudRetailV2CompletionConfigHttpRequest: ... + def updateGenerativeQuestion( + self, + *, + catalog: str, + body: GoogleCloudRetailV2GenerativeQuestionConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2GenerativeQuestionConfigHttpRequest: ... + def updateGenerativeQuestionFeature( + self, + *, + catalog: str, + body: GoogleCloudRetailV2GenerativeQuestionsFeatureConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2GenerativeQuestionsFeatureConfigHttpRequest: ... def attributesConfig(self) -> AttributesConfigResource: ... def branches(self) -> BranchesResource: ... def completionData(self) -> CompletionDataResource: ... def controls(self) -> ControlsResource: ... + def generativeQuestion(self) -> GenerativeQuestionResource: ... + def generativeQuestions(self) -> GenerativeQuestionsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... def placements(self) -> PlacementsResource: ... @@ -572,6 +605,16 @@ class GoogleCloudRetailV2AttributesConfigHttpRequest(googleapiclient.http.HttpRe num_retries: int = 0, ) -> GoogleCloudRetailV2AttributesConfig: ... +@typing.type_check_only +class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2CatalogHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -606,6 +649,26 @@ class GoogleCloudRetailV2ControlHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> GoogleCloudRetailV2Control: ... +@typing.type_check_only +class GoogleCloudRetailV2GenerativeQuestionConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2GenerativeQuestionConfig: ... + +@typing.type_check_only +class GoogleCloudRetailV2GenerativeQuestionsFeatureConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2GenerativeQuestionsFeatureConfig: ... + @typing.type_check_only class GoogleCloudRetailV2GetDefaultBranchResponseHttpRequest( googleapiclient.http.HttpRequest @@ -636,6 +699,16 @@ class GoogleCloudRetailV2ListControlsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudRetailV2ListControlsResponse: ... +@typing.type_check_only +class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2ListModelsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/retail/v2/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2/schemas.pyi index b089401f..d1985e79 100644 --- a/googleapiclient-stubs/_apis/retail/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2/schemas.pyi @@ -113,6 +113,18 @@ class GoogleCloudRetailV2Audience(typing_extensions.TypedDict, total=False): ageGroups: _list[str] genders: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest( + typing_extensions.TypedDict, total=False +): + requests: _list[GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest] + +@typing.type_check_only +class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2GenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2BigQueryOutputResult(typing_extensions.TypedDict, total=False): datasetId: str @@ -201,6 +213,16 @@ class GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig( facetValues: _list[str] rerankFacet: bool +@typing.type_check_only +class GoogleCloudRetailV2CollectUserEventRequest( + typing_extensions.TypedDict, total=False +): + ets: str + prebuiltRule: str + rawJson: str + uri: str + userEvent: str + @typing.type_check_only class GoogleCloudRetailV2ColorInfo(typing_extensions.TypedDict, total=False): colorFamilies: _list[str] @@ -360,6 +382,26 @@ class GoogleCloudRetailV2GcsSource(typing_extensions.TypedDict, total=False): dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2GenerativeQuestionConfig( + typing_extensions.TypedDict, total=False +): + allowedInConversation: bool + catalog: str + exampleValues: _list[str] + facet: str + finalQuestion: str + frequency: float + generatedQuestion: str + +@typing.type_check_only +class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig( + typing_extensions.TypedDict, total=False +): + catalog: str + featureEnabled: bool + minimumProducts: int + @typing.type_check_only class GoogleCloudRetailV2GetDefaultBranchResponse( typing_extensions.TypedDict, total=False @@ -452,6 +494,12 @@ class GoogleCloudRetailV2ListControlsResponse(typing_extensions.TypedDict, total controls: _list[GoogleCloudRetailV2Control] nextPageToken: str +@typing.type_check_only +class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2GenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2ListModelsResponse(typing_extensions.TypedDict, total=False): models: _list[GoogleCloudRetailV2Model] @@ -472,6 +520,9 @@ class GoogleCloudRetailV2ListServingConfigsResponse( @typing.type_check_only class GoogleCloudRetailV2LocalInventory(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] + availability: typing_extensions.Literal[ + "AVAILABILITY_UNSPECIFIED", "IN_STOCK", "OUT_OF_STOCK", "PREORDER", "BACKORDER" + ] fulfillmentTypes: _list[str] placeId: str priceInfo: GoogleCloudRetailV2PriceInfo @@ -562,6 +613,17 @@ class GoogleCloudRetailV2PauseModelRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2PinControlMetadata(typing_extensions.TypedDict, total=False): + allMatchedPins: dict[str, typing.Any] + droppedPins: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudRetailV2PinControlMetadataProductPins( + typing_extensions.TypedDict, total=False +): + productId: _list[str] + @typing.type_check_only class GoogleCloudRetailV2PredictRequest(typing_extensions.TypedDict, total=False): filter: str @@ -818,6 +880,7 @@ class GoogleCloudRetailV2Rule(typing_extensions.TypedDict, total=False): forceReturnFacetAction: GoogleCloudRetailV2RuleForceReturnFacetAction ignoreAction: GoogleCloudRetailV2RuleIgnoreAction onewaySynonymsAction: GoogleCloudRetailV2RuleOnewaySynonymsAction + pinAction: GoogleCloudRetailV2RulePinAction redirectAction: GoogleCloudRetailV2RuleRedirectAction removeFacetAction: GoogleCloudRetailV2RuleRemoveFacetAction replacementAction: GoogleCloudRetailV2RuleReplacementAction @@ -867,6 +930,10 @@ class GoogleCloudRetailV2RuleOnewaySynonymsAction( queryTerms: _list[str] synonyms: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2RulePinAction(typing_extensions.TypedDict, total=False): + pinMap: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudRetailV2RuleRedirectAction(typing_extensions.TypedDict, total=False): redirectUri: str @@ -1028,6 +1095,7 @@ class GoogleCloudRetailV2SearchResponse(typing_extensions.TypedDict, total=False GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec ] nextPageToken: str + pinControlMetadata: GoogleCloudRetailV2PinControlMetadata queryExpansionInfo: GoogleCloudRetailV2SearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudRetailV2SearchResponseSearchResult] @@ -1177,6 +1245,13 @@ class GoogleCloudRetailV2TuneModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfig: GoogleCloudRetailV2GenerativeQuestionConfig + updateMask: str + @typing.type_check_only class GoogleCloudRetailV2UserEvent(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi b/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi index cb09ac65..fa4419a4 100644 --- a/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi @@ -248,6 +248,22 @@ class CloudRetailResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudRetailV2alphaControlHttpRequest: ... + @typing.type_check_only + class GenerativeQuestionResource(googleapiclient.discovery.Resource): + def batchUpdate( + self, + *, + parent: str, + body: GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponseHttpRequest: ... + + @typing.type_check_only + class GenerativeQuestionsResource(googleapiclient.discovery.Resource): + def list( + self, *, parent: str, **kwargs: typing.Any + ) -> GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponseHttpRequest: ... + @typing.type_check_only class MerchantCenterAccountLinksResource( googleapiclient.discovery.Resource @@ -451,11 +467,7 @@ class CloudRetailResource(googleapiclient.discovery.Resource): self, *, parent: str, - ets: str = ..., - prebuiltRule: str = ..., - rawJson: str = ..., - uri: str = ..., - userEvent: str = ..., + body: GoogleCloudRetailV2alphaCollectUserEventRequest = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... def export( @@ -525,6 +537,11 @@ class CloudRetailResource(googleapiclient.discovery.Resource): def getDefaultBranch( self, *, catalog: str, **kwargs: typing.Any ) -> GoogleCloudRetailV2alphaGetDefaultBranchResponseHttpRequest: ... + def getGenerativeQuestionFeature( + self, *, catalog: str, **kwargs: typing.Any + ) -> ( + GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfigHttpRequest + ): ... def list( self, *, @@ -569,10 +586,30 @@ class CloudRetailResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudRetailV2alphaCompletionConfigHttpRequest: ... + def updateGenerativeQuestion( + self, + *, + catalog: str, + body: GoogleCloudRetailV2alphaGenerativeQuestionConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2alphaGenerativeQuestionConfigHttpRequest: ... + def updateGenerativeQuestionFeature( + self, + *, + catalog: str, + body: GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfigHttpRequest + ): ... def attributesConfig(self) -> AttributesConfigResource: ... def branches(self) -> BranchesResource: ... def completionData(self) -> CompletionDataResource: ... def controls(self) -> ControlsResource: ... + def generativeQuestion(self) -> GenerativeQuestionResource: ... + def generativeQuestions(self) -> GenerativeQuestionsResource: ... def merchantCenterAccountLinks( self, ) -> MerchantCenterAccountLinksResource: ... @@ -724,6 +761,16 @@ class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse: ... +@typing.type_check_only +class GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2alphaBranchHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -768,6 +815,26 @@ class GoogleCloudRetailV2alphaControlHttpRequest(googleapiclient.http.HttpReques num_retries: int = 0, ) -> GoogleCloudRetailV2alphaControl: ... +@typing.type_check_only +class GoogleCloudRetailV2alphaGenerativeQuestionConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2alphaGenerativeQuestionConfig: ... + +@typing.type_check_only +class GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig: ... + @typing.type_check_only class GoogleCloudRetailV2alphaGetDefaultBranchResponseHttpRequest( googleapiclient.http.HttpRequest @@ -818,6 +885,16 @@ class GoogleCloudRetailV2alphaListEnrolledSolutionsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudRetailV2alphaListEnrolledSolutionsResponse: ... +@typing.type_check_only +class GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi index e0b69b4d..083fb35c 100644 --- a/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi @@ -384,6 +384,18 @@ class GoogleCloudRetailV2alphaBatchRemoveCatalogAttributesResponse( deletedCatalogAttributes: _list[str] resetCatalogAttributes: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsRequest( + typing_extensions.TypedDict, total=False +): + requests: _list[GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest] + +@typing.type_check_only +class GoogleCloudRetailV2alphaBatchUpdateGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2alphaGenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2alphaBigQueryOutputResult( typing_extensions.TypedDict, total=False @@ -510,6 +522,16 @@ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigRerankConfig( facetValues: _list[str] rerankFacet: bool +@typing.type_check_only +class GoogleCloudRetailV2alphaCollectUserEventRequest( + typing_extensions.TypedDict, total=False +): + ets: str + prebuiltRule: str + rawJson: str + uri: str + userEvent: str + @typing.type_check_only class GoogleCloudRetailV2alphaColorInfo(typing_extensions.TypedDict, total=False): colorFamilies: _list[str] @@ -750,6 +772,26 @@ class GoogleCloudRetailV2alphaGcsSource(typing_extensions.TypedDict, total=False dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2alphaGenerativeQuestionConfig( + typing_extensions.TypedDict, total=False +): + allowedInConversation: bool + catalog: str + exampleValues: _list[str] + facet: str + finalQuestion: str + frequency: float + generatedQuestion: str + +@typing.type_check_only +class GoogleCloudRetailV2alphaGenerativeQuestionsFeatureConfig( + typing_extensions.TypedDict, total=False +): + catalog: str + featureEnabled: bool + minimumProducts: int + @typing.type_check_only class GoogleCloudRetailV2alphaGetDefaultBranchResponse( typing_extensions.TypedDict, total=False @@ -868,6 +910,12 @@ class GoogleCloudRetailV2alphaListEnrolledSolutionsResponse( ] ] +@typing.type_check_only +class GoogleCloudRetailV2alphaListGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2alphaGenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2alphaListMerchantCenterAccountLinksResponse( typing_extensions.TypedDict, total=False @@ -899,6 +947,9 @@ class GoogleCloudRetailV2alphaListServingConfigsResponse( @typing.type_check_only class GoogleCloudRetailV2alphaLocalInventory(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] + availability: typing_extensions.Literal[ + "AVAILABILITY_UNSPECIFIED", "IN_STOCK", "OUT_OF_STOCK", "PREORDER", "BACKORDER" + ] fulfillmentTypes: _list[str] placeId: str priceInfo: GoogleCloudRetailV2alphaPriceInfo @@ -1094,6 +1145,19 @@ class GoogleCloudRetailV2alphaPauseModelRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2alphaPinControlMetadata( + typing_extensions.TypedDict, total=False +): + allMatchedPins: dict[str, typing.Any] + droppedPins: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudRetailV2alphaPinControlMetadataProductPins( + typing_extensions.TypedDict, total=False +): + productId: _list[str] + @typing.type_check_only class GoogleCloudRetailV2alphaPredictRequest(typing_extensions.TypedDict, total=False): filter: str @@ -1377,6 +1441,7 @@ class GoogleCloudRetailV2alphaRule(typing_extensions.TypedDict, total=False): forceReturnFacetAction: GoogleCloudRetailV2alphaRuleForceReturnFacetAction ignoreAction: GoogleCloudRetailV2alphaRuleIgnoreAction onewaySynonymsAction: GoogleCloudRetailV2alphaRuleOnewaySynonymsAction + pinAction: GoogleCloudRetailV2alphaRulePinAction redirectAction: GoogleCloudRetailV2alphaRuleRedirectAction removeFacetAction: GoogleCloudRetailV2alphaRuleRemoveFacetAction replacementAction: GoogleCloudRetailV2alphaRuleReplacementAction @@ -1430,6 +1495,10 @@ class GoogleCloudRetailV2alphaRuleOnewaySynonymsAction( queryTerms: _list[str] synonyms: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2alphaRulePinAction(typing_extensions.TypedDict, total=False): + pinMap: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudRetailV2alphaRuleRedirectAction( typing_extensions.TypedDict, total=False @@ -1596,6 +1665,7 @@ class GoogleCloudRetailV2alphaSearchResponse(typing_extensions.TypedDict, total= GoogleCloudRetailV2alphaSearchRequestBoostSpecConditionBoostSpec ] nextPageToken: str + pinControlMetadata: GoogleCloudRetailV2alphaPinControlMetadata queryExpansionInfo: GoogleCloudRetailV2alphaSearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudRetailV2alphaSearchResponseSearchResult] @@ -1760,6 +1830,13 @@ class GoogleCloudRetailV2alphaTuneModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2alphaUpdateGenerativeQuestionConfigRequest( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfig: GoogleCloudRetailV2alphaGenerativeQuestionConfig + updateMask: str + @typing.type_check_only class GoogleCloudRetailV2alphaUserEvent(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi b/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi index 119313cd..8f2c8213 100644 --- a/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi +++ b/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi @@ -212,6 +212,22 @@ class CloudRetailResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudRetailV2betaControlHttpRequest: ... + @typing.type_check_only + class GenerativeQuestionResource(googleapiclient.discovery.Resource): + def batchUpdate( + self, + *, + parent: str, + body: GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponseHttpRequest: ... + + @typing.type_check_only + class GenerativeQuestionsResource(googleapiclient.discovery.Resource): + def list( + self, *, parent: str, **kwargs: typing.Any + ) -> GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponseHttpRequest: ... + @typing.type_check_only class ModelsResource(googleapiclient.discovery.Resource): def create( @@ -397,11 +413,7 @@ class CloudRetailResource(googleapiclient.discovery.Resource): self, *, parent: str, - ets: str = ..., - prebuiltRule: str = ..., - rawJson: str = ..., - uri: str = ..., - userEvent: str = ..., + body: GoogleCloudRetailV2betaCollectUserEventRequest = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... def export( @@ -471,6 +483,11 @@ class CloudRetailResource(googleapiclient.discovery.Resource): def getDefaultBranch( self, *, catalog: str, **kwargs: typing.Any ) -> GoogleCloudRetailV2betaGetDefaultBranchResponseHttpRequest: ... + def getGenerativeQuestionFeature( + self, *, catalog: str, **kwargs: typing.Any + ) -> ( + GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfigHttpRequest + ): ... def list( self, *, @@ -515,10 +532,30 @@ class CloudRetailResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudRetailV2betaCompletionConfigHttpRequest: ... + def updateGenerativeQuestion( + self, + *, + catalog: str, + body: GoogleCloudRetailV2betaGenerativeQuestionConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2betaGenerativeQuestionConfigHttpRequest: ... + def updateGenerativeQuestionFeature( + self, + *, + catalog: str, + body: GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfigHttpRequest + ): ... def attributesConfig(self) -> AttributesConfigResource: ... def branches(self) -> BranchesResource: ... def completionData(self) -> CompletionDataResource: ... def controls(self) -> ControlsResource: ... + def generativeQuestion(self) -> GenerativeQuestionResource: ... + def generativeQuestions(self) -> GenerativeQuestionsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... def placements(self) -> PlacementsResource: ... @@ -632,6 +669,16 @@ class GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse: ... +@typing.type_check_only +class GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2betaCatalogHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -668,6 +715,26 @@ class GoogleCloudRetailV2betaControlHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> GoogleCloudRetailV2betaControl: ... +@typing.type_check_only +class GoogleCloudRetailV2betaGenerativeQuestionConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2betaGenerativeQuestionConfig: ... + +@typing.type_check_only +class GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfigHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig: ... + @typing.type_check_only class GoogleCloudRetailV2betaGetDefaultBranchResponseHttpRequest( googleapiclient.http.HttpRequest @@ -698,6 +765,16 @@ class GoogleCloudRetailV2betaListControlsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudRetailV2betaListControlsResponse: ... +@typing.type_check_only +class GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse: ... + @typing.type_check_only class GoogleCloudRetailV2betaListModelsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi index cc224f08..bbbc1b08 100644 --- a/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi @@ -716,6 +716,18 @@ class GoogleCloudRetailV2betaBatchRemoveCatalogAttributesResponse( deletedCatalogAttributes: _list[str] resetCatalogAttributes: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsRequest( + typing_extensions.TypedDict, total=False +): + requests: _list[GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest] + +@typing.type_check_only +class GoogleCloudRetailV2betaBatchUpdateGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2betaGenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2betaBigQueryOutputResult( typing_extensions.TypedDict, total=False @@ -812,6 +824,16 @@ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig( facetValues: _list[str] rerankFacet: bool +@typing.type_check_only +class GoogleCloudRetailV2betaCollectUserEventRequest( + typing_extensions.TypedDict, total=False +): + ets: str + prebuiltRule: str + rawJson: str + uri: str + userEvent: str + @typing.type_check_only class GoogleCloudRetailV2betaColorInfo(typing_extensions.TypedDict, total=False): colorFamilies: _list[str] @@ -1014,6 +1036,26 @@ class GoogleCloudRetailV2betaGcsSource(typing_extensions.TypedDict, total=False) dataSchema: str inputUris: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2betaGenerativeQuestionConfig( + typing_extensions.TypedDict, total=False +): + allowedInConversation: bool + catalog: str + exampleValues: _list[str] + facet: str + finalQuestion: str + frequency: float + generatedQuestion: str + +@typing.type_check_only +class GoogleCloudRetailV2betaGenerativeQuestionsFeatureConfig( + typing_extensions.TypedDict, total=False +): + catalog: str + featureEnabled: bool + minimumProducts: int + @typing.type_check_only class GoogleCloudRetailV2betaGetDefaultBranchResponse( typing_extensions.TypedDict, total=False @@ -1112,6 +1154,12 @@ class GoogleCloudRetailV2betaListControlsResponse( controls: _list[GoogleCloudRetailV2betaControl] nextPageToken: str +@typing.type_check_only +class GoogleCloudRetailV2betaListGenerativeQuestionConfigsResponse( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfigs: _list[GoogleCloudRetailV2betaGenerativeQuestionConfig] + @typing.type_check_only class GoogleCloudRetailV2betaListModelsResponse( typing_extensions.TypedDict, total=False @@ -1136,6 +1184,9 @@ class GoogleCloudRetailV2betaListServingConfigsResponse( @typing.type_check_only class GoogleCloudRetailV2betaLocalInventory(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] + availability: typing_extensions.Literal[ + "AVAILABILITY_UNSPECIFIED", "IN_STOCK", "OUT_OF_STOCK", "PREORDER", "BACKORDER" + ] fulfillmentTypes: _list[str] placeId: str priceInfo: GoogleCloudRetailV2betaPriceInfo @@ -1250,6 +1301,19 @@ class GoogleCloudRetailV2betaPauseModelRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2betaPinControlMetadata( + typing_extensions.TypedDict, total=False +): + allMatchedPins: dict[str, typing.Any] + droppedPins: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudRetailV2betaPinControlMetadataProductPins( + typing_extensions.TypedDict, total=False +): + productId: _list[str] + @typing.type_check_only class GoogleCloudRetailV2betaPredictRequest(typing_extensions.TypedDict, total=False): filter: str @@ -1522,6 +1586,7 @@ class GoogleCloudRetailV2betaRule(typing_extensions.TypedDict, total=False): forceReturnFacetAction: GoogleCloudRetailV2betaRuleForceReturnFacetAction ignoreAction: GoogleCloudRetailV2betaRuleIgnoreAction onewaySynonymsAction: GoogleCloudRetailV2betaRuleOnewaySynonymsAction + pinAction: GoogleCloudRetailV2betaRulePinAction redirectAction: GoogleCloudRetailV2betaRuleRedirectAction removeFacetAction: GoogleCloudRetailV2betaRuleRemoveFacetAction replacementAction: GoogleCloudRetailV2betaRuleReplacementAction @@ -1571,6 +1636,10 @@ class GoogleCloudRetailV2betaRuleOnewaySynonymsAction( queryTerms: _list[str] synonyms: _list[str] +@typing.type_check_only +class GoogleCloudRetailV2betaRulePinAction(typing_extensions.TypedDict, total=False): + pinMap: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudRetailV2betaRuleRedirectAction( typing_extensions.TypedDict, total=False @@ -1734,6 +1803,7 @@ class GoogleCloudRetailV2betaSearchResponse(typing_extensions.TypedDict, total=F GoogleCloudRetailV2betaSearchRequestBoostSpecConditionBoostSpec ] nextPageToken: str + pinControlMetadata: GoogleCloudRetailV2betaPinControlMetadata queryExpansionInfo: GoogleCloudRetailV2betaSearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudRetailV2betaSearchResponseSearchResult] @@ -1891,6 +1961,13 @@ class GoogleCloudRetailV2betaTuneModelResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2betaUpdateGenerativeQuestionConfigRequest( + typing_extensions.TypedDict, total=False +): + generativeQuestionConfig: GoogleCloudRetailV2betaGenerativeQuestionConfig + updateMask: str + @typing.type_check_only class GoogleCloudRetailV2betaUserEvent(typing_extensions.TypedDict, total=False): attributes: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/run/v1/schemas.pyi b/googleapiclient-stubs/_apis/run/v1/schemas.pyi index d38bc023..c93a10fe 100644 --- a/googleapiclient-stubs/_apis/run/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/run/v1/schemas.pyi @@ -327,7 +327,9 @@ class GoogleDevtoolsCloudbuildV1BuildOperationMetadata( class GoogleDevtoolsCloudbuildV1BuildOptions(typing_extensions.TypedDict, total=False): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool diff --git a/googleapiclient-stubs/_apis/run/v2/schemas.pyi b/googleapiclient-stubs/_apis/run/v2/schemas.pyi index ff3e7f61..493b22f2 100644 --- a/googleapiclient-stubs/_apis/run/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/run/v2/schemas.pyi @@ -17,6 +17,7 @@ class GoogleCloudRunV2BuildpacksBuild(typing_extensions.TypedDict, total=False): enableAutomaticUpdates: bool environmentVariables: dict[str, typing.Any] functionTarget: str + projectDescriptor: str runtime: str @typing.type_check_only @@ -210,6 +211,7 @@ class GoogleCloudRunV2ExportStatusResponse(typing_extensions.TypedDict, total=Fa @typing.type_check_only class GoogleCloudRunV2GCSVolumeSource(typing_extensions.TypedDict, total=False): bucket: str + mountOptions: _list[str] readOnly: bool @typing.type_check_only @@ -406,6 +408,10 @@ class GoogleCloudRunV2RevisionTemplate(typing_extensions.TypedDict, total=False) annotations: dict[str, typing.Any] containers: _list[GoogleCloudRunV2Container] encryptionKey: str + encryptionKeyRevocationAction: typing_extensions.Literal[ + "ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED", "PREVENT_NEW", "SHUTDOWN" + ] + encryptionKeyShutdownDuration: str executionEnvironment: typing_extensions.Literal[ "EXECUTION_ENVIRONMENT_UNSPECIFIED", "EXECUTION_ENVIRONMENT_GEN1", @@ -464,6 +470,7 @@ class GoogleCloudRunV2Service(typing_extensions.TypedDict, total=False): "INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER", "INGRESS_TRAFFIC_NONE", ] + invokerIamDisabled: bool labels: dict[str, typing.Any] lastModifier: str latestCreatedRevision: str @@ -498,6 +505,8 @@ class GoogleCloudRunV2ServiceMesh(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleCloudRunV2ServiceScaling(typing_extensions.TypedDict, total=False): + manualInstanceCount: int + maxInstanceCount: int minInstanceCount: int scalingMode: typing_extensions.Literal[ "SCALING_MODE_UNSPECIFIED", "AUTOMATIC", "MANUAL" @@ -732,7 +741,9 @@ class GoogleDevtoolsCloudbuildV1BuildOperationMetadata( class GoogleDevtoolsCloudbuildV1BuildOptions(typing_extensions.TypedDict, total=False): automapSubstitutions: bool defaultLogsBucketBehavior: typing_extensions.Literal[ - "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", "REGIONAL_USER_OWNED_BUCKET" + "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED", + "REGIONAL_USER_OWNED_BUCKET", + "LEGACY_BUCKET", ] diskSizeGb: str dynamicSubstitutions: bool diff --git a/googleapiclient-stubs/_apis/searchads360/v0/schemas.pyi b/googleapiclient-stubs/_apis/searchads360/v0/schemas.pyi index 68591d6a..45933390 100644 --- a/googleapiclient-stubs/_apis/searchads360/v0/schemas.pyi +++ b/googleapiclient-stubs/_apis/searchads360/v0/schemas.pyi @@ -325,12 +325,16 @@ class GoogleAdsSearchads360V0Common__Metrics(typing_extensions.TypedDict, total= costPerConversion: float costPerCurrentModelAttributedConversion: float crossDeviceConversions: float + crossDeviceConversionsByConversionDate: float crossDeviceConversionsValue: float + crossDeviceConversionsValueByConversionDate: float crossSellCostOfGoodsSoldMicros: str crossSellGrossProfitMicros: str crossSellRevenueMicros: str crossSellUnitsSold: float ctr: float + generalInvalidClickRate: float + generalInvalidClicks: str historicalCreativeQualityScore: typing_extensions.Literal[ "UNSPECIFIED", "UNKNOWN", "BELOW_AVERAGE", "AVERAGE", "ABOVE_AVERAGE" ] @@ -1321,6 +1325,7 @@ class GoogleAdsSearchads360V0Resources__AdGroup( ] cpcBidMicros: str creationTime: str + effectiveLabels: _list[str] endDate: str engineId: str engineStatus: typing_extensions.Literal[ @@ -1376,6 +1381,7 @@ class GoogleAdsSearchads360V0Resources__AdGroupAd( ): ad: GoogleAdsSearchads360V0Resources__Ad creationTime: str + effectiveLabels: _list[str] engineId: str engineStatus: typing_extensions.Literal[ "UNSPECIFIED", @@ -1405,6 +1411,15 @@ class GoogleAdsSearchads360V0Resources__AdGroupAd( "UNSPECIFIED", "UNKNOWN", "ENABLED", "PAUSED", "REMOVED" ] +@typing.type_check_only +class GoogleAdsSearchads360V0Resources__AdGroupAdEffectiveLabel( + typing_extensions.TypedDict, total=False +): + adGroupAd: str + label: str + ownerCustomerId: str + resourceName: str + @typing.type_check_only class GoogleAdsSearchads360V0Resources__AdGroupAdLabel( typing_extensions.TypedDict, total=False @@ -1459,6 +1474,7 @@ class GoogleAdsSearchads360V0Resources__AdGroupCriterion( creationTime: str criterionId: str effectiveCpcBidMicros: str + effectiveLabels: _list[str] engineId: str engineStatus: typing_extensions.Literal[ "UNSPECIFIED", @@ -1546,6 +1562,15 @@ class GoogleAdsSearchads360V0Resources__AdGroupCriterion( userList: GoogleAdsSearchads360V0Common__UserListInfo webpage: GoogleAdsSearchads360V0Common__WebpageInfo +@typing.type_check_only +class GoogleAdsSearchads360V0Resources__AdGroupCriterionEffectiveLabel( + typing_extensions.TypedDict, total=False +): + adGroupCriterion: str + label: str + ownerCustomerId: str + resourceName: str + @typing.type_check_only class GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel( typing_extensions.TypedDict, total=False @@ -1555,6 +1580,15 @@ class GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel( ownerCustomerId: str resourceName: str +@typing.type_check_only +class GoogleAdsSearchads360V0Resources__AdGroupEffectiveLabel( + typing_extensions.TypedDict, total=False +): + adGroup: str + label: str + ownerCustomerId: str + resourceName: str + @typing.type_check_only class GoogleAdsSearchads360V0Resources__AdGroupLabel( typing_extensions.TypedDict, total=False @@ -1924,6 +1958,7 @@ class GoogleAdsSearchads360V0Resources__Campaign( dynamicSearchAdsSetting: ( GoogleAdsSearchads360V0Resources_Campaign_DynamicSearchAdsSetting ) + effectiveLabels: _list[str] endDate: str engineId: str excludedParentAssetFieldTypes: _list[ @@ -2104,6 +2139,15 @@ class GoogleAdsSearchads360V0Resources__CampaignCriterion( userList: GoogleAdsSearchads360V0Common__UserListInfo webpage: GoogleAdsSearchads360V0Common__WebpageInfo +@typing.type_check_only +class GoogleAdsSearchads360V0Resources__CampaignEffectiveLabel( + typing_extensions.TypedDict, total=False +): + campaign: str + label: str + ownerCustomerId: str + resourceName: str + @typing.type_check_only class GoogleAdsSearchads360V0Resources__CampaignLabel( typing_extensions.TypedDict, total=False @@ -2614,6 +2658,14 @@ class GoogleAdsSearchads360V0Resources__UserList( "CRM_BASED", ] +@typing.type_check_only +class GoogleAdsSearchads360V0Resources__UserLocationView( + typing_extensions.TypedDict, total=False +): + countryCriterionId: str + resourceName: str + targetingLocation: bool + @typing.type_check_only class GoogleAdsSearchads360V0Resources__Visit(typing_extensions.TypedDict, total=False): adId: str @@ -2727,13 +2779,18 @@ class GoogleAdsSearchads360V0Services__SearchAds360Row( ) adGroup: GoogleAdsSearchads360V0Resources__AdGroup adGroupAd: GoogleAdsSearchads360V0Resources__AdGroupAd + adGroupAdEffectiveLabel: GoogleAdsSearchads360V0Resources__AdGroupAdEffectiveLabel adGroupAdLabel: GoogleAdsSearchads360V0Resources__AdGroupAdLabel adGroupAsset: GoogleAdsSearchads360V0Resources__AdGroupAsset adGroupAssetSet: GoogleAdsSearchads360V0Resources__AdGroupAssetSet adGroupAudienceView: GoogleAdsSearchads360V0Resources__AdGroupAudienceView adGroupBidModifier: GoogleAdsSearchads360V0Resources__AdGroupBidModifier adGroupCriterion: GoogleAdsSearchads360V0Resources__AdGroupCriterion + adGroupCriterionEffectiveLabel: ( + GoogleAdsSearchads360V0Resources__AdGroupCriterionEffectiveLabel + ) adGroupCriterionLabel: GoogleAdsSearchads360V0Resources__AdGroupCriterionLabel + adGroupEffectiveLabel: GoogleAdsSearchads360V0Resources__AdGroupEffectiveLabel adGroupLabel: GoogleAdsSearchads360V0Resources__AdGroupLabel ageRangeView: GoogleAdsSearchads360V0Resources__AgeRangeView asset: GoogleAdsSearchads360V0Resources__Asset @@ -2756,6 +2813,7 @@ class GoogleAdsSearchads360V0Services__SearchAds360Row( campaignAudienceView: GoogleAdsSearchads360V0Resources__CampaignAudienceView campaignBudget: GoogleAdsSearchads360V0Resources__CampaignBudget campaignCriterion: GoogleAdsSearchads360V0Resources__CampaignCriterion + campaignEffectiveLabel: GoogleAdsSearchads360V0Resources__CampaignEffectiveLabel campaignLabel: GoogleAdsSearchads360V0Resources__CampaignLabel cartDataSalesView: GoogleAdsSearchads360V0Resources__CartDataSalesView conversion: GoogleAdsSearchads360V0Resources__Conversion @@ -2784,6 +2842,7 @@ class GoogleAdsSearchads360V0Services__SearchAds360Row( segments: GoogleAdsSearchads360V0Common__Segments shoppingPerformanceView: GoogleAdsSearchads360V0Resources__ShoppingPerformanceView userList: GoogleAdsSearchads360V0Resources__UserList + userLocationView: GoogleAdsSearchads360V0Resources__UserLocationView visit: GoogleAdsSearchads360V0Resources__Visit webpageView: GoogleAdsSearchads360V0Resources__WebpageView diff --git a/googleapiclient-stubs/_apis/securitycenter/v1/resources.pyi b/googleapiclient-stubs/_apis/securitycenter/v1/resources.pyi index e200d5d3..d11ba216 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1/resources.pyi @@ -202,33 +202,12 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): class LocationsResource(googleapiclient.discovery.Resource): @typing.type_check_only class MuteConfigsResource(googleapiclient.discovery.Resource): - def create( - self, - *, - parent: str, - body: GoogleCloudSecuritycenterV1MuteConfig = ..., - muteConfigId: str = ..., - **kwargs: typing.Any, - ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... - def list( - self, - *, - parent: str, - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> ListMuteConfigsResponseHttpRequest: ... - def list_next( - self, - previous_request: ListMuteConfigsResponseHttpRequest, - previous_response: ListMuteConfigsResponse, - ) -> ListMuteConfigsResponseHttpRequest | None: ... def patch( self, *, @@ -563,6 +542,23 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> SecurityMarksHttpRequest: ... + @typing.type_check_only + class AttackPathsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAttackPathsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAttackPathsResponseHttpRequest, + previous_response: ListAttackPathsResponse, + ) -> ListAttackPathsResponseHttpRequest | None: ... + @typing.type_check_only class BigQueryExportsResource(googleapiclient.discovery.Resource): def create( @@ -708,33 +704,12 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): class LocationsResource(googleapiclient.discovery.Resource): @typing.type_check_only class MuteConfigsResource(googleapiclient.discovery.Resource): - def create( - self, - *, - parent: str, - body: GoogleCloudSecuritycenterV1MuteConfig = ..., - muteConfigId: str = ..., - **kwargs: typing.Any, - ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... - def list( - self, - *, - parent: str, - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> ListMuteConfigsResponseHttpRequest: ... - def list_next( - self, - previous_request: ListMuteConfigsResponseHttpRequest, - previous_response: ListMuteConfigsResponse, - ) -> ListMuteConfigsResponseHttpRequest | None: ... def patch( self, *, @@ -1243,6 +1218,7 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OrganizationSettingsHttpRequest: ... def assets(self) -> AssetsResource: ... + def attackPaths(self) -> AttackPathsResource: ... def bigQueryExports(self) -> BigQueryExportsResource: ... def eventThreatDetectionSettings( self, @@ -1449,33 +1425,12 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): class LocationsResource(googleapiclient.discovery.Resource): @typing.type_check_only class MuteConfigsResource(googleapiclient.discovery.Resource): - def create( - self, - *, - parent: str, - body: GoogleCloudSecuritycenterV1MuteConfig = ..., - muteConfigId: str = ..., - **kwargs: typing.Any, - ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudSecuritycenterV1MuteConfigHttpRequest: ... - def list( - self, - *, - parent: str, - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> ListMuteConfigsResponseHttpRequest: ... - def list_next( - self, - previous_request: ListMuteConfigsResponseHttpRequest, - previous_response: ListMuteConfigsResponse, - ) -> ListMuteConfigsResponseHttpRequest | None: ... def patch( self, *, diff --git a/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi index 3f2aa6d1..5091d3bf 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi @@ -60,7 +60,9 @@ class AssetDiscoveryConfig(typing_extensions.TypedDict, total=False): class Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class AttackExposure(typing_extensions.TypedDict, total=False): @@ -154,6 +156,7 @@ class AzureMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureResourceGroup(typing_extensions.TypedDict, total=False): + id: str name: str @typing.type_check_only @@ -373,6 +376,15 @@ class DataFlowEvent(typing_extensions.TypedDict, total=False): principalEmail: str violatedLocation: str +@typing.type_check_only +class DataRetentionDeletionEvent(typing_extensions.TypedDict, total=False): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class Database(typing_extensions.TypedDict, total=False): displayName: str @@ -387,6 +399,10 @@ class Detection(typing_extensions.TypedDict, total=False): binary: str percentPagesMatched: float +@typing.type_check_only +class Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -401,6 +417,12 @@ class DynamicMuteRecord(typing_extensions.TypedDict, total=False): class EffectiveEventThreatDetectionCustomModule( typing_extensions.TypedDict, total=False ): + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] config: dict[str, typing.Any] description: str displayName: str @@ -421,6 +443,12 @@ class EnvironmentVariable(typing_extensions.TypedDict, total=False): @typing.type_check_only class EventThreatDetectionCustomModule(typing_extensions.TypedDict, total=False): ancestorModule: str + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] config: dict[str, typing.Any] description: str displayName: str @@ -478,8 +506,10 @@ class Finding(typing_extensions.TypedDict, total=False): createTime: str dataAccessEvents: _list[DataAccessEvent] dataFlowEvents: _list[DataFlowEvent] + dataRetentionDeletionEvents: _list[DataRetentionDeletionEvent] database: Database description: str + disk: Disk eventTime: str exfiltration: Exfiltration externalSystems: dict[str, typing.Any] @@ -599,6 +629,12 @@ class GoogleCloudSecuritycenterV1CustomOutputSpec( class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -716,6 +752,12 @@ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): ancestorModule: str + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -848,7 +890,9 @@ class GoogleCloudSecuritycenterV2Application(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class GoogleCloudSecuritycenterV2AttackExposure( @@ -908,6 +952,7 @@ class GoogleCloudSecuritycenterV2AzureMetadata( class GoogleCloudSecuritycenterV2AzureResourceGroup( typing_extensions.TypedDict, total=False ): + id: str name: str @typing.type_check_only @@ -1116,6 +1161,17 @@ class GoogleCloudSecuritycenterV2DataFlowEvent( principalEmail: str violatedLocation: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent( + typing_extensions.TypedDict, total=False +): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class GoogleCloudSecuritycenterV2Database(typing_extensions.TypedDict, total=False): displayName: str @@ -1130,6 +1186,10 @@ class GoogleCloudSecuritycenterV2Detection(typing_extensions.TypedDict, total=Fa binary: str percentPagesMatched: float +@typing.type_check_only +class GoogleCloudSecuritycenterV2Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -1206,8 +1266,12 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals createTime: str dataAccessEvents: _list[GoogleCloudSecuritycenterV2DataAccessEvent] dataFlowEvents: _list[GoogleCloudSecuritycenterV2DataFlowEvent] + dataRetentionDeletionEvents: _list[ + GoogleCloudSecuritycenterV2DataRetentionDeletionEvent + ] database: GoogleCloudSecuritycenterV2Database description: str + disk: GoogleCloudSecuritycenterV2Disk eventTime: str exfiltration: GoogleCloudSecuritycenterV2Exfiltration externalSystems: dict[str, typing.Any] @@ -1286,6 +1350,137 @@ class GoogleCloudSecuritycenterV2Indicator(typing_extensions.TypedDict, total=Fa signatures: _list[GoogleCloudSecuritycenterV2ProcessSignature] uris: _list[str] +@typing.type_check_only +class GoogleCloudSecuritycenterV2Issue(typing_extensions.TypedDict, total=False): + createTime: str + description: str + detection: str + domains: _list[GoogleCloudSecuritycenterV2IssueDomain] + exposureScore: float + issueType: typing_extensions.Literal[ + "ISSUE_TYPE_UNSPECIFIED", "CHOKEPOINT", "TOXIC_COMBINATION", "INSIGHT" + ] + lastObservationTime: str + mute: GoogleCloudSecuritycenterV2IssueMute + name: str + primaryResource: GoogleCloudSecuritycenterV2IssueResource + relatedFindings: _list[GoogleCloudSecuritycenterV2IssueFinding] + remediations: _list[str] + secondaryResources: _list[GoogleCloudSecuritycenterV2IssueResource] + securityContexts: _list[GoogleCloudSecuritycenterV2IssueSecurityContext] + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "HIGH", "MEDIUM", "LOW" + ] + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + updateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueDomain(typing_extensions.TypedDict, total=False): + domainCategory: typing_extensions.Literal[ + "DOMAIN_CATEGORY_UNSPECIFIED", + "AI", + "CODE", + "CONTAINER", + "DATA", + "IDENTITY_AND_ACCESS", + "VULNERABILITY", + ] + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFinding(typing_extensions.TypedDict, total=False): + cve: GoogleCloudSecuritycenterV2IssueFindingCve + name: str + securityBulletin: GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingCve( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueMute(typing_extensions.TypedDict, total=False): + muteInitiator: str + muteReason: str + muteState: typing_extensions.Literal["MUTE_STATE_UNSPECIFIED", "NOT_MUTED", "MUTED"] + muteUpdateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResource( + typing_extensions.TypedDict, total=False +): + awsMetadata: GoogleCloudSecuritycenterV2IssueResourceAwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2IssueResourceAzureMetadata + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] + displayName: str + googleCloudMetadata: GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata + name: str + type: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadata( + typing_extensions.TypedDict, total=False +): + account: GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount( + typing_extensions.TypedDict, total=False +): + id: str + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadata( + typing_extensions.TypedDict, total=False +): + subscription: GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata( + typing_extensions.TypedDict, total=False +): + projectId: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContext( + typing_extensions.TypedDict, total=False +): + aggregatedCount: GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount + context: GoogleCloudSecuritycenterV2IssueSecurityContextContext + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount( + typing_extensions.TypedDict, total=False +): + key: str + value: int + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextContext( + typing_extensions.TypedDict, total=False +): + type: str + values: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2KernelRootkit( typing_extensions.TypedDict, total=False @@ -1399,6 +1594,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1415,6 +1611,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1485,6 +1682,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1501,6 +1699,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -2079,6 +2278,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -2095,6 +2295,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -2165,6 +2366,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -2181,6 +2383,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", diff --git a/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi index f9603f2b..ef88ac43 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi @@ -57,7 +57,9 @@ class AssetDiscoveryConfig(typing_extensions.TypedDict, total=False): class Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class AttackExposure(typing_extensions.TypedDict, total=False): @@ -117,6 +119,7 @@ class AzureMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureResourceGroup(typing_extensions.TypedDict, total=False): + id: str name: str @typing.type_check_only @@ -309,6 +312,15 @@ class DataFlowEvent(typing_extensions.TypedDict, total=False): principalEmail: str violatedLocation: str +@typing.type_check_only +class DataRetentionDeletionEvent(typing_extensions.TypedDict, total=False): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class Database(typing_extensions.TypedDict, total=False): displayName: str @@ -323,6 +335,10 @@ class Detection(typing_extensions.TypedDict, total=False): binary: str percentPagesMatched: float +@typing.type_check_only +class Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -387,8 +403,10 @@ class Finding(typing_extensions.TypedDict, total=False): createTime: str dataAccessEvents: _list[DataAccessEvent] dataFlowEvents: _list[DataFlowEvent] + dataRetentionDeletionEvents: _list[DataRetentionDeletionEvent] database: Database description: str + disk: Disk eventTime: str exfiltration: Exfiltration externalSystems: dict[str, typing.Any] @@ -508,6 +526,12 @@ class GoogleCloudSecuritycenterV1CustomOutputSpec( class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -625,6 +649,12 @@ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): ancestorModule: str + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -777,7 +807,9 @@ class GoogleCloudSecuritycenterV2Application(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class GoogleCloudSecuritycenterV2AttackExposure( @@ -837,6 +869,7 @@ class GoogleCloudSecuritycenterV2AzureMetadata( class GoogleCloudSecuritycenterV2AzureResourceGroup( typing_extensions.TypedDict, total=False ): + id: str name: str @typing.type_check_only @@ -1045,6 +1078,17 @@ class GoogleCloudSecuritycenterV2DataFlowEvent( principalEmail: str violatedLocation: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent( + typing_extensions.TypedDict, total=False +): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class GoogleCloudSecuritycenterV2Database(typing_extensions.TypedDict, total=False): displayName: str @@ -1059,6 +1103,10 @@ class GoogleCloudSecuritycenterV2Detection(typing_extensions.TypedDict, total=Fa binary: str percentPagesMatched: float +@typing.type_check_only +class GoogleCloudSecuritycenterV2Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -1135,8 +1183,12 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals createTime: str dataAccessEvents: _list[GoogleCloudSecuritycenterV2DataAccessEvent] dataFlowEvents: _list[GoogleCloudSecuritycenterV2DataFlowEvent] + dataRetentionDeletionEvents: _list[ + GoogleCloudSecuritycenterV2DataRetentionDeletionEvent + ] database: GoogleCloudSecuritycenterV2Database description: str + disk: GoogleCloudSecuritycenterV2Disk eventTime: str exfiltration: GoogleCloudSecuritycenterV2Exfiltration externalSystems: dict[str, typing.Any] @@ -1215,6 +1267,137 @@ class GoogleCloudSecuritycenterV2Indicator(typing_extensions.TypedDict, total=Fa signatures: _list[GoogleCloudSecuritycenterV2ProcessSignature] uris: _list[str] +@typing.type_check_only +class GoogleCloudSecuritycenterV2Issue(typing_extensions.TypedDict, total=False): + createTime: str + description: str + detection: str + domains: _list[GoogleCloudSecuritycenterV2IssueDomain] + exposureScore: float + issueType: typing_extensions.Literal[ + "ISSUE_TYPE_UNSPECIFIED", "CHOKEPOINT", "TOXIC_COMBINATION", "INSIGHT" + ] + lastObservationTime: str + mute: GoogleCloudSecuritycenterV2IssueMute + name: str + primaryResource: GoogleCloudSecuritycenterV2IssueResource + relatedFindings: _list[GoogleCloudSecuritycenterV2IssueFinding] + remediations: _list[str] + secondaryResources: _list[GoogleCloudSecuritycenterV2IssueResource] + securityContexts: _list[GoogleCloudSecuritycenterV2IssueSecurityContext] + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "HIGH", "MEDIUM", "LOW" + ] + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + updateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueDomain(typing_extensions.TypedDict, total=False): + domainCategory: typing_extensions.Literal[ + "DOMAIN_CATEGORY_UNSPECIFIED", + "AI", + "CODE", + "CONTAINER", + "DATA", + "IDENTITY_AND_ACCESS", + "VULNERABILITY", + ] + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFinding(typing_extensions.TypedDict, total=False): + cve: GoogleCloudSecuritycenterV2IssueFindingCve + name: str + securityBulletin: GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingCve( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueMute(typing_extensions.TypedDict, total=False): + muteInitiator: str + muteReason: str + muteState: typing_extensions.Literal["MUTE_STATE_UNSPECIFIED", "NOT_MUTED", "MUTED"] + muteUpdateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResource( + typing_extensions.TypedDict, total=False +): + awsMetadata: GoogleCloudSecuritycenterV2IssueResourceAwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2IssueResourceAzureMetadata + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] + displayName: str + googleCloudMetadata: GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata + name: str + type: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadata( + typing_extensions.TypedDict, total=False +): + account: GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount( + typing_extensions.TypedDict, total=False +): + id: str + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadata( + typing_extensions.TypedDict, total=False +): + subscription: GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata( + typing_extensions.TypedDict, total=False +): + projectId: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContext( + typing_extensions.TypedDict, total=False +): + aggregatedCount: GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount + context: GoogleCloudSecuritycenterV2IssueSecurityContextContext + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount( + typing_extensions.TypedDict, total=False +): + key: str + value: int + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextContext( + typing_extensions.TypedDict, total=False +): + type: str + values: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2KernelRootkit( typing_extensions.TypedDict, total=False @@ -1328,6 +1511,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1344,6 +1528,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1414,6 +1599,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1430,6 +1616,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1914,6 +2101,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1930,6 +2118,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -2000,6 +2189,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -2016,6 +2206,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", diff --git a/googleapiclient-stubs/_apis/securitycenter/v1beta2/resources.pyi b/googleapiclient-stubs/_apis/securitycenter/v1beta2/resources.pyi index 796ae774..d00251cd 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1beta2/resources.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1beta2/resources.pyi @@ -20,13 +20,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> ContainerThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class EventThreatDetectionSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> EventThreatDetectionSettingsHttpRequest: ... @typing.type_check_only @@ -42,7 +50,11 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> SecurityHealthAnalyticsSettingsHttpRequest: ... @typing.type_check_only @@ -50,13 +62,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> VirtualMachineThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class WebSecurityScannerSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> WebSecurityScannerSettingsHttpRequest: ... def getContainerThreatDetectionSettings( @@ -152,13 +172,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> ContainerThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class EventThreatDetectionSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> EventThreatDetectionSettingsHttpRequest: ... @typing.type_check_only @@ -174,7 +202,11 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> SecurityHealthAnalyticsSettingsHttpRequest: ... @typing.type_check_only @@ -182,13 +214,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> VirtualMachineThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class WebSecurityScannerSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> WebSecurityScannerSettingsHttpRequest: ... def getContainerThreatDetectionSettings( @@ -287,13 +327,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> ContainerThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class EventThreatDetectionSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> EventThreatDetectionSettingsHttpRequest: ... @typing.type_check_only @@ -305,7 +353,11 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> ContainerThreatDetectionSettingsHttpRequest: ... def getContainerThreatDetectionSettings( @@ -338,7 +390,11 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> SecurityHealthAnalyticsSettingsHttpRequest: ... @typing.type_check_only @@ -346,13 +402,21 @@ class SecurityCommandCenterResource(googleapiclient.discovery.Resource): googleapiclient.discovery.Resource ): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> VirtualMachineThreatDetectionSettingsHttpRequest: ... @typing.type_check_only class WebSecurityScannerSettingsResource(googleapiclient.discovery.Resource): def calculate( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + showEligibleModulesOnly: bool = ..., + **kwargs: typing.Any, ) -> WebSecurityScannerSettingsHttpRequest: ... def getContainerThreatDetectionSettings( diff --git a/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi index 16caba3c..aaba4760 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi @@ -41,7 +41,9 @@ class Application(typing_extensions.TypedDict, total=False): class Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class AttackExposure(typing_extensions.TypedDict, total=False): @@ -89,6 +91,7 @@ class AzureMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureResourceGroup(typing_extensions.TypedDict, total=False): + id: str name: str @typing.type_check_only @@ -289,6 +292,15 @@ class DataFlowEvent(typing_extensions.TypedDict, total=False): principalEmail: str violatedLocation: str +@typing.type_check_only +class DataRetentionDeletionEvent(typing_extensions.TypedDict, total=False): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class Database(typing_extensions.TypedDict, total=False): displayName: str @@ -311,6 +323,10 @@ class Detection(typing_extensions.TypedDict, total=False): binary: str percentPagesMatched: float +@typing.type_check_only +class Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -381,8 +397,10 @@ class Finding(typing_extensions.TypedDict, total=False): createTime: str dataAccessEvents: _list[DataAccessEvent] dataFlowEvents: _list[DataFlowEvent] + dataRetentionDeletionEvents: _list[DataRetentionDeletionEvent] database: Database description: str + disk: Disk eventTime: str exfiltration: Exfiltration externalSystems: dict[str, typing.Any] @@ -494,6 +512,12 @@ class GoogleCloudSecuritycenterV1CustomOutputSpec( class GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -611,6 +635,12 @@ class GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule( typing_extensions.TypedDict, total=False ): ancestorModule: str + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] customConfig: GoogleCloudSecuritycenterV1CustomConfig displayName: str enablementState: typing_extensions.Literal[ @@ -743,7 +773,9 @@ class GoogleCloudSecuritycenterV2Application(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2Attack(typing_extensions.TypedDict, total=False): classification: str volumeBps: int + volumeBpsLong: str volumePps: int + volumePpsLong: str @typing.type_check_only class GoogleCloudSecuritycenterV2AttackExposure( @@ -803,6 +835,7 @@ class GoogleCloudSecuritycenterV2AzureMetadata( class GoogleCloudSecuritycenterV2AzureResourceGroup( typing_extensions.TypedDict, total=False ): + id: str name: str @typing.type_check_only @@ -1011,6 +1044,17 @@ class GoogleCloudSecuritycenterV2DataFlowEvent( principalEmail: str violatedLocation: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DataRetentionDeletionEvent( + typing_extensions.TypedDict, total=False +): + dataObjectCount: str + eventDetectionTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "EVENT_TYPE_MAX_TTL_EXCEEDED" + ] + maxRetentionAllowed: str + @typing.type_check_only class GoogleCloudSecuritycenterV2Database(typing_extensions.TypedDict, total=False): displayName: str @@ -1025,6 +1069,10 @@ class GoogleCloudSecuritycenterV2Detection(typing_extensions.TypedDict, total=Fa binary: str percentPagesMatched: float +@typing.type_check_only +class GoogleCloudSecuritycenterV2Disk(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str @@ -1101,8 +1149,12 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals createTime: str dataAccessEvents: _list[GoogleCloudSecuritycenterV2DataAccessEvent] dataFlowEvents: _list[GoogleCloudSecuritycenterV2DataFlowEvent] + dataRetentionDeletionEvents: _list[ + GoogleCloudSecuritycenterV2DataRetentionDeletionEvent + ] database: GoogleCloudSecuritycenterV2Database description: str + disk: GoogleCloudSecuritycenterV2Disk eventTime: str exfiltration: GoogleCloudSecuritycenterV2Exfiltration externalSystems: dict[str, typing.Any] @@ -1181,6 +1233,137 @@ class GoogleCloudSecuritycenterV2Indicator(typing_extensions.TypedDict, total=Fa signatures: _list[GoogleCloudSecuritycenterV2ProcessSignature] uris: _list[str] +@typing.type_check_only +class GoogleCloudSecuritycenterV2Issue(typing_extensions.TypedDict, total=False): + createTime: str + description: str + detection: str + domains: _list[GoogleCloudSecuritycenterV2IssueDomain] + exposureScore: float + issueType: typing_extensions.Literal[ + "ISSUE_TYPE_UNSPECIFIED", "CHOKEPOINT", "TOXIC_COMBINATION", "INSIGHT" + ] + lastObservationTime: str + mute: GoogleCloudSecuritycenterV2IssueMute + name: str + primaryResource: GoogleCloudSecuritycenterV2IssueResource + relatedFindings: _list[GoogleCloudSecuritycenterV2IssueFinding] + remediations: _list[str] + secondaryResources: _list[GoogleCloudSecuritycenterV2IssueResource] + securityContexts: _list[GoogleCloudSecuritycenterV2IssueSecurityContext] + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "HIGH", "MEDIUM", "LOW" + ] + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + updateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueDomain(typing_extensions.TypedDict, total=False): + domainCategory: typing_extensions.Literal[ + "DOMAIN_CATEGORY_UNSPECIFIED", + "AI", + "CODE", + "CONTAINER", + "DATA", + "IDENTITY_AND_ACCESS", + "VULNERABILITY", + ] + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFinding(typing_extensions.TypedDict, total=False): + cve: GoogleCloudSecuritycenterV2IssueFindingCve + name: str + securityBulletin: GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingCve( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueFindingSecurityBulletin( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueMute(typing_extensions.TypedDict, total=False): + muteInitiator: str + muteReason: str + muteState: typing_extensions.Literal["MUTE_STATE_UNSPECIFIED", "NOT_MUTED", "MUTED"] + muteUpdateTime: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResource( + typing_extensions.TypedDict, total=False +): + awsMetadata: GoogleCloudSecuritycenterV2IssueResourceAwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2IssueResourceAzureMetadata + cloudProvider: typing_extensions.Literal[ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE", + ] + displayName: str + googleCloudMetadata: GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata + name: str + type: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadata( + typing_extensions.TypedDict, total=False +): + account: GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAwsMetadataAwsAccount( + typing_extensions.TypedDict, total=False +): + id: str + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadata( + typing_extensions.TypedDict, total=False +): + subscription: GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceAzureMetadataAzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata( + typing_extensions.TypedDict, total=False +): + projectId: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContext( + typing_extensions.TypedDict, total=False +): + aggregatedCount: GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount + context: GoogleCloudSecuritycenterV2IssueSecurityContextContext + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextAggregatedCount( + typing_extensions.TypedDict, total=False +): + key: str + value: int + +@typing.type_check_only +class GoogleCloudSecuritycenterV2IssueSecurityContextContext( + typing_extensions.TypedDict, total=False +): + type: str + values: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2KernelRootkit( typing_extensions.TypedDict, total=False @@ -1294,6 +1477,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1310,6 +1494,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1380,6 +1565,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1396,6 +1582,7 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1815,6 +2002,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1831,6 +2019,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", @@ -1901,6 +2090,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACCOUNT_ACCESS_REMOVAL", "STEAL_WEB_SESSION_COOKIE", "CREATE_OR_MODIFY_SYSTEM_PROCESS", + "EVENT_TRIGGERED_EXECUTION", "ABUSE_ELEVATION_CONTROL_MECHANISM", "UNSECURED_CREDENTIALS", "MODIFY_AUTHENTICATION_PROCESS", @@ -1917,6 +2107,7 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", "CONTAINER_ADMINISTRATION_COMMAND", + "DEPLOY_CONTAINER", "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", diff --git a/googleapiclient-stubs/_apis/securityposture/__init__.pyi b/googleapiclient-stubs/_apis/securityposture/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/securityposture/v1/__init__.pyi b/googleapiclient-stubs/_apis/securityposture/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/securityposture/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/securityposture/v1/resources.pyi b/googleapiclient-stubs/_apis/securityposture/v1/resources.pyi new file mode 100644 index 00000000..08619812 --- /dev/null +++ b/googleapiclient-stubs/_apis/securityposture/v1/resources.pyi @@ -0,0 +1,353 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class SecurityPostureResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + @typing.type_check_only + class PostureDeploymentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: PostureDeployment = ..., + postureDeploymentId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, etag: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> PostureDeploymentHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPostureDeploymentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPostureDeploymentsResponseHttpRequest, + previous_response: ListPostureDeploymentsResponse, + ) -> ListPostureDeploymentsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: PostureDeployment = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class PostureTemplatesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, revisionId: str = ..., **kwargs: typing.Any + ) -> PostureTemplateHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPostureTemplatesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPostureTemplatesResponseHttpRequest, + previous_response: ListPostureTemplatesResponse, + ) -> ListPostureTemplatesResponseHttpRequest | None: ... + + @typing.type_check_only + class PosturesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Posture = ..., + postureId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, etag: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def extract( + self, + *, + parent: str, + body: ExtractPostureRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, revisionId: str = ..., **kwargs: typing.Any + ) -> PostureHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPosturesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPosturesResponseHttpRequest, + previous_response: ListPosturesResponse, + ) -> ListPosturesResponseHttpRequest | None: ... + def listRevisions( + self, + *, + name: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPostureRevisionsResponseHttpRequest: ... + def listRevisions_next( + self, + previous_request: ListPostureRevisionsResponseHttpRequest, + previous_response: ListPostureRevisionsResponse, + ) -> ListPostureRevisionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Posture = ..., + revisionId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class ReportsResource(googleapiclient.discovery.Resource): + def createIaCValidationReport( + self, + *, + parent: str, + body: CreateIaCValidationReportRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ReportHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListReportsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListReportsResponseHttpRequest, + previous_response: ListReportsResponse, + ) -> ListReportsResponseHttpRequest | None: ... + + def operations(self) -> OperationsResource: ... + def postureDeployments(self) -> PostureDeploymentsResource: ... + def postureTemplates(self) -> PostureTemplatesResource: ... + def postures(self) -> PosturesResource: ... + def reports(self) -> ReportsResource: ... + + def locations(self) -> LocationsResource: ... + + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def organizations(self) -> OrganizationsResource: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class ListPostureDeploymentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPostureDeploymentsResponse: ... + +@typing.type_check_only +class ListPostureRevisionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPostureRevisionsResponse: ... + +@typing.type_check_only +class ListPostureTemplatesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPostureTemplatesResponse: ... + +@typing.type_check_only +class ListPosturesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPosturesResponse: ... + +@typing.type_check_only +class ListReportsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListReportsResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... + +@typing.type_check_only +class PostureHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Posture: ... + +@typing.type_check_only +class PostureDeploymentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> PostureDeployment: ... + +@typing.type_check_only +class PostureTemplateHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> PostureTemplate: ... + +@typing.type_check_only +class ReportHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Report: ... diff --git a/googleapiclient-stubs/_apis/securityposture/v1/schemas.pyi b/googleapiclient-stubs/_apis/securityposture/v1/schemas.pyi new file mode 100644 index 00000000..02587027 --- /dev/null +++ b/googleapiclient-stubs/_apis/securityposture/v1/schemas.pyi @@ -0,0 +1,324 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class AssetDetails(typing_extensions.TypedDict, total=False): + asset: str + assetType: str + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ComplianceStandard(typing_extensions.TypedDict, total=False): + control: str + standard: str + +@typing.type_check_only +class Constraint(typing_extensions.TypedDict, total=False): + orgPolicyConstraint: OrgPolicyConstraint + orgPolicyConstraintCustom: OrgPolicyConstraintCustom + securityHealthAnalyticsCustomModule: SecurityHealthAnalyticsCustomModule + securityHealthAnalyticsModule: SecurityHealthAnalyticsModule + +@typing.type_check_only +class CreateIaCValidationReportRequest(typing_extensions.TypedDict, total=False): + iac: IaC + +@typing.type_check_only +class CustomConfig(typing_extensions.TypedDict, total=False): + customOutput: CustomOutputSpec + description: str + predicate: Expr + recommendation: str + resourceSelector: ResourceSelector + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "HIGH", "MEDIUM", "LOW" + ] + +@typing.type_check_only +class CustomOutputSpec(typing_extensions.TypedDict, total=False): + properties: _list[Property] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Expr(typing_extensions.TypedDict, total=False): + description: str + expression: str + location: str + title: str + +@typing.type_check_only +class ExtractPostureRequest(typing_extensions.TypedDict, total=False): + postureId: str + workload: str + +@typing.type_check_only +class GoogleCloudSecuritypostureV1CustomConstraint( + typing_extensions.TypedDict, total=False +): + actionType: typing_extensions.Literal["ACTION_TYPE_UNSPECIFIED", "ALLOW", "DENY"] + condition: str + description: str + displayName: str + methodTypes: _list[ + typing_extensions.Literal[ + "METHOD_TYPE_UNSPECIFIED", "CREATE", "UPDATE", "DELETE" + ] + ] + name: str + resourceTypes: _list[str] + updateTime: str + +@typing.type_check_only +class GoogleCloudSecuritypostureV1PolicyRule(typing_extensions.TypedDict, total=False): + allowAll: bool + condition: Expr + denyAll: bool + enforce: bool + parameters: dict[str, typing.Any] + resourceTypes: ResourceTypes + values: GoogleCloudSecuritypostureV1PolicyRuleStringValues + +@typing.type_check_only +class GoogleCloudSecuritypostureV1PolicyRuleStringValues( + typing_extensions.TypedDict, total=False +): + allowedValues: _list[str] + deniedValues: _list[str] + +@typing.type_check_only +class IaC(typing_extensions.TypedDict, total=False): + tfPlan: str + +@typing.type_check_only +class IaCValidationReport(typing_extensions.TypedDict, total=False): + note: str + violations: _list[Violation] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class ListPostureDeploymentsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + postureDeployments: _list[PostureDeployment] + unreachable: _list[str] + +@typing.type_check_only +class ListPostureRevisionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + revisions: _list[Posture] + +@typing.type_check_only +class ListPostureTemplatesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + postureTemplates: _list[PostureTemplate] + +@typing.type_check_only +class ListPosturesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + postures: _list[Posture] + unreachable: _list[str] + +@typing.type_check_only +class ListReportsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + reports: _list[Report] + unreachable: _list[str] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + errorMessage: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class OrgPolicyConstraint(typing_extensions.TypedDict, total=False): + cannedConstraintId: str + policyRules: _list[GoogleCloudSecuritypostureV1PolicyRule] + +@typing.type_check_only +class OrgPolicyConstraintCustom(typing_extensions.TypedDict, total=False): + customConstraint: GoogleCloudSecuritypostureV1CustomConstraint + policyRules: _list[GoogleCloudSecuritypostureV1PolicyRule] + +@typing.type_check_only +class Policy(typing_extensions.TypedDict, total=False): + complianceStandards: _list[ComplianceStandard] + constraint: Constraint + description: str + policyId: str + +@typing.type_check_only +class PolicyDetails(typing_extensions.TypedDict, total=False): + complianceStandards: _list[str] + constraint: str + constraintType: typing_extensions.Literal[ + "CONSTRAINT_TYPE_UNSPECIFIED", + "SECURITY_HEALTH_ANALYTICS_CUSTOM_MODULE", + "ORG_POLICY_CUSTOM", + "SECURITY_HEALTH_ANALYTICS_MODULE", + "ORG_POLICY", + "REGO_POLICY", + ] + description: str + +@typing.type_check_only +class PolicySet(typing_extensions.TypedDict, total=False): + description: str + policies: _list[Policy] + policySetId: str + +@typing.type_check_only +class Posture(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + categories: _list[ + typing_extensions.Literal["CATEGORY_UNSPECIFIED", "AI", "AWS", "GCP", "AZURE"] + ] + createTime: str + description: str + etag: str + name: str + policySets: _list[PolicySet] + reconciling: bool + revisionId: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "DEPRECATED", "DRAFT", "ACTIVE" + ] + updateTime: str + +@typing.type_check_only +class PostureDeployment(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + categories: _list[ + typing_extensions.Literal["CATEGORY_UNSPECIFIED", "AI", "AWS", "GCP", "AZURE"] + ] + createTime: str + description: str + desiredPostureId: str + desiredPostureRevisionId: str + etag: str + failureMessage: str + name: str + postureId: str + postureRevisionId: str + reconciling: bool + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "DELETING", + "UPDATING", + "ACTIVE", + "CREATE_FAILED", + "UPDATE_FAILED", + "DELETE_FAILED", + ] + targetResource: str + updateTime: str + +@typing.type_check_only +class PostureDetails(typing_extensions.TypedDict, total=False): + policySet: str + posture: str + postureDeployment: str + postureDeploymentTargetResource: str + postureRevisionId: str + +@typing.type_check_only +class PostureTemplate(typing_extensions.TypedDict, total=False): + categories: _list[ + typing_extensions.Literal["CATEGORY_UNSPECIFIED", "AI", "AWS", "GCP", "AZURE"] + ] + description: str + name: str + policySets: _list[PolicySet] + revisionId: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "DEPRECATED"] + +@typing.type_check_only +class Property(typing_extensions.TypedDict, total=False): + name: str + valueExpression: Expr + +@typing.type_check_only +class Report(typing_extensions.TypedDict, total=False): + createTime: str + iacValidationReport: IaCValidationReport + name: str + updateTime: str + +@typing.type_check_only +class ResourceSelector(typing_extensions.TypedDict, total=False): + resourceTypes: _list[str] + +@typing.type_check_only +class ResourceTypes(typing_extensions.TypedDict, total=False): + included: _list[str] + +@typing.type_check_only +class SecurityHealthAnalyticsCustomModule(typing_extensions.TypedDict, total=False): + config: CustomConfig + displayName: str + id: str + moduleEnablementState: typing_extensions.Literal[ + "ENABLEMENT_STATE_UNSPECIFIED", "ENABLED", "DISABLED" + ] + +@typing.type_check_only +class SecurityHealthAnalyticsModule(typing_extensions.TypedDict, total=False): + moduleEnablementState: typing_extensions.Literal[ + "ENABLEMENT_STATE_UNSPECIFIED", "ENABLED", "DISABLED" + ] + moduleName: str + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str + +@typing.type_check_only +class Violation(typing_extensions.TypedDict, total=False): + assetId: str + nextSteps: str + policyId: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "HIGH", "MEDIUM", "LOW" + ] + violatedAsset: AssetDetails + violatedPolicy: PolicyDetails + violatedPosture: PostureDetails diff --git a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1/schemas.pyi index c6b0aace..dfee8419 100644 --- a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1/schemas.pyi @@ -124,6 +124,7 @@ class CommonLanguageSettings(typing_extensions.TypedDict, total=False): ] ] referenceDocsUri: str + selectiveGapicGeneration: SelectiveGapicGeneration @typing.type_check_only class Context(typing_extensions.TypedDict, total=False): @@ -171,6 +172,7 @@ class DeleteTenantProjectRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -224,6 +226,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -273,6 +276,7 @@ class FieldPolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class Http(typing_extensions.TypedDict, total=False): @@ -557,6 +561,10 @@ class SearchTenancyUnitsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str tenancyUnits: _list[TenancyUnit] +@typing.type_check_only +class SelectiveGapicGeneration(typing_extensions.TypedDict, total=False): + methods: _list[str] + @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): apis: _list[Api] diff --git a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi index 25d15a18..ee17b2a2 100644 --- a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi @@ -101,6 +101,7 @@ class CommonLanguageSettings(typing_extensions.TypedDict, total=False): ] ] referenceDocsUri: str + selectiveGapicGeneration: SelectiveGapicGeneration @typing.type_check_only class Context(typing_extensions.TypedDict, total=False): @@ -140,6 +141,7 @@ class CustomHttpPattern(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -193,6 +195,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -242,6 +245,7 @@ class FieldPolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class Http(typing_extensions.TypedDict, total=False): @@ -502,6 +506,10 @@ class QuotaLimit(typing_extensions.TypedDict, total=False): class RubySettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings +@typing.type_check_only +class SelectiveGapicGeneration(typing_extensions.TypedDict, total=False): + methods: _list[str] + @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): apis: _list[Api] @@ -643,6 +651,7 @@ class V1Beta1ImportProducerQuotaPoliciesRequest( ): force: bool forceJustification: str + forceSkipQuotaUsageCheck: bool inlineSource: V1Beta1PolicyInlineSource validateOnly: bool diff --git a/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi b/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi index 8e084b1a..4b13b5e8 100644 --- a/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi @@ -55,7 +55,6 @@ class Auth(typing_extensions.TypedDict, total=False): accessLevels: _list[str] audiences: _list[str] claims: dict[str, typing.Any] - credentialId: str presenter: str principal: str diff --git a/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi b/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi index 2c514049..cf74c039 100644 --- a/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi @@ -45,7 +45,6 @@ class Auth(typing_extensions.TypedDict, total=False): accessLevels: _list[str] audiences: _list[str] claims: dict[str, typing.Any] - credentialId: str presenter: str principal: str @@ -82,6 +81,7 @@ class CheckRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class CheckResponse(typing_extensions.TypedDict, total=False): + dynamicMetadata: dict[str, typing.Any] headers: dict[str, typing.Any] status: Status diff --git a/googleapiclient-stubs/_apis/servicemanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/servicemanagement/v1/schemas.pyi index 5e974aad..b22525d2 100644 --- a/googleapiclient-stubs/_apis/servicemanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicemanagement/v1/schemas.pyi @@ -127,6 +127,7 @@ class CommonLanguageSettings(typing_extensions.TypedDict, total=False): ] ] referenceDocsUri: str + selectiveGapicGeneration: SelectiveGapicGeneration @typing.type_check_only class ConfigChange(typing_extensions.TypedDict, total=False): @@ -207,6 +208,7 @@ class Diagnostic(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -260,6 +262,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -341,6 +344,7 @@ class GetPolicyOptions(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class Http(typing_extensions.TypedDict, total=False): @@ -668,6 +672,10 @@ class Rollout(typing_extensions.TypedDict, total=False): class RubySettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings +@typing.type_check_only +class SelectiveGapicGeneration(typing_extensions.TypedDict, total=False): + methods: _list[str] + @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): apis: _list[Api] diff --git a/googleapiclient-stubs/_apis/servicenetworking/v1/schemas.pyi b/googleapiclient-stubs/_apis/servicenetworking/v1/schemas.pyi index 2807d9de..7ce85cde 100644 --- a/googleapiclient-stubs/_apis/servicenetworking/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicenetworking/v1/schemas.pyi @@ -269,6 +269,7 @@ class DnsZonePair(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -326,6 +327,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -380,6 +382,7 @@ class GetDnsZoneResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange( diff --git a/googleapiclient-stubs/_apis/servicenetworking/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/servicenetworking/v1beta/schemas.pyi index 9adf48be..88514d43 100644 --- a/googleapiclient-stubs/_apis/servicenetworking/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicenetworking/v1beta/schemas.pyi @@ -220,6 +220,7 @@ class DnsZone(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -270,6 +271,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -319,6 +321,7 @@ class FieldPolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class GoogleCloudServicenetworkingV1ConsumerConfigReservedRange( diff --git a/googleapiclient-stubs/_apis/serviceusage/v1/schemas.pyi b/googleapiclient-stubs/_apis/serviceusage/v1/schemas.pyi index 904c46dd..f9f7a0df 100644 --- a/googleapiclient-stubs/_apis/serviceusage/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/serviceusage/v1/schemas.pyi @@ -28,6 +28,7 @@ class Analysis(typing_extensions.TypedDict, total=False): "ANALYSIS_TYPE_UNSPECIFIED", "ANALYSIS_TYPE_DEPENDENCY", "ANALYSIS_TYPE_RESOURCE_USAGE", + "ANALYSIS_TYPE_RESOURCE_EXISTENCE", ] displayName: str service: str @@ -165,6 +166,7 @@ class CommonLanguageSettings(typing_extensions.TypedDict, total=False): ] ] referenceDocsUri: str + selectiveGapicGeneration: SelectiveGapicGeneration @typing.type_check_only class ConsumerPolicy(typing_extensions.TypedDict, total=False): @@ -229,6 +231,7 @@ class DisableServiceResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -303,6 +306,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -360,6 +364,7 @@ class GetServiceIdentityResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class GoogleApiService(typing_extensions.TypedDict, total=False): @@ -452,6 +457,62 @@ class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalysis(typing_extensions.TypedDict, total=False): + analysis: GoogleApiServiceusageV2betaAnalysisResult + analysisType: typing_extensions.Literal[ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE", + ] + displayName: str + service: str + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalysisResult( + typing_extensions.TypedDict, total=False +): + blockers: _list[GoogleApiServiceusageV2betaImpact] + warnings: _list[GoogleApiServiceusageV2betaImpact] + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse( + typing_extensions.TypedDict, total=False +): + analysis: _list[GoogleApiServiceusageV2betaAnalysis] + +@typing.type_check_only +class GoogleApiServiceusageV2betaConsumerPolicy( + typing_extensions.TypedDict, total=False +): + annotations: dict[str, typing.Any] + createTime: str + enableRules: _list[GoogleApiServiceusageV2betaEnableRule] + etag: str + name: str + updateTime: str + +@typing.type_check_only +class GoogleApiServiceusageV2betaEnableRule(typing_extensions.TypedDict, total=False): + services: _list[str] + +@typing.type_check_only +class GoogleApiServiceusageV2betaImpact(typing_extensions.TypedDict, total=False): + detail: str + impactType: typing_extensions.Literal[ + "IMPACT_TYPE_UNSPECIFIED", "DEPENDENCY_MISSING_DEPENDENCIES" + ] + +@typing.type_check_only +class GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class Http(typing_extensions.TypedDict, total=False): fullyDecodeReservedExpansion: bool @@ -474,8 +535,11 @@ class HttpRule(typing_extensions.TypedDict, total=False): class Impact(typing_extensions.TypedDict, total=False): detail: str impactType: typing_extensions.Literal[ - "IMPACT_TYPE_UNSPECIFIED", "DEPENDENCY_MISSING_DEPENDENCIES" + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES", + "RESOURCE_EXISTENCE_PROJECT", ] + parent: str @typing.type_check_only class ImportAdminOverridesMetadata(typing_extensions.TypedDict, total=False): ... @@ -770,6 +834,10 @@ class RemoveEnableRulesResponse(typing_extensions.TypedDict, total=False): class RubySettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings +@typing.type_check_only +class SelectiveGapicGeneration(typing_extensions.TypedDict, total=False): + methods: _list[str] + @typing.type_check_only class ServiceIdentity(typing_extensions.TypedDict, total=False): email: str diff --git a/googleapiclient-stubs/_apis/serviceusage/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/serviceusage/v1beta1/schemas.pyi index 26b35bcc..6d3bc11e 100644 --- a/googleapiclient-stubs/_apis/serviceusage/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/serviceusage/v1beta1/schemas.pyi @@ -28,6 +28,7 @@ class Analysis(typing_extensions.TypedDict, total=False): "ANALYSIS_TYPE_UNSPECIFIED", "ANALYSIS_TYPE_DEPENDENCY", "ANALYSIS_TYPE_RESOURCE_USAGE", + "ANALYSIS_TYPE_RESOURCE_EXISTENCE", ] displayName: str service: str @@ -158,6 +159,7 @@ class CommonLanguageSettings(typing_extensions.TypedDict, total=False): ] ] referenceDocsUri: str + selectiveGapicGeneration: SelectiveGapicGeneration @typing.type_check_only class ConsumerPolicy(typing_extensions.TypedDict, total=False): @@ -237,6 +239,7 @@ class DisableServiceResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): + additionalIamInfo: str documentationRootUrl: str overview: str pages: _list[Page] @@ -311,6 +314,7 @@ class EnumValue(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExperimentalFeatures(typing_extensions.TypedDict, total=False): + protobufPythonicTypesEnabled: bool restAsyncIoEnabled: bool @typing.type_check_only @@ -368,6 +372,7 @@ class GetServiceIdentityResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoSettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings + renamedServices: dict[str, typing.Any] @typing.type_check_only class GoogleApiService(typing_extensions.TypedDict, total=False): @@ -460,6 +465,62 @@ class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalysis(typing_extensions.TypedDict, total=False): + analysis: GoogleApiServiceusageV2betaAnalysisResult + analysisType: typing_extensions.Literal[ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE", + ] + displayName: str + service: str + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalysisResult( + typing_extensions.TypedDict, total=False +): + blockers: _list[GoogleApiServiceusageV2betaImpact] + warnings: _list[GoogleApiServiceusageV2betaImpact] + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleApiServiceusageV2betaAnalyzeConsumerPolicyResponse( + typing_extensions.TypedDict, total=False +): + analysis: _list[GoogleApiServiceusageV2betaAnalysis] + +@typing.type_check_only +class GoogleApiServiceusageV2betaConsumerPolicy( + typing_extensions.TypedDict, total=False +): + annotations: dict[str, typing.Any] + createTime: str + enableRules: _list[GoogleApiServiceusageV2betaEnableRule] + etag: str + name: str + updateTime: str + +@typing.type_check_only +class GoogleApiServiceusageV2betaEnableRule(typing_extensions.TypedDict, total=False): + services: _list[str] + +@typing.type_check_only +class GoogleApiServiceusageV2betaImpact(typing_extensions.TypedDict, total=False): + detail: str + impactType: typing_extensions.Literal[ + "IMPACT_TYPE_UNSPECIFIED", "DEPENDENCY_MISSING_DEPENDENCIES" + ] + +@typing.type_check_only +class GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class Http(typing_extensions.TypedDict, total=False): fullyDecodeReservedExpansion: bool @@ -482,8 +543,11 @@ class HttpRule(typing_extensions.TypedDict, total=False): class Impact(typing_extensions.TypedDict, total=False): detail: str impactType: typing_extensions.Literal[ - "IMPACT_TYPE_UNSPECIFIED", "DEPENDENCY_MISSING_DEPENDENCIES" + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES", + "RESOURCE_EXISTENCE_PROJECT", ] + parent: str @typing.type_check_only class ImportAdminOverridesMetadata(typing_extensions.TypedDict, total=False): ... @@ -845,6 +909,10 @@ class RolloutInfo(typing_extensions.TypedDict, total=False): class RubySettings(typing_extensions.TypedDict, total=False): common: CommonLanguageSettings +@typing.type_check_only +class SelectiveGapicGeneration(typing_extensions.TypedDict, total=False): + methods: _list[str] + @typing.type_check_only class Service(typing_extensions.TypedDict, total=False): config: ServiceConfig diff --git a/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi b/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi index 2dc268e6..eae7e3a7 100644 --- a/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi @@ -1705,6 +1705,7 @@ class SetBasicFilterRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class SetDataValidationRequest(typing_extensions.TypedDict, total=False): + filteredRowsIncluded: bool range: GridRange rule: DataValidationRule diff --git a/googleapiclient-stubs/_apis/spanner/v1/resources.pyi b/googleapiclient-stubs/_apis/spanner/v1/resources.pyi index 97bdb9ae..de258758 100644 --- a/googleapiclient-stubs/_apis/spanner/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/spanner/v1/resources.pyi @@ -493,6 +493,13 @@ class SpannerResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> PartialResultSetHttpRequest: ... + def addSplitPoints( + self, + *, + database: str, + body: AddSplitPointsRequest = ..., + **kwargs: typing.Any, + ) -> AddSplitPointsResponseHttpRequest: ... def changequorum( self, *, @@ -810,6 +817,14 @@ class SpannerResource(googleapiclient.discovery.Resource): def projects(self) -> ProjectsResource: ... def scans(self) -> ScansResource: ... +@typing.type_check_only +class AddSplitPointsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AddSplitPointsResponse: ... + @typing.type_check_only class BackupHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi b/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi index 1db8ff82..122bd956 100644 --- a/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi @@ -4,11 +4,30 @@ import typing_extensions _list = list +@typing.type_check_only +class AddSplitPointsRequest(typing_extensions.TypedDict, total=False): + initiator: str + splitPoints: _list[SplitPoints] + +@typing.type_check_only +class AddSplitPointsResponse(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class AsymmetricAutoscalingOption(typing_extensions.TypedDict, total=False): + overrides: AutoscalingConfigOverrides + replicaSelection: InstanceReplicaSelection + @typing.type_check_only class AutoscalingConfig(typing_extensions.TypedDict, total=False): + asymmetricAutoscalingOptions: _list[AsymmetricAutoscalingOption] autoscalingLimits: AutoscalingLimits autoscalingTargets: AutoscalingTargets +@typing.type_check_only +class AutoscalingConfigOverrides(typing_extensions.TypedDict, total=False): + autoscalingLimits: AutoscalingLimits + autoscalingTargetHighPriorityCpuUtilizationPercent: int + @typing.type_check_only class AutoscalingLimits(typing_extensions.TypedDict, total=False): maxNodes: int @@ -88,6 +107,7 @@ class BatchWriteResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class BeginTransactionRequest(typing_extensions.TypedDict, total=False): + mutationKey: Mutation options: TransactionOptions requestOptions: RequestOptions @@ -119,6 +139,7 @@ class ChildLink(typing_extensions.TypedDict, total=False): class CommitRequest(typing_extensions.TypedDict, total=False): maxCommitDelay: str mutations: _list[Mutation] + precommitToken: MultiplexedSessionPrecommitToken requestOptions: RequestOptions returnCommitStats: bool singleUseTransaction: TransactionOptions @@ -128,6 +149,7 @@ class CommitRequest(typing_extensions.TypedDict, total=False): class CommitResponse(typing_extensions.TypedDict, total=False): commitStats: CommitStats commitTimestamp: str + precommitToken: MultiplexedSessionPrecommitToken @typing.type_check_only class CommitStats(typing_extensions.TypedDict, total=False): @@ -330,6 +352,7 @@ class ExcludeReplicas(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExecuteBatchDmlRequest(typing_extensions.TypedDict, total=False): + lastStatements: bool requestOptions: RequestOptions seqno: str statements: _list[Statement] @@ -337,6 +360,7 @@ class ExecuteBatchDmlRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExecuteBatchDmlResponse(typing_extensions.TypedDict, total=False): + precommitToken: MultiplexedSessionPrecommitToken resultSets: _list[ResultSet] status: Status @@ -344,10 +368,13 @@ class ExecuteBatchDmlResponse(typing_extensions.TypedDict, total=False): class ExecuteSqlRequest(typing_extensions.TypedDict, total=False): dataBoostEnabled: bool directedReadOptions: DirectedReadOptions + lastStatement: bool paramTypes: dict[str, typing.Any] params: dict[str, typing.Any] partitionToken: str - queryMode: typing_extensions.Literal["NORMAL", "PLAN", "PROFILE"] + queryMode: typing_extensions.Literal[ + "NORMAL", "PLAN", "PROFILE", "WITH_STATS", "WITH_PLAN_AND_STATS" + ] queryOptions: QueryOptions requestOptions: RequestOptions resumeToken: str @@ -419,6 +446,9 @@ class Instance(typing_extensions.TypedDict, total=False): autoscalingConfig: AutoscalingConfig config: str createTime: str + defaultBackupScheduleType: typing_extensions.Literal[ + "DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED", "NONE", "AUTOMATIC" + ] displayName: str edition: typing_extensions.Literal[ "EDITION_UNSPECIFIED", "STANDARD", "ENTERPRISE", "ENTERPRISE_PLUS" @@ -432,6 +462,7 @@ class Instance(typing_extensions.TypedDict, total=False): name: str nodeCount: int processingUnits: int + replicaComputeCapacity: _list[ReplicaComputeCapacity] state: typing_extensions.Literal["STATE_UNSPECIFIED", "CREATING", "READY"] updateTime: str @@ -482,6 +513,14 @@ class InstancePartition(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal["STATE_UNSPECIFIED", "CREATING", "READY"] updateTime: str +@typing.type_check_only +class InstanceReplicaSelection(typing_extensions.TypedDict, total=False): + location: str + +@typing.type_check_only +class Key(typing_extensions.TypedDict, total=False): + keyParts: _list[typing.Any] + @typing.type_check_only class KeyRange(typing_extensions.TypedDict, total=False): endClosed: _list[typing.Any] @@ -658,6 +697,7 @@ class OptimizeRestoredDatabaseMetadata(typing_extensions.TypedDict, total=False) class PartialResultSet(typing_extensions.TypedDict, total=False): chunkedValue: bool metadata: ResultSetMetadata + precommitToken: MultiplexedSessionPrecommitToken resumeToken: str stats: ResultSetStats values: _list[typing.Any] @@ -777,10 +817,17 @@ class ReadRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class ReadWrite(typing_extensions.TypedDict, total=False): + multiplexedSessionPreviousTransactionId: str readLockMode: typing_extensions.Literal[ "READ_LOCK_MODE_UNSPECIFIED", "PESSIMISTIC", "OPTIMISTIC" ] +@typing.type_check_only +class ReplicaComputeCapacity(typing_extensions.TypedDict, total=False): + nodeCount: int + processingUnits: int + replicaSelection: InstanceReplicaSelection + @typing.type_check_only class ReplicaInfo(typing_extensions.TypedDict, total=False): defaultLeaderLocation: bool @@ -836,6 +883,7 @@ class RestoreInfo(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResultSet(typing_extensions.TypedDict, total=False): metadata: ResultSetMetadata + precommitToken: MultiplexedSessionPrecommitToken rows: _list[_list[typing.Any]] stats: ResultSetStats @@ -892,6 +940,13 @@ class ShortRepresentation(typing_extensions.TypedDict, total=False): class SingleRegionQuorum(typing_extensions.TypedDict, total=False): servingLocation: str +@typing.type_check_only +class SplitPoints(typing_extensions.TypedDict, total=False): + expireTime: str + index: str + keys: _list[Key] + table: str + @typing.type_check_only class Statement(typing_extensions.TypedDict, total=False): paramTypes: dict[str, typing.Any] @@ -954,11 +1009,12 @@ class Type(typing_extensions.TypedDict, total=False): "JSON", "PROTO", "ENUM", + "INTERVAL", ] protoTypeFqn: str structType: StructType typeAnnotation: typing_extensions.Literal[ - "TYPE_ANNOTATION_CODE_UNSPECIFIED", "PG_NUMERIC", "PG_JSONB" + "TYPE_ANNOTATION_CODE_UNSPECIFIED", "PG_NUMERIC", "PG_JSONB", "PG_OID" ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/speech/v1/schemas.pyi b/googleapiclient-stubs/_apis/speech/v1/schemas.pyi index c84a7bb4..c9edeb0d 100644 --- a/googleapiclient-stubs/_apis/speech/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/speech/v1/schemas.pyi @@ -141,6 +141,7 @@ class RecognitionConfig(typing_extensions.TypedDict, total=False): "SPEEX_WITH_HEADER_BYTE", "MP3", "WEBM_OPUS", + "ALAW", ] languageCode: str maxAlternatives: int diff --git a/googleapiclient-stubs/_apis/speech/v1p1beta1/schemas.pyi b/googleapiclient-stubs/_apis/speech/v1p1beta1/schemas.pyi index 04b93528..1676f343 100644 --- a/googleapiclient-stubs/_apis/speech/v1p1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/speech/v1p1beta1/schemas.pyi @@ -144,6 +144,7 @@ class RecognitionConfig(typing_extensions.TypedDict, total=False): "SPEEX_WITH_HEADER_BYTE", "MP3", "WEBM_OPUS", + "ALAW", ] languageCode: str maxAlternatives: int diff --git a/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi b/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi index 913a938c..5d31f591 100644 --- a/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi @@ -141,25 +141,13 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): backendType: typing_extensions.Literal[ "SQL_BACKEND_TYPE_UNSPECIFIED", "FIRST_GEN", "SECOND_GEN", "EXTERNAL" ] + customSubjectAlternativeNames: _list[str] databaseVersion: typing_extensions.Literal[ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -177,7 +165,22 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -234,19 +237,6 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -264,7 +254,22 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -337,6 +342,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): ] ] switchTransactionLogsToCloudStorageEnabled: bool + tags: dict[str, typing.Any] upgradableDatabaseVersions: _list[AvailableDatabaseVersion] writeEndpoint: str @@ -404,6 +410,10 @@ class ExportContext(typing_extensions.TypedDict, total=False): sqlExportOptions: dict[str, typing.Any] uri: str +@typing.type_check_only +class ExternalSyncSelectedObject(typing_extensions.TypedDict, total=False): + database: str + @typing.type_check_only class FailoverContext(typing_extensions.TypedDict, total=False): kind: str @@ -420,19 +430,6 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -450,7 +447,22 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -602,14 +614,19 @@ class InstancesTruncateLogRequest(typing_extensions.TypedDict, total=False): class IpConfiguration(typing_extensions.TypedDict, total=False): allocatedIpRange: str authorizedNetworks: _list[AclEntry] + customSubjectAlternativeNames: _list[str] enablePrivatePathForGoogleCloudServices: bool ipv4Enabled: bool privateNetwork: str pscConfig: PscConfig requireSsl: bool serverCaMode: typing_extensions.Literal[ - "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + "CA_MODE_UNSPECIFIED", + "GOOGLE_MANAGED_INTERNAL_CA", + "GOOGLE_MANAGED_CAS_CA", + "CUSTOMER_MANAGED_CAS_CA", ] + serverCaPool: str sslMode: typing_extensions.Literal[ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -672,7 +689,11 @@ class OnPremisesConfiguration(typing_extensions.TypedDict, total=False): hostPort: str kind: str password: str + selectedObjects: _list[SelectedObjects] sourceInstance: InstanceReference + sslOption: typing_extensions.Literal[ + "SSL_OPTION_UNSPECIFIED", "DISABLE", "REQUIRE", "VERIFY_CA" + ] username: str @typing.type_check_only @@ -734,12 +755,14 @@ class Operation(typing_extensions.TypedDict, total=False): "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", "MAJOR_VERSION_UPGRADE", + "ADVANCED_BACKUP", ] selfLink: str startTime: str status: typing_extensions.Literal[ "SQL_OPERATION_STATUS_UNSPECIFIED", "PENDING", "RUNNING", "DONE" ] + subOperationType: SqlSubOperationType targetId: str targetLink: str targetProject: str @@ -793,9 +816,18 @@ class PasswordValidationPolicy(typing_extensions.TypedDict, total=False): class PerformDiskShrinkContext(typing_extensions.TypedDict, total=False): targetSizeGb: str +@typing.type_check_only +class PscAutoConnectionConfig(typing_extensions.TypedDict, total=False): + consumerNetwork: str + consumerNetworkStatus: str + consumerProject: str + ipAddress: str + status: str + @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): allowedConsumerProjects: _list[str] + pscAutoConnections: _list[PscAutoConnectionConfig] pscEnabled: bool @typing.type_check_only @@ -838,6 +870,10 @@ class RotateServerCertificateContext(typing_extensions.TypedDict, total=False): kind: str nextVersion: str +@typing.type_check_only +class SelectedObjects(typing_extensions.TypedDict, total=False): + database: str + @typing.type_check_only class Settings(typing_extensions.TypedDict, total=False): activationPolicy: typing_extensions.Literal[ @@ -952,6 +988,7 @@ class SqlExternalSyncSettingError(typing_extensions.TypedDict, total=False): "USERS_NOT_CREATED_IN_REPLICA", "UNSUPPORTED_SYSTEM_OBJECTS", "UNSUPPORTED_TABLES_WITH_REPLICA_IDENTITY", + "SELECTED_OBJECTS_NOT_EXIST_ON_SOURCE", ] @typing.type_check_only @@ -1006,6 +1043,7 @@ class SqlInstancesVerifyExternalSyncSettingsRequest( "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ] mysqlSyncConfig: MySqlSyncConfig + selectedObjects: _list[ExternalSyncSelectedObject] syncMode: typing_extensions.Literal[ "EXTERNAL_SYNC_MODE_UNSPECIFIED", "ONLINE", "OFFLINE" ] @@ -1054,6 +1092,16 @@ class SqlServerUserDetails(typing_extensions.TypedDict, total=False): disabled: bool serverRoles: _list[str] +@typing.type_check_only +class SqlSubOperationType(typing_extensions.TypedDict, total=False): + maintenanceType: typing_extensions.Literal[ + "SQL_MAINTENANCE_TYPE_UNSPECIFIED", + "INSTANCE_MAINTENANCE", + "REPLICA_INCLUDED_MAINTENANCE", + "INSTANCE_SELF_SERVICE_MAINTENANCE", + "REPLICA_INCLUDED_SELF_SERVICE_MAINTENANCE", + ] + @typing.type_check_only class SslCert(typing_extensions.TypedDict, total=False): cert: str diff --git a/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi b/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi index 913a938c..5d31f591 100644 --- a/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi +++ b/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi @@ -141,25 +141,13 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): backendType: typing_extensions.Literal[ "SQL_BACKEND_TYPE_UNSPECIFIED", "FIRST_GEN", "SECOND_GEN", "EXTERNAL" ] + customSubjectAlternativeNames: _list[str] databaseVersion: typing_extensions.Literal[ "SQL_DATABASE_VERSION_UNSPECIFIED", "MYSQL_5_1", "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -177,7 +165,22 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -234,19 +237,6 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -264,7 +254,22 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -337,6 +342,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): ] ] switchTransactionLogsToCloudStorageEnabled: bool + tags: dict[str, typing.Any] upgradableDatabaseVersions: _list[AvailableDatabaseVersion] writeEndpoint: str @@ -404,6 +410,10 @@ class ExportContext(typing_extensions.TypedDict, total=False): sqlExportOptions: dict[str, typing.Any] uri: str +@typing.type_check_only +class ExternalSyncSelectedObject(typing_extensions.TypedDict, total=False): + database: str + @typing.type_check_only class FailoverContext(typing_extensions.TypedDict, total=False): kind: str @@ -420,19 +430,6 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -450,7 +447,22 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -602,14 +614,19 @@ class InstancesTruncateLogRequest(typing_extensions.TypedDict, total=False): class IpConfiguration(typing_extensions.TypedDict, total=False): allocatedIpRange: str authorizedNetworks: _list[AclEntry] + customSubjectAlternativeNames: _list[str] enablePrivatePathForGoogleCloudServices: bool ipv4Enabled: bool privateNetwork: str pscConfig: PscConfig requireSsl: bool serverCaMode: typing_extensions.Literal[ - "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + "CA_MODE_UNSPECIFIED", + "GOOGLE_MANAGED_INTERNAL_CA", + "GOOGLE_MANAGED_CAS_CA", + "CUSTOMER_MANAGED_CAS_CA", ] + serverCaPool: str sslMode: typing_extensions.Literal[ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -672,7 +689,11 @@ class OnPremisesConfiguration(typing_extensions.TypedDict, total=False): hostPort: str kind: str password: str + selectedObjects: _list[SelectedObjects] sourceInstance: InstanceReference + sslOption: typing_extensions.Literal[ + "SSL_OPTION_UNSPECIFIED", "DISABLE", "REQUIRE", "VERIFY_CA" + ] username: str @typing.type_check_only @@ -734,12 +755,14 @@ class Operation(typing_extensions.TypedDict, total=False): "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", "MAJOR_VERSION_UPGRADE", + "ADVANCED_BACKUP", ] selfLink: str startTime: str status: typing_extensions.Literal[ "SQL_OPERATION_STATUS_UNSPECIFIED", "PENDING", "RUNNING", "DONE" ] + subOperationType: SqlSubOperationType targetId: str targetLink: str targetProject: str @@ -793,9 +816,18 @@ class PasswordValidationPolicy(typing_extensions.TypedDict, total=False): class PerformDiskShrinkContext(typing_extensions.TypedDict, total=False): targetSizeGb: str +@typing.type_check_only +class PscAutoConnectionConfig(typing_extensions.TypedDict, total=False): + consumerNetwork: str + consumerNetworkStatus: str + consumerProject: str + ipAddress: str + status: str + @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): allowedConsumerProjects: _list[str] + pscAutoConnections: _list[PscAutoConnectionConfig] pscEnabled: bool @typing.type_check_only @@ -838,6 +870,10 @@ class RotateServerCertificateContext(typing_extensions.TypedDict, total=False): kind: str nextVersion: str +@typing.type_check_only +class SelectedObjects(typing_extensions.TypedDict, total=False): + database: str + @typing.type_check_only class Settings(typing_extensions.TypedDict, total=False): activationPolicy: typing_extensions.Literal[ @@ -952,6 +988,7 @@ class SqlExternalSyncSettingError(typing_extensions.TypedDict, total=False): "USERS_NOT_CREATED_IN_REPLICA", "UNSUPPORTED_SYSTEM_OBJECTS", "UNSUPPORTED_TABLES_WITH_REPLICA_IDENTITY", + "SELECTED_OBJECTS_NOT_EXIST_ON_SOURCE", ] @typing.type_check_only @@ -1006,6 +1043,7 @@ class SqlInstancesVerifyExternalSyncSettingsRequest( "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ] mysqlSyncConfig: MySqlSyncConfig + selectedObjects: _list[ExternalSyncSelectedObject] syncMode: typing_extensions.Literal[ "EXTERNAL_SYNC_MODE_UNSPECIFIED", "ONLINE", "OFFLINE" ] @@ -1054,6 +1092,16 @@ class SqlServerUserDetails(typing_extensions.TypedDict, total=False): disabled: bool serverRoles: _list[str] +@typing.type_check_only +class SqlSubOperationType(typing_extensions.TypedDict, total=False): + maintenanceType: typing_extensions.Literal[ + "SQL_MAINTENANCE_TYPE_UNSPECIFIED", + "INSTANCE_MAINTENANCE", + "REPLICA_INCLUDED_MAINTENANCE", + "INSTANCE_SELF_SERVICE_MAINTENANCE", + "REPLICA_INCLUDED_SELF_SERVICE_MAINTENANCE", + ] + @typing.type_check_only class SslCert(typing_extensions.TypedDict, total=False): cert: str diff --git a/googleapiclient-stubs/_apis/storage/v1/resources.pyi b/googleapiclient-stubs/_apis/storage/v1/resources.pyi index 958bb810..fba4e3bf 100644 --- a/googleapiclient-stubs/_apis/storage/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/storage/v1/resources.pyi @@ -208,14 +208,22 @@ class StorageResource(googleapiclient.discovery.Resource): userProject: str = ..., **kwargs: typing.Any, ) -> BucketHttpRequest: ... + def relocate( + self, + *, + bucket: str, + body: RelocateBucketRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def restore( self, *, bucket: str, generation: str, + projection: typing_extensions.Literal["full", "noAcl"] = ..., userProject: str = ..., **kwargs: typing.Any, - ) -> googleapiclient.http.HttpRequest: ... + ) -> BucketHttpRequest: ... def setIamPolicy( self, *, @@ -692,6 +700,23 @@ class StorageResource(googleapiclient.discovery.Resource): def list_next( self, previous_request: ObjectsHttpRequest, previous_response: Objects ) -> ObjectsHttpRequest | None: ... + def move( + self, + *, + bucket: str, + sourceObject: str, + destinationObject: str, + ifGenerationMatch: str = ..., + ifGenerationNotMatch: str = ..., + ifMetagenerationMatch: str = ..., + ifMetagenerationNotMatch: str = ..., + ifSourceGenerationMatch: str = ..., + ifSourceGenerationNotMatch: str = ..., + ifSourceMetagenerationMatch: str = ..., + ifSourceMetagenerationNotMatch: str = ..., + userProject: str = ..., + **kwargs: typing.Any, + ) -> ObjectHttpRequest: ... def patch( self, *, @@ -828,6 +853,14 @@ class StorageResource(googleapiclient.discovery.Resource): @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): + def advanceRelocateBucket( + self, + *, + bucket: str, + operationId: str, + body: AdvanceRelocateBucketOperationRequest = ..., + **kwargs: typing.Any, + ) -> googleapiclient.http.HttpRequest: ... def cancel( self, *, bucket: str, operationId: str, **kwargs: typing.Any ) -> googleapiclient.http.HttpRequest: ... diff --git a/googleapiclient-stubs/_apis/storage/v1/schemas.pyi b/googleapiclient-stubs/_apis/storage/v1/schemas.pyi index fdcc8b04..4f30130e 100644 --- a/googleapiclient-stubs/_apis/storage/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/storage/v1/schemas.pyi @@ -4,6 +4,11 @@ import typing_extensions _list = list +@typing.type_check_only +class AdvanceRelocateBucketOperationRequest(typing_extensions.TypedDict, total=False): + expireTime: str + ttl: str + @typing.type_check_only class AnywhereCache(typing_extensions.TypedDict, total=False): admissionPolicy: str @@ -269,6 +274,7 @@ class Object(typing_extensions.TypedDict, total=False): temporaryHold: bool timeCreated: str timeDeleted: str + timeFinalized: str timeStorageClassUpdated: str updated: str @@ -308,6 +314,12 @@ class Policy(typing_extensions.TypedDict, total=False): resourceId: str version: int +@typing.type_check_only +class RelocateBucketRequest(typing_extensions.TypedDict, total=False): + destinationCustomPlacementConfig: dict[str, typing.Any] + destinationLocation: str + validateOnly: bool + @typing.type_check_only class RewriteResponse(typing_extensions.TypedDict, total=False): done: bool diff --git a/googleapiclient-stubs/_apis/tagmanager/v2/schemas.pyi b/googleapiclient-stubs/_apis/tagmanager/v2/schemas.pyi index 5cb71446..cf9a8548 100644 --- a/googleapiclient-stubs/_apis/tagmanager/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/tagmanager/v2/schemas.pyi @@ -383,6 +383,7 @@ class GalleryReference(typing_extensions.TypedDict, total=False): owner: str repository: str signature: str + templateDeveloperId: str version: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/testing/v1/schemas.pyi b/googleapiclient-stubs/_apis/testing/v1/schemas.pyi index 60fcfcbf..15b2bf02 100644 --- a/googleapiclient-stubs/_apis/testing/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/testing/v1/schemas.pyi @@ -129,6 +129,7 @@ class ApkManifest(typing_extensions.TypedDict, total=False): targetSdkVersion: int usesFeature: _list[UsesFeature] usesPermission: _list[str] + usesPermissionTags: _list[UsesPermissionTag] versionCode: str versionName: str @@ -673,6 +674,11 @@ class UsesFeature(typing_extensions.TypedDict, total=False): isRequired: bool name: str +@typing.type_check_only +class UsesPermissionTag(typing_extensions.TypedDict, total=False): + maxSdkVersion: int + name: str + @typing.type_check_only class XcodeVersion(typing_extensions.TypedDict, total=False): tags: _list[str] diff --git a/googleapiclient-stubs/_apis/texttospeech/v1/schemas.pyi b/googleapiclient-stubs/_apis/texttospeech/v1/schemas.pyi index ec54fc1e..f2441ece 100644 --- a/googleapiclient-stubs/_apis/texttospeech/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/texttospeech/v1/schemas.pyi @@ -4,10 +4,20 @@ import typing_extensions _list = list +@typing.type_check_only +class AdvancedVoiceOptions(typing_extensions.TypedDict, total=False): + lowLatencyJourneySynthesis: bool + @typing.type_check_only class AudioConfig(typing_extensions.TypedDict, total=False): audioEncoding: typing_extensions.Literal[ - "AUDIO_ENCODING_UNSPECIFIED", "LINEAR16", "MP3", "OGG_OPUS", "MULAW", "ALAW" + "AUDIO_ENCODING_UNSPECIFIED", + "LINEAR16", + "MP3", + "OGG_OPUS", + "MULAW", + "ALAW", + "PCM", ] effectsProfileId: _list[str] pitch: float @@ -18,6 +28,20 @@ class AudioConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CustomPronunciationParams(typing_extensions.TypedDict, total=False): + phoneticEncoding: typing_extensions.Literal[ + "PHONETIC_ENCODING_UNSPECIFIED", + "PHONETIC_ENCODING_IPA", + "PHONETIC_ENCODING_X_SAMPA", + ] + phrase: str + pronunciation: str + +@typing.type_check_only +class CustomPronunciations(typing_extensions.TypedDict, total=False): + pronunciations: _list[CustomPronunciationParams] + @typing.type_check_only class CustomVoiceParams(typing_extensions.TypedDict, total=False): model: str @@ -45,6 +69,10 @@ class ListOperationsResponse(typing_extensions.TypedDict, total=False): class ListVoicesResponse(typing_extensions.TypedDict, total=False): voices: _list[Voice] +@typing.type_check_only +class MultiSpeakerMarkup(typing_extensions.TypedDict, total=False): + turns: _list[Turn] + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -61,6 +89,8 @@ class Status(typing_extensions.TypedDict, total=False): @typing.type_check_only class SynthesisInput(typing_extensions.TypedDict, total=False): + customPronunciations: CustomPronunciations + multiSpeakerMarkup: MultiSpeakerMarkup ssml: str text: str @@ -79,6 +109,7 @@ class SynthesizeLongAudioRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class SynthesizeSpeechRequest(typing_extensions.TypedDict, total=False): + advancedVoiceOptions: AdvancedVoiceOptions audioConfig: AudioConfig input: SynthesisInput voice: VoiceSelectionParams @@ -87,6 +118,11 @@ class SynthesizeSpeechRequest(typing_extensions.TypedDict, total=False): class SynthesizeSpeechResponse(typing_extensions.TypedDict, total=False): audioContent: str +@typing.type_check_only +class Turn(typing_extensions.TypedDict, total=False): + speaker: str + text: str + @typing.type_check_only class Voice(typing_extensions.TypedDict, total=False): languageCodes: _list[str] @@ -96,6 +132,10 @@ class Voice(typing_extensions.TypedDict, total=False): "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ] +@typing.type_check_only +class VoiceCloneParams(typing_extensions.TypedDict, total=False): + voiceCloningKey: str + @typing.type_check_only class VoiceSelectionParams(typing_extensions.TypedDict, total=False): customVoice: CustomVoiceParams @@ -104,3 +144,4 @@ class VoiceSelectionParams(typing_extensions.TypedDict, total=False): ssmlGender: typing_extensions.Literal[ "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ] + voiceClone: VoiceCloneParams diff --git a/googleapiclient-stubs/_apis/texttospeech/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/texttospeech/v1beta1/schemas.pyi index 6a41e492..9ad277c0 100644 --- a/googleapiclient-stubs/_apis/texttospeech/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/texttospeech/v1beta1/schemas.pyi @@ -4,6 +4,10 @@ import typing_extensions _list = list +@typing.type_check_only +class AdvancedVoiceOptions(typing_extensions.TypedDict, total=False): + lowLatencyJourneySynthesis: bool + @typing.type_check_only class AudioConfig(typing_extensions.TypedDict, total=False): audioEncoding: typing_extensions.Literal[ @@ -14,6 +18,7 @@ class AudioConfig(typing_extensions.TypedDict, total=False): "OGG_OPUS", "MULAW", "ALAW", + "PCM", ] effectsProfileId: _list[str] pitch: float @@ -21,6 +26,20 @@ class AudioConfig(typing_extensions.TypedDict, total=False): speakingRate: float volumeGainDb: float +@typing.type_check_only +class CustomPronunciationParams(typing_extensions.TypedDict, total=False): + phoneticEncoding: typing_extensions.Literal[ + "PHONETIC_ENCODING_UNSPECIFIED", + "PHONETIC_ENCODING_IPA", + "PHONETIC_ENCODING_X_SAMPA", + ] + phrase: str + pronunciation: str + +@typing.type_check_only +class CustomPronunciations(typing_extensions.TypedDict, total=False): + pronunciations: _list[CustomPronunciationParams] + @typing.type_check_only class CustomVoiceParams(typing_extensions.TypedDict, total=False): model: str @@ -45,6 +64,10 @@ class ListOperationsResponse(typing_extensions.TypedDict, total=False): class ListVoicesResponse(typing_extensions.TypedDict, total=False): voices: _list[Voice] +@typing.type_check_only +class MultiSpeakerMarkup(typing_extensions.TypedDict, total=False): + turns: _list[Turn] + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -61,6 +84,8 @@ class Status(typing_extensions.TypedDict, total=False): @typing.type_check_only class SynthesisInput(typing_extensions.TypedDict, total=False): + customPronunciations: CustomPronunciations + multiSpeakerMarkup: MultiSpeakerMarkup ssml: str text: str @@ -79,6 +104,7 @@ class SynthesizeLongAudioRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class SynthesizeSpeechRequest(typing_extensions.TypedDict, total=False): + advancedVoiceOptions: AdvancedVoiceOptions audioConfig: AudioConfig enableTimePointing: _list[ typing_extensions.Literal["TIMEPOINT_TYPE_UNSPECIFIED", "SSML_MARK"] @@ -97,6 +123,11 @@ class Timepoint(typing_extensions.TypedDict, total=False): markName: str timeSeconds: float +@typing.type_check_only +class Turn(typing_extensions.TypedDict, total=False): + speaker: str + text: str + @typing.type_check_only class Voice(typing_extensions.TypedDict, total=False): languageCodes: _list[str] @@ -106,6 +137,10 @@ class Voice(typing_extensions.TypedDict, total=False): "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ] +@typing.type_check_only +class VoiceCloneParams(typing_extensions.TypedDict, total=False): + voiceCloningKey: str + @typing.type_check_only class VoiceSelectionParams(typing_extensions.TypedDict, total=False): customVoice: CustomVoiceParams @@ -114,3 +149,4 @@ class VoiceSelectionParams(typing_extensions.TypedDict, total=False): ssmlGender: typing_extensions.Literal[ "SSML_VOICE_GENDER_UNSPECIFIED", "MALE", "FEMALE", "NEUTRAL" ] + voiceClone: VoiceCloneParams diff --git a/googleapiclient-stubs/_apis/tpu/v1/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v1/schemas.pyi index 0656fd2f..3cc2f45f 100644 --- a/googleapiclient-stubs/_apis/tpu/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v1/schemas.pyi @@ -95,6 +95,7 @@ class Node(typing_extensions.TypedDict, total=False): "HIDING", "HIDDEN", "UNHIDING", + "UNKNOWN", ] symptoms: _list[Symptom] tensorflowVersion: str diff --git a/googleapiclient-stubs/_apis/tpu/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v1alpha1/schemas.pyi index 0656fd2f..3cc2f45f 100644 --- a/googleapiclient-stubs/_apis/tpu/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v1alpha1/schemas.pyi @@ -95,6 +95,7 @@ class Node(typing_extensions.TypedDict, total=False): "HIDING", "HIDDEN", "UNHIDING", + "UNKNOWN", ] symptoms: _list[Symptom] tensorflowVersion: str diff --git a/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi index 132451e9..8da87b5e 100644 --- a/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi @@ -8,7 +8,7 @@ _list = list class AcceleratorConfig(typing_extensions.TypedDict, total=False): topology: str type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P" + "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P", "V6E" ] @typing.type_check_only @@ -171,6 +171,7 @@ class Node(typing_extensions.TypedDict, total=False): multisliceNode: bool name: str networkConfig: NetworkConfig + networkConfigs: _list[NetworkConfig] networkEndpoints: _list[NetworkEndpoint] queuedResource: str runtimeVersion: str @@ -193,6 +194,7 @@ class Node(typing_extensions.TypedDict, total=False): "HIDING", "HIDDEN", "UNHIDING", + "UNKNOWN", ] symptoms: _list[Symptom] tags: _list[str] diff --git a/googleapiclient-stubs/_apis/tpu/v2alpha1/resources.pyi b/googleapiclient-stubs/_apis/tpu/v2alpha1/resources.pyi index 2ce2de2e..2228e3bd 100644 --- a/googleapiclient-stubs/_apis/tpu/v2alpha1/resources.pyi +++ b/googleapiclient-stubs/_apis/tpu/v2alpha1/resources.pyi @@ -83,6 +83,13 @@ class TPUResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def performMaintenance( + self, + *, + name: str, + body: PerformMaintenanceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def simulateMaintenanceEvent( self, *, @@ -166,6 +173,13 @@ class TPUResource(googleapiclient.discovery.Resource): previous_request: ListQueuedResourcesResponseHttpRequest, previous_response: ListQueuedResourcesResponse, ) -> ListQueuedResourcesResponseHttpRequest | None: ... + def performMaintenanceQueuedResource( + self, + *, + name: str, + body: PerformMaintenanceQueuedResourceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def reset( self, *, diff --git a/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi index 3b5d3868..425e54be 100644 --- a/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi @@ -8,7 +8,7 @@ _list = list class AcceleratorConfig(typing_extensions.TypedDict, total=False): topology: str type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P" + "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P", "V6E" ] @typing.type_check_only @@ -149,6 +149,9 @@ class Location(typing_extensions.TypedDict, total=False): class MultiNodeParams(typing_extensions.TypedDict, total=False): nodeCount: int nodeIdPrefix: str + workloadType: typing_extensions.Literal[ + "WORKLOAD_TYPE_UNSPECIFIED", "THROUGHPUT_OPTIMIZED", "AVAILABILITY_OPTIMIZED" + ] @typing.type_check_only class NetworkConfig(typing_extensions.TypedDict, total=False): @@ -214,9 +217,11 @@ class Node(typing_extensions.TypedDict, total=False): "HIDING", "HIDDEN", "UNHIDING", + "UNKNOWN", ] symptoms: _list[Symptom] tags: _list[str] + upcomingMaintenance: UpcomingMaintenance @typing.type_check_only class NodeSpec(typing_extensions.TypedDict, total=False): @@ -243,6 +248,13 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PerformMaintenanceQueuedResourceRequest(typing_extensions.TypedDict, total=False): + nodeNames: _list[str] + +@typing.type_check_only +class PerformMaintenanceRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class ProvisioningData(typing_extensions.TypedDict, total=False): ... @@ -387,6 +399,15 @@ class Symptom(typing_extensions.TypedDict, total=False): class Tpu(typing_extensions.TypedDict, total=False): nodeSpec: _list[NodeSpec] +@typing.type_check_only +class UpcomingMaintenance(typing_extensions.TypedDict, total=False): + canReschedule: bool + latestWindowStartTime: str + maintenanceStatus: typing_extensions.Literal["UNKNOWN", "PENDING", "ONGOING"] + type: typing_extensions.Literal["UNKNOWN_TYPE", "SCHEDULED", "UNSCHEDULED"] + windowEndTime: str + windowStartTime: str + @typing.type_check_only class Usage(typing_extensions.TypedDict, total=False): total: str diff --git a/googleapiclient-stubs/_apis/translate/v3/schemas.pyi b/googleapiclient-stubs/_apis/translate/v3/schemas.pyi index b53d247a..fd16f044 100644 --- a/googleapiclient-stubs/_apis/translate/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/translate/v3/schemas.pyi @@ -184,6 +184,7 @@ class Glossary(typing_extensions.TypedDict, total=False): @typing.type_check_only class GlossaryConfig(typing_extensions.TypedDict, total=False): + contextualTranslationEnabled: bool glossary: str ignoreCase: bool @@ -396,6 +397,7 @@ class TranslateDocumentResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class TranslateTextGlossaryConfig(typing_extensions.TypedDict, total=False): + contextualTranslationEnabled: bool glossary: str ignoreCase: bool diff --git a/googleapiclient-stubs/_apis/translate/v3beta1/schemas.pyi b/googleapiclient-stubs/_apis/translate/v3beta1/schemas.pyi index c1647e55..d3c3bf9a 100644 --- a/googleapiclient-stubs/_apis/translate/v3beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/translate/v3beta1/schemas.pyi @@ -185,6 +185,7 @@ class TranslateDocumentResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class TranslateTextGlossaryConfig(typing_extensions.TypedDict, total=False): + contextualTranslationEnabled: bool glossary: str ignoreCase: bool diff --git a/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi b/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi index 766deaa1..a228d4f7 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi @@ -58,6 +58,11 @@ class AwsSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AwsSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[AwsDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -112,6 +117,11 @@ class AzureSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[AzureDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -119,6 +129,11 @@ class AzureSourceVmDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] bootOption: typing_extensions.Literal["BOOT_OPTION_UNSPECIFIED", "EFI", "BIOS"] committedStorageMb: str computerName: str @@ -957,6 +972,11 @@ class VmwareSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwareSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[VmwareDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -964,6 +984,11 @@ class VmwareSourceVmDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwareVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] bootOption: typing_extensions.Literal["BOOT_OPTION_UNSPECIFIED", "EFI", "BIOS"] committedStorageMb: str cpuCount: int diff --git a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi index df296965..113b85e6 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi @@ -58,6 +58,11 @@ class AwsSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AwsSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[AwsDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -112,6 +117,11 @@ class AzureSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[AzureDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -119,6 +129,11 @@ class AzureSourceVmDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class AzureVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] bootOption: typing_extensions.Literal["BOOT_OPTION_UNSPECIFIED", "EFI", "BIOS"] committedStorageMb: str computerName: str @@ -1002,6 +1017,11 @@ class VmwareSourceDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwareSourceVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] committedStorageBytes: str disks: _list[VmwareDiskDetails] firmware: typing_extensions.Literal["FIRMWARE_UNSPECIFIED", "EFI", "BIOS"] @@ -1009,6 +1029,11 @@ class VmwareSourceVmDetails(typing_extensions.TypedDict, total=False): @typing.type_check_only class VmwareVmDetails(typing_extensions.TypedDict, total=False): + architecture: typing_extensions.Literal[ + "VM_ARCHITECTURE_UNSPECIFIED", + "VM_ARCHITECTURE_X86_FAMILY", + "VM_ARCHITECTURE_ARM64", + ] bootOption: typing_extensions.Literal["BOOT_OPTION_UNSPECIFIED", "EFI", "BIOS"] committedStorage: str committedStorageMb: str diff --git a/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi b/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi index 8fb98935..338acbb3 100644 --- a/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi @@ -30,6 +30,7 @@ class AirportInfo(typing_extensions.TypedDict, total=False): @typing.type_check_only class AppLinkData(typing_extensions.TypedDict, total=False): androidAppLinkInfo: AppLinkDataAppLinkInfo + displayText: LocalizedString iosAppLinkInfo: AppLinkDataAppLinkInfo webAppLinkInfo: AppLinkDataAppLinkInfo @@ -364,6 +365,7 @@ class EventTicketClass(typing_extensions.TypedDict, total=False): localizedIssuerName: LocalizedString locations: _list[LatLongPoint] logo: Image + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -374,6 +376,9 @@ class EventTicketClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] redemptionIssuers: _list[str] review: Review reviewStatus: typing_extensions.Literal[ @@ -394,6 +399,7 @@ class EventTicketClass(typing_extensions.TypedDict, total=False): ] securityAnimation: SecurityAnimation textModulesData: _list[TextModuleData] + valueAddedModuleData: _list[ValueAddedModuleData] venue: EventVenue version: str viewUnlockRequirement: typing_extensions.Literal[ @@ -434,7 +440,11 @@ class EventTicketObject(typing_extensions.TypedDict, total=False): linkedOfferIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints reservationInfo: EventReservationInfo rotatingBarcode: RotatingBarcode @@ -457,6 +467,7 @@ class EventTicketObject(typing_extensions.TypedDict, total=False): ticketNumber: str ticketType: LocalizedString validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -568,6 +579,7 @@ class FlightClass(typing_extensions.TypedDict, total=False): localScheduledDepartureDateTime: str localizedIssuerName: LocalizedString locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -578,6 +590,9 @@ class FlightClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] origin: AirportInfo redemptionIssuers: _list[str] review: Review @@ -594,6 +609,7 @@ class FlightClass(typing_extensions.TypedDict, total=False): ] securityAnimation: SecurityAnimation textModulesData: _list[TextModuleData] + valueAddedModuleData: _list[ValueAddedModuleData] version: str viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", @@ -640,7 +656,11 @@ class FlightObject(typing_extensions.TypedDict, total=False): linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints passengerName: str reservationInfo: ReservationInfo @@ -661,6 +681,7 @@ class FlightObject(typing_extensions.TypedDict, total=False): ] textModulesData: _list[TextModuleData] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -687,6 +708,7 @@ class GenericClass(typing_extensions.TypedDict, total=False): id: str imageModulesData: _list[ImageModuleData] linksModuleData: LinksModuleData + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -700,6 +722,7 @@ class GenericClass(typing_extensions.TypedDict, total=False): redemptionIssuers: _list[str] securityAnimation: SecurityAnimation textModulesData: _list[TextModuleData] + valueAddedModuleData: _list[ValueAddedModuleData] viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", "UNLOCK_NOT_REQUIRED", @@ -734,6 +757,7 @@ class GenericObject(typing_extensions.TypedDict, total=False): "GENERIC_HOME_INSURANCE", "GENERIC_ENTRY_TICKET", "GENERIC_RECEIPT", + "GENERIC_LOYALTY_CARD", "GENERIC_OTHER", ] groupingInfo: GroupingInfo @@ -746,6 +770,7 @@ class GenericObject(typing_extensions.TypedDict, total=False): linkedObjectIds: _list[str] linksModuleData: LinksModuleData logo: Image + merchantLocations: _list[MerchantLocation] messages: _list[Message] notifications: Notifications passConstraints: PassConstraints @@ -766,6 +791,7 @@ class GenericObject(typing_extensions.TypedDict, total=False): subheader: LocalizedString textModulesData: _list[TextModuleData] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] wideLogo: Image @typing.type_check_only @@ -803,6 +829,7 @@ class GiftCardClass(typing_extensions.TypedDict, total=False): localizedMerchantName: LocalizedString localizedPinLabel: LocalizedString locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] merchantName: str messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ @@ -814,6 +841,9 @@ class GiftCardClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] pinLabel: str programLogo: Image redemptionIssuers: _list[str] @@ -831,6 +861,7 @@ class GiftCardClass(typing_extensions.TypedDict, total=False): ] securityAnimation: SecurityAnimation textModulesData: _list[TextModuleData] + valueAddedModuleData: _list[ValueAddedModuleData] version: str viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", @@ -871,7 +902,11 @@ class GiftCardObject(typing_extensions.TypedDict, total=False): linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints pin: str rotatingBarcode: RotatingBarcode @@ -890,6 +925,7 @@ class GiftCardObject(typing_extensions.TypedDict, total=False): ] textModulesData: _list[TextModuleData] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -1028,6 +1064,7 @@ class LoyaltyClass(typing_extensions.TypedDict, total=False): localizedSecondaryRewardsTier: LocalizedString localizedSecondaryRewardsTierLabel: LocalizedString locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -1038,6 +1075,9 @@ class LoyaltyClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] programLogo: Image programName: str redemptionIssuers: _list[str] @@ -1059,6 +1099,7 @@ class LoyaltyClass(typing_extensions.TypedDict, total=False): secondaryRewardsTierLabel: str securityAnimation: SecurityAnimation textModulesData: _list[TextModuleData] + valueAddedModuleData: _list[ValueAddedModuleData] version: str viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", @@ -1099,7 +1140,11 @@ class LoyaltyObject(typing_extensions.TypedDict, total=False): linksModuleData: LinksModuleData locations: _list[LatLongPoint] loyaltyPoints: LoyaltyPoints + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints rotatingBarcode: RotatingBarcode saveRestrictions: SaveRestrictions @@ -1118,6 +1163,7 @@ class LoyaltyObject(typing_extensions.TypedDict, total=False): ] textModulesData: _list[TextModuleData] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -1203,6 +1249,11 @@ class MediaRequestInfo(typing_extensions.TypedDict, total=False): totalBytes: str totalBytesIsEstimated: bool +@typing.type_check_only +class MerchantLocation(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + @typing.type_check_only class Message(typing_extensions.TypedDict, total=False): body: str @@ -1230,6 +1281,10 @@ class ModifyLinkedOfferObjects(typing_extensions.TypedDict, total=False): class ModifyLinkedOfferObjectsRequest(typing_extensions.TypedDict, total=False): linkedOfferObjectIds: ModifyLinkedOfferObjects +@typing.type_check_only +class ModuleViewConstraints(typing_extensions.TypedDict, total=False): + displayInterval: TimeInterval + @typing.type_check_only class Money(typing_extensions.TypedDict, total=False): currencyCode: str @@ -1274,6 +1329,7 @@ class OfferClass(typing_extensions.TypedDict, total=False): localizedShortTitle: LocalizedString localizedTitle: LocalizedString locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -1284,6 +1340,9 @@ class OfferClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] provider: str redemptionChannel: typing_extensions.Literal[ "REDEMPTION_CHANNEL_UNSPECIFIED", @@ -1314,6 +1373,7 @@ class OfferClass(typing_extensions.TypedDict, total=False): textModulesData: _list[TextModuleData] title: str titleImage: Image + valueAddedModuleData: _list[ValueAddedModuleData] version: str viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", @@ -1350,7 +1410,11 @@ class OfferObject(typing_extensions.TypedDict, total=False): linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints rotatingBarcode: RotatingBarcode saveRestrictions: SaveRestrictions @@ -1368,6 +1432,7 @@ class OfferObject(typing_extensions.TypedDict, total=False): ] textModulesData: _list[TextModuleData] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -1641,6 +1706,7 @@ class TransitClass(typing_extensions.TypedDict, total=False): localizedIssuerName: LocalizedString locations: _list[LatLongPoint] logo: Image + merchantLocations: _list[MerchantLocation] messages: _list[Message] multipleDevicesAndHoldersAllowedStatus: typing_extensions.Literal[ "STATUS_UNSPECIFIED", @@ -1651,6 +1717,9 @@ class TransitClass(typing_extensions.TypedDict, total=False): "oneUserAllDevices", "oneUserOneDevice", ] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] redemptionIssuers: _list[str] review: Review reviewStatus: typing_extensions.Literal[ @@ -1680,6 +1749,7 @@ class TransitClass(typing_extensions.TypedDict, total=False): "OTHER", "other", ] + valueAddedModuleData: _list[ValueAddedModuleData] version: str viewUnlockRequirement: typing_extensions.Literal[ "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED", @@ -1730,7 +1800,11 @@ class TransitObject(typing_extensions.TypedDict, total=False): linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] + merchantLocations: _list[MerchantLocation] messages: _list[Message] + notifyPreference: typing_extensions.Literal[ + "NOTIFICATION_SETTINGS_FOR_UPDATES_UNSPECIFIED", "NOTIFY_ON_UPDATE" + ] passConstraints: PassConstraints passengerNames: str passengerType: typing_extensions.Literal[ @@ -1774,6 +1848,7 @@ class TransitObject(typing_extensions.TypedDict, total=False): "TRIP_TYPE_UNSPECIFIED", "ROUND_TRIP", "roundTrip", "ONE_WAY", "oneWay" ] validTimeInterval: TimeInterval + valueAddedModuleData: _list[ValueAddedModuleData] version: str @typing.type_check_only @@ -1814,3 +1889,12 @@ class Uri(typing_extensions.TypedDict, total=False): kind: str localizedDescription: LocalizedString uri: str + +@typing.type_check_only +class ValueAddedModuleData(typing_extensions.TypedDict, total=False): + body: LocalizedString + header: LocalizedString + image: Image + sortIndex: int + uri: str + viewConstraints: ModuleViewConstraints diff --git a/googleapiclient-stubs/_apis/websecurityscanner/v1/schemas.pyi b/googleapiclient-stubs/_apis/websecurityscanner/v1/schemas.pyi index ba827402..2e0903a6 100644 --- a/googleapiclient-stubs/_apis/websecurityscanner/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/websecurityscanner/v1/schemas.pyi @@ -115,6 +115,7 @@ class ScanConfig(typing_extensions.TypedDict, total=False): "EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED", "ENABLED", "DISABLED" ] ignoreHttpStatusErrors: bool + latestRun: ScanRun managedScan: bool maxQps: int name: str @@ -122,6 +123,15 @@ class ScanConfig(typing_extensions.TypedDict, total=False): schedule: Schedule startingUrls: _list[str] staticIpScan: bool + targetPlatforms: _list[ + typing_extensions.Literal[ + "TARGET_PLATFORM_UNSPECIFIED", + "APP_ENGINE", + "COMPUTE", + "CLOUD_RUN", + "CLOUD_FUNCTIONS", + ] + ] userAgent: typing_extensions.Literal[ "USER_AGENT_UNSPECIFIED", "CHROME_LINUX", "CHROME_ANDROID", "SAFARI_IPHONE" ] diff --git a/googleapiclient-stubs/_apis/workflows/v1/schemas.pyi b/googleapiclient-stubs/_apis/workflows/v1/schemas.pyi index f1ef1e38..b0f54928 100644 --- a/googleapiclient-stubs/_apis/workflows/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workflows/v1/schemas.pyi @@ -87,5 +87,6 @@ class Workflow(typing_extensions.TypedDict, total=False): sourceContents: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "UNAVAILABLE"] stateError: StateError + tags: dict[str, typing.Any] updateTime: str userEnvVars: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi b/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi index d8e81a46..58cdcb68 100644 --- a/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi @@ -9,44 +9,19 @@ class AgentCommand(typing_extensions.TypedDict, total=False): command: str parameters: dict[str, typing.Any] -@typing.type_check_only -class AssetLocation(typing_extensions.TypedDict, total=False): - ccfeRmsPath: str - expected: IsolationExpectations - extraParameters: _list[ExtraParameter] - locationData: _list[LocationData] - parentAsset: _list[CloudAsset] - @typing.type_check_only class BigQueryDestination(typing_extensions.TypedDict, total=False): createNewResultsTable: bool destinationDataset: str -@typing.type_check_only -class BlobstoreLocation(typing_extensions.TypedDict, total=False): - policyId: _list[str] - @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... -@typing.type_check_only -class CloudAsset(typing_extensions.TypedDict, total=False): - assetName: str - assetType: str - -@typing.type_check_only -class CloudAssetComposition(typing_extensions.TypedDict, total=False): - childAsset: _list[CloudAsset] - @typing.type_check_only class Command(typing_extensions.TypedDict, total=False): agentCommand: AgentCommand shellCommand: ShellCommand -@typing.type_check_only -class DirectLocationAssignment(typing_extensions.TypedDict, total=False): - location: _list[LocationAssignment] - @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -56,6 +31,9 @@ class Evaluation(typing_extensions.TypedDict, total=False): createTime: str customRulesBucket: str description: str + evaluationType: typing_extensions.Literal[ + "EVALUATION_TYPE_UNSPECIFIED", "SAP", "SQL_SERVER", "OTHER", "SCC_IAC" + ] labels: dict[str, typing.Any] name: str resourceFilter: ResourceFilter @@ -73,6 +51,9 @@ class Execution(typing_extensions.TypedDict, total=False): inventoryTime: str labels: dict[str, typing.Any] name: str + notices: _list[Notice] + resultSummary: Summary + ruleResults: _list[RuleExecutionResult] runType: typing_extensions.Literal["TYPE_UNSPECIFIED", "ONE_TIME", "SCHEDULED"] startTime: str state: typing_extensions.Literal[ @@ -86,6 +67,7 @@ class ExecutionResult(typing_extensions.TypedDict, total=False): resource: Resource rule: str severity: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "TYPE_PASSED", "TYPE_VIOLATED"] violationDetails: ViolationDetails violationMessage: str @@ -96,10 +78,6 @@ class ExternalDataSources(typing_extensions.TypedDict, total=False): type: typing_extensions.Literal["TYPE_UNSPECIFIED", "BIG_QUERY_TABLE"] uri: str -@typing.type_check_only -class ExtraParameter(typing_extensions.TypedDict, total=False): - regionalMigDistributionPolicy: RegionalMigDistributionPolicy - @typing.type_check_only class GceInstanceFilter(typing_extensions.TypedDict, total=False): serviceAccounts: _list[str] @@ -111,41 +89,7 @@ class Insight(typing_extensions.TypedDict, total=False): sapValidation: SapValidation sentTime: str sqlserverValidation: SqlserverValidation - -@typing.type_check_only -class IsolationExpectations(typing_extensions.TypedDict, total=False): - requirementOverride: RequirementOverride - ziOrgPolicy: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - ziRegionPolicy: typing_extensions.Literal[ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED", - ] - ziRegionState: typing_extensions.Literal[ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED", - ] - zoneIsolation: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zoneSeparation: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsOrgPolicy: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - zsRegionState: typing_extensions.Literal[ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED", - ] + torsoValidation: TorsoValidation @typing.type_check_only class ListEvaluationsResponse(typing_extensions.TypedDict, total=False): @@ -193,28 +137,8 @@ class Location(typing_extensions.TypedDict, total=False): name: str @typing.type_check_only -class LocationAssignment(typing_extensions.TypedDict, total=False): - location: str - locationType: typing_extensions.Literal[ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER", - ] - -@typing.type_check_only -class LocationData(typing_extensions.TypedDict, total=False): - blobstoreLocation: BlobstoreLocation - childAssetLocation: CloudAssetComposition - directLocation: DirectLocationAssignment - gcpProjectProxy: TenantProjectProxy - placerLocation: PlacerLocation - spannerLocation: SpannerLocation +class Notice(typing_extensions.TypedDict, total=False): + message: str @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): @@ -234,24 +158,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class PlacerLocation(typing_extensions.TypedDict, total=False): - placerConfig: str - -@typing.type_check_only -class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): - targetShape: int - zones: _list[ZoneConfiguration] - -@typing.type_check_only -class RequirementOverride(typing_extensions.TypedDict, total=False): - ziOverride: typing_extensions.Literal[ - "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" - ] - zsOverride: typing_extensions.Literal[ - "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" - ] - @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): name: str @@ -286,6 +192,16 @@ class Rule(typing_extensions.TypedDict, total=False): tags: _list[str] uri: str +@typing.type_check_only +class RuleExecutionResult(typing_extensions.TypedDict, total=False): + message: str + resultCount: str + rule: str + scannedResourceCount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "STATE_SUCCESS", "STATE_FAILURE", "STATE_SKIPPED" + ] + @typing.type_check_only class RunEvaluationRequest(typing_extensions.TypedDict, total=False): execution: Execution @@ -308,7 +224,8 @@ class SapDiscoveryComponent(typing_extensions.TypedDict, total=False): databaseProperties: SapDiscoveryComponentDatabaseProperties haHosts: _list[str] hostProject: str - replicationSites: _list[SapDiscoveryComponent] + region: str + replicationSites: _list[SapDiscoveryComponentReplicationSite] resources: _list[SapDiscoveryResource] sid: str topologyType: typing_extensions.Literal[ @@ -341,6 +258,11 @@ class SapDiscoveryComponentDatabaseProperties(typing_extensions.TypedDict, total primaryInstanceUri: str sharedNfsUri: str +@typing.type_check_only +class SapDiscoveryComponentReplicationSite(typing_extensions.TypedDict, total=False): + component: SapDiscoveryComponent + sourceSite: str + @typing.type_check_only class SapDiscoveryMetadata(typing_extensions.TypedDict, total=False): customerRegion: str @@ -398,6 +320,7 @@ class SapDiscoveryResourceInstanceProperties(typing_extensions.TypedDict, total= "INSTANCE_ROLE_ERS_APP_SERVER_DATABASE", "INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE", ] + isDrSite: bool virtualHostname: str @typing.type_check_only @@ -462,11 +385,6 @@ class ShellCommand(typing_extensions.TypedDict, total=False): command: str timeoutSeconds: int -@typing.type_check_only -class SpannerLocation(typing_extensions.TypedDict, total=False): - backupName: _list[str] - dbName: _list[str] - @typing.type_check_only class SqlserverValidation(typing_extensions.TypedDict, total=False): agentVersion: str @@ -504,8 +422,20 @@ class Status(typing_extensions.TypedDict, total=False): message: str @typing.type_check_only -class TenantProjectProxy(typing_extensions.TypedDict, total=False): - projectNumbers: _list[str] +class Summary(typing_extensions.TypedDict, total=False): + failures: str + newFailures: str + newFixes: str + +@typing.type_check_only +class TorsoValidation(typing_extensions.TypedDict, total=False): + agentVersion: str + instanceName: str + projectId: str + validationDetails: dict[str, typing.Any] + workloadType: typing_extensions.Literal[ + "WORKLOAD_TYPE_UNSPECIFIED", "MYSQL", "ORACLE", "REDIS" + ] @typing.type_check_only class ViolationDetails(typing_extensions.TypedDict, total=False): @@ -521,7 +451,3 @@ class WriteInsightRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class WriteInsightResponse(typing_extensions.TypedDict, total=False): ... - -@typing.type_check_only -class ZoneConfiguration(typing_extensions.TypedDict, total=False): - zone: str diff --git a/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi b/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi index 057981e5..6eca94e9 100644 --- a/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi @@ -27,6 +27,15 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class BoostConfig(typing_extensions.TypedDict, total=False): + accelerators: _list[Accelerator] + bootDiskSizeGb: int + enableNestedVirtualization: bool + id: str + machineType: str + poolSize: int + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -67,6 +76,7 @@ class GceConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class GceInstance(typing_extensions.TypedDict, total=False): accelerators: _list[Accelerator] + boostConfigs: _list[BoostConfig] bootDiskSizeGb: int confidentialInstanceConfig: GceConfidentialInstanceConfig disablePublicIpAddresses: bool @@ -81,6 +91,12 @@ class GceInstance(typing_extensions.TypedDict, total=False): tags: _list[str] vmTags: dict[str, typing.Any] +@typing.type_check_only +class GceInstanceHost(typing_extensions.TypedDict, total=False): + id: str + name: str + zone: str + @typing.type_check_only class GcePersistentDisk(typing_extensions.TypedDict, total=False): diskType: str @@ -217,6 +233,10 @@ class ReadinessCheck(typing_extensions.TypedDict, total=False): path: str port: int +@typing.type_check_only +class RuntimeHost(typing_extensions.TypedDict, total=False): + gceInstanceHost: GceInstanceHost + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy @@ -224,6 +244,7 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class StartWorkstationRequest(typing_extensions.TypedDict, total=False): + boostConfig: str etag: str validateOnly: bool @@ -259,6 +280,8 @@ class Workstation(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str reconciling: bool + runtimeHost: RuntimeHost + sourceWorkstation: str startTime: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -287,6 +310,7 @@ class WorkstationCluster(typing_extensions.TypedDict, total=False): privateClusterConfig: PrivateClusterConfig reconciling: bool subnetwork: str + tags: dict[str, typing.Any] uid: str updateTime: str diff --git a/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi index 86af1354..fd6563a3 100644 --- a/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi @@ -91,6 +91,12 @@ class GceInstance(typing_extensions.TypedDict, total=False): tags: _list[str] vmTags: dict[str, typing.Any] +@typing.type_check_only +class GceInstanceHost(typing_extensions.TypedDict, total=False): + id: str + name: str + zone: str + @typing.type_check_only class GcePersistentDisk(typing_extensions.TypedDict, total=False): diskType: str @@ -135,6 +141,7 @@ class Host(typing_extensions.TypedDict, total=False): @typing.type_check_only class HttpOptions(typing_extensions.TypedDict, total=False): allowedUnauthenticatedCorsPreflightRequests: bool + disableLocalhostReplacement: bool @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): @@ -218,6 +225,10 @@ class ReadinessCheck(typing_extensions.TypedDict, total=False): path: str port: int +@typing.type_check_only +class RuntimeHost(typing_extensions.TypedDict, total=False): + gceInstanceHost: GceInstanceHost + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy @@ -262,6 +273,7 @@ class Workstation(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str reconciling: bool + runtimeHost: RuntimeHost satisfiesPzi: bool satisfiesPzs: bool sourceWorkstation: str @@ -299,6 +311,7 @@ class WorkstationCluster(typing_extensions.TypedDict, total=False): satisfiesPzi: bool satisfiesPzs: bool subnetwork: str + tags: dict[str, typing.Any] uid: str updateTime: str diff --git a/googleapiclient-stubs/_apis/youtube/v3/schemas.pyi b/googleapiclient-stubs/_apis/youtube/v3/schemas.pyi index 81b70a74..66f94e6a 100644 --- a/googleapiclient-stubs/_apis/youtube/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/youtube/v3/schemas.pyi @@ -375,6 +375,9 @@ class ChannelStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class ChannelToStoreLinkDetails(typing_extensions.TypedDict, total=False): billingDetails: ChannelToStoreLinkDetailsBillingDetails + merchantAffiliateProgramDetails: ( + ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails + ) merchantId: str storeName: str storeUrl: str @@ -388,6 +391,17 @@ class ChannelToStoreLinkDetailsBillingDetails(typing_extensions.TypedDict, total "billingStatusInactive", ] +@typing.type_check_only +class ChannelToStoreLinkDetailsMerchantAffiliateProgramDetails( + typing_extensions.TypedDict, total=False +): + status: typing_extensions.Literal[ + "merchantAffiliateProgramStatusUnspecified", + "merchantAffiliateProgramStatusEligible", + "merchantAffiliateProgramStatusActive", + "merchantAffiliateProgramStatusPaused", + ] + @typing.type_check_only class ChannelTopicDetails(typing_extensions.TypedDict, total=False): topicCategories: _list[str] @@ -1933,7 +1947,6 @@ class SubscriptionListResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class SubscriptionSnippet(typing_extensions.TypedDict, total=False): channelId: str - channelTitle: str description: str publishedAt: str resourceId: ResourceId @@ -1986,6 +1999,7 @@ class SuperStickerMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class TestItem(typing_extensions.TypedDict, total=False): + etag: str featuredPart: bool gaia: str id: str @@ -2294,6 +2308,7 @@ class VideoStatistics(typing_extensions.TypedDict, total=False): @typing.type_check_only class VideoStatus(typing_extensions.TypedDict, total=False): + containsSyntheticMedia: bool embeddable: bool failureReason: typing_extensions.Literal[ "conversion", "invalidFile", "emptyFile", "tooSmall", "codec", "uploadAborted" diff --git a/googleapiclient-stubs/discovery.pyi b/googleapiclient-stubs/discovery.pyi index f9cc6c25..a6f00a7b 100644 --- a/googleapiclient-stubs/discovery.pyi +++ b/googleapiclient-stubs/discovery.pyi @@ -64,6 +64,7 @@ import googleapiclient._apis.appengine.v1beta5 import googleapiclient._apis.apphub.v1 import googleapiclient._apis.apphub.v1alpha import googleapiclient._apis.area120tables.v1alpha1 +import googleapiclient._apis.areainsights.v1 import googleapiclient._apis.artifactregistry.v1 import googleapiclient._apis.artifactregistry.v1beta1 import googleapiclient._apis.artifactregistry.v1beta2 @@ -251,6 +252,7 @@ import googleapiclient._apis.firebaseappcheck.v1beta import googleapiclient._apis.firebaseappdistribution.v1 import googleapiclient._apis.firebaseappdistribution.v1alpha import googleapiclient._apis.firebasedatabase.v1beta +import googleapiclient._apis.firebasedataconnect.v1beta import googleapiclient._apis.firebasedynamiclinks.v1 import googleapiclient._apis.firebasehosting.v1 import googleapiclient._apis.firebasehosting.v1beta1 @@ -340,9 +342,13 @@ import googleapiclient._apis.merchantapi.products_v1beta import googleapiclient._apis.merchantapi.promotions_v1beta import googleapiclient._apis.merchantapi.quota_v1beta import googleapiclient._apis.merchantapi.reports_v1beta +import googleapiclient._apis.merchantapi.reviews_v1beta import googleapiclient._apis.metastore.v1 import googleapiclient._apis.metastore.v1alpha import googleapiclient._apis.metastore.v1beta +import googleapiclient._apis.metastore.v2 +import googleapiclient._apis.metastore.v2alpha +import googleapiclient._apis.metastore.v2beta import googleapiclient._apis.migrationcenter.v1 import googleapiclient._apis.migrationcenter.v1alpha1 import googleapiclient._apis.ml.v1 @@ -356,6 +362,8 @@ import googleapiclient._apis.mybusinessnotifications.v1 import googleapiclient._apis.mybusinessplaceactions.v1 import googleapiclient._apis.mybusinessqanda.v1 import googleapiclient._apis.mybusinessverifications.v1 +import googleapiclient._apis.netapp.v1 +import googleapiclient._apis.netapp.v1beta1 import googleapiclient._apis.networkconnectivity.v1 import googleapiclient._apis.networkconnectivity.v1alpha1 import googleapiclient._apis.networkmanagement.v1 @@ -374,10 +382,13 @@ import googleapiclient._apis.orgpolicy.v2 import googleapiclient._apis.osconfig.v1 import googleapiclient._apis.osconfig.v1alpha import googleapiclient._apis.osconfig.v1beta +import googleapiclient._apis.osconfig.v2beta import googleapiclient._apis.oslogin.v1 import googleapiclient._apis.oslogin.v1alpha import googleapiclient._apis.oslogin.v1beta import googleapiclient._apis.pagespeedonline.v5 +import googleapiclient._apis.parallelstore.v1 +import googleapiclient._apis.parallelstore.v1beta import googleapiclient._apis.paymentsresellersubscription.v1 import googleapiclient._apis.people.v1 import googleapiclient._apis.places.v1 @@ -443,6 +454,7 @@ import googleapiclient._apis.secretmanager.v1beta2 import googleapiclient._apis.securitycenter.v1 import googleapiclient._apis.securitycenter.v1beta1 import googleapiclient._apis.securitycenter.v1beta2 +import googleapiclient._apis.securityposture.v1 import googleapiclient._apis.serviceconsumermanagement.v1 import googleapiclient._apis.serviceconsumermanagement.v1beta1 import googleapiclient._apis.servicecontrol.v1 @@ -1697,6 +1709,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.area120tables.v1alpha1.Area120TablesResource: ... @overload +def build( + serviceName: Literal["areainsights"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.areainsights.v1.AreaInsightsResource: ... +@overload def build( serviceName: Literal["artifactregistry"], version: Literal["v1"], @@ -5447,6 +5479,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.firebasedatabase.v1beta.FirebaseRealtimeDatabaseResource: ... @overload +def build( + serviceName: Literal["firebasedataconnect"], + version: Literal["v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.firebasedataconnect.v1beta.FirebaseDataConnectResource: ... +@overload def build( serviceName: Literal["firebasedynamiclinks"], version: Literal["v1"], @@ -7229,6 +7281,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.merchantapi.reports_v1beta.MerchantResource: ... @overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["reviews_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.reviews_v1beta.MerchantResource: ... +@overload def build( serviceName: Literal["metastore"], version: Literal["v1"], @@ -7289,6 +7361,66 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.metastore.v1beta.DataprocMetastoreResource: ... @overload +def build( + serviceName: Literal["metastore"], + version: Literal["v2"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.metastore.v2.DataprocMetastoreResource: ... +@overload +def build( + serviceName: Literal["metastore"], + version: Literal["v2alpha"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.metastore.v2alpha.DataprocMetastoreResource: ... +@overload +def build( + serviceName: Literal["metastore"], + version: Literal["v2beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.metastore.v2beta.DataprocMetastoreResource: ... +@overload def build( serviceName: Literal["migrationcenter"], version: Literal["v1"], @@ -7553,6 +7685,46 @@ def build( googleapiclient._apis.mybusinessverifications.v1.MyBusinessVerificationsResource ): ... @overload +def build( + serviceName: Literal["netapp"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.netapp.v1.NetAppFilesResource: ... +@overload +def build( + serviceName: Literal["netapp"], + version: Literal["v1beta1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.netapp.v1beta1.NetAppFilesResource: ... +@overload def build( serviceName: Literal["networkconnectivity"], version: Literal["v1"], @@ -7913,6 +8085,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.osconfig.v1beta.OSConfigResource: ... @overload +def build( + serviceName: Literal["osconfig"], + version: Literal["v2beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.osconfig.v2beta.OSConfigResource: ... +@overload def build( serviceName: Literal["oslogin"], version: Literal["v1"], @@ -7993,6 +8185,46 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.pagespeedonline.v5.PagespeedInsightsResource: ... @overload +def build( + serviceName: Literal["parallelstore"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.parallelstore.v1.ParallelstoreResource: ... +@overload +def build( + serviceName: Literal["parallelstore"], + version: Literal["v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.parallelstore.v1beta.ParallelstoreResource: ... +@overload def build( serviceName: Literal["paymentsresellersubscription"], version: Literal["v1"], @@ -9301,6 +9533,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.securitycenter.v1beta2.SecurityCommandCenterResource: ... @overload +def build( + serviceName: Literal["securityposture"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.securityposture.v1.SecurityPostureResource: ... +@overload def build( serviceName: Literal["serviceconsumermanagement"], version: Literal["v1"], diff --git a/pyproject.toml b/pyproject.toml index 7b851a20..7338053c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ "Typing :: Stubs Only", ] dependencies = [ - "google-api-python-client>=2.147.0", + "google-api-python-client>=2.159.0", "types-httplib2>=0.22.0.2", "typing-extensions>=3.10.0", ] diff --git a/uv.lock b/uv.lock index c0b5c879..19a5f7db 100644 --- a/uv.lock +++ b/uv.lock @@ -138,7 +138,7 @@ wheels = [ [[package]] name = "google-api-python-client" -version = "2.147.0" +version = "2.159.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "google-api-core" }, @@ -147,14 +147,14 @@ dependencies = [ { name = "httplib2" }, { name = "uritemplate" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/35/a4/73b9d642fa82f6fad67b0449c109a06c8e19b5980204b24fa86b86e8da06/google_api_python_client-2.147.0.tar.gz", hash = "sha256:e864c2cf61d34c00f05278b8bdb72b93b6fa34f0de9ead51d20435f3b65f91be", size = 11729279 } +sdist = { url = "https://files.pythonhosted.org/packages/5a/9f/12b58cca5a93d63fd6a7abed570423bdf2db4349eb9361ac5214d42ed7d6/google_api_python_client-2.159.0.tar.gz", hash = "sha256:55197f430f25c907394b44fa078545ffef89d33fd4dca501b7db9f0d8e224bd6", size = 12302576 } wheels = [ - { url = "https://files.pythonhosted.org/packages/44/c9/5750e53ec3d651e8bd986c9ded1608886205bc37880ce15333889622e9c5/google_api_python_client-2.147.0-py2.py3-none-any.whl", hash = "sha256:c6ecfa193c695baa41e84562d8f8f244fcd164419eca3fc9fd7565646668f9b2", size = 12235050 }, + { url = "https://files.pythonhosted.org/packages/51/ab/d0671375afe79e6e8c51736e115a69bb6b4bcdc80cd5c01bf667486cd24c/google_api_python_client-2.159.0-py2.py3-none-any.whl", hash = "sha256:baef0bb631a60a0bd7c0bf12a5499e3a40cd4388484de7ee55c1950bf820a0cf", size = 12814228 }, ] [[package]] name = "google-api-python-client-stubs" -version = "1.27.0" +version = "1.28.0" source = { editable = "." } dependencies = [ { name = "google-api-python-client" }, @@ -171,7 +171,7 @@ dev = [ [package.metadata] requires-dist = [ - { name = "google-api-python-client", specifier = ">=2.147.0" }, + { name = "google-api-python-client", specifier = ">=2.159.0" }, { name = "types-httplib2", specifier = ">=0.22.0.2" }, { name = "typing-extensions", specifier = ">=3.10.0" }, ]