ruạṛ
a O��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 )�SimpleUrlPatterna� Pattern describing an http/https URL or set thereof as a concatenation of optional host component and optional path component. Key points: 1. Use the specific URLs or construct the URL patterns you want to match using wildcard `*` and token characters `./`. 2. In the host component and path component don't enter consecutive wildcard `*` for example: `example.*.*.com`. 3. To match the exact domain and its subdirectories add a trailing slash `/` to your entry. 4. The firewall interprets entries that do not end in a `/` or `*` with an implicit asterisk `*` to their end, which further increases the potential matches. 5. The Use of multiple wildcards in a single pattern can impact the performance of the firewall. Domain/subdomains match examples: 1. `*.example.com.*` will match `sub1.sub2.example.com.info.us` and `sub1.example.com.us` and `sub1.example.com/subdirectory` but not match `sub1.example.com`. 2. `*.example.com` will match `sub1.example.com` and `sub1.sub2.example.com` and `sub1.example.com.au` but not match `example.com`. 3. `*.example.com/` will match `sub1.sub2.example.com` and `sub1.example.com` but not match `sub1.example.com.au`. 4. `example.com` will match `example.com` and `example.com.au` and `example.com.info.us` and `example.com/subdirectory`. 5. `example.com/` will match `example.com` and `example.com/foo` but not `example.com.info.us`. 6. `example.*.com` will match `example.sub1.com` and `example.sub1.sub2.com` and `example.sub1.com.au` and `example.sub1.com/subdirecroty`. 7. `example.*.com/` will match `example.sub1.com` and `example.sub1.sub2.com` and `example.sub1.com/subdirecroty` but not match `example.sub1.com.au`. 8. `example.com.*` will match `example.com.us` and `example.com.info.us` and `example.com.us/subdirectory` but not match `sub1.example.com`. Subdirectory or path match examples: 1. `example.com/*` will match `example.com/foo` and `example.com/bar` and any `example.com/subdirectory`. 2. `example.com/foo` will match `example.com/foo`. 3. `www.example.com/foo/*` will match `www.exampe.com/foo/subdiectory`, but not match `www.example.com/FOO` or `www.example.com/bar/subdirectory`. 4. `*.example.com/foo/*` will match `sub2.sub.example.com/foo/subdirectory` but not match `sub1.example.com/FOO` or `sub1.example.com/bar/subdirectory`. Other examples containing IP addresses in urls: 1. 103.12.14.122/ will match 103.12.14.122 and 103.12.14.122/subdirectory. 2. 103.12.14.122:8081/ will match 103.12.14.122:8081 and 103.12.14.122:8081/subdirectory. 3. 2607:9d80:4680:3f01:0000:0000:00d0:00c0/ will match 2607:9d80:4680:3f01:0000:0000:00d0:00c0 and 2607:9d80:4680:3f01:0000:0000:00d0:00c0/subdirecroty. 4. [2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081/ will match [2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081 and [2607:9d80:4680:3f01:0000:0000:00d0:00c0]:8081/subdirecroty. 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 N�SIMPLE)� swagger_types� attribute_map�_type�_pattern)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/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 L 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 \ s c C s t | �S �N)r r r r r �__repr__l s zSimpleUrlPattern.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__o s zSimpleUrlPattern.__eq__c C s | |k S r r r r r r �__ne__u s zSimpleUrlPattern.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r r r s " r N) �url_patternr �oci.utilr r r �oci.decoratorsr r r r r r �<module> s
cải xoăn