The com.vmware.vapi.metadata.authentication_client module provides classes that expose authentication information for operation elements across all the service elements.
To calculate the effective authentication information for an operation element, you should first see if there is an authentication scheme specified for the operation element. If it is not specified, then authentication scheme for the service element that contains this operation element is used. If it is not specified for the service element as well, then the authentication scheme for the package element that contains this service element is used.
Bases: vmware.vapi.bindings.struct.VapiStruct
The AuthenticationInfo class describes the authentication information. Authentication information could be specified for a package element, service elenent or an operation element.
Using the authentication scheme information, a client invoking an API call from any class can figure out what kind of credentials are needed for that API call.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The AuthenticationInfo.SchemeType class provides class attributes for the set of valid authentication scheme types.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the SchemeType instance. |
---|
Indicates that the scheme is a session less authentication scheme, the user is authenticated on every method. There is no explicit session establishment.
Indicates that the scheme is a session aware authentication scheme. It requires an explicit login before executing a method and logout when a session terminates. A class might choose to have a session aware scheme if it wants to associate some state corresponding to the user until the user logs out or if it wants to mitigate the cost of authenticating the user on every method.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Component class provides methods to retrieve authentication information of a component element.
A component element is said to contain authentication information if any one of package elements contained in it has authentication information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for component.
Retrieves the fingerprint computed from the authentication metadata of the component element corresponding to component_id.
The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of Component.get().
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | str |
Returns: | The fingerprint computed from the authentication metadata of the component. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id does not have any authentication information. |
Retrieves authentication information about the component element corresponding to component_id.
The ComponentData contains the authentication information about the component element and it’s fingerprint. It contains information about all the package elements that belong to this component element.
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | ComponentData |
Returns: | The ComponentData instance that corresponds to component_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id does not have any authentication information. |
Returns the identifiers for the component elements that have authentication information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the component elements that have authentication information. The return value will contain identifiers for the resource type: com.vmware.vapi.component. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentData class contains the authentication information of the component along with its fingerprint.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentInfo class contains authentication information of a component element.
For an explanation of authentication information contained within component elements, see Component.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | packages (dict of str and PackageInfo) – Authentication information of all the package elements. The key in the dict is the identifier of the package element and the value in the dict is the authentication information for the package element. For an explanation of authentication information containment within package elements, see Package. When clients pass a value of this class as a parameter, the key in the attribute dict must be an identifier for the resource type: com.vmware.vapi.package. When methods return a value of this class as a return value, the key in the attribute dict will be an identifier for the resource type: com.vmware.vapi.package. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The OperationInfo class contains authentication information of an operation element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | schemes (list of AuthenticationInfo) – List of authentication schemes used by an operation element. The authentication scheme specified on the service element corresponding to this operation element is ignored. |
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Package class provides methods to retrieve authentication information of a package element.
A package element is said to contain authentication information if there is a default authentication assigned to all service elements contained in the package element or if one of the service element contained in this package element has authentication information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for package.
Retrieves authentication information about the package element corresponding to package_id.
Parameters: | package_id (str) – Identifier of the package element. The parameter must be an identifier for the resource type: com.vmware.vapi.package. |
---|---|
Return type: | PackageInfo |
Returns: | The PackageInfo instance that corresponds to package_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the package element associated with package_id does not have any authentication information. |
Returns the identifiers for the package elements that have authentication information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the package elements that have authentication information. The return value will contain identifiers for the resource type: com.vmware.vapi.package. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The PackageInfo class contains authentication information of a package element.
For an explanation of authentication information contained within package elements, see Package.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Service class provides methods to retrieve authentication information of a service element.
A service element is said to contain authentication information if there is a default authentication assigned to all operation elements contained in a service element or if one of the operation elements contained in this service element has authentication information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for service.
Retrieves authentication information about the service element corresponding to service_id.
Parameters: | service_id (str) – Identifier of the service element. The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | ServiceInfo |
Returns: | The ServiceInfo instance that corresponds to service_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the service element associated with service_id does not have any authentication information. |
Returns the identifiers for the service elements that have authentication information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the service elements that have authentication information. The return value will contain identifiers for the resource type: com.vmware.vapi.service. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ServiceInfo class contains authentication information of a service element.
For an explanation of authentication information contained within service elements, see Service.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Source class provides methods to manage the sources of authentication metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains authentication information. The generated file can be registered as a source of metadata.
The authentication file contains all the data present in the interface definition files. Each authentication file contains data about one component element. When a authentication file is added as a source, each source contributes only one component element’s metadata.
Authentication metadata can also be discovered from a remote server that supports the authentication metadata classes (see com.vmware.vapi.metadata.authentication_client). Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.CreateSpec class contains the registration information of a authentication source.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.Info class contains the metadata source information.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for metadata source.
Creates a new metadata source. Once the server validates the registration information of the metadata source, the authentication metadata is retrieved from the source. This populates elements in all the classes defined in com.vmware.vapi.metadata.authentication_client module.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.AlreadyExists if the metadata source identifier is already registered with the infrastructure. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the type of the source specified in null is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the file specified in null is not a valid JSON file or if the format of the authentication metadata in the JSON file is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the URI specified in null is unreachable or if there is a transport protocol or message protocol mismatch between the client and the server or if the remote server do not have classes present in com.vmware.vapi.metadata.authentication_client module. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the file specified in null does not exist. |
Deletes an existing authentication metadata source from the infrastructure.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.authentication.source. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source identifier is not found. |
Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.authentication.source. If unspecified, the fingerprint of all the metadata sources is returned. |
---|---|
Return type: | str |
Returns: | Aggregate fingerprint of all the metadata sources or of a particular metadata source. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Retrieves information about the metadata source corresponding to source_id.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.authentication.source. |
---|---|
Return type: | Source.Info |
Returns: | The Source.Info instance that corresponds to source_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for metadata sources currently registered. The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.authentication.source. |
Reloads the authentication metadata from all the metadata sources or of a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.authentication.source. If unspecified, all the metadata sources are reloaded. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
The com.vmware.vapi.metadata.cli_client module provides classes that expose all the information required to display namespace or command help, execute a command and display it’s result.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Command class provides methods to get information about command line interface (CLI) commands.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
The Command.FormatterType class defines supported CLI output formatter types. See Command.Info.formatter.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the FormatterType instance. |
---|
Displays command output in CSV format.
Displays command output in HTML format.
Displays command output in JSON format.
Displays command output as it is.
Displays command output in table format.
Displays command output in XML format.
Bases: vmware.vapi.bindings.enum.Enum
The Command.GenericType class defines generic types supported by Command class. See Command.OptionInfo.generic.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the GenericType instance. |
---|
Input parameter is a list.
Input parameter is a list of optionals.
New in vSphere 6.5.
Default case.
Input parameter is an optional.
Input parameter is an optional of type list.
New in vSphere 6.5.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Command.Identity class uniquely identifies a command in the CLI commands tree.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Command.Info class contains information about a command. It includes the identity of the command, a description, information about the class and method that implement the command, and CLI-specific information for the command.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Command.OptionInfo class describes information about a specific input option of a command.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Command.OutputFieldInfo class describes the name used by the CLI to display a single attribute of a class element in the interface definition language.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Command.OutputInfo class describes the names used by the CLI to display the attributes of a class element in the interface definition language as well as the order in which the attributes will be displayed.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the aggregate fingerprint of all the command metadata from all the metadata sources.
The fingerprint provides clients an efficient way to check if the metadata for commands has been modified on the server.
Return type: | str |
---|---|
Returns: | Fingerprint of all the command metadata present on the server. |
Retrieves information about a command including information about how to execute that command.
Parameters: | identity (Command.Identity) – Identifier of the command for which to retreive information. |
---|---|
Return type: | Command.Info |
Returns: | Information about the command including information about how to execute that command. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if a command corresponding to identity doesn’t exist. |
Returns the identifiers of all commands, or commands in a specific namespace.
Parameters: | path (str or None) – The dot-separated path of the namespace for which command identifiers should be returned. If None identifiers of all commands registered with the infrastructure will be returned. |
---|---|
Return type: | list of Command.Identity |
Returns: | Identifiers of the requested commands. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if a namespace corresponding to path doesn’t exist. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Namespace class provides methods to get information about command line interface (CLI) namespaces.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Namespace.Identity class uniquely identifies a namespace in the CLI namespace tree.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Namespace.Info class contains information about a namespace. It includes the identity of the namespace, a description, information children namespaces.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Returns the aggregate fingerprint of all the namespace metadata from all the metadata sources.
The fingerprint provides clients an efficient way to check if the metadata for namespaces has been modified on the server.
Return type: | str |
---|---|
Returns: | Fingerprint of all the namespace metadata present on the server. |
Retreives information about a namespace including information about children of that namespace.
Parameters: | identity (Namespace.Identity) – Identifier of the namespace for which to retreive information. |
---|---|
Return type: | Namespace.Info |
Returns: | Information about the namespace including information about child of that namespace. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if a namespace corresponding to identity doesn’t exist. |
Returns the identifiers of all namespaces registered with the infrastructure.
Return type: | list of Namespace.Identity |
---|---|
Returns: | Identifiers of all the namespaces. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Source class provides methods to manage the sources of command line interface (CLI) metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains CLI information.
A CLI metadata file contains information about one component element. When a CLI metadata file is added as a source, each source contributes only one component element’s metadata.
CLI metadata can also be discovered from a remote server that supports the CLI metadata services (see com.vmware.vapi.metadata.cli_client) module. Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.CreateSpec class contains the registration information of a CLI source.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.Info class contains the metadata source information.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Creates a new metadata source. Once the server validates the registration information of the metadata source, the CLI metadata is retrieved from the source. This populates elements in all the classes defined in com.vmware.vapi.metadata.cli_client module.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.AlreadyExists If the metadata source identifier is already registered with the infrastructure. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If type of the source specified in null is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If the file specified in null is not a valid JSON file or if the format of the CLI metadata in the JSON file is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If the URI specified in null is unreachable or if there is a transport protocol or message protocol mismatch between the client and the server or if the remote server do not have classes present in com.vmware.vapi.metadata.cli_client module. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the file specified in null does not exist. |
Deletes an existing CLI metadata source from the infrastructure.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. If unspecified, the fingerprint of all the metadata sources is returned. |
---|---|
Return type: | str |
Returns: | Aggregate fingerprint of all the metadata sources or of a particular metadata source. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
Retrieves information about the metadata source corresponding to source_id.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. |
---|---|
Return type: | Source.Info |
Returns: | The Source.Info instance that corresponds to source_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for metadata sources currently registered. The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.source. |
Reloads the CLI metadata from all the metadata sources or of a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. If unspecified, all the metadata sources are reloaded. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
The com.vmware.vapi.metadata.metamodel_client module provides classes that expose all the information present in the interface definition language (IDL) specification.
Metamodel metadata is organized into an hierarchy of elements. The main elements are:
The com.vmware.vapi.metadata.metamodel_client module has classes that enables two styles of client applications:
Bases: vmware.vapi.bindings.stub.VapiInterface
The Component class providers methods to retrieve metamodel information of a component element.
A component defines a set of functionality that is deployed together and versioned together. For example, all the classes that belong to VMware Content Library are part of a single component. A component element describes a component. A component element contains one or more package elements.
The methods for package elements are provided by class Package.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for component.
Retrieves the fingerprint computed from the metamodel metadata of the component element corresponding to component_id.
The fingerprint provides clients an efficient way to check if the metadata for a particular component element has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of Component.get().
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | str |
Returns: | The fingerprint computed from the metamodel metadata of the component element. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id is not registered with the infrastructure. |
Retrieves metamodel information about the component element corresponding to component_id.
The ComponentData contains the metamodel information about the component and it’s fingerprint. It contains information about all the package elements that are contained in this component element.
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | ComponentData |
Returns: | The ComponentData instance that corresponds to component_id. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id is not registered with the infrastructure. |
Returns the identifiers for the component elements that are registered with the infrastructure.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the component elements that are registered with the infrastructure. The return value will contain identifiers for the resource type: com.vmware.vapi.component. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentData class contains the metamodel metadata information of a component element along with its fingerprint.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentInfo class contains metamodel metadata information about a component element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ConstantInfo class contains metamodel information of the constant elements.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ConstantValue class contains the metamodel information of the constant element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The ConstantValue.Category class defines class attributes for the valid kinds of values.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Category instance. |
---|
Indicates the type of constant value is a list.
Indicates the type of constant value is primitive.
Bases: vmware.vapi.bindings.struct.VapiStruct
The ElementMap class contains the metadata elements.
One of the sources for metadata is the annotations present in the interface definition language. When an annotation is represented in the ElementMap, ElementMap describes the data specified in the arguments for the annotation.
For example, in \\@UnionCase(tag="tag", value="SELECT"), ElementMap describes the keyword arguments tag and value.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | elements (dict of str and ElementValue) – Metamodel information of the metadata elements. The key parameter of the dict is the identifier for the element and the value corresponds to the element value. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ElementValue class describes the value of the metadata element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The ElementValue.Type class defines the valid types for values in metadata elements.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Type instance. |
---|
Indicates the type of the value is a long (64 bit signed integer).
Indicates the type of the value is a string (a variable length sequence of characters). The encoding is UTF-8.
Indicates the type of the value is a list of strings.
Indicates the type of the value is an identifier for a structure element.
Indicates the type of the value is a list of identifiers for a structure element.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Enumeration class provides methods to retrieve metamodel information about an enumeration element in the interface definition language.
The Enumeration has a list of enumeration value elements.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for enumeration.
Retrieves information about the enumeration element corresponding to enumeration_id.
The EnumerationInfo contains the metamodel information about the enumeration value element contained in the enumeration element.
Parameters: | enumeration_id (str) – Identifier of the enumeration element. The parameter must be an identifier for the resource type: com.vmware.vapi.enumeration. |
---|---|
Return type: | EnumerationInfo |
Returns: | The EnumerationInfo instance that corresponds to enumeration_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the enumeration element associated with enumeration_id is not contained in any of the package elements, service elements and structure elements. |
Returns the identifiers for the enumeration elements that are contained in all the package elements, service elements and structure elements.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the enumeration elements. The return value will contain identifiers for the resource type: com.vmware.vapi.enumeration. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The EnumerationInfo class contains the metamodel information of an enumeration element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The EnumerationValueInfo class describes the class attribute in the class.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ErrorInfo class contains the metadata information about the error elements contained in an operation element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The FieldInfo class contains metamodel information of a field element contained in a structure element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The GenericInstantiation class describes the type information of a typed element when the type is an instantiation of one of the generic types provided by the infrastructure.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The GenericInstantiation.GenericType class provides class attributes for each of the generic types provided by the infrastructure.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the GenericType instance. |
---|
Indicates the generic type is a list.
Indicates the generic type is a map.
Indicates the generic type is an optional.
Indicates the generic type is a set.
Bases: vmware.vapi.bindings.stub.VapiInterface
The MetadataIdentifier class provides string constants that can be used as identifiers for the metadata elements.
Most of the types in com.vmware.vapi.metadata.metamodel_client package has a metadata field whose type is Map<String, ElementMap>. MetadataIdentifier contains the identifiers used in the keys of the above Map type.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Identifier representing the CanonicalName metadata.
Identifier representing the Component metadata.
Identifier representing the Create metadata.
Identifier representing the Crud metadata.
Identifier representing the HasFieldsOf metadata.
Identifier representing the Includable metadata.
Identifier representing the Include metadata.
Identifier representing the IsOneOf metadata.
Identifier representing the Model metadata.
Identifier representing the Read metadata.
Identifier representing the Resource metadata.
Identifier representing the UnionCase metadata.
Identifier representing the UnionTag metadata.
Identifier representing the Update metadata.
Bases: vmware.vapi.bindings.struct.VapiStruct
The OperationInfo class contains metamodel information of an operation element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The OperationResultInfo class contains the metamodel information of an operation result element.
An operation accepts a list of parameters and returns a result or an error. The OperationResultInfo describes the result element of an operation.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Package class provides methods to retrieve metamodel information about a package element in the interface definition language.
A package is a logical grouping of services, structures and enumerations. A package element describes the package. It contains the service elements, structure elements and enumeration elements that are grouped together.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for package.
Retrieves information about the package element corresponding to package_id.
Parameters: | package_id (str) – Identifier of the package element. The parameter must be an identifier for the resource type: com.vmware.vapi.package. |
---|---|
Return type: | PackageInfo |
Returns: | The PackageInfo instance that corresponds to package_id. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the package element associated with package_id does not exist. |
Returns the identifiers for the packages elements that are contained in all the registered component elements.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the package elements that are contained in all the registered component elements. The return value will contain identifiers for the resource type: com.vmware.vapi.package. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The PackageInfo class contains the metamodel information of all the service elements, structure elements and enumeration elements contained in the package element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The PrimitiveValue class contains value of the constant element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The PrimitiveValue.Type class defines the valid types for values in constant elements.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Type instance. |
---|
Indicates the value is a boolean (true or false).
Indicates the value is a double (64 bit floating number).
Indicates the value is a long (64 bit signed integer).
Indicates the value is a string (a variable length sequence of characters). The encoding is UTF8.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Resource class provides methods to retrieve information about resource types.
A service is a logical grouping of operations that operate on an entity. Each entity is identifier by a namespace (or resource type) and an unique identifier.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for resource.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Service class provides methods to retrieve metamodel information about a service element in the interface definition language.
A service is a logical grouping of operations that operate on some entity. A service element describes a service. It contains operation elements that describe the operations grouped in the service. It also contains structure elements and enumeration elements corresponding to the structures and enumerations defined in the service.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for service.
Retrieves information about the service element corresponding to service_id.
The ServiceInfo contains the metamodel information for the operation elements, structure elements and enumeration elements contained in the service element.
Parameters: | service_id (str) – Identifier of the service element. The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | ServiceInfo |
Returns: | The ServiceInfo instance that corresponds to service_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the service element associated with service_id is not registered with the infrastructure. |
Returns the identifiers for the service elements that are currently registered with the infrastructure.
The list of service elements is an aggregate list of all the service elements contained in all the package elements.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the service elements that are currently registered with the infrastructure. The return value will contain identifiers for the resource type: com.vmware.vapi.service. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ServiceInfo class contains the metamodel information of all the operation elements, structure elements and enumeration elements containted in a service element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Source class provides methods to manage the sources of metamodel metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains metamodel information. The generated file can be registered as a source of metadata.
The metamodel file contains all the data present in the interface definition files. Each metamodel file contains data about one component element. When a metamodel file is added as a source, each source contributes only one component element’s metadata.
Metamodel metadata can also be discovered from a remote server that supports the metamodel metadata classes (see com.vmware.vapi.metadata.metamodel_client). Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.CreateSpec class contains the registration information of a metamodel source.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.Info class contains the metadata source information.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for metadata source.
Creates a new metadata source. Once the server validates the registration information of the metadata source, the metamodel metadata is retrieved from the source. This populates elements in all the classes defined in com.vmware.vapi.metadata.metamodel_client module.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.AlreadyExists if the metadata source identifier is already registered with the infrastructure. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the type of the source specified in null is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the file specified in null is not a valid JSON file or if the format of the metamodel metadata in the JSON file is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the URI specified in null is unreachable or if there is a transport protocol or message protocol mismatch between the client and the server or if the remote server do not have classes present in com.vmware.vapi.metadata.metamodel_client module. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the file specified in null does not exist. |
Deletes an existing metamodel metadata source from the infrastructure.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source. If unspecified, the fingerprint of all the metadata sources is returned. |
---|---|
Return type: | str |
Returns: | Aggregate fingerprint of all the metadata sources or of a particular metadata source. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Retrieves information about the metadata source corresponding to source_id.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source. |
---|---|
Return type: | Source.Info |
Returns: | The Source.Info instance that corresponds to source_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for metadata sources currently registered. The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.metamodel.source. |
Reloads the metamodel metadata from all the metadata sources or of a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.metamodel.source. If unspecified, all the metadata sources are reloaded. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Bases: vmware.vapi.bindings.stub.VapiInterface
The Structure class providers methods to retrieve metamodel information about a structure element in the interface definition language.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for structure.
Retrieves information about the structure element corresponding to structure_id.
The StructureInfo contains the metamodel information about the structure element. It contains information about all the field elements and enumeration elements contained in this structure element.
Parameters: | structure_id (str) – Identifier of the structure element. The parameter must be an identifier for the resource type: com.vmware.vapi.structure. |
---|---|
Return type: | StructureInfo |
Returns: | The StructureInfo instance that corresponds to structure_id. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the structure element associated with structure_id is not contained in any of the package elements or service elements. |
Returns the identifiers for the structure elements that are contained in all the package elements and service elements.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the structure elements. The return value will contain identifiers for the resource type: com.vmware.vapi.structure. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The StructureInfo class contains the metamodel information of all the field elements, constant elements and enumeration elements contained in the structure element.
In the interface definition language, API designers have the ability to include all the fields from one structure to another structure. This is done by using an annotation \\@Include on the structure in which we want to add the fields. If this annotation is present, the list of fields in the StructureInfo will also contain the fields that are being included. The annotation information is also retained in the StructureInfo.metadata element as well.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The StructureInfo.Type class defines the kind of this structure element. In the interface definition language, structure element and error element have similar characteristics. The difference is that only error elements can be used to describe the exceptions of an operation element.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Type instance. |
---|
If the type is an error element.
If the type is a structure element.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Type class describes the type information of a typed element in the interface definiton language. The following elements in the metamodel are typed:
The type could be one of the three following categories:
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Type.BuiltinType class provides class attribute for each of the built-in types present in the interface definition language type system.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the BuiltinType instance. |
---|
The built-in type is an arbitrary exception type. This is used if the value of a typed element can be one of any user defined named type which is an exception.
The built-in type is a binary. The value is a variable-length sequence of zero or more bytes.
The built-in type is a boolean. The value is true or false.
The built-in type is a datetime. The value should be in the UTC timezone and the precision is milliseconds.
The built-in type is a double. The value is a 64 bit floating point number.
The built-in type is a dynamic structure. This is used if the value of a typed element can be one of any user defined named type.
The built-in type is an ID. The value represents an identifier for a resource.
The built-in type is a long. The value is a 64 bit signed integer.
The built-in type is an opaque. This is used if the value of a typed element could be of any type and the actual type will be known only during the execution of the API. This is mostly used in infrastructure classes.
The built-in type is a secret. The value is a variable-length sequence of zero or more unicode characters. The value contains sensitive data that should not be printed or displayed anywhere.
The built-in type is a string. The value is a variable-length sequence of zero or more unicode characters.
The built-in type is an URI. The value follows the IRI specification in RFC 3987.
The built-in type is a void. The value is None.
Bases: vmware.vapi.bindings.enum.Enum
The Type.Category class provides class attribute for each category of the type.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Category instance. |
---|
The type is one of the built-in types specified in Type.BuiltinType
The type is an instantiation of one of the generic types.
The type is one of the user defined named types.
Bases: vmware.vapi.bindings.struct.VapiStruct
The UserDefinedType class contains the metamodel type information of a typed element whose type is a user defined named type.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
The com.vmware.vapi.metadata.privilege_client module provides classes that expose privilege information for operation elements across all the service elements.
An entity has a unique identifier and a resource type. An entity can either be present in one of the parameter elements or if a parameter is a structure element, it could also be present in one of the field elements.
Privileges can be assigned to either operation elements or entities used in the operation element. A list of privileges can also be applied on a package element. This list of privileges would be used as a default for all the operation elements and the entities that do not have any defined privileges.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Component class provides methods to retrieve privilege information of a component element.
A component element is said to contain privilege information if any one of package elements in it contains privilege information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for vAPI component.
Retrieves the fingerprint computed from the privilege metadata of the component element corresponding to component_id.
The fingerprint provides clients an efficient way to check if the metadata for a particular component has been modified on the server. The client can do this by comparing the result of this operation with the fingerprint returned in the result of Component.get().
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | str |
Returns: | The fingerprint computed from the privilege metadata of the component. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id does not have any privilege information. |
Retrieves privilege information about the component element corresponding to component_id.
The ComponentData contains the privilege information about the component element and its fingerprint. It contains information about all the package elements that belong to this component element.
Parameters: | component_id (str) – Identifier of the component element. The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | ComponentData |
Returns: | The ComponentData instance that corresponds to component_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the component element associated with component_id does not have any privilege information. |
Returns the identifiers for the component elements that have privilege information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the component elements that have privilege information. The return value will contain identifiers for the resource type: com.vmware.vapi.component. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentData class contains the privilege information of the component along with its fingerprint.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The ComponentInfo class contains the privilege information of a component element.
For an explanation of privilege information contained within component elements, see Component.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | packages (dict of str and PackageInfo) – Privilege information of all the package elements. The key in the dict is the identifier of the package element and the value in the dict is the privilege information for the package element. For an explanation of privilege information containment within package elements, see Package. When clients pass a value of this class as a parameter, the key in the attribute dict must be an identifier for the resource type: com.vmware.vapi.package. When methods return a value of this class as a return value, the key in the attribute dict will be an identifier for the resource type: com.vmware.vapi.package. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The OperationInfo class contains privilege information of an operation element.
For an explanation of containment within operation elements, see com.vmware.vapi.metadata.privilege.service_client.Operation.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Package class provides methods to retrieve privilege information of a package element.
A package element is said to contain privilege information if there is a default privilege assigned to all service elements contained in the package element or if one of the operation elements contained in one of the service elements in this package element has privilege information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for package.
Retrieves privilege information about the package element corresponding to package_id.
Parameters: | package_id (str) – Identifier of the package element. The parameter must be an identifier for the resource type: com.vmware.vapi.package. |
---|---|
Return type: | PackageInfo |
Returns: | The PackageInfo instance that corresponds to package_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the package element associated with package_id does not have any privilege information. |
Returns the identifiers for the package elements that have privilege information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the package elements that have privilege information. The return value will contain identifiers for the resource type: com.vmware.vapi.package. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The PackageInfo class contains the privilege information of a package element.
For an explanation of privilege information contained within package elements, see Package.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The PrivilegeInfo class contains the privilege information for a parameter element in an operation element.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Service class provides methods to retrieve privilege information of a service element.
A service element is said to contain privilege information if one of the operation elements contained in this service element has privilege information.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for service.
Retrieves privilege information about the service element corresponding to service_id.
Parameters: | service_id (str) – Identifier of the service element. The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | ServiceInfo |
Returns: | The ServiceInfo instance that corresponds to service_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the service element associated with service_id does not have any privilege information. |
Returns the identifiers for the service elements that have privilege information.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for the service elements that have privilege information. The return value will contain identifiers for the resource type: com.vmware.vapi.service. |
Bases: vmware.vapi.bindings.struct.VapiStruct
The ServiceInfo class contains privilege information of a service element.
For an explanation of privilege information contained within service elements, see Service.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | operations (dict of str and OperationInfo) – Information about all operation elements contained in this service element that contain privilege information. The key in the dict is the identifier of the operation element and the value in the dict is the privilege information for the operation element. For an explanation of containment of privilege information within operation elements, see com.vmware.vapi.metadata.privilege.service_client.Operation. When clients pass a value of this class as a parameter, the key in the attribute dict must be an identifier for the resource type: com.vmware.vapi.operation. When methods return a value of this class as a return value, the key in the attribute dict will be an identifier for the resource type: com.vmware.vapi.operation. |
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
The Source class provides methods to manage the sources of privilege metadata information.
The interface definition language infrastructure provides tools to generate various kinds of metadata in JSON format from the interface definition files and additional properties files. One of the generated files contains privilege information. The generated file can be registered as a source of metadata.
The privilege file contains all the data present in the interface definition files. Each privilege file contains data about one component element. When a privilege file is added as a source, each source contributes only one component element’s metadata.
Privilege metadata can also be discovered from a remote server that supports the privilege metadata classes (see com.vmware.vapi.metadata.privilege_client). Since multiple components can be registered with a single metadata server, when a remote server is registered as a source, that source can contribute more than one component.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.CreateSpec class contains the registration information of a privilege source.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
The Source.Info class contains the metadata source information.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for metadata source.
Creates a new metadata source. Once the server validates the registration information of the metadata source, the privilege metadata is retrieved from the source. This populates elements in all the classes defined in com.vmware.vapi.metadata.privilege_client module.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.AlreadyExists if the metadata source identifier is already registered with the infrastructure. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the type of the source specified in null is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the file specified in null is not a valid JSON file or if the format of the privilege metadata in the JSON file is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument if the URI specified in null is unreachable or if there is a transport protocol or message protocol mismatch between the client and the server or if the remote server do not have classes present in com.vmware.vapi.metadata.privilege_client module. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the file specified in null does not exist. |
Deletes an existing privilege metadata source from the infrastructure.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Returns the aggregate fingerprint of metadata from all the metadata sources or from a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. If unspecified, the fingerprint of all the metadata sources is returned. |
---|---|
Return type: | str |
Returns: | Aggregate fingerprint of all the metadata sources or of a particular metadata source. |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Retrieves information about the metadata source corresponding to source_id.
Parameters: | source_id (str) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. |
---|---|
Return type: | Source.Info |
Returns: | The Source.Info instance that corresponds to source_id |
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Returns the identifiers of the metadata sources currently registered with the infrastructure.
Return type: | list of str |
---|---|
Returns: | The list of identifiers for metadata sources currently registered. The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.privilege.source. |
Reloads the privilege metadata from all the metadata sources or of a particular metadata source if source_id is specified.
Parameters: | source_id (str or None) – Identifier of the metadata source. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.privilege.source. If unspecified, all the metadata sources are reloaded. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound if the metadata source associated with source_id is not found. |
Bases: vmware.vapi.bindings.stub.VapiInterface
Operations to retrieve information about the routing information in a vAPI component. A Component is said to contain routing information if any of its packages, services or methods contain routing information
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for vAPI Component.
Checksum of all routing metadata for a vAPI component on the server
Parameters: | component_id (str) – fully qualified component name The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | str |
Returns: | checksum of routing metadata for a vAPI component |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the component name does not exist |
Get the routing information for a vAPI component
Parameters: | component_id (str) – fully qualified component name The parameter must be an identifier for the resource type: com.vmware.vapi.component. |
---|---|
Return type: | ComponentData |
Returns: | routing information for the vAPI component |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the component name does not exist |
Bases: vmware.vapi.bindings.struct.VapiStruct
Routing information of the vAPI component along with its checksum
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI component that contains routing information For an explanation of routing information within components, see Component
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | packages (dict of str and PackageInfo) – Routing information of all the vAPI packages. The key in the map is the ID of the package and the value in the map is the routing information for the package For an explanation of routing information within packages, see Package When clients pass a value of this class as a parameter, the key in the attribute dict must be an identifier for the resource type: com.vmware.vapi.package. When methods return a value of this class as a return value, the key in the attribute dict will be an identifier for the resource type: com.vmware.vapi.package. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI operation that contains routing information. For an explanation of containment within operations, see null
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | routing_info (RoutingInfo) – The routing information assigned for this operation. For an explanation of routing information, see RoutingInfo |
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
Operations to retrieve information about routing information in a vAPI package A Package is said to contain routing information if there is a default RoutingInfo assigned to all operations within a package or if one of the operations within this package has explicit routing information
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for vAPI package.
Get the routing information for a vAPI package
Parameters: | package_id (str) – fully qualified package name The parameter must be an identifier for the resource type: com.vmware.vapi.package. |
---|---|
Return type: | PackageInfo |
Returns: | routing information for the vAPI package |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the package name does not exist |
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI package containing routing information.
For an explanation of routing information within packages, see Package
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Routing information
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
Operations to retrieve information about routing information of a vAPI service
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Resource type for vAPI Service.
Get the routing information for a vAPI service
Parameters: | service_id (str) – fully qualified service name The parameter must be an identifier for the resource type: com.vmware.vapi.service. |
---|---|
Return type: | ServiceInfo |
Returns: | identifier information for the vAPI service |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the service name does not exist |
Bases: vmware.vapi.bindings.struct.VapiStruct
Information about a vAPI service that has routing information A service is said to contain routing information if any of its operations have routing information
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
Operations to manage the metadata sources for routing information
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Metadata source create spec.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Metadata source info.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Resource type for vAPI metadata source.
Create a new metadata source.
Parameters: |
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.AlreadyExists If the metadata source identifier is already present. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If type of the source specified in \@{link CreateSpec#type} is invalid. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If the file specified in \@{link CreateSpec#filepath} is not a valid json file. |
Raise : | com.vmware.vapi.std.errors_client.InvalidArgument If the URI specified in \@{link CreateSpec#address} is unreachable or not a vAPI compatible server. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the file specified in \@{link CreateSpec#filepath} does not exist. |
Delete a metadata source.
Parameters: | source_id (str) – Metadata source identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. |
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
Returns the fingerprint of all the sources or of a particular source.
Parameters: | source_id (str or None) – Metadata source identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source.
|
---|---|
Return type: | str |
Returns: | fingerprint of all the sources or of a particular source. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
Get the details about a metadata source.
Parameters: | source_id (str) – Metadata source identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source. |
---|---|
Return type: | Source.Info |
Returns: | Metadata source info. |
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |
List all the metadata sources.
Return type: | list of str |
---|---|
Returns: | List of all metadata sources. The return value will contain identifiers for the resource type: com.vmware.vapi.metadata.source. |
Reload metadata from all the sources or of a particular source.
Parameters: | source_id (str or None) – Metadata source identifier. The parameter must be an identifier for the resource type: com.vmware.vapi.metadata.source.
|
---|---|
Raise : | com.vmware.vapi.std.errors_client.NotFound If the metadata source identifier is not found. |