File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/dbmulticloud/models/gcp_nodes.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240501 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class GcpNodes(object): """ GCP Identity Connector node details. """ #: A constant which can be used with the status property of a GcpNodes. #: This constant has a value of "CONNECTED" STATUS_CONNECTED = "CONNECTED" #: A constant which can be used with the status property of a GcpNodes. #: This constant has a value of "DISCONNECTED" STATUS_DISCONNECTED = "DISCONNECTED" #: A constant which can be used with the status property of a GcpNodes. #: This constant has a value of "UNKNOWN" STATUS_UNKNOWN = "UNKNOWN" def __init__(self, **kwargs): """ Initializes a new GcpNodes object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param host_name: The value to assign to the host_name property of this GcpNodes. :type host_name: str :param host_id: The value to assign to the host_id property of this GcpNodes. :type host_id: str :param status: The value to assign to the status property of this GcpNodes. Allowed values for this property are: "CONNECTED", "DISCONNECTED", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param time_last_checked: The value to assign to the time_last_checked property of this GcpNodes. :type time_last_checked: datetime """ self.swagger_types = { 'host_name': 'str', 'host_id': 'str', 'status': 'str', 'time_last_checked': 'datetime' } self.attribute_map = { 'host_name': 'hostName', 'host_id': 'hostId', 'status': 'status', 'time_last_checked': 'timeLastChecked' } self._host_name = None self._host_id = None self._status = None self._time_last_checked = None @property def host_name(self): """ Gets the host_name of this GcpNodes. Host Name or Identity Connector name. :return: The host_name of this GcpNodes. :rtype: str """ return self._host_name @host_name.setter def host_name(self, host_name): """ Sets the host_name of this GcpNodes. Host Name or Identity Connector name. :param host_name: The host_name of this GcpNodes. :type: str """ self._host_name = host_name @property def host_id(self): """ Gets the host_id of this GcpNodes. Host ID. :return: The host_id of this GcpNodes. :rtype: str """ return self._host_id @host_id.setter def host_id(self, host_id): """ Sets the host_id of this GcpNodes. Host ID. :param host_id: The host_id of this GcpNodes. :type: str """ self._host_id = host_id @property def status(self): """ Gets the status of this GcpNodes. The current status of the GCP Identity Connector resource. Allowed values for this property are: "CONNECTED", "DISCONNECTED", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this GcpNodes. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this GcpNodes. The current status of the GCP Identity Connector resource. :param status: The status of this GcpNodes. :type: str """ allowed_values = ["CONNECTED", "DISCONNECTED", "UNKNOWN"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status @property def time_last_checked(self): """ Gets the time_last_checked of this GcpNodes. time when the GCP Identity Connector's status was checked `RFC 3339`__ timestamp format, e.g. '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :return: The time_last_checked of this GcpNodes. :rtype: datetime """ return self._time_last_checked @time_last_checked.setter def time_last_checked(self, time_last_checked): """ Sets the time_last_checked of this GcpNodes. time when the GCP Identity Connector's status was checked `RFC 3339`__ timestamp format, e.g. '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :param time_last_checked: The time_last_checked of this GcpNodes. :type: datetime """ self._time_last_checked = time_last_checked def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings