SeasonsOperations Class

SeasonsOperations 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
SeasonsOperations

Constructor

SeasonsOperations(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 a season resource.

delete

Deletes a specified season resource.

get

Gets a specified season resource.

list

Returns a paginated list of season resources.

create_or_update

Creates or updates a season resource.

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

Parameters

season_id
str
Required

ID of the season resource.

season
Season
default value: None

Season resource payload to create or update.

cls
callable

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

Returns

Season, or the result of cls(response)

Return type

delete

Deletes a specified season resource.

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

Parameters

season_id
str
Required

ID of the season.

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

Gets a specified season resource.

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

Parameters

season_id
str
Required

ID of the season.

cls
callable

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

Returns

Season, or the result of cls(response)

Return type

list

Returns a paginated list of season resources.

list(min_start_date_time: typing.Union[datetime.datetime, NoneType] = None, max_start_date_time: typing.Union[datetime.datetime, NoneType] = None, min_end_date_time: typing.Union[datetime.datetime, NoneType] = None, max_end_date_time: typing.Union[datetime.datetime, NoneType] = None, years: typing.Union[typing.List[int], NoneType] = None, 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.SeasonListResponse')]

Parameters

min_start_date_time
datetime
default value: None

Minimum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.

max_start_date_time
datetime
default value: None

Maximum season start datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.

min_end_date_time
datetime
default value: None

Minimum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.

max_end_date_time
datetime
default value: None

Maximum season end datetime, sample format: yyyy-MM-ddTHH:mm:ssZ.

years
list[int]
default value: None

Years of the resource.

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 SeasonListResponse 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'>