OperationsResponse

class openapi_client.models.operations_response.OperationsResponse(**data)[source]

Bases: BaseModel

cluster_metrics: Optional[ClusterMetrics]
cluster_schemas: Optional[ClusterSchemas]
cluster_schema_tables: Optional[ClusterSchemaTables]
dwh_list_tables: Optional[DWHListTables]
dwh_query_response: Optional[DWHQueryResponse]
dwh_query_results: Optional[DWHQueryResults]
message_status: Optional[MessageStatus]
tenants: Optional[Tenants]
tenant_response_body: Optional[TenantResponseBody]
wlm_config_response: Optional[WLMConfigResponse]
wlm_queue_config: Optional[WLMQueueConfig]
cluster_groups: Optional[ClusterGroups]
queries_and_loads_response: Optional[QueriesAndLoadsResponse]
index_history: Optional[List[IndexHistoryInner]]
model_config: ClassVar[ConfigDict] = {'populate_by_name': True, 'protected_namespaces': (), 'validate_assignment': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

to_str()[source]

Returns the string representation of the model using alias

Return type:

str

to_json()[source]

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)[source]

Create an instance of OperationsResponse from a JSON string

Return type:

Optional[Self]

to_dict()[source]

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)[source]

Create an instance of OperationsResponse from a dict

Return type:

Optional[Self]

model_fields: ClassVar[dict[str, FieldInfo]] = {'cluster_groups': FieldInfo(annotation=Union[ClusterGroups, NoneType], required=False, alias='ClusterGroups', alias_priority=2), 'cluster_metrics': FieldInfo(annotation=Union[ClusterMetrics, NoneType], required=False, alias='ClusterMetrics', alias_priority=2), 'cluster_schema_tables': FieldInfo(annotation=Union[ClusterSchemaTables, NoneType], required=False, alias='ClusterSchemaTables', alias_priority=2), 'cluster_schemas': FieldInfo(annotation=Union[ClusterSchemas, NoneType], required=False, alias='ClusterSchemas', alias_priority=2), 'dwh_list_tables': FieldInfo(annotation=Union[DWHListTables, NoneType], required=False, alias='DWHListTables', alias_priority=2), 'dwh_query_response': FieldInfo(annotation=Union[DWHQueryResponse, NoneType], required=False, alias='DWHQueryResponse', alias_priority=2), 'dwh_query_results': FieldInfo(annotation=Union[DWHQueryResults, NoneType], required=False, alias='DWHQueryResults', alias_priority=2), 'index_history': FieldInfo(annotation=Union[List[IndexHistoryInner], NoneType], required=False, alias='IndexHistory', alias_priority=2), 'message_status': FieldInfo(annotation=Union[MessageStatus, NoneType], required=False, alias='MessageStatus', alias_priority=2), 'queries_and_loads_response': FieldInfo(annotation=Union[QueriesAndLoadsResponse, NoneType], required=False, alias='QueriesAndLoadsResponse', alias_priority=2), 'tenant_response_body': FieldInfo(annotation=Union[TenantResponseBody, NoneType], required=False, alias='TenantResponseBody', alias_priority=2), 'tenants': FieldInfo(annotation=Union[Tenants, NoneType], required=False, alias='Tenants', alias_priority=2), 'wlm_config_response': FieldInfo(annotation=Union[WLMConfigResponse, NoneType], required=False, alias='WLMConfigResponse', alias_priority=2), 'wlm_queue_config': FieldInfo(annotation=Union[WLMQueueConfig, NoneType], required=False, alias='WLMQueueConfig', alias_priority=2)}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

model_post_init(__context)

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self (BaseModel) – The BaseModel instance.

  • __context (Any) – The context.

Return type:

None