Adding pre-commit
Introduced changes: - pre-commit config and rules - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I593196cf0d099fe1dcc3a6298fd6cc6b7a883ea2 Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
This commit is contained in:
parent
32c8d43a20
commit
cef0e7cc4c
35
.pre-commit-config.yaml
Normal file
35
.pre-commit-config.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
# We from the Oslo project decided to pin repos based on the
|
||||
# commit hash instead of the version tag to prevend arbitrary
|
||||
# code from running in developer's machines. To update to a
|
||||
# newer version, run `pre-commit autoupdate` and then replace
|
||||
# the newer versions with their commit hash.
|
||||
|
||||
default_language_version:
|
||||
python: python3
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: ebc15addedad713c86ef18ae9632c88e187dd0af # v3.1.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
# Replaces or checks mixed line ending
|
||||
- id: mixed-line-ending
|
||||
args: ['--fix', 'lf']
|
||||
exclude: '.*\.(svg)$'
|
||||
# Forbid files which have a UTF-8 byte-order marker
|
||||
- id: check-byte-order-marker
|
||||
# Checks that non-binary executables have a proper shebang
|
||||
- id: check-executables-have-shebangs
|
||||
# Check for files that contain merge conflict strings.
|
||||
- id: check-merge-conflict
|
||||
# Check for debugger imports and py37+ breakpoint()
|
||||
# calls in python source
|
||||
- id: debug-statements
|
||||
- id: check-yaml
|
||||
files: .*\.(yaml|yml)$
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3
|
||||
hooks:
|
||||
- id: flake8
|
||||
additional_dependencies:
|
||||
- hacking>=3.0.1,<3.1.0
|
@ -1,3 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2020 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
@ -1,237 +1,237 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<schema
|
||||
targetNamespace="urn:vim25"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:vim25="urn:vim25"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified"
|
||||
>
|
||||
<complexType name="DynamicArray">
|
||||
<sequence>
|
||||
<element name="val" type="xsd:anyType" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="DynamicData">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="DynamicProperty">
|
||||
<sequence>
|
||||
<element name="name" type="xsd:string" />
|
||||
<element name="val" type="xsd:anyType" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfDynamicProperty">
|
||||
<sequence>
|
||||
<element name="DynamicProperty" type="vim25:DynamicProperty" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="KeyAnyValue">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="key" type="xsd:string" />
|
||||
<element name="value" type="xsd:anyType" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfKeyAnyValue">
|
||||
<sequence>
|
||||
<element name="KeyAnyValue" type="vim25:KeyAnyValue" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="LocalizableMessage">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="key" type="xsd:string" />
|
||||
<element name="arg" type="vim25:KeyAnyValue" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="message" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfLocalizableMessage">
|
||||
<sequence>
|
||||
<element name="LocalizableMessage" type="vim25:LocalizableMessage" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="LocalizedMethodFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="fault" type="vim25:MethodFault" />
|
||||
<element name="localizedMessage" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="MethodFault">
|
||||
<sequence>
|
||||
<element name="faultCause" type="vim25:LocalizedMethodFault" minOccurs="0" />
|
||||
<element name="faultMessage" type="vim25:LocalizableMessage" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfMethodFault">
|
||||
<sequence>
|
||||
<element name="MethodFault" type="vim25:MethodFault" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="RuntimeFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:MethodFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostCommunication">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostNotConnected">
|
||||
<complexContent>
|
||||
<extension base="vim25:HostCommunication">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostNotReachable">
|
||||
<complexContent>
|
||||
<extension base="vim25:HostCommunication">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidArgument">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="invalidProperty" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidRequest">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidType">
|
||||
<complexContent>
|
||||
<extension base="vim25:InvalidRequest">
|
||||
<sequence>
|
||||
<element name="argument" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ManagedObjectNotFound">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="obj" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="MethodNotFound">
|
||||
<complexContent>
|
||||
<extension base="vim25:InvalidRequest">
|
||||
<sequence>
|
||||
<element name="receiver" type="vim25:ManagedObjectReference" />
|
||||
<element name="method" type="xsd:string" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotEnoughLicenses">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotImplemented">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotSupported">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="RequestCanceled">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="SecurityError">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="SystemError">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="reason" type="xsd:string" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="UnexpectedFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="faultName" type="xsd:string" />
|
||||
<element name="fault" type="vim25:LocalizedMethodFault" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ManagedObjectReference">
|
||||
<simpleContent>
|
||||
<extension base="xsd:string">
|
||||
<attribute name="type" type="xsd:string"/>
|
||||
</extension>
|
||||
</simpleContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfString">
|
||||
<sequence>
|
||||
<element name="string" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfAnyType">
|
||||
<sequence>
|
||||
<element name="anyType" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
</schema>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<schema
|
||||
targetNamespace="urn:vim25"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:vim25="urn:vim25"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
elementFormDefault="qualified"
|
||||
>
|
||||
<complexType name="DynamicArray">
|
||||
<sequence>
|
||||
<element name="val" type="xsd:anyType" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="DynamicData">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="DynamicProperty">
|
||||
<sequence>
|
||||
<element name="name" type="xsd:string" />
|
||||
<element name="val" type="xsd:anyType" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfDynamicProperty">
|
||||
<sequence>
|
||||
<element name="DynamicProperty" type="vim25:DynamicProperty" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="KeyAnyValue">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="key" type="xsd:string" />
|
||||
<element name="value" type="xsd:anyType" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfKeyAnyValue">
|
||||
<sequence>
|
||||
<element name="KeyAnyValue" type="vim25:KeyAnyValue" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="LocalizableMessage">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="key" type="xsd:string" />
|
||||
<element name="arg" type="vim25:KeyAnyValue" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="message" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfLocalizableMessage">
|
||||
<sequence>
|
||||
<element name="LocalizableMessage" type="vim25:LocalizableMessage" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="LocalizedMethodFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:DynamicData">
|
||||
<sequence>
|
||||
<element name="fault" type="vim25:MethodFault" />
|
||||
<element name="localizedMessage" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="MethodFault">
|
||||
<sequence>
|
||||
<element name="faultCause" type="vim25:LocalizedMethodFault" minOccurs="0" />
|
||||
<element name="faultMessage" type="vim25:LocalizableMessage" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfMethodFault">
|
||||
<sequence>
|
||||
<element name="MethodFault" type="vim25:MethodFault" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="RuntimeFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:MethodFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostCommunication">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostNotConnected">
|
||||
<complexContent>
|
||||
<extension base="vim25:HostCommunication">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="HostNotReachable">
|
||||
<complexContent>
|
||||
<extension base="vim25:HostCommunication">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidArgument">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="invalidProperty" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidRequest">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="InvalidType">
|
||||
<complexContent>
|
||||
<extension base="vim25:InvalidRequest">
|
||||
<sequence>
|
||||
<element name="argument" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ManagedObjectNotFound">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="obj" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="MethodNotFound">
|
||||
<complexContent>
|
||||
<extension base="vim25:InvalidRequest">
|
||||
<sequence>
|
||||
<element name="receiver" type="vim25:ManagedObjectReference" />
|
||||
<element name="method" type="xsd:string" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotEnoughLicenses">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotImplemented">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="NotSupported">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="RequestCanceled">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="SecurityError">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="SystemError">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="reason" type="xsd:string" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="UnexpectedFault">
|
||||
<complexContent>
|
||||
<extension base="vim25:RuntimeFault">
|
||||
<sequence>
|
||||
<element name="faultName" type="xsd:string" />
|
||||
<element name="fault" type="vim25:LocalizedMethodFault" minOccurs="0" />
|
||||
</sequence>
|
||||
</extension>
|
||||
</complexContent>
|
||||
</complexType>
|
||||
<complexType name="ManagedObjectReference">
|
||||
<simpleContent>
|
||||
<extension base="xsd:string">
|
||||
<attribute name="type" type="xsd:string"/>
|
||||
</extension>
|
||||
</simpleContent>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfString">
|
||||
<sequence>
|
||||
<element name="string" type="xsd:string" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="ArrayOfAnyType">
|
||||
<sequence>
|
||||
<element name="anyType" type="xsd:anyType" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
</schema>
|
||||
|
@ -1,186 +1,186 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<schema
|
||||
targetNamespace="urn:pbm"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:pbm="urn:pbm"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:vim25="urn:vim25"
|
||||
elementFormDefault="qualified"
|
||||
>
|
||||
<import namespace="urn:vim25" schemaLocation="core-types.xsd" />
|
||||
<include schemaLocation="pbm-types.xsd" />
|
||||
<complexType name="PbmRetrieveServiceContentRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckComplianceRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchComplianceResultRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckRollupComplianceRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchRollupComplianceResultRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryMatchingHubRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryMatchingHubWithSpecRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="createSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckCompatibilityRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckCompatibilityWithSpecRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profileSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchResourceTypeRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchVendorInfoRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchCapabilityMetadataRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" minOccurs="0" />
|
||||
<element name="vendorUuid" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCreateRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="createSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmUpdateRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileId" type="pbm:PbmProfileId" />
|
||||
<element name="updateSpec" type="pbm:PbmCapabilityProfileUpdateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmDeleteRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileId" type="pbm:PbmProfileId" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" />
|
||||
<element name="profileCategory" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmRetrieveContentRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileIds" type="pbm:PbmProfileId" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedProfilesRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedEntityRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
<element name="entityType" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hub" type="pbm:PbmPlacementHub" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmResetDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmAssignDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFindApplicableDefaultProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryDefaultRequirementProfilesRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmResetVSanDefaultProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQuerySpaceStatsForStorageContainerRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastore" type="pbm:PbmServerObjectRef" />
|
||||
<element name="capabilityProfileId" type="pbm:PbmProfileId" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
</schema>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<schema
|
||||
targetNamespace="urn:pbm"
|
||||
xmlns="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:pbm="urn:pbm"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:vim25="urn:vim25"
|
||||
elementFormDefault="qualified"
|
||||
>
|
||||
<import namespace="urn:vim25" schemaLocation="core-types.xsd" />
|
||||
<include schemaLocation="pbm-types.xsd" />
|
||||
<complexType name="PbmRetrieveServiceContentRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckComplianceRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchComplianceResultRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckRollupComplianceRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchRollupComplianceResultRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryMatchingHubRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryMatchingHubWithSpecRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="createSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckCompatibilityRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCheckCompatibilityWithSpecRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hubsToSearch" type="pbm:PbmPlacementHub" minOccurs="0" maxOccurs="unbounded" />
|
||||
<element name="profileSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchResourceTypeRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchVendorInfoRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFetchCapabilityMetadataRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" minOccurs="0" />
|
||||
<element name="vendorUuid" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmCreateRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="createSpec" type="pbm:PbmCapabilityProfileCreateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmUpdateRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileId" type="pbm:PbmProfileId" />
|
||||
<element name="updateSpec" type="pbm:PbmCapabilityProfileUpdateSpec" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmDeleteRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileId" type="pbm:PbmProfileId" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="resourceType" type="pbm:PbmProfileResourceType" />
|
||||
<element name="profileCategory" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmRetrieveContentRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profileIds" type="pbm:PbmProfileId" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedProfilesRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entities" type="pbm:PbmServerObjectRef" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="entity" type="pbm:PbmServerObjectRef" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryAssociatedEntityRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
<element name="entityType" type="xsd:string" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="hub" type="pbm:PbmPlacementHub" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmResetDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" minOccurs="0" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmAssignDefaultRequirementProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="profile" type="pbm:PbmProfileId" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmFindApplicableDefaultProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQueryDefaultRequirementProfilesRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastores" type="pbm:PbmPlacementHub" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmResetVSanDefaultProfileRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
<complexType name="PbmQuerySpaceStatsForStorageContainerRequestType">
|
||||
<sequence>
|
||||
<element name="_this" type="vim25:ManagedObjectReference" />
|
||||
<element name="datastore" type="pbm:PbmServerObjectRef" />
|
||||
<element name="capabilityProfileId" type="pbm:PbmProfileId" minOccurs="0" maxOccurs="unbounded" />
|
||||
</sequence>
|
||||
</complexType>
|
||||
</schema>
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<definitions targetNamespace="urn:pbmService"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:interface="urn:pbm"
|
||||
>
|
||||
<import location="pbm.wsdl" namespace="urn:pbm" />
|
||||
<service name="PbmService">
|
||||
<port binding="interface:PbmBinding" name="PbmPort">
|
||||
<soap:address location="https://localhost/sdk/pbmService" />
|
||||
</port>
|
||||
</service>
|
||||
</definitions>
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2005-2014 VMware, Inc. All rights reserved.
|
||||
-->
|
||||
<definitions targetNamespace="urn:pbmService"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:interface="urn:pbm"
|
||||
>
|
||||
<import location="pbm.wsdl" namespace="urn:pbm" />
|
||||
<service name="PbmService">
|
||||
<port binding="interface:PbmBinding" name="PbmPort">
|
||||
<soap:address location="https://localhost/sdk/pbmService" />
|
||||
</port>
|
||||
</service>
|
||||
</definitions>
|
||||
|
@ -1,4 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2020 Red Hat, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
@ -16,3 +16,5 @@ coverage!=4.4,>=4.0 # Apache-2.0
|
||||
bandit>=1.1.0 # Apache-2.0
|
||||
ddt>=1.0.1 # MIT
|
||||
oslo.context>=2.19.2 # Apache-2.0
|
||||
|
||||
pre-commit>=2.6.0 # MIT
|
||||
|
Loading…
Reference in New Issue
Block a user