Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,27 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource):
self, *, name: str, **kwargs: typing.Any
) -> OperationHttpRequest: ...
def get(
self, *, name: str, **kwargs: typing.Any
self,
*,
name: str,
deletedPrincipalSyntax: typing.Literal[
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED",
]
| None = ...,
**kwargs: typing.Any,
) -> ServicePerimeterHttpRequest: ...
def list(
self,
*,
parent: str,
deletedPrincipalSyntax: typing.Literal[
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED",
]
| None = ...,
pageSize: int | None = ...,
pageToken: str | None = ...,
**kwargs: typing.Any,
Expand All @@ -141,6 +156,12 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource):
*,
name: str,
body: ServicePerimeter,
deletedPrincipalSyntax: typing.Literal[
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED",
"DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED",
]
| None = ...,
updateMask: str | None = ...,
**kwargs: typing.Any,
) -> OperationHttpRequest: ...
Expand Down Expand Up @@ -206,6 +227,12 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource):
def authorizedOrgsDescs(self) -> AuthorizedOrgsDescsResource: ...
def servicePerimeters(self) -> ServicePerimetersResource: ...

@typing.type_check_only
class FoldersResource(googleapiclient.discovery.Resource):
def lookupConfiguredServicePerimeter(
self, *, resource: str, **kwargs: typing.Any
) -> LookupConfiguredServicePerimeterResponseHttpRequest: ...

@typing.type_check_only
class OperationsResource(googleapiclient.discovery.Resource):
def cancel(
Expand Down Expand Up @@ -283,6 +310,12 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource):
previous_response: ListSupportedPermissionsResponse,
) -> ListSupportedPermissionsResponseHttpRequest | None: ...

@typing.type_check_only
class ProjectsResource(googleapiclient.discovery.Resource):
def lookupConfiguredServicePerimeter(
self, *, resource: str, **kwargs: typing.Any
) -> LookupConfiguredServicePerimeterResponseHttpRequest: ...

@typing.type_check_only
class ServicesResource(googleapiclient.discovery.Resource):
def get(
Expand Down Expand Up @@ -314,9 +347,11 @@ class AccessContextManagerResource(googleapiclient.discovery.Resource):
| None = None,
) -> googleapiclient.http.BatchHttpRequest: ...
def accessPolicies(self) -> AccessPoliciesResource: ...
def folders(self) -> FoldersResource: ...
def operations(self) -> OperationsResource: ...
def organizations(self) -> OrganizationsResource: ...
def permissions(self) -> PermissionsResource: ...
def projects(self) -> ProjectsResource: ...
def services(self) -> ServicesResource: ...

@typing.type_check_only
Expand Down Expand Up @@ -423,6 +458,16 @@ class ListSupportedServicesResponseHttpRequest(googleapiclient.http.HttpRequest)
num_retries: int = 0,
) -> ListSupportedServicesResponse: ...

@typing.type_check_only
class LookupConfiguredServicePerimeterResponseHttpRequest(
googleapiclient.http.HttpRequest
):
def execute(
self,
http: httplib2.Http | googleapiclient.http.HttpMock | None = None,
num_retries: int = 0,
) -> LookupConfiguredServicePerimeterResponse: ...

@typing.type_check_only
class OperationHttpRequest(googleapiclient.http.HttpRequest):
def execute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class GcpUserAccessBinding(typing.TypedDict, total=False):
groupKey: str
name: str
principal: Principal
restrictedClientApplications: _list[Application]
scopedAccessSettings: _list[ScopedAccessSettings]
sessionSettings: SessionSettings

Expand Down Expand Up @@ -269,6 +268,13 @@ class ListSupportedServicesResponse(typing.TypedDict, total=False):
nextPageToken: str
supportedServices: _list[SupportedService]

@typing.type_check_only
class LookupConfiguredServicePerimeterResponse(typing.TypedDict, total=False):
restrictedResource: str
restrictedResourceDryRun: str
servicePerimeter: str
servicePerimeterDryRun: str

@typing.type_check_only
class MethodSelector(typing.TypedDict, total=False):
method: str
Expand Down
5 changes: 5 additions & 0 deletions googleapiclient-stubs/_apis/admin/directory_v1/schemas.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ class Domains2(typing.TypedDict, total=False):
@typing.type_check_only
class Empty(typing.TypedDict, total=False): ...

@typing.type_check_only
class ExpirationDetails(typing.TypedDict, total=False):
expireTime: str

@typing.type_check_only
class ExternalId(typing.TypedDict, total=False):
id: str
Expand Down Expand Up @@ -730,6 +734,7 @@ class RoleAssignment(typing.TypedDict, total=False):
assigneeType: typing.Literal["user", "group"]
condition: str
etag: str
expirationDetails: ExpirationDetails
kind: str
orgUnitId: str
roleAssignmentId: str
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions googleapiclient-stubs/_apis/agenciesandbrands/v1/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .resources import *
from .schemas import *
132 changes: 132 additions & 0 deletions googleapiclient-stubs/_apis/agenciesandbrands/v1/resources.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import collections.abc
import typing

import httplib2

import googleapiclient.discovery
import googleapiclient.http

from .schemas import *

_list = list

@typing.type_check_only
class AgenciesAndBrandsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class AgenciesResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class ReportsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class OperationsResource(googleapiclient.discovery.Resource):
def get(
self, *, name: str, **kwargs: typing.Any
) -> OperationHttpRequest: ...

@typing.type_check_only
class ResultsResource(googleapiclient.discovery.Resource):
def fetchRows(
self,
*,
name: str,
pageSize: int | None = ...,
pageToken: str | None = ...,
**kwargs: typing.Any,
) -> FetchReportResultRowsResponseHttpRequest: ...
def fetchRows_next(
self,
previous_request: FetchReportResultRowsResponseHttpRequest,
previous_response: FetchReportResultRowsResponse,
) -> FetchReportResultRowsResponseHttpRequest | None: ...

def create(
self, *, parent: str, body: Report, **kwargs: typing.Any
) -> ReportHttpRequest: ...
def delete(
self, *, name: str, **kwargs: typing.Any
) -> EmptyHttpRequest: ...
def get(self, *, name: str, **kwargs: typing.Any) -> ReportHttpRequest: ...
def list(
self,
*,
parent: str,
filter: str | None = ...,
orderBy: str | None = ...,
pageSize: int | None = ...,
pageToken: str | None = ...,
skip: int | None = ...,
**kwargs: typing.Any,
) -> ListReportsResponseHttpRequest: ...
def list_next(
self,
previous_request: ListReportsResponseHttpRequest,
previous_response: ListReportsResponse,
) -> ListReportsResponseHttpRequest | None: ...
def patch(
self,
*,
name: str,
body: Report,
updateMask: str | None = ...,
**kwargs: typing.Any,
) -> ReportHttpRequest: ...
def run(
self, *, name: str, body: RunReportRequest, **kwargs: typing.Any
) -> OperationHttpRequest: ...
def operations(self) -> OperationsResource: ...
def results(self) -> ResultsResource: ...

def reports(self) -> ReportsResource: ...

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 agencies(self) -> AgenciesResource: ...

@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 FetchReportResultRowsResponseHttpRequest(googleapiclient.http.HttpRequest):
def execute(
self,
http: httplib2.Http | googleapiclient.http.HttpMock | None = None,
num_retries: int = 0,
) -> FetchReportResultRowsResponse: ...

@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 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 ReportHttpRequest(googleapiclient.http.HttpRequest):
def execute(
self,
http: httplib2.Http | googleapiclient.http.HttpMock | None = None,
num_retries: int = 0,
) -> Report: ...
Loading
Loading