Class: Azure::Compute::Mgmt::V2020_09_30_preview::Models::SharingUpdate

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update.rb

Overview

Specifies information about the gallery sharing profile update.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#groupsArray<SharingProfileGroup>

Returns A list of sharing profile groups.

Returns:



22
23
24
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update.rb', line 22

def groups
  @groups
end

#operation_typeSharingUpdateOperationTypes

specify the operation type of gallery sharing update.
Possible values are:
*Add*
*Remove*
*Reset*. Possible values include: 'Add', 'Remove', 'Reset'

Returns:



19
20
21
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update.rb', line 19

def operation_type
  @operation_type
end

Class Method Details

.mapperObject

Mapper for SharingUpdate class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/2020-09-30-preview/generated/azure_mgmt_compute/models/sharing_update.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SharingUpdate',
    type: {
      name: 'Composite',
      class_name: 'SharingUpdate',
      model_properties: {
        operation_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'operationType',
          type: {
            name: 'String'
          }
        },
        groups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'groups',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SharingProfileGroupElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SharingProfileGroup'
                }
            }
          }
        }
      }
    }
  }
end