content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
"""Definition for create_release macro.""" load("//shlib/rules:execute_binary.bzl", "execute_binary") def create_release(name, workflow_name): """Declares an executable target that launches a Github Actions release workflow. This utility expects Github's CLI (`gh`) to be installed. Running this \ utility launches a Github Actions workflow that creates a release tag, \ generates release notes, creates a release, and creates a PR with an \ updated README.md file. Args: name: The name of the executable target as a `string`. workflow_name: The name of the Github Actions workflow. """ arguments = ["--workflow", workflow_name] execute_binary( name = name, arguments = arguments, binary = "@cgrindel_bazel_starlib//bzlrelease/tools:create_release", )
"""Definition for create_release macro.""" load('//shlib/rules:execute_binary.bzl', 'execute_binary') def create_release(name, workflow_name): """Declares an executable target that launches a Github Actions release workflow. This utility expects Github's CLI (`gh`) to be installed. Running this utility launches a Github Actions workflow that creates a release tag, generates release notes, creates a release, and creates a PR with an updated README.md file. Args: name: The name of the executable target as a `string`. workflow_name: The name of the Github Actions workflow. """ arguments = ['--workflow', workflow_name] execute_binary(name=name, arguments=arguments, binary='@cgrindel_bazel_starlib//bzlrelease/tools:create_release')
# Time: O(n) # Space: O(h) # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def bstToGst(self, root): """ :type root: TreeNode :rtype: TreeNode """ def bstToGstHelper(root, prev): if not root: return root bstToGstHelper(root.right, prev) root.val += prev[0] prev[0] = root.val bstToGstHelper(root.left, prev) return root prev = [0] return bstToGstHelper(root, prev)
class Treenode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def bst_to_gst(self, root): """ :type root: TreeNode :rtype: TreeNode """ def bst_to_gst_helper(root, prev): if not root: return root bst_to_gst_helper(root.right, prev) root.val += prev[0] prev[0] = root.val bst_to_gst_helper(root.left, prev) return root prev = [0] return bst_to_gst_helper(root, prev)
#python 3.5.2 ''' This Python functions finds the maximum number in a list by compares each number to every other number on the list. ''' class MyMath(): def __init__(self, list): self.list = list def findMaxNo(self): max = self.list[0] for x in self.list: if x > max: max = x return max print ('Test first element in the list is the largest number: ', MyMath( [12,0,9,3,0] ).findMaxNo() ) print ('Test the largest number is in middle of the list : ', MyMath( [0,0,12,3,0] ).findMaxNo() ) print ('Test last element in the list is largest number: ', MyMath( [12,0,9,3,0] ).findMaxNo() ) ''' OUTPUT: Test first element in the list is the largest number: 12 Test the largest number is in middle of the list : 12 Test last element in the list is largest number: 12 '''
""" This Python functions finds the maximum number in a list by compares each number to every other number on the list. """ class Mymath: def __init__(self, list): self.list = list def find_max_no(self): max = self.list[0] for x in self.list: if x > max: max = x return max print('Test first element in the list is the largest number: ', my_math([12, 0, 9, 3, 0]).findMaxNo()) print('Test the largest number is in middle of the list : ', my_math([0, 0, 12, 3, 0]).findMaxNo()) print('Test last element in the list is largest number: ', my_math([12, 0, 9, 3, 0]).findMaxNo()) '\n\nOUTPUT:\n\nTest first element in the list is the largest number: 12\n\nTest the largest number is in middle of the list : 12\n\nTest last element in the list is largest number: 12\n\n'
name, age = "Inshad", 18 username = "MohammedInshad" print ('Hello!') print("inshad: {}\n18 {}\nMohammedInshad: {}".format(name, age, username))
(name, age) = ('Inshad', 18) username = 'MohammedInshad' print('Hello!') print('inshad: {}\n18 {}\nMohammedInshad: {}'.format(name, age, username))
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def add_facet_to_object(DirectoryArn=None, SchemaFacet=None, ObjectAttributeList=None, ObjectReference=None): """ Adds a new Facet to an object. See also: AWS API Documentation :example: response = client.add_facet_to_object( DirectoryArn='string', SchemaFacet={ 'SchemaArn': 'string', 'FacetName': 'string' }, ObjectAttributeList=[ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type SchemaFacet: dict :param SchemaFacet: [REQUIRED] Identifiers for the facet that you are adding to the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectAttributeList: list :param ObjectAttributeList: Attributes on the facet that you are adding to the object. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object you are adding the specified facet to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def apply_schema(PublishedSchemaArn=None, DirectoryArn=None): """ Copies the input published schema into the Directory with the same name and version as that of the published schema . See also: AWS API Documentation :example: response = client.apply_schema( PublishedSchemaArn='string', DirectoryArn='string' ) :type PublishedSchemaArn: string :param PublishedSchemaArn: [REQUIRED] Published schema Amazon Resource Name (ARN) that needs to be copied. For more information, see arns . :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory into which the schema is copied. For more information, see arns . :rtype: dict :return: { 'AppliedSchemaArn': 'string', 'DirectoryArn': 'string' } """ pass def attach_object(DirectoryArn=None, ParentReference=None, ChildReference=None, LinkName=None): """ Attaches an existing object to another object. An object can be accessed in two ways: See also: AWS API Documentation :example: response = client.attach_object( DirectoryArn='string', ParentReference={ 'Selector': 'string' }, ChildReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type ParentReference: dict :param ParentReference: [REQUIRED] The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ChildReference: dict :param ChildReference: [REQUIRED] The child object reference to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: [REQUIRED] The link name with which the child object is attached to the parent. :rtype: dict :return: { 'AttachedObjectIdentifier': 'string' } :returns: DirectoryArn (string) -- [REQUIRED] Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . ParentReference (dict) -- [REQUIRED] The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call ChildReference (dict) -- [REQUIRED] The child object reference to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED] The link name with which the child object is attached to the parent. """ pass def attach_policy(DirectoryArn=None, PolicyReference=None, ObjectReference=None): """ Attaches a policy object to a regular object. An object can have a limited number of attached policies. See also: AWS API Documentation :example: response = client.attach_policy( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] The reference that is associated with the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object to which the policy will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def attach_to_index(DirectoryArn=None, IndexReference=None, TargetReference=None): """ Attaches the specified object to the specified index. See also: AWS API Documentation :example: response = client.attach_to_index( DirectoryArn='string', IndexReference={ 'Selector': 'string' }, TargetReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where the object and index exist. :type IndexReference: dict :param IndexReference: [REQUIRED] A reference to the index that you are attaching the object to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object that you are attaching to the index. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'AttachedObjectIdentifier': 'string' } """ pass def attach_typed_link(DirectoryArn=None, SourceObjectReference=None, TargetObjectReference=None, TypedLinkFacet=None, Attributes=None): """ Attaches a typed link to a specified source and target object. For more information, see Typed link . See also: AWS API Documentation :example: response = client.attach_typed_link( DirectoryArn='string', SourceObjectReference={ 'Selector': 'string' }, TargetObjectReference={ 'Selector': 'string' }, TypedLinkFacet={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, Attributes=[ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to attach the typed link. :type SourceObjectReference: dict :param SourceObjectReference: [REQUIRED] Identifies the source object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetObjectReference: dict :param TargetObjectReference: [REQUIRED] Identifies the target object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TypedLinkFacet: dict :param TypedLinkFacet: [REQUIRED] Identifies the typed link facet that is associated with the typed link. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type Attributes: list :param Attributes: [REQUIRED] An ordered set of attributes that are associated with the typed link. (dict) --Identifies the attribute name and value for a typed link. AttributeName (string) -- [REQUIRED]The attribute name of the typed link. Value (dict) -- [REQUIRED]The value for the typed link. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :rtype: dict :return: { 'TypedLinkSpecifier': { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] } } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def batch_read(DirectoryArn=None, Operations=None, ConsistencyLevel=None): """ Performs all the read operations in a batch. See also: AWS API Documentation :example: response = client.batch_read( DirectoryArn='string', Operations=[ { 'ListObjectAttributes': { 'ObjectReference': { 'Selector': 'string' }, 'NextToken': 'string', 'MaxResults': 123, 'FacetFilter': { 'SchemaArn': 'string', 'FacetName': 'string' } }, 'ListObjectChildren': { 'ObjectReference': { 'Selector': 'string' }, 'NextToken': 'string', 'MaxResults': 123 } }, ], ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type Operations: list :param Operations: [REQUIRED] A list of operations that are part of the batch. (dict) --Represents the output of a BatchRead operation. ListObjectAttributes (dict) --Lists all attributes that are associated with an object. ObjectReference (dict) -- [REQUIRED]Reference of the object whose attributes need to be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call NextToken (string) --The pagination token. MaxResults (integer) --The maximum number of items to be retrieved in a single call. This is an approximate number. FacetFilter (dict) --Used to filter the list of object attributes that are associated with a certain facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ListObjectChildren (dict) --Returns a paginated list of child objects that are associated with a given object. ObjectReference (dict) -- [REQUIRED]Reference of the object for which child objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call NextToken (string) --The pagination token. MaxResults (integer) --Maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Responses': [ { 'SuccessfulResponse': { 'ListObjectAttributes': { 'Attributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' }, 'ListObjectChildren': { 'Children': { 'string': 'string' }, 'NextToken': 'string' } }, 'ExceptionResponse': { 'Type': 'ValidationException'|'InvalidArnException'|'ResourceNotFoundException'|'InvalidNextTokenException'|'AccessDeniedException'|'NotNodeException', 'Message': 'string' } }, ] } :returns: (string) -- (string) -- """ pass def batch_write(DirectoryArn=None, Operations=None): """ Performs all the write operations in a batch. Either all the operations succeed or none. Batch writes supports only object-related operations. See also: AWS API Documentation :example: response = client.batch_write( DirectoryArn='string', Operations=[ { 'CreateObject': { 'SchemaFacet': [ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], 'ObjectAttributeList': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ParentReference': { 'Selector': 'string' }, 'LinkName': 'string', 'BatchReferenceName': 'string' }, 'AttachObject': { 'ParentReference': { 'Selector': 'string' }, 'ChildReference': { 'Selector': 'string' }, 'LinkName': 'string' }, 'DetachObject': { 'ParentReference': { 'Selector': 'string' }, 'LinkName': 'string', 'BatchReferenceName': 'string' }, 'UpdateObjectAttributes': { 'ObjectReference': { 'Selector': 'string' }, 'AttributeUpdates': [ { 'ObjectAttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'ObjectAttributeAction': { 'ObjectAttributeActionType': 'CREATE_OR_UPDATE'|'DELETE', 'ObjectAttributeUpdateValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ] }, 'DeleteObject': { 'ObjectReference': { 'Selector': 'string' } }, 'AddFacetToObject': { 'SchemaFacet': { 'SchemaArn': 'string', 'FacetName': 'string' }, 'ObjectAttributeList': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectReference': { 'Selector': 'string' } }, 'RemoveFacetFromObject': { 'SchemaFacet': { 'SchemaArn': 'string', 'FacetName': 'string' }, 'ObjectReference': { 'Selector': 'string' } } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type Operations: list :param Operations: [REQUIRED] A list of operations that are part of the batch. (dict) --Represents the output of a BatchWrite operation. CreateObject (dict) --Creates an object. SchemaFacet (list) -- [REQUIRED]A list of FacetArns that will be associated with the object. For more information, see arns . (dict) --A facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectAttributeList (list) -- [REQUIRED]An attribute map, which contains an attribute ARN as the key and attribute value as the map value. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. ParentReference (dict) -- [REQUIRED]If specified, the parent reference to which this object will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. BatchReferenceName (string) -- [REQUIRED]The batch reference name. See Batches for more information. AttachObject (dict) --Attaches an object to a Directory . ParentReference (dict) -- [REQUIRED]The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call ChildReference (dict) -- [REQUIRED]The child object reference that is to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. DetachObject (dict) --Detaches an object from a Directory . ParentReference (dict) -- [REQUIRED]Parent reference from which the object with the specified link name is detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. BatchReferenceName (string) -- [REQUIRED]The batch reference name. See Batches for more information. UpdateObjectAttributes (dict) --Updates a given object's attributes. ObjectReference (dict) -- [REQUIRED]Reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call AttributeUpdates (list) -- [REQUIRED]Attributes update structure. (dict) --Structure that contains attribute update information. ObjectAttributeKey (dict) --The key of the attribute being updated. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. ObjectAttributeAction (dict) --The action to perform as part of the attribute update. ObjectAttributeActionType (string) --A type that can be either Update or Delete . ObjectAttributeUpdateValue (dict) --The value that you want to update to. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. DeleteObject (dict) --Deletes an object in a Directory . ObjectReference (dict) -- [REQUIRED]The reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call AddFacetToObject (dict) --A batch operation that adds a facet to an object. SchemaFacet (dict) -- [REQUIRED]Represents the facet being added to the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectAttributeList (list) -- [REQUIRED]The attributes to set on the object. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. ObjectReference (dict) -- [REQUIRED]A reference to the object being mutated. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call RemoveFacetFromObject (dict) --A batch operation that removes a facet from an object. SchemaFacet (dict) -- [REQUIRED]The facet to remove from the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectReference (dict) -- [REQUIRED]A reference to the object whose facet will be removed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'Responses': [ { 'CreateObject': { 'ObjectIdentifier': 'string' }, 'AttachObject': { 'attachedObjectIdentifier': 'string' }, 'DetachObject': { 'detachedObjectIdentifier': 'string' }, 'UpdateObjectAttributes': { 'ObjectIdentifier': 'string' }, 'DeleteObject': {} , 'AddFacetToObject': {} , 'RemoveFacetFromObject': {} }, ] } """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def create_directory(Name=None, SchemaArn=None): """ Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema. See also: AWS API Documentation :example: response = client.create_directory( Name='string', SchemaArn='string' ) :type Name: string :param Name: [REQUIRED] The name of the Directory . Should be unique per account, per region. :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory . For more information, see arns . :rtype: dict :return: { 'DirectoryArn': 'string', 'Name': 'string', 'ObjectIdentifier': 'string', 'AppliedSchemaArn': 'string' } """ pass def create_facet(SchemaArn=None, Name=None, Attributes=None, ObjectType=None): """ Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas. See also: AWS API Documentation :example: response = client.create_facet( SchemaArn='string', Name='string', Attributes=[ { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], ObjectType='NODE'|'LEAF_NODE'|'POLICY'|'INDEX' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The schema ARN in which the new Facet will be created. For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the Facet , which is unique for a given schema. :type Attributes: list :param Attributes: The attributes that are associated with the Facet . (dict) --An attribute that is associated with the Facet . Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . :type ObjectType: string :param ObjectType: [REQUIRED] Specifies whether a given object created from this facet is of type node, leaf node, policy or index. Node: Can have multiple children but one parent. Leaf node: Cannot have children but can have multiple parents. Policy: Allows you to store a policy document and policy type. For more information, see Policies . Index: Can be created with the Index API. :rtype: dict :return: {} :returns: (dict) -- """ pass def create_index(DirectoryArn=None, OrderedIndexedAttributeList=None, IsUnique=None, ParentReference=None, LinkName=None): """ Creates an index object. See Indexing for more information. See also: AWS API Documentation :example: response = client.create_index( DirectoryArn='string', OrderedIndexedAttributeList=[ { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, ], IsUnique=True|False, ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory where the index should be created. :type OrderedIndexedAttributeList: list :param OrderedIndexedAttributeList: [REQUIRED] Specifies the attributes that should be indexed on. Currently only a single attribute is supported. (dict) --A unique identifier for an attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. :type IsUnique: boolean :param IsUnique: [REQUIRED] Indicates whether the attribute that is being indexed has unique values or not. :type ParentReference: dict :param ParentReference: A reference to the parent object that contains the index object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: The name of the link between the parent object and the index object. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def create_object(DirectoryArn=None, SchemaFacets=None, ObjectAttributeList=None, ParentReference=None, LinkName=None): """ Creates an object in a Directory . Additionally attaches the object to a parent, if a parent reference and LinkName is specified. An object is simply a collection of Facet attributes. You can also use this API call to create a policy object, if the facet from which you create the object is a policy facet. See also: AWS API Documentation :example: response = client.create_object( DirectoryArn='string', SchemaFacets=[ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], ObjectAttributeList=[ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory in which the object will be created. For more information, see arns . :type SchemaFacets: list :param SchemaFacets: [REQUIRED] A list of schema facets to be associated with the object that contains SchemaArn and facet name. For more information, see arns . (dict) --A facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectAttributeList: list :param ObjectAttributeList: The attribute map whose attribute ARN contains the key and attribute value as the map value. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type ParentReference: dict :param ParentReference: If specified, the parent reference to which this object will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: The name of link that is used to attach this object to a parent. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def create_schema(Name=None): """ Creates a new schema in a development state. A schema can exist in three phases: See also: AWS API Documentation :example: response = client.create_schema( Name='string' ) :type Name: string :param Name: [REQUIRED] The name that is associated with the schema. This is unique to each account and in each region. :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def create_typed_link_facet(SchemaArn=None, Facet=None): """ Creates a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.create_typed_link_facet( SchemaArn='string', Facet={ 'Name': 'string', 'Attributes': [ { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'IdentityAttributeOrder': [ 'string', ] } ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Facet: dict :param Facet: [REQUIRED] Facet structure that is associated with the typed link facet. Name (string) -- [REQUIRED]The unique name of the typed link facet. Attributes (list) -- [REQUIRED]An ordered set of attributes that are associate with the typed link. You can use typed link attributes when you need to represent the relationship between two objects or allow for quick filtering of incoming or outgoing typed links. (dict) --A typed link attribute definition. Name (string) -- [REQUIRED]The unique name of the typed link attribute. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules that are attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- RequiredBehavior (string) -- [REQUIRED]The required behavior of the TypedLinkAttributeDefinition . IdentityAttributeOrder (list) -- [REQUIRED]A range filter that you provide for multiple attributes. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_directory(DirectoryArn=None): """ Deletes a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories. See also: AWS API Documentation :example: response = client.delete_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to delete. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def delete_facet(SchemaArn=None, Name=None): """ Deletes a given Facet . All attributes and Rule s that are associated with the facet will be deleted. Only development schema facets are allowed deletion. See also: AWS API Documentation :example: response = client.delete_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet to delete. :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_object(DirectoryArn=None, ObjectReference=None): """ Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted. See also: AWS API Documentation :example: response = client.delete_object( DirectoryArn='string', ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_schema(SchemaArn=None): """ Deletes a given schema. Schemas in a development and published state can only be deleted. See also: AWS API Documentation :example: response = client.delete_schema( SchemaArn='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the development schema. For more information, see arns . :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def delete_typed_link_facet(SchemaArn=None, Name=None): """ Deletes a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.delete_typed_link_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :rtype: dict :return: {} :returns: (dict) -- """ pass def detach_from_index(DirectoryArn=None, IndexReference=None, TargetReference=None): """ Detaches the specified object from the specified index. See also: AWS API Documentation :example: response = client.detach_from_index( DirectoryArn='string', IndexReference={ 'Selector': 'string' }, TargetReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory the index and object exist in. :type IndexReference: dict :param IndexReference: [REQUIRED] A reference to the index object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object being detached from the index. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'DetachedObjectIdentifier': 'string' } """ pass def detach_object(DirectoryArn=None, ParentReference=None, LinkName=None): """ Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name. See also: AWS API Documentation :example: response = client.detach_object( DirectoryArn='string', ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type ParentReference: dict :param ParentReference: [REQUIRED] The parent reference from which the object with the specified link name is detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: [REQUIRED] The link name associated with the object that needs to be detached. :rtype: dict :return: { 'DetachedObjectIdentifier': 'string' } """ pass def detach_policy(DirectoryArn=None, PolicyReference=None, ObjectReference=None): """ Detaches a policy from an object. See also: AWS API Documentation :example: response = client.detach_policy( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] Reference that identifies the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose policy object will be detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def detach_typed_link(DirectoryArn=None, TypedLinkSpecifier=None): """ Detaches a typed link from a specified source and target object. For more information, see Typed link . See also: AWS API Documentation :example: response = client.detach_typed_link( DirectoryArn='string', TypedLinkSpecifier={ 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to detach the typed link. :type TypedLinkSpecifier: dict :param TypedLinkSpecifier: [REQUIRED] Used to accept a typed link specifier as input. TypedLinkFacet (dict) -- [REQUIRED]Identifies the typed link facet that is associated with the typed link. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. SourceObjectReference (dict) -- [REQUIRED]Identifies the source object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call TargetObjectReference (dict) -- [REQUIRED]Identifies the target object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call IdentityAttributeValues (list) -- [REQUIRED]Identifies the attribute value to update. (dict) --Identifies the attribute name and value for a typed link. AttributeName (string) -- [REQUIRED]The attribute name of the typed link. Value (dict) -- [REQUIRED]The value for the typed link. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. """ pass def disable_directory(DirectoryArn=None): """ Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled. See also: AWS API Documentation :example: response = client.disable_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to disable. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def enable_directory(DirectoryArn=None): """ Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to. See also: AWS API Documentation :example: response = client.enable_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to enable. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_directory(DirectoryArn=None): """ Retrieves metadata about a directory. See also: AWS API Documentation :example: response = client.get_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory. :rtype: dict :return: { 'Directory': { 'Name': 'string', 'DirectoryArn': 'string', 'State': 'ENABLED'|'DISABLED'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) } } """ pass def get_facet(SchemaArn=None, Name=None): """ Gets details of the Facet , such as facet name, attributes, Rule s, or ObjectType . You can call this on all kinds of schema facets -- published, development, or applied. See also: AWS API Documentation :example: response = client.get_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet to retrieve. :rtype: dict :return: { 'Facet': { 'Name': 'string', 'ObjectType': 'NODE'|'LEAF_NODE'|'POLICY'|'INDEX' } } """ pass def get_object_information(DirectoryArn=None, ObjectReference=None, ConsistencyLevel=None): """ Retrieves metadata about an object. See also: AWS API Documentation :example: response = client.get_object_information( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory being retrieved. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level at which to retrieve the object information. :rtype: dict :return: { 'SchemaFacets': [ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], 'ObjectIdentifier': 'string' } """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} """ pass def get_schema_as_json(SchemaArn=None): """ Retrieves a JSON representation of the schema. See JSON Schema Format for more information. See also: AWS API Documentation :example: response = client.get_schema_as_json( SchemaArn='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema to retrieve. :rtype: dict :return: { 'Name': 'string', 'Document': 'string' } """ pass def get_typed_link_facet_information(SchemaArn=None, Name=None): """ Returns the identity attribute order for a specific TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.get_typed_link_facet_information( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :rtype: dict :return: { 'IdentityAttributeOrder': [ 'string', ] } :returns: (string) -- """ pass def get_waiter(): """ """ pass def list_applied_schema_arns(DirectoryArn=None, NextToken=None, MaxResults=None): """ Lists schemas applied to a directory. See also: AWS API Documentation :example: response = client.list_applied_schema_arns( DirectoryArn='string', NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory you are listing. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_attached_indices(DirectoryArn=None, TargetReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Lists indices attached to an object. See also: AWS API Documentation :example: response = client.list_attached_indices( DirectoryArn='string', TargetReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory. :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object to that has indices attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to use for this operation. :rtype: dict :return: { 'IndexAttachments': [ { 'IndexedAttributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectIdentifier': 'string' }, ], 'NextToken': 'string' } """ pass def list_development_schema_arns(NextToken=None, MaxResults=None): """ Retrieves each Amazon Resource Name (ARN) of schemas in the development state. See also: AWS API Documentation :example: response = client.list_development_schema_arns( NextToken='string', MaxResults=123 ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_directories(NextToken=None, MaxResults=None, state=None): """ Lists directories created within an account. See also: AWS API Documentation :example: response = client.list_directories( NextToken='string', MaxResults=123, state='ENABLED'|'DISABLED'|'DELETED' ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type state: string :param state: The state of the directories in the list. Can be either Enabled, Disabled, or Deleted. :rtype: dict :return: { 'Directories': [ { 'Name': 'string', 'DirectoryArn': 'string', 'State': 'ENABLED'|'DISABLED'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } """ pass def list_facet_attributes(SchemaArn=None, Name=None, NextToken=None, MaxResults=None): """ Retrieves attributes attached to the facet. See also: AWS API Documentation :example: response = client.list_facet_attributes( SchemaArn='string', Name='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema where the facet resides. :type Name: string :param Name: [REQUIRED] The name of the facet whose attributes will be retrieved. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'Attributes': [ { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_facet_names(SchemaArn=None, NextToken=None, MaxResults=None): """ Retrieves the names of facets that exist in a schema. See also: AWS API Documentation :example: response = client.list_facet_names( SchemaArn='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) to retrieve facet names from. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'FacetNames': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_incoming_typed_links(DirectoryArn=None, ObjectReference=None, FilterAttributeRanges=None, FilterTypedLink=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_incoming_typed_links( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, FilterAttributeRanges=[ { 'AttributeName': 'string', 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], FilterTypedLink={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to list the typed links. :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type FilterAttributeRanges: list :param FilterAttributeRanges: Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. (dict) --Identifies the range of attributes that are used by a specified filter. AttributeName (string) --The unique name of the typed link attribute. Range (dict) -- [REQUIRED]The range of attribute values that are being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type FilterTypedLink: dict :param FilterTypedLink: Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'LinkSpecifiers': [ { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] }, ], 'NextToken': 'string' } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def list_index(DirectoryArn=None, RangesOnIndexedValues=None, IndexReference=None, MaxResults=None, NextToken=None, ConsistencyLevel=None): """ Lists objects attached to the specified index. See also: AWS API Documentation :example: response = client.list_index( DirectoryArn='string', RangesOnIndexedValues=[ { 'AttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], IndexReference={ 'Selector': 'string' }, MaxResults=123, NextToken='string', ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory that the index exists in. :type RangesOnIndexedValues: list :param RangesOnIndexedValues: Specifies the ranges of indexed values that you want to query. (dict) --A range of attributes. AttributeKey (dict) --The key of the attribute that the attribute range covers. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Range (dict) --The range of attribute values being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type IndexReference: dict :param IndexReference: [REQUIRED] The reference to the index to list. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve from the index. :type NextToken: string :param NextToken: The pagination token. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'IndexAttachments': [ { 'IndexedAttributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectIdentifier': 'string' }, ], 'NextToken': 'string' } """ pass def list_object_attributes(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None, FacetFilter=None): """ Lists all attributes that are associated with an object. See also: AWS API Documentation :example: response = client.list_object_attributes( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL', FacetFilter={ 'SchemaArn': 'string', 'FacetName': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :type FacetFilter: dict :param FacetFilter: Used to filter the list of object attributes that are associated with a certain facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :rtype: dict :return: { 'Attributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } """ pass def list_object_children(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of child objects that are associated with a given object. See also: AWS API Documentation :example: response = client.list_object_children( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object for which child objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Children': { 'string': 'string' }, 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_object_parent_paths(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None): """ Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure . Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults , in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to the directory root are ignored from the target object. See also: AWS API Documentation :example: response = client.list_object_parent_paths( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to which the parent path applies. :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object whose parent paths are listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :rtype: dict :return: { 'PathToObjectIdentifiersList': [ { 'Path': 'string', 'ObjectIdentifiers': [ 'string', ] }, ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_object_parents(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Lists parent objects that are associated with a given object in pagination fashion. See also: AWS API Documentation :example: response = client.list_object_parents( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object for which parent objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Parents': { 'string': 'string' }, 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_object_policies(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns policies attached to an object in pagination fashion. See also: AWS API Documentation :example: response = client.list_object_policies( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object for which policies will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'AttachedPolicyIds': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_outgoing_typed_links(DirectoryArn=None, ObjectReference=None, FilterAttributeRanges=None, FilterTypedLink=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_outgoing_typed_links( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, FilterAttributeRanges=[ { 'AttributeName': 'string', 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], FilterTypedLink={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to list the typed links. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type FilterAttributeRanges: list :param FilterAttributeRanges: Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. (dict) --Identifies the range of attributes that are used by a specified filter. AttributeName (string) --The unique name of the typed link attribute. Range (dict) -- [REQUIRED]The range of attribute values that are being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type FilterTypedLink: dict :param FilterTypedLink: Filters are interpreted in the order of the attributes defined on the typed link facet, not the order they are supplied to any API calls. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'TypedLinkSpecifiers': [ { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] }, ], 'NextToken': 'string' } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def list_policy_attachments(DirectoryArn=None, PolicyReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns all of the ObjectIdentifiers to which a given policy is attached. See also: AWS API Documentation :example: response = client.list_policy_attachments( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] The reference that identifies the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'ObjectIdentifiers': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_published_schema_arns(NextToken=None, MaxResults=None): """ Retrieves each published schema Amazon Resource Name (ARN). See also: AWS API Documentation :example: response = client.list_published_schema_arns( NextToken='string', MaxResults=123 ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_tags_for_resource(ResourceArn=None, NextToken=None, MaxResults=None): """ Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call. See also: AWS API Documentation :example: response = client.list_tags_for_resource( ResourceArn='string', NextToken='string', MaxResults=123 ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type NextToken: string :param NextToken: The pagination token. This is for future use. Currently pagination is not supported for tagging. :type MaxResults: integer :param MaxResults: The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently. :rtype: dict :return: { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'NextToken': 'string' } """ pass def list_typed_link_facet_attributes(SchemaArn=None, Name=None, NextToken=None, MaxResults=None): """ Returns a paginated list of all attribute definitions for a particular TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_typed_link_facet_attributes( SchemaArn='string', Name='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'Attributes': [ { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_typed_link_facet_names(SchemaArn=None, NextToken=None, MaxResults=None): """ Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_typed_link_facet_names( SchemaArn='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'FacetNames': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def lookup_policy(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None): """ Lists all policies from the root of the Directory to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier , policyId , and policyType . Paths that don't lead to the root from the target object are ignored. For more information, see Policies . See also: AWS API Documentation :example: response = client.lookup_policy( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose policies will be looked up. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The token to request the next page of results. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :rtype: dict :return: { 'PolicyToPathList': [ { 'Path': 'string', 'Policies': [ { 'PolicyId': 'string', 'ObjectIdentifier': 'string', 'PolicyType': 'string' }, ] }, ], 'NextToken': 'string' } """ pass def publish_schema(DevelopmentSchemaArn=None, Version=None, Name=None): """ Publishes a development schema with a version. If description and attributes are specified, PublishSchema overrides the development schema description and attributes. If not, the development schema description and attributes are used. See also: AWS API Documentation :example: response = client.publish_schema( DevelopmentSchemaArn='string', Version='string', Name='string' ) :type DevelopmentSchemaArn: string :param DevelopmentSchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the development schema. For more information, see arns . :type Version: string :param Version: [REQUIRED] The version under which the schema will be published. :type Name: string :param Name: The new name under which the schema will be published. If this is not provided, the development schema is considered. :rtype: dict :return: { 'PublishedSchemaArn': 'string' } """ pass def put_schema_from_json(SchemaArn=None, Document=None): """ Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information. See also: AWS API Documentation :example: response = client.put_schema_from_json( SchemaArn='string', Document='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema to update. :type Document: string :param Document: [REQUIRED] The replacement JSON schema. :rtype: dict :return: { 'Arn': 'string' } """ pass def remove_facet_from_object(DirectoryArn=None, SchemaFacet=None, ObjectReference=None): """ Removes the specified facet from the specified object. See also: AWS API Documentation :example: response = client.remove_facet_from_object( DirectoryArn='string', SchemaFacet={ 'SchemaArn': 'string', 'FacetName': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory in which the object resides. :type SchemaFacet: dict :param SchemaFacet: [REQUIRED] The facet to remove. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object to remove the facet from. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def tag_resource(ResourceArn=None, Tags=None): """ An API operation for adding tags to a resource. See also: AWS API Documentation :example: response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type Tags: list :param Tags: [REQUIRED] A list of tag key-value pairs. (dict) --The tag structure that contains a tag key and value. Key (string) --The key that is associated with the tag. Value (string) --The value that is associated with the tag. :rtype: dict :return: {} :returns: (dict) -- """ pass def untag_resource(ResourceArn=None, TagKeys=None): """ An API operation for removing tags from a resource. See also: AWS API Documentation :example: response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type TagKeys: list :param TagKeys: [REQUIRED] Keys of the tag that need to be removed from the resource. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def update_facet(SchemaArn=None, Name=None, AttributeUpdates=None, ObjectType=None): """ Does the following: See also: AWS API Documentation :example: response = client.update_facet( SchemaArn='string', Name='string', AttributeUpdates=[ { 'Attribute': { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, 'Action': 'CREATE_OR_UPDATE'|'DELETE' }, ], ObjectType='NODE'|'LEAF_NODE'|'POLICY'|'INDEX' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet. :type AttributeUpdates: list :param AttributeUpdates: List of attributes that need to be updated in a given schema Facet . Each attribute is followed by AttributeAction , which specifies the type of update operation to perform. (dict) --A structure that contains information used to update an attribute. Attribute (dict) --The attribute to update. Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . Action (string) --The action to perform when updating the attribute. :type ObjectType: string :param ObjectType: The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details. :rtype: dict :return: {} :returns: SchemaArn (string) -- [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . Name (string) -- [REQUIRED] The name of the facet. AttributeUpdates (list) -- List of attributes that need to be updated in a given schema Facet . Each attribute is followed by AttributeAction , which specifies the type of update operation to perform. (dict) --A structure that contains information used to update an attribute. Attribute (dict) --The attribute to update. Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . Action (string) --The action to perform when updating the attribute. ObjectType (string) -- The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details. """ pass def update_object_attributes(DirectoryArn=None, ObjectReference=None, AttributeUpdates=None): """ Updates a given object's attributes. See also: AWS API Documentation :example: response = client.update_object_attributes( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, AttributeUpdates=[ { 'ObjectAttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'ObjectAttributeAction': { 'ObjectAttributeActionType': 'CREATE_OR_UPDATE'|'DELETE', 'ObjectAttributeUpdateValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type AttributeUpdates: list :param AttributeUpdates: [REQUIRED] The attributes update structure. (dict) --Structure that contains attribute update information. ObjectAttributeKey (dict) --The key of the attribute being updated. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. ObjectAttributeAction (dict) --The action to perform as part of the attribute update. ObjectAttributeActionType (string) --A type that can be either Update or Delete . ObjectAttributeUpdateValue (dict) --The value that you want to update to. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def update_schema(SchemaArn=None, Name=None): """ Updates the schema name with a new name. Only development schema names can be updated. See also: AWS API Documentation :example: response = client.update_schema( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the development schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the schema. :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def update_typed_link_facet(SchemaArn=None, Name=None, AttributeUpdates=None, IdentityAttributeOrder=None): """ Updates a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.update_typed_link_facet( SchemaArn='string', Name='string', AttributeUpdates=[ { 'Attribute': { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, 'Action': 'CREATE_OR_UPDATE'|'DELETE' }, ], IdentityAttributeOrder=[ 'string', ] ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :type AttributeUpdates: list :param AttributeUpdates: [REQUIRED] Attributes update structure. (dict) --A typed link facet attribute update. Attribute (dict) -- [REQUIRED]The attribute to update. Name (string) -- [REQUIRED]The unique name of the typed link attribute. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules that are attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- RequiredBehavior (string) -- [REQUIRED]The required behavior of the TypedLinkAttributeDefinition . Action (string) -- [REQUIRED]The action to perform when updating the attribute. :type IdentityAttributeOrder: list :param IdentityAttributeOrder: [REQUIRED] A range filter that you provide for multiple attributes. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to a typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass
""" The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ def add_facet_to_object(DirectoryArn=None, SchemaFacet=None, ObjectAttributeList=None, ObjectReference=None): """ Adds a new Facet to an object. See also: AWS API Documentation :example: response = client.add_facet_to_object( DirectoryArn='string', SchemaFacet={ 'SchemaArn': 'string', 'FacetName': 'string' }, ObjectAttributeList=[ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type SchemaFacet: dict :param SchemaFacet: [REQUIRED] Identifiers for the facet that you are adding to the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectAttributeList: list :param ObjectAttributeList: Attributes on the facet that you are adding to the object. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object you are adding the specified facet to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def apply_schema(PublishedSchemaArn=None, DirectoryArn=None): """ Copies the input published schema into the Directory with the same name and version as that of the published schema . See also: AWS API Documentation :example: response = client.apply_schema( PublishedSchemaArn='string', DirectoryArn='string' ) :type PublishedSchemaArn: string :param PublishedSchemaArn: [REQUIRED] Published schema Amazon Resource Name (ARN) that needs to be copied. For more information, see arns . :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory into which the schema is copied. For more information, see arns . :rtype: dict :return: { 'AppliedSchemaArn': 'string', 'DirectoryArn': 'string' } """ pass def attach_object(DirectoryArn=None, ParentReference=None, ChildReference=None, LinkName=None): """ Attaches an existing object to another object. An object can be accessed in two ways: See also: AWS API Documentation :example: response = client.attach_object( DirectoryArn='string', ParentReference={ 'Selector': 'string' }, ChildReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type ParentReference: dict :param ParentReference: [REQUIRED] The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ChildReference: dict :param ChildReference: [REQUIRED] The child object reference to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: [REQUIRED] The link name with which the child object is attached to the parent. :rtype: dict :return: { 'AttachedObjectIdentifier': 'string' } :returns: DirectoryArn (string) -- [REQUIRED] Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . ParentReference (dict) -- [REQUIRED] The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call ChildReference (dict) -- [REQUIRED] The child object reference to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED] The link name with which the child object is attached to the parent. """ pass def attach_policy(DirectoryArn=None, PolicyReference=None, ObjectReference=None): """ Attaches a policy object to a regular object. An object can have a limited number of attached policies. See also: AWS API Documentation :example: response = client.attach_policy( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] The reference that is associated with the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object to which the policy will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def attach_to_index(DirectoryArn=None, IndexReference=None, TargetReference=None): """ Attaches the specified object to the specified index. See also: AWS API Documentation :example: response = client.attach_to_index( DirectoryArn='string', IndexReference={ 'Selector': 'string' }, TargetReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where the object and index exist. :type IndexReference: dict :param IndexReference: [REQUIRED] A reference to the index that you are attaching the object to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object that you are attaching to the index. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'AttachedObjectIdentifier': 'string' } """ pass def attach_typed_link(DirectoryArn=None, SourceObjectReference=None, TargetObjectReference=None, TypedLinkFacet=None, Attributes=None): """ Attaches a typed link to a specified source and target object. For more information, see Typed link . See also: AWS API Documentation :example: response = client.attach_typed_link( DirectoryArn='string', SourceObjectReference={ 'Selector': 'string' }, TargetObjectReference={ 'Selector': 'string' }, TypedLinkFacet={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, Attributes=[ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to attach the typed link. :type SourceObjectReference: dict :param SourceObjectReference: [REQUIRED] Identifies the source object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetObjectReference: dict :param TargetObjectReference: [REQUIRED] Identifies the target object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TypedLinkFacet: dict :param TypedLinkFacet: [REQUIRED] Identifies the typed link facet that is associated with the typed link. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type Attributes: list :param Attributes: [REQUIRED] An ordered set of attributes that are associated with the typed link. (dict) --Identifies the attribute name and value for a typed link. AttributeName (string) -- [REQUIRED]The attribute name of the typed link. Value (dict) -- [REQUIRED]The value for the typed link. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :rtype: dict :return: { 'TypedLinkSpecifier': { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] } } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def batch_read(DirectoryArn=None, Operations=None, ConsistencyLevel=None): """ Performs all the read operations in a batch. See also: AWS API Documentation :example: response = client.batch_read( DirectoryArn='string', Operations=[ { 'ListObjectAttributes': { 'ObjectReference': { 'Selector': 'string' }, 'NextToken': 'string', 'MaxResults': 123, 'FacetFilter': { 'SchemaArn': 'string', 'FacetName': 'string' } }, 'ListObjectChildren': { 'ObjectReference': { 'Selector': 'string' }, 'NextToken': 'string', 'MaxResults': 123 } }, ], ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type Operations: list :param Operations: [REQUIRED] A list of operations that are part of the batch. (dict) --Represents the output of a BatchRead operation. ListObjectAttributes (dict) --Lists all attributes that are associated with an object. ObjectReference (dict) -- [REQUIRED]Reference of the object whose attributes need to be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call NextToken (string) --The pagination token. MaxResults (integer) --The maximum number of items to be retrieved in a single call. This is an approximate number. FacetFilter (dict) --Used to filter the list of object attributes that are associated with a certain facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ListObjectChildren (dict) --Returns a paginated list of child objects that are associated with a given object. ObjectReference (dict) -- [REQUIRED]Reference of the object for which child objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call NextToken (string) --The pagination token. MaxResults (integer) --Maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Responses': [ { 'SuccessfulResponse': { 'ListObjectAttributes': { 'Attributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' }, 'ListObjectChildren': { 'Children': { 'string': 'string' }, 'NextToken': 'string' } }, 'ExceptionResponse': { 'Type': 'ValidationException'|'InvalidArnException'|'ResourceNotFoundException'|'InvalidNextTokenException'|'AccessDeniedException'|'NotNodeException', 'Message': 'string' } }, ] } :returns: (string) -- (string) -- """ pass def batch_write(DirectoryArn=None, Operations=None): """ Performs all the write operations in a batch. Either all the operations succeed or none. Batch writes supports only object-related operations. See also: AWS API Documentation :example: response = client.batch_write( DirectoryArn='string', Operations=[ { 'CreateObject': { 'SchemaFacet': [ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], 'ObjectAttributeList': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ParentReference': { 'Selector': 'string' }, 'LinkName': 'string', 'BatchReferenceName': 'string' }, 'AttachObject': { 'ParentReference': { 'Selector': 'string' }, 'ChildReference': { 'Selector': 'string' }, 'LinkName': 'string' }, 'DetachObject': { 'ParentReference': { 'Selector': 'string' }, 'LinkName': 'string', 'BatchReferenceName': 'string' }, 'UpdateObjectAttributes': { 'ObjectReference': { 'Selector': 'string' }, 'AttributeUpdates': [ { 'ObjectAttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'ObjectAttributeAction': { 'ObjectAttributeActionType': 'CREATE_OR_UPDATE'|'DELETE', 'ObjectAttributeUpdateValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ] }, 'DeleteObject': { 'ObjectReference': { 'Selector': 'string' } }, 'AddFacetToObject': { 'SchemaFacet': { 'SchemaArn': 'string', 'FacetName': 'string' }, 'ObjectAttributeList': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectReference': { 'Selector': 'string' } }, 'RemoveFacetFromObject': { 'SchemaFacet': { 'SchemaArn': 'string', 'FacetName': 'string' }, 'ObjectReference': { 'Selector': 'string' } } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type Operations: list :param Operations: [REQUIRED] A list of operations that are part of the batch. (dict) --Represents the output of a BatchWrite operation. CreateObject (dict) --Creates an object. SchemaFacet (list) -- [REQUIRED]A list of FacetArns that will be associated with the object. For more information, see arns . (dict) --A facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectAttributeList (list) -- [REQUIRED]An attribute map, which contains an attribute ARN as the key and attribute value as the map value. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. ParentReference (dict) -- [REQUIRED]If specified, the parent reference to which this object will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. BatchReferenceName (string) -- [REQUIRED]The batch reference name. See Batches for more information. AttachObject (dict) --Attaches an object to a Directory . ParentReference (dict) -- [REQUIRED]The parent object reference. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call ChildReference (dict) -- [REQUIRED]The child object reference that is to be attached to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. DetachObject (dict) --Detaches an object from a Directory . ParentReference (dict) -- [REQUIRED]Parent reference from which the object with the specified link name is detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call LinkName (string) -- [REQUIRED]The name of the link. BatchReferenceName (string) -- [REQUIRED]The batch reference name. See Batches for more information. UpdateObjectAttributes (dict) --Updates a given object's attributes. ObjectReference (dict) -- [REQUIRED]Reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call AttributeUpdates (list) -- [REQUIRED]Attributes update structure. (dict) --Structure that contains attribute update information. ObjectAttributeKey (dict) --The key of the attribute being updated. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. ObjectAttributeAction (dict) --The action to perform as part of the attribute update. ObjectAttributeActionType (string) --A type that can be either Update or Delete . ObjectAttributeUpdateValue (dict) --The value that you want to update to. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. DeleteObject (dict) --Deletes an object in a Directory . ObjectReference (dict) -- [REQUIRED]The reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call AddFacetToObject (dict) --A batch operation that adds a facet to an object. SchemaFacet (dict) -- [REQUIRED]Represents the facet being added to the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectAttributeList (list) -- [REQUIRED]The attributes to set on the object. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. ObjectReference (dict) -- [REQUIRED]A reference to the object being mutated. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call RemoveFacetFromObject (dict) --A batch operation that removes a facet from an object. SchemaFacet (dict) -- [REQUIRED]The facet to remove from the object. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. ObjectReference (dict) -- [REQUIRED]A reference to the object whose facet will be removed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'Responses': [ { 'CreateObject': { 'ObjectIdentifier': 'string' }, 'AttachObject': { 'attachedObjectIdentifier': 'string' }, 'DetachObject': { 'detachedObjectIdentifier': 'string' }, 'UpdateObjectAttributes': { 'ObjectIdentifier': 'string' }, 'DeleteObject': {} , 'AddFacetToObject': {} , 'RemoveFacetFromObject': {} }, ] } """ pass def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). """ pass def create_directory(Name=None, SchemaArn=None): """ Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema. See also: AWS API Documentation :example: response = client.create_directory( Name='string', SchemaArn='string' ) :type Name: string :param Name: [REQUIRED] The name of the Directory . Should be unique per account, per region. :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory . For more information, see arns . :rtype: dict :return: { 'DirectoryArn': 'string', 'Name': 'string', 'ObjectIdentifier': 'string', 'AppliedSchemaArn': 'string' } """ pass def create_facet(SchemaArn=None, Name=None, Attributes=None, ObjectType=None): """ Creates a new Facet in a schema. Facet creation is allowed only in development or applied schemas. See also: AWS API Documentation :example: response = client.create_facet( SchemaArn='string', Name='string', Attributes=[ { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], ObjectType='NODE'|'LEAF_NODE'|'POLICY'|'INDEX' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The schema ARN in which the new Facet will be created. For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the Facet , which is unique for a given schema. :type Attributes: list :param Attributes: The attributes that are associated with the Facet . (dict) --An attribute that is associated with the Facet . Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . :type ObjectType: string :param ObjectType: [REQUIRED] Specifies whether a given object created from this facet is of type node, leaf node, policy or index. Node: Can have multiple children but one parent. Leaf node: Cannot have children but can have multiple parents. Policy: Allows you to store a policy document and policy type. For more information, see Policies . Index: Can be created with the Index API. :rtype: dict :return: {} :returns: (dict) -- """ pass def create_index(DirectoryArn=None, OrderedIndexedAttributeList=None, IsUnique=None, ParentReference=None, LinkName=None): """ Creates an index object. See Indexing for more information. See also: AWS API Documentation :example: response = client.create_index( DirectoryArn='string', OrderedIndexedAttributeList=[ { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, ], IsUnique=True|False, ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory where the index should be created. :type OrderedIndexedAttributeList: list :param OrderedIndexedAttributeList: [REQUIRED] Specifies the attributes that should be indexed on. Currently only a single attribute is supported. (dict) --A unique identifier for an attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. :type IsUnique: boolean :param IsUnique: [REQUIRED] Indicates whether the attribute that is being indexed has unique values or not. :type ParentReference: dict :param ParentReference: A reference to the parent object that contains the index object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: The name of the link between the parent object and the index object. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def create_object(DirectoryArn=None, SchemaFacets=None, ObjectAttributeList=None, ParentReference=None, LinkName=None): """ Creates an object in a Directory . Additionally attaches the object to a parent, if a parent reference and LinkName is specified. An object is simply a collection of Facet attributes. You can also use this API call to create a policy object, if the facet from which you create the object is a policy facet. See also: AWS API Documentation :example: response = client.create_object( DirectoryArn='string', SchemaFacets=[ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], ObjectAttributeList=[ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory in which the object will be created. For more information, see arns . :type SchemaFacets: list :param SchemaFacets: [REQUIRED] A list of schema facets to be associated with the object that contains SchemaArn and facet name. For more information, see arns . (dict) --A facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectAttributeList: list :param ObjectAttributeList: The attribute map whose attribute ARN contains the key and attribute value as the map value. (dict) --The combination of an attribute key and an attribute value. Key (dict) -- [REQUIRED]The key of the attribute. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Value (dict) -- [REQUIRED]The value of the attribute. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type ParentReference: dict :param ParentReference: If specified, the parent reference to which this object will be attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: The name of link that is used to attach this object to a parent. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def create_schema(Name=None): """ Creates a new schema in a development state. A schema can exist in three phases: See also: AWS API Documentation :example: response = client.create_schema( Name='string' ) :type Name: string :param Name: [REQUIRED] The name that is associated with the schema. This is unique to each account and in each region. :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def create_typed_link_facet(SchemaArn=None, Facet=None): """ Creates a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.create_typed_link_facet( SchemaArn='string', Facet={ 'Name': 'string', 'Attributes': [ { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'IdentityAttributeOrder': [ 'string', ] } ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Facet: dict :param Facet: [REQUIRED] Facet structure that is associated with the typed link facet. Name (string) -- [REQUIRED]The unique name of the typed link facet. Attributes (list) -- [REQUIRED]An ordered set of attributes that are associate with the typed link. You can use typed link attributes when you need to represent the relationship between two objects or allow for quick filtering of incoming or outgoing typed links. (dict) --A typed link attribute definition. Name (string) -- [REQUIRED]The unique name of the typed link attribute. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules that are attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- RequiredBehavior (string) -- [REQUIRED]The required behavior of the TypedLinkAttributeDefinition . IdentityAttributeOrder (list) -- [REQUIRED]A range filter that you provide for multiple attributes. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_directory(DirectoryArn=None): """ Deletes a directory. Only disabled directories can be deleted. A deleted directory cannot be undone. Exercise extreme caution when deleting directories. See also: AWS API Documentation :example: response = client.delete_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to delete. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def delete_facet(SchemaArn=None, Name=None): """ Deletes a given Facet . All attributes and Rule s that are associated with the facet will be deleted. Only development schema facets are allowed deletion. See also: AWS API Documentation :example: response = client.delete_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet to delete. :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_object(DirectoryArn=None, ObjectReference=None): """ Deletes an object and its associated attributes. Only objects with no children and no parents can be deleted. See also: AWS API Documentation :example: response = client.delete_object( DirectoryArn='string', ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def delete_schema(SchemaArn=None): """ Deletes a given schema. Schemas in a development and published state can only be deleted. See also: AWS API Documentation :example: response = client.delete_schema( SchemaArn='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the development schema. For more information, see arns . :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def delete_typed_link_facet(SchemaArn=None, Name=None): """ Deletes a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.delete_typed_link_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :rtype: dict :return: {} :returns: (dict) -- """ pass def detach_from_index(DirectoryArn=None, IndexReference=None, TargetReference=None): """ Detaches the specified object from the specified index. See also: AWS API Documentation :example: response = client.detach_from_index( DirectoryArn='string', IndexReference={ 'Selector': 'string' }, TargetReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory the index and object exist in. :type IndexReference: dict :param IndexReference: [REQUIRED] A reference to the index object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object being detached from the index. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: { 'DetachedObjectIdentifier': 'string' } """ pass def detach_object(DirectoryArn=None, ParentReference=None, LinkName=None): """ Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name. See also: AWS API Documentation :example: response = client.detach_object( DirectoryArn='string', ParentReference={ 'Selector': 'string' }, LinkName='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type ParentReference: dict :param ParentReference: [REQUIRED] The parent reference from which the object with the specified link name is detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type LinkName: string :param LinkName: [REQUIRED] The link name associated with the object that needs to be detached. :rtype: dict :return: { 'DetachedObjectIdentifier': 'string' } """ pass def detach_policy(DirectoryArn=None, PolicyReference=None, ObjectReference=None): """ Detaches a policy from an object. See also: AWS API Documentation :example: response = client.detach_policy( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] Reference that identifies the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose policy object will be detached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def detach_typed_link(DirectoryArn=None, TypedLinkSpecifier=None): """ Detaches a typed link from a specified source and target object. For more information, see Typed link . See also: AWS API Documentation :example: response = client.detach_typed_link( DirectoryArn='string', TypedLinkSpecifier={ 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to detach the typed link. :type TypedLinkSpecifier: dict :param TypedLinkSpecifier: [REQUIRED] Used to accept a typed link specifier as input. TypedLinkFacet (dict) -- [REQUIRED]Identifies the typed link facet that is associated with the typed link. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. SourceObjectReference (dict) -- [REQUIRED]Identifies the source object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call TargetObjectReference (dict) -- [REQUIRED]Identifies the target object that the typed link will attach to. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call IdentityAttributeValues (list) -- [REQUIRED]Identifies the attribute value to update. (dict) --Identifies the attribute name and value for a typed link. AttributeName (string) -- [REQUIRED]The attribute name of the typed link. Value (dict) -- [REQUIRED]The value for the typed link. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. """ pass def disable_directory(DirectoryArn=None): """ Disables the specified directory. Disabled directories cannot be read or written to. Only enabled directories can be disabled. Disabled directories may be reenabled. See also: AWS API Documentation :example: response = client.disable_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to disable. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def enable_directory(DirectoryArn=None): """ Enables the specified directory. Only disabled directories can be enabled. Once enabled, the directory can then be read and written to. See also: AWS API Documentation :example: response = client.enable_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to enable. :rtype: dict :return: { 'DirectoryArn': 'string' } """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to ClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By default, the http method is whatever is used in the method's model. """ pass def get_directory(DirectoryArn=None): """ Retrieves metadata about a directory. See also: AWS API Documentation :example: response = client.get_directory( DirectoryArn='string' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory. :rtype: dict :return: { 'Directory': { 'Name': 'string', 'DirectoryArn': 'string', 'State': 'ENABLED'|'DISABLED'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) } } """ pass def get_facet(SchemaArn=None, Name=None): """ Gets details of the Facet , such as facet name, attributes, Rule s, or ObjectType . You can call this on all kinds of schema facets -- published, development, or applied. See also: AWS API Documentation :example: response = client.get_facet( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet to retrieve. :rtype: dict :return: { 'Facet': { 'Name': 'string', 'ObjectType': 'NODE'|'LEAF_NODE'|'POLICY'|'INDEX' } } """ pass def get_object_information(DirectoryArn=None, ObjectReference=None, ConsistencyLevel=None): """ Retrieves metadata about an object. See also: AWS API Documentation :example: response = client.get_object_information( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory being retrieved. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level at which to retrieve the object information. :rtype: dict :return: { 'SchemaFacets': [ { 'SchemaArn': 'string', 'FacetName': 'string' }, ], 'ObjectIdentifier': 'string' } """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} """ pass def get_schema_as_json(SchemaArn=None): """ Retrieves a JSON representation of the schema. See JSON Schema Format for more information. See also: AWS API Documentation :example: response = client.get_schema_as_json( SchemaArn='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema to retrieve. :rtype: dict :return: { 'Name': 'string', 'Document': 'string' } """ pass def get_typed_link_facet_information(SchemaArn=None, Name=None): """ Returns the identity attribute order for a specific TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.get_typed_link_facet_information( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :rtype: dict :return: { 'IdentityAttributeOrder': [ 'string', ] } :returns: (string) -- """ pass def get_waiter(): """ """ pass def list_applied_schema_arns(DirectoryArn=None, NextToken=None, MaxResults=None): """ Lists schemas applied to a directory. See also: AWS API Documentation :example: response = client.list_applied_schema_arns( DirectoryArn='string', NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory you are listing. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_attached_indices(DirectoryArn=None, TargetReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Lists indices attached to an object. See also: AWS API Documentation :example: response = client.list_attached_indices( DirectoryArn='string', TargetReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory. :type TargetReference: dict :param TargetReference: [REQUIRED] A reference to the object to that has indices attached. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to use for this operation. :rtype: dict :return: { 'IndexAttachments': [ { 'IndexedAttributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectIdentifier': 'string' }, ], 'NextToken': 'string' } """ pass def list_development_schema_arns(NextToken=None, MaxResults=None): """ Retrieves each Amazon Resource Name (ARN) of schemas in the development state. See also: AWS API Documentation :example: response = client.list_development_schema_arns( NextToken='string', MaxResults=123 ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_directories(NextToken=None, MaxResults=None, state=None): """ Lists directories created within an account. See also: AWS API Documentation :example: response = client.list_directories( NextToken='string', MaxResults=123, state='ENABLED'|'DISABLED'|'DELETED' ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type state: string :param state: The state of the directories in the list. Can be either Enabled, Disabled, or Deleted. :rtype: dict :return: { 'Directories': [ { 'Name': 'string', 'DirectoryArn': 'string', 'State': 'ENABLED'|'DISABLED'|'DELETED', 'CreationDateTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } """ pass def list_facet_attributes(SchemaArn=None, Name=None, NextToken=None, MaxResults=None): """ Retrieves attributes attached to the facet. See also: AWS API Documentation :example: response = client.list_facet_attributes( SchemaArn='string', Name='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema where the facet resides. :type Name: string :param Name: [REQUIRED] The name of the facet whose attributes will be retrieved. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'Attributes': [ { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_facet_names(SchemaArn=None, NextToken=None, MaxResults=None): """ Retrieves the names of facets that exist in a schema. See also: AWS API Documentation :example: response = client.list_facet_names( SchemaArn='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) to retrieve facet names from. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'FacetNames': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_incoming_typed_links(DirectoryArn=None, ObjectReference=None, FilterAttributeRanges=None, FilterTypedLink=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of all the incoming TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_incoming_typed_links( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, FilterAttributeRanges=[ { 'AttributeName': 'string', 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], FilterTypedLink={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to list the typed links. :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type FilterAttributeRanges: list :param FilterAttributeRanges: Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. (dict) --Identifies the range of attributes that are used by a specified filter. AttributeName (string) --The unique name of the typed link attribute. Range (dict) -- [REQUIRED]The range of attribute values that are being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type FilterTypedLink: dict :param FilterTypedLink: Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'LinkSpecifiers': [ { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] }, ], 'NextToken': 'string' } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def list_index(DirectoryArn=None, RangesOnIndexedValues=None, IndexReference=None, MaxResults=None, NextToken=None, ConsistencyLevel=None): """ Lists objects attached to the specified index. See also: AWS API Documentation :example: response = client.list_index( DirectoryArn='string', RangesOnIndexedValues=[ { 'AttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], IndexReference={ 'Selector': 'string' }, MaxResults=123, NextToken='string', ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory that the index exists in. :type RangesOnIndexedValues: list :param RangesOnIndexedValues: Specifies the ranges of indexed values that you want to query. (dict) --A range of attributes. AttributeKey (dict) --The key of the attribute that the attribute range covers. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. Range (dict) --The range of attribute values being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type IndexReference: dict :param IndexReference: [REQUIRED] The reference to the index to list. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve from the index. :type NextToken: string :param NextToken: The pagination token. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'IndexAttachments': [ { 'IndexedAttributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'ObjectIdentifier': 'string' }, ], 'NextToken': 'string' } """ pass def list_object_attributes(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None, FacetFilter=None): """ Lists all attributes that are associated with an object. See also: AWS API Documentation :example: response = client.list_object_attributes( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL', FacetFilter={ 'SchemaArn': 'string', 'FacetName': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :type FacetFilter: dict :param FacetFilter: Used to filter the list of object attributes that are associated with a certain facet. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :rtype: dict :return: { 'Attributes': [ { 'Key': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ], 'NextToken': 'string' } """ pass def list_object_children(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of child objects that are associated with a given object. See also: AWS API Documentation :example: response = client.list_object_children( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object for which child objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Children': { 'string': 'string' }, 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_object_parent_paths(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None): """ Retrieves all available parent paths for any object type such as node, leaf node, policy node, and index node objects. For more information about objects, see Directory Structure . Use this API to evaluate all parents for an object. The call returns all objects from the root of the directory up to the requested object. The API returns the number of paths based on user-defined MaxResults , in case there are multiple paths to the parent. The order of the paths and nodes returned is consistent among multiple API calls unless the objects are deleted or moved. Paths not leading to the directory root are ignored from the target object. See also: AWS API Documentation :example: response = client.list_object_parent_paths( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory to which the parent path applies. :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object whose parent paths are listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :rtype: dict :return: { 'PathToObjectIdentifiersList': [ { 'Path': 'string', 'ObjectIdentifiers': [ 'string', ] }, ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_object_parents(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Lists parent objects that are associated with a given object in pagination fashion. See also: AWS API Documentation :example: response = client.list_object_parents( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object for which parent objects are being listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'Parents': { 'string': 'string' }, 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_object_policies(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns policies attached to an object in pagination fashion. See also: AWS API Documentation :example: response = client.list_object_policies( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object for which policies will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'AttachedPolicyIds': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_outgoing_typed_links(DirectoryArn=None, ObjectReference=None, FilterAttributeRanges=None, FilterTypedLink=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns a paginated list of all the outgoing TypedLinkSpecifier information for an object. It also supports filtering by typed link facet and identity attributes. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_outgoing_typed_links( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, FilterAttributeRanges=[ { 'AttributeName': 'string', 'Range': { 'StartMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'StartValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'EndMode': 'FIRST'|'LAST'|'LAST_BEFORE_MISSING_VALUES'|'INCLUSIVE'|'EXCLUSIVE', 'EndValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ], FilterTypedLink={ 'SchemaArn': 'string', 'TypedLinkName': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) of the directory where you want to list the typed links. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference that identifies the object whose attributes will be listed. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type FilterAttributeRanges: list :param FilterAttributeRanges: Provides range filters for multiple attributes. When providing ranges to typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. (dict) --Identifies the range of attributes that are used by a specified filter. AttributeName (string) --The unique name of the typed link attribute. Range (dict) -- [REQUIRED]The range of attribute values that are being selected. StartMode (string) -- [REQUIRED]The inclusive or exclusive range start. StartValue (dict) --The value to start the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. EndMode (string) -- [REQUIRED]The inclusive or exclusive range end. EndValue (dict) --The attribute value to terminate the range at. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :type FilterTypedLink: dict :param FilterTypedLink: Filters are interpreted in the order of the attributes defined on the typed link facet, not the order they are supplied to any API calls. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . TypedLinkName (string) -- [REQUIRED]The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :type ConsistencyLevel: string :param ConsistencyLevel: The consistency level to execute the request at. :rtype: dict :return: { 'TypedLinkSpecifiers': [ { 'TypedLinkFacet': { 'SchemaArn': 'string', 'TypedLinkName': 'string' }, 'SourceObjectReference': { 'Selector': 'string' }, 'TargetObjectReference': { 'Selector': 'string' }, 'IdentityAttributeValues': [ { 'AttributeName': 'string', 'Value': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } }, ] }, ], 'NextToken': 'string' } :returns: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An objects identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call """ pass def list_policy_attachments(DirectoryArn=None, PolicyReference=None, NextToken=None, MaxResults=None, ConsistencyLevel=None): """ Returns all of the ObjectIdentifiers to which a given policy is attached. See also: AWS API Documentation :example: response = client.list_policy_attachments( DirectoryArn='string', PolicyReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123, ConsistencyLevel='SERIALIZABLE'|'EVENTUAL' ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns . :type PolicyReference: dict :param PolicyReference: [REQUIRED] The reference that identifies the policy object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :type ConsistencyLevel: string :param ConsistencyLevel: Represents the manner and timing in which the successful write or update of an object is reflected in a subsequent read operation of that same object. :rtype: dict :return: { 'ObjectIdentifiers': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_published_schema_arns(NextToken=None, MaxResults=None): """ Retrieves each published schema Amazon Resource Name (ARN). See also: AWS API Documentation :example: response = client.list_published_schema_arns( NextToken='string', MaxResults=123 ) :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'SchemaArns': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def list_tags_for_resource(ResourceArn=None, NextToken=None, MaxResults=None): """ Returns tags for a resource. Tagging is currently supported only for directories with a limit of 50 tags per directory. All 50 tags are returned for a given directory with this API call. See also: AWS API Documentation :example: response = client.list_tags_for_resource( ResourceArn='string', NextToken='string', MaxResults=123 ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type NextToken: string :param NextToken: The pagination token. This is for future use. Currently pagination is not supported for tagging. :type MaxResults: integer :param MaxResults: The MaxResults parameter sets the maximum number of results returned in a single page. This is for future use and is not supported currently. :rtype: dict :return: { 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'NextToken': 'string' } """ pass def list_typed_link_facet_attributes(SchemaArn=None, Name=None, NextToken=None, MaxResults=None): """ Returns a paginated list of all attribute definitions for a particular TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_typed_link_facet_attributes( SchemaArn='string', Name='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'Attributes': [ { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, ], 'NextToken': 'string' } :returns: (string) -- (string) -- """ pass def list_typed_link_facet_names(SchemaArn=None, NextToken=None, MaxResults=None): """ Returns a paginated list of TypedLink facet names for a particular schema. For more information, see Typed link . See also: AWS API Documentation :example: response = client.list_typed_link_facet_names( SchemaArn='string', NextToken='string', MaxResults=123 ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type NextToken: string :param NextToken: The pagination token. :type MaxResults: integer :param MaxResults: The maximum number of results to retrieve. :rtype: dict :return: { 'FacetNames': [ 'string', ], 'NextToken': 'string' } :returns: (string) -- """ pass def lookup_policy(DirectoryArn=None, ObjectReference=None, NextToken=None, MaxResults=None): """ Lists all policies from the root of the Directory to the object specified. If there are no policies present, an empty list is returned. If policies are present, and if some objects don't have the policies attached, it returns the ObjectIdentifier for such objects. If policies are present, it returns ObjectIdentifier , policyId , and policyType . Paths that don't lead to the root from the target object are ignored. For more information, see Policies . See also: AWS API Documentation :example: response = client.lookup_policy( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, NextToken='string', MaxResults=123 ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] Reference that identifies the object whose policies will be looked up. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type NextToken: string :param NextToken: The token to request the next page of results. :type MaxResults: integer :param MaxResults: The maximum number of items to be retrieved in a single call. This is an approximate number. :rtype: dict :return: { 'PolicyToPathList': [ { 'Path': 'string', 'Policies': [ { 'PolicyId': 'string', 'ObjectIdentifier': 'string', 'PolicyType': 'string' }, ] }, ], 'NextToken': 'string' } """ pass def publish_schema(DevelopmentSchemaArn=None, Version=None, Name=None): """ Publishes a development schema with a version. If description and attributes are specified, PublishSchema overrides the development schema description and attributes. If not, the development schema description and attributes are used. See also: AWS API Documentation :example: response = client.publish_schema( DevelopmentSchemaArn='string', Version='string', Name='string' ) :type DevelopmentSchemaArn: string :param DevelopmentSchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the development schema. For more information, see arns . :type Version: string :param Version: [REQUIRED] The version under which the schema will be published. :type Name: string :param Name: The new name under which the schema will be published. If this is not provided, the development schema is considered. :rtype: dict :return: { 'PublishedSchemaArn': 'string' } """ pass def put_schema_from_json(SchemaArn=None, Document=None): """ Allows a schema to be updated using JSON upload. Only available for development schemas. See JSON Schema Format for more information. See also: AWS API Documentation :example: response = client.put_schema_from_json( SchemaArn='string', Document='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The ARN of the schema to update. :type Document: string :param Document: [REQUIRED] The replacement JSON schema. :rtype: dict :return: { 'Arn': 'string' } """ pass def remove_facet_from_object(DirectoryArn=None, SchemaFacet=None, ObjectReference=None): """ Removes the specified facet from the specified object. See also: AWS API Documentation :example: response = client.remove_facet_from_object( DirectoryArn='string', SchemaFacet={ 'SchemaArn': 'string', 'FacetName': 'string' }, ObjectReference={ 'Selector': 'string' } ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The ARN of the directory in which the object resides. :type SchemaFacet: dict :param SchemaFacet: [REQUIRED] The facet to remove. SchemaArn (string) --The ARN of the schema that contains the facet. FacetName (string) --The name of the facet. :type ObjectReference: dict :param ObjectReference: [REQUIRED] A reference to the object to remove the facet from. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :rtype: dict :return: {} :returns: (dict) -- """ pass def tag_resource(ResourceArn=None, Tags=None): """ An API operation for adding tags to a resource. See also: AWS API Documentation :example: response = client.tag_resource( ResourceArn='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type Tags: list :param Tags: [REQUIRED] A list of tag key-value pairs. (dict) --The tag structure that contains a tag key and value. Key (string) --The key that is associated with the tag. Value (string) --The value that is associated with the tag. :rtype: dict :return: {} :returns: (dict) -- """ pass def untag_resource(ResourceArn=None, TagKeys=None): """ An API operation for removing tags from a resource. See also: AWS API Documentation :example: response = client.untag_resource( ResourceArn='string', TagKeys=[ 'string', ] ) :type ResourceArn: string :param ResourceArn: [REQUIRED] The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories. :type TagKeys: list :param TagKeys: [REQUIRED] Keys of the tag that need to be removed from the resource. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass def update_facet(SchemaArn=None, Name=None, AttributeUpdates=None, ObjectType=None): """ Does the following: See also: AWS API Documentation :example: response = client.update_facet( SchemaArn='string', Name='string', AttributeUpdates=[ { 'Attribute': { 'Name': 'string', 'AttributeDefinition': { 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } } }, 'AttributeReference': { 'TargetFacetName': 'string', 'TargetAttributeName': 'string' }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, 'Action': 'CREATE_OR_UPDATE'|'DELETE' }, ], ObjectType='NODE'|'LEAF_NODE'|'POLICY'|'INDEX' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the facet. :type AttributeUpdates: list :param AttributeUpdates: List of attributes that need to be updated in a given schema Facet . Each attribute is followed by AttributeAction , which specifies the type of update operation to perform. (dict) --A structure that contains information used to update an attribute. Attribute (dict) --The attribute to update. Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . Action (string) --The action to perform when updating the attribute. :type ObjectType: string :param ObjectType: The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details. :rtype: dict :return: {} :returns: SchemaArn (string) -- [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Facet . For more information, see arns . Name (string) -- [REQUIRED] The name of the facet. AttributeUpdates (list) -- List of attributes that need to be updated in a given schema Facet . Each attribute is followed by AttributeAction , which specifies the type of update operation to perform. (dict) --A structure that contains information used to update an attribute. Attribute (dict) --The attribute to update. Name (string) -- [REQUIRED]The name of the facet attribute. AttributeDefinition (dict) --A facet attribute consists of either a definition or a reference. This structure contains the attribute definition. See Attribute References for more information. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- AttributeReference (dict) --An attribute reference that is associated with the attribute. See Attribute References for more information. TargetFacetName (string) -- [REQUIRED]The target facet name that is associated with the facet reference. See Attribute References for more information. TargetAttributeName (string) -- [REQUIRED]The target attribute name that is associated with the facet reference. See Attribute References for more information. RequiredBehavior (string) --The required behavior of the FacetAttribute . Action (string) --The action to perform when updating the attribute. ObjectType (string) -- The object type that is associated with the facet. See CreateFacetRequest$ObjectType for more details. """ pass def update_object_attributes(DirectoryArn=None, ObjectReference=None, AttributeUpdates=None): """ Updates a given object's attributes. See also: AWS API Documentation :example: response = client.update_object_attributes( DirectoryArn='string', ObjectReference={ 'Selector': 'string' }, AttributeUpdates=[ { 'ObjectAttributeKey': { 'SchemaArn': 'string', 'FacetName': 'string', 'Name': 'string' }, 'ObjectAttributeAction': { 'ObjectAttributeActionType': 'CREATE_OR_UPDATE'|'DELETE', 'ObjectAttributeUpdateValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) } } }, ] ) :type DirectoryArn: string :param DirectoryArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns . :type ObjectReference: dict :param ObjectReference: [REQUIRED] The reference that identifies the object. Selector (string) --A path selector supports easy selection of an object by the parent/child links leading to it from the directory root. Use the link names from each parent/child link to construct the path. Path selectors start with a slash (/) and link names are separated by slashes. For more information about paths, see Accessing Objects . You can identify an object in one of the following ways: $ObjectIdentifier - An object identifier is an opaque string provided by Amazon Cloud Directory. When creating objects, the system will provide you with the identifier of the created object. An object s identifier is immutable and no two objects will ever share the same object identifier /some/path - Identifies the object based on path #SomeBatchReference - Identifies the object in a batch call :type AttributeUpdates: list :param AttributeUpdates: [REQUIRED] The attributes update structure. (dict) --Structure that contains attribute update information. ObjectAttributeKey (dict) --The key of the attribute being updated. SchemaArn (string) -- [REQUIRED]The Amazon Resource Name (ARN) of the schema that contains the facet and attribute. FacetName (string) -- [REQUIRED]The name of the facet that the attribute exists within. Name (string) -- [REQUIRED]The name of the attribute. ObjectAttributeAction (dict) --The action to perform as part of the attribute update. ObjectAttributeActionType (string) --A type that can be either Update or Delete . ObjectAttributeUpdateValue (dict) --The value that you want to update to. StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. :rtype: dict :return: { 'ObjectIdentifier': 'string' } """ pass def update_schema(SchemaArn=None, Name=None): """ Updates the schema name with a new name. Only development schema names can be updated. See also: AWS API Documentation :example: response = client.update_schema( SchemaArn='string', Name='string' ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) of the development schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The name of the schema. :rtype: dict :return: { 'SchemaArn': 'string' } """ pass def update_typed_link_facet(SchemaArn=None, Name=None, AttributeUpdates=None, IdentityAttributeOrder=None): """ Updates a TypedLinkFacet . For more information, see Typed link . See also: AWS API Documentation :example: response = client.update_typed_link_facet( SchemaArn='string', Name='string', AttributeUpdates=[ { 'Attribute': { 'Name': 'string', 'Type': 'STRING'|'BINARY'|'BOOLEAN'|'NUMBER'|'DATETIME', 'DefaultValue': { 'StringValue': 'string', 'BinaryValue': b'bytes', 'BooleanValue': True|False, 'NumberValue': 'string', 'DatetimeValue': datetime(2015, 1, 1) }, 'IsImmutable': True|False, 'Rules': { 'string': { 'Type': 'BINARY_LENGTH'|'NUMBER_COMPARISON'|'STRING_FROM_SET'|'STRING_LENGTH', 'Parameters': { 'string': 'string' } } }, 'RequiredBehavior': 'REQUIRED_ALWAYS'|'NOT_REQUIRED' }, 'Action': 'CREATE_OR_UPDATE'|'DELETE' }, ], IdentityAttributeOrder=[ 'string', ] ) :type SchemaArn: string :param SchemaArn: [REQUIRED] The Amazon Resource Name (ARN) that is associated with the schema. For more information, see arns . :type Name: string :param Name: [REQUIRED] The unique name of the typed link facet. :type AttributeUpdates: list :param AttributeUpdates: [REQUIRED] Attributes update structure. (dict) --A typed link facet attribute update. Attribute (dict) -- [REQUIRED]The attribute to update. Name (string) -- [REQUIRED]The unique name of the typed link attribute. Type (string) -- [REQUIRED]The type of the attribute. DefaultValue (dict) --The default value of the attribute (if configured). StringValue (string) --A string data value. BinaryValue (bytes) --A binary data value. BooleanValue (boolean) --A Boolean data value. NumberValue (string) --A number data value. DatetimeValue (datetime) --A date and time value. IsImmutable (boolean) --Whether the attribute is mutable or not. Rules (dict) --Validation rules that are attached to the attribute definition. (string) -- (dict) --Contains an Amazon Resource Name (ARN) and parameters that are associated with the rule. Type (string) --The type of attribute validation rule. Parameters (dict) --The minimum and maximum parameters that are associated with the rule. (string) -- (string) -- RequiredBehavior (string) -- [REQUIRED]The required behavior of the TypedLinkAttributeDefinition . Action (string) -- [REQUIRED]The action to perform when updating the attribute. :type IdentityAttributeOrder: list :param IdentityAttributeOrder: [REQUIRED] A range filter that you provide for multiple attributes. The ability to filter typed links considers the order that the attributes are defined on the typed link facet. When providing ranges to a typed link selection, any inexact ranges must be specified at the end. Any attributes that do not have a range specified are presumed to match the entire range. Filters are interpreted in the order of the attributes on the typed link facet, not the order in which they are supplied to any API calls. (string) -- :rtype: dict :return: {} :returns: (dict) -- """ pass
workers = 1 worker_class = 'gevent' bind = '0.0.0.0:5000' pidfile = '/tmp/gunicorn-csdh-api.pid' debug = True reload = True loglevel = 'info' errorlog = '/tmp/gunicorn_csdh_api_error.log' accesslog = '/tmp/gunicorn_csdh_api_access.log' daemon = False
workers = 1 worker_class = 'gevent' bind = '0.0.0.0:5000' pidfile = '/tmp/gunicorn-csdh-api.pid' debug = True reload = True loglevel = 'info' errorlog = '/tmp/gunicorn_csdh_api_error.log' accesslog = '/tmp/gunicorn_csdh_api_access.log' daemon = False
def sol(): a = input() b = input() for i in range(3): print( int(a) * int(b[2 - i]) ) print(int(a) * int(b)) if __name__ == "__main__": sol()
def sol(): a = input() b = input() for i in range(3): print(int(a) * int(b[2 - i])) print(int(a) * int(b)) if __name__ == '__main__': sol()
def main(): x = 10 if(x == 5): x = 1 else: x = 2 x = 3
def main(): x = 10 if x == 5: x = 1 else: x = 2 x = 3
class Phishing(object): @staticmethod def create_(): print("Haciendo phishing")
class Phishing(object): @staticmethod def create_(): print('Haciendo phishing')
n = int(input()) ondo = [list(map(float, input().split())) for _ in range(n)] soukei = {'mousyo': 0, 'manatsu': 1, 'natsu': 2, 'nettai': 3, 'huyu': 4, 'mafuyu': 5} s = [0]*6 for i, j in ondo: if i >= 35: s[soukei['mousyo']] += 1 if 30 <= i < 35: s[soukei['manatsu']] += 1 if 25 <= i < 30: s[soukei['natsu']] += 1 if 25 <= j: s[soukei['nettai']] += 1 if j < 0 and 0 <= i: s[soukei['huyu']] += 1 if i < 0: s[soukei['mafuyu']] += 1 print(*s)
n = int(input()) ondo = [list(map(float, input().split())) for _ in range(n)] soukei = {'mousyo': 0, 'manatsu': 1, 'natsu': 2, 'nettai': 3, 'huyu': 4, 'mafuyu': 5} s = [0] * 6 for (i, j) in ondo: if i >= 35: s[soukei['mousyo']] += 1 if 30 <= i < 35: s[soukei['manatsu']] += 1 if 25 <= i < 30: s[soukei['natsu']] += 1 if 25 <= j: s[soukei['nettai']] += 1 if j < 0 and 0 <= i: s[soukei['huyu']] += 1 if i < 0: s[soukei['mafuyu']] += 1 print(*s)
class Car(object): speed = 0 def __init__(self, vehicle_type=None,model='GM',name='General'): self.vehicle_type= vehicle_type self.model = model self.name=name if self.name in ['Porsche', 'Koenigsegg']: self.num_of_doors = 2 else: self.num_of_doors = 4 if self.vehicle_type == 'trailer': self.num_of_wheels = 8 else: self.num_of_wheels = 4 def is_saloon(self): if self.vehicle_type is not 'trailer': self.vehicle_type=='saloon' return True def drive_car(self, moving_speed): if moving_speed == 3: Car.speed = 1000 elif moving_speed == 7: Car.speed = 77 return self
class Car(object): speed = 0 def __init__(self, vehicle_type=None, model='GM', name='General'): self.vehicle_type = vehicle_type self.model = model self.name = name if self.name in ['Porsche', 'Koenigsegg']: self.num_of_doors = 2 else: self.num_of_doors = 4 if self.vehicle_type == 'trailer': self.num_of_wheels = 8 else: self.num_of_wheels = 4 def is_saloon(self): if self.vehicle_type is not 'trailer': self.vehicle_type == 'saloon' return True def drive_car(self, moving_speed): if moving_speed == 3: Car.speed = 1000 elif moving_speed == 7: Car.speed = 77 return self
# Python Program To Find Square Of Elements In A List ''' Function Name : Square Of Elements In A List. Function Date : 8 Sep 2020 Function Author : Prasad Dangare Input : Integer Output : Integer ''' def square(x): return x*x # Let Us Take A List Of Numbers lst = [1,2,3,4,5] # Call map() With Square() And lst lst1 = list(map(square, lst)) print(lst1)
""" Function Name : Square Of Elements In A List. Function Date : 8 Sep 2020 Function Author : Prasad Dangare Input : Integer Output : Integer """ def square(x): return x * x lst = [1, 2, 3, 4, 5] lst1 = list(map(square, lst)) print(lst1)
class Solution(object): def countAndSay(self, n): """ :type n: int :rtype: str """ if n == 1: return "1" prev = self.countAndSay(n-1) res = "" ct = 1 for i in range(len(prev)): if i == len(prev)-1 or prev[i] != prev[i+1]: res += str(ct) + prev[i] ct = 1 else: ct += 1 return res
class Solution(object): def count_and_say(self, n): """ :type n: int :rtype: str """ if n == 1: return '1' prev = self.countAndSay(n - 1) res = '' ct = 1 for i in range(len(prev)): if i == len(prev) - 1 or prev[i] != prev[i + 1]: res += str(ct) + prev[i] ct = 1 else: ct += 1 return res
n=int(input()) while True: a=int(input()) if a is 0: break if a%n is 0: print("{} is a multiple of {}.".format(a,n)) else: print("{} is NOT a multiple of {}.".format(a,n))
n = int(input()) while True: a = int(input()) if a is 0: break if a % n is 0: print('{} is a multiple of {}.'.format(a, n)) else: print('{} is NOT a multiple of {}.'.format(a, n))
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir """ class Rectangle: # constructor def __init__(self, x, y, width, height): self.x = x self.y = y self.width = width self.height = height # Return the sum of all pixels inside a rectangle for a specific integral image def compute_sum(self, integralImg, scale, x, y): x = self.x y = self.y width = self.width height = self.height one = integralImg[y][x] two = integralImg[y][x+width] three = integralImg[y+height][x] four = integralImg[y+height][x+width] desiredSum = (one + four) - (two + three) return desiredSum
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir """ class Rectangle: def __init__(self, x, y, width, height): self.x = x self.y = y self.width = width self.height = height def compute_sum(self, integralImg, scale, x, y): x = self.x y = self.y width = self.width height = self.height one = integralImg[y][x] two = integralImg[y][x + width] three = integralImg[y + height][x] four = integralImg[y + height][x + width] desired_sum = one + four - (two + three) return desiredSum
n = int(input()) l = int(input()) for first in range(1, n): for second in range(1, n): for three in range(97, 97 + l): for four in range(97, 97 + l): for five in range(2, n + 1): three_chr = chr(three) four_chr = chr(four) if five > first and five > second: print(f'{first}{second}{three_chr}{four_chr}{five}', end=' ')
n = int(input()) l = int(input()) for first in range(1, n): for second in range(1, n): for three in range(97, 97 + l): for four in range(97, 97 + l): for five in range(2, n + 1): three_chr = chr(three) four_chr = chr(four) if five > first and five > second: print(f'{first}{second}{three_chr}{four_chr}{five}', end=' ')
def extended_gcd(a, b): if a == 0: return (b, 0, 1) g, y, x = extended_gcd(b % a, a) return (g, x - (b // a) * y, y) def modinv(a, m): g, x, y = extended_gcd(a % m, m) if g != 1: raise Exception('Element has no inverse') return x % m
def extended_gcd(a, b): if a == 0: return (b, 0, 1) (g, y, x) = extended_gcd(b % a, a) return (g, x - b // a * y, y) def modinv(a, m): (g, x, y) = extended_gcd(a % m, m) if g != 1: raise exception('Element has no inverse') return x % m
"""some additional (math) types you may need, with instance checks""" __all__ = ['NaturalNumber', 'StrictNaturalNumber'] class NaturalNumberMeta(type): """metaclass""" def __instancecheck__(self, instance): return isinstance(instance, int) and instance >= 0 class StrictNaturalNumberMeta(type): """metaclass""" def __instancecheck__(self, instance): return isinstance(instance, int) and instance >= 1 class NaturalNumber(metaclass=NaturalNumberMeta): """A natural number is any non-negative integer""" pass class StrictNaturalNumber(metaclass=StrictNaturalNumberMeta): """A strict natural number is any integer bigger than 0""" pass
"""some additional (math) types you may need, with instance checks""" __all__ = ['NaturalNumber', 'StrictNaturalNumber'] class Naturalnumbermeta(type): """metaclass""" def __instancecheck__(self, instance): return isinstance(instance, int) and instance >= 0 class Strictnaturalnumbermeta(type): """metaclass""" def __instancecheck__(self, instance): return isinstance(instance, int) and instance >= 1 class Naturalnumber(metaclass=NaturalNumberMeta): """A natural number is any non-negative integer""" pass class Strictnaturalnumber(metaclass=StrictNaturalNumberMeta): """A strict natural number is any integer bigger than 0""" pass
"""Exercise 1: Country Roads Remember to fill out all the TODO's, you can quickly scan for them by pressing CTRL/CMD + F """ class Car: """A class representing a car with details about how far it can travel""" def __init__(self, gas_tank_size, fuel, litres_per_kilometre): self.gas_tank_size = gas_tank_size self.fuel = fuel self.litres_per_kilometre = litres_per_kilometre def fill_up(self): """Fills up the car's Fuel""" ... # TODO: finish function def drive(self, kilometres_driven): """Remove the amount of fuel, based on distance driven""" ... # TODO: finish function def kilometres_available(self): """Return the number of kilometers that the car could drive with the current amount of fuel""" ... # TODO: Finish Function # Code to test c = Car(10,9,2) print(c.kilometres_available()) c.drive(4) print(c.kilometres_available()) c.fill_up() print(c.kilometres_available)
"""Exercise 1: Country Roads Remember to fill out all the TODO's, you can quickly scan for them by pressing CTRL/CMD + F """ class Car: """A class representing a car with details about how far it can travel""" def __init__(self, gas_tank_size, fuel, litres_per_kilometre): self.gas_tank_size = gas_tank_size self.fuel = fuel self.litres_per_kilometre = litres_per_kilometre def fill_up(self): """Fills up the car's Fuel""" ... def drive(self, kilometres_driven): """Remove the amount of fuel, based on distance driven""" ... def kilometres_available(self): """Return the number of kilometers that the car could drive with the current amount of fuel""" ... c = car(10, 9, 2) print(c.kilometres_available()) c.drive(4) print(c.kilometres_available()) c.fill_up() print(c.kilometres_available)
def balanced(text: str): stack = [] is_balanced = True for i in range(len(text)): if text[i] in "{[(": stack.append(i) elif text[i] in ")]}" and len(stack) > 0: start_ind = stack.pop() if text[start_ind] == "{": if text[i] != "}": is_balanced = False break elif text[start_ind] == "[": if text[i] != "]": is_balanced = False break elif text[start_ind] == "(": if text[i] != ")": is_balanced = False break else: is_balanced = False break else: is_balanced = False break if is_balanced and len(text) > 0 and len(stack) == 0: print("YES") else: print("NO") balanced(text=input())
def balanced(text: str): stack = [] is_balanced = True for i in range(len(text)): if text[i] in '{[(': stack.append(i) elif text[i] in ')]}' and len(stack) > 0: start_ind = stack.pop() if text[start_ind] == '{': if text[i] != '}': is_balanced = False break elif text[start_ind] == '[': if text[i] != ']': is_balanced = False break elif text[start_ind] == '(': if text[i] != ')': is_balanced = False break else: is_balanced = False break else: is_balanced = False break if is_balanced and len(text) > 0 and (len(stack) == 0): print('YES') else: print('NO') balanced(text=input())
def round_scores(student_scores): ''' :param student_scores: list of student exam scores as float or int. :return: list of student scores *rounded* to nearest integer value. ''' rounded = [] while student_scores: rounded.append(round(student_scores.pop())) return rounded def count_failed_students(student_scores): ''' :param student_scores: list of integer student scores. :return: integer count of student scores at or below 40. ''' non_passing = 0 for score in student_scores: if score <= 40: non_passing += 1 return non_passing def above_threshold(student_scores, threshold): ''' :param student_scores: list of integer scores :param threshold : integer :return: list of integer scores that are at or above the "best" threshold. ''' above = [] for score in student_scores: if score >= threshold: above.append(score) return above def letter_grades(highest): ''' :param highest: integer of highest exam score. :return: list of integer score thresholds for each F-A letter grades. ''' increment = round((highest - 40)/4) scores = [] for score in range(41, highest, increment): scores.append(score) return scores def student_ranking(student_scores, student_names): ''' :param student_scores: list of scores in descending order. :param student_names: list of names in descending order by exam score. :return: list of strings in format ["<rank>. <student name>: <score>"]. ''' results = [] for index, name in enumerate(student_names): rank_string = str(index + 1) + ". " + name + ": " + str(student_scores[index]) results.append(rank_string) return results def perfect_score(student_info): ''' :param student_info: list of [<student name>, <score>] lists :return: First [<student name>, 100] found OR "No perfect score." ''' result = "No perfect score." for item in student_info: if item[1] == 100: result = item break return result
def round_scores(student_scores): """ :param student_scores: list of student exam scores as float or int. :return: list of student scores *rounded* to nearest integer value. """ rounded = [] while student_scores: rounded.append(round(student_scores.pop())) return rounded def count_failed_students(student_scores): """ :param student_scores: list of integer student scores. :return: integer count of student scores at or below 40. """ non_passing = 0 for score in student_scores: if score <= 40: non_passing += 1 return non_passing def above_threshold(student_scores, threshold): """ :param student_scores: list of integer scores :param threshold : integer :return: list of integer scores that are at or above the "best" threshold. """ above = [] for score in student_scores: if score >= threshold: above.append(score) return above def letter_grades(highest): """ :param highest: integer of highest exam score. :return: list of integer score thresholds for each F-A letter grades. """ increment = round((highest - 40) / 4) scores = [] for score in range(41, highest, increment): scores.append(score) return scores def student_ranking(student_scores, student_names): """ :param student_scores: list of scores in descending order. :param student_names: list of names in descending order by exam score. :return: list of strings in format ["<rank>. <student name>: <score>"]. """ results = [] for (index, name) in enumerate(student_names): rank_string = str(index + 1) + '. ' + name + ': ' + str(student_scores[index]) results.append(rank_string) return results def perfect_score(student_info): """ :param student_info: list of [<student name>, <score>] lists :return: First [<student name>, 100] found OR "No perfect score." """ result = 'No perfect score.' for item in student_info: if item[1] == 100: result = item break return result
sections = { # type descriptions / header blocks "public": { "name": "Public Routes", "desc": """\ <p>These routes <b>DO NOT</b> require user authentication (though some of them require a valid API key to use).</p> <p> When building an application, use these routes to construct dashboard type views and to look up game asset data that does not belong to any user, such as Fighting Arts, Gear cards, etc.</p>""", }, "private": { 'name': 'Private Routes', 'desc': """\ <p>Private routes require an Authorization header including a JWT token.</p> <p>(See the documentation above for more info on how to <b>POST</b> user credentials to the <code>/login</code> route to get a token.)</p> <p>Generally speaking, when you access any private route, you want your headers to look something like this:</p> <code> { 'content-type': 'application/json', 'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6...' } </code> <p>Finally, keep in mind that tokens are extremely short-lived, so you should be prepared to refresh them frequently. See the section below on 'Authorization Token Management' for more info on checking/refreshing tokens.</p> <p><b>Important!</b> In order to support the CORS pre-flight checks that most browsers are going to auto-magically perform before <b>POST</b>ing to one of these routes, <u>all private routes supported by the KD:M API also support the <code>OPTIONS</code> method</u>.</p>\ """, }, # public routes "user_creation_and_auth": { "name": "User creation and auth", "desc": ( "These public routes are how you want to create new users and " "authenticate existing ones." ), }, "password_reset": { "name": "Password reset", "desc": "Use these two routes to build a password reset mechanism.", }, "user_collection_management": { "name": "User collection management", "desc": "The endpoints defined below are used to manage the User's IRL collection of game assets, e.g. expansions, etc.", }, "ui_ux_helpers": { "name": "UI/UX Helpers", "desc": "These routes are intended to help with user experience by rapidly returning basic asset sets.", }, "dashboard": { "name": "Dashboard", "desc": "The public endpoints here are meant to be used to create a dashboard or landing page type of view for users when they first sign in.", }, "game_asset_lookups": { "name": "Game asset lookup routes", "desc": ( '<p>Use these endpoints to get information about game assets, e.g. ' 'monsters, gear, expansions, etc.</p>' '<p>Each of these routes works essentially the same way. You can ' '<b>POST</b> a query to one and retireve data about a single asset ' 'if you know its name or handle -OR- you can <b>GET</b> the route ' 'to get a dictionary of all assets.</p>' '<p><b>PROTIP:</b> Use the <a href="/game_asset">/game_asset</a> ' 'endpoint to get a list of available game asset types -OR- hit the ' '<a href="/kingdom_death">/kingdom_death</a> endpoint to dump a ' 'JSON representation of every game asset that the API tracks.</p>' ), }, # private routes "authorization_token_management": { "name": "Authorization token management", "desc": """\ Once you've got an authorization token, you can work with it using these routes. Most failures from these routes are reported back as 401's, since they concern authorization.""", }, "administrative_views_and_data":{ "name": "Administrative views and data", "desc": "Administrative views and data:</b> If your user has the 'admin' attribute, i.e. they are an administrator of the API server, the user can hit these routes to retrieve data about application usage, etc. These endpoints are used primarily to construct the administrator's dashboard.", }, "user_management": { "name": "User management", "desc": """\ All routes for working directly with a user follow a <code>/user/&lt;action&gt;/&lt;user_id&gt;</code> convention. These routes are private and require authentication. """, }, "user_attribute_management": { "name": "User attribute management (and updates)", "desc": "These endpoints are used to update and modify individual webapp users.", }, "user_collection_management": { "name": "User Collection management", "desc": "The endpoints defined in this section are used to manage the User's IRL collection of game assets, e.g. Expansions, etc." }, "create_assets": { "name": "Create assets", "desc": "To create new assets (user, survivor, settlement), <b>POST</b> JSON containing appropriate params to the /new/&lt;asset_type&gt; route. Invalid or unrecognized params will be ignored!", }, # # settlement routes # "settlement_management": { "name": "Settlement management", "desc": """\ <p>All routes for working with a settlement follow the normal convention in the KDM API for working with individual user assets, i.e. <code>/settlement/&lt;action&gt;/&lt;settlement_id&gt;</code></p> <p>Many operations below require asset handles.</p> <p>Asset handles may be found in the settlement's <code>game_assets</code> element, which contains dictionaries and lists of assets that are available to the settlement based on its campaign, expansions, etc.</p> <p>Typical settlement JSON looks like this:</p> <pre><code> { "user_assets": {...}, "meta": {...}, "sheet": {...}, "game_assets": { "milestones_options": {...}, "campaign": {...}, "weapon_specializations": {...}, "locations": {...}, "innovations": {...}, "principles_options": {...}, "causes_of_death": {...}, "quarry_options": {...}, "nemesis_options": {...}, "eligible_parents": {...}, ... }, } </code></pre> <p><b>Important!</b> As indicated elsewhere in this documentation, asset handles will never change. Asset names are subject to change, and, while name-based lookup methods are supported by various routes, using names instead of handles is not recommended.</p> """, }, "settlement_set_attribute": { "name": "Attribtue set", "desc": """Use the routes below to set a settlement's individual attributes, e.g. Name, Survival Limit, etc. to a specific value. <p>Attributes such as Survival Limit, Population and Death Count are more or less automatically managed by the API, but you may use the routes in this section to set them directly. Be advised that the API calculates "base" values for a number of numerical attributes and will typically set attributes to that base if you attempt to set them to a lower value.</p>""", }, "settlement_update_attribute": { "name": "Attribute update", "desc": """Use the routes here to update and/or toggle individual settlement attributes. <p>Updating is different from setting, in that the update-type routes will add the value you <b>POST</b> to the current value, rather than just overwriting the value in the way a set-type route would.</p>""", }, "settlement_component_gets": { "name": "Component GET routes (sub-GETs)", "desc": "The two heaviest elements of a settlement, from the perspectives of both the raw size of the JSON and how long it takes for the API server to put it together, are the event log and the settlement storage. These two endpoints allow you to get them separately, e.g. behind-the-scenes, on demand or only if necessary, etc.", }, "settlement_manage_survivors": { "name": "Bulk survivor management", "desc": """These routes allow you to manage groups or types of survivors within the settlement.""", }, "settlement_manage_expansions": { "name": "Expansion content", "desc": """The endpoints here all you to <b>POST</b> lists of expansion content handles to update the expansion content used in the settlement.""", }, "settlement_manage_monsters": { "name": "Monsters", "desc": """These routes all allow you to do things with the settlement's various lists of monsters and monster-related attributes.""", }, "settlement_manage_principles": { "name": "Principles and Milestones", "desc": """Routes for setting and unsetting princples and milestones.""", }, "settlement_manage_locations": { "name": "Locations", "desc": """Routes for adding, removing and working with settlement locations.""", }, "settlement_manage_innovations": { "name": "Innovations", "desc": """Routes for adding, removing and working with settlement innovations.""", }, "settlement_manage_timeline": { "name": "Timeline", "desc": """<a id="timelineDataModel"></a> use these routes to manage the settlement's timeline. <p> Make sure you you are familiar with the data model for the timeline (documented in the paragraphs below) before using these routes.</p> <p>At the highest level, every settlement's <code>sheet.timeline</code> element is a list of hashes, where each hash represents an individual lantern year.</p> <p>Within each Lantern Year, the keys's values are lists of events, except for the <code>year</code> key, which is special because it is the only key in the Lantern Year hash whose value is an integer, instead of a list.</p> <p>The other keys in the hash, the ones whose values are lists of events, have to be one of the following: <ul class="embedded"> <li><code>settlement_event</code></li> <li><code>story_event</code></li> <li><code>special_showdown</code></li> <li><code>nemesis_encounter</code></li> <li><code>showdown_event</code></li> </ul> Individual events are themselves hashes. In the 1.2 revision of the timeline data model, individual event hashes have a single key/value pair: they either have a <code>handle</code> key, whose value is an event handle (e.g. from the settlement JSON's <code>game_assets.events </code> element) or a a <code>name</code> key, whose value is an arbitrary string.</p> <p>In generic terms, here is how a settlement's <code> sheet.timeline</code> JSON is structured:</p> <pre><code> [ { year: 0, showdown_event: [{name: 'name'}], story_event: [{handle: 'handle'}] }, {year: 1, special_showdown: [{name: 'name'}], settlement_event: [{handle: 'handle'}]} {year: 2, } {year: 3, nemesis_encounter: [{name: 'name'}, {name: 'name'}], story_event: [{name: 'name'}, {handle: 'handle'}]} ... ]</code></pre> <p><b>Important!</b> Individual Lantern Year hashes need not contain any event list hashes, but they <u>absolutely must contain a hash with the <code>year</code> key/value pair.</u></p> <p>Any attempt to <b>POST</b> a Lantern Year without this 'magic' key/value pair, will cause the API to throw an error.</p> <p>Also, for now, the API does not enforce any normalization or business logic for the timeline and individual event lists may contain as many event hashes as necessary.</p> <p>Finally, the API should <b>always</b> render the list of Lantern Year hashes (i.e. <code>sheet.timeline</code> in "chronological" order. If you get them back out of order, open a ticket.</p> """, }, "settlement_admin_permissions": { "name": "Settlement administrators", "desc": """Each settlement has at least one administrator who serves as the primary owner/admin maintainer of the settlement. Each settlement can have as many administrators as necessary. Use these endpoints to add and remove admins from the lsit of settlement admins.""", }, "settlement_notes_management": { "name": "Settlement notes", "desc": """Much like survivors, settlements can have notes appended to (or removed from them). These are stored with a creation timestamp for easy representation in chronological or reverse chron order. """, }, # # survivor management # "survivor_management": { "name": "Survivor management", "desc": ( "<p>Much like settlement management routes, survivor management " "routes require the Authorization header and follow the " "survivor / operation / OID convention, e.g. " "<code>/survivor/add_note/5f2c78ae84d8860d89594fa8</code></p>" "<p>For most of the endpoints here, in any JSON you <b>POST</b>, " "you can include the the <code>serialize_on_response</code> key " "with a Boolean 'true' value:</p>" """<pre><code>{ serialize_on_response: true, whatever: other_stuff, ... }</code></pre>""" "<p>This will cause the route to return a serialized " "representation of the survivor that is similar to what you would " "get from the main <code>/survivor/get/&lt;survivor_id&gt; </code> " "route, potentially allowing you to save some time and/or make " "fewer calls to the API.</p>" "<p>These routes are private and require authentication.</p>" ), }, "survivor_sheet":{ "name": "Survivor Sheet", "desc": ( "Endpoints documented here are allow a survivor's 'sheet' to " "be managed." ), }, "survivor_gear_management":{ "name": "Survivor gear", "desc": ( "The API supports a basic set of methods for tracking " "survivor gear. Typically this involves using gear handles (see " "above) and adding them to lists or dictionaries on the survivor " "record." ), }, "survivor_notes_management":{ "name": "Survivor notes", "desc": ( "Starting with the 1.14.92 release of the API survivor notes " "are enhanced to allow for annotation (e.g. pinning, colors, " "etc.) and an improved level of detail over their previous " "functionality." ), }, "survivor_admin":{ "name": "Survivor administration", "desc": ( "In order to help facilitate 'quality of life' type features, " "the API supports a handful of endpoints that allow users to " "manager survivors by tagging them and setting various " "non-game-related attributes that can be used for sorting, etc." ), }, "survivor_relationships":{ "name": "Survivor relationships", "desc": ( "For purposes of tracking certain types of game assets as well " "as non-game 'meta' type data, the API supports a couple of " "endpoints that allow survivors to be linked, typically by adding " "each other's OIDs to their own records." ), }, }
sections = {'public': {'name': 'Public Routes', 'desc': '<p>These routes <b>DO NOT</b> require user authentication (though some of them\nrequire a valid API key to use).</p>\n<p> When building an application, use these routes to construct\ndashboard type views and to look up game asset data that does not belong to any\nuser, such as Fighting Arts, Gear cards, etc.</p>'}, 'private': {'name': 'Private Routes', 'desc': "<p>Private routes require an Authorization header including a JWT token.</p>\n<p>(See the documentation above for more info on how to <b>POST</b> user\ncredentials to the <code>/login</code> route to get a token.)</p>\n<p>Generally speaking, when you access any private route, you want your headers\nto look something like this:</p>\n<code>\n{\n 'content-type': 'application/json',\n 'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6...'\n}\n</code>\n<p>Finally, keep in mind that tokens are extremely short-lived, so you should be\nprepared to refresh them frequently. See the section below on 'Authorization\n Token Management' for more info on checking/refreshing tokens.</p>\n<p><b>Important!</b> In order to support the CORS pre-flight checks that most\n browsers are going to auto-magically perform before <b>POST</b>ing to one of\nthese routes, <u>all private routes supported by the KD:M API also support the\n<code>OPTIONS</code> method</u>.</p>"}, 'user_creation_and_auth': {'name': 'User creation and auth', 'desc': 'These public routes are how you want to create new users and authenticate existing ones.'}, 'password_reset': {'name': 'Password reset', 'desc': 'Use these two routes to build a password reset mechanism.'}, 'user_collection_management': {'name': 'User collection management', 'desc': "The endpoints defined below are used to manage the User's IRL collection of game assets, e.g. expansions, etc."}, 'ui_ux_helpers': {'name': 'UI/UX Helpers', 'desc': 'These routes are intended to help with user experience by rapidly returning basic asset sets.'}, 'dashboard': {'name': 'Dashboard', 'desc': 'The public endpoints here are meant to be used to create a dashboard or landing page type of view for users when they first sign in.'}, 'game_asset_lookups': {'name': 'Game asset lookup routes', 'desc': '<p>Use these endpoints to get information about game assets, e.g. monsters, gear, expansions, etc.</p><p>Each of these routes works essentially the same way. You can <b>POST</b> a query to one and retireve data about a single asset if you know its name or handle -OR- you can <b>GET</b> the route to get a dictionary of all assets.</p><p><b>PROTIP:</b> Use the <a href="/game_asset">/game_asset</a> endpoint to get a list of available game asset types -OR- hit the <a href="/kingdom_death">/kingdom_death</a> endpoint to dump a JSON representation of every game asset that the API tracks.</p>'}, 'authorization_token_management': {'name': 'Authorization token management', 'desc': "Once you've got an authorization token, you can work with it using these routes.\nMost failures from these routes are reported back as 401's, since they concern\nauthorization."}, 'administrative_views_and_data': {'name': 'Administrative views and data', 'desc': "Administrative views and data:</b> If your user has the 'admin' attribute, i.e. they are an administrator of the API server, the user can hit these routes to retrieve data about application usage, etc. These endpoints are used primarily to construct the administrator's dashboard."}, 'user_management': {'name': 'User management', 'desc': 'All routes for working directly with a user follow a <code>/user/&lt;action&gt;/&lt;user_id&gt;</code> convention. These routes are private and require authentication.\n '}, 'user_attribute_management': {'name': 'User attribute management (and updates)', 'desc': 'These endpoints are used to update and modify individual webapp users.'}, 'user_collection_management': {'name': 'User Collection management', 'desc': "The endpoints defined in this section are used to manage the User's IRL collection of game assets, e.g. Expansions, etc."}, 'create_assets': {'name': 'Create assets', 'desc': 'To create new assets (user, survivor, settlement), <b>POST</b> JSON containing appropriate params to the /new/&lt;asset_type&gt; route. Invalid or unrecognized params will be ignored!'}, 'settlement_management': {'name': 'Settlement management', 'desc': '<p>All routes for working with a settlement follow the normal convention in the\nKDM API for working with individual user assets, i.e.\n<code>/settlement/&lt;action&gt;/&lt;settlement_id&gt;</code></p>\n<p>Many operations below require asset handles.</p>\n<p>Asset handles may be found in the settlement\'s <code>game_assets</code>\nelement, which contains dictionaries and lists of assets that are\navailable to the settlement based on its campaign, expansions, etc.</p>\n<p>Typical settlement JSON looks like this:</p>\n<pre><code>\n {\n "user_assets": {...},\n "meta": {...},\n "sheet": {...},\n "game_assets": {\n "milestones_options": {...},\n "campaign": {...},\n "weapon_specializations": {...},\n "locations": {...},\n "innovations": {...},\n "principles_options": {...},\n "causes_of_death": {...},\n "quarry_options": {...},\n "nemesis_options": {...},\n "eligible_parents": {...},\n ...\n },\n }\n</code></pre>\n<p><b>Important!</b> As indicated elsewhere in this documentation,\nasset handles will never change. Asset names are subject to change,\nand, while name-based lookup methods are supported by various routes,\nusing names instead of handles is not recommended.</p>\n '}, 'settlement_set_attribute': {'name': 'Attribtue set', 'desc': 'Use the routes below to set a settlement\'s individual attributes, e.g. Name, Survival Limit, etc. to a specific value. <p>Attributes such as Survival Limit, Population and Death Count are more or less automatically managed by the API, but you may use the routes in this section to set them directly. Be advised that the API calculates "base" values for a number of numerical attributes and will typically set attributes to that base if you attempt to set them to a lower value.</p>'}, 'settlement_update_attribute': {'name': 'Attribute update', 'desc': 'Use the routes here to update and/or toggle individual settlement attributes. <p>Updating is different from setting, in that the update-type routes will add the value you <b>POST</b> to the current value, rather than just overwriting the value in the way a set-type route would.</p>'}, 'settlement_component_gets': {'name': 'Component GET routes (sub-GETs)', 'desc': 'The two heaviest elements of a settlement, from the perspectives of both the raw size of the JSON and how long it takes for the API server to put it together, are the event log and the settlement storage. These two endpoints allow you to get them separately, e.g. behind-the-scenes, on demand or only if necessary, etc.'}, 'settlement_manage_survivors': {'name': 'Bulk survivor management', 'desc': 'These routes allow you to manage groups or types of survivors within the settlement.'}, 'settlement_manage_expansions': {'name': 'Expansion content', 'desc': 'The endpoints here all you to <b>POST</b> lists of expansion content handles to update the expansion content used in the settlement.'}, 'settlement_manage_monsters': {'name': 'Monsters', 'desc': "These routes all allow you to do things with the settlement's various lists of monsters and monster-related attributes."}, 'settlement_manage_principles': {'name': 'Principles and Milestones', 'desc': 'Routes for setting and unsetting princples and milestones.'}, 'settlement_manage_locations': {'name': 'Locations', 'desc': 'Routes for adding, removing and working with settlement locations.'}, 'settlement_manage_innovations': {'name': 'Innovations', 'desc': 'Routes for adding, removing and working with settlement innovations.'}, 'settlement_manage_timeline': {'name': 'Timeline', 'desc': '<a id="timelineDataModel"></a> use these routes to manage the\nsettlement\'s timeline.\n<p> Make sure you you are familiar with the data model for the timeline\n(documented in the paragraphs below) before using these routes.</p>\n<p>At the highest level, every settlement\'s <code>sheet.timeline</code>\nelement is a list of hashes, where each hash represents an individual\nlantern year.</p>\n<p>Within each Lantern Year, the keys\'s values are lists of events, except\nfor the <code>year</code> key, which is special because it is the only\nkey in the Lantern Year hash whose value is an integer, instead of a list.</p>\n<p>The other keys in the hash, the ones whose values are lists of events,\nhave to be one of the following:\n<ul class="embedded">\n <li><code>settlement_event</code></li>\n <li><code>story_event</code></li>\n <li><code>special_showdown</code></li>\n <li><code>nemesis_encounter</code></li>\n <li><code>showdown_event</code></li>\n</ul>\nIndividual events are themselves hashes. In the 1.2 revision of the\ntimeline data model, individual event hashes have a single key/value\npair: they either have a <code>handle</code> key, whose value is an\nevent handle (e.g. from the settlement JSON\'s <code>game_assets.events\n</code> element) or a a <code>name</code> key, whose value is an\narbitrary string.</p>\n<p>In generic terms, here is how a settlement\'s <code>\nsheet.timeline</code> JSON is structured:</p>\n <pre><code>\n[\n {\n year: 0,\n showdown_event: [{name: \'name\'}],\n story_event: [{handle: \'handle\'}]\n },\n {year: 1, special_showdown: [{name: \'name\'}], settlement_event: [{handle: \'handle\'}]}\n {year: 2, }\n {year: 3, nemesis_encounter: [{name: \'name\'}, {name: \'name\'}], story_event: [{name: \'name\'}, {handle: \'handle\'}]}\n ...\n]</code></pre>\n<p><b>Important!</b> Individual Lantern Year hashes need not\ncontain any event list hashes, but they <u>absolutely must contain a\nhash with the <code>year</code> key/value pair.</u></p>\n<p>Any attempt to <b>POST</b> a Lantern Year without this \'magic\'\nkey/value pair, will cause the API to throw an error.</p>\n<p>Also, for now, the API does not enforce any normalization or business logic\nfor the timeline and individual event lists may contain as many\nevent hashes as necessary.</p>\n<p>Finally, the API should <b>always</b> render the list of Lantern\nYear hashes (i.e. <code>sheet.timeline</code> in "chronological"\norder. If you get them back out of order, open a ticket.</p>\n '}, 'settlement_admin_permissions': {'name': 'Settlement administrators', 'desc': 'Each settlement has at least one administrator who serves as\n the primary owner/admin maintainer of the settlement. Each settlement\n can have as many administrators as necessary. Use these endpoints to\n add and remove admins from the lsit of settlement admins.'}, 'settlement_notes_management': {'name': 'Settlement notes', 'desc': 'Much like survivors, settlements can have notes appended to\n (or removed from them). These are stored with a creation timestamp for\n easy representation in chronological or reverse chron order. '}, 'survivor_management': {'name': 'Survivor management', 'desc': "<p>Much like settlement management routes, survivor management routes require the Authorization header and follow the survivor / operation / OID convention, e.g. <code>/survivor/add_note/5f2c78ae84d8860d89594fa8</code></p><p>For most of the endpoints here, in any JSON you <b>POST</b>, you can include the the <code>serialize_on_response</code> key with a Boolean 'true' value:</p><pre><code>{\n serialize_on_response: true,\n whatever: other_stuff,\n ...\n}</code></pre><p>This will cause the route to return a serialized representation of the survivor that is similar to what you would get from the main <code>/survivor/get/&lt;survivor_id&gt; </code> route, potentially allowing you to save some time and/or make fewer calls to the API.</p><p>These routes are private and require authentication.</p>"}, 'survivor_sheet': {'name': 'Survivor Sheet', 'desc': "Endpoints documented here are allow a survivor's 'sheet' to be managed."}, 'survivor_gear_management': {'name': 'Survivor gear', 'desc': 'The API supports a basic set of methods for tracking survivor gear. Typically this involves using gear handles (see above) and adding them to lists or dictionaries on the survivor record.'}, 'survivor_notes_management': {'name': 'Survivor notes', 'desc': 'Starting with the 1.14.92 release of the API survivor notes are enhanced to allow for annotation (e.g. pinning, colors, etc.) and an improved level of detail over their previous functionality.'}, 'survivor_admin': {'name': 'Survivor administration', 'desc': "In order to help facilitate 'quality of life' type features, the API supports a handful of endpoints that allow users to manager survivors by tagging them and setting various non-game-related attributes that can be used for sorting, etc."}, 'survivor_relationships': {'name': 'Survivor relationships', 'desc': "For purposes of tracking certain types of game assets as well as non-game 'meta' type data, the API supports a couple of endpoints that allow survivors to be linked, typically by adding each other's OIDs to their own records."}}
def is_prime(n): if n % 2 == 0: return n == 2 d = 3 while d * d <= n and n % d != 0: d += 2 return d * d > n def main(): n = int(input("Input the number from 0 to 1000: ")) print(is_prime(n)) if __name__ == '__main__': main()
def is_prime(n): if n % 2 == 0: return n == 2 d = 3 while d * d <= n and n % d != 0: d += 2 return d * d > n def main(): n = int(input('Input the number from 0 to 1000: ')) print(is_prime(n)) if __name__ == '__main__': main()
class Node: def __init__(self, value = 0): self.value = value self.next = None def findList(first, second): if not first and not second: return True if not first or not second: return False ptr1 = first ptr2 = second while ptr2: ptr2 = second while ptr1: if not ptr2: return False elif ptr1.value == ptr2.value: ptr1 = ptr1.next ptr2 = ptr2.next else: break if not ptr1: return True ptr1 = first second = second.next return False node_a = Node(1) node_a.next = Node(2) node_a.next.next = Node(3) node_a.next.next.next = Node(4) node_b = Node(1) node_b.next = Node(2) node_b.next.next = Node(1) node_b.next.next.next = Node(2) node_b.next.next.next.next = Node(3) node_b.next.next.next.next.next = Node(4) if findList(node_a, node_b): print("LIST FOUND") else: print("LIST NOT FOUND")
class Node: def __init__(self, value=0): self.value = value self.next = None def find_list(first, second): if not first and (not second): return True if not first or not second: return False ptr1 = first ptr2 = second while ptr2: ptr2 = second while ptr1: if not ptr2: return False elif ptr1.value == ptr2.value: ptr1 = ptr1.next ptr2 = ptr2.next else: break if not ptr1: return True ptr1 = first second = second.next return False node_a = node(1) node_a.next = node(2) node_a.next.next = node(3) node_a.next.next.next = node(4) node_b = node(1) node_b.next = node(2) node_b.next.next = node(1) node_b.next.next.next = node(2) node_b.next.next.next.next = node(3) node_b.next.next.next.next.next = node(4) if find_list(node_a, node_b): print('LIST FOUND') else: print('LIST NOT FOUND')
def sequencia(): s = 0 for i in range(1, 101): s += 1/i print(f'{s:.2f}') sequencia()
def sequencia(): s = 0 for i in range(1, 101): s += 1 / i print(f'{s:.2f}') sequencia()
def main_menu(): print("Please select an option from the following:") print(" [1] Customer") #add to db print(" [2] Order")# add to db print(" [3] Complete Order") print(" [4] Cancel Order") print(" [5] Exit") def sign_up_menu(): print("Please select an option from the following:") print(" [1] Scan Code") #add to db print(" [2] return to previous menu")# add to db
def main_menu(): print('Please select an option from the following:') print(' [1] Customer') print(' [2] Order') print(' [3] Complete Order') print(' [4] Cancel Order') print(' [5] Exit') def sign_up_menu(): print('Please select an option from the following:') print(' [1] Scan Code') print(' [2] return to previous menu')
x = float(input('x = ')) if x > 1: y = 3 * x - 5 elif x >= -1: y = x + 2 else: y = 5 * x + 3 print('f(%.2f) = %.2f' % (x, y)) print(range(10))
x = float(input('x = ')) if x > 1: y = 3 * x - 5 elif x >= -1: y = x + 2 else: y = 5 * x + 3 print('f(%.2f) = %.2f' % (x, y)) print(range(10))
def selectionsort(arr): N = len(arr) for i in range(N): minimum = i for j in range(1, N): if arr[j] < arr[minimum]: minimum = j arr[minimum], arr[i] = arr[i], arr[minimum] return arr if __name__ == "__main__": arr = [0, 4, 5, 6, 7, 8, 2, 1, 5, 3, 9] print(selectionsort(arr))
def selectionsort(arr): n = len(arr) for i in range(N): minimum = i for j in range(1, N): if arr[j] < arr[minimum]: minimum = j (arr[minimum], arr[i]) = (arr[i], arr[minimum]) return arr if __name__ == '__main__': arr = [0, 4, 5, 6, 7, 8, 2, 1, 5, 3, 9] print(selectionsort(arr))
class Person: def __init__(self, name, age): self.x__name = name self.age = age def info(self): return f'Name: {self.x__name}, Age: {self.age}' def __generate_key(self, key): if key.startswith('x__'): return f'x__Person{key}' return key def __setattr__(self, key, value): super().__setattr__(self.__generate_key(key), value) def __getattr__(self, item): return super().__getattribute__(self.__generate_key(item)) p = Person('Gosho', 11) print(p.__dict__) print(p.info()) # # print(hasattr(p, 'name')) # print(hasattr(p, 'name2')) # # while True: # attr_name = input() # attr = getattr(p, attr_name, -7) # if hasattr(attr, '__call__'): # print(attr()) # else: # print(attr)
class Person: def __init__(self, name, age): self.x__name = name self.age = age def info(self): return f'Name: {self.x__name}, Age: {self.age}' def __generate_key(self, key): if key.startswith('x__'): return f'x__Person{key}' return key def __setattr__(self, key, value): super().__setattr__(self.__generate_key(key), value) def __getattr__(self, item): return super().__getattribute__(self.__generate_key(item)) p = person('Gosho', 11) print(p.__dict__) print(p.info())
class Solution: def shiftingLetters(self, S: str, shifts: List[int]) -> str: """String. Running time: O(n) where n == len(shifts). """ orda = ord('a') n = len(shifts) suf = shifts suf[-1] %= 26 for i in range(n - 2, -1, -1): suf[i] = (suf[i] + suf[i+1]) % 26 res = [''] * n for i in range(n): res[i] = chr(orda + (ord(S[i]) - orda + suf[i]) % 26) return ''.join(res)
class Solution: def shifting_letters(self, S: str, shifts: List[int]) -> str: """String. Running time: O(n) where n == len(shifts). """ orda = ord('a') n = len(shifts) suf = shifts suf[-1] %= 26 for i in range(n - 2, -1, -1): suf[i] = (suf[i] + suf[i + 1]) % 26 res = [''] * n for i in range(n): res[i] = chr(orda + (ord(S[i]) - orda + suf[i]) % 26) return ''.join(res)
useragents = [ "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2224.3 Safari/537.36", "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36", "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36", "Mozilla/5.0 (Windows NT 4.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36", "Mozilla/5.0 (X11; OpenBSD i386) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2117.157 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1866.237 Safari/537.36", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/4E423F", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.517 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1664.3 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1664.3 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1623.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36", "Mozilla/5.0 (X11; CrOS i686 4319.74.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1500.55 Safari/537.36", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.90 Safari/537.36", "Mozilla/5.0 (X11; NetBSD) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36", "Mozilla/5.0 (X11; CrOS i686 3912.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.60 Safari/537.17", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15", "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.14 (KHTML, like Gecko) Chrome/24.0.1292.0 Safari/537.14" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1", "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0", "Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20130401 Firefox/31.0", "Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/29.0", "Mozilla/5.0 (X11; OpenBSD amd64; rv:28.0) Gecko/20100101 Firefox/28.0", "Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0", "Mozilla/5.0 (Windows NT 6.1; rv:27.3) Gecko/20130101 Firefox/27.3", "Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:27.0) Gecko/20121011 Firefox/27.0", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0", "Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0", "Mozilla/5.0 (Windows NT 6.2; rv:22.0) Gecko/20130405 Firefox/23.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130406 Firefox/23.0", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:23.0) Gecko/20131011 Firefox/23.0", "Mozilla/5.0 (Windows NT 6.2; rv:22.0) Gecko/20130405 Firefox/22.0", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:22.0) Gecko/20130328 Firefox/22.0", "Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130405 Firefox/22.0", "Mozilla/5.0 (Microsoft Windows NT 6.2.9200.0); rv:22.0) Gecko/20130405 Firefox/22.0", "Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1", "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1", "Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:21.0.0) Gecko/20121011 Firefox/21.0.0", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20130331 Firefox/21.0", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130514 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.2; rv:21.0) Gecko/20130326 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130401 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130330 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130328 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20130401 Firefox/21.0", "Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20130331 Firefox/21.0", "Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Windows NT 5.0; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0", "Mozilla/5.0 (Windows NT 6.2; Win64; x64;) Gecko/20100101 Firefox/20.0", "Mozilla/5.0 (Windows x86; rv:19.0) Gecko/20100101 Firefox/19.0", "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20100101 Firefox/19.0", "Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/18.0.1", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0", "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0.6" ]
useragents = ['Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.1 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2227.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2224.3 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.93 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 4.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.67 Safari/537.36', 'Mozilla/5.0 (X11; OpenBSD i386) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.3319.102 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2117.157 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1866.237 Safari/537.36', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/4E423F', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10', 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.517 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1664.3 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1664.3 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1623.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.17 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36', 'Mozilla/5.0 (X11; CrOS i686 4319.74.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.57 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.2 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1467.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1464.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1500.55 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.90 Safari/537.36', 'Mozilla/5.0 (X11; NetBSD) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', 'Mozilla/5.0 (X11; CrOS i686 3912.101.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.60 Safari/537.17', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1309.0 Safari/537.17', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.15 (KHTML, like Gecko) Chrome/24.0.1295.0 Safari/537.15', 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.14 (KHTML, like Gecko) Chrome/24.0.1292.0 Safari/537.14Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1', 'Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0', 'Mozilla/5.0 (X11; Linux i586; rv:31.0) Gecko/20100101 Firefox/31.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20130401 Firefox/31.0', 'Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/29.0', 'Mozilla/5.0 (X11; OpenBSD amd64; rv:28.0) Gecko/20100101 Firefox/28.0', 'Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0', 'Mozilla/5.0 (Windows NT 6.1; rv:27.3) Gecko/20130101 Firefox/27.3', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:27.0) Gecko/20121011 Firefox/27.0', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0', 'Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0', 'Mozilla/5.0 (Windows NT 6.2; rv:22.0) Gecko/20130405 Firefox/23.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130406 Firefox/23.0', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:23.0) Gecko/20131011 Firefox/23.0', 'Mozilla/5.0 (Windows NT 6.2; rv:22.0) Gecko/20130405 Firefox/22.0', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:22.0) Gecko/20130328 Firefox/22.0', 'Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130405 Firefox/22.0', 'Mozilla/5.0 (Microsoft Windows NT 6.2.9200.0); rv:22.0) Gecko/20130405 Firefox/22.0', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:21.0.0) Gecko/20121011 Firefox/21.0.0', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20130331 Firefox/21.0', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (X11; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130514 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.2; rv:21.0) Gecko/20130326 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130401 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130331 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20130330 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130401 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20130328 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20130401 Firefox/21.0', 'Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20130331 Firefox/21.0', 'Mozilla/5.0 (Windows NT 5.1; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Windows NT 5.0; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0', 'Mozilla/5.0 (Windows NT 6.2; Win64; x64;) Gecko/20100101 Firefox/20.0', 'Mozilla/5.0 (Windows x86; rv:19.0) Gecko/20100101 Firefox/19.0', 'Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20100101 Firefox/19.0', 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/18.0.1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0.6']
def exists(env): return True def generate(env): env.Replace(MODE='test')
def exists(env): return True def generate(env): env.Replace(MODE='test')
class Solution: def XXX(self, x: int) -> int: s = str(x) s = "-" + s.replace("-","")[::-1] if "-" in s else s[::-1] return (int(s) if int(s)<2**31-1 and int(s)>-2**31 else 0)
class Solution: def xxx(self, x: int) -> int: s = str(x) s = '-' + s.replace('-', '')[::-1] if '-' in s else s[::-1] return int(s) if int(s) < 2 ** 31 - 1 and int(s) > -2 ** 31 else 0
# invert a binary tree def reverse(root): if not root: return root.left, root.right = root.right, root.left if root.left: reverse(root.left) if root.right: reverse(root.right)
def reverse(root): if not root: return (root.left, root.right) = (root.right, root.left) if root.left: reverse(root.left) if root.right: reverse(root.right)
for _ in range(int(input())): n = int(input()) l = list(map(int, input().split(' '))) ans = 0 for i in range(n): ans += (i + 1) * (n - i) if l[i] == 0: ans += (i + 1) * (n - i) print(ans)
for _ in range(int(input())): n = int(input()) l = list(map(int, input().split(' '))) ans = 0 for i in range(n): ans += (i + 1) * (n - i) if l[i] == 0: ans += (i + 1) * (n - i) print(ans)
#-*- coding:utf-8 -*- age = [3, 2, 30, 1, 16, 18, 19, 20, 22, 25] name = ['lizi', 'liudehua', 'linjunjie', 'zhoujielun', 'zhangsan', 'bigmom', 'kaiduo', 'luffe'] print(age) print(sorted(age)) print(age) age.sort() print(age) age.append(33) print(age) age.insert(2, 65) print(age) age.pop() print(age) _del = age.pop() print(_del) print(age) del age[0:2] print(age) age.remove(22) print(age) print(sorted(name)) print(name) name.sort() print(name) name.sort(reverse=False) print(age) name.reverse() print(name)
age = [3, 2, 30, 1, 16, 18, 19, 20, 22, 25] name = ['lizi', 'liudehua', 'linjunjie', 'zhoujielun', 'zhangsan', 'bigmom', 'kaiduo', 'luffe'] print(age) print(sorted(age)) print(age) age.sort() print(age) age.append(33) print(age) age.insert(2, 65) print(age) age.pop() print(age) _del = age.pop() print(_del) print(age) del age[0:2] print(age) age.remove(22) print(age) print(sorted(name)) print(name) name.sort() print(name) name.sort(reverse=False) print(age) name.reverse() print(name)
class DatabaseService: def __init__(self): #TODO: mongo pass
class Databaseservice: def __init__(self): pass
class OddNumberException(Exception): def __init__(self,*args): self.args = args class EvenNumberException(Exception): def __init__(self,*args): self.args = args try: n = int(input("Enter a Number to check whether he number is odd or even : ")) if n % 2 == 0: raise EvenNumberException("%d is a Even Number!!."%n) else: raise OddNumberException("%d is a Odd Number!!."%n) except EvenNumberException as r: print(r) except OddNumberException as r: print(r)
class Oddnumberexception(Exception): def __init__(self, *args): self.args = args class Evennumberexception(Exception): def __init__(self, *args): self.args = args try: n = int(input('Enter a Number to check whether he number is odd or even : ')) if n % 2 == 0: raise even_number_exception('%d is a Even Number!!.' % n) else: raise odd_number_exception('%d is a Odd Number!!.' % n) except EvenNumberException as r: print(r) except OddNumberException as r: print(r)
EXTERN_START = "\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n" EXTERN_STOP = "#ifdef __cplusplus\n}\n#endif\n\n" EXTERN_FIND1 = "extern \"C\" {\n" EXTERN_FIND2 = " *****************************************************************************/\n" # noqa def add_extern_c(source_file, source): """ Add 'Extern C' to a given source_file. """ # Patches only work with newline versions of the file. if "\r\n" in source: raise Exception( "You need to convert all Gecko SDK sources to Linux file endings " "first (use something like dos2unix).") # Don't add it if file already contains it. if EXTERN_FIND1 in source: return source # Dirty hack by looking for a string, but it works. offset = source.index(EXTERN_FIND2) + len(EXTERN_FIND2) part_one = source[:offset] part_two = source[offset:] return part_one + EXTERN_START + part_two + EXTERN_STOP def fix_arm_math(source_file, source): """ Add conditional for ARM_MATH_CM definition. It is already defined by the Cortex definitions of RIOT-OS. """ return source.replace( "#define ARM_MATH_CM0PLUS", "#ifndef ARM_MATH_CM0PLUS\n#define ARM_MATH_CM0PLUS\n#endif")
extern_start = '\n#ifdef __cplusplus\nextern "C" {\n#endif\n\n' extern_stop = '#ifdef __cplusplus\n}\n#endif\n\n' extern_find1 = 'extern "C" {\n' extern_find2 = ' *****************************************************************************/\n' def add_extern_c(source_file, source): """ Add 'Extern C' to a given source_file. """ if '\r\n' in source: raise exception('You need to convert all Gecko SDK sources to Linux file endings first (use something like dos2unix).') if EXTERN_FIND1 in source: return source offset = source.index(EXTERN_FIND2) + len(EXTERN_FIND2) part_one = source[:offset] part_two = source[offset:] return part_one + EXTERN_START + part_two + EXTERN_STOP def fix_arm_math(source_file, source): """ Add conditional for ARM_MATH_CM definition. It is already defined by the Cortex definitions of RIOT-OS. """ return source.replace('#define ARM_MATH_CM0PLUS', '#ifndef ARM_MATH_CM0PLUS\n#define ARM_MATH_CM0PLUS\n#endif')
""" This is boin default hyper parameters. """ model_name = 'BoinAutoEncoder' lr = 0.001 max_view_num = 500 view_interval = 100 class encoder_hparams: model_name = 'BoinEncoder' nhid = 512 nlayers = 2 class decoder_hparams: model_name = 'BoinDecoder' nhid = 512 nlayers = 2
""" This is boin default hyper parameters. """ model_name = 'BoinAutoEncoder' lr = 0.001 max_view_num = 500 view_interval = 100 class Encoder_Hparams: model_name = 'BoinEncoder' nhid = 512 nlayers = 2 class Decoder_Hparams: model_name = 'BoinDecoder' nhid = 512 nlayers = 2
""" Matrix exercise """ class Matrix: """ Matrix class """ def __init__(self, matrix_string): """ Create a matrix """ self.rows = [] self.columns = [[] for i in range(len(matrix_string.split("\n")[0].split()))] for line in matrix_string.split("\n"): items = list(map(int, line.split(" "))) self.rows.append(items) for index, value in enumerate(items): self.columns[index].append(value) def row(self, index): """ Return a row by index """ return self.rows[index - 1] def column(self, index): """ Return a column by index """ return self.columns[index - 1]
""" Matrix exercise """ class Matrix: """ Matrix class """ def __init__(self, matrix_string): """ Create a matrix """ self.rows = [] self.columns = [[] for i in range(len(matrix_string.split('\n')[0].split()))] for line in matrix_string.split('\n'): items = list(map(int, line.split(' '))) self.rows.append(items) for (index, value) in enumerate(items): self.columns[index].append(value) def row(self, index): """ Return a row by index """ return self.rows[index - 1] def column(self, index): """ Return a column by index """ return self.columns[index - 1]
def filter_db_queryset_by_id(db_queryset, rqst_id, list_of_ids): if isinstance(rqst_id, str) and rqst_id.lower() == "all": db_queryset = db_queryset.order_by("id") else: db_queryset = db_queryset.filter(id__in=list_of_ids).order_by("id") return db_queryset
def filter_db_queryset_by_id(db_queryset, rqst_id, list_of_ids): if isinstance(rqst_id, str) and rqst_id.lower() == 'all': db_queryset = db_queryset.order_by('id') else: db_queryset = db_queryset.filter(id__in=list_of_ids).order_by('id') return db_queryset
""" w04 team assignment : Date.py day : int month : int year : int __init__() prompt() display() """ class Date: """ the date class """ def __init__(self, date_day=1, date_month=1, date_year=2000): # set up the class variables and assign default values self.day = date_day self.month = date_month self.year = date_year def prompt(self): """ ask for a day, month, and year value """ self.day = int(input('Day: ')) # reset month value, if the user doesn't give a vaild month, then ask again self.month = 0 while self.month < 1 or self.month > 12: self.month = int(input('Month: ')) # reset year value, if the user doesn't give a vaild year, assk again self.year = 1999 while year < 2000: self.year = int(input('Year: ')) def display(self): """ print out the date in mm/dd/yyyy format """ # remove the :02d to remove leading zeroes, for example 05/09/2021 --> 5/9/2021 print(f'{self.month:02d}/{self.day:02d}/{self.year}')
""" w04 team assignment : Date.py day : int month : int year : int __init__() prompt() display() """ class Date: """ the date class """ def __init__(self, date_day=1, date_month=1, date_year=2000): self.day = date_day self.month = date_month self.year = date_year def prompt(self): """ ask for a day, month, and year value """ self.day = int(input('Day: ')) self.month = 0 while self.month < 1 or self.month > 12: self.month = int(input('Month: ')) self.year = 1999 while year < 2000: self.year = int(input('Year: ')) def display(self): """ print out the date in mm/dd/yyyy format """ print(f'{self.month:02d}/{self.day:02d}/{self.year}')
""" 1. Create a inheritance tree with the following structure 1. BaseCharacter 1. Non-Playable Character(NPC) 1. Friendly 2. Enemy 2. Playable Character(PC) 1. Archer 2. Green Lantern 3. Butcher 2. Add 'printName' function All characters have 3. Add 'self.attackDamage = 5' attr for all enemies 4. Create weapon class within same file 5. Have all PC characters start with a weapon """ class BaseCharacter(object): def printName(self): print (self.name) class NonPlayableCharacter(BaseCharacter): pass class NPCFriendly(NonPlayableCharacter): pass class NPCEnemy(NonPlayableCharacter): def __init__(self): self.attackDamage = 5 class Weapon(object): pass class PlayableCharacter(BaseCharacter): def __init__(self): self.weapon = Weapon() class PCArcher(PlayableCharacter): pass class PCGreenLantern(PlayableCharacter): pass class PCButcher(PlayableCharacter): pass if __name__ == '__main__': enemy = NPCEnemy() print (enemy.attackDamage) butcher = PCButcher() print (butcher.weapon)
""" 1. Create a inheritance tree with the following structure 1. BaseCharacter 1. Non-Playable Character(NPC) 1. Friendly 2. Enemy 2. Playable Character(PC) 1. Archer 2. Green Lantern 3. Butcher 2. Add 'printName' function All characters have 3. Add 'self.attackDamage = 5' attr for all enemies 4. Create weapon class within same file 5. Have all PC characters start with a weapon """ class Basecharacter(object): def print_name(self): print(self.name) class Nonplayablecharacter(BaseCharacter): pass class Npcfriendly(NonPlayableCharacter): pass class Npcenemy(NonPlayableCharacter): def __init__(self): self.attackDamage = 5 class Weapon(object): pass class Playablecharacter(BaseCharacter): def __init__(self): self.weapon = weapon() class Pcarcher(PlayableCharacter): pass class Pcgreenlantern(PlayableCharacter): pass class Pcbutcher(PlayableCharacter): pass if __name__ == '__main__': enemy = npc_enemy() print(enemy.attackDamage) butcher = pc_butcher() print(butcher.weapon)
class Dij: # matrix of roads road = [[]] # infinity infinit = 9999 # array of costs D = [] # array of selected nodes S = [] # array of fathers T = [] # number of nodes nodes = -1 # output output = [] def __init__(self, start): self.readGraph() self.r = start r = self.r self.S[r] = 1 for j in range(1, self.nodes + 1): self.D[j] = self.road[r][j] for j in range(1, self.nodes + 1): if self.D[j]: self.T[j] = r for i in range(1, self.nodes): min = 9999 for j in range(1, self.nodes + 1): if self.S[j] == 0: if self.D[j] < min: min = self.D[j] pos = j self.S[pos] = 1 for j in range(1, self.nodes + 1): if self.S[j] == 0: if self.D[j] > self.D[pos] + self.road[pos][j]: self.D[j] = self.D[pos] + self.road[pos][j] self.T[j] = pos f = open('road.out', 'w') for k in range(1, self.nodes + 1): if k is not r: if self.T[k]: print "Road from ", r, " to ", k self.draw(k) print self.output f.write("Road from {} to {} => {}".format(r, k, str(self.output))) f.write("\n") self.output = [] else: print "There is not exists road" f.close() def draw(self, node): if self.T[node]: self.draw(self.T[node]) print node self.output.append(node) def readGraph(self): counter = 0 input = [] with open('example.txt', 'r') as file: for a_line in file: counter += 1 if counter == 1: number_of_nodes = int(a_line.rstrip()) else: input.append(a_line.rstrip()) size = len(input) self.nodes = number_of_nodes self.road = [[0 for i in range(0, number_of_nodes + 1)] for j in range(0, number_of_nodes + 1)] for i in range(0, self.nodes + 1): for j in range(0, self.nodes + 1): if i == j: self.road[i][j] = 0 else: self.road[i][j] = self.infinit for i in range(0, size): component = input[i] node1 = int(component[0]) node2 = int(component[2]) cost = int(component[4]) self.road[node1][node2] = cost # init self.D = [0] * (number_of_nodes + 1) self.S = [0] * (number_of_nodes + 1) self.T = [0] * (number_of_nodes + 1) ob = Dij(2)
class Dij: road = [[]] infinit = 9999 d = [] s = [] t = [] nodes = -1 output = [] def __init__(self, start): self.readGraph() self.r = start r = self.r self.S[r] = 1 for j in range(1, self.nodes + 1): self.D[j] = self.road[r][j] for j in range(1, self.nodes + 1): if self.D[j]: self.T[j] = r for i in range(1, self.nodes): min = 9999 for j in range(1, self.nodes + 1): if self.S[j] == 0: if self.D[j] < min: min = self.D[j] pos = j self.S[pos] = 1 for j in range(1, self.nodes + 1): if self.S[j] == 0: if self.D[j] > self.D[pos] + self.road[pos][j]: self.D[j] = self.D[pos] + self.road[pos][j] self.T[j] = pos f = open('road.out', 'w') for k in range(1, self.nodes + 1): if k is not r: if self.T[k]: print ('Road from ', r, ' to ', k) self.draw(k) print self.output f.write('Road from {} to {} => {}'.format(r, k, str(self.output))) f.write('\n') self.output = [] else: print 'There is not exists road' f.close() def draw(self, node): if self.T[node]: self.draw(self.T[node]) print node self.output.append(node) def read_graph(self): counter = 0 input = [] with open('example.txt', 'r') as file: for a_line in file: counter += 1 if counter == 1: number_of_nodes = int(a_line.rstrip()) else: input.append(a_line.rstrip()) size = len(input) self.nodes = number_of_nodes self.road = [[0 for i in range(0, number_of_nodes + 1)] for j in range(0, number_of_nodes + 1)] for i in range(0, self.nodes + 1): for j in range(0, self.nodes + 1): if i == j: self.road[i][j] = 0 else: self.road[i][j] = self.infinit for i in range(0, size): component = input[i] node1 = int(component[0]) node2 = int(component[2]) cost = int(component[4]) self.road[node1][node2] = cost self.D = [0] * (number_of_nodes + 1) self.S = [0] * (number_of_nodes + 1) self.T = [0] * (number_of_nodes + 1) ob = dij(2)
"""Mappings. Mappings define how internal objects and their fields will be indexed. The provided record-v1.0.0.json file is an example of how to index records in Elasticsearch. """
"""Mappings. Mappings define how internal objects and their fields will be indexed. The provided record-v1.0.0.json file is an example of how to index records in Elasticsearch. """
n, k = (int(x) for x in input().split()) arr = [int(x) for x in input().split()] new_arr = list() i = 0 while i != n - k + 1: new_arr.append(max(arr[i:i+k])) i += 1 print(*new_arr)
(n, k) = (int(x) for x in input().split()) arr = [int(x) for x in input().split()] new_arr = list() i = 0 while i != n - k + 1: new_arr.append(max(arr[i:i + k])) i += 1 print(*new_arr)
# # PySNMP MIB module Nortel-Magellan-Passport-SoftwareMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-SoftwareMIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:18:50 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "ValueRangeConstraint") DisplayString, Unsigned32, RowStatus, StorageType = mibBuilder.importSymbols("Nortel-Magellan-Passport-StandardTextualConventionsMIB", "DisplayString", "Unsigned32", "RowStatus", "StorageType") AsciiStringIndex, Link, AsciiString, NonReplicated = mibBuilder.importSymbols("Nortel-Magellan-Passport-TextualConventionsMIB", "AsciiStringIndex", "Link", "AsciiString", "NonReplicated") components, passportMIBs = mibBuilder.importSymbols("Nortel-Magellan-Passport-UsefulDefinitionsMIB", "components", "passportMIBs") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") iso, ModuleIdentity, IpAddress, Unsigned32, ObjectIdentity, MibIdentifier, TimeTicks, NotificationType, Counter32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter64, Integer32, Gauge32, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "iso", "ModuleIdentity", "IpAddress", "Unsigned32", "ObjectIdentity", "MibIdentifier", "TimeTicks", "NotificationType", "Counter32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter64", "Integer32", "Gauge32", "Bits") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") softwareMIB = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17)) sw = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14)) swRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1), ) if mibBuilder.loadTexts: swRowStatusTable.setStatus('mandatory') swRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex")) if mibBuilder.loadTexts: swRowStatusEntry.setStatus('mandatory') swRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: swRowStatus.setStatus('mandatory') swComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swComponentName.setStatus('mandatory') swStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swStorageType.setStatus('mandatory') swIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: swIndex.setStatus('mandatory') swOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11), ) if mibBuilder.loadTexts: swOperTable.setStatus('mandatory') swOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex")) if mibBuilder.loadTexts: swOperEntry.setStatus('mandatory') swTidyStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("inactive", 0), ("inProgress", 1), ("querying", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swTidyStatus.setStatus('mandatory') swAvBeingTidied = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1, 421), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvBeingTidied.setStatus('mandatory') swAvlTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256), ) if mibBuilder.loadTexts: swAvlTable.setStatus('mandatory') swAvlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvlValue")) if mibBuilder.loadTexts: swAvlEntry.setStatus('mandatory') swAvlValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swAvlValue.setStatus('mandatory') swAvlRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: swAvlRowStatus.setStatus('mandatory') swAvListToTidyTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422), ) if mibBuilder.loadTexts: swAvListToTidyTable.setStatus('mandatory') swAvListToTidyEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvListToTidyValue")) if mibBuilder.loadTexts: swAvListToTidyEntry.setStatus('mandatory') swAvListToTidyValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvListToTidyValue.setStatus('mandatory') swAvListTidiedTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423), ) if mibBuilder.loadTexts: swAvListTidiedTable.setStatus('mandatory') swAvListTidiedEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvListTidiedValue")) if mibBuilder.loadTexts: swAvListTidiedEntry.setStatus('mandatory') swAvListTidiedValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvListTidiedValue.setStatus('mandatory') swPatlTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436), ) if mibBuilder.loadTexts: swPatlTable.setStatus('mandatory') swPatlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swPatlValue")) if mibBuilder.loadTexts: swPatlEntry.setStatus('mandatory') swPatlValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swPatlValue.setStatus('mandatory') swPatlRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: swPatlRowStatus.setStatus('mandatory') swDld = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2)) swDldRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1), ) if mibBuilder.loadTexts: swDldRowStatusTable.setStatus('mandatory') swDldRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldIndex")) if mibBuilder.loadTexts: swDldRowStatusEntry.setStatus('mandatory') swDldRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldRowStatus.setStatus('mandatory') swDldComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldComponentName.setStatus('mandatory') swDldStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldStorageType.setStatus('mandatory') swDldIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 10), NonReplicated()) if mibBuilder.loadTexts: swDldIndex.setStatus('mandatory') swDldOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10), ) if mibBuilder.loadTexts: swDldOperTable.setStatus('mandatory') swDldOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldIndex")) if mibBuilder.loadTexts: swDldOperEntry.setStatus('mandatory') swDldAvBeingDownloaded = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldAvBeingDownloaded.setStatus('mandatory') swDldStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("inactive", 0), ("inProgress", 1), ("stopping", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldStatus.setStatus('mandatory') swDldFilesToTransfer = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 3), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(0, 1000))).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldFilesToTransfer.setStatus('mandatory') swDldProcessorTargets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: swDldProcessorTargets.setStatus('mandatory') swDldDldListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260), ) if mibBuilder.loadTexts: swDldDldListTable.setStatus('mandatory') swDldDldListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldDldListValue")) if mibBuilder.loadTexts: swDldDldListEntry.setStatus('mandatory') swDldDldListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swDldDldListValue.setStatus('mandatory') swDldDldListRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: swDldDldListRowStatus.setStatus('mandatory') swDldDownloadedAvListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261), ) if mibBuilder.loadTexts: swDldDownloadedAvListTable.setStatus('mandatory') swDldDownloadedAvListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swDldDownloadedAvListValue")) if mibBuilder.loadTexts: swDldDownloadedAvListEntry.setStatus('mandatory') swDldDownloadedAvListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swDldDownloadedAvListValue.setStatus('mandatory') swAv = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3)) swAvRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1), ) if mibBuilder.loadTexts: swAvRowStatusTable.setStatus('mandatory') swAvRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex")) if mibBuilder.loadTexts: swAvRowStatusEntry.setStatus('mandatory') swAvRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvRowStatus.setStatus('mandatory') swAvComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvComponentName.setStatus('mandatory') swAvStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvStorageType.setStatus('mandatory') swAvIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 30))) if mibBuilder.loadTexts: swAvIndex.setStatus('mandatory') swAvOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10), ) if mibBuilder.loadTexts: swAvOperTable.setStatus('mandatory') swAvOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex")) if mibBuilder.loadTexts: swAvOperEntry.setStatus('mandatory') swAvProcessorTargets = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10, 1, 1), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1, 1)).setFixedLength(1)).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvProcessorTargets.setStatus('mandatory') swAvCompatibleAvListTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259), ) if mibBuilder.loadTexts: swAvCompatibleAvListTable.setStatus('mandatory') swAvCompatibleAvListEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvCompatibleAvListValue")) if mibBuilder.loadTexts: swAvCompatibleAvListEntry.setStatus('mandatory') swAvCompatibleAvListValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 30))).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvCompatibleAvListValue.setStatus('mandatory') swAvFeat = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2)) swAvFeatRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1), ) if mibBuilder.loadTexts: swAvFeatRowStatusTable.setStatus('mandatory') swAvFeatRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvFeatIndex")) if mibBuilder.loadTexts: swAvFeatRowStatusEntry.setStatus('mandatory') swAvFeatRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvFeatRowStatus.setStatus('mandatory') swAvFeatComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvFeatComponentName.setStatus('mandatory') swAvFeatStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvFeatStorageType.setStatus('mandatory') swAvFeatIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 25))) if mibBuilder.loadTexts: swAvFeatIndex.setStatus('mandatory') swAvPatch = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3)) swAvPatchRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1), ) if mibBuilder.loadTexts: swAvPatchRowStatusTable.setStatus('mandatory') swAvPatchRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvPatchIndex")) if mibBuilder.loadTexts: swAvPatchRowStatusEntry.setStatus('mandatory') swAvPatchRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 1), RowStatus()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvPatchRowStatus.setStatus('mandatory') swAvPatchComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvPatchComponentName.setStatus('mandatory') swAvPatchStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvPatchStorageType.setStatus('mandatory') swAvPatchIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 30))) if mibBuilder.loadTexts: swAvPatchIndex.setStatus('mandatory') swAvPatchOperTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10), ) if mibBuilder.loadTexts: swAvPatchOperTable.setStatus('mandatory') swAvPatchOperEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swAvPatchIndex")) if mibBuilder.loadTexts: swAvPatchOperEntry.setStatus('mandatory') swAvPatchDescription = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 512))).setMaxAccess("readonly") if mibBuilder.loadTexts: swAvPatchDescription.setStatus('mandatory') swLpt = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4)) swLptRowStatusTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1), ) if mibBuilder.loadTexts: swLptRowStatusTable.setStatus('mandatory') swLptRowStatusEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptIndex")) if mibBuilder.loadTexts: swLptRowStatusEntry.setStatus('mandatory') swLptRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 1), RowStatus()).setMaxAccess("readwrite") if mibBuilder.loadTexts: swLptRowStatus.setStatus('mandatory') swLptComponentName = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 2), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: swLptComponentName.setStatus('mandatory') swLptStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 4), StorageType()).setMaxAccess("readonly") if mibBuilder.loadTexts: swLptStorageType.setStatus('mandatory') swLptIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 10), AsciiStringIndex().subtype(subtypeSpec=ValueSizeConstraint(1, 25))) if mibBuilder.loadTexts: swLptIndex.setStatus('mandatory') swLptProvTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10), ) if mibBuilder.loadTexts: swLptProvTable.setStatus('mandatory') swLptProvEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptIndex")) if mibBuilder.loadTexts: swLptProvEntry.setStatus('mandatory') swLptCommentText = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(0, 80))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swLptCommentText.setStatus('mandatory') swLptSystemConfig = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0))).clone(namedValues=NamedValues(("default", 0))).clone('default')).setMaxAccess("readwrite") if mibBuilder.loadTexts: swLptSystemConfig.setStatus('mandatory') swLptFlTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257), ) if mibBuilder.loadTexts: swLptFlTable.setStatus('mandatory') swLptFlEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptFlValue")) if mibBuilder.loadTexts: swLptFlEntry.setStatus('mandatory') swLptFlValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1, 1), AsciiString().subtype(subtypeSpec=ValueSizeConstraint(1, 25))).setMaxAccess("readwrite") if mibBuilder.loadTexts: swLptFlValue.setStatus('mandatory') swLptFlRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1, 2), RowStatus()).setMaxAccess("writeonly") if mibBuilder.loadTexts: swLptFlRowStatus.setStatus('mandatory') swLptLogicalProcessorsTable = MibTable((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258), ) if mibBuilder.loadTexts: swLptLogicalProcessorsTable.setStatus('mandatory') swLptLogicalProcessorsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258, 1), ).setIndexNames((0, "Nortel-Magellan-Passport-SoftwareMIB", "swIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptIndex"), (0, "Nortel-Magellan-Passport-SoftwareMIB", "swLptLogicalProcessorsValue")) if mibBuilder.loadTexts: swLptLogicalProcessorsEntry.setStatus('mandatory') swLptLogicalProcessorsValue = MibTableColumn((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258, 1, 1), Link()).setMaxAccess("readonly") if mibBuilder.loadTexts: swLptLogicalProcessorsValue.setStatus('mandatory') softwareGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1)) softwareGroupBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5)) softwareGroupBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5, 2)) softwareGroupBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5, 2, 2)) softwareCapabilities = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3)) softwareCapabilitiesBE = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5)) softwareCapabilitiesBE01 = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5, 2)) softwareCapabilitiesBE01A = MibIdentifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5, 2, 2)) mibBuilder.exportSymbols("Nortel-Magellan-Passport-SoftwareMIB", softwareCapabilitiesBE01A=softwareCapabilitiesBE01A, swDldDldListRowStatus=swDldDldListRowStatus, swAvPatchOperEntry=swAvPatchOperEntry, swLptSystemConfig=swLptSystemConfig, swDldDownloadedAvListValue=swDldDownloadedAvListValue, swAvListToTidyTable=swAvListToTidyTable, swAvStorageType=swAvStorageType, swLptLogicalProcessorsEntry=swLptLogicalProcessorsEntry, softwareCapabilitiesBE01=softwareCapabilitiesBE01, swLptIndex=swLptIndex, softwareCapabilities=softwareCapabilities, swLptProvTable=swLptProvTable, swAvlTable=swAvlTable, swLptComponentName=swLptComponentName, swAvFeatIndex=swAvFeatIndex, swAvPatchRowStatusEntry=swAvPatchRowStatusEntry, swLpt=swLpt, swAvRowStatusTable=swAvRowStatusTable, swDldDldListEntry=swDldDldListEntry, swAvRowStatus=swAvRowStatus, swDldOperTable=swDldOperTable, swAvFeatRowStatus=swAvFeatRowStatus, swAvPatchOperTable=swAvPatchOperTable, swComponentName=swComponentName, swAvFeat=swAvFeat, swDldDownloadedAvListEntry=swDldDownloadedAvListEntry, swDldFilesToTransfer=swDldFilesToTransfer, swDldProcessorTargets=swDldProcessorTargets, swLptFlRowStatus=swLptFlRowStatus, swAvListToTidyValue=swAvListToTidyValue, swAvRowStatusEntry=swAvRowStatusEntry, swDldComponentName=swDldComponentName, swAvOperEntry=swAvOperEntry, swLptRowStatusTable=swLptRowStatusTable, swDldOperEntry=swDldOperEntry, swAvPatchDescription=swAvPatchDescription, sw=sw, swLptLogicalProcessorsTable=swLptLogicalProcessorsTable, swLptFlEntry=swLptFlEntry, swDldRowStatusEntry=swDldRowStatusEntry, swAvFeatRowStatusTable=swAvFeatRowStatusTable, swDldRowStatus=swDldRowStatus, swPatlValue=swPatlValue, swAvPatchComponentName=swAvPatchComponentName, swAvPatchStorageType=swAvPatchStorageType, swLptRowStatusEntry=swLptRowStatusEntry, swAvListTidiedEntry=swAvListTidiedEntry, swAvPatch=swAvPatch, softwareCapabilitiesBE=softwareCapabilitiesBE, swTidyStatus=swTidyStatus, swDldStorageType=swDldStorageType, swAvPatchRowStatus=swAvPatchRowStatus, swAvCompatibleAvListEntry=swAvCompatibleAvListEntry, swRowStatusEntry=swRowStatusEntry, swAvPatchIndex=swAvPatchIndex, swRowStatus=swRowStatus, swLptProvEntry=swLptProvEntry, softwareGroupBE01=softwareGroupBE01, swPatlEntry=swPatlEntry, swAvComponentName=swAvComponentName, swIndex=swIndex, swAvFeatRowStatusEntry=swAvFeatRowStatusEntry, swLptFlTable=swLptFlTable, swDldIndex=swDldIndex, swLptFlValue=swLptFlValue, swAvIndex=swAvIndex, swAvListTidiedValue=swAvListTidiedValue, swLptRowStatus=swLptRowStatus, swAvOperTable=swAvOperTable, swAvPatchRowStatusTable=swAvPatchRowStatusTable, swOperEntry=swOperEntry, swAvFeatStorageType=swAvFeatStorageType, swDldAvBeingDownloaded=swDldAvBeingDownloaded, softwareGroup=softwareGroup, swAvListTidiedTable=swAvListTidiedTable, swLptCommentText=swLptCommentText, swRowStatusTable=swRowStatusTable, swAvProcessorTargets=swAvProcessorTargets, softwareGroupBE01A=softwareGroupBE01A, swAvlEntry=swAvlEntry, swAvlRowStatus=swAvlRowStatus, swLptLogicalProcessorsValue=swLptLogicalProcessorsValue, swOperTable=swOperTable, swAv=swAv, swPatlTable=swPatlTable, swStorageType=swStorageType, swDldDldListValue=swDldDldListValue, swAvListToTidyEntry=swAvListToTidyEntry, softwareGroupBE=softwareGroupBE, swDld=swDld, swDldDownloadedAvListTable=swDldDownloadedAvListTable, swLptStorageType=swLptStorageType, swAvlValue=swAvlValue, swPatlRowStatus=swPatlRowStatus, swDldRowStatusTable=swDldRowStatusTable, swDldStatus=swDldStatus, swAvCompatibleAvListValue=swAvCompatibleAvListValue, swDldDldListTable=swDldDldListTable, swAvFeatComponentName=swAvFeatComponentName, softwareMIB=softwareMIB, swAvCompatibleAvListTable=swAvCompatibleAvListTable, swAvBeingTidied=swAvBeingTidied)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_union, single_value_constraint, value_size_constraint, constraints_intersection, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ValueSizeConstraint', 'ConstraintsIntersection', 'ValueRangeConstraint') (display_string, unsigned32, row_status, storage_type) = mibBuilder.importSymbols('Nortel-Magellan-Passport-StandardTextualConventionsMIB', 'DisplayString', 'Unsigned32', 'RowStatus', 'StorageType') (ascii_string_index, link, ascii_string, non_replicated) = mibBuilder.importSymbols('Nortel-Magellan-Passport-TextualConventionsMIB', 'AsciiStringIndex', 'Link', 'AsciiString', 'NonReplicated') (components, passport_mi_bs) = mibBuilder.importSymbols('Nortel-Magellan-Passport-UsefulDefinitionsMIB', 'components', 'passportMIBs') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (iso, module_identity, ip_address, unsigned32, object_identity, mib_identifier, time_ticks, notification_type, counter32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter64, integer32, gauge32, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'iso', 'ModuleIdentity', 'IpAddress', 'Unsigned32', 'ObjectIdentity', 'MibIdentifier', 'TimeTicks', 'NotificationType', 'Counter32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter64', 'Integer32', 'Gauge32', 'Bits') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') software_mib = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17)) sw = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14)) sw_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1)) if mibBuilder.loadTexts: swRowStatusTable.setStatus('mandatory') sw_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex')) if mibBuilder.loadTexts: swRowStatusEntry.setStatus('mandatory') sw_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: swRowStatus.setStatus('mandatory') sw_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swComponentName.setStatus('mandatory') sw_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swStorageType.setStatus('mandatory') sw_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: swIndex.setStatus('mandatory') sw_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11)) if mibBuilder.loadTexts: swOperTable.setStatus('mandatory') sw_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex')) if mibBuilder.loadTexts: swOperEntry.setStatus('mandatory') sw_tidy_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('inactive', 0), ('inProgress', 1), ('querying', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swTidyStatus.setStatus('mandatory') sw_av_being_tidied = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 11, 1, 421), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvBeingTidied.setStatus('mandatory') sw_avl_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256)) if mibBuilder.loadTexts: swAvlTable.setStatus('mandatory') sw_avl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvlValue')) if mibBuilder.loadTexts: swAvlEntry.setStatus('mandatory') sw_avl_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swAvlValue.setStatus('mandatory') sw_avl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 256, 1, 2), row_status()).setMaxAccess('writeonly') if mibBuilder.loadTexts: swAvlRowStatus.setStatus('mandatory') sw_av_list_to_tidy_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422)) if mibBuilder.loadTexts: swAvListToTidyTable.setStatus('mandatory') sw_av_list_to_tidy_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvListToTidyValue')) if mibBuilder.loadTexts: swAvListToTidyEntry.setStatus('mandatory') sw_av_list_to_tidy_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 422, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvListToTidyValue.setStatus('mandatory') sw_av_list_tidied_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423)) if mibBuilder.loadTexts: swAvListTidiedTable.setStatus('mandatory') sw_av_list_tidied_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvListTidiedValue')) if mibBuilder.loadTexts: swAvListTidiedEntry.setStatus('mandatory') sw_av_list_tidied_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 423, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvListTidiedValue.setStatus('mandatory') sw_patl_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436)) if mibBuilder.loadTexts: swPatlTable.setStatus('mandatory') sw_patl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swPatlValue')) if mibBuilder.loadTexts: swPatlEntry.setStatus('mandatory') sw_patl_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swPatlValue.setStatus('mandatory') sw_patl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 436, 1, 2), row_status()).setMaxAccess('writeonly') if mibBuilder.loadTexts: swPatlRowStatus.setStatus('mandatory') sw_dld = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2)) sw_dld_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1)) if mibBuilder.loadTexts: swDldRowStatusTable.setStatus('mandatory') sw_dld_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldIndex')) if mibBuilder.loadTexts: swDldRowStatusEntry.setStatus('mandatory') sw_dld_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldRowStatus.setStatus('mandatory') sw_dld_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldComponentName.setStatus('mandatory') sw_dld_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldStorageType.setStatus('mandatory') sw_dld_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 1, 1, 10), non_replicated()) if mibBuilder.loadTexts: swDldIndex.setStatus('mandatory') sw_dld_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10)) if mibBuilder.loadTexts: swDldOperTable.setStatus('mandatory') sw_dld_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldIndex')) if mibBuilder.loadTexts: swDldOperEntry.setStatus('mandatory') sw_dld_av_being_downloaded = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldAvBeingDownloaded.setStatus('mandatory') sw_dld_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('inactive', 0), ('inProgress', 1), ('stopping', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldStatus.setStatus('mandatory') sw_dld_files_to_transfer = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 3), unsigned32().subtype(subtypeSpec=value_range_constraint(0, 1000))).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldFilesToTransfer.setStatus('mandatory') sw_dld_processor_targets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 10, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: swDldProcessorTargets.setStatus('mandatory') sw_dld_dld_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260)) if mibBuilder.loadTexts: swDldDldListTable.setStatus('mandatory') sw_dld_dld_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldDldListValue')) if mibBuilder.loadTexts: swDldDldListEntry.setStatus('mandatory') sw_dld_dld_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swDldDldListValue.setStatus('mandatory') sw_dld_dld_list_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 260, 1, 2), row_status()).setMaxAccess('writeonly') if mibBuilder.loadTexts: swDldDldListRowStatus.setStatus('mandatory') sw_dld_downloaded_av_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261)) if mibBuilder.loadTexts: swDldDownloadedAvListTable.setStatus('mandatory') sw_dld_downloaded_av_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swDldDownloadedAvListValue')) if mibBuilder.loadTexts: swDldDownloadedAvListEntry.setStatus('mandatory') sw_dld_downloaded_av_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 2, 261, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swDldDownloadedAvListValue.setStatus('mandatory') sw_av = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3)) sw_av_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1)) if mibBuilder.loadTexts: swAvRowStatusTable.setStatus('mandatory') sw_av_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex')) if mibBuilder.loadTexts: swAvRowStatusEntry.setStatus('mandatory') sw_av_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvRowStatus.setStatus('mandatory') sw_av_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvComponentName.setStatus('mandatory') sw_av_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvStorageType.setStatus('mandatory') sw_av_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 1, 1, 10), ascii_string_index().subtype(subtypeSpec=value_size_constraint(1, 30))) if mibBuilder.loadTexts: swAvIndex.setStatus('mandatory') sw_av_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10)) if mibBuilder.loadTexts: swAvOperTable.setStatus('mandatory') sw_av_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex')) if mibBuilder.loadTexts: swAvOperEntry.setStatus('mandatory') sw_av_processor_targets = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 10, 1, 1), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1)).setFixedLength(1)).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvProcessorTargets.setStatus('mandatory') sw_av_compatible_av_list_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259)) if mibBuilder.loadTexts: swAvCompatibleAvListTable.setStatus('mandatory') sw_av_compatible_av_list_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvCompatibleAvListValue')) if mibBuilder.loadTexts: swAvCompatibleAvListEntry.setStatus('mandatory') sw_av_compatible_av_list_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 259, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 30))).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvCompatibleAvListValue.setStatus('mandatory') sw_av_feat = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2)) sw_av_feat_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1)) if mibBuilder.loadTexts: swAvFeatRowStatusTable.setStatus('mandatory') sw_av_feat_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvFeatIndex')) if mibBuilder.loadTexts: swAvFeatRowStatusEntry.setStatus('mandatory') sw_av_feat_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvFeatRowStatus.setStatus('mandatory') sw_av_feat_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvFeatComponentName.setStatus('mandatory') sw_av_feat_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvFeatStorageType.setStatus('mandatory') sw_av_feat_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 2, 1, 1, 10), ascii_string_index().subtype(subtypeSpec=value_size_constraint(1, 25))) if mibBuilder.loadTexts: swAvFeatIndex.setStatus('mandatory') sw_av_patch = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3)) sw_av_patch_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1)) if mibBuilder.loadTexts: swAvPatchRowStatusTable.setStatus('mandatory') sw_av_patch_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvPatchIndex')) if mibBuilder.loadTexts: swAvPatchRowStatusEntry.setStatus('mandatory') sw_av_patch_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 1), row_status()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvPatchRowStatus.setStatus('mandatory') sw_av_patch_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvPatchComponentName.setStatus('mandatory') sw_av_patch_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvPatchStorageType.setStatus('mandatory') sw_av_patch_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 1, 1, 10), ascii_string_index().subtype(subtypeSpec=value_size_constraint(1, 30))) if mibBuilder.loadTexts: swAvPatchIndex.setStatus('mandatory') sw_av_patch_oper_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10)) if mibBuilder.loadTexts: swAvPatchOperTable.setStatus('mandatory') sw_av_patch_oper_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swAvPatchIndex')) if mibBuilder.loadTexts: swAvPatchOperEntry.setStatus('mandatory') sw_av_patch_description = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 3, 3, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 512))).setMaxAccess('readonly') if mibBuilder.loadTexts: swAvPatchDescription.setStatus('mandatory') sw_lpt = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4)) sw_lpt_row_status_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1)) if mibBuilder.loadTexts: swLptRowStatusTable.setStatus('mandatory') sw_lpt_row_status_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptIndex')) if mibBuilder.loadTexts: swLptRowStatusEntry.setStatus('mandatory') sw_lpt_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 1), row_status()).setMaxAccess('readwrite') if mibBuilder.loadTexts: swLptRowStatus.setStatus('mandatory') sw_lpt_component_name = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 2), display_string()).setMaxAccess('readonly') if mibBuilder.loadTexts: swLptComponentName.setStatus('mandatory') sw_lpt_storage_type = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 4), storage_type()).setMaxAccess('readonly') if mibBuilder.loadTexts: swLptStorageType.setStatus('mandatory') sw_lpt_index = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 1, 1, 10), ascii_string_index().subtype(subtypeSpec=value_size_constraint(1, 25))) if mibBuilder.loadTexts: swLptIndex.setStatus('mandatory') sw_lpt_prov_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10)) if mibBuilder.loadTexts: swLptProvTable.setStatus('mandatory') sw_lpt_prov_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptIndex')) if mibBuilder.loadTexts: swLptProvEntry.setStatus('mandatory') sw_lpt_comment_text = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(0, 80))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swLptCommentText.setStatus('mandatory') sw_lpt_system_config = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 10, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0))).clone(namedValues=named_values(('default', 0))).clone('default')).setMaxAccess('readwrite') if mibBuilder.loadTexts: swLptSystemConfig.setStatus('mandatory') sw_lpt_fl_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257)) if mibBuilder.loadTexts: swLptFlTable.setStatus('mandatory') sw_lpt_fl_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptFlValue')) if mibBuilder.loadTexts: swLptFlEntry.setStatus('mandatory') sw_lpt_fl_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1, 1), ascii_string().subtype(subtypeSpec=value_size_constraint(1, 25))).setMaxAccess('readwrite') if mibBuilder.loadTexts: swLptFlValue.setStatus('mandatory') sw_lpt_fl_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 257, 1, 2), row_status()).setMaxAccess('writeonly') if mibBuilder.loadTexts: swLptFlRowStatus.setStatus('mandatory') sw_lpt_logical_processors_table = mib_table((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258)) if mibBuilder.loadTexts: swLptLogicalProcessorsTable.setStatus('mandatory') sw_lpt_logical_processors_entry = mib_table_row((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258, 1)).setIndexNames((0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptIndex'), (0, 'Nortel-Magellan-Passport-SoftwareMIB', 'swLptLogicalProcessorsValue')) if mibBuilder.loadTexts: swLptLogicalProcessorsEntry.setStatus('mandatory') sw_lpt_logical_processors_value = mib_table_column((1, 3, 6, 1, 4, 1, 562, 2, 4, 1, 14, 4, 258, 1, 1), link()).setMaxAccess('readonly') if mibBuilder.loadTexts: swLptLogicalProcessorsValue.setStatus('mandatory') software_group = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1)) software_group_be = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5)) software_group_be01 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5, 2)) software_group_be01_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 1, 5, 2, 2)) software_capabilities = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3)) software_capabilities_be = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5)) software_capabilities_be01 = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5, 2)) software_capabilities_be01_a = mib_identifier((1, 3, 6, 1, 4, 1, 562, 2, 4, 2, 17, 3, 5, 2, 2)) mibBuilder.exportSymbols('Nortel-Magellan-Passport-SoftwareMIB', softwareCapabilitiesBE01A=softwareCapabilitiesBE01A, swDldDldListRowStatus=swDldDldListRowStatus, swAvPatchOperEntry=swAvPatchOperEntry, swLptSystemConfig=swLptSystemConfig, swDldDownloadedAvListValue=swDldDownloadedAvListValue, swAvListToTidyTable=swAvListToTidyTable, swAvStorageType=swAvStorageType, swLptLogicalProcessorsEntry=swLptLogicalProcessorsEntry, softwareCapabilitiesBE01=softwareCapabilitiesBE01, swLptIndex=swLptIndex, softwareCapabilities=softwareCapabilities, swLptProvTable=swLptProvTable, swAvlTable=swAvlTable, swLptComponentName=swLptComponentName, swAvFeatIndex=swAvFeatIndex, swAvPatchRowStatusEntry=swAvPatchRowStatusEntry, swLpt=swLpt, swAvRowStatusTable=swAvRowStatusTable, swDldDldListEntry=swDldDldListEntry, swAvRowStatus=swAvRowStatus, swDldOperTable=swDldOperTable, swAvFeatRowStatus=swAvFeatRowStatus, swAvPatchOperTable=swAvPatchOperTable, swComponentName=swComponentName, swAvFeat=swAvFeat, swDldDownloadedAvListEntry=swDldDownloadedAvListEntry, swDldFilesToTransfer=swDldFilesToTransfer, swDldProcessorTargets=swDldProcessorTargets, swLptFlRowStatus=swLptFlRowStatus, swAvListToTidyValue=swAvListToTidyValue, swAvRowStatusEntry=swAvRowStatusEntry, swDldComponentName=swDldComponentName, swAvOperEntry=swAvOperEntry, swLptRowStatusTable=swLptRowStatusTable, swDldOperEntry=swDldOperEntry, swAvPatchDescription=swAvPatchDescription, sw=sw, swLptLogicalProcessorsTable=swLptLogicalProcessorsTable, swLptFlEntry=swLptFlEntry, swDldRowStatusEntry=swDldRowStatusEntry, swAvFeatRowStatusTable=swAvFeatRowStatusTable, swDldRowStatus=swDldRowStatus, swPatlValue=swPatlValue, swAvPatchComponentName=swAvPatchComponentName, swAvPatchStorageType=swAvPatchStorageType, swLptRowStatusEntry=swLptRowStatusEntry, swAvListTidiedEntry=swAvListTidiedEntry, swAvPatch=swAvPatch, softwareCapabilitiesBE=softwareCapabilitiesBE, swTidyStatus=swTidyStatus, swDldStorageType=swDldStorageType, swAvPatchRowStatus=swAvPatchRowStatus, swAvCompatibleAvListEntry=swAvCompatibleAvListEntry, swRowStatusEntry=swRowStatusEntry, swAvPatchIndex=swAvPatchIndex, swRowStatus=swRowStatus, swLptProvEntry=swLptProvEntry, softwareGroupBE01=softwareGroupBE01, swPatlEntry=swPatlEntry, swAvComponentName=swAvComponentName, swIndex=swIndex, swAvFeatRowStatusEntry=swAvFeatRowStatusEntry, swLptFlTable=swLptFlTable, swDldIndex=swDldIndex, swLptFlValue=swLptFlValue, swAvIndex=swAvIndex, swAvListTidiedValue=swAvListTidiedValue, swLptRowStatus=swLptRowStatus, swAvOperTable=swAvOperTable, swAvPatchRowStatusTable=swAvPatchRowStatusTable, swOperEntry=swOperEntry, swAvFeatStorageType=swAvFeatStorageType, swDldAvBeingDownloaded=swDldAvBeingDownloaded, softwareGroup=softwareGroup, swAvListTidiedTable=swAvListTidiedTable, swLptCommentText=swLptCommentText, swRowStatusTable=swRowStatusTable, swAvProcessorTargets=swAvProcessorTargets, softwareGroupBE01A=softwareGroupBE01A, swAvlEntry=swAvlEntry, swAvlRowStatus=swAvlRowStatus, swLptLogicalProcessorsValue=swLptLogicalProcessorsValue, swOperTable=swOperTable, swAv=swAv, swPatlTable=swPatlTable, swStorageType=swStorageType, swDldDldListValue=swDldDldListValue, swAvListToTidyEntry=swAvListToTidyEntry, softwareGroupBE=softwareGroupBE, swDld=swDld, swDldDownloadedAvListTable=swDldDownloadedAvListTable, swLptStorageType=swLptStorageType, swAvlValue=swAvlValue, swPatlRowStatus=swPatlRowStatus, swDldRowStatusTable=swDldRowStatusTable, swDldStatus=swDldStatus, swAvCompatibleAvListValue=swAvCompatibleAvListValue, swDldDldListTable=swDldDldListTable, swAvFeatComponentName=swAvFeatComponentName, softwareMIB=softwareMIB, swAvCompatibleAvListTable=swAvCompatibleAvListTable, swAvBeingTidied=swAvBeingTidied)
expression = input() parentheses_indices = [] for i in range(len(expression)): if expression[i] == '(': parentheses_indices.append(i) elif expression[i] == ')': opening_index = parentheses_indices.pop() closing_index = i searched_set = expression[opening_index:closing_index + 1] print(searched_set)
expression = input() parentheses_indices = [] for i in range(len(expression)): if expression[i] == '(': parentheses_indices.append(i) elif expression[i] == ')': opening_index = parentheses_indices.pop() closing_index = i searched_set = expression[opening_index:closing_index + 1] print(searched_set)
name = "Optimizer Parameters" description = None args_and_kwargs = ( (("--iterations",), { "help":"Number of gradient steps to take.", "type":int, "default":10000, }), (("--learning-rate",), { "help":"Adam learning rate. The default is 0.001", "type":float, "default":0.001, }), (("--beta-1",), { "help":"Adam beta_1 param. The default is 0.9", "type":float, "default":0.9, }), (("--beta-2",), { "help":"Adam beta_2 param. The default is 0.99", "type":float, "default":0.99, }), )
name = 'Optimizer Parameters' description = None args_and_kwargs = ((('--iterations',), {'help': 'Number of gradient steps to take.', 'type': int, 'default': 10000}), (('--learning-rate',), {'help': 'Adam learning rate. The default is 0.001', 'type': float, 'default': 0.001}), (('--beta-1',), {'help': 'Adam beta_1 param. The default is 0.9', 'type': float, 'default': 0.9}), (('--beta-2',), {'help': 'Adam beta_2 param. The default is 0.99', 'type': float, 'default': 0.99}))
# File: M (Python 2.4) class Mappable: def __init__(self): pass def getMapNode(self): pass class MappableArea(Mappable): def getMapName(self): return '' def getZoomLevels(self): return ((100, 200, 300), 1) def getFootprintNode(self): pass def getShopNodes(self): return () def getCapturePointNodes(self, holidayId): return () class MappableGrid(MappableArea): def getGridParamters(self): return ()
class Mappable: def __init__(self): pass def get_map_node(self): pass class Mappablearea(Mappable): def get_map_name(self): return '' def get_zoom_levels(self): return ((100, 200, 300), 1) def get_footprint_node(self): pass def get_shop_nodes(self): return () def get_capture_point_nodes(self, holidayId): return () class Mappablegrid(MappableArea): def get_grid_paramters(self): return ()
#!/usr/bin/env python S_PC = ord("p") S_A = ord("A") S_X = ord("X") S_Y = ord("Y") S_SP = ord("S") S_IND_X = 0x1D9 S_IND_Y = 0x1DF S_Z_X = 0x209 S_Z_Y = 0x20F S_Z = 0x200 S_ABS_X = 0x809 S_ABS_Y = 0x80F S_ABS = 0x800 S_HASH = ord("#") S_XXX = 0xFFFF S_NONE = 0x0000
s_pc = ord('p') s_a = ord('A') s_x = ord('X') s_y = ord('Y') s_sp = ord('S') s_ind_x = 473 s_ind_y = 479 s_z_x = 521 s_z_y = 527 s_z = 512 s_abs_x = 2057 s_abs_y = 2063 s_abs = 2048 s_hash = ord('#') s_xxx = 65535 s_none = 0
"""Libpdf exceptions.""" class LibpdfException(Exception): """Generic libpdf exception class."""
"""Libpdf exceptions.""" class Libpdfexception(Exception): """Generic libpdf exception class."""
N = float(input()) if N >= 0 and N <= 25: print('Intervalo [0,25]') elif N > 25 and N <= 50: print('Intervalo (25,50]') elif N > 50 and N <= 75: print('Intervalo (50,75]') elif N > 75 and N <= 100: print('Intervalo (75,100]') else: print('Fora de intervalo')
n = float(input()) if N >= 0 and N <= 25: print('Intervalo [0,25]') elif N > 25 and N <= 50: print('Intervalo (25,50]') elif N > 50 and N <= 75: print('Intervalo (50,75]') elif N > 75 and N <= 100: print('Intervalo (75,100]') else: print('Fora de intervalo')
# Write a function called delete_starting_evens() that has a parameter named lst. # The function should remove elements from the front of lst until the front of the list is not even. The function should then return lst. # For example if lst started as [4, 8, 10, 11, 12, 15], then delete_starting_evens(lst) should return [11, 12, 15]. # Make sure your function works even if every element in the list is even! def delete_starting_evens(lst): while (len(lst) > 0 and lst[0] % 2 == 0): lst = lst[1:] return lst print(delete_starting_evens([4, 8, 10, 11, 12, 15]))
def delete_starting_evens(lst): while len(lst) > 0 and lst[0] % 2 == 0: lst = lst[1:] return lst print(delete_starting_evens([4, 8, 10, 11, 12, 15]))
db_config = { 'host':'', #typically localhost if running this locally 'port':'', #typically 3306 if running a standard MySQl engine 'user':'', #mysql user with full privileges on the DB 'pass':'', #password of the mysql user 'db':''} #database in which all tables will be stored (must be already created)
db_config = {'host': '', 'port': '', 'user': '', 'pass': '', 'db': ''}
squares = [1, 4, 9, 16, 25] print(squares) # [1, 4, 9, 16, 25] print(squares[0]) # 1 print(squares[-1]) # 25 cubes = [1, 8, 27, 65, 125] cubes[3] = 64 print(cubes) # [1, 8, 27, 64, 125] cubes.append(216) cubes.append(7 ** 3) print(cubes) # [1, 8, 27, 64, 125, 216, 343] print(8 in cubes) # True print(None in cubes) # False a = [1, 2, 3] print(a) # [1, 2, 3] a[1] = [1, 2, 3] print(a) # [1, [1, 2, 3], 3] a[1][1] = [1, 2, 3] print(a) # [1, [1, [1, 2, 3], 3], 3] a[1][1][1] = 5 print(a) # [1, [1, [1, 5, 3], 3], 3]
squares = [1, 4, 9, 16, 25] print(squares) print(squares[0]) print(squares[-1]) cubes = [1, 8, 27, 65, 125] cubes[3] = 64 print(cubes) cubes.append(216) cubes.append(7 ** 3) print(cubes) print(8 in cubes) print(None in cubes) a = [1, 2, 3] print(a) a[1] = [1, 2, 3] print(a) a[1][1] = [1, 2, 3] print(a) a[1][1][1] = 5 print(a)
REPOSITORY_LOCATIONS = dict( bazel_gazelle = dict( sha256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b", urls = ["https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz"], ), bazel_skylib = dict( sha256 = "2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e", urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz"], ), com_envoyproxy_protoc_gen_validate = dict( sha256 = "ddefe3dcbb25d68a2e5dfea67d19c060959c2aecc782802bd4c1a5811d44dd45", strip_prefix = "protoc-gen-validate-2feaabb13a5d697b80fcb938c0ce37b24c9381ee", # Jul 26, 2018 urls = ["https://github.com/envoyproxy/protoc-gen-validate/archive/2feaabb13a5d697b80fcb938c0ce37b24c9381ee.tar.gz"], ), com_github_grpc_grpc = dict( sha256 = "bcb01ac7029a7fb5219ad2cbbc4f0a2df3ef32db42e236ce7814597f4b04b541", strip_prefix = "grpc-79a8b5289e3122d2cea2da3be7151d37313d6f46", # Commit from 2019-05-30 urls = ["https://github.com/grpc/grpc/archive/79a8b5289e3122d2cea2da3be7151d37313d6f46.tar.gz"], ), com_google_googleapis = dict( # TODO(dio): Consider writing a Skylark macro for importing Google API proto. sha256 = "c1969e5b72eab6d9b6cfcff748e45ba57294aeea1d96fd04cd081995de0605c2", strip_prefix = "googleapis-be480e391cc88a75cf2a81960ef79c80d5012068", urls = ["https://github.com/googleapis/googleapis/archive/be480e391cc88a75cf2a81960ef79c80d5012068.tar.gz"], ), com_google_protobuf = dict( sha256 = "b7220b41481011305bf9100847cf294393973e869973a9661046601959b2960b", strip_prefix = "protobuf-3.8.0", urls = ["https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protobuf-all-3.8.0.tar.gz"], ), io_bazel_rules_go = dict( sha256 = "96b1f81de5acc7658e1f5a86d7dc9e1b89bc935d83799b711363a748652c471a", urls = ["https://github.com/bazelbuild/rules_go/releases/download/0.19.2/rules_go-0.19.2.tar.gz"], ), rules_foreign_cc = dict( sha256 = "c957e6663094a1478c43330c1bbfa71afeaf1ab86b7565233783301240c7a0ab", strip_prefix = "rules_foreign_cc-a209b642c7687a8894c19b3dd40e43e6d3f38e83", # 2019-07-17 urls = ["https://github.com/bazelbuild/rules_foreign_cc/archive/a209b642c7687a8894c19b3dd40e43e6d3f38e83.tar.gz"], ), rules_proto = dict( sha256 = "73ebe9d15ba42401c785f9d0aeebccd73bd80bf6b8ac78f74996d31f2c0ad7a6", strip_prefix = "rules_proto-2c0468366367d7ed97a1f702f9cd7155ab3f73c5", # 2019-11-19 urls = ["https://github.com/bazelbuild/rules_proto/archive/2c0468366367d7ed97a1f702f9cd7155ab3f73c5.tar.gz"], ), net_zlib = dict( sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff", strip_prefix = "zlib-1.2.11", urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"], ), six_archive = dict( sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", urls = ["https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"], ), )
repository_locations = dict(bazel_gazelle=dict(sha256='be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b', urls=['https://github.com/bazelbuild/bazel-gazelle/releases/download/0.18.1/bazel-gazelle-0.18.1.tar.gz']), bazel_skylib=dict(sha256='2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e', urls=['https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/bazel-skylib.0.8.0.tar.gz']), com_envoyproxy_protoc_gen_validate=dict(sha256='ddefe3dcbb25d68a2e5dfea67d19c060959c2aecc782802bd4c1a5811d44dd45', strip_prefix='protoc-gen-validate-2feaabb13a5d697b80fcb938c0ce37b24c9381ee', urls=['https://github.com/envoyproxy/protoc-gen-validate/archive/2feaabb13a5d697b80fcb938c0ce37b24c9381ee.tar.gz']), com_github_grpc_grpc=dict(sha256='bcb01ac7029a7fb5219ad2cbbc4f0a2df3ef32db42e236ce7814597f4b04b541', strip_prefix='grpc-79a8b5289e3122d2cea2da3be7151d37313d6f46', urls=['https://github.com/grpc/grpc/archive/79a8b5289e3122d2cea2da3be7151d37313d6f46.tar.gz']), com_google_googleapis=dict(sha256='c1969e5b72eab6d9b6cfcff748e45ba57294aeea1d96fd04cd081995de0605c2', strip_prefix='googleapis-be480e391cc88a75cf2a81960ef79c80d5012068', urls=['https://github.com/googleapis/googleapis/archive/be480e391cc88a75cf2a81960ef79c80d5012068.tar.gz']), com_google_protobuf=dict(sha256='b7220b41481011305bf9100847cf294393973e869973a9661046601959b2960b', strip_prefix='protobuf-3.8.0', urls=['https://github.com/protocolbuffers/protobuf/releases/download/v3.8.0/protobuf-all-3.8.0.tar.gz']), io_bazel_rules_go=dict(sha256='96b1f81de5acc7658e1f5a86d7dc9e1b89bc935d83799b711363a748652c471a', urls=['https://github.com/bazelbuild/rules_go/releases/download/0.19.2/rules_go-0.19.2.tar.gz']), rules_foreign_cc=dict(sha256='c957e6663094a1478c43330c1bbfa71afeaf1ab86b7565233783301240c7a0ab', strip_prefix='rules_foreign_cc-a209b642c7687a8894c19b3dd40e43e6d3f38e83', urls=['https://github.com/bazelbuild/rules_foreign_cc/archive/a209b642c7687a8894c19b3dd40e43e6d3f38e83.tar.gz']), rules_proto=dict(sha256='73ebe9d15ba42401c785f9d0aeebccd73bd80bf6b8ac78f74996d31f2c0ad7a6', strip_prefix='rules_proto-2c0468366367d7ed97a1f702f9cd7155ab3f73c5', urls=['https://github.com/bazelbuild/rules_proto/archive/2c0468366367d7ed97a1f702f9cd7155ab3f73c5.tar.gz']), net_zlib=dict(sha256='629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff', strip_prefix='zlib-1.2.11', urls=['https://github.com/madler/zlib/archive/v1.2.11.tar.gz']), six_archive=dict(sha256='105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a', urls=['https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz']))
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def swapPairs(self, head): return nodeSwap(head) def nodeSwap(head): if head and head.next is None: return head count = 1 prev = None current = head newHead = None while current.next is not None: if count % 2 == 0: if newHead is None: newHead = current # swapNode(prev, current) temp = current.next current.next = prev prev.next = temp count += 1 prev = current current = current.next return newHead # 1->3->4 # def swapNode(prev, current): # temp = current # current.next = prev # prev.next = temp.next
class Solution: def swap_pairs(self, head): return node_swap(head) def node_swap(head): if head and head.next is None: return head count = 1 prev = None current = head new_head = None while current.next is not None: if count % 2 == 0: if newHead is None: new_head = current temp = current.next current.next = prev prev.next = temp count += 1 prev = current current = current.next return newHead
# Strings normal_string = 'you will see a \t tab' print(normal_string) raw_string = r"you won't see a \t tab" print(raw_string) content = ['Joe', 26] format_string = f"His name's {content[0]} and he's {content[1]}." print(format_string) # Numbers # to be continued..
normal_string = 'you will see a \t tab' print(normal_string) raw_string = "you won't see a \\t tab" print(raw_string) content = ['Joe', 26] format_string = f"His name's {content[0]} and he's {content[1]}." print(format_string)
# static qstrs, should be sorted # extracted from micropython/py/makeqstrdata.py static_qstr_list = [ "", "__dir__", # Put __dir__ after empty qstr for builtin dir() to work "\n", " ", "*", "/", "<module>", "_", "__call__", "__class__", "__delitem__", "__enter__", "__exit__", "__getattr__", "__getitem__", "__hash__", "__init__", "__int__", "__iter__", "__len__", "__main__", "__module__", "__name__", "__new__", "__next__", "__qualname__", "__repr__", "__setitem__", "__str__", "ArithmeticError", "AssertionError", "AttributeError", "BaseException", "EOFError", "Ellipsis", "Exception", "GeneratorExit", "ImportError", "IndentationError", "IndexError", "KeyError", "KeyboardInterrupt", "LookupError", "MemoryError", "NameError", "NoneType", "NotImplementedError", "OSError", "OverflowError", "RuntimeError", "StopIteration", "SyntaxError", "SystemExit", "TypeError", "ValueError", "ZeroDivisionError", "abs", "all", "any", "append", "args", "bool", "builtins", "bytearray", "bytecode", "bytes", "callable", "chr", "classmethod", "clear", "close", "const", "copy", "count", "dict", "dir", "divmod", "end", "endswith", "eval", "exec", "extend", "find", "format", "from_bytes", "get", "getattr", "globals", "hasattr", "hash", "id", "index", "insert", "int", "isalpha", "isdigit", "isinstance", "islower", "isspace", "issubclass", "isupper", "items", "iter", "join", "key", "keys", "len", "list", "little", "locals", "lower", "lstrip", "main", "map", "micropython", "next", "object", "open", "ord", "pop", "popitem", "pow", "print", "range", "read", "readinto", "readline", "remove", "replace", "repr", "reverse", "rfind", "rindex", "round", "rsplit", "rstrip", "self", "send", "sep", "set", "setattr", "setdefault", "sort", "sorted", "split", "start", "startswith", "staticmethod", "step", "stop", "str", "strip", "sum", "super", "throw", "to_bytes", "tuple", "type", "update", "upper", "utf-8", "value", "values", "write", "zip", ]
static_qstr_list = ['', '__dir__', '\n', ' ', '*', '/', '<module>', '_', '__call__', '__class__', '__delitem__', '__enter__', '__exit__', '__getattr__', '__getitem__', '__hash__', '__init__', '__int__', '__iter__', '__len__', '__main__', '__module__', '__name__', '__new__', '__next__', '__qualname__', '__repr__', '__setitem__', '__str__', 'ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'EOFError', 'Ellipsis', 'Exception', 'GeneratorExit', 'ImportError', 'IndentationError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'NameError', 'NoneType', 'NotImplementedError', 'OSError', 'OverflowError', 'RuntimeError', 'StopIteration', 'SyntaxError', 'SystemExit', 'TypeError', 'ValueError', 'ZeroDivisionError', 'abs', 'all', 'any', 'append', 'args', 'bool', 'builtins', 'bytearray', 'bytecode', 'bytes', 'callable', 'chr', 'classmethod', 'clear', 'close', 'const', 'copy', 'count', 'dict', 'dir', 'divmod', 'end', 'endswith', 'eval', 'exec', 'extend', 'find', 'format', 'from_bytes', 'get', 'getattr', 'globals', 'hasattr', 'hash', 'id', 'index', 'insert', 'int', 'isalpha', 'isdigit', 'isinstance', 'islower', 'isspace', 'issubclass', 'isupper', 'items', 'iter', 'join', 'key', 'keys', 'len', 'list', 'little', 'locals', 'lower', 'lstrip', 'main', 'map', 'micropython', 'next', 'object', 'open', 'ord', 'pop', 'popitem', 'pow', 'print', 'range', 'read', 'readinto', 'readline', 'remove', 'replace', 'repr', 'reverse', 'rfind', 'rindex', 'round', 'rsplit', 'rstrip', 'self', 'send', 'sep', 'set', 'setattr', 'setdefault', 'sort', 'sorted', 'split', 'start', 'startswith', 'staticmethod', 'step', 'stop', 'str', 'strip', 'sum', 'super', 'throw', 'to_bytes', 'tuple', 'type', 'update', 'upper', 'utf-8', 'value', 'values', 'write', 'zip']
# To raise an exception, you can use the 'raise' keyword. # Note that you can only raise an object of the Exception class or its subclasses. # Exception is an inbuilt class in python. # To raise subclasses of Exception(custom Exception) we have to create our own custom Class. # We can also pass message along with exception so that exception handling is consistent. class Employee: def __init__(self, salary): self.salary_lower_limit = 100 self.salary_upper_limit = 200 self.salary = salary class HumanResource: def pay_salary(self, employee): if(employee.salary < employee.salary_lower_limit): raise LowSalaryException(employee) # Raising Custom Exceptions elif(employee.salary > employee.salary_upper_limit): raise HighSalaryException(employee) else: print("Employee is satisfied with given salary.") class LowSalaryException(Exception): def __init__(self, employee): # Building the custom message message = "Given Salary is "+ str(employee.salary) + "is too low. Salary range should be between " + str(employee.salary_lower_limit) + "and" + str(employee.salary_upper_limit) # Passing the message to super class super().__init__(message) class HighSalaryException(Exception): def __init__(self, employee): message = "Given Salary is "+ str(employee.salary) + "is too High. Salary range should be between " + str(employee.salary_lower_limit) + "and" + str(employee.salary_upper_limit) super().__init__(message) try: employee=Employee(50) human_resource=HumanResource() human_resource.pay_salary(employee) except LowSalaryException as e: print(e) except HighSalaryException as e: print(e) except: print("Some other error.")
class Employee: def __init__(self, salary): self.salary_lower_limit = 100 self.salary_upper_limit = 200 self.salary = salary class Humanresource: def pay_salary(self, employee): if employee.salary < employee.salary_lower_limit: raise low_salary_exception(employee) elif employee.salary > employee.salary_upper_limit: raise high_salary_exception(employee) else: print('Employee is satisfied with given salary.') class Lowsalaryexception(Exception): def __init__(self, employee): message = 'Given Salary is ' + str(employee.salary) + 'is too low. Salary range should be between ' + str(employee.salary_lower_limit) + 'and' + str(employee.salary_upper_limit) super().__init__(message) class Highsalaryexception(Exception): def __init__(self, employee): message = 'Given Salary is ' + str(employee.salary) + 'is too High. Salary range should be between ' + str(employee.salary_lower_limit) + 'and' + str(employee.salary_upper_limit) super().__init__(message) try: employee = employee(50) human_resource = human_resource() human_resource.pay_salary(employee) except LowSalaryException as e: print(e) except HighSalaryException as e: print(e) except: print('Some other error.')
# CANDY REPLENISHING ROBOT n,t = [int(a) for a in input().strip().split()] Ar = [int(a) for a in input().strip().split()] i = 0 c = n count = 0 while t: #print(c) if c<5: count += (n-c) c += (n-c) #print(count) c -= Ar[i] t -= 1 i += 1 print(count)
(n, t) = [int(a) for a in input().strip().split()] ar = [int(a) for a in input().strip().split()] i = 0 c = n count = 0 while t: if c < 5: count += n - c c += n - c c -= Ar[i] t -= 1 i += 1 print(count)
class Solution(object): def minPatches(self, nums, n): """ :type nums: List[int] :type n: int :rtype: int """ i = 0 patches = 0 miss = 1 while miss <= n: if i < len(nums) and nums[i] <= miss: miss += nums[i] i += 1 else: miss += miss patches += 1 return patches
class Solution(object): def min_patches(self, nums, n): """ :type nums: List[int] :type n: int :rtype: int """ i = 0 patches = 0 miss = 1 while miss <= n: if i < len(nums) and nums[i] <= miss: miss += nums[i] i += 1 else: miss += miss patches += 1 return patches
class Benchmark(): def __init__(self): super().__init__() #Domain should be a list of lists where each list yields the minimum and maximum value for one of the variables. pass def calculate(self, x_var, y_var): pass def clip_to_domain(self, x_var, y_var): if x_var < self.domain[0][0]: x_var = tf.Variable(self.domain[0][0]) if x_var > self.domain[0][1]: x_var = tf.Variable(self.domain[0][1]) if y_var < self.domain[1][0]: y_var = tf.Variable(self.domain[1][0]) if y_var > self.domain[1][1]: y_var = tf.Variable(self.domain[1][1]) return x_var, y_var
class Benchmark: def __init__(self): super().__init__() pass def calculate(self, x_var, y_var): pass def clip_to_domain(self, x_var, y_var): if x_var < self.domain[0][0]: x_var = tf.Variable(self.domain[0][0]) if x_var > self.domain[0][1]: x_var = tf.Variable(self.domain[0][1]) if y_var < self.domain[1][0]: y_var = tf.Variable(self.domain[1][0]) if y_var > self.domain[1][1]: y_var = tf.Variable(self.domain[1][1]) return (x_var, y_var)
# # PySNMP MIB module HUAWEI-L3VPN-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-L3VPN-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:45:58 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, Integer, OctetString = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsUnion") hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") EnabledStatus, = mibBuilder.importSymbols("P-BRIDGE-MIB", "EnabledStatus") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Gauge32, NotificationType, iso, Bits, MibIdentifier, ModuleIdentity, Unsigned32, Counter64, IpAddress, TimeTicks, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32, ObjectIdentity, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "NotificationType", "iso", "Bits", "MibIdentifier", "ModuleIdentity", "Unsigned32", "Counter64", "IpAddress", "TimeTicks", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32", "ObjectIdentity", "Integer32") TextualConvention, RowStatus, DisplayString, TimeStamp, DateAndTime = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "RowStatus", "DisplayString", "TimeStamp", "DateAndTime") hwL3vpn = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150)) if mibBuilder.loadTexts: hwL3vpn.setLastUpdated('200902171659Z') if mibBuilder.loadTexts: hwL3vpn.setOrganization('Huawei Technologies Co., Ltd.') if mibBuilder.loadTexts: hwL3vpn.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ') if mibBuilder.loadTexts: hwL3vpn.setDescription("The HUAWEI-L3VPN-EXT-MIB contains objects to statistic L3VPN's traffic.") hwL3vpnStatMibObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1)) hwL3vpnStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1), ) if mibBuilder.loadTexts: hwL3vpnStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsTable.setDescription("This table contains the L3VPN's Traffic Statistic.") hwL3vpnStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1), ).setIndexNames((0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnVrfIndex")) if mibBuilder.loadTexts: hwL3vpnStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsEntry.setDescription("Provides the information of the L3VPN's Traffic Statistic.") hwL3vpnVrfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwL3vpnVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnVrfIndex.setDescription('The index of L3vpn instance.') hwL3vpnStatEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 2), EnabledStatus().clone()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwL3vpnStatEnable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatEnable.setDescription("This object indicates the enable sign of L3VPN's traffic statistics.") hwL3vpnVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 3), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnVrfName.setDescription("This object indicates the VRF's name.") hwL3vpnStatInTrafficRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInTrafficRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInTrafficRate.setDescription('Average bytes of the traffic received per second.') hwL3vpnStatOutTrafficRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutTrafficRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutTrafficRate.setDescription('Average bytes of the traffic transmitted out per second .') hwL3vpnStatInPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInPacketsRate.setDescription('Average packets of the traffic received per second.') hwL3vpnStatOutPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutPacketsRate.setDescription('Average packets of the traffic transmitted out per second.') hwL3vpnStatInBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInBytes.setDescription('The total number of bytes received.') hwL3vpnStatOutBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutBytes.setDescription('The total number of bytes transmitted out.') hwL3vpnStatInPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInPackets.setDescription('The total number of Packets received.') hwL3vpnStatOutPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutPackets.setDescription('The total number of Packets transmitted out.') hwL3vpnStatInUnicastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 12), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInUnicastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInUnicastPackets.setDescription('The total number of unicast Packets received.') hwL3vpnStatOutUnicastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 13), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutUnicastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutUnicastPackets.setDescription('The total number of unicast Packets transmitted out.') hwL3vpnStatInMulticastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 14), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInMulticastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInMulticastPackets.setDescription('The total number of multicast Packets received.') hwL3vpnStatOutMulticastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 15), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutMulticastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutMulticastPackets.setDescription('The total number of multicast Packets transmitted out.') hwL3vpnStatInBroadcastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 16), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatInBroadcastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInBroadcastPackets.setDescription('The total number of broadcast Packets received.') hwL3vpnStatOutBroadcastPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 17), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatOutBroadcastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutBroadcastPackets.setDescription('The total number of broadcast Packets transmitted out.') hwL3vpnStatResetTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 18), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatResetTime.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatResetTime.setDescription('Last time of clean out.') hwL3vpnStatResetStatistic = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 19), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("resetStatistic", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwL3vpnStatResetStatistic.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatResetStatistic.setDescription('Reset traffic statistics of the vpn instance.') hwL3vpnQosStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2), ) if mibBuilder.loadTexts: hwL3vpnQosStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsTable.setDescription("This table contains the L3VPN's Qos traffic statistics.") hwL3vpnQosStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1), ).setIndexNames((0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatVrfIndex"), (0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatQueueID")) if mibBuilder.loadTexts: hwL3vpnQosStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsEntry.setDescription("Provides the information of the L3VPN's Qos traffic statistics.") hwL3vpnQosStatVrfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwL3vpnQosStatVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatVrfIndex.setDescription('Index of the vpn instance.') hwL3vpnQosStatQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("be", 1), ("af1", 2), ("af2", 3), ("af3", 4), ("af4", 5), ("ef", 6), ("cs6", 7), ("cs7", 8)))) if mibBuilder.loadTexts: hwL3vpnQosStatQueueID.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatQueueID.setDescription("This object indicates the queue's ID. The value must be be,af1,af2,af3,af4,ef,cs6,cs7.") hwL3vpnQosStatPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 3), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatPassPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassPackets.setDescription('Number of total passed packets, based on the vpn instance.') hwL3vpnQosStatPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatPassBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytes.setDescription('Number of total passed bytes, based on the vpn instance.') hwL3vpnQosStatDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPackets.setDescription('Number of total discarded packets, based on the vpn instance.') hwL3vpnQosStatDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytes.setDescription('Number of total discarded bytes, based on the vpn instance.') hwL3vpnQosStatPassPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatPassPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassPacketsRate.setDescription('Rate of passed packets for the past 30 seconds, based on the vpn instance. Unit: pps') hwL3vpnQosStatPassBytesRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatPassBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytesRate.setDescription('Rate of passed bytes for the past 30 seconds, based on the vpn instance. Unit: bps') hwL3vpnQosStatDiscardPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPacketsRate.setDescription('Rate of discarded packets for the past 30 seconds, based on the vpn instance. Unit: pps') hwL3vpnQosStatDiscardBytesRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytesRate.setDescription('Rate of discarded bytes for the past 30 seconds, based on the vpn instance. Unit: bps') hwL3vpnPeerStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3), ) if mibBuilder.loadTexts: hwL3vpnPeerStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsTable.setDescription("This table contains the L3VPN's Traffic Statistic.") hwL3vpnPeerStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1), ).setIndexNames((0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerVrfIndex"), (0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatPeerAddress")) if mibBuilder.loadTexts: hwL3vpnPeerStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsEntry.setDescription("Provides the information of the L3VPN Peer's Traffic Statistic.") hwL3vpnPeerVrfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwL3vpnPeerVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerVrfIndex.setDescription('The index of L3vpn instance.') hwL3vpnPeerStatPeerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 2), IpAddress()) if mibBuilder.loadTexts: hwL3vpnPeerStatPeerAddress.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatPeerAddress.setDescription('The peer IP address of L3vpn instance.') hwL3vpnPeerStatEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 3), EnabledStatus().clone()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwL3vpnPeerStatEnable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatEnable.setDescription("This object indicates the enable sign of L3VPN peer's traffic statistics.") hwL3vpnPeerStatResetStatistic = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("resetStatistic", 1)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hwL3vpnPeerStatResetStatistic.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatResetStatistic.setDescription('Reset traffic statistics for peer of the L3vpn instance.') hwL3vpnPeerVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 5), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerVrfName.setDescription("This object indicates the VRF's name.") hwL3vpnPeerStatResetTime = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 6), DateAndTime()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerStatResetTime.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatResetTime.setDescription('Last time of clean out.') hwL3vpnPeerStatQosPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerStatQosPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPacketsRate.setDescription('Average packets of the traffic transmitted out per second.') hwL3vpnPeerStatQosBytesRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytesRate.setDescription('Average bytes of the traffic transmitted out per second .') hwL3vpnPeerStatQosPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerStatQosPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPackets.setDescription('The total number of Packets transmitted out.') hwL3vpnPeerStatQosBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytes.setDescription('The total number of bytes transmitted out.') hwL3vpnPeerQosStatisticsTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4), ) if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsTable.setDescription("This table contains the L3vpn Peer's Qos traffic statistics.") hwL3vpnPeerQosStatisticsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1), ).setIndexNames((0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatVrfIndex"), (0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatPeerAddress"), (0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatQueueID")) if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsEntry.setDescription("Provides the information of the L3VPN Peer's Qos traffic statistics.") hwL3vpnPeerQosStatVrfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 1), Unsigned32()) if mibBuilder.loadTexts: hwL3vpnPeerQosStatVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatVrfIndex.setDescription('Index of the vpn instance.') hwL3vpnPeerQosStatPeerAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 2), IpAddress()) if mibBuilder.loadTexts: hwL3vpnPeerQosStatPeerAddress.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPeerAddress.setDescription('The peer IP address of L3vpn instance.') hwL3vpnPeerQosStatQueueID = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=NamedValues(("be", 1), ("af1", 2), ("af2", 3), ("af3", 4), ("af4", 5), ("ef", 6), ("cs6", 7), ("cs7", 8)))) if mibBuilder.loadTexts: hwL3vpnPeerQosStatQueueID.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatQueueID.setDescription("This object indicates the queue's ID. The value must be be,af1,af2,af3,af4,ef,cs6,cs7.") hwL3vpnPeerQosStatPassPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 4), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPackets.setDescription('Number of total passed packets, based on peer of the vpn instance.') hwL3vpnPeerQosStatPassBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 5), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytes.setDescription('Number of total passed bytes, based on peer of the vpn instance.') hwL3vpnPeerQosStatDiscardPackets = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 6), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPackets.setDescription('Number of total discarded packets, based on peer of the vpn instance.') hwL3vpnPeerQosStatDiscardBytes = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 7), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytes.setDescription('Number of total discarded bytes, based on peer of the vpn instance.') hwL3vpnPeerQosStatPassPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 8), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPacketsRate.setDescription('Rate of passed packets for the past 30 seconds, based on peer of the vpn instance. Unit: pps') hwL3vpnPeerQosStatPassBytesRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 9), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytesRate.setDescription('Rate of passed bytes for the past 30 seconds, based on peer of the vpn instance. Unit: bps') hwL3vpnPeerQosStatDiscardPacketsRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 10), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPacketsRate.setDescription('Rate of discarded packets for the past 30 seconds, based on peer of the vpn instance. Unit: pps') hwL3vpnPeerQosStatDiscardBytesRate = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 11), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytesRate.setDescription('Rate of discarded bytes for the past 30 seconds, based on peer of the vpn instance. Unit: bps') hwL3vpnStatMapTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5), ) if mibBuilder.loadTexts: hwL3vpnStatMapTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapTable.setDescription('This table contains the map of L3vpn name and index.') hwL3vpnStatMapEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1), ).setIndexNames((0, "HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatMapVrfName")) if mibBuilder.loadTexts: hwL3vpnStatMapEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapEntry.setDescription('Provides the mapping information of the L3vpn name and L3vpn index.') hwL3vpnStatMapVrfName = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1, 1), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 31))) if mibBuilder.loadTexts: hwL3vpnStatMapVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapVrfName.setDescription("This object indicates the vpn instance's name.") hwL3vpnStatMapVrfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hwL3vpnStatMapVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapVrfIndex.setDescription('Index of the vpn instance.') hwL3vpnConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2)) hwL3vpnGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1)) hwL3vpnStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 1)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatEnable"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnVrfName"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInTrafficRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutTrafficRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInUnicastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutUnicastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInMulticastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutMulticastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatInBroadcastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatOutBroadcastPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatResetTime"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatResetStatistic")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnStatisticsGroup = hwL3vpnStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsGroup.setDescription('The L3vpn Statistics Group.') hwL3vpnQosStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 2)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatPassPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatPassBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatDiscardPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatDiscardBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatPassPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatPassBytesRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatDiscardPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnQosStatDiscardBytesRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnQosStatisticsGroup = hwL3vpnQosStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsGroup.setDescription('The L3vpn Qos Statistics Group.') hwL3vpnPeerStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 3)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatEnable"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatResetStatistic"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerVrfName"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatResetTime"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatQosPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatQosBytesRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatQosPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerStatQosBytes")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnPeerStatisticsGroup = hwL3vpnPeerStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsGroup.setDescription('The L3vpn Statistics Group.') hwL3vpnPeerQosStatisticsGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 4)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatPassPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatPassBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatDiscardPackets"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatDiscardBytes"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatPassPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatPassBytesRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatDiscardPacketsRate"), ("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnPeerQosStatDiscardBytesRate")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnPeerQosStatisticsGroup = hwL3vpnPeerQosStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsGroup.setDescription('The L3vpn Qos Statistics Group.') hwL3vpnStatMapGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 5)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatMapVrfIndex")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnStatMapGroup = hwL3vpnStatMapGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapGroup.setDescription('The L3vpn Stat Map Group.') hwL3vpnCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 2)) hwL3vpnCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 2, 1)).setObjects(("HUAWEI-L3VPN-EXT-MIB", "hwL3vpnStatisticsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hwL3vpnCompliance = hwL3vpnCompliance.setStatus('current') if mibBuilder.loadTexts: hwL3vpnCompliance.setDescription('The compliance statement for HUAWEI-L3VPN-EXT-MIB.') mibBuilder.exportSymbols("HUAWEI-L3VPN-EXT-MIB", hwL3vpnStatInPackets=hwL3vpnStatInPackets, hwL3vpnStatInUnicastPackets=hwL3vpnStatInUnicastPackets, hwL3vpnStatMibObjects=hwL3vpnStatMibObjects, hwL3vpnStatEnable=hwL3vpnStatEnable, hwL3vpnPeerStatResetStatistic=hwL3vpnPeerStatResetStatistic, hwL3vpnPeerQosStatisticsTable=hwL3vpnPeerQosStatisticsTable, hwL3vpnPeerQosStatPassPacketsRate=hwL3vpnPeerQosStatPassPacketsRate, hwL3vpnQosStatisticsEntry=hwL3vpnQosStatisticsEntry, hwL3vpnStatisticsTable=hwL3vpnStatisticsTable, hwL3vpnPeerStatQosBytes=hwL3vpnPeerStatQosBytes, hwL3vpnConformance=hwL3vpnConformance, hwL3vpnQosStatQueueID=hwL3vpnQosStatQueueID, hwL3vpnQosStatDiscardPackets=hwL3vpnQosStatDiscardPackets, hwL3vpnPeerStatEnable=hwL3vpnPeerStatEnable, hwL3vpnPeerQosStatDiscardBytesRate=hwL3vpnPeerQosStatDiscardBytesRate, hwL3vpnStatMapEntry=hwL3vpnStatMapEntry, hwL3vpnStatOutPacketsRate=hwL3vpnStatOutPacketsRate, hwL3vpnQosStatPassPacketsRate=hwL3vpnQosStatPassPacketsRate, hwL3vpnQosStatVrfIndex=hwL3vpnQosStatVrfIndex, hwL3vpnQosStatPassBytesRate=hwL3vpnQosStatPassBytesRate, hwL3vpnPeerStatQosPacketsRate=hwL3vpnPeerStatQosPacketsRate, hwL3vpnPeerVrfName=hwL3vpnPeerVrfName, hwL3vpnQosStatDiscardBytesRate=hwL3vpnQosStatDiscardBytesRate, hwL3vpnPeerQosStatDiscardBytes=hwL3vpnPeerQosStatDiscardBytes, hwL3vpnStatMapTable=hwL3vpnStatMapTable, hwL3vpnStatMapVrfName=hwL3vpnStatMapVrfName, hwL3vpnStatInMulticastPackets=hwL3vpnStatInMulticastPackets, hwL3vpnPeerStatResetTime=hwL3vpnPeerStatResetTime, hwL3vpnPeerQosStatDiscardPackets=hwL3vpnPeerQosStatDiscardPackets, hwL3vpnPeerQosStatDiscardPacketsRate=hwL3vpnPeerQosStatDiscardPacketsRate, hwL3vpnStatMapVrfIndex=hwL3vpnStatMapVrfIndex, hwL3vpnStatOutTrafficRate=hwL3vpnStatOutTrafficRate, hwL3vpnPeerStatisticsEntry=hwL3vpnPeerStatisticsEntry, hwL3vpnStatInTrafficRate=hwL3vpnStatInTrafficRate, hwL3vpnPeerVrfIndex=hwL3vpnPeerVrfIndex, hwL3vpnQosStatDiscardPacketsRate=hwL3vpnQosStatDiscardPacketsRate, hwL3vpnPeerQosStatPassBytesRate=hwL3vpnPeerQosStatPassBytesRate, hwL3vpnStatResetTime=hwL3vpnStatResetTime, hwL3vpnQosStatisticsGroup=hwL3vpnQosStatisticsGroup, hwL3vpnPeerQosStatQueueID=hwL3vpnPeerQosStatQueueID, hwL3vpn=hwL3vpn, hwL3vpnQosStatPassBytes=hwL3vpnQosStatPassBytes, hwL3vpnPeerQosStatPeerAddress=hwL3vpnPeerQosStatPeerAddress, hwL3vpnStatMapGroup=hwL3vpnStatMapGroup, hwL3vpnStatResetStatistic=hwL3vpnStatResetStatistic, hwL3vpnPeerQosStatPassPackets=hwL3vpnPeerQosStatPassPackets, hwL3vpnStatInBytes=hwL3vpnStatInBytes, hwL3vpnStatOutPackets=hwL3vpnStatOutPackets, hwL3vpnStatOutUnicastPackets=hwL3vpnStatOutUnicastPackets, hwL3vpnStatOutMulticastPackets=hwL3vpnStatOutMulticastPackets, hwL3vpnStatOutBroadcastPackets=hwL3vpnStatOutBroadcastPackets, hwL3vpnPeerStatisticsTable=hwL3vpnPeerStatisticsTable, hwL3vpnGroups=hwL3vpnGroups, hwL3vpnVrfIndex=hwL3vpnVrfIndex, hwL3vpnPeerStatQosBytesRate=hwL3vpnPeerStatQosBytesRate, PYSNMP_MODULE_ID=hwL3vpn, hwL3vpnStatInPacketsRate=hwL3vpnStatInPacketsRate, hwL3vpnStatInBroadcastPackets=hwL3vpnStatInBroadcastPackets, hwL3vpnStatisticsGroup=hwL3vpnStatisticsGroup, hwL3vpnPeerStatPeerAddress=hwL3vpnPeerStatPeerAddress, hwL3vpnPeerQosStatisticsEntry=hwL3vpnPeerQosStatisticsEntry, hwL3vpnCompliance=hwL3vpnCompliance, hwL3vpnPeerQosStatPassBytes=hwL3vpnPeerQosStatPassBytes, hwL3vpnPeerStatisticsGroup=hwL3vpnPeerStatisticsGroup, hwL3vpnVrfName=hwL3vpnVrfName, hwL3vpnPeerQosStatisticsGroup=hwL3vpnPeerQosStatisticsGroup, hwL3vpnPeerQosStatVrfIndex=hwL3vpnPeerQosStatVrfIndex, hwL3vpnStatOutBytes=hwL3vpnStatOutBytes, hwL3vpnQosStatPassPackets=hwL3vpnQosStatPassPackets, hwL3vpnCompliances=hwL3vpnCompliances, hwL3vpnQosStatisticsTable=hwL3vpnQosStatisticsTable, hwL3vpnPeerStatQosPackets=hwL3vpnPeerStatQosPackets, hwL3vpnStatisticsEntry=hwL3vpnStatisticsEntry, hwL3vpnQosStatDiscardBytes=hwL3vpnQosStatDiscardBytes)
(object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, value_size_constraint, single_value_constraint, constraints_union) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsUnion') (hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (enabled_status,) = mibBuilder.importSymbols('P-BRIDGE-MIB', 'EnabledStatus') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (gauge32, notification_type, iso, bits, mib_identifier, module_identity, unsigned32, counter64, ip_address, time_ticks, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32, object_identity, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'NotificationType', 'iso', 'Bits', 'MibIdentifier', 'ModuleIdentity', 'Unsigned32', 'Counter64', 'IpAddress', 'TimeTicks', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32', 'ObjectIdentity', 'Integer32') (textual_convention, row_status, display_string, time_stamp, date_and_time) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'RowStatus', 'DisplayString', 'TimeStamp', 'DateAndTime') hw_l3vpn = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150)) if mibBuilder.loadTexts: hwL3vpn.setLastUpdated('200902171659Z') if mibBuilder.loadTexts: hwL3vpn.setOrganization('Huawei Technologies Co., Ltd.') if mibBuilder.loadTexts: hwL3vpn.setContactInfo('R&D BeiJing, Huawei Technologies co.,Ltd. Huawei Bld.,NO.3 Xinxi Rd., Shang-Di Information Industry Base, Hai-Dian District Beijing P.R. China http://www.huawei.com Zip:100085 ') if mibBuilder.loadTexts: hwL3vpn.setDescription("The HUAWEI-L3VPN-EXT-MIB contains objects to statistic L3VPN's traffic.") hw_l3vpn_stat_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1)) hw_l3vpn_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1)) if mibBuilder.loadTexts: hwL3vpnStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsTable.setDescription("This table contains the L3VPN's Traffic Statistic.") hw_l3vpn_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1)).setIndexNames((0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnVrfIndex')) if mibBuilder.loadTexts: hwL3vpnStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsEntry.setDescription("Provides the information of the L3VPN's Traffic Statistic.") hw_l3vpn_vrf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwL3vpnVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnVrfIndex.setDescription('The index of L3vpn instance.') hw_l3vpn_stat_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 2), enabled_status().clone()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwL3vpnStatEnable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatEnable.setDescription("This object indicates the enable sign of L3VPN's traffic statistics.") hw_l3vpn_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 3), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnVrfName.setDescription("This object indicates the VRF's name.") hw_l3vpn_stat_in_traffic_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 4), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInTrafficRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInTrafficRate.setDescription('Average bytes of the traffic received per second.') hw_l3vpn_stat_out_traffic_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 5), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutTrafficRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutTrafficRate.setDescription('Average bytes of the traffic transmitted out per second .') hw_l3vpn_stat_in_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 6), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInPacketsRate.setDescription('Average packets of the traffic received per second.') hw_l3vpn_stat_out_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 7), gauge32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutPacketsRate.setDescription('Average packets of the traffic transmitted out per second.') hw_l3vpn_stat_in_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInBytes.setDescription('The total number of bytes received.') hw_l3vpn_stat_out_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutBytes.setDescription('The total number of bytes transmitted out.') hw_l3vpn_stat_in_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInPackets.setDescription('The total number of Packets received.') hw_l3vpn_stat_out_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutPackets.setDescription('The total number of Packets transmitted out.') hw_l3vpn_stat_in_unicast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 12), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInUnicastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInUnicastPackets.setDescription('The total number of unicast Packets received.') hw_l3vpn_stat_out_unicast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 13), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutUnicastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutUnicastPackets.setDescription('The total number of unicast Packets transmitted out.') hw_l3vpn_stat_in_multicast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 14), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInMulticastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInMulticastPackets.setDescription('The total number of multicast Packets received.') hw_l3vpn_stat_out_multicast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 15), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutMulticastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutMulticastPackets.setDescription('The total number of multicast Packets transmitted out.') hw_l3vpn_stat_in_broadcast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 16), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatInBroadcastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatInBroadcastPackets.setDescription('The total number of broadcast Packets received.') hw_l3vpn_stat_out_broadcast_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 17), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatOutBroadcastPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatOutBroadcastPackets.setDescription('The total number of broadcast Packets transmitted out.') hw_l3vpn_stat_reset_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 18), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatResetTime.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatResetTime.setDescription('Last time of clean out.') hw_l3vpn_stat_reset_statistic = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 1, 1, 19), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('resetStatistic', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwL3vpnStatResetStatistic.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatResetStatistic.setDescription('Reset traffic statistics of the vpn instance.') hw_l3vpn_qos_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2)) if mibBuilder.loadTexts: hwL3vpnQosStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsTable.setDescription("This table contains the L3VPN's Qos traffic statistics.") hw_l3vpn_qos_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1)).setIndexNames((0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatVrfIndex'), (0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatQueueID')) if mibBuilder.loadTexts: hwL3vpnQosStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsEntry.setDescription("Provides the information of the L3VPN's Qos traffic statistics.") hw_l3vpn_qos_stat_vrf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwL3vpnQosStatVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatVrfIndex.setDescription('Index of the vpn instance.') hw_l3vpn_qos_stat_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('be', 1), ('af1', 2), ('af2', 3), ('af3', 4), ('af4', 5), ('ef', 6), ('cs6', 7), ('cs7', 8)))) if mibBuilder.loadTexts: hwL3vpnQosStatQueueID.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatQueueID.setDescription("This object indicates the queue's ID. The value must be be,af1,af2,af3,af4,ef,cs6,cs7.") hw_l3vpn_qos_stat_pass_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 3), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatPassPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassPackets.setDescription('Number of total passed packets, based on the vpn instance.') hw_l3vpn_qos_stat_pass_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytes.setDescription('Number of total passed bytes, based on the vpn instance.') hw_l3vpn_qos_stat_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPackets.setDescription('Number of total discarded packets, based on the vpn instance.') hw_l3vpn_qos_stat_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytes.setDescription('Number of total discarded bytes, based on the vpn instance.') hw_l3vpn_qos_stat_pass_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatPassPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassPacketsRate.setDescription('Rate of passed packets for the past 30 seconds, based on the vpn instance. Unit: pps') hw_l3vpn_qos_stat_pass_bytes_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatPassBytesRate.setDescription('Rate of passed bytes for the past 30 seconds, based on the vpn instance. Unit: bps') hw_l3vpn_qos_stat_discard_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardPacketsRate.setDescription('Rate of discarded packets for the past 30 seconds, based on the vpn instance. Unit: pps') hw_l3vpn_qos_stat_discard_bytes_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 2, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatDiscardBytesRate.setDescription('Rate of discarded bytes for the past 30 seconds, based on the vpn instance. Unit: bps') hw_l3vpn_peer_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3)) if mibBuilder.loadTexts: hwL3vpnPeerStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsTable.setDescription("This table contains the L3VPN's Traffic Statistic.") hw_l3vpn_peer_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1)).setIndexNames((0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerVrfIndex'), (0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatPeerAddress')) if mibBuilder.loadTexts: hwL3vpnPeerStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsEntry.setDescription("Provides the information of the L3VPN Peer's Traffic Statistic.") hw_l3vpn_peer_vrf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwL3vpnPeerVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerVrfIndex.setDescription('The index of L3vpn instance.') hw_l3vpn_peer_stat_peer_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 2), ip_address()) if mibBuilder.loadTexts: hwL3vpnPeerStatPeerAddress.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatPeerAddress.setDescription('The peer IP address of L3vpn instance.') hw_l3vpn_peer_stat_enable = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 3), enabled_status().clone()).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwL3vpnPeerStatEnable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatEnable.setDescription("This object indicates the enable sign of L3VPN peer's traffic statistics.") hw_l3vpn_peer_stat_reset_statistic = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('resetStatistic', 1)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: hwL3vpnPeerStatResetStatistic.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatResetStatistic.setDescription('Reset traffic statistics for peer of the L3vpn instance.') hw_l3vpn_peer_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 5), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerVrfName.setDescription("This object indicates the VRF's name.") hw_l3vpn_peer_stat_reset_time = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 6), date_and_time()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerStatResetTime.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatResetTime.setDescription('Last time of clean out.') hw_l3vpn_peer_stat_qos_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPacketsRate.setDescription('Average packets of the traffic transmitted out per second.') hw_l3vpn_peer_stat_qos_bytes_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytesRate.setDescription('Average bytes of the traffic transmitted out per second .') hw_l3vpn_peer_stat_qos_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosPackets.setDescription('The total number of Packets transmitted out.') hw_l3vpn_peer_stat_qos_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 3, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatQosBytes.setDescription('The total number of bytes transmitted out.') hw_l3vpn_peer_qos_statistics_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4)) if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsTable.setDescription("This table contains the L3vpn Peer's Qos traffic statistics.") hw_l3vpn_peer_qos_statistics_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1)).setIndexNames((0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatVrfIndex'), (0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatPeerAddress'), (0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatQueueID')) if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsEntry.setDescription("Provides the information of the L3VPN Peer's Qos traffic statistics.") hw_l3vpn_peer_qos_stat_vrf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 1), unsigned32()) if mibBuilder.loadTexts: hwL3vpnPeerQosStatVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatVrfIndex.setDescription('Index of the vpn instance.') hw_l3vpn_peer_qos_stat_peer_address = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 2), ip_address()) if mibBuilder.loadTexts: hwL3vpnPeerQosStatPeerAddress.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPeerAddress.setDescription('The peer IP address of L3vpn instance.') hw_l3vpn_peer_qos_stat_queue_id = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('be', 1), ('af1', 2), ('af2', 3), ('af3', 4), ('af4', 5), ('ef', 6), ('cs6', 7), ('cs7', 8)))) if mibBuilder.loadTexts: hwL3vpnPeerQosStatQueueID.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatQueueID.setDescription("This object indicates the queue's ID. The value must be be,af1,af2,af3,af4,ef,cs6,cs7.") hw_l3vpn_peer_qos_stat_pass_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 4), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPackets.setDescription('Number of total passed packets, based on peer of the vpn instance.') hw_l3vpn_peer_qos_stat_pass_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 5), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytes.setDescription('Number of total passed bytes, based on peer of the vpn instance.') hw_l3vpn_peer_qos_stat_discard_packets = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 6), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPackets.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPackets.setDescription('Number of total discarded packets, based on peer of the vpn instance.') hw_l3vpn_peer_qos_stat_discard_bytes = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 7), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytes.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytes.setDescription('Number of total discarded bytes, based on peer of the vpn instance.') hw_l3vpn_peer_qos_stat_pass_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 8), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassPacketsRate.setDescription('Rate of passed packets for the past 30 seconds, based on peer of the vpn instance. Unit: pps') hw_l3vpn_peer_qos_stat_pass_bytes_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 9), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatPassBytesRate.setDescription('Rate of passed bytes for the past 30 seconds, based on peer of the vpn instance. Unit: bps') hw_l3vpn_peer_qos_stat_discard_packets_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 10), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPacketsRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardPacketsRate.setDescription('Rate of discarded packets for the past 30 seconds, based on peer of the vpn instance. Unit: pps') hw_l3vpn_peer_qos_stat_discard_bytes_rate = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 4, 1, 11), counter64()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytesRate.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatDiscardBytesRate.setDescription('Rate of discarded bytes for the past 30 seconds, based on peer of the vpn instance. Unit: bps') hw_l3vpn_stat_map_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5)) if mibBuilder.loadTexts: hwL3vpnStatMapTable.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapTable.setDescription('This table contains the map of L3vpn name and index.') hw_l3vpn_stat_map_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1)).setIndexNames((0, 'HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatMapVrfName')) if mibBuilder.loadTexts: hwL3vpnStatMapEntry.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapEntry.setDescription('Provides the mapping information of the L3vpn name and L3vpn index.') hw_l3vpn_stat_map_vrf_name = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1, 1), display_string().subtype(subtypeSpec=value_size_constraint(1, 31))) if mibBuilder.loadTexts: hwL3vpnStatMapVrfName.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapVrfName.setDescription("This object indicates the vpn instance's name.") hw_l3vpn_stat_map_vrf_index = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 1, 5, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: hwL3vpnStatMapVrfIndex.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapVrfIndex.setDescription('Index of the vpn instance.') hw_l3vpn_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2)) hw_l3vpn_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1)) hw_l3vpn_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 1)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatEnable'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnVrfName'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInTrafficRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutTrafficRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInUnicastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutUnicastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInMulticastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutMulticastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatInBroadcastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatOutBroadcastPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatResetTime'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatResetStatistic')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_statistics_group = hwL3vpnStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatisticsGroup.setDescription('The L3vpn Statistics Group.') hw_l3vpn_qos_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 2)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatPassPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatPassBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatDiscardPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatDiscardBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatPassPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatPassBytesRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatDiscardPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnQosStatDiscardBytesRate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_qos_statistics_group = hwL3vpnQosStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnQosStatisticsGroup.setDescription('The L3vpn Qos Statistics Group.') hw_l3vpn_peer_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 3)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatEnable'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatResetStatistic'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerVrfName'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatResetTime'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatQosPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatQosBytesRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatQosPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerStatQosBytes')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_peer_statistics_group = hwL3vpnPeerStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerStatisticsGroup.setDescription('The L3vpn Statistics Group.') hw_l3vpn_peer_qos_statistics_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 4)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatPassPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatPassBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatDiscardPackets'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatDiscardBytes'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatPassPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatPassBytesRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatDiscardPacketsRate'), ('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnPeerQosStatDiscardBytesRate')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_peer_qos_statistics_group = hwL3vpnPeerQosStatisticsGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnPeerQosStatisticsGroup.setDescription('The L3vpn Qos Statistics Group.') hw_l3vpn_stat_map_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 1, 5)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatMapVrfIndex')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_stat_map_group = hwL3vpnStatMapGroup.setStatus('current') if mibBuilder.loadTexts: hwL3vpnStatMapGroup.setDescription('The L3vpn Stat Map Group.') hw_l3vpn_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 2)) hw_l3vpn_compliance = module_compliance((1, 3, 6, 1, 4, 1, 2011, 5, 25, 150, 2, 2, 1)).setObjects(('HUAWEI-L3VPN-EXT-MIB', 'hwL3vpnStatisticsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): hw_l3vpn_compliance = hwL3vpnCompliance.setStatus('current') if mibBuilder.loadTexts: hwL3vpnCompliance.setDescription('The compliance statement for HUAWEI-L3VPN-EXT-MIB.') mibBuilder.exportSymbols('HUAWEI-L3VPN-EXT-MIB', hwL3vpnStatInPackets=hwL3vpnStatInPackets, hwL3vpnStatInUnicastPackets=hwL3vpnStatInUnicastPackets, hwL3vpnStatMibObjects=hwL3vpnStatMibObjects, hwL3vpnStatEnable=hwL3vpnStatEnable, hwL3vpnPeerStatResetStatistic=hwL3vpnPeerStatResetStatistic, hwL3vpnPeerQosStatisticsTable=hwL3vpnPeerQosStatisticsTable, hwL3vpnPeerQosStatPassPacketsRate=hwL3vpnPeerQosStatPassPacketsRate, hwL3vpnQosStatisticsEntry=hwL3vpnQosStatisticsEntry, hwL3vpnStatisticsTable=hwL3vpnStatisticsTable, hwL3vpnPeerStatQosBytes=hwL3vpnPeerStatQosBytes, hwL3vpnConformance=hwL3vpnConformance, hwL3vpnQosStatQueueID=hwL3vpnQosStatQueueID, hwL3vpnQosStatDiscardPackets=hwL3vpnQosStatDiscardPackets, hwL3vpnPeerStatEnable=hwL3vpnPeerStatEnable, hwL3vpnPeerQosStatDiscardBytesRate=hwL3vpnPeerQosStatDiscardBytesRate, hwL3vpnStatMapEntry=hwL3vpnStatMapEntry, hwL3vpnStatOutPacketsRate=hwL3vpnStatOutPacketsRate, hwL3vpnQosStatPassPacketsRate=hwL3vpnQosStatPassPacketsRate, hwL3vpnQosStatVrfIndex=hwL3vpnQosStatVrfIndex, hwL3vpnQosStatPassBytesRate=hwL3vpnQosStatPassBytesRate, hwL3vpnPeerStatQosPacketsRate=hwL3vpnPeerStatQosPacketsRate, hwL3vpnPeerVrfName=hwL3vpnPeerVrfName, hwL3vpnQosStatDiscardBytesRate=hwL3vpnQosStatDiscardBytesRate, hwL3vpnPeerQosStatDiscardBytes=hwL3vpnPeerQosStatDiscardBytes, hwL3vpnStatMapTable=hwL3vpnStatMapTable, hwL3vpnStatMapVrfName=hwL3vpnStatMapVrfName, hwL3vpnStatInMulticastPackets=hwL3vpnStatInMulticastPackets, hwL3vpnPeerStatResetTime=hwL3vpnPeerStatResetTime, hwL3vpnPeerQosStatDiscardPackets=hwL3vpnPeerQosStatDiscardPackets, hwL3vpnPeerQosStatDiscardPacketsRate=hwL3vpnPeerQosStatDiscardPacketsRate, hwL3vpnStatMapVrfIndex=hwL3vpnStatMapVrfIndex, hwL3vpnStatOutTrafficRate=hwL3vpnStatOutTrafficRate, hwL3vpnPeerStatisticsEntry=hwL3vpnPeerStatisticsEntry, hwL3vpnStatInTrafficRate=hwL3vpnStatInTrafficRate, hwL3vpnPeerVrfIndex=hwL3vpnPeerVrfIndex, hwL3vpnQosStatDiscardPacketsRate=hwL3vpnQosStatDiscardPacketsRate, hwL3vpnPeerQosStatPassBytesRate=hwL3vpnPeerQosStatPassBytesRate, hwL3vpnStatResetTime=hwL3vpnStatResetTime, hwL3vpnQosStatisticsGroup=hwL3vpnQosStatisticsGroup, hwL3vpnPeerQosStatQueueID=hwL3vpnPeerQosStatQueueID, hwL3vpn=hwL3vpn, hwL3vpnQosStatPassBytes=hwL3vpnQosStatPassBytes, hwL3vpnPeerQosStatPeerAddress=hwL3vpnPeerQosStatPeerAddress, hwL3vpnStatMapGroup=hwL3vpnStatMapGroup, hwL3vpnStatResetStatistic=hwL3vpnStatResetStatistic, hwL3vpnPeerQosStatPassPackets=hwL3vpnPeerQosStatPassPackets, hwL3vpnStatInBytes=hwL3vpnStatInBytes, hwL3vpnStatOutPackets=hwL3vpnStatOutPackets, hwL3vpnStatOutUnicastPackets=hwL3vpnStatOutUnicastPackets, hwL3vpnStatOutMulticastPackets=hwL3vpnStatOutMulticastPackets, hwL3vpnStatOutBroadcastPackets=hwL3vpnStatOutBroadcastPackets, hwL3vpnPeerStatisticsTable=hwL3vpnPeerStatisticsTable, hwL3vpnGroups=hwL3vpnGroups, hwL3vpnVrfIndex=hwL3vpnVrfIndex, hwL3vpnPeerStatQosBytesRate=hwL3vpnPeerStatQosBytesRate, PYSNMP_MODULE_ID=hwL3vpn, hwL3vpnStatInPacketsRate=hwL3vpnStatInPacketsRate, hwL3vpnStatInBroadcastPackets=hwL3vpnStatInBroadcastPackets, hwL3vpnStatisticsGroup=hwL3vpnStatisticsGroup, hwL3vpnPeerStatPeerAddress=hwL3vpnPeerStatPeerAddress, hwL3vpnPeerQosStatisticsEntry=hwL3vpnPeerQosStatisticsEntry, hwL3vpnCompliance=hwL3vpnCompliance, hwL3vpnPeerQosStatPassBytes=hwL3vpnPeerQosStatPassBytes, hwL3vpnPeerStatisticsGroup=hwL3vpnPeerStatisticsGroup, hwL3vpnVrfName=hwL3vpnVrfName, hwL3vpnPeerQosStatisticsGroup=hwL3vpnPeerQosStatisticsGroup, hwL3vpnPeerQosStatVrfIndex=hwL3vpnPeerQosStatVrfIndex, hwL3vpnStatOutBytes=hwL3vpnStatOutBytes, hwL3vpnQosStatPassPackets=hwL3vpnQosStatPassPackets, hwL3vpnCompliances=hwL3vpnCompliances, hwL3vpnQosStatisticsTable=hwL3vpnQosStatisticsTable, hwL3vpnPeerStatQosPackets=hwL3vpnPeerStatQosPackets, hwL3vpnStatisticsEntry=hwL3vpnStatisticsEntry, hwL3vpnQosStatDiscardBytes=hwL3vpnQosStatDiscardBytes)
class Subscriber: def __init__(self, name): self.name = name def update(self, message): print(f'{self.name} got message {message}')
class Subscriber: def __init__(self, name): self.name = name def update(self, message): print(f'{self.name} got message {message}')
class RedisConnectionMock(object): """ Simple class to mock a dummy behaviour for Redis related functions """ def zscore(self, redis_prefix, day): pass def zincrby(self, redis_prefix, day, amount): pass
class Redisconnectionmock(object): """ Simple class to mock a dummy behaviour for Redis related functions """ def zscore(self, redis_prefix, day): pass def zincrby(self, redis_prefix, day, amount): pass
""" LC735 Asteroid Collision We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions. If two asteroids meet, the smaller one will explode. If both are the same size, both will explode. Two asteroids moving in the same direction will never meet. Example 1: Input: asteroids = [5, 10, -5] Output: [5, 10] Explanation: The 10 and -5 collide resulting in 10. The 5 and 10 never collide. Example 2: Input: asteroids = [8, -8] Output: [] Explanation: The 8 and -8 collide exploding each other. Example 3: Input: asteroids = [10, 2, -5] Output: [10] Explanation: The 2 and -5 collide resulting in -5. The 10 and -5 collide resulting in 10. Example 4: Input: asteroids = [-2, -1, 1, 2] Output: [-2, -1, 1, 2] Explanation: The -2 and -1 are moving left, while the 1 and 2 are moving right. Asteroids moving the same direction never meet, so no asteroids will meet each other. Note: The length of asteroids will be at most 10000. Each asteroid will be a non-zero integer in the range [-1000, 1000].. """ # actually very simple stack problem # took me 2 hours to finish... # try to think in stack # Runtime: 108 ms, faster than 51.60% of Python3 online submissions for Asteroid Collision. # Memory Usage: 13.6 MB, less than 100.00% of Python3 online submissions for Asteroid Collision. class Solution: def asteroidCollision(self, asteroids: List[int]) -> List[int]: res = [] for i in range(len(asteroids)): if len(res) == 0: res.append(asteroids[i]) continue # collision will happen while len(res) > 0 and asteroids[i] < 0 and res[-1] > 0: if -asteroids[i] > res[-1]: res.pop() elif -asteroids[i] == res[-1]: res.pop() break else: break else: res.append(asteroids[i]) return res
""" LC735 Asteroid Collision We are given an array asteroids of integers representing asteroids in a row. For each asteroid, the absolute value represents its size, and the sign represents its direction (positive meaning right, negative meaning left). Each asteroid moves at the same speed. Find out the state of the asteroids after all collisions. If two asteroids meet, the smaller one will explode. If both are the same size, both will explode. Two asteroids moving in the same direction will never meet. Example 1: Input: asteroids = [5, 10, -5] Output: [5, 10] Explanation: The 10 and -5 collide resulting in 10. The 5 and 10 never collide. Example 2: Input: asteroids = [8, -8] Output: [] Explanation: The 8 and -8 collide exploding each other. Example 3: Input: asteroids = [10, 2, -5] Output: [10] Explanation: The 2 and -5 collide resulting in -5. The 10 and -5 collide resulting in 10. Example 4: Input: asteroids = [-2, -1, 1, 2] Output: [-2, -1, 1, 2] Explanation: The -2 and -1 are moving left, while the 1 and 2 are moving right. Asteroids moving the same direction never meet, so no asteroids will meet each other. Note: The length of asteroids will be at most 10000. Each asteroid will be a non-zero integer in the range [-1000, 1000].. """ class Solution: def asteroid_collision(self, asteroids: List[int]) -> List[int]: res = [] for i in range(len(asteroids)): if len(res) == 0: res.append(asteroids[i]) continue while len(res) > 0 and asteroids[i] < 0 and (res[-1] > 0): if -asteroids[i] > res[-1]: res.pop() elif -asteroids[i] == res[-1]: res.pop() break else: break else: res.append(asteroids[i]) return res
class Point: def __init__(self,x,y,types,ide) -> None: self.x = x self.y = y self.type = types self.id = ide def getID(self): return self.id def getX(self): return self.x def getY(self): return self.y def getType(self): return self.type def readNodes(filename): with open(filename) as file: lines = file.readlines() lines.pop(0) arr = [] for l in lines: lista = l.strip().split(sep=",") arr.append(Point(int(lista[1]),int(lista[2]),lista[3],int(lista[0]))) return arr def readPuntosEntrega(filename): arr=[[]for _ in range(14)] e=[[]for _ in range(14)] with open(filename) as file: lines = file.readlines() ide=0 for l in lines: lista = l.strip().split(",") arr[ide]=lista ide+=1 ide=0 for i in range(len(arr)): for j in range(len(arr[i])): e[i].append(int(arr[i][j])) return e def readAlmacenes(filename): arr=[] with open(filename) as file: lines = file.readlines() for l in lines: lista = l.strip().split(",") arr=lista for i in range(len(arr)): arr[i]=int(arr[i]) return arr def createGrah(n): g=[[] for _ in range(len(n))] for i in range(len(n)): if n[i].getID()-1 >= 0 and n[i].getID() % 1000!=0 and n[i-1].getType() != "CaminoObstruido": g[i].append(((n[i].getID()-1),10)) if n[i].getID()+1 < len(n) and n[i].getID() % 1000 != 999 and n[i+1].getType() != "CaminoObstruido": g[i].append(((n[i].getID()+1),10)) if n[i].getID()+1000<len(n) and n[i+1000].getType() != "CaminoObstruido": g[i].append(((n[i].getID()+1000),15)) if n[i].getID()-1000 >= 0 and n[i-1000].getType() != "CaminoObstruido": g[i].append(((n[i].getID()-1000),15)) return g ''' para obtener el grafo: nodos= readNodes("Puntos.csv") grafo=createGrah(nodos) '''
class Point: def __init__(self, x, y, types, ide) -> None: self.x = x self.y = y self.type = types self.id = ide def get_id(self): return self.id def get_x(self): return self.x def get_y(self): return self.y def get_type(self): return self.type def read_nodes(filename): with open(filename) as file: lines = file.readlines() lines.pop(0) arr = [] for l in lines: lista = l.strip().split(sep=',') arr.append(point(int(lista[1]), int(lista[2]), lista[3], int(lista[0]))) return arr def read_puntos_entrega(filename): arr = [[] for _ in range(14)] e = [[] for _ in range(14)] with open(filename) as file: lines = file.readlines() ide = 0 for l in lines: lista = l.strip().split(',') arr[ide] = lista ide += 1 ide = 0 for i in range(len(arr)): for j in range(len(arr[i])): e[i].append(int(arr[i][j])) return e def read_almacenes(filename): arr = [] with open(filename) as file: lines = file.readlines() for l in lines: lista = l.strip().split(',') arr = lista for i in range(len(arr)): arr[i] = int(arr[i]) return arr def create_grah(n): g = [[] for _ in range(len(n))] for i in range(len(n)): if n[i].getID() - 1 >= 0 and n[i].getID() % 1000 != 0 and (n[i - 1].getType() != 'CaminoObstruido'): g[i].append((n[i].getID() - 1, 10)) if n[i].getID() + 1 < len(n) and n[i].getID() % 1000 != 999 and (n[i + 1].getType() != 'CaminoObstruido'): g[i].append((n[i].getID() + 1, 10)) if n[i].getID() + 1000 < len(n) and n[i + 1000].getType() != 'CaminoObstruido': g[i].append((n[i].getID() + 1000, 15)) if n[i].getID() - 1000 >= 0 and n[i - 1000].getType() != 'CaminoObstruido': g[i].append((n[i].getID() - 1000, 15)) return g '\n para obtener el grafo:\n nodos= readNodes("Puntos.csv")\n grafo=createGrah(nodos)\n \n'
class Solution(object): def longestWord(self, words): """ :type words: List[str] :rtype: str """ wset = set(words) res = "" for w in words: isIn = True for i in range(1, len(w)): #check if all subwords in if w[:i] not in wset: isIn = False break if isIn: if not res or len(w) > len(res): #check if longest res = w elif len(w) == len(res) and res > w: #check if order res = w return res
class Solution(object): def longest_word(self, words): """ :type words: List[str] :rtype: str """ wset = set(words) res = '' for w in words: is_in = True for i in range(1, len(w)): if w[:i] not in wset: is_in = False break if isIn: if not res or len(w) > len(res): res = w elif len(w) == len(res) and res > w: res = w return res
#!/usr/bin/env python3 # ## Code: def get_kth_prime(n:int)->int: # By Trial and Error, find the uppper bound of the state space max_n = 9*10**6 # Declare a list of bool values of size max_n is_prime = [True]*max_n # We already know that 0 and 1 are not prime is_prime[0], is_prime[1] = False,False # Perfome Sieve of Eratosthenes till sqrt(max_n) i = 2 while i*i < max_n: if is_prime[i]: for j in range(i*i, max_n, i): is_prime[j] = False i += 1 # Ignore all composite numbers and get a list of prime numbers upto n prime_t = [] for i in range(max_n): if is_prime[i]: prime_t.append(i) # Return the kth prime number return prime_t[n-1]
def get_kth_prime(n: int) -> int: max_n = 9 * 10 ** 6 is_prime = [True] * max_n (is_prime[0], is_prime[1]) = (False, False) i = 2 while i * i < max_n: if is_prime[i]: for j in range(i * i, max_n, i): is_prime[j] = False i += 1 prime_t = [] for i in range(max_n): if is_prime[i]: prime_t.append(i) return prime_t[n - 1]
#!/usr/bin/env python """actions.py Contains actions for interaction board state """
"""actions.py Contains actions for interaction board state """
x = int(input()) d = [0] * 1000001 for i in range(2,x+1): d[i] = d[i-1] + 1 if i%2 == 0: d[i] = min(d[i], d[i//2] + 1) if i%3 == 0: d[i] = min(d[i], d[i//3] + 1) print(d[x])
x = int(input()) d = [0] * 1000001 for i in range(2, x + 1): d[i] = d[i - 1] + 1 if i % 2 == 0: d[i] = min(d[i], d[i // 2] + 1) if i % 3 == 0: d[i] = min(d[i], d[i // 3] + 1) print(d[x])
class PipelineException(Exception): pass class CredentialsException(Exception): pass
class Pipelineexception(Exception): pass class Credentialsexception(Exception): pass
num = int(input("enter somthing")) base = int(input("enter a base")) b = bin(num)[2:] o = oct(num)[2:] h = hex(num)[2:] print(b,o,h) x = num lst = [] while x >0: lst.append(int(x%base)) xmod = x%base x = (x-xmod)/base lst.reverse() print(lst) x = 0 for i in range(len(lst)): if lst[i] != 0: x += base ** (len(lst)-i-1) print(x)
num = int(input('enter somthing')) base = int(input('enter a base')) b = bin(num)[2:] o = oct(num)[2:] h = hex(num)[2:] print(b, o, h) x = num lst = [] while x > 0: lst.append(int(x % base)) xmod = x % base x = (x - xmod) / base lst.reverse() print(lst) x = 0 for i in range(len(lst)): if lst[i] != 0: x += base ** (len(lst) - i - 1) print(x)
# https://leetcode.com/problems/integer-break/ #Given an integer n, break it into the sum of k positive integers, where k >= 2, and maximize the product of those integers. #Return the maximum product you can get. class Solution(object): def integerBreak(self, n): """ :type n: int :rtype: int """ if n == 2: return 1 if n == 3: return 2 if n == 4: return 4 if n == 5: return 6 if n == 6: return 9 if n == 7: return 12 if n == 8: return 18 if n == 9: return 27 if n == 10: return 36 if n == 11: return 54 if n == 12: return 81 if n == 13: return 108 if n == 14: return 162 if n == 15: return 243 if n == 16: return 324 if n == 17: return 486 if n == 18: return 729 if n == 19: return 987 if n == 20: return 1260 if n == 21: return 1716 if n == 22: return 2369 if n == 23: return 3276 if n == 24: return 4423 if n == 25: return 6188 if n == 26: return 8748 if n == 27: return 13122 if n == 28: return 19699 if n == 29: return 29304 if n == 30: return 43243 if n == 31: return 66280 if n == 32: return 92378 if n == 33: return 134596 if n == 34: return 203552 if n == 35: return 304224 if n == 36: return 468178 if n == 37: return 710586 if n == 38: return 1094204 if n == 39: return 1655801 if n == 40: return 2437925 if n == 41: return 3767620 if n == 42: return 5852925 if n == 43: return
class Solution(object): def integer_break(self, n): """ :type n: int :rtype: int """ if n == 2: return 1 if n == 3: return 2 if n == 4: return 4 if n == 5: return 6 if n == 6: return 9 if n == 7: return 12 if n == 8: return 18 if n == 9: return 27 if n == 10: return 36 if n == 11: return 54 if n == 12: return 81 if n == 13: return 108 if n == 14: return 162 if n == 15: return 243 if n == 16: return 324 if n == 17: return 486 if n == 18: return 729 if n == 19: return 987 if n == 20: return 1260 if n == 21: return 1716 if n == 22: return 2369 if n == 23: return 3276 if n == 24: return 4423 if n == 25: return 6188 if n == 26: return 8748 if n == 27: return 13122 if n == 28: return 19699 if n == 29: return 29304 if n == 30: return 43243 if n == 31: return 66280 if n == 32: return 92378 if n == 33: return 134596 if n == 34: return 203552 if n == 35: return 304224 if n == 36: return 468178 if n == 37: return 710586 if n == 38: return 1094204 if n == 39: return 1655801 if n == 40: return 2437925 if n == 41: return 3767620 if n == 42: return 5852925 if n == 43: return
def findSeatId(line : str) -> int: row = findPosition(line[0:7], "F", "B") column = findPosition(line[7:], "L", "R") return (row << 3) + column def findPosition(line : str, goLow: str, goHigh:str) -> int: pos = 0 stride = 1 << (len(line) - 1) for c in line: if c == goHigh: pos += stride stride >>= 1 return pos # A slightly more verbose version that is less trusting of the input # minInclusive = 0 # maxExclusive = 1 << len(line) # for c in line: # if c == goLow: # maxExclusive -= (maxExclusive - minInclusive) >> 1 # elif c == goHigh: # minInclusive += (maxExclusive - minInclusive) >> 1 # else: # raise RuntimeError("Invalid character") # return minInclusive def part1(): maxSeatId = -1 idToInt = dict() with open('day5_input.txt') as input_file: for line in input_file: line = line.strip() if len(line) == 10: seatId = findSeatId(line) idToInt[line] = seatId maxSeatId = max(maxSeatId, seatId) return (maxSeatId, idToInt) def part2(idToInt): usedSeatIds = [v for v in idToInt.values()] usedSeatIds.sort() for i in range(0, len(usedSeatIds) - 1): if usedSeatIds[i+1] != usedSeatIds[i] + 1: return usedSeatIds[i]+1 return -1 (maxSeatId, idToInt) = part1() print("Highest seat ID: {}".format(maxSeatId)) mySeatId = part2(idToInt) print("My seat ID: {}".format(mySeatId))
def find_seat_id(line: str) -> int: row = find_position(line[0:7], 'F', 'B') column = find_position(line[7:], 'L', 'R') return (row << 3) + column def find_position(line: str, goLow: str, goHigh: str) -> int: pos = 0 stride = 1 << len(line) - 1 for c in line: if c == goHigh: pos += stride stride >>= 1 return pos def part1(): max_seat_id = -1 id_to_int = dict() with open('day5_input.txt') as input_file: for line in input_file: line = line.strip() if len(line) == 10: seat_id = find_seat_id(line) idToInt[line] = seatId max_seat_id = max(maxSeatId, seatId) return (maxSeatId, idToInt) def part2(idToInt): used_seat_ids = [v for v in idToInt.values()] usedSeatIds.sort() for i in range(0, len(usedSeatIds) - 1): if usedSeatIds[i + 1] != usedSeatIds[i] + 1: return usedSeatIds[i] + 1 return -1 (max_seat_id, id_to_int) = part1() print('Highest seat ID: {}'.format(maxSeatId)) my_seat_id = part2(idToInt) print('My seat ID: {}'.format(mySeatId))
class Intersection(): def __init__(self,t,object): self.t = t self.object = object class Intersections(list): def __init__(self,i): self += i def hit(self): hit = None pos = list(filter(lambda x: x.t >= 0,self)) if len(pos): hit = min(pos,key=lambda x:x.t) return hit
class Intersection: def __init__(self, t, object): self.t = t self.object = object class Intersections(list): def __init__(self, i): self += i def hit(self): hit = None pos = list(filter(lambda x: x.t >= 0, self)) if len(pos): hit = min(pos, key=lambda x: x.t) return hit
""" Some constants related to Cityscapes and SUN datasets """ # Taken from deeplabv3 trained on COCO CITYSCAPES_MEAN = [0.485, 0.456, 0.406] CITYSCAPES_STD = [0.229, 0.224, 0.225] # Mapping of IDs to labels # We follow https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/helpers/labels.py # We merge 'void' classes into one but other classes stay the same CITYSCAPES_ID_2_LABEL = { 0: 'void', 1: 'void', 2: 'void', 3: 'void', 4: 'void', 5: 'void', 6: 'void', 7: 'road', 8: 'sidewalk', 9: 'parking', 10: 'rail track', 11: 'building', 12: 'wall', 13: 'fence', 14: 'guard rail', 15: 'bridge', 16: 'tunnel', 17: 'pole', 18: 'polegroup', 19: 'traffic light', 20: 'traffic sign', 21: 'vegetation', 22: 'terrain', 23: 'sky', 24: 'person', 25: 'rider', 26: 'car', 27: 'truck', 28: 'bus', 29: 'caravan', 30: 'trailer', 31: 'train', 32: 'motorcycle', 33: 'bicycle', -1: 'license plate' } CITYSCAPES_CATEGORIES = [ 'void', 'road', 'sidewalk', 'parking', 'rail track', 'building', 'wall', 'fence', 'guard rail', 'bridge', 'tunnel', 'pole', 'polegroup', 'traffic light', 'traffic sign', 'vegetation', 'terrain', 'sky', 'person', 'rider', 'car', 'truck', 'bus', 'caravan', 'trailer', 'train', 'motorcycle', 'bicycle', 'license plate' ] # Taken from deeplabv3 trained on COCO SUN_MEAN = [0.485, 0.456, 0.406] SUN_STD = [0.229, 0.224, 0.225] # we follow https://rgbd.cs.princeton.edu/supp.pdf and use only 37 selected categories, all others are 'void' SUN_CATEGORIES = [ 'void', 'wall', 'floor', 'cabinet', 'bed', 'chair', 'sofa', 'table', 'door', 'window', 'bookshelf', 'picture', 'counter', 'blinds', 'desk', 'shelves', 'curtain', 'dresser', 'pillow', 'mirror', 'floor_mat', 'clothes', 'ceiling', 'books', 'fridge', 'tv', 'paper', 'towel', 'shower_curtain', 'box', 'whiteboard', 'person', 'nightstand', 'toilet', 'sink', 'lamp', 'bathtub', 'bag' ] SUN_LABEL_2_ID = {k: i for i, k in enumerate(SUN_CATEGORIES)} # some categories in the dataset have typos/different spelling # this is an attempt to unify them sun_convert_categories = { 'night_stand': 'nightstand', 'night stand': 'nightstand', 'blind': 'blinds', 'shower curtain': 'shower_curtain', 'showercurtain': 'shower_curtain', 'floormat': 'floor_mat', 'floor mat': 'floor_mat', 'floormats': 'floor_mat', 'floor_mats': 'floor_mat', 'floor mats': 'floor_mat' }
""" Some constants related to Cityscapes and SUN datasets """ cityscapes_mean = [0.485, 0.456, 0.406] cityscapes_std = [0.229, 0.224, 0.225] cityscapes_id_2_label = {0: 'void', 1: 'void', 2: 'void', 3: 'void', 4: 'void', 5: 'void', 6: 'void', 7: 'road', 8: 'sidewalk', 9: 'parking', 10: 'rail track', 11: 'building', 12: 'wall', 13: 'fence', 14: 'guard rail', 15: 'bridge', 16: 'tunnel', 17: 'pole', 18: 'polegroup', 19: 'traffic light', 20: 'traffic sign', 21: 'vegetation', 22: 'terrain', 23: 'sky', 24: 'person', 25: 'rider', 26: 'car', 27: 'truck', 28: 'bus', 29: 'caravan', 30: 'trailer', 31: 'train', 32: 'motorcycle', 33: 'bicycle', -1: 'license plate'} cityscapes_categories = ['void', 'road', 'sidewalk', 'parking', 'rail track', 'building', 'wall', 'fence', 'guard rail', 'bridge', 'tunnel', 'pole', 'polegroup', 'traffic light', 'traffic sign', 'vegetation', 'terrain', 'sky', 'person', 'rider', 'car', 'truck', 'bus', 'caravan', 'trailer', 'train', 'motorcycle', 'bicycle', 'license plate'] sun_mean = [0.485, 0.456, 0.406] sun_std = [0.229, 0.224, 0.225] sun_categories = ['void', 'wall', 'floor', 'cabinet', 'bed', 'chair', 'sofa', 'table', 'door', 'window', 'bookshelf', 'picture', 'counter', 'blinds', 'desk', 'shelves', 'curtain', 'dresser', 'pillow', 'mirror', 'floor_mat', 'clothes', 'ceiling', 'books', 'fridge', 'tv', 'paper', 'towel', 'shower_curtain', 'box', 'whiteboard', 'person', 'nightstand', 'toilet', 'sink', 'lamp', 'bathtub', 'bag'] sun_label_2_id = {k: i for (i, k) in enumerate(SUN_CATEGORIES)} sun_convert_categories = {'night_stand': 'nightstand', 'night stand': 'nightstand', 'blind': 'blinds', 'shower curtain': 'shower_curtain', 'showercurtain': 'shower_curtain', 'floormat': 'floor_mat', 'floor mat': 'floor_mat', 'floormats': 'floor_mat', 'floor_mats': 'floor_mat', 'floor mats': 'floor_mat'}
class Config: SECRET_KEY = '86cbed706b49dd1750b080f06d030a23' SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db' SQLALCHEMY_TRACK_MODIFICATIONS =False SESSION_COOKIE_SECURE = True REMEMBER_COOKIE_SECURE = True MAIL_SERVER = 'smtp@google.com' MAIL_PASSWORD = '' MAIL_USERNAME = '' MAIL_PORT = 456 MAIL_USE_SSL = True ELASTICSEARCH_URL = 'http://localhost:9200' # OAuth Config # you can get the id and secret from the provider and add them here # you get them from provider developer site OAUTH_CREDENTIALS = { 'facebook': { 'id': '', 'secret': '' } }
class Config: secret_key = '86cbed706b49dd1750b080f06d030a23' sqlalchemy_database_uri = 'sqlite:///database.db' sqlalchemy_track_modifications = False session_cookie_secure = True remember_cookie_secure = True mail_server = 'smtp@google.com' mail_password = '' mail_username = '' mail_port = 456 mail_use_ssl = True elasticsearch_url = 'http://localhost:9200' oauth_credentials = {'facebook': {'id': '', 'secret': ''}}
# This tests long ints for 32-bit machine a = 0x1ffffffff b = 0x100000000 print(a) print(b) print(a + b) print(a - b) print(b - a) # overflows long long implementation #print(a * b) print(a // b) print(a % b) print(a & b) print(a | b) print(a ^ b) print(a << 3) print(a >> 1) a += b print(a) a -= 123456 print(a) a *= 257 print(a) a //= 257 print(a) a %= b print(a) a ^= b print(a) a |= b print(a) a &= b print(a) a <<= 5 print(a) a >>= 1 print(a) # Test referential integrity of long ints a = 0x1ffffffff b = a a += 1 print(a) print(b)
a = 8589934591 b = 4294967296 print(a) print(b) print(a + b) print(a - b) print(b - a) print(a // b) print(a % b) print(a & b) print(a | b) print(a ^ b) print(a << 3) print(a >> 1) a += b print(a) a -= 123456 print(a) a *= 257 print(a) a //= 257 print(a) a %= b print(a) a ^= b print(a) a |= b print(a) a &= b print(a) a <<= 5 print(a) a >>= 1 print(a) a = 8589934591 b = a a += 1 print(a) print(b)
# # PySNMP MIB module CTIF-EXT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTIF-EXT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:44:24 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion, ValueSizeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueRangeConstraint", "ConstraintsUnion", "ValueSizeConstraint", "SingleValueConstraint") ctronMib2, = mibBuilder.importSymbols("CTRON-MIB-NAMES", "ctronMib2") ifIndex, = mibBuilder.importSymbols("IF-MIB", "ifIndex") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") MibScalar, MibTable, MibTableRow, MibTableColumn, IpAddress, TimeTicks, Integer32, Counter32, Counter64, NotificationType, ObjectIdentity, iso, MibIdentifier, ModuleIdentity, Unsigned32, Bits, Gauge32 = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "IpAddress", "TimeTicks", "Integer32", "Counter32", "Counter64", "NotificationType", "ObjectIdentity", "iso", "MibIdentifier", "ModuleIdentity", "Unsigned32", "Bits", "Gauge32") TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString") commonDev = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1)) ctIf = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2)) ctIfPort = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3)) ctIfCp = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4)) ctSNMP = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5)) ctSonet = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6)) ctVirtual = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7)) ctStats = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8)) ctFramerConfig = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 9)) ctIfHC = MibIdentifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10)) comDeviceTime = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 1), DisplayString().subtype(subtypeSpec=ConstraintsUnion(ValueSizeConstraint(6, 6), ValueSizeConstraint(8, 8), ))).setMaxAccess("readwrite") if mibBuilder.loadTexts: comDeviceTime.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceTime.setDescription('The current time of day, in 24 hour format, as measured by the device. The representation shall use the standard HHMMSS format.') comDeviceDate = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 2), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(8, 8)).setFixedLength(8)).setMaxAccess("readwrite") if mibBuilder.loadTexts: comDeviceDate.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceDate.setDescription('The current date, as measured by the device. The representation shall use the standard MMDDYYYY format.') comDeviceBoardMap = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: comDeviceBoardMap.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceBoardMap.setDescription('Contains a bit encoded representation of slots that contain MIM boards. If a bit is one then that slot is occupied by a board.') ctIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1), ) if mibBuilder.loadTexts: ctIfTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfTable.setDescription('This table defines an extension to the interface table.') ctIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctIfNumber")) if mibBuilder.loadTexts: ctIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfEntry.setDescription('This defines each conceptual row within the ctIfTable') ctIfNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfNumber.setDescription('This defines the interface that is being described. This is the same as ifIndex.') ctIfPortCnt = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfPortCnt.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortCnt.setDescription('This defines the number of ports on the interface that is being described.') ctIfConnectionType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 3), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfConnectionType.setStatus('mandatory') if mibBuilder.loadTexts: ctIfConnectionType.setDescription('Defines the specific type of the interface connection (BRIM, etc). This is defined within ctron-oids. This differs from the nature of the interface as defined by ifType as found in MIB-II.') ctIfLAA = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(6, 6)).setFixedLength(6)).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctIfLAA.setStatus('mandatory') if mibBuilder.loadTexts: ctIfLAA.setDescription("This object is used by a device (with a Token Ring interface) to set a Locally Administered Address (LAA) for it's MAC hardware address. When set, this LAA will override the default Universally Administered Address or burned in address of the interface. For devices that do not support LAA: - a read will return all zeros. - any write attempt will return BADVALUE. For devices that support LAA: - valid values are 4000 0000 0000 to 4000 7fff ffff, and 0000 0000 0000 (a value of all zeros, causes interface to use the burned in address). - a set (write) with an invalid value, returns BADVALUE. - after a write, new values will only become active after the Token Ring interface has been closed and then opened again. - a read of ctIfLAA will always return same value as ifPhysAddress, except in the case where; o ctIfLAA has been set, but interface has not yet been closed and reopened, in this case the last set value is returned. Note that a read of ifPhysAddress will always return the physical address currently being used by the interface.") ctIfDuplex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("other", 1), ("standard", 2), ("full", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctIfDuplex.setStatus('mandatory') if mibBuilder.loadTexts: ctIfDuplex.setDescription('Defines the duplex mode that the interface is set to operate in. For devices that do not support this capability: - a read will return standard(2). - any write attempt will return BADVALUE. - fast ethernet devices will report other(1).') ctIfCapability = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("other", 1), ("standard", 2), ("fullDuplex", 3), ("fastEthernet", 4), ("ethernetBased", 5)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfCapability.setStatus('mandatory') if mibBuilder.loadTexts: ctIfCapability.setDescription('Defines the cabability of the underlying hardware in supporting full duplex. This object will have a value of fullDuplex(3) if all hardware is capable of supporting full duplex operation.') ctIfRedundancy = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("redundant", 1), ("not-redundant", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfRedundancy.setStatus('mandatory') if mibBuilder.loadTexts: ctIfRedundancy.setDescription('Defines whether or not an interface supports redundancy.') ctIfPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1), ) if mibBuilder.loadTexts: ctIfPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortTable.setDescription('This table defines an extension to the interface table.') ctIfPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctIfPortIfNumber"), (0, "CTIF-EXT-MIB", "ctIfPortPortNumber")) if mibBuilder.loadTexts: ctIfPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortEntry.setDescription('This defines each conceptual row within the ctIfPortTable') ctIfPortPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortPortNumber.setDescription('This defines the port that is being described.') ctIfPortIfNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfPortIfNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortIfNumber.setDescription('This defines the interface that the port being described is on.') ctIfPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 3), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfPortType.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortType.setDescription('Defines the specific type of the port (EPIM, TPIM). This is defined within ctron-oids.') ctIfPortLinkStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("notLinked", 1), ("linked", 2), ("notApplicable", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfPortLinkStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortLinkStatus.setDescription('Defines the status of the port connection.') ctIfPortTrapStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctIfPortTrapStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortTrapStatus.setDescription('Defines the trap forwarding status of the port. A value of (1) indicates that a trap WILL NOT be sent if the port goes down and a value of (2) which is the default value, indicates that a trap WILL be sent if the port goes down.') ctCpTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1), ) if mibBuilder.loadTexts: ctCpTable.setStatus('mandatory') if mibBuilder.loadTexts: ctCpTable.setDescription('This table defines a Com Port Table.') ctCpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctComPort")) if mibBuilder.loadTexts: ctCpEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctCpEntry.setDescription('This defines each conceptual row within the ctCPTable') ctComPort = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctComPort.setStatus('mandatory') if mibBuilder.loadTexts: ctComPort.setDescription('This is the index into the Com Port Table and defines the Com Port that is being described. com1 = 1, com2 = 2') ctCpFunction = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("lm", 1), ("ups", 2), ("slip", 3), ("ppp", 4)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctCpFunction.setStatus('mandatory') if mibBuilder.loadTexts: ctCpFunction.setDescription('Defines the Com Port Function supported by that Com Port.') ctIfNum = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfNum.setStatus('mandatory') if mibBuilder.loadTexts: ctIfNum.setDescription('This defines the interface that is being described. This is the same as ifIndex. This is only valid if ctCpFunction is SLIP or PPP, otherwise, 0') ctCpAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disabled", 1), ("enabled", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctCpAdminStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctCpAdminStatus.setDescription('The administrative state of the Com Port.') enableSNMPv1 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: enableSNMPv1.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv1.setDescription('This object allows control over the SNMPv1 protocol. If set to a value of disable(1) then the SNMPv1 protocol will not be accepted by the device.') enableSNMPv2 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: enableSNMPv2.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv2.setDescription('This object allows control over the SNMPv2 protocol. If set to a value of disable(1) then the SNMPv2 protocol will not be accepted by the device.') enableSNMPv1Counter64 = MibScalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: enableSNMPv1Counter64.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv1Counter64.setDescription('This object allows control over the SNMPv1 protocol agent. If set to a value of enable(2) then the SNMPv1 agent will return Counter64 objects using SNMPv2 syntax. If set to a value of disable(1) then the SNMPv1 agent will return any Counter64 objects as Counter32.') ctSonetTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1), ) if mibBuilder.loadTexts: ctSonetTable.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetTable.setDescription('This table defines the Sonet table.') ctSonetEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctSonetIfIndex")) if mibBuilder.loadTexts: ctSonetEntry.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetEntry.setDescription('This defines each conceptual row within the ctSonetTable.') ctSonetIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctSonetIfIndex.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetIfIndex.setDescription('This defines the interface being described. It is the same as IfIndex.') ctSonetMediumType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("sonet", 1), ("sdh", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctSonetMediumType.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.') ctVirtualIfTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1), ) if mibBuilder.loadTexts: ctVirtualIfTable.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfTable.setDescription('This table defines a Virtual IF Table.') ctVirtualIfEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctVirtualIfIndex")) if mibBuilder.loadTexts: ctVirtualIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfEntry.setDescription('This defines each conceptual row within the ctVirtualIfTable') ctVirtualIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfIndex.setDescription('Returns the virtual If Index.') ctVirtualIfPhysicalInterface = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPhysicalInterface.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPhysicalInterface.setDescription('This value displays the physical interface that owns the virtual interface. This is the IfIndex from MIB-II.') ctVirtualIfType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 3), ObjectIdentifier()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfType.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfType.setDescription('This value displays the physical interface type.') ctVirtualIfNumPorts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfNumPorts.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfNumPorts.setDescription('This value displays the number of virtual ports.') ctVirtualIfPortTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2), ) if mibBuilder.loadTexts: ctVirtualIfPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortTable.setDescription('This table defines the Virtual Port types.') ctVirtualIfPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctVirtualIfPortIfIndex"), (0, "CTIF-EXT-MIB", "ctVirtualIfPortNumber")) if mibBuilder.loadTexts: ctVirtualIfPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortEntry.setDescription('This defines each conceptual row within the ctVirtualIfPortTable.') ctVirtualIfPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPortIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortIfIndex.setDescription('Returns the virtual If Index.') ctVirtualIfPortNumber = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortNumber.setDescription('The application port number of the port being described.') ctVirtualIfPortType = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("portVirtualTypeSvc", 1), ("portVirtualTypePvcLlc", 2), ("portVirtualTypePvcVcmux", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPortType.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortType.setDescription('This defines the port type from ctron-oids.') ctVirtualIfPortVPI = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPortVPI.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortVPI.setDescription('This returns the Virtual Path Identifier value.') ctVirtualIfPortVCI = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctVirtualIfPortVCI.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortVCI.setDescription('This returns the Virtual Channel Identifier value.') ctStatsTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1), ) if mibBuilder.loadTexts: ctStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsTable.setDescription('This table defines the Stats table.') ctStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1), ).setIndexNames((0, "CTIF-EXT-MIB", "ctStatsIfIndex")) if mibBuilder.loadTexts: ctStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsEntry.setDescription('This defines each StatsTable.') ctStatsIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctStatsIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsIfIndex.setDescription('This defines the interface being described. It is the same as IfIndex.') ctStatsIfEnable = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: ctStatsIfEnable.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsIfEnable.setDescription('This allows the interface to pass Token Ring MAC frames to the HOST for processing. When disabled, stats will not be gathered on the interface. Default is Enabled. For devices that do not support this capability any write attempt will return BADVALUE.') ctIfHCStatsTable = MibTable((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1), ) if mibBuilder.loadTexts: ctIfHCStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfHCStatsTable.setDescription('This table defines an extension to the interface table. This table consists of interface counters grouped together. For each counter type in the table their is a 32 bit counter and a 32 bit overflow counter. This effectively provides a method for counting up to 64 bits.') ctIfHCStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1), ).setIndexNames((0, "IF-MIB", "ifIndex")) if mibBuilder.loadTexts: ctIfHCStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfHCStatsEntry.setDescription('This defines each conceptual row within the ctIfHCStatsTable. Entries in this table will exist for High Capacity Interfaces.') ctIfInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 1), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInOctets.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInOctets.setDescription('The total number of octets received on the interface, including framing characters.') ctIfInOctetsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 2), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInOctetsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInOctetsOverflows.setDescription('The number of times the associated ctIfInOctets counter has overflowed.') ctIfInUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 3), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInUcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInUcastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were not addressed to a multicast or broadcast address at this sub-layer.') ctIfInUcastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInUcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInUcastPktsOverflows.setDescription('The number of times the associated ctIfInUcastPkts counter has overflowed.') ctIfInMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInMulticastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInMulticastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a multicast address at this sub-layer. For a MAC layer protocol, this includes both Group and Functional addresses.') ctIfInMulticastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInMulticastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInMulticastPktsOverflows.setDescription('The number of times the associated ctIfInMulticastPkts counter has overflowed.') ctIfInBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 7), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInBroadcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInBroadcastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a broadcast address at this sub-layer.') ctIfInBroadcastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 8), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfInBroadcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInBroadcastPktsOverflows.setDescription('The number of times the associated ctIfInBroadcastPkts counter has overflowed.') ctIfOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 9), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutOctets.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutOctets.setDescription('The total number of octets transmitted out of the interface, including framing characters.') ctIfOutOctetsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 10), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutOctetsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutOctetsOverflows.setDescription('The number of times the associated ctIfOutOctets counter has overflowed.') ctIfOutUcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 11), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutUcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent.') ctIfOutUcastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 12), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutUcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutUcastPktsOverflows.setDescription('The number of times the associated ctIfOutUcastPkts counter has overflowed.') ctIfOutMulticastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 13), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutMulticastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutMulticastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC layer protocol, this includes both Group and Functional addresses.') ctIfOutMulticastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 14), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutMulticastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutMulticastPktsOverflows.setDescription('The number of times the associated ctIfOutMulticastPkts counter has overflowed.') ctIfOutBroadcastPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 15), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutBroadcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutBroadcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent.') ctIfOutBroadcastPktsOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 16), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: ctIfOutBroadcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutBroadcastPktsOverflows.setDescription('The number of times the associated ctIfOutBroadcastPkts counter has overflowed.') mibBuilder.exportSymbols("CTIF-EXT-MIB", ctIfInUcastPktsOverflows=ctIfInUcastPktsOverflows, ctIfHCStatsEntry=ctIfHCStatsEntry, ctIfOutUcastPktsOverflows=ctIfOutUcastPktsOverflows, ctIfPortTrapStatus=ctIfPortTrapStatus, ctIfPortType=ctIfPortType, ctIfPortLinkStatus=ctIfPortLinkStatus, ctIfCp=ctIfCp, ctVirtualIfNumPorts=ctVirtualIfNumPorts, ctCpTable=ctCpTable, ctIfEntry=ctIfEntry, ctIfOutMulticastPktsOverflows=ctIfOutMulticastPktsOverflows, commonDev=commonDev, ctIfDuplex=ctIfDuplex, ctIfLAA=ctIfLAA, enableSNMPv2=enableSNMPv2, ctIfOutMulticastPkts=ctIfOutMulticastPkts, enableSNMPv1Counter64=enableSNMPv1Counter64, ctVirtualIfIndex=ctVirtualIfIndex, ctIfPortEntry=ctIfPortEntry, ctStatsEntry=ctStatsEntry, enableSNMPv1=enableSNMPv1, ctSonetMediumType=ctSonetMediumType, ctIfInBroadcastPktsOverflows=ctIfInBroadcastPktsOverflows, ctCpFunction=ctCpFunction, ctIfNum=ctIfNum, ctVirtualIfPortEntry=ctVirtualIfPortEntry, ctIfOutOctets=ctIfOutOctets, ctSonetEntry=ctSonetEntry, ctCpAdminStatus=ctCpAdminStatus, ctIfPortTable=ctIfPortTable, ctIfOutBroadcastPkts=ctIfOutBroadcastPkts, ctIf=ctIf, comDeviceBoardMap=comDeviceBoardMap, ctSonetTable=ctSonetTable, ctSonet=ctSonet, ctIfPortIfNumber=ctIfPortIfNumber, ctIfHCStatsTable=ctIfHCStatsTable, ctSNMP=ctSNMP, ctVirtualIfTable=ctVirtualIfTable, ctIfInBroadcastPkts=ctIfInBroadcastPkts, ctIfRedundancy=ctIfRedundancy, ctVirtualIfPortVPI=ctVirtualIfPortVPI, ctVirtualIfType=ctVirtualIfType, ctIfInOctets=ctIfInOctets, ctIfPort=ctIfPort, ctStats=ctStats, ctIfInMulticastPktsOverflows=ctIfInMulticastPktsOverflows, ctIfTable=ctIfTable, ctSonetIfIndex=ctSonetIfIndex, ctVirtualIfPortVCI=ctVirtualIfPortVCI, ctStatsIfEnable=ctStatsIfEnable, ctFramerConfig=ctFramerConfig, ctVirtualIfEntry=ctVirtualIfEntry, ctIfOutUcastPkts=ctIfOutUcastPkts, ctCpEntry=ctCpEntry, ctVirtualIfPhysicalInterface=ctVirtualIfPhysicalInterface, ctComPort=ctComPort, ctIfPortCnt=ctIfPortCnt, comDeviceDate=comDeviceDate, ctVirtualIfPortIfIndex=ctVirtualIfPortIfIndex, ctStatsTable=ctStatsTable, ctVirtualIfPortType=ctVirtualIfPortType, ctIfNumber=ctIfNumber, ctIfInOctetsOverflows=ctIfInOctetsOverflows, ctIfInMulticastPkts=ctIfInMulticastPkts, ctIfConnectionType=ctIfConnectionType, ctVirtual=ctVirtual, ctIfOutOctetsOverflows=ctIfOutOctetsOverflows, ctVirtualIfPortTable=ctVirtualIfPortTable, comDeviceTime=comDeviceTime, ctStatsIfIndex=ctStatsIfIndex, ctVirtualIfPortNumber=ctVirtualIfPortNumber, ctIfHC=ctIfHC, ctIfPortPortNumber=ctIfPortPortNumber, ctIfCapability=ctIfCapability, ctIfInUcastPkts=ctIfInUcastPkts, ctIfOutBroadcastPktsOverflows=ctIfOutBroadcastPktsOverflows)
(octet_string, object_identifier, integer) = mibBuilder.importSymbols('ASN1', 'OctetString', 'ObjectIdentifier', 'Integer') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (constraints_intersection, value_range_constraint, constraints_union, value_size_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'SingleValueConstraint') (ctron_mib2,) = mibBuilder.importSymbols('CTRON-MIB-NAMES', 'ctronMib2') (if_index,) = mibBuilder.importSymbols('IF-MIB', 'ifIndex') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (mib_scalar, mib_table, mib_table_row, mib_table_column, ip_address, time_ticks, integer32, counter32, counter64, notification_type, object_identity, iso, mib_identifier, module_identity, unsigned32, bits, gauge32) = mibBuilder.importSymbols('SNMPv2-SMI', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'IpAddress', 'TimeTicks', 'Integer32', 'Counter32', 'Counter64', 'NotificationType', 'ObjectIdentity', 'iso', 'MibIdentifier', 'ModuleIdentity', 'Unsigned32', 'Bits', 'Gauge32') (textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString') common_dev = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1)) ct_if = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2)) ct_if_port = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3)) ct_if_cp = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4)) ct_snmp = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5)) ct_sonet = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6)) ct_virtual = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7)) ct_stats = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8)) ct_framer_config = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 9)) ct_if_hc = mib_identifier((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10)) com_device_time = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 1), display_string().subtype(subtypeSpec=constraints_union(value_size_constraint(6, 6), value_size_constraint(8, 8)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: comDeviceTime.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceTime.setDescription('The current time of day, in 24 hour format, as measured by the device. The representation shall use the standard HHMMSS format.') com_device_date = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 2), display_string().subtype(subtypeSpec=value_size_constraint(8, 8)).setFixedLength(8)).setMaxAccess('readwrite') if mibBuilder.loadTexts: comDeviceDate.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceDate.setDescription('The current date, as measured by the device. The representation shall use the standard MMDDYYYY format.') com_device_board_map = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: comDeviceBoardMap.setStatus('mandatory') if mibBuilder.loadTexts: comDeviceBoardMap.setDescription('Contains a bit encoded representation of slots that contain MIM boards. If a bit is one then that slot is occupied by a board.') ct_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1)) if mibBuilder.loadTexts: ctIfTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfTable.setDescription('This table defines an extension to the interface table.') ct_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctIfNumber')) if mibBuilder.loadTexts: ctIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfEntry.setDescription('This defines each conceptual row within the ctIfTable') ct_if_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfNumber.setDescription('This defines the interface that is being described. This is the same as ifIndex.') ct_if_port_cnt = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfPortCnt.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortCnt.setDescription('This defines the number of ports on the interface that is being described.') ct_if_connection_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 3), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfConnectionType.setStatus('mandatory') if mibBuilder.loadTexts: ctIfConnectionType.setDescription('Defines the specific type of the interface connection (BRIM, etc). This is defined within ctron-oids. This differs from the nature of the interface as defined by ifType as found in MIB-II.') ct_if_laa = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(6, 6)).setFixedLength(6)).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctIfLAA.setStatus('mandatory') if mibBuilder.loadTexts: ctIfLAA.setDescription("This object is used by a device (with a Token Ring interface) to set a Locally Administered Address (LAA) for it's MAC hardware address. When set, this LAA will override the default Universally Administered Address or burned in address of the interface. For devices that do not support LAA: - a read will return all zeros. - any write attempt will return BADVALUE. For devices that support LAA: - valid values are 4000 0000 0000 to 4000 7fff ffff, and 0000 0000 0000 (a value of all zeros, causes interface to use the burned in address). - a set (write) with an invalid value, returns BADVALUE. - after a write, new values will only become active after the Token Ring interface has been closed and then opened again. - a read of ctIfLAA will always return same value as ifPhysAddress, except in the case where; o ctIfLAA has been set, but interface has not yet been closed and reopened, in this case the last set value is returned. Note that a read of ifPhysAddress will always return the physical address currently being used by the interface.") ct_if_duplex = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('other', 1), ('standard', 2), ('full', 3)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctIfDuplex.setStatus('mandatory') if mibBuilder.loadTexts: ctIfDuplex.setDescription('Defines the duplex mode that the interface is set to operate in. For devices that do not support this capability: - a read will return standard(2). - any write attempt will return BADVALUE. - fast ethernet devices will report other(1).') ct_if_capability = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('other', 1), ('standard', 2), ('fullDuplex', 3), ('fastEthernet', 4), ('ethernetBased', 5)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfCapability.setStatus('mandatory') if mibBuilder.loadTexts: ctIfCapability.setDescription('Defines the cabability of the underlying hardware in supporting full duplex. This object will have a value of fullDuplex(3) if all hardware is capable of supporting full duplex operation.') ct_if_redundancy = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 2, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('redundant', 1), ('not-redundant', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfRedundancy.setStatus('mandatory') if mibBuilder.loadTexts: ctIfRedundancy.setDescription('Defines whether or not an interface supports redundancy.') ct_if_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1)) if mibBuilder.loadTexts: ctIfPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortTable.setDescription('This table defines an extension to the interface table.') ct_if_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctIfPortIfNumber'), (0, 'CTIF-EXT-MIB', 'ctIfPortPortNumber')) if mibBuilder.loadTexts: ctIfPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortEntry.setDescription('This defines each conceptual row within the ctIfPortTable') ct_if_port_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfPortPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortPortNumber.setDescription('This defines the port that is being described.') ct_if_port_if_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfPortIfNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortIfNumber.setDescription('This defines the interface that the port being described is on.') ct_if_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 3), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfPortType.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortType.setDescription('Defines the specific type of the port (EPIM, TPIM). This is defined within ctron-oids.') ct_if_port_link_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('notLinked', 1), ('linked', 2), ('notApplicable', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfPortLinkStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortLinkStatus.setDescription('Defines the status of the port connection.') ct_if_port_trap_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctIfPortTrapStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctIfPortTrapStatus.setDescription('Defines the trap forwarding status of the port. A value of (1) indicates that a trap WILL NOT be sent if the port goes down and a value of (2) which is the default value, indicates that a trap WILL be sent if the port goes down.') ct_cp_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1)) if mibBuilder.loadTexts: ctCpTable.setStatus('mandatory') if mibBuilder.loadTexts: ctCpTable.setDescription('This table defines a Com Port Table.') ct_cp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctComPort')) if mibBuilder.loadTexts: ctCpEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctCpEntry.setDescription('This defines each conceptual row within the ctCPTable') ct_com_port = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctComPort.setStatus('mandatory') if mibBuilder.loadTexts: ctComPort.setDescription('This is the index into the Com Port Table and defines the Com Port that is being described. com1 = 1, com2 = 2') ct_cp_function = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('lm', 1), ('ups', 2), ('slip', 3), ('ppp', 4)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctCpFunction.setStatus('mandatory') if mibBuilder.loadTexts: ctCpFunction.setDescription('Defines the Com Port Function supported by that Com Port.') ct_if_num = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 3), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfNum.setStatus('mandatory') if mibBuilder.loadTexts: ctIfNum.setDescription('This defines the interface that is being described. This is the same as ifIndex. This is only valid if ctCpFunction is SLIP or PPP, otherwise, 0') ct_cp_admin_status = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 4, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disabled', 1), ('enabled', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctCpAdminStatus.setStatus('mandatory') if mibBuilder.loadTexts: ctCpAdminStatus.setDescription('The administrative state of the Com Port.') enable_snm_pv1 = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: enableSNMPv1.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv1.setDescription('This object allows control over the SNMPv1 protocol. If set to a value of disable(1) then the SNMPv1 protocol will not be accepted by the device.') enable_snm_pv2 = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: enableSNMPv2.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv2.setDescription('This object allows control over the SNMPv2 protocol. If set to a value of disable(1) then the SNMPv2 protocol will not be accepted by the device.') enable_snm_pv1_counter64 = mib_scalar((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 5, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('disable', 1), ('enable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: enableSNMPv1Counter64.setStatus('mandatory') if mibBuilder.loadTexts: enableSNMPv1Counter64.setDescription('This object allows control over the SNMPv1 protocol agent. If set to a value of enable(2) then the SNMPv1 agent will return Counter64 objects using SNMPv2 syntax. If set to a value of disable(1) then the SNMPv1 agent will return any Counter64 objects as Counter32.') ct_sonet_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1)) if mibBuilder.loadTexts: ctSonetTable.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetTable.setDescription('This table defines the Sonet table.') ct_sonet_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctSonetIfIndex')) if mibBuilder.loadTexts: ctSonetEntry.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetEntry.setDescription('This defines each conceptual row within the ctSonetTable.') ct_sonet_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctSonetIfIndex.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetIfIndex.setDescription('This defines the interface being described. It is the same as IfIndex.') ct_sonet_medium_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 6, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('sonet', 1), ('sdh', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctSonetMediumType.setStatus('deprecated') if mibBuilder.loadTexts: ctSonetMediumType.setDescription('This variable identifies whether a SONET or a SDH signal is used across this interface.') ct_virtual_if_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1)) if mibBuilder.loadTexts: ctVirtualIfTable.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfTable.setDescription('This table defines a Virtual IF Table.') ct_virtual_if_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctVirtualIfIndex')) if mibBuilder.loadTexts: ctVirtualIfEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfEntry.setDescription('This defines each conceptual row within the ctVirtualIfTable') ct_virtual_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfIndex.setDescription('Returns the virtual If Index.') ct_virtual_if_physical_interface = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPhysicalInterface.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPhysicalInterface.setDescription('This value displays the physical interface that owns the virtual interface. This is the IfIndex from MIB-II.') ct_virtual_if_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 3), object_identifier()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfType.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfType.setDescription('This value displays the physical interface type.') ct_virtual_if_num_ports = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 1, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfNumPorts.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfNumPorts.setDescription('This value displays the number of virtual ports.') ct_virtual_if_port_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2)) if mibBuilder.loadTexts: ctVirtualIfPortTable.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortTable.setDescription('This table defines the Virtual Port types.') ct_virtual_if_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctVirtualIfPortIfIndex'), (0, 'CTIF-EXT-MIB', 'ctVirtualIfPortNumber')) if mibBuilder.loadTexts: ctVirtualIfPortEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortEntry.setDescription('This defines each conceptual row within the ctVirtualIfPortTable.') ct_virtual_if_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPortIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortIfIndex.setDescription('Returns the virtual If Index.') ct_virtual_if_port_number = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 2), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPortNumber.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortNumber.setDescription('The application port number of the port being described.') ct_virtual_if_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('portVirtualTypeSvc', 1), ('portVirtualTypePvcLlc', 2), ('portVirtualTypePvcVcmux', 3)))).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPortType.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortType.setDescription('This defines the port type from ctron-oids.') ct_virtual_if_port_vpi = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 4), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPortVPI.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortVPI.setDescription('This returns the Virtual Path Identifier value.') ct_virtual_if_port_vci = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 7, 2, 1, 5), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctVirtualIfPortVCI.setStatus('mandatory') if mibBuilder.loadTexts: ctVirtualIfPortVCI.setDescription('This returns the Virtual Channel Identifier value.') ct_stats_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1)) if mibBuilder.loadTexts: ctStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsTable.setDescription('This table defines the Stats table.') ct_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1)).setIndexNames((0, 'CTIF-EXT-MIB', 'ctStatsIfIndex')) if mibBuilder.loadTexts: ctStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsEntry.setDescription('This defines each StatsTable.') ct_stats_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1, 1), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctStatsIfIndex.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsIfIndex.setDescription('This defines the interface being described. It is the same as IfIndex.') ct_stats_if_enable = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 8, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: ctStatsIfEnable.setStatus('mandatory') if mibBuilder.loadTexts: ctStatsIfEnable.setDescription('This allows the interface to pass Token Ring MAC frames to the HOST for processing. When disabled, stats will not be gathered on the interface. Default is Enabled. For devices that do not support this capability any write attempt will return BADVALUE.') ct_if_hc_stats_table = mib_table((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1)) if mibBuilder.loadTexts: ctIfHCStatsTable.setStatus('mandatory') if mibBuilder.loadTexts: ctIfHCStatsTable.setDescription('This table defines an extension to the interface table. This table consists of interface counters grouped together. For each counter type in the table their is a 32 bit counter and a 32 bit overflow counter. This effectively provides a method for counting up to 64 bits.') ct_if_hc_stats_entry = mib_table_row((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1)).setIndexNames((0, 'IF-MIB', 'ifIndex')) if mibBuilder.loadTexts: ctIfHCStatsEntry.setStatus('mandatory') if mibBuilder.loadTexts: ctIfHCStatsEntry.setDescription('This defines each conceptual row within the ctIfHCStatsTable. Entries in this table will exist for High Capacity Interfaces.') ct_if_in_octets = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 1), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInOctets.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInOctets.setDescription('The total number of octets received on the interface, including framing characters.') ct_if_in_octets_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 2), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInOctetsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInOctetsOverflows.setDescription('The number of times the associated ctIfInOctets counter has overflowed.') ct_if_in_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 3), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInUcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInUcastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were not addressed to a multicast or broadcast address at this sub-layer.') ct_if_in_ucast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInUcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInUcastPktsOverflows.setDescription('The number of times the associated ctIfInUcastPkts counter has overflowed.') ct_if_in_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInMulticastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInMulticastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a multicast address at this sub-layer. For a MAC layer protocol, this includes both Group and Functional addresses.') ct_if_in_multicast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInMulticastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInMulticastPktsOverflows.setDescription('The number of times the associated ctIfInMulticastPkts counter has overflowed.') ct_if_in_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 7), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInBroadcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInBroadcastPkts.setDescription('The number of packets, delivered by this sub-layer to a higher (sub-)layer, which were addressed to a broadcast address at this sub-layer.') ct_if_in_broadcast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 8), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfInBroadcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfInBroadcastPktsOverflows.setDescription('The number of times the associated ctIfInBroadcastPkts counter has overflowed.') ct_if_out_octets = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 9), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutOctets.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutOctets.setDescription('The total number of octets transmitted out of the interface, including framing characters.') ct_if_out_octets_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 10), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutOctetsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutOctetsOverflows.setDescription('The number of times the associated ctIfOutOctets counter has overflowed.') ct_if_out_ucast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 11), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutUcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutUcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were not addressed to a multicast or broadcast address at this sub-layer, including those that were discarded or not sent.') ct_if_out_ucast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 12), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutUcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutUcastPktsOverflows.setDescription('The number of times the associated ctIfOutUcastPkts counter has overflowed.') ct_if_out_multicast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 13), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutMulticastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutMulticastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a multicast address at this sub-layer, including those that were discarded or not sent. For a MAC layer protocol, this includes both Group and Functional addresses.') ct_if_out_multicast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 14), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutMulticastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutMulticastPktsOverflows.setDescription('The number of times the associated ctIfOutMulticastPkts counter has overflowed.') ct_if_out_broadcast_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 15), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutBroadcastPkts.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutBroadcastPkts.setDescription('The total number of packets that higher-level protocols requested be transmitted, and which were addressed to a broadcast address at this sub-layer, including those that were discarded or not sent.') ct_if_out_broadcast_pkts_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 52, 4, 3, 3, 10, 1, 1, 16), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: ctIfOutBroadcastPktsOverflows.setStatus('mandatory') if mibBuilder.loadTexts: ctIfOutBroadcastPktsOverflows.setDescription('The number of times the associated ctIfOutBroadcastPkts counter has overflowed.') mibBuilder.exportSymbols('CTIF-EXT-MIB', ctIfInUcastPktsOverflows=ctIfInUcastPktsOverflows, ctIfHCStatsEntry=ctIfHCStatsEntry, ctIfOutUcastPktsOverflows=ctIfOutUcastPktsOverflows, ctIfPortTrapStatus=ctIfPortTrapStatus, ctIfPortType=ctIfPortType, ctIfPortLinkStatus=ctIfPortLinkStatus, ctIfCp=ctIfCp, ctVirtualIfNumPorts=ctVirtualIfNumPorts, ctCpTable=ctCpTable, ctIfEntry=ctIfEntry, ctIfOutMulticastPktsOverflows=ctIfOutMulticastPktsOverflows, commonDev=commonDev, ctIfDuplex=ctIfDuplex, ctIfLAA=ctIfLAA, enableSNMPv2=enableSNMPv2, ctIfOutMulticastPkts=ctIfOutMulticastPkts, enableSNMPv1Counter64=enableSNMPv1Counter64, ctVirtualIfIndex=ctVirtualIfIndex, ctIfPortEntry=ctIfPortEntry, ctStatsEntry=ctStatsEntry, enableSNMPv1=enableSNMPv1, ctSonetMediumType=ctSonetMediumType, ctIfInBroadcastPktsOverflows=ctIfInBroadcastPktsOverflows, ctCpFunction=ctCpFunction, ctIfNum=ctIfNum, ctVirtualIfPortEntry=ctVirtualIfPortEntry, ctIfOutOctets=ctIfOutOctets, ctSonetEntry=ctSonetEntry, ctCpAdminStatus=ctCpAdminStatus, ctIfPortTable=ctIfPortTable, ctIfOutBroadcastPkts=ctIfOutBroadcastPkts, ctIf=ctIf, comDeviceBoardMap=comDeviceBoardMap, ctSonetTable=ctSonetTable, ctSonet=ctSonet, ctIfPortIfNumber=ctIfPortIfNumber, ctIfHCStatsTable=ctIfHCStatsTable, ctSNMP=ctSNMP, ctVirtualIfTable=ctVirtualIfTable, ctIfInBroadcastPkts=ctIfInBroadcastPkts, ctIfRedundancy=ctIfRedundancy, ctVirtualIfPortVPI=ctVirtualIfPortVPI, ctVirtualIfType=ctVirtualIfType, ctIfInOctets=ctIfInOctets, ctIfPort=ctIfPort, ctStats=ctStats, ctIfInMulticastPktsOverflows=ctIfInMulticastPktsOverflows, ctIfTable=ctIfTable, ctSonetIfIndex=ctSonetIfIndex, ctVirtualIfPortVCI=ctVirtualIfPortVCI, ctStatsIfEnable=ctStatsIfEnable, ctFramerConfig=ctFramerConfig, ctVirtualIfEntry=ctVirtualIfEntry, ctIfOutUcastPkts=ctIfOutUcastPkts, ctCpEntry=ctCpEntry, ctVirtualIfPhysicalInterface=ctVirtualIfPhysicalInterface, ctComPort=ctComPort, ctIfPortCnt=ctIfPortCnt, comDeviceDate=comDeviceDate, ctVirtualIfPortIfIndex=ctVirtualIfPortIfIndex, ctStatsTable=ctStatsTable, ctVirtualIfPortType=ctVirtualIfPortType, ctIfNumber=ctIfNumber, ctIfInOctetsOverflows=ctIfInOctetsOverflows, ctIfInMulticastPkts=ctIfInMulticastPkts, ctIfConnectionType=ctIfConnectionType, ctVirtual=ctVirtual, ctIfOutOctetsOverflows=ctIfOutOctetsOverflows, ctVirtualIfPortTable=ctVirtualIfPortTable, comDeviceTime=comDeviceTime, ctStatsIfIndex=ctStatsIfIndex, ctVirtualIfPortNumber=ctVirtualIfPortNumber, ctIfHC=ctIfHC, ctIfPortPortNumber=ctIfPortPortNumber, ctIfCapability=ctIfCapability, ctIfInUcastPkts=ctIfInUcastPkts, ctIfOutBroadcastPktsOverflows=ctIfOutBroadcastPktsOverflows)
""" Created on Wed Jan 26 23:57:01 2022 @author: G.A. """ ## PS1 Part A: House Hunting # Variables annual_salary = float(input("Enter your annual salary:")) portion_saved = float(input("Enter the percent of your salary to save, as a decimal:")) total_cost = float(input("Enter the cost of your dream home:")) portion_down_payment = 0.25 r = 0.04 #Annual rate of return current_savings = 0 # Calculations down_payment_cost = total_cost * portion_down_payment monthly_savings = (annual_salary / 12) * portion_saved months = 0 while current_savings < down_payment_cost: current_savings += current_savings * r/12 + monthly_savings #monthly contribution after interest compounds months += 1 print("Number of months:",months)
""" Created on Wed Jan 26 23:57:01 2022 @author: G.A. """ annual_salary = float(input('Enter your annual salary:')) portion_saved = float(input('Enter the percent of your salary to save, as a decimal:')) total_cost = float(input('Enter the cost of your dream home:')) portion_down_payment = 0.25 r = 0.04 current_savings = 0 down_payment_cost = total_cost * portion_down_payment monthly_savings = annual_salary / 12 * portion_saved months = 0 while current_savings < down_payment_cost: current_savings += current_savings * r / 12 + monthly_savings months += 1 print('Number of months:', months)
def egcd(a, b): x,y, u,v = 0,1, 1,0 while a != 0: q, r = b//a, b%a m, n = x-u*q, y-v*q b,a, x,y, u,v = a,r, u,v, m,n gcd = b return gcd, x, y def modinv(a, m): gcd, x, y = egcd(a, m) if gcd != 1: return None # modular inverse does not exist else: return x % m def affine_encrypt(text, key): ''' C = (a*P + b) % 26 ''' return ''.join([ chr((( key[0]*(ord(t) - ord('A')) + key[1] ) % 26) + ord('A')) for t in text.upper().replace(' ', '') ]) # affine cipher decryption function # returns original text def affine_decrypt(cipher, key): ''' P = (a^-1 * (C - b)) % 26 ''' return ''.join([ chr((( modinv(key[0], 26)*(ord(c) - ord('A') - key[1])) % 26) + ord('A')) for c in cipher ]) def main(): # declaring text and key text = input("Enter any text:- ") key = [17, 20] # calling encryption function affine_encrypted_text = affine_encrypt(text, key) print('Encrypted Text: {}'.format( affine_encrypted_text )) # calling decryption function print('Decrypted Text: {}'.format ( affine_decrypt(affine_encrypted_text, key) )) if __name__ == '__main__': main()
def egcd(a, b): (x, y, u, v) = (0, 1, 1, 0) while a != 0: (q, r) = (b // a, b % a) (m, n) = (x - u * q, y - v * q) (b, a, x, y, u, v) = (a, r, u, v, m, n) gcd = b return (gcd, x, y) def modinv(a, m): (gcd, x, y) = egcd(a, m) if gcd != 1: return None else: return x % m def affine_encrypt(text, key): """ C = (a*P + b) % 26 """ return ''.join([chr((key[0] * (ord(t) - ord('A')) + key[1]) % 26 + ord('A')) for t in text.upper().replace(' ', '')]) def affine_decrypt(cipher, key): """ P = (a^-1 * (C - b)) % 26 """ return ''.join([chr(modinv(key[0], 26) * (ord(c) - ord('A') - key[1]) % 26 + ord('A')) for c in cipher]) def main(): text = input('Enter any text:- ') key = [17, 20] affine_encrypted_text = affine_encrypt(text, key) print('Encrypted Text: {}'.format(affine_encrypted_text)) print('Decrypted Text: {}'.format(affine_decrypt(affine_encrypted_text, key))) if __name__ == '__main__': main()
# RestDF Default settings PORT: int = 8000 HOST: str = 'localhost' DEBUG: bool = False
port: int = 8000 host: str = 'localhost' debug: bool = False
def reindent(s, numSpaces, prefix=None): _prefix = "\n" if prefix: _prefix+=prefix if not isinstance(s,str): s=str(s) _str = _prefix.join((numSpaces * " ") + i for i in s.splitlines()) return _str def format_columns(data, columns=4, max_rows=4): max_len = max( list(map( len, data))) cols = max( int(80/max_len),1) if columns: max_len = 30 else: max_len = max_len columns = columns if columns else cols my_len = len(data) my_len = (my_len - my_len % columns) + columns my_range = my_len // columns fin_list = [data[i * columns:i * columns + columns] for i in range(my_range)] if not max_rows: max_rows = len(fin_list) sf="{:-^"+str( (columns* (max_len+1))+1)+"}\n" s = sf.format(' DATA ') for item in fin_list[:max_rows]: sf = len(item) * ('|{:^'+str(max_len)+'}') sf+="|\n" s+=sf.format(*item) s+=((columns* (max_len+1))+1) * '-' return s def print_columns(data, columns=4, max_rows=4, indent=2): s = format_columns(data, columns=columns, max_rows=max_rows) print(reindent(s, indent))
def reindent(s, numSpaces, prefix=None): _prefix = '\n' if prefix: _prefix += prefix if not isinstance(s, str): s = str(s) _str = _prefix.join((numSpaces * ' ' + i for i in s.splitlines())) return _str def format_columns(data, columns=4, max_rows=4): max_len = max(list(map(len, data))) cols = max(int(80 / max_len), 1) if columns: max_len = 30 else: max_len = max_len columns = columns if columns else cols my_len = len(data) my_len = my_len - my_len % columns + columns my_range = my_len // columns fin_list = [data[i * columns:i * columns + columns] for i in range(my_range)] if not max_rows: max_rows = len(fin_list) sf = '{:-^' + str(columns * (max_len + 1) + 1) + '}\n' s = sf.format(' DATA ') for item in fin_list[:max_rows]: sf = len(item) * ('|{:^' + str(max_len) + '}') sf += '|\n' s += sf.format(*item) s += (columns * (max_len + 1) + 1) * '-' return s def print_columns(data, columns=4, max_rows=4, indent=2): s = format_columns(data, columns=columns, max_rows=max_rows) print(reindent(s, indent))
class User: ''' class that generates a new instance of a password user __init__ method that helps us to define properitis for our objet Args: ''' user_list = [] #Empty user list def __init__(self,name,password): self.name=name self.password=password def save_user(self): ''' save_contact method save user objects into user_list ''' User.user_list.append(self) @classmethod def display_users(cls): ''' method that returns users using the password locker app ''' return cls.user_list @classmethod def user_verified(cls,name,password): ''' methods that takes the user logings and returs boolean its true Args: name:User name to search password:password to match return: Boolean true if they both match to a user and false if it doesn't '''
class User: """ class that generates a new instance of a password user __init__ method that helps us to define properitis for our objet Args: """ user_list = [] def __init__(self, name, password): self.name = name self.password = password def save_user(self): """ save_contact method save user objects into user_list """ User.user_list.append(self) @classmethod def display_users(cls): """ method that returns users using the password locker app """ return cls.user_list @classmethod def user_verified(cls, name, password): """ methods that takes the user logings and returs boolean its true Args: name:User name to search password:password to match return: Boolean true if they both match to a user and false if it doesn't """
# # PySNMP MIB module ALCATEL-IND1-MLD-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALCATEL-IND1-MLD-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:18:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # softentIND1Mld, = mibBuilder.importSymbols("ALCATEL-IND1-BASE", "softentIND1Mld") OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, SingleValueConstraint, ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "SingleValueConstraint", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection") InterfaceIndex, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndex") InetAddressType, InetAddressIPv6, InetAddress = mibBuilder.importSymbols("INET-ADDRESS-MIB", "InetAddressType", "InetAddressIPv6", "InetAddress") ModuleCompliance, NotificationGroup, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup") Bits, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, MibIdentifier, NotificationType, Integer32, Gauge32, IpAddress, Counter32, Counter64, Unsigned32, ModuleIdentity, iso, ObjectIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "Bits", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "MibIdentifier", "NotificationType", "Integer32", "Gauge32", "IpAddress", "Counter32", "Counter64", "Unsigned32", "ModuleIdentity", "iso", "ObjectIdentity") DisplayString, RowStatus, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "RowStatus", "TextualConvention") alcatelIND1MldMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1)) alcatelIND1MldMIB.setRevisions(('2011-02-23 00:00', '2008-09-10 00:00', '2008-08-08 00:00', '2007-04-03 00:00',)) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1MldMIB.setRevisionsDescriptions(('Add zero-based query object and helper address object', 'Add flood unknown object', 'The latest version of this MIB Module. Added maximum group limit objects.', 'The revised version of this MIB Module.',)) if mibBuilder.loadTexts: alcatelIND1MldMIB.setLastUpdated('201102230000Z') if mibBuilder.loadTexts: alcatelIND1MldMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1MldMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1MldMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Proprietary IPv6 Multicast MIB definitions The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatelIND1MldMIBObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1)) alaMld = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1)) alaMldStatus = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStatus.setDescription('Administratively enable IPv6 multicast switching and routing on the system.') alaMldQuerying = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldQuerying.setStatus('current') if mibBuilder.loadTexts: alaMldQuerying.setDescription('Administratively enable MLD Querying on the system.') alaMldSpoofing = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldSpoofing.setStatus('current') if mibBuilder.loadTexts: alaMldSpoofing.setDescription('Administratively enable MLD Spoofing on the system.') alaMldZapping = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldZapping.setStatus('current') if mibBuilder.loadTexts: alaMldZapping.setDescription('Administratively enable MLD Zapping on the system.') alaMldVersion = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 5), Unsigned32().clone(1)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVersion.setStatus('current') if mibBuilder.loadTexts: alaMldVersion.setDescription('Set the default MLD protocol Version running on the system.') alaMldRobustness = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 6), Unsigned32().clone(2)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldRobustness.setStatus('current') if mibBuilder.loadTexts: alaMldRobustness.setDescription('Set the MLD Robustness variable used on the system.') alaMldQueryInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 7), Unsigned32().clone(125)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldQueryInterval.setDescription('Set the MLD Query Interval used on the system.') alaMldQueryResponseInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 8), Unsigned32().clone(10000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaMldQueryResponseInterval.setDescription('Set the MLD Query Response Interval on the system.') alaMldLastMemberQueryInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 9), Unsigned32().clone(1000)).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldLastMemberQueryInterval.setDescription('Set the MLD Last Member Query Interval on the system.') alaMldRouterTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 10), Unsigned32().clone(90)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldRouterTimeout.setDescription('The MLD Router Timeout on the system.') alaMldSourceTimeout = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 11), Unsigned32().clone(30)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldSourceTimeout.setDescription('The MLD Source Timeout on the system.') alaMldProxying = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldProxying.setStatus('current') if mibBuilder.loadTexts: alaMldProxying.setDescription('Administratively enable MLD Proxying on the system.') alaMldUnsolicitedReportInterval = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 13), Unsigned32().clone(1)).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaMldUnsolicitedReportInterval.setDescription('The MLD Unsolicited Report Interval on the system.') alaMldQuerierForwarding = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierForwarding.setDescription('Administratively enable MLD Querier Forwarding on the system.') alaMldMaxGroupLimit = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 15), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldMaxGroupLimit.setDescription('The global limit on maximum number of MLD Group memberships that can be learnt on each port/vlan instance.') alaMldMaxGroupExceedAction = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 16), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldMaxGroupExceedAction.setDescription('The global configuration of action to be taken when MLD group membership limit is exceeded on a port/vlan instance.') alaMldFloodUnknown = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('disable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldFloodUnknown.setStatus('current') if mibBuilder.loadTexts: alaMldFloodUnknown.setDescription('Administratively enable flooding of multicast data packets during flow learning and setup.') alaMldHelperAddressType = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 18), InetAddressType().subtype(subtypeSpec=ValueRangeConstraint(2, 2))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldHelperAddressType.setStatus('current') if mibBuilder.loadTexts: alaMldHelperAddressType.setDescription('Set the address type of the helper address. Must be ipv4(1) and set at the same time as alaMldHelperAddress.') alaMldHelperAddress = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 19), InetAddress().subtype(subtypeSpec=ValueSizeConstraint(16, 16)).setFixedLength(16)).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldHelperAddress.setStatus('current') if mibBuilder.loadTexts: alaMldHelperAddress.setDescription('The configured IPv6 helper address. When an MLD report or leave is received by the device it will remove the IP header and regenerate a new IP header with a destination IP address specified. Use :: to no longer help an MLD report to an remote address. Must be set at the same time as alaMldHelperAddressType') alaMldZeroBasedQuery = MibScalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 20), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaMldZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv6 address for query packets when a non-querier is querying the membership of a port') alaMldVlan = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2)) alaMldVlanTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1), ) if mibBuilder.loadTexts: alaMldVlanTable.setStatus('current') if mibBuilder.loadTexts: alaMldVlanTable.setDescription('The VLAN table contains the information on which IPv6 multicast switching and routing is configured.') alaMldVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldVlanIndex")) if mibBuilder.loadTexts: alaMldVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaMldVlanEntry.setDescription('An entry corresponds to a VLAN on which IPv6 multicast switching and routing is configured.') alaMldVlanIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldVlanIndex.setStatus('current') if mibBuilder.loadTexts: alaMldVlanIndex.setDescription('The VLAN on which IPv6 multicast switching and routing is configured.') alaMldVlanStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanStatus.setStatus('current') if mibBuilder.loadTexts: alaMldVlanStatus.setDescription('Administratively enable IPv6 multicast switching and routing on the VLAN.') alaMldVlanQuerying = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanQuerying.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQuerying.setDescription('Administratively enable MLD Querying on the VLAN.') alaMldVlanSpoofing = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanSpoofing.setStatus('current') if mibBuilder.loadTexts: alaMldVlanSpoofing.setDescription('Administratively enable MLD Spoofing on the VLAN.') alaMldVlanZapping = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanZapping.setStatus('current') if mibBuilder.loadTexts: alaMldVlanZapping.setDescription('Administratively enable MLD Zapping on the VLAN.') alaMldVlanVersion = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 6), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanVersion.setStatus('current') if mibBuilder.loadTexts: alaMldVlanVersion.setDescription('Set the default MLD protocol Version running on the VLAN.') alaMldVlanRobustness = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 7), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanRobustness.setStatus('current') if mibBuilder.loadTexts: alaMldVlanRobustness.setDescription('Set the MLD Robustness variable used on the VLAN.') alaMldVlanQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 8), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQueryInterval.setDescription('Set the MLD Query Interval used on the VLAN.') alaMldVlanQueryResponseInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 9), Unsigned32()).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQueryResponseInterval.setDescription('Set the MLD Query Response Interval on the VLAN.') alaMldVlanLastMemberQueryInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 10), Unsigned32()).setUnits('milliseconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanLastMemberQueryInterval.setDescription('Set the MLD Last Member Query Interval on the VLAN.') alaMldVlanRouterTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 11), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldVlanRouterTimeout.setDescription('Set the MLD Router Timeout on the VLAN.') alaMldVlanSourceTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 12), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldVlanSourceTimeout.setDescription('Set the MLD Source Timeout on the VLAN.') alaMldVlanProxying = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanProxying.setStatus('current') if mibBuilder.loadTexts: alaMldVlanProxying.setDescription('Administratively enable MLD Proxying on the VLAN.') alaMldVlanUnsolicitedReportInterval = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 14), Unsigned32()).setUnits('seconds').setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanUnsolicitedReportInterval.setDescription('Set the MLD Unsolicited Report Interval on the VLAN.') alaMldVlanQuerierForwarding = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQuerierForwarding.setDescription('Administratively enable MLD Querier Forwarding on the VLAN.') alaMldVlanMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 16), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldVlanMaxGroupLimit.setDescription('The maximum number of MLD Group memberships that can be learnt on the VLAN.') alaMldVlanMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 17), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldVlanMaxGroupExceedAction.setDescription('The action to be taken when the MLD group membership limit is exceeded on the VLAN.') alaMldVlanZeroBasedQuery = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 18), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("enable", 1), ("disable", 2))).clone('enable')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldVlanZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaMldVlanZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv6 address for query packets when a non-querier is querying the membership of a port on the VLAN') alaMldMember = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3)) alaMldMemberTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1), ) if mibBuilder.loadTexts: alaMldMemberTable.setStatus('current') if mibBuilder.loadTexts: alaMldMemberTable.setDescription('The table listing the MLD group membership information.') alaMldMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldMemberVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldMemberIfIndex"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldMemberGroupAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldMemberSourceAddress")) if mibBuilder.loadTexts: alaMldMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaMldMemberEntry.setDescription('An entry corresponding to an MLD group membership request.') alaMldMemberVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaMldMemberVlan.setDescription("The group membership request's VLAN.") alaMldMemberIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldMemberIfIndex.setDescription("The group membership request's ifIndex.") alaMldMemberGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldMemberGroupAddress.setDescription("The group membership request's IPv6 group address.") alaMldMemberSourceAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 4), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldMemberSourceAddress.setStatus('current') if mibBuilder.loadTexts: alaMldMemberSourceAddress.setDescription("The group membership request's IPv6 source address.") alaMldMemberMode = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("include", 1), ("exclude", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldMemberMode.setStatus('current') if mibBuilder.loadTexts: alaMldMemberMode.setDescription("The group membership request's MLD source filter mode.") alaMldMemberCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 6), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldMemberCount.setStatus('current') if mibBuilder.loadTexts: alaMldMemberCount.setDescription("The group membership request's counter.") alaMldMemberTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 7), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldMemberTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldMemberTimeout.setDescription("The group membership request's timeout.") alaMldStaticMember = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4)) alaMldStaticMemberTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1), ) if mibBuilder.loadTexts: alaMldStaticMemberTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberTable.setDescription('The table listing the static MLD group membership information.') alaMldStaticMemberEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticMemberVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticMemberIfIndex"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticMemberGroupAddress")) if mibBuilder.loadTexts: alaMldStaticMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberEntry.setDescription('An entry corresponding to a static MLD group membership request.') alaMldStaticMemberVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldStaticMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberVlan.setDescription("The static group membership request's VLAN.") alaMldStaticMemberIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldStaticMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberIfIndex.setDescription("The static group membership request's ifIndex.") alaMldStaticMemberGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldStaticMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberGroupAddress.setDescription("The static group membership request's IPv6 group address.") alaMldStaticMemberRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 4), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaMldStaticMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaMldNeighbor = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5)) alaMldNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1), ) if mibBuilder.loadTexts: alaMldNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborTable.setDescription('The table listing the neighboring IP multicast routers.') alaMldNeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldNeighborVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldNeighborIfIndex"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldNeighborHostAddress")) if mibBuilder.loadTexts: alaMldNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborEntry.setDescription('An entry corresponding to an IP multicast router.') alaMldNeighborVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborVlan.setDescription("The IP multicast router's VLAN.") alaMldNeighborIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborIfIndex.setDescription("The IP multicast router's ifIndex.") alaMldNeighborHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldNeighborHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborHostAddress.setDescription("The IP multicast router's IPv6 host address.") alaMldNeighborCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldNeighborCount.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborCount.setDescription("The IP multicast router's counter.") alaMldNeighborTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldNeighborTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborTimeout.setDescription("The IP multicast router's timeout.") alaMldStaticNeighbor = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6)) alaMldStaticNeighborTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1), ) if mibBuilder.loadTexts: alaMldStaticNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborTable.setDescription('The table listing the static IP multicast routers.') alaMldStaticNeighborEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticNeighborVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticNeighborIfIndex")) if mibBuilder.loadTexts: alaMldStaticNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborEntry.setDescription('An entry corresponding to a static IP multicast router.') alaMldStaticNeighborVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldStaticNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborVlan.setDescription("The static IP multicast router's VLAN.") alaMldStaticNeighborIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldStaticNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborIfIndex.setDescription("The static IP multicast router's ifIndex.") alaMldStaticNeighborRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaMldStaticNeighborRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaMldQuerier = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7)) alaMldQuerierTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1), ) if mibBuilder.loadTexts: alaMldQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierTable.setDescription('The table listing the neighboring MLD queriers.') alaMldQuerierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldQuerierVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldQuerierIfIndex"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldQuerierHostAddress")) if mibBuilder.loadTexts: alaMldQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierEntry.setDescription('An entry corresponding to an MLD querier.') alaMldQuerierVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierVlan.setDescription("The MLD querier's VLAN.") alaMldQuerierIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierIfIndex.setDescription("The MLD querier's ifIndex.") alaMldQuerierHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldQuerierHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierHostAddress.setDescription("The MLD querier's IPv6 host address.") alaMldQuerierCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 4), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldQuerierCount.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierCount.setDescription("The MLD querier's counter.") alaMldQuerierTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 5), TimeTicks()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldQuerierTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierTimeout.setDescription("The MLD querier's timeout.") alaMldStaticQuerier = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8)) alaMldStaticQuerierTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1), ) if mibBuilder.loadTexts: alaMldStaticQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierTable.setDescription('The table listing the static MLD queriers.') alaMldStaticQuerierEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticQuerierVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldStaticQuerierIfIndex")) if mibBuilder.loadTexts: alaMldStaticQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierEntry.setDescription('An entry corresponding to a static MLD querier.') alaMldStaticQuerierVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldStaticQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierVlan.setDescription("The static MLD querier's VLAN.") alaMldStaticQuerierIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 2), InterfaceIndex()) if mibBuilder.loadTexts: alaMldStaticQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierIfIndex.setDescription("The static MLD querier's ifIndex.") alaMldStaticQuerierRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 3), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: alaMldStaticQuerierRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') alaMldSource = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9)) alaMldSourceTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1), ) if mibBuilder.loadTexts: alaMldSourceTable.setStatus('current') if mibBuilder.loadTexts: alaMldSourceTable.setDescription('The table listing the IP multicast source information.') alaMldSourceEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldSourceVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldSourceGroupAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldSourceHostAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldSourceDestAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldSourceOrigAddress")) if mibBuilder.loadTexts: alaMldSourceEntry.setStatus('current') if mibBuilder.loadTexts: alaMldSourceEntry.setDescription('An entry corresponding to an IP multicast source flow.') alaMldSourceVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldSourceVlan.setStatus('current') if mibBuilder.loadTexts: alaMldSourceVlan.setDescription("The IP multicast source flow's VLAN.") alaMldSourceIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldSourceIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldSourceIfIndex.setDescription("The IP multicast source flow's ifIndex.") alaMldSourceGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldSourceGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceGroupAddress.setDescription("The IP multicast source flow's IPv6 group address.") alaMldSourceHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 4), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldSourceHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceHostAddress.setDescription("The IP multicast source flow's IPv6 host address.") alaMldSourceDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 5), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldSourceDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceDestAddress.setDescription("The IP multicast source flow's IPv6 tunnel destination address.") alaMldSourceOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 6), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldSourceOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceOrigAddress.setDescription("The IP multicast source flow's IPv6 tunnel source address.") alaMldSourceType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldSourceType.setStatus('current') if mibBuilder.loadTexts: alaMldSourceType.setDescription("The IP multicast source flow's encapsulation type.") alaMldForward = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10)) alaMldForwardTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1), ) if mibBuilder.loadTexts: alaMldForwardTable.setStatus('current') if mibBuilder.loadTexts: alaMldForwardTable.setDescription('The table listing the IP multicast forward information.') alaMldForwardEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardGroupAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardHostAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardDestAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardOrigAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardNextVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldForwardNextIfIndex")) if mibBuilder.loadTexts: alaMldForwardEntry.setStatus('current') if mibBuilder.loadTexts: alaMldForwardEntry.setDescription('An entry corresponding to an IP multicast forwarded flow.') alaMldForwardVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldForwardVlan.setStatus('current') if mibBuilder.loadTexts: alaMldForwardVlan.setDescription("The IP multicast forwarded flow's VLAN.") alaMldForwardIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldForwardIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldForwardIfIndex.setDescription("The IP multicast forwarded flow's ifIndex.") alaMldForwardGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldForwardGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardGroupAddress.setDescription("The IP multicast forwarded flow's IPv6 group address.") alaMldForwardHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 4), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldForwardHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardHostAddress.setDescription("The IP multicast forwarded flow's IPv6 host address.") alaMldForwardDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 5), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldForwardDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardDestAddress.setDescription("The IP multicast forwarded flow's IPv6 tunnel destination address.") alaMldForwardOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 6), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldForwardOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardOrigAddress.setDescription("The IP multicast forwarded flow's IPv6 tunnel source address.") alaMldForwardType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldForwardType.setStatus('current') if mibBuilder.loadTexts: alaMldForwardType.setDescription("The IP multicast forwarded flow's encapsulation type.") alaMldForwardNextVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 8), Unsigned32()) if mibBuilder.loadTexts: alaMldForwardNextVlan.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextVlan.setDescription("The IP multicast forwarded flow's next VLAN.") alaMldForwardNextIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 9), InterfaceIndex()) if mibBuilder.loadTexts: alaMldForwardNextIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextIfIndex.setDescription("The IP multicast forwarded flow's next ifIndex.") alaMldForwardNextType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldForwardNextType.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextType.setDescription("The IP multicast forwarded flow's next encapsulation type.") alaMldTunnel = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11)) alaMldTunnelTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1), ) if mibBuilder.loadTexts: alaMldTunnelTable.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelTable.setDescription('The table listing the IP multicast tunnel information.') alaMldTunnelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelVlan"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelGroupAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelHostAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelDestAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelOrigAddress"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldTunnelNextDestAddress")) if mibBuilder.loadTexts: alaMldTunnelEntry.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelEntry.setDescription('An entry corresponding to an IP multicast tunneled flow.') alaMldTunnelVlan = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldTunnelVlan.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelVlan.setDescription("The IP multicast tunneled flow's VLAN.") alaMldTunnelIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 2), InterfaceIndex()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldTunnelIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelIfIndex.setDescription("The IP multicast tunneled flow's ifIndex.") alaMldTunnelGroupAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 3), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldTunnelGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelGroupAddress.setDescription("The IP multicast tunneled flow's IPv6 group address.") alaMldTunnelHostAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 4), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldTunnelHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelHostAddress.setDescription("The IP multicast tunneled flow's IPv6 host address.") alaMldTunnelDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 5), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldTunnelDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelDestAddress.setDescription("The IP multicast tunneled flow's IPv6 tunnel destination address.") alaMldTunnelOrigAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 6), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldTunnelOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelOrigAddress.setDescription("The IP multicast tunneled flow's IPv6 tunnel source address.") alaMldTunnelType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldTunnelType.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelType.setDescription("The IP multicast tunneled flow's encapsulation type.") alaMldTunnelNextDestAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 8), InetAddressIPv6()) if mibBuilder.loadTexts: alaMldTunnelNextDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelNextDestAddress.setDescription("The IP multicast tunneled flow's next IPv6 tunnel destination address.") alaMldTunnelNextType = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 9), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("mcast", 1), ("pim", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldTunnelNextType.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelNextType.setDescription("The IP multicast tunneled flow's next encapsulation type.") alaMldPort = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12)) alaMldPortTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1), ) if mibBuilder.loadTexts: alaMldPortTable.setStatus('current') if mibBuilder.loadTexts: alaMldPortTable.setDescription('The table listing the IPv6 Multicast port information.') alaMldPortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldPortIfIndex")) if mibBuilder.loadTexts: alaMldPortEntry.setStatus('current') if mibBuilder.loadTexts: alaMldPortEntry.setDescription('An entry corresponding to IPv6 Multicast port information.') alaMldPortIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 1), InterfaceIndex()) if mibBuilder.loadTexts: alaMldPortIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldPortIfIndex.setDescription("The IP multicast port's ifIndex.") alaMldPortMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 2), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldPortMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldPortMaxGroupLimit.setDescription('The maximum number of MLD Group memberships that can be learnt on the interface.') alaMldPortMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2))).clone('none')).setMaxAccess("readwrite") if mibBuilder.loadTexts: alaMldPortMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldPortMaxGroupExceedAction.setDescription('The action to be taken when MLD group membership limit is exceeded for the interface.') alaMldPortVlan = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13)) alaMldPortVlanTable = MibTable((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1), ) if mibBuilder.loadTexts: alaMldPortVlanTable.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanTable.setDescription('The table listing the MLD group membership limit information for a port/vlan instance.') alaMldPortVlanEntry = MibTableRow((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1), ).setIndexNames((0, "ALCATEL-IND1-MLD-MIB", "alaMldPortIfIndex"), (0, "ALCATEL-IND1-MLD-MIB", "alaMldVlanId")) if mibBuilder.loadTexts: alaMldPortVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanEntry.setDescription('An entry corresponding to MLD group membership limit on a port/vlan.') alaMldVlanId = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 1), Unsigned32()) if mibBuilder.loadTexts: alaMldVlanId.setStatus('current') if mibBuilder.loadTexts: alaMldVlanId.setDescription('The IPv6 multicast group membership VLAN.') alaMldPortVlanCurrentGroupCount = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 2), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldPortVlanCurrentGroupCount.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanCurrentGroupCount.setDescription('The current IPv6 multicast group memberships on a port/vlan instance.') alaMldPortVlanMaxGroupLimit = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 3), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldPortVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupLimit.setDescription('Maximum MLD Group memberships on the port/vlan instance.') alaMldPortVlanMaxGroupExceedAction = MibTableColumn((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(0, 1, 2))).clone(namedValues=NamedValues(("none", 0), ("drop", 1), ("replace", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: alaMldPortVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupExceedAction.setDescription('The action to be taken when MLD group membership limit is exceeded for the port/vlan instance.') alcatelIND1MldMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2)) alcatelIND1MldMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 1)) alaMldCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 1, 1)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldMemberGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldStaticMemberGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldNeighborGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldStaticNeighborGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldQuerierGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldStaticQuerierGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldSourceGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldForwardGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldTunnelGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldPortGroup"), ("ALCATEL-IND1-MLD-MIB", "alaMldPortVlanGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldCompliance = alaMldCompliance.setStatus('current') if mibBuilder.loadTexts: alaMldCompliance.setDescription('The compliance statement for systems running IPv6 multicast switch and routing and implementing ALCATEL-IND1-MLD-MIB.') alcatelIND1MldMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2)) alaMldGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 1)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldStatus"), ("ALCATEL-IND1-MLD-MIB", "alaMldQuerying"), ("ALCATEL-IND1-MLD-MIB", "alaMldSpoofing"), ("ALCATEL-IND1-MLD-MIB", "alaMldZapping"), ("ALCATEL-IND1-MLD-MIB", "alaMldVersion"), ("ALCATEL-IND1-MLD-MIB", "alaMldRobustness"), ("ALCATEL-IND1-MLD-MIB", "alaMldQueryInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldQueryResponseInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldLastMemberQueryInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldRouterTimeout"), ("ALCATEL-IND1-MLD-MIB", "alaMldSourceTimeout"), ("ALCATEL-IND1-MLD-MIB", "alaMldProxying"), ("ALCATEL-IND1-MLD-MIB", "alaMldUnsolicitedReportInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldQuerierForwarding"), ("ALCATEL-IND1-MLD-MIB", "alaMldMaxGroupLimit"), ("ALCATEL-IND1-MLD-MIB", "alaMldMaxGroupExceedAction"), ("ALCATEL-IND1-MLD-MIB", "alaMldFloodUnknown"), ("ALCATEL-IND1-MLD-MIB", "alaMldHelperAddressType"), ("ALCATEL-IND1-MLD-MIB", "alaMldHelperAddress"), ("ALCATEL-IND1-MLD-MIB", "alaMldZeroBasedQuery")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldGroup = alaMldGroup.setStatus('current') if mibBuilder.loadTexts: alaMldGroup.setDescription('A collection of objects to support management of IPv6 multicast switching and routing system configuration.') alaMldVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 2)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldVlanStatus"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanQuerying"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanSpoofing"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanZapping"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanVersion"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanRobustness"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanQueryInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanQueryResponseInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanLastMemberQueryInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanRouterTimeout"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanSourceTimeout"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanProxying"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanUnsolicitedReportInterval"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanQuerierForwarding"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanMaxGroupLimit"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanMaxGroupExceedAction"), ("ALCATEL-IND1-MLD-MIB", "alaMldVlanZeroBasedQuery")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldVlanGroup = alaMldVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaMldVlanGroup.setDescription('A collection of objects to support management of IPv6 multicast switching and routing vlan configuration.') alaMldMemberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 3)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldMemberMode"), ("ALCATEL-IND1-MLD-MIB", "alaMldMemberCount"), ("ALCATEL-IND1-MLD-MIB", "alaMldMemberTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldMemberGroup = alaMldMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaMldMemberGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing group membership information.') alaMldStaticMemberGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 4)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldStaticMemberRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldStaticMemberGroup = alaMldStaticMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static group membership information tables.') alaMldNeighborGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 5)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldNeighborCount"), ("ALCATEL-IND1-MLD-MIB", "alaMldNeighborTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldNeighborGroup = alaMldNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast router information.') alaMldStaticNeighborGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 6)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldStaticNeighborRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldStaticNeighborGroup = alaMldStaticNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static IP multicast router information.') alaMldQuerierGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 7)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldQuerierCount"), ("ALCATEL-IND1-MLD-MIB", "alaMldQuerierTimeout")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldQuerierGroup = alaMldQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing MLD querier information.') alaMldStaticQuerierGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 8)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldStaticQuerierRowStatus")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldStaticQuerierGroup = alaMldStaticQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static MLD querier information.') alaMldSourceGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 9)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldSourceIfIndex"), ("ALCATEL-IND1-MLD-MIB", "alaMldSourceType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldSourceGroup = alaMldSourceGroup.setStatus('current') if mibBuilder.loadTexts: alaMldSourceGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast source information.') alaMldForwardGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 10)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldForwardIfIndex"), ("ALCATEL-IND1-MLD-MIB", "alaMldForwardType"), ("ALCATEL-IND1-MLD-MIB", "alaMldForwardNextType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldForwardGroup = alaMldForwardGroup.setStatus('current') if mibBuilder.loadTexts: alaMldForwardGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast forward information.') alaMldTunnelGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 11)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldTunnelIfIndex"), ("ALCATEL-IND1-MLD-MIB", "alaMldTunnelType"), ("ALCATEL-IND1-MLD-MIB", "alaMldTunnelNextType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldTunnelGroup = alaMldTunnelGroup.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast tunnel information.') alaMldPortGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 12)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldPortMaxGroupLimit"), ("ALCATEL-IND1-MLD-MIB", "alaMldPortMaxGroupExceedAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldPortGroup = alaMldPortGroup.setStatus('current') if mibBuilder.loadTexts: alaMldPortGroup.setDescription('A collection of objects to support IPv6 multicast switching configuration.') alaMldPortVlanGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 13)).setObjects(("ALCATEL-IND1-MLD-MIB", "alaMldPortVlanCurrentGroupCount"), ("ALCATEL-IND1-MLD-MIB", "alaMldPortVlanMaxGroupLimit"), ("ALCATEL-IND1-MLD-MIB", "alaMldPortVlanMaxGroupExceedAction")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): alaMldPortVlanGroup = alaMldPortVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanGroup.setDescription('An object to support IPv6 multicast switching group limit information for a port/vlan instance.') mibBuilder.exportSymbols("ALCATEL-IND1-MLD-MIB", alaMldProxying=alaMldProxying, alaMldForwardTable=alaMldForwardTable, alaMldStaticQuerierIfIndex=alaMldStaticQuerierIfIndex, alaMldVlanQueryResponseInterval=alaMldVlanQueryResponseInterval, alaMldTunnelNextDestAddress=alaMldTunnelNextDestAddress, alaMldNeighbor=alaMldNeighbor, alaMldSourceOrigAddress=alaMldSourceOrigAddress, alaMldPortGroup=alaMldPortGroup, alaMldZapping=alaMldZapping, alaMldForwardGroup=alaMldForwardGroup, alaMldVlanZeroBasedQuery=alaMldVlanZeroBasedQuery, alaMldUnsolicitedReportInterval=alaMldUnsolicitedReportInterval, alaMldVlanQuerying=alaMldVlanQuerying, alaMldStaticQuerier=alaMldStaticQuerier, alaMldPort=alaMldPort, alaMldNeighborTable=alaMldNeighborTable, alaMldZeroBasedQuery=alaMldZeroBasedQuery, alaMldVlanVersion=alaMldVlanVersion, alaMldSourceIfIndex=alaMldSourceIfIndex, alaMldTunnelOrigAddress=alaMldTunnelOrigAddress, alaMldTunnelDestAddress=alaMldTunnelDestAddress, alaMldTunnelType=alaMldTunnelType, alaMldPortVlanMaxGroupExceedAction=alaMldPortVlanMaxGroupExceedAction, alaMldStaticQuerierTable=alaMldStaticQuerierTable, alaMldStatus=alaMldStatus, alaMldVlanSpoofing=alaMldVlanSpoofing, alaMldNeighborVlan=alaMldNeighborVlan, alaMldGroup=alaMldGroup, alcatelIND1MldMIBCompliances=alcatelIND1MldMIBCompliances, alaMldQuerying=alaMldQuerying, alaMldMemberGroupAddress=alaMldMemberGroupAddress, alaMldVlanStatus=alaMldVlanStatus, alaMldStaticMemberGroup=alaMldStaticMemberGroup, alaMldNeighborEntry=alaMldNeighborEntry, alaMldVlanProxying=alaMldVlanProxying, alcatelIND1MldMIB=alcatelIND1MldMIB, alaMldStaticNeighborTable=alaMldStaticNeighborTable, alaMldVlanRouterTimeout=alaMldVlanRouterTimeout, alaMldPortVlanEntry=alaMldPortVlanEntry, alaMldVlan=alaMldVlan, alaMldStaticMemberGroupAddress=alaMldStaticMemberGroupAddress, alaMldQuerierHostAddress=alaMldQuerierHostAddress, alaMldNeighborTimeout=alaMldNeighborTimeout, alaMldForwardNextType=alaMldForwardNextType, alaMldPortTable=alaMldPortTable, alaMldQuerierTable=alaMldQuerierTable, alaMldRobustness=alaMldRobustness, alaMldForwardDestAddress=alaMldForwardDestAddress, alaMldQuerier=alaMldQuerier, alaMldForwardNextIfIndex=alaMldForwardNextIfIndex, alaMldVlanGroup=alaMldVlanGroup, alaMldSourceGroup=alaMldSourceGroup, alaMldMember=alaMldMember, alaMldStaticNeighbor=alaMldStaticNeighbor, alaMldSourceTimeout=alaMldSourceTimeout, alaMldSourceHostAddress=alaMldSourceHostAddress, alaMldQuerierEntry=alaMldQuerierEntry, alaMldMemberVlan=alaMldMemberVlan, alaMldStaticQuerierEntry=alaMldStaticQuerierEntry, alaMldSourceDestAddress=alaMldSourceDestAddress, alaMldMemberCount=alaMldMemberCount, alaMldCompliance=alaMldCompliance, alaMldSourceGroupAddress=alaMldSourceGroupAddress, alaMldStaticNeighborVlan=alaMldStaticNeighborVlan, alaMldVlanSourceTimeout=alaMldVlanSourceTimeout, alaMldLastMemberQueryInterval=alaMldLastMemberQueryInterval, alaMldQuerierGroup=alaMldQuerierGroup, alaMldVlanQueryInterval=alaMldVlanQueryInterval, alaMldForwardEntry=alaMldForwardEntry, alaMldForwardGroupAddress=alaMldForwardGroupAddress, alaMldTunnelGroupAddress=alaMldTunnelGroupAddress, alaMldQuerierCount=alaMldQuerierCount, alaMldTunnelEntry=alaMldTunnelEntry, alaMldForwardNextVlan=alaMldForwardNextVlan, alaMldSource=alaMldSource, alaMldMaxGroupExceedAction=alaMldMaxGroupExceedAction, alaMldForwardVlan=alaMldForwardVlan, alaMldVlanZapping=alaMldVlanZapping, alaMldMemberIfIndex=alaMldMemberIfIndex, alaMldPortIfIndex=alaMldPortIfIndex, alaMldPortVlanCurrentGroupCount=alaMldPortVlanCurrentGroupCount, alaMldStaticMemberRowStatus=alaMldStaticMemberRowStatus, alaMldQuerierTimeout=alaMldQuerierTimeout, alaMldQueryResponseInterval=alaMldQueryResponseInterval, alaMldPortVlan=alaMldPortVlan, alaMldNeighborIfIndex=alaMldNeighborIfIndex, alaMldTunnelVlan=alaMldTunnelVlan, alaMldPortVlanMaxGroupLimit=alaMldPortVlanMaxGroupLimit, alaMldStaticNeighborIfIndex=alaMldStaticNeighborIfIndex, alcatelIND1MldMIBObjects=alcatelIND1MldMIBObjects, alaMldSourceTable=alaMldSourceTable, alcatelIND1MldMIBConformance=alcatelIND1MldMIBConformance, alaMldQuerierIfIndex=alaMldQuerierIfIndex, alaMldForwardIfIndex=alaMldForwardIfIndex, alaMldForwardOrigAddress=alaMldForwardOrigAddress, alaMldVlanLastMemberQueryInterval=alaMldVlanLastMemberQueryInterval, alaMldTunnelHostAddress=alaMldTunnelHostAddress, alaMldVlanEntry=alaMldVlanEntry, alaMldStaticNeighborRowStatus=alaMldStaticNeighborRowStatus, alaMldPortMaxGroupExceedAction=alaMldPortMaxGroupExceedAction, alaMldTunnelTable=alaMldTunnelTable, alaMldNeighborHostAddress=alaMldNeighborHostAddress, alaMldForward=alaMldForward, alaMldQueryInterval=alaMldQueryInterval, alaMldTunnel=alaMldTunnel, alaMldMemberMode=alaMldMemberMode, alaMldMemberEntry=alaMldMemberEntry, alaMldPortEntry=alaMldPortEntry, alaMldMemberTable=alaMldMemberTable, alaMldTunnelIfIndex=alaMldTunnelIfIndex, alaMldQuerierVlan=alaMldQuerierVlan, alaMldVlanId=alaMldVlanId, alaMldStaticNeighborEntry=alaMldStaticNeighborEntry, alaMldMemberTimeout=alaMldMemberTimeout, alaMldMemberGroup=alaMldMemberGroup, alaMldVlanTable=alaMldVlanTable, alaMldSourceVlan=alaMldSourceVlan, alaMldStaticQuerierVlan=alaMldStaticQuerierVlan, alaMldVlanMaxGroupLimit=alaMldVlanMaxGroupLimit, alaMldStaticMemberEntry=alaMldStaticMemberEntry, alaMldVlanUnsolicitedReportInterval=alaMldVlanUnsolicitedReportInterval, alaMldStaticMember=alaMldStaticMember, alaMldTunnelGroup=alaMldTunnelGroup, alaMldSpoofing=alaMldSpoofing, alaMldRouterTimeout=alaMldRouterTimeout, alaMldForwardHostAddress=alaMldForwardHostAddress, alaMldTunnelNextType=alaMldTunnelNextType, alaMldQuerierForwarding=alaMldQuerierForwarding, alaMldPortVlanTable=alaMldPortVlanTable, alaMldMemberSourceAddress=alaMldMemberSourceAddress, alaMldNeighborCount=alaMldNeighborCount, alaMldSourceEntry=alaMldSourceEntry, alaMldStaticQuerierGroup=alaMldStaticQuerierGroup, alaMldVersion=alaMldVersion, alaMldPortVlanGroup=alaMldPortVlanGroup, alaMldVlanIndex=alaMldVlanIndex, alaMld=alaMld, alaMldStaticMemberTable=alaMldStaticMemberTable, alcatelIND1MldMIBGroups=alcatelIND1MldMIBGroups, alaMldStaticQuerierRowStatus=alaMldStaticQuerierRowStatus, PYSNMP_MODULE_ID=alcatelIND1MldMIB, alaMldVlanRobustness=alaMldVlanRobustness, alaMldFloodUnknown=alaMldFloodUnknown, alaMldHelperAddress=alaMldHelperAddress, alaMldStaticMemberIfIndex=alaMldStaticMemberIfIndex, alaMldSourceType=alaMldSourceType, alaMldVlanQuerierForwarding=alaMldVlanQuerierForwarding, alaMldNeighborGroup=alaMldNeighborGroup, alaMldStaticNeighborGroup=alaMldStaticNeighborGroup, alaMldStaticMemberVlan=alaMldStaticMemberVlan, alaMldVlanMaxGroupExceedAction=alaMldVlanMaxGroupExceedAction, alaMldPortMaxGroupLimit=alaMldPortMaxGroupLimit, alaMldHelperAddressType=alaMldHelperAddressType, alaMldMaxGroupLimit=alaMldMaxGroupLimit, alaMldForwardType=alaMldForwardType)
(softent_ind1_mld,) = mibBuilder.importSymbols('ALCATEL-IND1-BASE', 'softentIND1Mld') (octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_range_constraint, single_value_constraint, constraints_union, value_size_constraint, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueRangeConstraint', 'SingleValueConstraint', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection') (interface_index,) = mibBuilder.importSymbols('IF-MIB', 'InterfaceIndex') (inet_address_type, inet_address_i_pv6, inet_address) = mibBuilder.importSymbols('INET-ADDRESS-MIB', 'InetAddressType', 'InetAddressIPv6', 'InetAddress') (module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup') (bits, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, mib_identifier, notification_type, integer32, gauge32, ip_address, counter32, counter64, unsigned32, module_identity, iso, object_identity) = mibBuilder.importSymbols('SNMPv2-SMI', 'Bits', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'MibIdentifier', 'NotificationType', 'Integer32', 'Gauge32', 'IpAddress', 'Counter32', 'Counter64', 'Unsigned32', 'ModuleIdentity', 'iso', 'ObjectIdentity') (display_string, row_status, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'RowStatus', 'TextualConvention') alcatel_ind1_mld_mib = module_identity((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1)) alcatelIND1MldMIB.setRevisions(('2011-02-23 00:00', '2008-09-10 00:00', '2008-08-08 00:00', '2007-04-03 00:00')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): if mibBuilder.loadTexts: alcatelIND1MldMIB.setRevisionsDescriptions(('Add zero-based query object and helper address object', 'Add flood unknown object', 'The latest version of this MIB Module. Added maximum group limit objects.', 'The revised version of this MIB Module.')) if mibBuilder.loadTexts: alcatelIND1MldMIB.setLastUpdated('201102230000Z') if mibBuilder.loadTexts: alcatelIND1MldMIB.setOrganization('Alcatel-Lucent') if mibBuilder.loadTexts: alcatelIND1MldMIB.setContactInfo('Please consult with Customer Service to ensure the most appropriate version of this document is used with the products in question: Alcatel-Lucent, Enterprise Solutions Division (Formerly Alcatel Internetworking, Incorporated) 26801 West Agoura Road Agoura Hills, CA 91301-5122 United States Of America Telephone: North America +1 800 995 2696 Latin America +1 877 919 9526 Europe +31 23 556 0100 Asia +65 394 7933 All Other +1 818 878 4507 Electronic Mail: support@ind.alcatel.com World Wide Web: http://alcatel-lucent.com/wps/portal/enterprise File Transfer Protocol: ftp://ftp.ind.alcatel.com/pub/products/mibs') if mibBuilder.loadTexts: alcatelIND1MldMIB.setDescription('This module describes an authoritative enterprise-specific Simple Network Management Protocol (SNMP) Management Information Base (MIB): Proprietary IPv6 Multicast MIB definitions The right to make changes in specification and other information contained in this document without prior notice is reserved. No liability shall be assumed for any incidental, indirect, special, or consequential damages whatsoever arising from or related to this document or the information contained herein. Vendors, end-users, and other interested parties are granted non-exclusive license to use this specification in connection with management of the products for which it is intended to be used. Copyright (C) 1995-2007 Alcatel-Lucent ALL RIGHTS RESERVED WORLDWIDE') alcatel_ind1_mld_mib_objects = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1)) ala_mld = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1)) ala_mld_status = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStatus.setDescription('Administratively enable IPv6 multicast switching and routing on the system.') ala_mld_querying = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldQuerying.setStatus('current') if mibBuilder.loadTexts: alaMldQuerying.setDescription('Administratively enable MLD Querying on the system.') ala_mld_spoofing = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldSpoofing.setStatus('current') if mibBuilder.loadTexts: alaMldSpoofing.setDescription('Administratively enable MLD Spoofing on the system.') ala_mld_zapping = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldZapping.setStatus('current') if mibBuilder.loadTexts: alaMldZapping.setDescription('Administratively enable MLD Zapping on the system.') ala_mld_version = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 5), unsigned32().clone(1)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVersion.setStatus('current') if mibBuilder.loadTexts: alaMldVersion.setDescription('Set the default MLD protocol Version running on the system.') ala_mld_robustness = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 6), unsigned32().clone(2)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldRobustness.setStatus('current') if mibBuilder.loadTexts: alaMldRobustness.setDescription('Set the MLD Robustness variable used on the system.') ala_mld_query_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 7), unsigned32().clone(125)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldQueryInterval.setDescription('Set the MLD Query Interval used on the system.') ala_mld_query_response_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 8), unsigned32().clone(10000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaMldQueryResponseInterval.setDescription('Set the MLD Query Response Interval on the system.') ala_mld_last_member_query_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 9), unsigned32().clone(1000)).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldLastMemberQueryInterval.setDescription('Set the MLD Last Member Query Interval on the system.') ala_mld_router_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 10), unsigned32().clone(90)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldRouterTimeout.setDescription('The MLD Router Timeout on the system.') ala_mld_source_timeout = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 11), unsigned32().clone(30)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldSourceTimeout.setDescription('The MLD Source Timeout on the system.') ala_mld_proxying = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldProxying.setStatus('current') if mibBuilder.loadTexts: alaMldProxying.setDescription('Administratively enable MLD Proxying on the system.') ala_mld_unsolicited_report_interval = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 13), unsigned32().clone(1)).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaMldUnsolicitedReportInterval.setDescription('The MLD Unsolicited Report Interval on the system.') ala_mld_querier_forwarding = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierForwarding.setDescription('Administratively enable MLD Querier Forwarding on the system.') ala_mld_max_group_limit = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 15), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldMaxGroupLimit.setDescription('The global limit on maximum number of MLD Group memberships that can be learnt on each port/vlan instance.') ala_mld_max_group_exceed_action = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 16), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldMaxGroupExceedAction.setDescription('The global configuration of action to be taken when MLD group membership limit is exceeded on a port/vlan instance.') ala_mld_flood_unknown = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('disable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldFloodUnknown.setStatus('current') if mibBuilder.loadTexts: alaMldFloodUnknown.setDescription('Administratively enable flooding of multicast data packets during flow learning and setup.') ala_mld_helper_address_type = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 18), inet_address_type().subtype(subtypeSpec=value_range_constraint(2, 2))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldHelperAddressType.setStatus('current') if mibBuilder.loadTexts: alaMldHelperAddressType.setDescription('Set the address type of the helper address. Must be ipv4(1) and set at the same time as alaMldHelperAddress.') ala_mld_helper_address = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 19), inet_address().subtype(subtypeSpec=value_size_constraint(16, 16)).setFixedLength(16)).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldHelperAddress.setStatus('current') if mibBuilder.loadTexts: alaMldHelperAddress.setDescription('The configured IPv6 helper address. When an MLD report or leave is received by the device it will remove the IP header and regenerate a new IP header with a destination IP address specified. Use :: to no longer help an MLD report to an remote address. Must be set at the same time as alaMldHelperAddressType') ala_mld_zero_based_query = mib_scalar((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 1, 20), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaMldZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv6 address for query packets when a non-querier is querying the membership of a port') ala_mld_vlan = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2)) ala_mld_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1)) if mibBuilder.loadTexts: alaMldVlanTable.setStatus('current') if mibBuilder.loadTexts: alaMldVlanTable.setDescription('The VLAN table contains the information on which IPv6 multicast switching and routing is configured.') ala_mld_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldVlanIndex')) if mibBuilder.loadTexts: alaMldVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaMldVlanEntry.setDescription('An entry corresponds to a VLAN on which IPv6 multicast switching and routing is configured.') ala_mld_vlan_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldVlanIndex.setStatus('current') if mibBuilder.loadTexts: alaMldVlanIndex.setDescription('The VLAN on which IPv6 multicast switching and routing is configured.') ala_mld_vlan_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanStatus.setStatus('current') if mibBuilder.loadTexts: alaMldVlanStatus.setDescription('Administratively enable IPv6 multicast switching and routing on the VLAN.') ala_mld_vlan_querying = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanQuerying.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQuerying.setDescription('Administratively enable MLD Querying on the VLAN.') ala_mld_vlan_spoofing = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanSpoofing.setStatus('current') if mibBuilder.loadTexts: alaMldVlanSpoofing.setDescription('Administratively enable MLD Spoofing on the VLAN.') ala_mld_vlan_zapping = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanZapping.setStatus('current') if mibBuilder.loadTexts: alaMldVlanZapping.setDescription('Administratively enable MLD Zapping on the VLAN.') ala_mld_vlan_version = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 6), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanVersion.setStatus('current') if mibBuilder.loadTexts: alaMldVlanVersion.setDescription('Set the default MLD protocol Version running on the VLAN.') ala_mld_vlan_robustness = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 7), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanRobustness.setStatus('current') if mibBuilder.loadTexts: alaMldVlanRobustness.setDescription('Set the MLD Robustness variable used on the VLAN.') ala_mld_vlan_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 8), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQueryInterval.setDescription('Set the MLD Query Interval used on the VLAN.') ala_mld_vlan_query_response_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 9), unsigned32()).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanQueryResponseInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQueryResponseInterval.setDescription('Set the MLD Query Response Interval on the VLAN.') ala_mld_vlan_last_member_query_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 10), unsigned32()).setUnits('milliseconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanLastMemberQueryInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanLastMemberQueryInterval.setDescription('Set the MLD Last Member Query Interval on the VLAN.') ala_mld_vlan_router_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 11), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanRouterTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldVlanRouterTimeout.setDescription('Set the MLD Router Timeout on the VLAN.') ala_mld_vlan_source_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 12), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanSourceTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldVlanSourceTimeout.setDescription('Set the MLD Source Timeout on the VLAN.') ala_mld_vlan_proxying = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanProxying.setStatus('current') if mibBuilder.loadTexts: alaMldVlanProxying.setDescription('Administratively enable MLD Proxying on the VLAN.') ala_mld_vlan_unsolicited_report_interval = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 14), unsigned32()).setUnits('seconds').setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanUnsolicitedReportInterval.setStatus('current') if mibBuilder.loadTexts: alaMldVlanUnsolicitedReportInterval.setDescription('Set the MLD Unsolicited Report Interval on the VLAN.') ala_mld_vlan_querier_forwarding = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2)))).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanQuerierForwarding.setStatus('current') if mibBuilder.loadTexts: alaMldVlanQuerierForwarding.setDescription('Administratively enable MLD Querier Forwarding on the VLAN.') ala_mld_vlan_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 16), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldVlanMaxGroupLimit.setDescription('The maximum number of MLD Group memberships that can be learnt on the VLAN.') ala_mld_vlan_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 17), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldVlanMaxGroupExceedAction.setDescription('The action to be taken when the MLD group membership limit is exceeded on the VLAN.') ala_mld_vlan_zero_based_query = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 2, 1, 1, 18), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('enable', 1), ('disable', 2))).clone('enable')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldVlanZeroBasedQuery.setStatus('current') if mibBuilder.loadTexts: alaMldVlanZeroBasedQuery.setDescription('Administratively enable the use of an all-zero source IPv6 address for query packets when a non-querier is querying the membership of a port on the VLAN') ala_mld_member = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3)) ala_mld_member_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1)) if mibBuilder.loadTexts: alaMldMemberTable.setStatus('current') if mibBuilder.loadTexts: alaMldMemberTable.setDescription('The table listing the MLD group membership information.') ala_mld_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldMemberVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldMemberIfIndex'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldMemberGroupAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldMemberSourceAddress')) if mibBuilder.loadTexts: alaMldMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaMldMemberEntry.setDescription('An entry corresponding to an MLD group membership request.') ala_mld_member_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaMldMemberVlan.setDescription("The group membership request's VLAN.") ala_mld_member_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldMemberIfIndex.setDescription("The group membership request's ifIndex.") ala_mld_member_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldMemberGroupAddress.setDescription("The group membership request's IPv6 group address.") ala_mld_member_source_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 4), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldMemberSourceAddress.setStatus('current') if mibBuilder.loadTexts: alaMldMemberSourceAddress.setDescription("The group membership request's IPv6 source address.") ala_mld_member_mode = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('include', 1), ('exclude', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldMemberMode.setStatus('current') if mibBuilder.loadTexts: alaMldMemberMode.setDescription("The group membership request's MLD source filter mode.") ala_mld_member_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 6), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldMemberCount.setStatus('current') if mibBuilder.loadTexts: alaMldMemberCount.setDescription("The group membership request's counter.") ala_mld_member_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 3, 1, 1, 7), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldMemberTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldMemberTimeout.setDescription("The group membership request's timeout.") ala_mld_static_member = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4)) ala_mld_static_member_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1)) if mibBuilder.loadTexts: alaMldStaticMemberTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberTable.setDescription('The table listing the static MLD group membership information.') ala_mld_static_member_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticMemberVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticMemberIfIndex'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticMemberGroupAddress')) if mibBuilder.loadTexts: alaMldStaticMemberEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberEntry.setDescription('An entry corresponding to a static MLD group membership request.') ala_mld_static_member_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldStaticMemberVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberVlan.setDescription("The static group membership request's VLAN.") ala_mld_static_member_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldStaticMemberIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberIfIndex.setDescription("The static group membership request's ifIndex.") ala_mld_static_member_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldStaticMemberGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberGroupAddress.setDescription("The static group membership request's IPv6 group address.") ala_mld_static_member_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 4, 1, 1, 4), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaMldStaticMemberRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_mld_neighbor = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5)) ala_mld_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1)) if mibBuilder.loadTexts: alaMldNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborTable.setDescription('The table listing the neighboring IP multicast routers.') ala_mld_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldNeighborVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldNeighborIfIndex'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldNeighborHostAddress')) if mibBuilder.loadTexts: alaMldNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborEntry.setDescription('An entry corresponding to an IP multicast router.') ala_mld_neighbor_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborVlan.setDescription("The IP multicast router's VLAN.") ala_mld_neighbor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborIfIndex.setDescription("The IP multicast router's ifIndex.") ala_mld_neighbor_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldNeighborHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborHostAddress.setDescription("The IP multicast router's IPv6 host address.") ala_mld_neighbor_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldNeighborCount.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborCount.setDescription("The IP multicast router's counter.") ala_mld_neighbor_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 5, 1, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldNeighborTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborTimeout.setDescription("The IP multicast router's timeout.") ala_mld_static_neighbor = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6)) ala_mld_static_neighbor_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1)) if mibBuilder.loadTexts: alaMldStaticNeighborTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborTable.setDescription('The table listing the static IP multicast routers.') ala_mld_static_neighbor_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticNeighborVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticNeighborIfIndex')) if mibBuilder.loadTexts: alaMldStaticNeighborEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborEntry.setDescription('An entry corresponding to a static IP multicast router.') ala_mld_static_neighbor_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldStaticNeighborVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborVlan.setDescription("The static IP multicast router's VLAN.") ala_mld_static_neighbor_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldStaticNeighborIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborIfIndex.setDescription("The static IP multicast router's ifIndex.") ala_mld_static_neighbor_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 6, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaMldStaticNeighborRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_mld_querier = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7)) ala_mld_querier_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1)) if mibBuilder.loadTexts: alaMldQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierTable.setDescription('The table listing the neighboring MLD queriers.') ala_mld_querier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldQuerierVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldQuerierIfIndex'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldQuerierHostAddress')) if mibBuilder.loadTexts: alaMldQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierEntry.setDescription('An entry corresponding to an MLD querier.') ala_mld_querier_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierVlan.setDescription("The MLD querier's VLAN.") ala_mld_querier_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierIfIndex.setDescription("The MLD querier's ifIndex.") ala_mld_querier_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldQuerierHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierHostAddress.setDescription("The MLD querier's IPv6 host address.") ala_mld_querier_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 4), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldQuerierCount.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierCount.setDescription("The MLD querier's counter.") ala_mld_querier_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 7, 1, 1, 5), time_ticks()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldQuerierTimeout.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierTimeout.setDescription("The MLD querier's timeout.") ala_mld_static_querier = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8)) ala_mld_static_querier_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1)) if mibBuilder.loadTexts: alaMldStaticQuerierTable.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierTable.setDescription('The table listing the static MLD queriers.') ala_mld_static_querier_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticQuerierVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldStaticQuerierIfIndex')) if mibBuilder.loadTexts: alaMldStaticQuerierEntry.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierEntry.setDescription('An entry corresponding to a static MLD querier.') ala_mld_static_querier_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldStaticQuerierVlan.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierVlan.setDescription("The static MLD querier's VLAN.") ala_mld_static_querier_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 2), interface_index()) if mibBuilder.loadTexts: alaMldStaticQuerierIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierIfIndex.setDescription("The static MLD querier's ifIndex.") ala_mld_static_querier_row_status = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 8, 1, 1, 3), row_status()).setMaxAccess('readcreate') if mibBuilder.loadTexts: alaMldStaticQuerierRowStatus.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierRowStatus.setDescription('Used in accordance with installation and removal conventions for conceptual rows.') ala_mld_source = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9)) ala_mld_source_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1)) if mibBuilder.loadTexts: alaMldSourceTable.setStatus('current') if mibBuilder.loadTexts: alaMldSourceTable.setDescription('The table listing the IP multicast source information.') ala_mld_source_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldSourceVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldSourceGroupAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldSourceHostAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldSourceDestAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldSourceOrigAddress')) if mibBuilder.loadTexts: alaMldSourceEntry.setStatus('current') if mibBuilder.loadTexts: alaMldSourceEntry.setDescription('An entry corresponding to an IP multicast source flow.') ala_mld_source_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldSourceVlan.setStatus('current') if mibBuilder.loadTexts: alaMldSourceVlan.setDescription("The IP multicast source flow's VLAN.") ala_mld_source_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldSourceIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldSourceIfIndex.setDescription("The IP multicast source flow's ifIndex.") ala_mld_source_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldSourceGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceGroupAddress.setDescription("The IP multicast source flow's IPv6 group address.") ala_mld_source_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 4), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldSourceHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceHostAddress.setDescription("The IP multicast source flow's IPv6 host address.") ala_mld_source_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 5), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldSourceDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceDestAddress.setDescription("The IP multicast source flow's IPv6 tunnel destination address.") ala_mld_source_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 6), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldSourceOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldSourceOrigAddress.setDescription("The IP multicast source flow's IPv6 tunnel source address.") ala_mld_source_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 9, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mcast', 1), ('pim', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldSourceType.setStatus('current') if mibBuilder.loadTexts: alaMldSourceType.setDescription("The IP multicast source flow's encapsulation type.") ala_mld_forward = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10)) ala_mld_forward_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1)) if mibBuilder.loadTexts: alaMldForwardTable.setStatus('current') if mibBuilder.loadTexts: alaMldForwardTable.setDescription('The table listing the IP multicast forward information.') ala_mld_forward_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardGroupAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardHostAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardDestAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardOrigAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardNextVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldForwardNextIfIndex')) if mibBuilder.loadTexts: alaMldForwardEntry.setStatus('current') if mibBuilder.loadTexts: alaMldForwardEntry.setDescription('An entry corresponding to an IP multicast forwarded flow.') ala_mld_forward_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldForwardVlan.setStatus('current') if mibBuilder.loadTexts: alaMldForwardVlan.setDescription("The IP multicast forwarded flow's VLAN.") ala_mld_forward_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldForwardIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldForwardIfIndex.setDescription("The IP multicast forwarded flow's ifIndex.") ala_mld_forward_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldForwardGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardGroupAddress.setDescription("The IP multicast forwarded flow's IPv6 group address.") ala_mld_forward_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 4), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldForwardHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardHostAddress.setDescription("The IP multicast forwarded flow's IPv6 host address.") ala_mld_forward_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 5), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldForwardDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardDestAddress.setDescription("The IP multicast forwarded flow's IPv6 tunnel destination address.") ala_mld_forward_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 6), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldForwardOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldForwardOrigAddress.setDescription("The IP multicast forwarded flow's IPv6 tunnel source address.") ala_mld_forward_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mcast', 1), ('pim', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldForwardType.setStatus('current') if mibBuilder.loadTexts: alaMldForwardType.setDescription("The IP multicast forwarded flow's encapsulation type.") ala_mld_forward_next_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 8), unsigned32()) if mibBuilder.loadTexts: alaMldForwardNextVlan.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextVlan.setDescription("The IP multicast forwarded flow's next VLAN.") ala_mld_forward_next_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 9), interface_index()) if mibBuilder.loadTexts: alaMldForwardNextIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextIfIndex.setDescription("The IP multicast forwarded flow's next ifIndex.") ala_mld_forward_next_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 10, 1, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mcast', 1), ('pim', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldForwardNextType.setStatus('current') if mibBuilder.loadTexts: alaMldForwardNextType.setDescription("The IP multicast forwarded flow's next encapsulation type.") ala_mld_tunnel = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11)) ala_mld_tunnel_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1)) if mibBuilder.loadTexts: alaMldTunnelTable.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelTable.setDescription('The table listing the IP multicast tunnel information.') ala_mld_tunnel_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelVlan'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelGroupAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelHostAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelDestAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelOrigAddress'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldTunnelNextDestAddress')) if mibBuilder.loadTexts: alaMldTunnelEntry.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelEntry.setDescription('An entry corresponding to an IP multicast tunneled flow.') ala_mld_tunnel_vlan = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldTunnelVlan.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelVlan.setDescription("The IP multicast tunneled flow's VLAN.") ala_mld_tunnel_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 2), interface_index()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldTunnelIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelIfIndex.setDescription("The IP multicast tunneled flow's ifIndex.") ala_mld_tunnel_group_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 3), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldTunnelGroupAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelGroupAddress.setDescription("The IP multicast tunneled flow's IPv6 group address.") ala_mld_tunnel_host_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 4), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldTunnelHostAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelHostAddress.setDescription("The IP multicast tunneled flow's IPv6 host address.") ala_mld_tunnel_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 5), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldTunnelDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelDestAddress.setDescription("The IP multicast tunneled flow's IPv6 tunnel destination address.") ala_mld_tunnel_orig_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 6), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldTunnelOrigAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelOrigAddress.setDescription("The IP multicast tunneled flow's IPv6 tunnel source address.") ala_mld_tunnel_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mcast', 1), ('pim', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldTunnelType.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelType.setDescription("The IP multicast tunneled flow's encapsulation type.") ala_mld_tunnel_next_dest_address = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 8), inet_address_i_pv6()) if mibBuilder.loadTexts: alaMldTunnelNextDestAddress.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelNextDestAddress.setDescription("The IP multicast tunneled flow's next IPv6 tunnel destination address.") ala_mld_tunnel_next_type = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 11, 1, 1, 9), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('mcast', 1), ('pim', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldTunnelNextType.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelNextType.setDescription("The IP multicast tunneled flow's next encapsulation type.") ala_mld_port = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12)) ala_mld_port_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1)) if mibBuilder.loadTexts: alaMldPortTable.setStatus('current') if mibBuilder.loadTexts: alaMldPortTable.setDescription('The table listing the IPv6 Multicast port information.') ala_mld_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldPortIfIndex')) if mibBuilder.loadTexts: alaMldPortEntry.setStatus('current') if mibBuilder.loadTexts: alaMldPortEntry.setDescription('An entry corresponding to IPv6 Multicast port information.') ala_mld_port_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 1), interface_index()) if mibBuilder.loadTexts: alaMldPortIfIndex.setStatus('current') if mibBuilder.loadTexts: alaMldPortIfIndex.setDescription("The IP multicast port's ifIndex.") ala_mld_port_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 2), unsigned32()).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldPortMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldPortMaxGroupLimit.setDescription('The maximum number of MLD Group memberships that can be learnt on the interface.') ala_mld_port_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 12, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2))).clone('none')).setMaxAccess('readwrite') if mibBuilder.loadTexts: alaMldPortMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldPortMaxGroupExceedAction.setDescription('The action to be taken when MLD group membership limit is exceeded for the interface.') ala_mld_port_vlan = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13)) ala_mld_port_vlan_table = mib_table((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1)) if mibBuilder.loadTexts: alaMldPortVlanTable.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanTable.setDescription('The table listing the MLD group membership limit information for a port/vlan instance.') ala_mld_port_vlan_entry = mib_table_row((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1)).setIndexNames((0, 'ALCATEL-IND1-MLD-MIB', 'alaMldPortIfIndex'), (0, 'ALCATEL-IND1-MLD-MIB', 'alaMldVlanId')) if mibBuilder.loadTexts: alaMldPortVlanEntry.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanEntry.setDescription('An entry corresponding to MLD group membership limit on a port/vlan.') ala_mld_vlan_id = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 1), unsigned32()) if mibBuilder.loadTexts: alaMldVlanId.setStatus('current') if mibBuilder.loadTexts: alaMldVlanId.setDescription('The IPv6 multicast group membership VLAN.') ala_mld_port_vlan_current_group_count = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 2), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldPortVlanCurrentGroupCount.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanCurrentGroupCount.setDescription('The current IPv6 multicast group memberships on a port/vlan instance.') ala_mld_port_vlan_max_group_limit = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 3), unsigned32()).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupLimit.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupLimit.setDescription('Maximum MLD Group memberships on the port/vlan instance.') ala_mld_port_vlan_max_group_exceed_action = mib_table_column((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 1, 13, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(0, 1, 2))).clone(namedValues=named_values(('none', 0), ('drop', 1), ('replace', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupExceedAction.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanMaxGroupExceedAction.setDescription('The action to be taken when MLD group membership limit is exceeded for the port/vlan instance.') alcatel_ind1_mld_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2)) alcatel_ind1_mld_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 1)) ala_mld_compliance = module_compliance((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 1, 1)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldMemberGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldStaticMemberGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldNeighborGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldStaticNeighborGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQuerierGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldStaticQuerierGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldSourceGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldForwardGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldTunnelGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldPortGroup'), ('ALCATEL-IND1-MLD-MIB', 'alaMldPortVlanGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_compliance = alaMldCompliance.setStatus('current') if mibBuilder.loadTexts: alaMldCompliance.setDescription('The compliance statement for systems running IPv6 multicast switch and routing and implementing ALCATEL-IND1-MLD-MIB.') alcatel_ind1_mld_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2)) ala_mld_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 1)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldStatus'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQuerying'), ('ALCATEL-IND1-MLD-MIB', 'alaMldSpoofing'), ('ALCATEL-IND1-MLD-MIB', 'alaMldZapping'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVersion'), ('ALCATEL-IND1-MLD-MIB', 'alaMldRobustness'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQueryInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQueryResponseInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldLastMemberQueryInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldRouterTimeout'), ('ALCATEL-IND1-MLD-MIB', 'alaMldSourceTimeout'), ('ALCATEL-IND1-MLD-MIB', 'alaMldProxying'), ('ALCATEL-IND1-MLD-MIB', 'alaMldUnsolicitedReportInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQuerierForwarding'), ('ALCATEL-IND1-MLD-MIB', 'alaMldMaxGroupLimit'), ('ALCATEL-IND1-MLD-MIB', 'alaMldMaxGroupExceedAction'), ('ALCATEL-IND1-MLD-MIB', 'alaMldFloodUnknown'), ('ALCATEL-IND1-MLD-MIB', 'alaMldHelperAddressType'), ('ALCATEL-IND1-MLD-MIB', 'alaMldHelperAddress'), ('ALCATEL-IND1-MLD-MIB', 'alaMldZeroBasedQuery')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_group = alaMldGroup.setStatus('current') if mibBuilder.loadTexts: alaMldGroup.setDescription('A collection of objects to support management of IPv6 multicast switching and routing system configuration.') ala_mld_vlan_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 2)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldVlanStatus'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanQuerying'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanSpoofing'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanZapping'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanVersion'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanRobustness'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanQueryInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanQueryResponseInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanLastMemberQueryInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanRouterTimeout'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanSourceTimeout'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanProxying'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanUnsolicitedReportInterval'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanQuerierForwarding'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanMaxGroupLimit'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanMaxGroupExceedAction'), ('ALCATEL-IND1-MLD-MIB', 'alaMldVlanZeroBasedQuery')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_vlan_group = alaMldVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaMldVlanGroup.setDescription('A collection of objects to support management of IPv6 multicast switching and routing vlan configuration.') ala_mld_member_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 3)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldMemberMode'), ('ALCATEL-IND1-MLD-MIB', 'alaMldMemberCount'), ('ALCATEL-IND1-MLD-MIB', 'alaMldMemberTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_member_group = alaMldMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaMldMemberGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing group membership information.') ala_mld_static_member_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 4)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldStaticMemberRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_static_member_group = alaMldStaticMemberGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticMemberGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static group membership information tables.') ala_mld_neighbor_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 5)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldNeighborCount'), ('ALCATEL-IND1-MLD-MIB', 'alaMldNeighborTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_neighbor_group = alaMldNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaMldNeighborGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast router information.') ala_mld_static_neighbor_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 6)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldStaticNeighborRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_static_neighbor_group = alaMldStaticNeighborGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticNeighborGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static IP multicast router information.') ala_mld_querier_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 7)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldQuerierCount'), ('ALCATEL-IND1-MLD-MIB', 'alaMldQuerierTimeout')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_querier_group = alaMldQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaMldQuerierGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing MLD querier information.') ala_mld_static_querier_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 8)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldStaticQuerierRowStatus')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_static_querier_group = alaMldStaticQuerierGroup.setStatus('current') if mibBuilder.loadTexts: alaMldStaticQuerierGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing static MLD querier information.') ala_mld_source_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 9)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldSourceIfIndex'), ('ALCATEL-IND1-MLD-MIB', 'alaMldSourceType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_source_group = alaMldSourceGroup.setStatus('current') if mibBuilder.loadTexts: alaMldSourceGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast source information.') ala_mld_forward_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 10)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldForwardIfIndex'), ('ALCATEL-IND1-MLD-MIB', 'alaMldForwardType'), ('ALCATEL-IND1-MLD-MIB', 'alaMldForwardNextType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_forward_group = alaMldForwardGroup.setStatus('current') if mibBuilder.loadTexts: alaMldForwardGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast forward information.') ala_mld_tunnel_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 11)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldTunnelIfIndex'), ('ALCATEL-IND1-MLD-MIB', 'alaMldTunnelType'), ('ALCATEL-IND1-MLD-MIB', 'alaMldTunnelNextType')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_tunnel_group = alaMldTunnelGroup.setStatus('current') if mibBuilder.loadTexts: alaMldTunnelGroup.setDescription('A collection of objects to support IPv6 multicast switching and routing IP multicast tunnel information.') ala_mld_port_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 12)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldPortMaxGroupLimit'), ('ALCATEL-IND1-MLD-MIB', 'alaMldPortMaxGroupExceedAction')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_port_group = alaMldPortGroup.setStatus('current') if mibBuilder.loadTexts: alaMldPortGroup.setDescription('A collection of objects to support IPv6 multicast switching configuration.') ala_mld_port_vlan_group = object_group((1, 3, 6, 1, 4, 1, 6486, 801, 1, 2, 1, 35, 1, 2, 2, 13)).setObjects(('ALCATEL-IND1-MLD-MIB', 'alaMldPortVlanCurrentGroupCount'), ('ALCATEL-IND1-MLD-MIB', 'alaMldPortVlanMaxGroupLimit'), ('ALCATEL-IND1-MLD-MIB', 'alaMldPortVlanMaxGroupExceedAction')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): ala_mld_port_vlan_group = alaMldPortVlanGroup.setStatus('current') if mibBuilder.loadTexts: alaMldPortVlanGroup.setDescription('An object to support IPv6 multicast switching group limit information for a port/vlan instance.') mibBuilder.exportSymbols('ALCATEL-IND1-MLD-MIB', alaMldProxying=alaMldProxying, alaMldForwardTable=alaMldForwardTable, alaMldStaticQuerierIfIndex=alaMldStaticQuerierIfIndex, alaMldVlanQueryResponseInterval=alaMldVlanQueryResponseInterval, alaMldTunnelNextDestAddress=alaMldTunnelNextDestAddress, alaMldNeighbor=alaMldNeighbor, alaMldSourceOrigAddress=alaMldSourceOrigAddress, alaMldPortGroup=alaMldPortGroup, alaMldZapping=alaMldZapping, alaMldForwardGroup=alaMldForwardGroup, alaMldVlanZeroBasedQuery=alaMldVlanZeroBasedQuery, alaMldUnsolicitedReportInterval=alaMldUnsolicitedReportInterval, alaMldVlanQuerying=alaMldVlanQuerying, alaMldStaticQuerier=alaMldStaticQuerier, alaMldPort=alaMldPort, alaMldNeighborTable=alaMldNeighborTable, alaMldZeroBasedQuery=alaMldZeroBasedQuery, alaMldVlanVersion=alaMldVlanVersion, alaMldSourceIfIndex=alaMldSourceIfIndex, alaMldTunnelOrigAddress=alaMldTunnelOrigAddress, alaMldTunnelDestAddress=alaMldTunnelDestAddress, alaMldTunnelType=alaMldTunnelType, alaMldPortVlanMaxGroupExceedAction=alaMldPortVlanMaxGroupExceedAction, alaMldStaticQuerierTable=alaMldStaticQuerierTable, alaMldStatus=alaMldStatus, alaMldVlanSpoofing=alaMldVlanSpoofing, alaMldNeighborVlan=alaMldNeighborVlan, alaMldGroup=alaMldGroup, alcatelIND1MldMIBCompliances=alcatelIND1MldMIBCompliances, alaMldQuerying=alaMldQuerying, alaMldMemberGroupAddress=alaMldMemberGroupAddress, alaMldVlanStatus=alaMldVlanStatus, alaMldStaticMemberGroup=alaMldStaticMemberGroup, alaMldNeighborEntry=alaMldNeighborEntry, alaMldVlanProxying=alaMldVlanProxying, alcatelIND1MldMIB=alcatelIND1MldMIB, alaMldStaticNeighborTable=alaMldStaticNeighborTable, alaMldVlanRouterTimeout=alaMldVlanRouterTimeout, alaMldPortVlanEntry=alaMldPortVlanEntry, alaMldVlan=alaMldVlan, alaMldStaticMemberGroupAddress=alaMldStaticMemberGroupAddress, alaMldQuerierHostAddress=alaMldQuerierHostAddress, alaMldNeighborTimeout=alaMldNeighborTimeout, alaMldForwardNextType=alaMldForwardNextType, alaMldPortTable=alaMldPortTable, alaMldQuerierTable=alaMldQuerierTable, alaMldRobustness=alaMldRobustness, alaMldForwardDestAddress=alaMldForwardDestAddress, alaMldQuerier=alaMldQuerier, alaMldForwardNextIfIndex=alaMldForwardNextIfIndex, alaMldVlanGroup=alaMldVlanGroup, alaMldSourceGroup=alaMldSourceGroup, alaMldMember=alaMldMember, alaMldStaticNeighbor=alaMldStaticNeighbor, alaMldSourceTimeout=alaMldSourceTimeout, alaMldSourceHostAddress=alaMldSourceHostAddress, alaMldQuerierEntry=alaMldQuerierEntry, alaMldMemberVlan=alaMldMemberVlan, alaMldStaticQuerierEntry=alaMldStaticQuerierEntry, alaMldSourceDestAddress=alaMldSourceDestAddress, alaMldMemberCount=alaMldMemberCount, alaMldCompliance=alaMldCompliance, alaMldSourceGroupAddress=alaMldSourceGroupAddress, alaMldStaticNeighborVlan=alaMldStaticNeighborVlan, alaMldVlanSourceTimeout=alaMldVlanSourceTimeout, alaMldLastMemberQueryInterval=alaMldLastMemberQueryInterval, alaMldQuerierGroup=alaMldQuerierGroup, alaMldVlanQueryInterval=alaMldVlanQueryInterval, alaMldForwardEntry=alaMldForwardEntry, alaMldForwardGroupAddress=alaMldForwardGroupAddress, alaMldTunnelGroupAddress=alaMldTunnelGroupAddress, alaMldQuerierCount=alaMldQuerierCount, alaMldTunnelEntry=alaMldTunnelEntry, alaMldForwardNextVlan=alaMldForwardNextVlan, alaMldSource=alaMldSource, alaMldMaxGroupExceedAction=alaMldMaxGroupExceedAction, alaMldForwardVlan=alaMldForwardVlan, alaMldVlanZapping=alaMldVlanZapping, alaMldMemberIfIndex=alaMldMemberIfIndex, alaMldPortIfIndex=alaMldPortIfIndex, alaMldPortVlanCurrentGroupCount=alaMldPortVlanCurrentGroupCount, alaMldStaticMemberRowStatus=alaMldStaticMemberRowStatus, alaMldQuerierTimeout=alaMldQuerierTimeout, alaMldQueryResponseInterval=alaMldQueryResponseInterval, alaMldPortVlan=alaMldPortVlan, alaMldNeighborIfIndex=alaMldNeighborIfIndex, alaMldTunnelVlan=alaMldTunnelVlan, alaMldPortVlanMaxGroupLimit=alaMldPortVlanMaxGroupLimit, alaMldStaticNeighborIfIndex=alaMldStaticNeighborIfIndex, alcatelIND1MldMIBObjects=alcatelIND1MldMIBObjects, alaMldSourceTable=alaMldSourceTable, alcatelIND1MldMIBConformance=alcatelIND1MldMIBConformance, alaMldQuerierIfIndex=alaMldQuerierIfIndex, alaMldForwardIfIndex=alaMldForwardIfIndex, alaMldForwardOrigAddress=alaMldForwardOrigAddress, alaMldVlanLastMemberQueryInterval=alaMldVlanLastMemberQueryInterval, alaMldTunnelHostAddress=alaMldTunnelHostAddress, alaMldVlanEntry=alaMldVlanEntry, alaMldStaticNeighborRowStatus=alaMldStaticNeighborRowStatus, alaMldPortMaxGroupExceedAction=alaMldPortMaxGroupExceedAction, alaMldTunnelTable=alaMldTunnelTable, alaMldNeighborHostAddress=alaMldNeighborHostAddress, alaMldForward=alaMldForward, alaMldQueryInterval=alaMldQueryInterval, alaMldTunnel=alaMldTunnel, alaMldMemberMode=alaMldMemberMode, alaMldMemberEntry=alaMldMemberEntry, alaMldPortEntry=alaMldPortEntry, alaMldMemberTable=alaMldMemberTable, alaMldTunnelIfIndex=alaMldTunnelIfIndex, alaMldQuerierVlan=alaMldQuerierVlan, alaMldVlanId=alaMldVlanId, alaMldStaticNeighborEntry=alaMldStaticNeighborEntry, alaMldMemberTimeout=alaMldMemberTimeout, alaMldMemberGroup=alaMldMemberGroup, alaMldVlanTable=alaMldVlanTable, alaMldSourceVlan=alaMldSourceVlan, alaMldStaticQuerierVlan=alaMldStaticQuerierVlan, alaMldVlanMaxGroupLimit=alaMldVlanMaxGroupLimit, alaMldStaticMemberEntry=alaMldStaticMemberEntry, alaMldVlanUnsolicitedReportInterval=alaMldVlanUnsolicitedReportInterval, alaMldStaticMember=alaMldStaticMember, alaMldTunnelGroup=alaMldTunnelGroup, alaMldSpoofing=alaMldSpoofing, alaMldRouterTimeout=alaMldRouterTimeout, alaMldForwardHostAddress=alaMldForwardHostAddress, alaMldTunnelNextType=alaMldTunnelNextType, alaMldQuerierForwarding=alaMldQuerierForwarding, alaMldPortVlanTable=alaMldPortVlanTable, alaMldMemberSourceAddress=alaMldMemberSourceAddress, alaMldNeighborCount=alaMldNeighborCount, alaMldSourceEntry=alaMldSourceEntry, alaMldStaticQuerierGroup=alaMldStaticQuerierGroup, alaMldVersion=alaMldVersion, alaMldPortVlanGroup=alaMldPortVlanGroup, alaMldVlanIndex=alaMldVlanIndex, alaMld=alaMld, alaMldStaticMemberTable=alaMldStaticMemberTable, alcatelIND1MldMIBGroups=alcatelIND1MldMIBGroups, alaMldStaticQuerierRowStatus=alaMldStaticQuerierRowStatus, PYSNMP_MODULE_ID=alcatelIND1MldMIB, alaMldVlanRobustness=alaMldVlanRobustness, alaMldFloodUnknown=alaMldFloodUnknown, alaMldHelperAddress=alaMldHelperAddress, alaMldStaticMemberIfIndex=alaMldStaticMemberIfIndex, alaMldSourceType=alaMldSourceType, alaMldVlanQuerierForwarding=alaMldVlanQuerierForwarding, alaMldNeighborGroup=alaMldNeighborGroup, alaMldStaticNeighborGroup=alaMldStaticNeighborGroup, alaMldStaticMemberVlan=alaMldStaticMemberVlan, alaMldVlanMaxGroupExceedAction=alaMldVlanMaxGroupExceedAction, alaMldPortMaxGroupLimit=alaMldPortMaxGroupLimit, alaMldHelperAddressType=alaMldHelperAddressType, alaMldMaxGroupLimit=alaMldMaxGroupLimit, alaMldForwardType=alaMldForwardType)
class Solution: def minimumTime(self, s: str) -> int: n = len(s) ans = n left = 0 # min time to remove illegal cars so far for i, c in enumerate(s): left = min(left + (ord(c) - ord('0')) * 2, i + 1) ans = min(ans, left + n - 1 - i) return ans
class Solution: def minimum_time(self, s: str) -> int: n = len(s) ans = n left = 0 for (i, c) in enumerate(s): left = min(left + (ord(c) - ord('0')) * 2, i + 1) ans = min(ans, left + n - 1 - i) return ans
SCREEN_HEIGHT, SCREEN_WIDTH = 600, 600 # Controls UP = 0, -1 DOWN = 0, 1 LEFT = -1, 0 RIGHT = 1, 0 # Window grid GRID_SIZE = 20 GRID_WIDTH = SCREEN_WIDTH / GRID_SIZE GRID_HEIGHT = SCREEN_HEIGHT / GRID_SIZE
(screen_height, screen_width) = (600, 600) up = (0, -1) down = (0, 1) left = (-1, 0) right = (1, 0) grid_size = 20 grid_width = SCREEN_WIDTH / GRID_SIZE grid_height = SCREEN_HEIGHT / GRID_SIZE
st = input("pls enter student details: ") student_db = {} while(st != "end"): ind = st.find(' ') student_db[st[:ind]] = st[ind + 1:] st = input("pls enter student details: ") roll = input("psl enter roll no : ") while(roll != 'X'): print(student_db[roll]) roll = input("psl enter roll no : ") # MEMORY # st = "end" # student_db = {'200' : 'nehu', '201' : 'gandalf', '20' : '10gandalf'} # ind = 2 # roll = "X"
st = input('pls enter student details: ') student_db = {} while st != 'end': ind = st.find(' ') student_db[st[:ind]] = st[ind + 1:] st = input('pls enter student details: ') roll = input('psl enter roll no : ') while roll != 'X': print(student_db[roll]) roll = input('psl enter roll no : ')
def max_end3(nums): if nums[0] > nums[-1]: return nums[0:1]*3 return nums[-1:]*3
def max_end3(nums): if nums[0] > nums[-1]: return nums[0:1] * 3 return nums[-1:] * 3
#!/usr/bin/env python3 # -*- coding: utf-8 -*- name = "rqmts" __version__ = "1.0.0"
name = 'rqmts' __version__ = '1.0.0'
"""Constants for Hive.""" ATTR_MODE = "mode" ATTR_TIME_PERIOD = "time_period" ATTR_ONOFF = "on_off" CONF_CODE = "2fa" CONFIG_ENTRY_VERSION = 1 DEFAULT_NAME = "Hive" DOMAIN = "hive" PLATFORMS = ["binary_sensor", "climate", "light", "sensor", "switch", "water_heater"] PLATFORM_LOOKUP = { "binary_sensor": "binary_sensor", "climate": "climate", "light": "light", "sensor": "sensor", "switch": "switch", "water_heater": "water_heater", } SERVICE_BOOST_HOT_WATER = "boost_hot_water" SERVICE_BOOST_HEATING = "boost_heating" WATER_HEATER_MODES = ["on", "off"]
"""Constants for Hive.""" attr_mode = 'mode' attr_time_period = 'time_period' attr_onoff = 'on_off' conf_code = '2fa' config_entry_version = 1 default_name = 'Hive' domain = 'hive' platforms = ['binary_sensor', 'climate', 'light', 'sensor', 'switch', 'water_heater'] platform_lookup = {'binary_sensor': 'binary_sensor', 'climate': 'climate', 'light': 'light', 'sensor': 'sensor', 'switch': 'switch', 'water_heater': 'water_heater'} service_boost_hot_water = 'boost_hot_water' service_boost_heating = 'boost_heating' water_heater_modes = ['on', 'off']
# FIXME: Stub class PreprocessorInfoChannel(object): def addLineForTokenNumber(self, line, toknum): pass
class Preprocessorinfochannel(object): def add_line_for_token_number(self, line, toknum): pass
assert easy_cxx_is_root @brutal.rule(caching='memory', traced=1) def c_compiler(): cc = brutal.env('CC', []) if cc: return cc NERSC_HOST = brutal.env('NERSC_HOST', None) if NERSC_HOST: return ['cc'] return ['gcc'] @brutal.rule(caching='memory', traced=1) def cxx_compiler(): cxx = brutal.env('CXX', []) if cxx: return cxx NERSC_HOST = brutal.env('NERSC_HOST', None) if NERSC_HOST: return ['CC'] return ['g++'] @brutal.rule(caching='memory') def cxx14_flags(): cxx = cxx_compiler() _, pp_defs = compiler_version_and_pp_defines(cxx, 'c++').wait() std_ver = int(pp_defs['__cplusplus'].rstrip('L')) if std_ver < 201400: return ['-std=c++14'] else: return [] @brutal.rule def sources_from_includes_enabled(PATH): return '.brutal/' not in PATH and brutal.os.path_within_any(PATH, '.', brutal.here('bench'), brutal.here('src'), brutal.here('test'), ) def base_env(): debug = brutal.env('debug', 0) optlev = brutal.env('optlev', 0 if debug else 3) syms = brutal.env('syms', 1 if debug else 0) opnew = brutal.env('opnew', 'libc' if debug else 'deva', universe=['libc','deva','jemalloc']) asan = brutal.env('asan', 1 if debug else 0) dummy = brutal.env('dummy', 0) return debug, optlev, syms, opnew, asan, dummy @brutal.rule def base_cg_flags(): debug, optlev, syms, opnew, asan, dummy = base_env() asan_flags = ['-fsanitize=address'] if asan else [] cg_misc = brutal.env('CXX_CGFLAGS', []) return ( (['-flto'] if optlev == 3 else []) + (['-g'] if syms else []) + asan_flags ) + cg_misc def code_context_base(): debug, optlev, syms, opnew, asan, dummy = base_env() pp_misc = brutal.env('CXX_PPFLAGS', []) asan_flags = ['-fsanitize=address'] if asan else [] pp_angle_dirs = brutal.env('PP_DIRS', []) lib_dirs = brutal.env('LIB_DIRS', []) lib_names = brutal.env('LIB_NAMES', []) return CodeContext( compiler = cxx_compiler(), pp_angle_dirs = [brutal.here('src')] + pp_angle_dirs, pp_misc = cxx14_flags() + pp_misc, cg_optlev = optlev, cg_misc = base_cg_flags() + ['-Wno-unknown-warning-option','-Wno-aligned-new'], ld_misc = (['-flto'] if optlev == 3 else []) + asan_flags, lib_dirs = lib_dirs, lib_names = lib_names, pp_defines = { 'DEBUG': 1 if debug else 0, 'NDEBUG': None if debug else 1, 'DEVA_OPNEW_'+opnew.upper(): 1, 'DEVA_DUMMY_EXEC': 1 if dummy else 0 } ) @brutal.rule def code_context(PATH): cxt = code_context_base() def get_world(): return brutal.env('world', universe=('threads','gasnet')) def get_thread_n(): world = get_world() if world == 'threads': return brutal.env('ranks',2) elif world == 'gasnet': return brutal.env('workers',2)+1 if PATH == brutal.here('src/devastator/threads.hxx'): impl = brutal.env('tmsg', universe=('spsc','mpsc')) talloc = brutal.env('talloc', universe=('opnew-asym','opnew-sym','epoch')) cxt |= CodeContext(pp_defines={ 'DEVA_THREADS_'+impl.upper(): 1, 'DEVA_THREADS_ALLOC_' + talloc.replace('-','_').upper(): 1 }) elif PATH == brutal.here('src/devastator/threads/message_spsc.hxx'): tsigbits = brutal.env('tsigbits', universe=(0,8,16,32)) if tsigbits == 0: tsigbits = 64*8/get_thread_n() tsigbits = (8,16,32)[sum([x < tsigbits for x in (8,16)])] tprefetch = brutal.env('tprefetch', universe=(0,1,2)) torder = brutal.env('torder', universe=('dfs','bfs')) cxt |= CodeContext(pp_defines={ 'DEVA_THREADS_SPSC_BITS': tsigbits, 'DEVA_THREADS_SPSC_PREFETCH': tprefetch, 'DEVA_THREADS_SPSC_ORDER_'+torder.upper(): 1 }) elif PATH == brutal.here('src/devastator/threads/signal_slots.hxx'): tsigreap = brutal.env('tsigreap', universe=('memcpy','simd','atom')) cxt |= CodeContext(pp_defines={ 'DEVA_THREADS_SIGNAL_REAP_'+tsigreap.upper(): 1 }) elif PATH == brutal.here('src/devastator/threads/message_mpsc.hxx'): cxt |= CodeContext(pp_defines={ 'DEVA_THREADS_MPSC_RAIL_N': brutal.env('trails', 1) }) elif PATH == brutal.here('src/devastator/world.hxx'): world = get_world() cxt |= CodeContext(pp_defines={'DEVA_WORLD':1}) if world == 'threads': cxt |= CodeContext(pp_defines={ 'DEVA_WORLD_THREADS': 1, 'DEVA_THREAD_N': get_thread_n() }) elif world == 'gasnet': cxt |= CodeContext(pp_defines={ 'DEVA_WORLD_GASNET': 1, 'DEVA_PROCESS_N': brutal.env('procs',2), 'DEVA_WORKER_N': brutal.env('workers',2), 'DEVA_THREAD_N': get_thread_n() }) elif PATH == brutal.here('src/devastator/diagnostic.cxx'): version = brutal.git_describe(brutal.here()) cxt |= CodeContext(pp_defines={'DEVA_GIT_VERSION': '"'+version+'"'}) return cxt
assert easy_cxx_is_root @brutal.rule(caching='memory', traced=1) def c_compiler(): cc = brutal.env('CC', []) if cc: return cc nersc_host = brutal.env('NERSC_HOST', None) if NERSC_HOST: return ['cc'] return ['gcc'] @brutal.rule(caching='memory', traced=1) def cxx_compiler(): cxx = brutal.env('CXX', []) if cxx: return cxx nersc_host = brutal.env('NERSC_HOST', None) if NERSC_HOST: return ['CC'] return ['g++'] @brutal.rule(caching='memory') def cxx14_flags(): cxx = cxx_compiler() (_, pp_defs) = compiler_version_and_pp_defines(cxx, 'c++').wait() std_ver = int(pp_defs['__cplusplus'].rstrip('L')) if std_ver < 201400: return ['-std=c++14'] else: return [] @brutal.rule def sources_from_includes_enabled(PATH): return '.brutal/' not in PATH and brutal.os.path_within_any(PATH, '.', brutal.here('bench'), brutal.here('src'), brutal.here('test')) def base_env(): debug = brutal.env('debug', 0) optlev = brutal.env('optlev', 0 if debug else 3) syms = brutal.env('syms', 1 if debug else 0) opnew = brutal.env('opnew', 'libc' if debug else 'deva', universe=['libc', 'deva', 'jemalloc']) asan = brutal.env('asan', 1 if debug else 0) dummy = brutal.env('dummy', 0) return (debug, optlev, syms, opnew, asan, dummy) @brutal.rule def base_cg_flags(): (debug, optlev, syms, opnew, asan, dummy) = base_env() asan_flags = ['-fsanitize=address'] if asan else [] cg_misc = brutal.env('CXX_CGFLAGS', []) return (['-flto'] if optlev == 3 else []) + (['-g'] if syms else []) + asan_flags + cg_misc def code_context_base(): (debug, optlev, syms, opnew, asan, dummy) = base_env() pp_misc = brutal.env('CXX_PPFLAGS', []) asan_flags = ['-fsanitize=address'] if asan else [] pp_angle_dirs = brutal.env('PP_DIRS', []) lib_dirs = brutal.env('LIB_DIRS', []) lib_names = brutal.env('LIB_NAMES', []) return code_context(compiler=cxx_compiler(), pp_angle_dirs=[brutal.here('src')] + pp_angle_dirs, pp_misc=cxx14_flags() + pp_misc, cg_optlev=optlev, cg_misc=base_cg_flags() + ['-Wno-unknown-warning-option', '-Wno-aligned-new'], ld_misc=(['-flto'] if optlev == 3 else []) + asan_flags, lib_dirs=lib_dirs, lib_names=lib_names, pp_defines={'DEBUG': 1 if debug else 0, 'NDEBUG': None if debug else 1, 'DEVA_OPNEW_' + opnew.upper(): 1, 'DEVA_DUMMY_EXEC': 1 if dummy else 0}) @brutal.rule def code_context(PATH): cxt = code_context_base() def get_world(): return brutal.env('world', universe=('threads', 'gasnet')) def get_thread_n(): world = get_world() if world == 'threads': return brutal.env('ranks', 2) elif world == 'gasnet': return brutal.env('workers', 2) + 1 if PATH == brutal.here('src/devastator/threads.hxx'): impl = brutal.env('tmsg', universe=('spsc', 'mpsc')) talloc = brutal.env('talloc', universe=('opnew-asym', 'opnew-sym', 'epoch')) cxt |= code_context(pp_defines={'DEVA_THREADS_' + impl.upper(): 1, 'DEVA_THREADS_ALLOC_' + talloc.replace('-', '_').upper(): 1}) elif PATH == brutal.here('src/devastator/threads/message_spsc.hxx'): tsigbits = brutal.env('tsigbits', universe=(0, 8, 16, 32)) if tsigbits == 0: tsigbits = 64 * 8 / get_thread_n() tsigbits = (8, 16, 32)[sum([x < tsigbits for x in (8, 16)])] tprefetch = brutal.env('tprefetch', universe=(0, 1, 2)) torder = brutal.env('torder', universe=('dfs', 'bfs')) cxt |= code_context(pp_defines={'DEVA_THREADS_SPSC_BITS': tsigbits, 'DEVA_THREADS_SPSC_PREFETCH': tprefetch, 'DEVA_THREADS_SPSC_ORDER_' + torder.upper(): 1}) elif PATH == brutal.here('src/devastator/threads/signal_slots.hxx'): tsigreap = brutal.env('tsigreap', universe=('memcpy', 'simd', 'atom')) cxt |= code_context(pp_defines={'DEVA_THREADS_SIGNAL_REAP_' + tsigreap.upper(): 1}) elif PATH == brutal.here('src/devastator/threads/message_mpsc.hxx'): cxt |= code_context(pp_defines={'DEVA_THREADS_MPSC_RAIL_N': brutal.env('trails', 1)}) elif PATH == brutal.here('src/devastator/world.hxx'): world = get_world() cxt |= code_context(pp_defines={'DEVA_WORLD': 1}) if world == 'threads': cxt |= code_context(pp_defines={'DEVA_WORLD_THREADS': 1, 'DEVA_THREAD_N': get_thread_n()}) elif world == 'gasnet': cxt |= code_context(pp_defines={'DEVA_WORLD_GASNET': 1, 'DEVA_PROCESS_N': brutal.env('procs', 2), 'DEVA_WORKER_N': brutal.env('workers', 2), 'DEVA_THREAD_N': get_thread_n()}) elif PATH == brutal.here('src/devastator/diagnostic.cxx'): version = brutal.git_describe(brutal.here()) cxt |= code_context(pp_defines={'DEVA_GIT_VERSION': '"' + version + '"'}) return cxt
def word_flipper(str): if len(str) == 0: return str #split strings into words, as words are separated by spaces so words = str.split(" ") new_str = "" for i in range(len(words)): words[i] = words[i][::-1] return " ".join(words) # Test Cases print ("Pass" if ('retaw' == word_flipper('water')) else "Fail") print ("Pass" if ('sihT si na elpmaxe' == word_flipper('This is an example')) else "Fail") print ("Pass" if ('sihT si eno llams pets rof ...' == word_flipper('This is one small step for ...')) else "Fail")
def word_flipper(str): if len(str) == 0: return str words = str.split(' ') new_str = '' for i in range(len(words)): words[i] = words[i][::-1] return ' '.join(words) print('Pass' if 'retaw' == word_flipper('water') else 'Fail') print('Pass' if 'sihT si na elpmaxe' == word_flipper('This is an example') else 'Fail') print('Pass' if 'sihT si eno llams pets rof ...' == word_flipper('This is one small step for ...') else 'Fail')
def merge_sort(arr): if len(arr) <= 1: return mid = len(arr)//2 left = arr[:mid] right = arr[mid:] merge_sort(left) merge_sort(right) merge_lists(left, right, arr) def merge_lists(a,b,arr): len_a = len(a) len_b = len(b) i = j = k = 0 while i < len_a and j < len_b: if a[i] <= b[j]: arr[k] = a[i] i+=1 else: arr[k] = b[j] j+=1 k+=1 while i < len_a: arr[k] = a[i] i+=1 k+=1 while j < len_b: arr[k] = b[j] j+=1 k+=1 if __name__ == '__main__': test_cases = [ [10, 3, 15, 7, 8, 23, 98, 29], [], [3], [9,8,7,2], [1,2,3,4,5] ] for arr in test_cases: merge_sort(arr) print(arr)
def merge_sort(arr): if len(arr) <= 1: return mid = len(arr) // 2 left = arr[:mid] right = arr[mid:] merge_sort(left) merge_sort(right) merge_lists(left, right, arr) def merge_lists(a, b, arr): len_a = len(a) len_b = len(b) i = j = k = 0 while i < len_a and j < len_b: if a[i] <= b[j]: arr[k] = a[i] i += 1 else: arr[k] = b[j] j += 1 k += 1 while i < len_a: arr[k] = a[i] i += 1 k += 1 while j < len_b: arr[k] = b[j] j += 1 k += 1 if __name__ == '__main__': test_cases = [[10, 3, 15, 7, 8, 23, 98, 29], [], [3], [9, 8, 7, 2], [1, 2, 3, 4, 5]] for arr in test_cases: merge_sort(arr) print(arr)
# FLOW011 for i in range(int(input())): salary=int(input()) if salary<1500: print(2*salary) else: print(1.98*salary + 500)
for i in range(int(input())): salary = int(input()) if salary < 1500: print(2 * salary) else: print(1.98 * salary + 500)