Class: Com::Vmware::Vapi::Metadata::Privilege::PackageInfo
- Inherits:
-
VAPI::Bindings::VapiStruct
- Object
- VAPI::Bindings::VapiStruct
- Com::Vmware::Vapi::Metadata::Privilege::PackageInfo
- Defined in:
- /build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb
Overview
The ``Com::Vmware::Vapi::Metadata::Privilege::PackageInfo`` class contains the privilege information of a package element.
For an explanation of privilege information contained within package elements, see :class:`Com::Vmware::Vapi::Metadata::Privilege::Package` .
Instance Attribute Summary (collapse)
-
- (Array<String>) privileges
List of default privileges to be used for all the operations present in this package.
-
- (Hash<String, Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo>) services
Information about all service elements contained in this package element that contain privilege information.
Class Method Summary (collapse)
-
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
Instance Method Summary (collapse)
-
- (PackageInfo) initialize(ruby_values = nil, struct_value = nil)
constructor
Constructs a new instance.
Constructor Details
- (PackageInfo) initialize(ruby_values = nil, struct_value = nil)
Constructs a new instance.
728 729 730 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 728 def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end |
Instance Attribute Details
- (Array<String>) privileges
List of default privileges to be used for all the operations present in this package. If a particular operation element has no explicit privileges defined in the privilege definition file, these privileges are used for enforcing authorization.
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 703 class PackageInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.privilege.package_info', { 'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance), 'services' => VAPI::Bindings::MapType.new(VAPI::Bindings::IdType.new, VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo')), }, PackageInfo, false, nil) end end attr_accessor :privileges, :services # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
- (Hash<String, Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo>) services
Information about all service elements contained in this package element that contain privilege information. The key in the map is the identifier of the service element and the value in the map is the privilege information for the service element. For an explanation of privilege information containment within service elements, see :class:`Com::Vmware::Vapi::Metadata::Privilege::Service` .
703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 703 class PackageInfo < VAPI::Bindings::VapiStruct class << self # Holds (gets or creates) the binding type metadata for this structure type. # @scope class # @return [VAPI::Bindings::StructType] the binding type def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.privilege.package_info', { 'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance), 'services' => VAPI::Bindings::MapType.new(VAPI::Bindings::IdType.new, VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo')), }, PackageInfo, false, nil) end end attr_accessor :privileges, :services # Constructs a new instance. # @param ruby_values [Hash] a map of initial property values (optional) # @param struct_value [VAPI::Data::StructValue] a raw StructValue from the wire (optional) def initialize(ruby_values=nil, struct_value=nil) super(self.class.binding_type, ruby_values, struct_value) end end |
Class Method Details
+ (VAPI::Bindings::StructType) binding_type
Holds (gets or creates) the binding type metadata for this structure type.
709 710 711 712 713 714 715 716 717 718 719 |
# File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 709 def binding_type @binding_type ||= VAPI::Bindings::StructType.new( 'com.vmware.vapi.metadata.privilege.package_info', { 'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance), 'services' => VAPI::Bindings::MapType.new(VAPI::Bindings::IdType.new, VAPI::Bindings::ReferenceType.new('Com::Vmware::Vapi::Metadata::Privilege::ServiceInfo')), }, PackageInfo, false, nil) end |