azure_mgmt_authorization 0.18.0 → 0.18.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-06-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2015-06-01-preview/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb +1 -1
- data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
- data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +1 -1
- data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.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/classic_administrator_list_result.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.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_list_result.rb +1 -1
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_properties.rb +2 -2
- data/lib/2015-07-01/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +1 -1
- data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization.rb +9 -9
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +5 -5
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +2 -2
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/permissions.rb +1 -5
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb +1 -5
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1 -5
- data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/role_definitions.rb +1 -5
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization.rb +33 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +131 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/deny_assignments.rb +1226 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment.rb +191 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_filter.rb +71 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_list_result.rb +98 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_permission.rb +115 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/models/principal.rb +65 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization.rb +33 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb +131 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/principal_type.rb +24 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment.rb +115 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb +85 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_filter.rb +57 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb +98 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/module_definition.rb +9 -0
- data/lib/2018-09-01-preview/generated/azure_mgmt_authorization/role_assignments.rb +1492 -0
- data/lib/azure_mgmt_authorization.rb +5 -0
- data/lib/profiles/latest/modules/authorization_profile_module.rb +72 -30
- 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/profiles/v2019_03_01_hybrid/authorization_module_definition.rb +8 -0
- data/lib/profiles/v2019_03_01_hybrid/authorization_v2019_03_01_hybrid_profile_client.rb +40 -0
- data/lib/profiles/v2019_03_01_hybrid/modules/authorization_profile_module.rb +145 -0
- data/lib/version.rb +1 -1
- metadata +32 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7bd63ecb4acf77865a4c76541df93fee38535d98b9e49a77037e7b7606e3e6f
|
4
|
+
data.tar.gz: c5cb5771fae830b8e997bd22fbf73d885f3e2c539cafa1cc2901af333da2e70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e23305448b34908087b77524aa9db60e3e76d408bb8c2c633ba9096fa837960d95901f326910f01cc025b27607ff8d34af47db978f977b3209bc564759eb5e73
|
7
|
+
data.tar.gz: d51bbe9038dbbe1594c1f07f9f6878387a856a225bfe3c6ed06111e05ff54b7166993fe0a33e7ab09dc432369ee8ca31b928fd70a3391fa382a55765ddc2045e
|
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.5"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_06_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
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.5"
|
137
137
|
add_user_agent_information(sdk_information)
|
138
138
|
end
|
139
139
|
end
|
data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
data/lib/2015-07-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
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.5"
|
145
145
|
add_user_agent_information(sdk_information)
|
146
146
|
end
|
147
147
|
end
|
data/lib/2015-07-01/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
data/lib/2015-07-01/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
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/2015-07-01/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2015_07_01
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
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.5"
|
128
128
|
add_user_agent_information(sdk_information)
|
129
129
|
end
|
130
130
|
end
|
data/lib/2017-10-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2017_10_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -21,24 +21,24 @@ require 'ms_rest_azure'
|
|
21
21
|
|
22
22
|
module Azure::Authorization::Mgmt::V2018_01_01_preview
|
23
23
|
autoload :ProviderOperationsMetadataOperations, '2018-01-01-preview/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb'
|
24
|
-
autoload :Permissions, '2018-01-01-preview/generated/azure_mgmt_authorization/permissions.rb'
|
25
24
|
autoload :RoleAssignments, '2018-01-01-preview/generated/azure_mgmt_authorization/role_assignments.rb'
|
25
|
+
autoload :Permissions, '2018-01-01-preview/generated/azure_mgmt_authorization/permissions.rb'
|
26
26
|
autoload :RoleDefinitions, '2018-01-01-preview/generated/azure_mgmt_authorization/role_definitions.rb'
|
27
27
|
autoload :AuthorizationManagementClient, '2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb'
|
28
28
|
|
29
29
|
module Models
|
30
|
-
autoload :
|
31
|
-
autoload :
|
30
|
+
autoload :RoleAssignmentListResult, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb'
|
31
|
+
autoload :RoleAssignmentCreateParameters, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb'
|
32
32
|
autoload :ResourceType, '2018-01-01-preview/generated/azure_mgmt_authorization/models/resource_type.rb'
|
33
|
-
autoload :
|
33
|
+
autoload :RoleDefinitionFilter, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_filter.rb'
|
34
34
|
autoload :ProviderOperationsMetadataListResult, '2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb'
|
35
|
-
autoload :
|
36
|
-
autoload :PermissionGetResult, '2018-01-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb'
|
35
|
+
autoload :Permission, '2018-01-01-preview/generated/azure_mgmt_authorization/models/permission.rb'
|
37
36
|
autoload :RoleAssignment, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment.rb'
|
37
|
+
autoload :RoleDefinition, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition.rb'
|
38
38
|
autoload :ProviderOperationsMetadata, '2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb'
|
39
|
-
autoload :
|
39
|
+
autoload :RoleDefinitionListResult, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.rb'
|
40
40
|
autoload :ProviderOperation, '2018-01-01-preview/generated/azure_mgmt_authorization/models/provider_operation.rb'
|
41
|
-
autoload :
|
42
|
-
autoload :
|
41
|
+
autoload :PermissionGetResult, '2018-01-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb'
|
42
|
+
autoload :RoleAssignmentFilter, '2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_filter.rb'
|
43
43
|
end
|
44
44
|
end
|
data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
CHANGED
@@ -39,12 +39,12 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
39
39
|
# provider_operations_metadata_operations
|
40
40
|
attr_reader :provider_operations_metadata_operations
|
41
41
|
|
42
|
-
# @return [Permissions] permissions
|
43
|
-
attr_reader :permissions
|
44
|
-
|
45
42
|
# @return [RoleAssignments] role_assignments
|
46
43
|
attr_reader :role_assignments
|
47
44
|
|
45
|
+
# @return [Permissions] permissions
|
46
|
+
attr_reader :permissions
|
47
|
+
|
48
48
|
# @return [RoleDefinitions] role_definitions
|
49
49
|
attr_reader :role_definitions
|
50
50
|
|
@@ -62,8 +62,8 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
62
62
|
@credentials = credentials
|
63
63
|
|
64
64
|
@provider_operations_metadata_operations = ProviderOperationsMetadataOperations.new(self)
|
65
|
-
@permissions = Permissions.new(self)
|
66
65
|
@role_assignments = RoleAssignments.new(self)
|
66
|
+
@permissions = Permissions.new(self)
|
67
67
|
@role_definitions = RoleDefinitions.new(self)
|
68
68
|
@api_version = '2018-01-01-preview'
|
69
69
|
@accept_language = 'en-US'
|
@@ -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.5"
|
141
141
|
add_user_agent_information(sdk_information)
|
142
142
|
end
|
143
143
|
end
|
data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/permission_get_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
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'
|
data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
data/lib/2018-01-01-preview/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
CHANGED
@@ -30,7 +30,7 @@ module Azure::Authorization::Mgmt::V2018_01_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -5,11 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::Authorization::Mgmt::V2018_01_01_preview
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# administration down to individual resources or resource groups. These
|
10
|
-
# operations enable you to manage role definitions and role assignments. A
|
11
|
-
# role definition describes the set of actions that can be performed on
|
12
|
-
# resources. A role assignment grants access to Azure Active Directory users.
|
8
|
+
# Permissions
|
13
9
|
#
|
14
10
|
class Permissions
|
15
11
|
include MsRestAzure
|
@@ -5,11 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::Authorization::Mgmt::V2018_01_01_preview
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# administration down to individual resources or resource groups. These
|
10
|
-
# operations enable you to manage role definitions and role assignments. A
|
11
|
-
# role definition describes the set of actions that can be performed on
|
12
|
-
# resources. A role assignment grants access to Azure Active Directory users.
|
8
|
+
# ProviderOperationsMetadataOperations
|
13
9
|
#
|
14
10
|
class ProviderOperationsMetadataOperations
|
15
11
|
include MsRestAzure
|
@@ -5,11 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::Authorization::Mgmt::V2018_01_01_preview
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# administration down to individual resources or resource groups. These
|
10
|
-
# operations enable you to manage role definitions and role assignments. A
|
11
|
-
# role definition describes the set of actions that can be performed on
|
12
|
-
# resources. A role assignment grants access to Azure Active Directory users.
|
8
|
+
# RoleAssignments
|
13
9
|
#
|
14
10
|
class RoleAssignments
|
15
11
|
include MsRestAzure
|
@@ -5,11 +5,7 @@
|
|
5
5
|
|
6
6
|
module Azure::Authorization::Mgmt::V2018_01_01_preview
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# administration down to individual resources or resource groups. These
|
10
|
-
# operations enable you to manage role definitions and role assignments. A
|
11
|
-
# role definition describes the set of actions that can be performed on
|
12
|
-
# resources. A role assignment grants access to Azure Active Directory users.
|
8
|
+
# RoleDefinitions
|
13
9
|
#
|
14
10
|
class RoleDefinitions
|
15
11
|
include MsRestAzure
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
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 '2018-07-01-preview/generated/azure_mgmt_authorization/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Authorization::Mgmt::V2018_07_01_preview
|
23
|
+
autoload :DenyAssignments, '2018-07-01-preview/generated/azure_mgmt_authorization/deny_assignments.rb'
|
24
|
+
autoload :AuthorizationManagementClient, '2018-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb'
|
25
|
+
|
26
|
+
module Models
|
27
|
+
autoload :Principal, '2018-07-01-preview/generated/azure_mgmt_authorization/models/principal.rb'
|
28
|
+
autoload :DenyAssignment, '2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment.rb'
|
29
|
+
autoload :DenyAssignmentPermission, '2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_permission.rb'
|
30
|
+
autoload :DenyAssignmentListResult, '2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_list_result.rb'
|
31
|
+
autoload :DenyAssignmentFilter, '2018-07-01-preview/generated/azure_mgmt_authorization/models/deny_assignment_filter.rb'
|
32
|
+
end
|
33
|
+
end
|
data/lib/2018-07-01-preview/generated/azure_mgmt_authorization/authorization_management_client.rb
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Authorization::Mgmt::V2018_07_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class AuthorizationManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The ID of the target subscription.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The API version to use for this operation.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [String] The preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
30
|
+
# Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
34
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
35
|
+
# generated and included in each request. Default is true.
|
36
|
+
attr_accessor :generate_client_request_id
|
37
|
+
|
38
|
+
# @return [DenyAssignments] deny_assignments
|
39
|
+
attr_reader :deny_assignments
|
40
|
+
|
41
|
+
#
|
42
|
+
# Creates initializes a new instance of the AuthorizationManagementClient class.
|
43
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
44
|
+
# @param base_url [String] the base URI of the service.
|
45
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
46
|
+
#
|
47
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
48
|
+
super(credentials, options)
|
49
|
+
@base_url = base_url || 'https://management.azure.com'
|
50
|
+
|
51
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
52
|
+
@credentials = credentials
|
53
|
+
|
54
|
+
@deny_assignments = DenyAssignments.new(self)
|
55
|
+
@api_version = '2018-07-01-preview'
|
56
|
+
@accept_language = 'en-US'
|
57
|
+
@long_running_operation_retry_timeout = 30
|
58
|
+
@generate_client_request_id = true
|
59
|
+
add_telemetry
|
60
|
+
end
|
61
|
+
|
62
|
+
#
|
63
|
+
# Makes a request and returns the body of the response.
|
64
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
65
|
+
# @param path [String] the path, relative to {base_url}.
|
66
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
67
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
68
|
+
# Example:
|
69
|
+
#
|
70
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
71
|
+
# path = "/path"
|
72
|
+
# options = {
|
73
|
+
# body: request_content,
|
74
|
+
# query_params: {'api-version' => '2016-02-01'}
|
75
|
+
# }
|
76
|
+
# result = @client.make_request(:put, path, options)
|
77
|
+
#
|
78
|
+
def make_request(method, path, options = {})
|
79
|
+
result = make_request_with_http_info(method, path, options)
|
80
|
+
result.body unless result.nil?
|
81
|
+
end
|
82
|
+
|
83
|
+
#
|
84
|
+
# Makes a request and returns the operation response.
|
85
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
86
|
+
# @param path [String] the path, relative to {base_url}.
|
87
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
88
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
89
|
+
#
|
90
|
+
def make_request_with_http_info(method, path, options = {})
|
91
|
+
result = make_request_async(method, path, options).value!
|
92
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
93
|
+
result
|
94
|
+
end
|
95
|
+
|
96
|
+
#
|
97
|
+
# Makes a request asynchronously.
|
98
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
99
|
+
# @param path [String] the path, relative to {base_url}.
|
100
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
101
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
102
|
+
#
|
103
|
+
def make_request_async(method, path, options = {})
|
104
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
105
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
106
|
+
|
107
|
+
request_url = options[:base_url] || @base_url
|
108
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
109
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
110
|
+
end
|
111
|
+
|
112
|
+
request_headers = @request_headers
|
113
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
114
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
115
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
116
|
+
|
117
|
+
super(request_url, method, path, options)
|
118
|
+
end
|
119
|
+
|
120
|
+
|
121
|
+
private
|
122
|
+
#
|
123
|
+
# Adds telemetry information.
|
124
|
+
#
|
125
|
+
def add_telemetry
|
126
|
+
sdk_information = 'azure_mgmt_authorization'
|
127
|
+
sdk_information = "#{sdk_information}/0.18.5"
|
128
|
+
add_user_agent_information(sdk_information)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|