File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/vn_monitoring/models/add_drg_route_distribution_statement_details.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: 20160918 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 AddDrgRouteDistributionStatementDetails(object): """ Details used to add a route distribution statement. """ #: A constant which can be used with the action property of a AddDrgRouteDistributionStatementDetails. #: This constant has a value of "ACCEPT" ACTION_ACCEPT = "ACCEPT" def __init__(self, **kwargs): """ Initializes a new AddDrgRouteDistributionStatementDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param match_criteria: The value to assign to the match_criteria property of this AddDrgRouteDistributionStatementDetails. :type match_criteria: list[oci.vn_monitoring.models.DrgRouteDistributionMatchCriteria] :param action: The value to assign to the action property of this AddDrgRouteDistributionStatementDetails. Allowed values for this property are: "ACCEPT" :type action: str :param priority: The value to assign to the priority property of this AddDrgRouteDistributionStatementDetails. :type priority: int """ self.swagger_types = { 'match_criteria': 'list[DrgRouteDistributionMatchCriteria]', 'action': 'str', 'priority': 'int' } self.attribute_map = { 'match_criteria': 'matchCriteria', 'action': 'action', 'priority': 'priority' } self._match_criteria = None self._action = None self._priority = None @property def match_criteria(self): """ **[Required]** Gets the match_criteria of this AddDrgRouteDistributionStatementDetails. The action is applied only if all of the match criteria is met. :return: The match_criteria of this AddDrgRouteDistributionStatementDetails. :rtype: list[oci.vn_monitoring.models.DrgRouteDistributionMatchCriteria] """ return self._match_criteria @match_criteria.setter def match_criteria(self, match_criteria): """ Sets the match_criteria of this AddDrgRouteDistributionStatementDetails. The action is applied only if all of the match criteria is met. :param match_criteria: The match_criteria of this AddDrgRouteDistributionStatementDetails. :type: list[oci.vn_monitoring.models.DrgRouteDistributionMatchCriteria] """ self._match_criteria = match_criteria @property def action(self): """ **[Required]** Gets the action of this AddDrgRouteDistributionStatementDetails. Accept: import/export the route \"as is\" Allowed values for this property are: "ACCEPT" :return: The action of this AddDrgRouteDistributionStatementDetails. :rtype: str """ return self._action @action.setter def action(self, action): """ Sets the action of this AddDrgRouteDistributionStatementDetails. Accept: import/export the route \"as is\" :param action: The action of this AddDrgRouteDistributionStatementDetails. :type: str """ allowed_values = ["ACCEPT"] if not value_allowed_none_or_none_sentinel(action, allowed_values): raise ValueError( f"Invalid value for `action`, must be None or one of {allowed_values}" ) self._action = action @property def priority(self): """ **[Required]** Gets the priority of this AddDrgRouteDistributionStatementDetails. This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route. :return: The priority of this AddDrgRouteDistributionStatementDetails. :rtype: int """ return self._priority @priority.setter def priority(self, priority): """ Sets the priority of this AddDrgRouteDistributionStatementDetails. This field is used to specify the priority of each statement in a route distribution. The priority will be represented as a number between 0 and 65535 where a lower number indicates a higher priority. When a route is processed, statements are applied in the order defined by their priority. The first matching rule dictates the action that will be taken on the route. :param priority: The priority of this AddDrgRouteDistributionStatementDetails. :type: int """ self._priority = priority 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