-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
319 changed files
with
27,294 additions
and
1,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
170
googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
86
googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 2 additions & 0 deletions
2
googleapiclient-stubs/_apis/adsenseplatform/v1alpha/__init__.pyi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .resources import * | ||
from .schemas import * |
Oops, something went wrong.