ruạṛ
a ���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )� UrlPattern� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ sJ e Zd ZdZdd� Zedd� �Zejdd� �Zdd� Zd d � Z dd� Z d S )�SimpleUrlPatternaG Pattern describing an http/https URL or set thereof as a concatenation of optional host component and optional path component. `*.example.com` will match http://example.com/ and https://foo.example.com/foo?bar. `www.example.com/foo*` will match https://www.example.com/foo and http://www.exampe.com/foobar and https://www.example.com/foo/bar?baz, but not http://sub.www.example.com/foo or https://www.example.com/FOO. `*.example.com/foo*` will match http://example.com/foo and https://sub2.sub.example.com/foo/bar?baz, but not http://example.com/FOO. c K s. ddd�| _ ddd�| _d| _d| _d| _dS )a� Initializes a new SimpleUrlPattern object with values from keyword arguments. The default value of the :py:attr:`~oci.network_firewall.models.SimpleUrlPattern.type` attribute of this class is ``SIMPLE`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this SimpleUrlPattern. Allowed values for this property are: "SIMPLE" :type type: str :param pattern: The value to assign to the pattern property of this SimpleUrlPattern. :type pattern: str �str)�type�patternr r NZSIMPLE)Z swagger_typesZ attribute_mapZ_type�_pattern)�self�kwargs� r �R/usr/lib/python3.9/site-packages/oci/network_firewall/models/simple_url_pattern.py�__init__ s ��zSimpleUrlPattern.__init__c C s | j S )a� **[Required]** Gets the pattern of this SimpleUrlPattern. A string consisting of a concatenation of optional host component and optional path component. The host component may start with `*.` to match the case-insensitive domain and all its subdomains. The path component must start with a `/`, and may end with `*` to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests. :return: The pattern of this SimpleUrlPattern. :rtype: str �r �r r r r r 8 s zSimpleUrlPattern.patternc C s || _ dS )a� Sets the pattern of this SimpleUrlPattern. A string consisting of a concatenation of optional host component and optional path component. The host component may start with `*.` to match the case-insensitive domain and all its subdomains. The path component must start with a `/`, and may end with `*` to match all paths of which it is a case-sensitive prefix. A missing host component matches all request domains, and a missing path component matches all request paths. An empty value matches all requests. :param pattern: The pattern of this SimpleUrlPattern. :type: str Nr )r r r r r r H s c C s t | �S �N)r r r r r �__repr__X s zSimpleUrlPattern.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__[ s zSimpleUrlPattern.__eq__c C s | |k S r r r r r r �__ne__a s zSimpleUrlPattern.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r s r N) Zurl_patternr Zoci.utilr r r Zoci.decoratorsr r r r r r �<module> s
cải xoăn