|
VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
|
Avaliable Methods | |
| public method | get () |
| public method | new () |
| public method | list () |
The Com::Vmware::Vapi::Metadata::Privilege::Service::Operation interface provides methods to retrieve privilege information of an operation element.
An operation element is said to contain privilege information if there are any privileges assigned to the operation element or if one of the parameter elements contained in it has privileges assigned in privilege definition file.
Constant String::RESOURCE_TYPE # Resource type for operation.
| public method Com::Vmware::Vapi::Metadata::Privilege::Service::Operation::get | ( | ) |
Retrieves the privilege information about an operation element corresponding to operation_id contained in the service element corresponding to service_id .
| service_id | [REQUIRED] Identifier of the service element. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.service). . The value must be str. |
| operation_id | [REQUIRED] Identifier of the operation element. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.operation). . The value must be str. |
| The | class Com::Vmware::Vapi::Metadata::Privilege::OperationInfo instance that corresponds to operation_id . The return type will be Com::Vmware::Vapi::Metadata::Privilege::OperationInfo |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the service element associated with service_id does not exist. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the operation element associated with operation_id does not exist. |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the operation element associated with operation_id does not have any privilege information. |
Code:
| public method Com::Vmware::Vapi::Metadata::Privilege::Service::Operation::list | ( | ) |
Returns the identifiers for the operation elements contained in the service element corresponding to service_id that have privilege information.
| service_id | [REQUIRED] Identifier of the service element. The value must be an identifier for the resource type getQualifiedName(com.vmware.vapi.service). . The value must be str. |
| List | of identifiers for the operation elements contained in the service element that have privilege information. The value will be an identifier for the resource type getQualifiedName(com.vmware.vapi.operation). The return type will be Array of str |
| Com::Vmware::Vapi::Std::Errors::NotFound | if the service element associated with service_id does not have any operation elements that have privilege information. |
Code:
| public method Com::Vmware::Vapi::Metadata::Privilege::Service::Operation::new | ( | ) |
Constructor to initialize the object
| api_provider | - protocol connection to use with stubs created by this factory |
| StubConfig | - Stub's additional configuration |
| Blessed | object |
Code: