Skip to content

Commit

Permalink
Add v2.141.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
henribru committed Aug 16, 2024
1 parent a0da33f commit 997d29b
Show file tree
Hide file tree
Showing 319 changed files with 27,294 additions and 1,631 deletions.
6 changes: 6 additions & 0 deletions googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ class AccessApprovalSettings(typing_extensions.TypedDict, total=False):
notificationPubsubTopic: str
preferNoBroadApprovalRequests: bool
preferredRequestExpirationDays: int
requestScopeMaxWidthPreference: typing_extensions.Literal[
"REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED",
"ORGANIZATION",
"FOLDER",
"PROJECT",
]
requireCustomerVisibleJustification: bool

@typing.type_check_only
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ class SupportedService(typing_extensions.TypedDict, total=False):
availableOnRestrictedVip: bool
knownLimitations: bool
name: str
serviceSupportStage: typing_extensions.Literal[
"SERVICE_SUPPORT_STAGE_UNSPECIFIED", "GA", "PREVIEW", "DEPRECATED"
]
supportStage: typing_extensions.Literal[
"LAUNCH_STAGE_UNSPECIFIED",
"UNIMPLEMENTED",
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions googleapiclient-stubs/_apis/adsenseplatform/v1/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .resources import *
from .schemas import *
170 changes: 170 additions & 0 deletions googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
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 AdSensePlatformResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class PlatformsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class AccountsResource(googleapiclient.discovery.Resource):
@typing.type_check_only
class EventsResource(googleapiclient.discovery.Resource):
def create(
self, *, parent: str, body: Event = ..., **kwargs: typing.Any
) -> EventHttpRequest: ...

@typing.type_check_only
class SitesResource(googleapiclient.discovery.Resource):
def create(
self, *, parent: str, body: Site = ..., **kwargs: typing.Any
) -> SiteHttpRequest: ...
def delete(
self, *, name: str, **kwargs: typing.Any
) -> EmptyHttpRequest: ...
def get(
self, *, name: str, **kwargs: typing.Any
) -> SiteHttpRequest: ...
def list(
self,
*,
parent: str,
pageSize: int = ...,
pageToken: str = ...,
**kwargs: typing.Any,
) -> ListSitesResponseHttpRequest: ...
def list_next(
self,
previous_request: ListSitesResponseHttpRequest,
previous_response: ListSitesResponse,
) -> ListSitesResponseHttpRequest | None: ...
def requestReview(
self, *, name: str, **kwargs: typing.Any
) -> RequestSiteReviewResponseHttpRequest: ...

def close( # type: ignore[override]
self,
*,
name: str,
body: CloseAccountRequest = ...,
**kwargs: typing.Any,
) -> CloseAccountResponseHttpRequest: ...
def create(
self, *, parent: str, body: Account = ..., **kwargs: typing.Any
) -> AccountHttpRequest: ...
def get(self, *, name: str, **kwargs: typing.Any) -> AccountHttpRequest: ...
def list(
self,
*,
parent: str,
pageSize: int = ...,
pageToken: str = ...,
**kwargs: typing.Any,
) -> ListAccountsResponseHttpRequest: ...
def list_next(
self,
previous_request: ListAccountsResponseHttpRequest,
previous_response: ListAccountsResponse,
) -> ListAccountsResponseHttpRequest | None: ...
def lookup(
self, *, parent: str, creationRequestId: str = ..., **kwargs: typing.Any
) -> LookupAccountResponseHttpRequest: ...
def events(self) -> EventsResource: ...
def sites(self) -> SitesResource: ...

def accounts(self) -> AccountsResource: ...

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 platforms(self) -> PlatformsResource: ...

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

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

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

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

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

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

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

@typing.type_check_only
class SiteHttpRequest(googleapiclient.http.HttpRequest):
def execute(
self,
http: httplib2.Http | googleapiclient.http.HttpMock | None = None,
num_retries: int = 0,
) -> Site: ...
86 changes: 86 additions & 0 deletions googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import typing

import typing_extensions

_list = list

@typing.type_check_only
class Account(typing_extensions.TypedDict, total=False):
createTime: str
creationRequestId: str
displayName: str
name: str
regionCode: str
state: typing_extensions.Literal[
"STATE_UNSPECIFIED", "UNCHECKED", "APPROVED", "DISAPPROVED"
]
timeZone: TimeZone

@typing.type_check_only
class Address(typing_extensions.TypedDict, total=False):
address1: str
address2: str
city: str
company: str
contact: str
fax: str
phone: str
regionCode: str
state: str
zip: str

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

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

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

@typing.type_check_only
class Event(typing_extensions.TypedDict, total=False):
eventInfo: EventInfo
eventTime: str
eventType: typing_extensions.Literal[
"EVENT_TYPE_UNSPECIFIED", "LOG_IN_VIA_PLATFORM", "SIGN_UP_VIA_PLATFORM"
]

@typing.type_check_only
class EventInfo(typing_extensions.TypedDict, total=False):
billingAddress: Address
email: str

@typing.type_check_only
class ListAccountsResponse(typing_extensions.TypedDict, total=False):
accounts: _list[Account]
nextPageToken: str

@typing.type_check_only
class ListSitesResponse(typing_extensions.TypedDict, total=False):
nextPageToken: str
sites: _list[Site]

@typing.type_check_only
class LookupAccountResponse(typing_extensions.TypedDict, total=False):
name: str

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

@typing.type_check_only
class Site(typing_extensions.TypedDict, total=False):
domain: str
name: str
state: typing_extensions.Literal[
"STATE_UNSPECIFIED",
"REQUIRES_REVIEW",
"GETTING_READY",
"READY",
"NEEDS_ATTENTION",
]

@typing.type_check_only
class TimeZone(typing_extensions.TypedDict, total=False):
id: str
version: str
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .resources import *
from .schemas import *
Loading

0 comments on commit 997d29b

Please sign in to comment.