azure_mgmt_authorization 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_authorization.gemspec +4 -4
- data/lib/azure_mgmt_authorization.rb +3 -49
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/authorization_management_client.rb +8 -7
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/classic_administrators.rb +32 -11
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb +76 -0
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +84 -0
- data/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb +54 -0
- data/lib/generated/azure_mgmt_authorization/models/permission.rb +68 -0
- data/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb +83 -0
- data/lib/generated/azure_mgmt_authorization/models/provider_operation.rb +84 -0
- data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb +110 -0
- data/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +84 -0
- data/lib/generated/azure_mgmt_authorization/models/resource_type.rb +73 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment.rb +76 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +44 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +54 -0
- data/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +64 -0
- data/lib/generated/azure_mgmt_authorization/models/role_definition.rb +76 -0
- data/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb +44 -0
- data/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +83 -0
- data/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb +99 -0
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/permissions.rb +70 -22
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/provider_operations_metadata_operations.rb +37 -15
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/role_assignments.rb +171 -80
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/role_definitions.rb +56 -33
- data/lib/{azure_mgmt_authorization → generated/azure_mgmt_authorization}/version.rb +1 -1
- data/lib/generated/azure_mgmt_authorization.rb +51 -0
- metadata +49 -53
- data/lib/azure_mgmt_authorization/models/classic_administrator.rb +0 -90
- data/lib/azure_mgmt_authorization/models/classic_administrator_list_result.rb +0 -77
- data/lib/azure_mgmt_authorization/models/classic_administrator_properties.rb +0 -65
- data/lib/azure_mgmt_authorization/models/permission.rb +0 -66
- data/lib/azure_mgmt_authorization/models/permission_get_result.rb +0 -76
- data/lib/azure_mgmt_authorization/models/provider_operation.rb +0 -92
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata.rb +0 -142
- data/lib/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +0 -77
- data/lib/azure_mgmt_authorization/models/resource_type.rb +0 -95
- data/lib/azure_mgmt_authorization/models/role_assignment.rb +0 -90
- data/lib/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +0 -63
- data/lib/azure_mgmt_authorization/models/role_assignment_filter.rb +0 -56
- data/lib/azure_mgmt_authorization/models/role_assignment_list_result.rb +0 -86
- data/lib/azure_mgmt_authorization/models/role_assignment_properties.rb +0 -65
- data/lib/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb +0 -74
- data/lib/azure_mgmt_authorization/models/role_definition.rb +0 -90
- data/lib/azure_mgmt_authorization/models/role_definition_filter.rb +0 -56
- data/lib/azure_mgmt_authorization/models/role_definition_list_result.rb +0 -76
- data/lib/azure_mgmt_authorization/models/role_definition_properties.rb +0 -113
@@ -0,0 +1,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_authorization/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::Authorization
|
23
|
+
autoload :ClassicAdministrators, 'generated/azure_mgmt_authorization/classic_administrators.rb'
|
24
|
+
autoload :Permissions, 'generated/azure_mgmt_authorization/permissions.rb'
|
25
|
+
autoload :ProviderOperationsMetadataOperations, 'generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb'
|
26
|
+
autoload :RoleAssignments, 'generated/azure_mgmt_authorization/role_assignments.rb'
|
27
|
+
autoload :RoleDefinitions, 'generated/azure_mgmt_authorization/role_definitions.rb'
|
28
|
+
autoload :AuthorizationManagementClient, 'generated/azure_mgmt_authorization/authorization_management_client.rb'
|
29
|
+
|
30
|
+
module Models
|
31
|
+
autoload :RoleAssignmentFilter, 'generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
|
32
|
+
autoload :RoleDefinitionFilter, 'generated/azure_mgmt_authorization/models/role_definition_filter.rb'
|
33
|
+
autoload :ClassicAdministratorProperties, 'generated/azure_mgmt_authorization/models/classic_administrator_properties.rb'
|
34
|
+
autoload :ClassicAdministrator, 'generated/azure_mgmt_authorization/models/classic_administrator.rb'
|
35
|
+
autoload :ClassicAdministratorListResult, 'generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb'
|
36
|
+
autoload :Permission, 'generated/azure_mgmt_authorization/models/permission.rb'
|
37
|
+
autoload :PermissionGetResult, 'generated/azure_mgmt_authorization/models/permission_get_result.rb'
|
38
|
+
autoload :ProviderOperation, 'generated/azure_mgmt_authorization/models/provider_operation.rb'
|
39
|
+
autoload :ResourceType, 'generated/azure_mgmt_authorization/models/resource_type.rb'
|
40
|
+
autoload :ProviderOperationsMetadata, 'generated/azure_mgmt_authorization/models/provider_operations_metadata.rb'
|
41
|
+
autoload :ProviderOperationsMetadataListResult, 'generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
|
42
|
+
autoload :RoleAssignmentPropertiesWithScope, 'generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb'
|
43
|
+
autoload :RoleAssignment, 'generated/azure_mgmt_authorization/models/role_assignment.rb'
|
44
|
+
autoload :RoleAssignmentListResult, 'generated/azure_mgmt_authorization/models/role_assignment_list_result.rb'
|
45
|
+
autoload :RoleAssignmentProperties, 'generated/azure_mgmt_authorization/models/role_assignment_properties.rb'
|
46
|
+
autoload :RoleAssignmentCreateParameters, 'generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
|
47
|
+
autoload :RoleDefinitionProperties, 'generated/azure_mgmt_authorization/models/role_definition_properties.rb'
|
48
|
+
autoload :RoleDefinition, 'generated/azure_mgmt_authorization/models/role_definition.rb'
|
49
|
+
autoload :RoleDefinitionListResult, 'generated/azure_mgmt_authorization/models/role_definition_list_result.rb'
|
50
|
+
end
|
51
|
+
end
|
metadata
CHANGED
@@ -1,90 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_authorization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
MC4zLjE=
|
4
|
+
version: 0.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Microsoft Corporation
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-07-22 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- - ~>
|
17
|
+
- - "~>"
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: '1.9'
|
21
20
|
type: :development
|
22
21
|
prerelease: false
|
23
22
|
version_requirements: !ruby/object:Gem::Requirement
|
24
23
|
requirements:
|
25
|
-
- - ~>
|
24
|
+
- - "~>"
|
26
25
|
- !ruby/object:Gem::Version
|
27
26
|
version: '1.9'
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: rake
|
30
29
|
requirement: !ruby/object:Gem::Requirement
|
31
30
|
requirements:
|
32
|
-
- - ~>
|
31
|
+
- - "~>"
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: '10'
|
35
34
|
type: :development
|
36
35
|
prerelease: false
|
37
36
|
version_requirements: !ruby/object:Gem::Requirement
|
38
37
|
requirements:
|
39
|
-
- - ~>
|
38
|
+
- - "~>"
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
version: '10'
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: rspec
|
44
43
|
requirement: !ruby/object:Gem::Requirement
|
45
44
|
requirements:
|
46
|
-
- - ~>
|
45
|
+
- - "~>"
|
47
46
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
49
|
-
Mw==
|
47
|
+
version: '3'
|
50
48
|
type: :development
|
51
49
|
prerelease: false
|
52
50
|
version_requirements: !ruby/object:Gem::Requirement
|
53
51
|
requirements:
|
54
|
-
- - ~>
|
52
|
+
- - "~>"
|
55
53
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
57
|
-
Mw==
|
54
|
+
version: '3'
|
58
55
|
- !ruby/object:Gem::Dependency
|
59
56
|
name: dotenv
|
60
57
|
requirement: !ruby/object:Gem::Requirement
|
61
58
|
requirements:
|
62
|
-
- - ~>
|
59
|
+
- - "~>"
|
63
60
|
- !ruby/object:Gem::Version
|
64
61
|
version: '2'
|
65
62
|
type: :development
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- - ~>
|
66
|
+
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '2'
|
72
69
|
- !ruby/object:Gem::Dependency
|
73
70
|
name: ms_rest_azure
|
74
71
|
requirement: !ruby/object:Gem::Requirement
|
75
72
|
requirements:
|
76
|
-
- - ~>
|
73
|
+
- - "~>"
|
77
74
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
MC4yLjM=
|
75
|
+
version: 0.3.0
|
80
76
|
type: :runtime
|
81
77
|
prerelease: false
|
82
78
|
version_requirements: !ruby/object:Gem::Requirement
|
83
79
|
requirements:
|
84
|
-
- - ~>
|
80
|
+
- - "~>"
|
85
81
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
87
|
-
MC4yLjM=
|
82
|
+
version: 0.3.0
|
88
83
|
description: Microsoft Azure Role Based Authorization Management Client Library for
|
89
84
|
Ruby
|
90
85
|
email: azrubyteam@microsoft.com
|
@@ -92,39 +87,40 @@ executables: []
|
|
92
87
|
extensions: []
|
93
88
|
extra_rdoc_files: []
|
94
89
|
files:
|
95
|
-
- .rspec
|
90
|
+
- ".rspec"
|
96
91
|
- LICENSE.txt
|
97
92
|
- Rakefile
|
98
93
|
- azure_mgmt_authorization.gemspec
|
99
94
|
- lib/azure_mgmt_authorization.rb
|
100
|
-
- lib/azure_mgmt_authorization
|
101
|
-
- lib/azure_mgmt_authorization/
|
102
|
-
- lib/azure_mgmt_authorization/
|
103
|
-
- lib/azure_mgmt_authorization/models/
|
104
|
-
- lib/azure_mgmt_authorization/models/
|
105
|
-
- lib/azure_mgmt_authorization/models/
|
106
|
-
- lib/azure_mgmt_authorization/models/
|
107
|
-
- lib/azure_mgmt_authorization/models/
|
108
|
-
- lib/azure_mgmt_authorization/models/
|
109
|
-
- lib/azure_mgmt_authorization/models/
|
110
|
-
- lib/azure_mgmt_authorization/models/
|
111
|
-
- lib/azure_mgmt_authorization/models/
|
112
|
-
- lib/azure_mgmt_authorization/models/
|
113
|
-
- lib/azure_mgmt_authorization/models/
|
114
|
-
- lib/azure_mgmt_authorization/models/
|
115
|
-
- lib/azure_mgmt_authorization/models/
|
116
|
-
- lib/azure_mgmt_authorization/models/
|
117
|
-
- lib/azure_mgmt_authorization/models/
|
118
|
-
- lib/azure_mgmt_authorization/models/
|
119
|
-
- lib/azure_mgmt_authorization/models/
|
120
|
-
- lib/azure_mgmt_authorization/models/
|
121
|
-
- lib/azure_mgmt_authorization/
|
122
|
-
- lib/azure_mgmt_authorization/
|
123
|
-
- lib/azure_mgmt_authorization/
|
124
|
-
- lib/azure_mgmt_authorization/
|
125
|
-
- lib/azure_mgmt_authorization/
|
126
|
-
- lib/azure_mgmt_authorization/
|
127
|
-
|
95
|
+
- lib/generated/azure_mgmt_authorization.rb
|
96
|
+
- lib/generated/azure_mgmt_authorization/authorization_management_client.rb
|
97
|
+
- lib/generated/azure_mgmt_authorization/classic_administrators.rb
|
98
|
+
- lib/generated/azure_mgmt_authorization/models/classic_administrator.rb
|
99
|
+
- lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
|
100
|
+
- lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
|
101
|
+
- lib/generated/azure_mgmt_authorization/models/permission.rb
|
102
|
+
- lib/generated/azure_mgmt_authorization/models/permission_get_result.rb
|
103
|
+
- lib/generated/azure_mgmt_authorization/models/provider_operation.rb
|
104
|
+
- lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
|
105
|
+
- lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
|
106
|
+
- lib/generated/azure_mgmt_authorization/models/resource_type.rb
|
107
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment.rb
|
108
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
|
109
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
|
110
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
|
111
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
|
112
|
+
- lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
|
113
|
+
- lib/generated/azure_mgmt_authorization/models/role_definition.rb
|
114
|
+
- lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb
|
115
|
+
- lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
|
116
|
+
- lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb
|
117
|
+
- lib/generated/azure_mgmt_authorization/module_definition.rb
|
118
|
+
- lib/generated/azure_mgmt_authorization/permissions.rb
|
119
|
+
- lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
|
120
|
+
- lib/generated/azure_mgmt_authorization/role_assignments.rb
|
121
|
+
- lib/generated/azure_mgmt_authorization/role_definitions.rb
|
122
|
+
- lib/generated/azure_mgmt_authorization/version.rb
|
123
|
+
homepage: https://aka.ms/azure-sdk-for-ruby
|
128
124
|
licenses:
|
129
125
|
- MIT
|
130
126
|
metadata: {}
|
@@ -134,17 +130,17 @@ require_paths:
|
|
134
130
|
- lib
|
135
131
|
required_ruby_version: !ruby/object:Gem::Requirement
|
136
132
|
requirements:
|
137
|
-
- -
|
133
|
+
- - ">="
|
138
134
|
- !ruby/object:Gem::Version
|
139
135
|
version: 1.9.3
|
140
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
137
|
requirements:
|
142
|
-
- -
|
138
|
+
- - ">="
|
143
139
|
- !ruby/object:Gem::Version
|
144
140
|
version: '0'
|
145
141
|
requirements: []
|
146
142
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.4.
|
143
|
+
rubygems_version: 2.4.6
|
148
144
|
signing_key:
|
149
145
|
specification_version: 4
|
150
146
|
summary: Official Ruby client library to consume Microsoft Azure Role Based Authorization
|
@@ -1,90 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Authorization
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Classic Administrators
|
10
|
-
#
|
11
|
-
class ClassicAdministrator
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the classic administrator id.
|
16
|
-
attr_accessor :id
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the classic administrator name.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
# @return [String] Gets or sets the classic administrator type.
|
22
|
-
attr_accessor :type
|
23
|
-
|
24
|
-
# @return [ClassicAdministratorProperties] Gets or sets the classic
|
25
|
-
# administrator properties.
|
26
|
-
attr_accessor :properties
|
27
|
-
|
28
|
-
#
|
29
|
-
# Validate the object. Throws ValidationError if validation fails.
|
30
|
-
#
|
31
|
-
def validate
|
32
|
-
@properties.validate unless @properties.nil?
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# Serializes given Model object into Ruby Hash.
|
37
|
-
# @param object Model object to serialize.
|
38
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
39
|
-
#
|
40
|
-
def self.serialize_object(object)
|
41
|
-
object.validate
|
42
|
-
output_object = {}
|
43
|
-
|
44
|
-
serialized_property = object.id
|
45
|
-
output_object['id'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
serialized_property = object.name
|
48
|
-
output_object['name'] = serialized_property unless serialized_property.nil?
|
49
|
-
|
50
|
-
serialized_property = object.type
|
51
|
-
output_object['type'] = serialized_property unless serialized_property.nil?
|
52
|
-
|
53
|
-
serialized_property = object.properties
|
54
|
-
unless serialized_property.nil?
|
55
|
-
serialized_property = ClassicAdministratorProperties.serialize_object(serialized_property)
|
56
|
-
end
|
57
|
-
output_object['properties'] = serialized_property unless serialized_property.nil?
|
58
|
-
|
59
|
-
output_object
|
60
|
-
end
|
61
|
-
|
62
|
-
#
|
63
|
-
# Deserializes given Ruby Hash into Model object.
|
64
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
65
|
-
# @return [ClassicAdministrator] Deserialized object.
|
66
|
-
#
|
67
|
-
def self.deserialize_object(object)
|
68
|
-
return if object.nil?
|
69
|
-
output_object = ClassicAdministrator.new
|
70
|
-
|
71
|
-
deserialized_property = object['id']
|
72
|
-
output_object.id = deserialized_property
|
73
|
-
|
74
|
-
deserialized_property = object['name']
|
75
|
-
output_object.name = deserialized_property
|
76
|
-
|
77
|
-
deserialized_property = object['type']
|
78
|
-
output_object.type = deserialized_property
|
79
|
-
|
80
|
-
deserialized_property = object['properties']
|
81
|
-
unless deserialized_property.nil?
|
82
|
-
deserialized_property = ClassicAdministratorProperties.deserialize_object(deserialized_property)
|
83
|
-
end
|
84
|
-
output_object.properties = deserialized_property
|
85
|
-
|
86
|
-
output_object
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Authorization
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# ClassicAdministrator list result information.
|
10
|
-
#
|
11
|
-
class ClassicAdministratorListResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<ClassicAdministrator>] Gets or sets
|
16
|
-
# ClassicAdministrators.
|
17
|
-
attr_accessor :value
|
18
|
-
|
19
|
-
#
|
20
|
-
# Validate the object. Throws ValidationError if validation fails.
|
21
|
-
#
|
22
|
-
def validate
|
23
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# Serializes given Model object into Ruby Hash.
|
28
|
-
# @param object Model object to serialize.
|
29
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
30
|
-
#
|
31
|
-
def self.serialize_object(object)
|
32
|
-
object.validate
|
33
|
-
output_object = {}
|
34
|
-
|
35
|
-
serialized_property = object.value
|
36
|
-
unless serialized_property.nil?
|
37
|
-
serializedArray = []
|
38
|
-
serialized_property.each do |element|
|
39
|
-
unless element.nil?
|
40
|
-
element = ClassicAdministrator.serialize_object(element)
|
41
|
-
end
|
42
|
-
serializedArray.push(element)
|
43
|
-
end
|
44
|
-
serialized_property = serializedArray
|
45
|
-
end
|
46
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
47
|
-
|
48
|
-
output_object
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# Deserializes given Ruby Hash into Model object.
|
53
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
54
|
-
# @return [ClassicAdministratorListResult] Deserialized object.
|
55
|
-
#
|
56
|
-
def self.deserialize_object(object)
|
57
|
-
return if object.nil?
|
58
|
-
output_object = ClassicAdministratorListResult.new
|
59
|
-
|
60
|
-
deserialized_property = object['value']
|
61
|
-
unless deserialized_property.nil?
|
62
|
-
deserialized_array = []
|
63
|
-
deserialized_property.each do |element1|
|
64
|
-
unless element1.nil?
|
65
|
-
element1 = ClassicAdministrator.deserialize_object(element1)
|
66
|
-
end
|
67
|
-
deserialized_array.push(element1)
|
68
|
-
end
|
69
|
-
deserialized_property = deserialized_array
|
70
|
-
end
|
71
|
-
output_object.value = deserialized_property
|
72
|
-
|
73
|
-
output_object
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Authorization
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Classic Administrator properties.
|
10
|
-
#
|
11
|
-
class ClassicAdministratorProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Gets or sets the email address
|
16
|
-
attr_accessor :email_address
|
17
|
-
|
18
|
-
# @return [String] Gets or sets the role
|
19
|
-
attr_accessor :role
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
# Nothing to validate
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# Serializes given Model object into Ruby Hash.
|
30
|
-
# @param object Model object to serialize.
|
31
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
32
|
-
#
|
33
|
-
def self.serialize_object(object)
|
34
|
-
object.validate
|
35
|
-
output_object = {}
|
36
|
-
|
37
|
-
serialized_property = object.email_address
|
38
|
-
output_object['emailAddress'] = serialized_property unless serialized_property.nil?
|
39
|
-
|
40
|
-
serialized_property = object.role
|
41
|
-
output_object['role'] = serialized_property unless serialized_property.nil?
|
42
|
-
|
43
|
-
output_object
|
44
|
-
end
|
45
|
-
|
46
|
-
#
|
47
|
-
# Deserializes given Ruby Hash into Model object.
|
48
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
49
|
-
# @return [ClassicAdministratorProperties] Deserialized object.
|
50
|
-
#
|
51
|
-
def self.deserialize_object(object)
|
52
|
-
return if object.nil?
|
53
|
-
output_object = ClassicAdministratorProperties.new
|
54
|
-
|
55
|
-
deserialized_property = object['emailAddress']
|
56
|
-
output_object.email_address = deserialized_property
|
57
|
-
|
58
|
-
deserialized_property = object['role']
|
59
|
-
output_object.role = deserialized_property
|
60
|
-
|
61
|
-
output_object
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Authorization
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Role definition permissions.
|
10
|
-
#
|
11
|
-
class Permission
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<String>] Role definition allowed actions.
|
16
|
-
attr_accessor :actions
|
17
|
-
|
18
|
-
# @return [Array<String>] Role definition denied actions.
|
19
|
-
attr_accessor :not_actions
|
20
|
-
|
21
|
-
#
|
22
|
-
# Validate the object. Throws ValidationError if validation fails.
|
23
|
-
#
|
24
|
-
def validate
|
25
|
-
@actions.each{ |e| e.validate if e.respond_to?(:validate) } unless @actions.nil?
|
26
|
-
@not_actions.each{ |e| e.validate if e.respond_to?(:validate) } unless @not_actions.nil?
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# Serializes given Model object into Ruby Hash.
|
31
|
-
# @param object Model object to serialize.
|
32
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
33
|
-
#
|
34
|
-
def self.serialize_object(object)
|
35
|
-
object.validate
|
36
|
-
output_object = {}
|
37
|
-
|
38
|
-
serialized_property = object.actions
|
39
|
-
output_object['actions'] = serialized_property unless serialized_property.nil?
|
40
|
-
|
41
|
-
serialized_property = object.not_actions
|
42
|
-
output_object['notActions'] = serialized_property unless serialized_property.nil?
|
43
|
-
|
44
|
-
output_object
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Deserializes given Ruby Hash into Model object.
|
49
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
50
|
-
# @return [Permission] Deserialized object.
|
51
|
-
#
|
52
|
-
def self.deserialize_object(object)
|
53
|
-
return if object.nil?
|
54
|
-
output_object = Permission.new
|
55
|
-
|
56
|
-
deserialized_property = object['actions']
|
57
|
-
output_object.actions = deserialized_property
|
58
|
-
|
59
|
-
deserialized_property = object['notActions']
|
60
|
-
output_object.not_actions = deserialized_property
|
61
|
-
|
62
|
-
output_object
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,76 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::Authorization
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Permissions information.
|
10
|
-
#
|
11
|
-
class PermissionGetResult
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [Array<Permission>] Gets or sets permissions.
|
16
|
-
attr_accessor :value
|
17
|
-
|
18
|
-
#
|
19
|
-
# Validate the object. Throws ValidationError if validation fails.
|
20
|
-
#
|
21
|
-
def validate
|
22
|
-
@value.each{ |e| e.validate if e.respond_to?(:validate) } unless @value.nil?
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Serializes given Model object into Ruby Hash.
|
27
|
-
# @param object Model object to serialize.
|
28
|
-
# @return [Hash] Serialized object in form of Ruby Hash.
|
29
|
-
#
|
30
|
-
def self.serialize_object(object)
|
31
|
-
object.validate
|
32
|
-
output_object = {}
|
33
|
-
|
34
|
-
serialized_property = object.value
|
35
|
-
unless serialized_property.nil?
|
36
|
-
serializedArray = []
|
37
|
-
serialized_property.each do |element|
|
38
|
-
unless element.nil?
|
39
|
-
element = Permission.serialize_object(element)
|
40
|
-
end
|
41
|
-
serializedArray.push(element)
|
42
|
-
end
|
43
|
-
serialized_property = serializedArray
|
44
|
-
end
|
45
|
-
output_object['value'] = serialized_property unless serialized_property.nil?
|
46
|
-
|
47
|
-
output_object
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# Deserializes given Ruby Hash into Model object.
|
52
|
-
# @param object [Hash] Ruby Hash object to deserialize.
|
53
|
-
# @return [PermissionGetResult] Deserialized object.
|
54
|
-
#
|
55
|
-
def self.deserialize_object(object)
|
56
|
-
return if object.nil?
|
57
|
-
output_object = PermissionGetResult.new
|
58
|
-
|
59
|
-
deserialized_property = object['value']
|
60
|
-
unless deserialized_property.nil?
|
61
|
-
deserialized_array = []
|
62
|
-
deserialized_property.each do |element1|
|
63
|
-
unless element1.nil?
|
64
|
-
element1 = Permission.deserialize_object(element1)
|
65
|
-
end
|
66
|
-
deserialized_array.push(element1)
|
67
|
-
end
|
68
|
-
deserialized_property = deserialized_array
|
69
|
-
end
|
70
|
-
output_object.value = deserialized_property
|
71
|
-
|
72
|
-
output_object
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|