azure_mgmt_authorization 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +2 -2
- data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +2 -2
- data/lib/azure_mgmt_authorization.rb +2 -0
- data/lib/profiles/v2017_03_09/authorization_module_definition.rb +8 -0
- data/lib/profiles/v2017_03_09/authorization_v2017_03_09_profile_client.rb +40 -0
- data/lib/profiles/v2017_03_09/modules/authorization_profile_module.rb +153 -0
- data/lib/profiles/v2018_03_01/authorization_module_definition.rb +8 -0
- data/lib/profiles/v2018_03_01/authorization_v2018_03_01_profile_client.rb +40 -0
- data/lib/profiles/v2018_03_01/modules/authorization_profile_module.rb +145 -0
- data/lib/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0318ede1f4eff0f7c1a873b458bcee306e749403
|
4
|
+
data.tar.gz: 2e07ca647d6eb34014aae3e8d43bd054da770487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62588cfc475e8f54c5059b4418ca6ba09b520b39e5170eb86d48feb2f645c8a8a4ed1ee75d8a32753ae3f78e34665594e46a4c8c1d1a6b70d3adfe4f45366a65
|
7
|
+
data.tar.gz: bfca7fd5e2d581d6c28174246f4f693ded9f0f79e79e6a8654b7e5ca5d69b2478c3ca5c22513976ed630f25a8b0d1b10a999ae5398e01cadbb4785f318ae4ab9
|
data/lib/2015-06-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
CHANGED
@@ -124,7 +124,7 @@ module Azure::Authorization::Mgmt::V2015_06_01_preview
|
|
124
124
|
#
|
125
125
|
def add_telemetry
|
126
126
|
sdk_information = 'azure_mgmt_authorization'
|
127
|
-
sdk_information = "#{sdk_information}/0.18.
|
127
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
CHANGED
@@ -133,7 +133,7 @@ module Azure::Authorization::Mgmt::V2015_07_01_preview
|
|
133
133
|
#
|
134
134
|
def add_telemetry
|
135
135
|
sdk_information = 'azure_mgmt_authorization'
|
136
|
-
sdk_information = "#{sdk_information}/0.18.
|
136
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
137
137
|
add_user_agent_information(sdk_information)
|
138
138
|
end
|
139
139
|
end
|
@@ -141,7 +141,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
141
141
|
#
|
142
142
|
def add_telemetry
|
143
143
|
sdk_information = 'azure_mgmt_authorization'
|
144
|
-
sdk_information = "#{sdk_information}/0.18.
|
144
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
145
145
|
add_user_agent_information(sdk_information)
|
146
146
|
end
|
147
147
|
end
|
@@ -36,7 +36,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
36
36
|
model_properties: {
|
37
37
|
role_definition_id: {
|
38
38
|
client_side_validation: true,
|
39
|
-
required:
|
39
|
+
required: true,
|
40
40
|
serialized_name: 'roleDefinitionId',
|
41
41
|
type: {
|
42
42
|
name: 'String'
|
@@ -44,7 +44,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
44
44
|
},
|
45
45
|
principal_id: {
|
46
46
|
client_side_validation: true,
|
47
|
-
required:
|
47
|
+
required: true,
|
48
48
|
serialized_name: 'principalId',
|
49
49
|
type: {
|
50
50
|
name: 'String'
|
data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
CHANGED
@@ -124,7 +124,7 @@ module Azure::Authorization::Mgmt::V2017_10_01_preview
|
|
124
124
|
#
|
125
125
|
def add_telemetry
|
126
126
|
sdk_information = 'azure_mgmt_authorization'
|
127
|
-
sdk_information = "#{sdk_information}/0.18.
|
127
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
CHANGED
@@ -137,7 +137,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
137
137
|
#
|
138
138
|
def add_telemetry
|
139
139
|
sdk_information = 'azure_mgmt_authorization'
|
140
|
-
sdk_information = "#{sdk_information}/0.18.
|
140
|
+
sdk_information = "#{sdk_information}/0.18.1"
|
141
141
|
add_user_agent_information(sdk_information)
|
142
142
|
end
|
143
143
|
end
|
@@ -40,7 +40,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
40
40
|
model_properties: {
|
41
41
|
role_definition_id: {
|
42
42
|
client_side_validation: true,
|
43
|
-
required:
|
43
|
+
required: true,
|
44
44
|
serialized_name: 'properties.roleDefinitionId',
|
45
45
|
type: {
|
46
46
|
name: 'String'
|
@@ -48,7 +48,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
48
48
|
},
|
49
49
|
principal_id: {
|
50
50
|
client_side_validation: true,
|
51
|
-
required:
|
51
|
+
required: true,
|
52
52
|
serialized_name: 'properties.principalId',
|
53
53
|
type: {
|
54
54
|
name: 'String'
|
@@ -7,4 +7,6 @@ require '2015-06-01-preview/generated/azure_mgmt_authorization'
|
|
7
7
|
require '2015-07-01-preview/generated/azure_mgmt_authorization'
|
8
8
|
require '2015-07-01/generated/azure_mgmt_authorization'
|
9
9
|
require '2017-10-01-preview/generated/azure_mgmt_authorization'
|
10
|
+
require 'profiles/v2017_03_09/authorization_v2017_03_09_profile_client'
|
10
11
|
require 'profiles/latest/authorization_latest_profile_client'
|
12
|
+
require 'profiles/v2018_03_01/authorization_v2018_03_01_profile_client'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::Authorization end
|
7
|
+
module Azure::Authorization::Profiles end
|
8
|
+
module Azure::Authorization::Profiles::V2017_03_09 end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'profiles/v2017_03_09/authorization_module_definition'
|
6
|
+
require 'profiles/v2017_03_09/modules/authorization_profile_module'
|
7
|
+
|
8
|
+
module Azure::Authorization::Profiles::V2017_03_09
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2017_03_09 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < AuthorizationManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
15
|
+
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,153 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_authorization'
|
6
|
+
|
7
|
+
module Azure::Authorization::Profiles::V2017_03_09
|
8
|
+
module Mgmt
|
9
|
+
Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions
|
10
|
+
ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations
|
11
|
+
RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments
|
12
|
+
RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions
|
13
|
+
ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators
|
14
|
+
|
15
|
+
module Models
|
16
|
+
RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
17
|
+
RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
18
|
+
RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
19
|
+
RoleAssignmentProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
20
|
+
PermissionGetResult = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
21
|
+
RoleAssignmentCreateParameters = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
22
|
+
ResourceType = Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
23
|
+
RoleDefinitionProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
24
|
+
ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
25
|
+
RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
26
|
+
RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
27
|
+
RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
28
|
+
ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
29
|
+
ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
30
|
+
RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
31
|
+
ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
32
|
+
ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
33
|
+
ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
34
|
+
Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# AuthorizationManagementClass
|
39
|
+
#
|
40
|
+
class AuthorizationManagementClass
|
41
|
+
attr_reader :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :classic_administrators, :configurable, :base_url, :options, :model_classes
|
42
|
+
|
43
|
+
def initialize(options = {})
|
44
|
+
if options.is_a?(Hash) && options.length == 0
|
45
|
+
@options = setup_default_options
|
46
|
+
else
|
47
|
+
@options = options
|
48
|
+
end
|
49
|
+
|
50
|
+
reset!(options)
|
51
|
+
|
52
|
+
@configurable = self
|
53
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
54
|
+
@options = options[:options].nil? ? nil:options[:options]
|
55
|
+
|
56
|
+
@client_0 = Azure::Authorization::Mgmt::V2015_07_01_preview::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
|
57
|
+
if(@client_0.respond_to?(:subscription_id))
|
58
|
+
@client_0.subscription_id = configurable.subscription_id
|
59
|
+
end
|
60
|
+
add_telemetry(@client_0)
|
61
|
+
|
62
|
+
@client_1 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
|
63
|
+
if(@client_1.respond_to?(:subscription_id))
|
64
|
+
@client_1.subscription_id = configurable.subscription_id
|
65
|
+
end
|
66
|
+
add_telemetry(@client_1)
|
67
|
+
@permissions = @client_1.permissions
|
68
|
+
@provider_operations_metadata_operations = @client_1.provider_operations_metadata_operations
|
69
|
+
@role_assignments = @client_1.role_assignments
|
70
|
+
@role_definitions = @client_1.role_definitions
|
71
|
+
@classic_administrators = @client_1.classic_administrators
|
72
|
+
|
73
|
+
@model_classes = ModelClasses.new
|
74
|
+
end
|
75
|
+
|
76
|
+
def add_telemetry(client)
|
77
|
+
profile_information = 'Profiles/V2017_03_09/Authorization/Mgmt'
|
78
|
+
client.add_user_agent_information(profile_information)
|
79
|
+
end
|
80
|
+
|
81
|
+
def method_missing(method, *args)
|
82
|
+
if @client_1.respond_to?method
|
83
|
+
@client_1.send(method, *args)
|
84
|
+
elsif @client_0.respond_to?method
|
85
|
+
@client_0.send(method, *args)
|
86
|
+
else
|
87
|
+
super
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
class ModelClasses
|
94
|
+
def role_assignment
|
95
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
96
|
+
end
|
97
|
+
def role_assignment_list_result
|
98
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
99
|
+
end
|
100
|
+
def role_definition_filter
|
101
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
102
|
+
end
|
103
|
+
def role_assignment_properties
|
104
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
105
|
+
end
|
106
|
+
def permission_get_result
|
107
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
108
|
+
end
|
109
|
+
def role_assignment_create_parameters
|
110
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
111
|
+
end
|
112
|
+
def resource_type
|
113
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
114
|
+
end
|
115
|
+
def role_definition_properties
|
116
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
117
|
+
end
|
118
|
+
def provider_operations_metadata_list_result
|
119
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
120
|
+
end
|
121
|
+
def role_definition
|
122
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
123
|
+
end
|
124
|
+
def role_assignment_filter
|
125
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
126
|
+
end
|
127
|
+
def role_definition_list_result
|
128
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
129
|
+
end
|
130
|
+
def provider_operation
|
131
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
132
|
+
end
|
133
|
+
def classic_administrator_properties
|
134
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
135
|
+
end
|
136
|
+
def role_assignment_properties_with_scope
|
137
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
138
|
+
end
|
139
|
+
def classic_administrator
|
140
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
141
|
+
end
|
142
|
+
def provider_operations_metadata
|
143
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
144
|
+
end
|
145
|
+
def classic_administrator_list_result
|
146
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
147
|
+
end
|
148
|
+
def permission
|
149
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::Authorization end
|
7
|
+
module Azure::Authorization::Profiles end
|
8
|
+
module Azure::Authorization::Profiles::V2018_03_01 end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'profiles/v2018_03_01/authorization_module_definition'
|
6
|
+
require 'profiles/v2018_03_01/modules/authorization_profile_module'
|
7
|
+
|
8
|
+
module Azure::Authorization::Profiles::V2018_03_01
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2018_03_01 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < AuthorizationManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
15
|
+
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_authorization'
|
6
|
+
|
7
|
+
module Azure::Authorization::Profiles::V2018_03_01
|
8
|
+
module Mgmt
|
9
|
+
Permissions = Azure::Authorization::Mgmt::V2015_07_01::Permissions
|
10
|
+
ProviderOperationsMetadataOperations = Azure::Authorization::Mgmt::V2015_07_01::ProviderOperationsMetadataOperations
|
11
|
+
RoleAssignments = Azure::Authorization::Mgmt::V2015_07_01::RoleAssignments
|
12
|
+
RoleDefinitions = Azure::Authorization::Mgmt::V2015_07_01::RoleDefinitions
|
13
|
+
ClassicAdministrators = Azure::Authorization::Mgmt::V2015_07_01::ClassicAdministrators
|
14
|
+
|
15
|
+
module Models
|
16
|
+
RoleAssignment = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
17
|
+
RoleAssignmentListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
18
|
+
RoleDefinitionFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
19
|
+
RoleAssignmentProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
20
|
+
PermissionGetResult = Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
21
|
+
RoleAssignmentCreateParameters = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
22
|
+
ResourceType = Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
23
|
+
RoleDefinitionProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
24
|
+
ProviderOperationsMetadataListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
25
|
+
RoleDefinition = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
26
|
+
RoleAssignmentFilter = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
27
|
+
RoleDefinitionListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
28
|
+
ProviderOperation = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
29
|
+
ClassicAdministratorProperties = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
30
|
+
RoleAssignmentPropertiesWithScope = Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
31
|
+
ClassicAdministrator = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
32
|
+
ProviderOperationsMetadata = Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
33
|
+
ClassicAdministratorListResult = Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
34
|
+
Permission = Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# AuthorizationManagementClass
|
39
|
+
#
|
40
|
+
class AuthorizationManagementClass
|
41
|
+
attr_reader :permissions, :provider_operations_metadata_operations, :role_assignments, :role_definitions, :classic_administrators, :configurable, :base_url, :options, :model_classes
|
42
|
+
|
43
|
+
def initialize(options = {})
|
44
|
+
if options.is_a?(Hash) && options.length == 0
|
45
|
+
@options = setup_default_options
|
46
|
+
else
|
47
|
+
@options = options
|
48
|
+
end
|
49
|
+
|
50
|
+
reset!(options)
|
51
|
+
|
52
|
+
@configurable = self
|
53
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
54
|
+
@options = options[:options].nil? ? nil:options[:options]
|
55
|
+
|
56
|
+
@client_0 = Azure::Authorization::Mgmt::V2015_07_01::AuthorizationManagementClient.new(configurable.credentials, base_url, options)
|
57
|
+
if(@client_0.respond_to?(:subscription_id))
|
58
|
+
@client_0.subscription_id = configurable.subscription_id
|
59
|
+
end
|
60
|
+
add_telemetry(@client_0)
|
61
|
+
@permissions = @client_0.permissions
|
62
|
+
@provider_operations_metadata_operations = @client_0.provider_operations_metadata_operations
|
63
|
+
@role_assignments = @client_0.role_assignments
|
64
|
+
@role_definitions = @client_0.role_definitions
|
65
|
+
@classic_administrators = @client_0.classic_administrators
|
66
|
+
|
67
|
+
@model_classes = ModelClasses.new
|
68
|
+
end
|
69
|
+
|
70
|
+
def add_telemetry(client)
|
71
|
+
profile_information = 'Profiles/V2018_03_01/Authorization/Mgmt'
|
72
|
+
client.add_user_agent_information(profile_information)
|
73
|
+
end
|
74
|
+
|
75
|
+
def method_missing(method, *args)
|
76
|
+
if @client_0.respond_to?method
|
77
|
+
@client_0.send(method, *args)
|
78
|
+
else
|
79
|
+
super
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
class ModelClasses
|
86
|
+
def role_assignment
|
87
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignment
|
88
|
+
end
|
89
|
+
def role_assignment_list_result
|
90
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentListResult
|
91
|
+
end
|
92
|
+
def role_definition_filter
|
93
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionFilter
|
94
|
+
end
|
95
|
+
def role_assignment_properties
|
96
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentProperties
|
97
|
+
end
|
98
|
+
def permission_get_result
|
99
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::PermissionGetResult
|
100
|
+
end
|
101
|
+
def role_assignment_create_parameters
|
102
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentCreateParameters
|
103
|
+
end
|
104
|
+
def resource_type
|
105
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ResourceType
|
106
|
+
end
|
107
|
+
def role_definition_properties
|
108
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionProperties
|
109
|
+
end
|
110
|
+
def provider_operations_metadata_list_result
|
111
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadataListResult
|
112
|
+
end
|
113
|
+
def role_definition
|
114
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinition
|
115
|
+
end
|
116
|
+
def role_assignment_filter
|
117
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentFilter
|
118
|
+
end
|
119
|
+
def role_definition_list_result
|
120
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleDefinitionListResult
|
121
|
+
end
|
122
|
+
def provider_operation
|
123
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperation
|
124
|
+
end
|
125
|
+
def classic_administrator_properties
|
126
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorProperties
|
127
|
+
end
|
128
|
+
def role_assignment_properties_with_scope
|
129
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::RoleAssignmentPropertiesWithScope
|
130
|
+
end
|
131
|
+
def classic_administrator
|
132
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministrator
|
133
|
+
end
|
134
|
+
def provider_operations_metadata
|
135
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ProviderOperationsMetadata
|
136
|
+
end
|
137
|
+
def classic_administrator_list_result
|
138
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::ClassicAdministratorListResult
|
139
|
+
end
|
140
|
+
def permission
|
141
|
+
Azure::Authorization::Mgmt::V2015_07_01::Models::Permission
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_authorization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -169,6 +169,12 @@ files:
|
|
169
169
|
- lib/profiles/latest/authorization_latest_profile_client.rb
|
170
170
|
- lib/profiles/latest/authorization_module_definition.rb
|
171
171
|
- lib/profiles/latest/modules/authorization_profile_module.rb
|
172
|
+
- lib/profiles/v2017_03_09/authorization_module_definition.rb
|
173
|
+
- lib/profiles/v2017_03_09/authorization_v2017_03_09_profile_client.rb
|
174
|
+
- lib/profiles/v2017_03_09/modules/authorization_profile_module.rb
|
175
|
+
- lib/profiles/v2018_03_01/authorization_module_definition.rb
|
176
|
+
- lib/profiles/v2018_03_01/authorization_v2018_03_01_profile_client.rb
|
177
|
+
- lib/profiles/v2018_03_01/modules/authorization_profile_module.rb
|
172
178
|
- lib/version.rb
|
173
179
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
174
180
|
licenses:
|