Class List Method List File List

# Class: Com::Vmware::Vapi::Metadata::Privilege::PrivilegeInfo

Inherits:
  VAPI::Bindings::VapiStruct
  - Object
  - VAPI::Bindings::VapiStruct
  - Com::Vmware::Vapi::Metadata::Privilege::PrivilegeInfo
  show all
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::PrivilegeInfo`` class contains the privilege information for a parameter element in an operation element.

## Instance Attribute Summary (collapse)

- - (Array<String>) privileges

  List of privileges assigned to the entity that is being referred by :attr:`Com::Vmware::Vapi::Metadata::Privilege::PrivilegeInfo.property_path` .

- - (String) property_path

  The ``propertyPath`` points to an entity that is used in the operation element.

## 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)

- - (PrivilegeInfo) initialize(ruby_values = nil, struct_value = nil) constructor

  Constructs a new instance.

## Constructor Details

### - (`PrivilegeInfo`) initialize(ruby_values = nil, struct_value = nil)

Constructs a new instance.

Parameters:

- ruby_values (`Hash`) (defaults to: `nil`) —

  a map of initial property values (optional)

- struct_value (`VAPI::Data::StructValue`) (defaults to: `nil`) —

  a raw StructValue from the wire (optional)

    768
    769
    770
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 768

    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 privileges assigned to the entity that is being referred by :attr:`Com::Vmware::Vapi::Metadata::Privilege::PrivilegeInfo.property_path` .

Returns:

- (`Array<String>`)

    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 743

    class PrivilegeInfo < 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.privilege_info',
                    {
                        'property_path' => VAPI::Bindings::StringType.instance,
                        'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
                    },
                    PrivilegeInfo,
                    false,
                    nil)
            end
        end

        attr_accessor :property_path,
                      :privileges

        # 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

### - (`String`) property_path

The ``propertyPath`` points to an entity that is used in the operation element. 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.

     If the privilege is assigned to an entity used in the parameter,  ``propertyPath``  will just contain the name of the parameter field. If the privilege is assigned to an entity in one of the field elements of a parameter element that is a structure element, then  ``propertyPath``  will contain a path to the field element starting from the parameter name.

Returns:

- (`String`)

    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 743

    class PrivilegeInfo < 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.privilege_info',
                    {
                        'property_path' => VAPI::Bindings::StringType.instance,
                        'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
                    },
                    PrivilegeInfo,
                    false,
                    nil)
            end
        end

        attr_accessor :property_path,
                      :privileges

        # 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.

Returns:

- (`VAPI::Bindings::StructType`) —

  the binding type

    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    # File '/build/mts/release/bora-4571906/build/sdk/aggregated-bindings/ruby/com/vmware/vapi/metadata/privilege.rb', line 749

    def binding_type
        @binding_type ||= VAPI::Bindings::StructType.new(
            'com.vmware.vapi.metadata.privilege.privilege_info',
            {
                'property_path' => VAPI::Bindings::StringType.instance,
                'privileges' => VAPI::Bindings::ListType.new(VAPI::Bindings::StringType.instance),
            },
            PrivilegeInfo,
            false,
            nil)
    end