OAuthProvidersOperations Class

OAuthProvidersOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
OAuthProvidersOperations

Constructor

OAuthProvidersOperations(client, config, serializer, deserializer) -> None

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Creates or updates an oauthProvider resource.

delete

Deletes an specified oauthProvider resource.

get

Get a specified oauthProvider resource.

list

Returns a paginated list of oauthProvider resources.

create_or_update

Creates or updates an oauthProvider resource.

create_or_update(oauth_provider_id: str, oauth_provider: typing.Union[_ForwardRef('_models.OAuthProvider'), NoneType] = None, **kwargs: typing.Any) -> azure.agrifood.farming.models._models_py3.OAuthProvider

Parameters

oauth_provider_id
str
Required

ID of oauthProvider resource.

oauth_provider
OAuthProvider
default value: None

OauthProvider resource payload to create or update.

cls
callable

A custom type or function that will be passed the direct response

Returns

OAuthProvider, or the result of cls(response)

Return type

delete

Deletes an specified oauthProvider resource.

delete(oauth_provider_id: str, **kwargs: typing.Any) -> None

Parameters

oauth_provider_id
str
Required

ID of oauthProvider.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

get

Get a specified oauthProvider resource.

get(oauth_provider_id: str, **kwargs: typing.Any) -> azure.agrifood.farming.models._models_py3.OAuthProvider

Parameters

oauth_provider_id
str
Required

ID of the oauthProvider resource.

cls
callable

A custom type or function that will be passed the direct response

Returns

OAuthProvider, or the result of cls(response)

Return type

list

Returns a paginated list of oauthProvider resources.

list(ids: typing.Union[typing.List[str], NoneType] = None, names: typing.Union[typing.List[str], NoneType] = None, property_filters: typing.Union[typing.List[str], NoneType] = None, statuses: typing.Union[typing.List[str], NoneType] = None, min_created_date_time: typing.Union[datetime.datetime, NoneType] = None, max_created_date_time: typing.Union[datetime.datetime, NoneType] = None, min_last_modified_date_time: typing.Union[datetime.datetime, NoneType] = None, max_last_modified_date_time: typing.Union[datetime.datetime, NoneType] = None, max_page_size: typing.Union[int, NoneType] = 50, skip_token: typing.Union[str, NoneType] = None, **kwargs: typing.Any) -> typing.AsyncIterable[_ForwardRef('_models.OAuthProviderListResponse')]

Parameters

ids
list[str]
default value: None

Ids of the resource.

names
list[str]
default value: None

Names of the resource.

property_filters
list[str]
default value: None

Filters on key-value pairs within the Properties object. eg. "{testKey} eq {testValue}".

statuses
list[str]
default value: None

Statuses of the resource.

min_created_date_time
datetime
default value: None

Minimum creation date of resource (inclusive).

max_created_date_time
datetime
default value: None

Maximum creation date of resource (inclusive).

min_last_modified_date_time
datetime
default value: None

Minimum last modified date of resource (inclusive).

max_last_modified_date_time
datetime
default value: None

Maximum last modified date of resource (inclusive).

max_page_size
int
default value: 50

Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.

skip_token
str
default value: None

Skip token for getting next set of results.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either OAuthProviderListResponse or the result of cls(response)

Return type

Attributes

models

models = <module 'azure.agrifood.farming.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\agrifood\\farming\\models\\__init__.py'>