azure_mgmt_graph 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/azure_mgmt_graph.gemspec +1 -1
  3. data/lib/generated/azure_mgmt_graph.rb +5 -0
  4. data/lib/generated/azure_mgmt_graph/applications.rb +395 -6
  5. data/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb +2 -2
  6. data/lib/generated/azure_mgmt_graph/groups.rb +16 -16
  7. data/lib/generated/azure_mgmt_graph/models/aadobject.rb +10 -11
  8. data/lib/generated/azure_mgmt_graph/models/adgroup.rb +5 -5
  9. data/lib/generated/azure_mgmt_graph/models/application.rb +7 -7
  10. data/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb +4 -5
  11. data/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb +14 -4
  12. data/lib/generated/azure_mgmt_graph/models/get_objects_result.rb +1 -1
  13. data/lib/generated/azure_mgmt_graph/models/graph_error.rb +54 -0
  14. data/lib/generated/azure_mgmt_graph/models/group_list_result.rb +2 -2
  15. data/lib/generated/azure_mgmt_graph/models/key_credential.rb +8 -7
  16. data/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb +52 -0
  17. data/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb +52 -0
  18. data/lib/generated/azure_mgmt_graph/models/password_credential.rb +5 -5
  19. data/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb +52 -0
  20. data/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb +52 -0
  21. data/lib/generated/azure_mgmt_graph/models/service_principal.rb +5 -5
  22. data/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb +38 -1
  23. data/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb +2 -3
  24. data/lib/generated/azure_mgmt_graph/models/user.rb +6 -6
  25. data/lib/generated/azure_mgmt_graph/models/user_list_result.rb +2 -2
  26. data/lib/generated/azure_mgmt_graph/objects.rb +2 -2
  27. data/lib/generated/azure_mgmt_graph/service_principals.rb +406 -8
  28. data/lib/generated/azure_mgmt_graph/users.rb +10 -10
  29. data/lib/generated/azure_mgmt_graph/version.rb +1 -1
  30. metadata +9 -4
@@ -8,8 +8,8 @@ module Azure::ARM::Graph
8
8
  # A service client - single point of access to the REST API.
9
9
  #
10
10
  class GraphRbacManagementClient < MsRestAzure::AzureServiceClient
11
- include MsRest::Serialization
12
11
  include MsRestAzure
12
+ include MsRestAzure::Serialization
13
13
 
14
14
  # @return [String] the base URI of the service.
15
15
  attr_accessor :base_url
@@ -20,7 +20,7 @@ module Azure::ARM::Graph
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the tenant Id.
23
+ # @return [String] the tenant Id.
24
24
  attr_accessor :tenant_id
25
25
 
26
26
  # @return [String] Gets or sets the preferred language for the response.
@@ -19,7 +19,7 @@ module Azure::ARM::Graph
19
19
  @client = client
20
20
  end
21
21
 
22
- # @return reference to the GraphRbacManagementClient
22
+ # @return [GraphRbacManagementClient] reference to the GraphRbacManagementClient
23
23
  attr_reader :client
24
24
 
25
25
  #
@@ -104,7 +104,7 @@ module Azure::ARM::Graph
104
104
  response_content = http_response.body
105
105
  unless status_code == 200
106
106
  error_model = JSON.load(response_content)
107
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
107
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
108
108
  end
109
109
 
110
110
  # Create Result
@@ -201,7 +201,7 @@ module Azure::ARM::Graph
201
201
  response_content = http_response.body
202
202
  unless status_code == 204
203
203
  error_model = JSON.load(response_content)
204
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
204
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
205
205
  end
206
206
 
207
207
  # Create Result
@@ -300,7 +300,7 @@ module Azure::ARM::Graph
300
300
  response_content = http_response.body
301
301
  unless status_code == 204
302
302
  error_model = JSON.load(response_content)
303
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
303
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
304
304
  end
305
305
 
306
306
  # Create Result
@@ -383,7 +383,7 @@ module Azure::ARM::Graph
383
383
  response_content = http_response.body
384
384
  unless status_code == 204
385
385
  error_model = JSON.load(response_content)
386
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
386
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
387
387
  end
388
388
 
389
389
  # Create Result
@@ -475,7 +475,7 @@ module Azure::ARM::Graph
475
475
  response_content = http_response.body
476
476
  unless status_code == 201
477
477
  error_model = JSON.load(response_content)
478
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
478
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
479
479
  end
480
480
 
481
481
  # Create Result
@@ -525,7 +525,7 @@ module Azure::ARM::Graph
525
525
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
526
526
  # will be added to the HTTP request.
527
527
  #
528
- # @return [GroupListResult] operation results.
528
+ # @return [Array<ADGroup>] operation results.
529
529
  #
530
530
  def list(filter = nil, custom_headers = nil)
531
531
  first_page = list_as_lazy(filter, custom_headers)
@@ -584,7 +584,7 @@ module Azure::ARM::Graph
584
584
  response_content = http_response.body
585
585
  unless status_code == 200
586
586
  error_model = JSON.load(response_content)
587
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
587
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
588
588
  end
589
589
 
590
590
  # Create Result
@@ -635,7 +635,7 @@ module Azure::ARM::Graph
635
635
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
636
636
  # will be added to the HTTP request.
637
637
  #
638
- # @return [GetObjectsResult] operation results.
638
+ # @return [Array<AADObject>] operation results.
639
639
  #
640
640
  def get_group_members(object_id, custom_headers = nil)
641
641
  first_page = get_group_members_as_lazy(object_id, custom_headers)
@@ -696,7 +696,7 @@ module Azure::ARM::Graph
696
696
  response_content = http_response.body
697
697
  unless status_code == 200
698
698
  error_model = JSON.load(response_content)
699
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
699
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
700
700
  end
701
701
 
702
702
  # Create Result
@@ -787,7 +787,7 @@ module Azure::ARM::Graph
787
787
  response_content = http_response.body
788
788
  unless status_code == 200
789
789
  error_model = JSON.load(response_content)
790
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
790
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
791
791
  end
792
792
 
793
793
  # Create Result
@@ -897,7 +897,7 @@ module Azure::ARM::Graph
897
897
  response_content = http_response.body
898
898
  unless status_code == 200
899
899
  error_model = JSON.load(response_content)
900
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
900
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
901
901
  end
902
902
 
903
903
  # Create Result
@@ -927,7 +927,7 @@ module Azure::ARM::Graph
927
927
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
928
928
  # will be added to the HTTP request.
929
929
  #
930
- # @return [GroupListResult] operation results.
930
+ # @return [Array<ADGroup>] operation results.
931
931
  #
932
932
  def list_next(next_link, custom_headers = nil)
933
933
  response = list_next_async(next_link, custom_headers).value!
@@ -988,7 +988,7 @@ module Azure::ARM::Graph
988
988
  response_content = http_response.body
989
989
  unless status_code == 200
990
990
  error_model = JSON.load(response_content)
991
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
991
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
992
992
  end
993
993
 
994
994
  # Create Result
@@ -1018,7 +1018,7 @@ module Azure::ARM::Graph
1018
1018
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
1019
1019
  # will be added to the HTTP request.
1020
1020
  #
1021
- # @return [GetObjectsResult] operation results.
1021
+ # @return [Array<AADObject>] operation results.
1022
1022
  #
1023
1023
  def get_group_members_next(next_link, custom_headers = nil)
1024
1024
  response = get_group_members_next_async(next_link, custom_headers).value!
@@ -1079,7 +1079,7 @@ module Azure::ARM::Graph
1079
1079
  response_content = http_response.body
1080
1080
  unless status_code == 200
1081
1081
  error_model = JSON.load(response_content)
1082
- fail MsRestAzure::AzureOperationError.new(request, http_response, error_model)
1082
+ fail MsRest::HttpOperationError.new(request, http_response, error_model)
1083
1083
  end
1084
1084
 
1085
1085
  # Create Result
@@ -12,35 +12,34 @@ module Azure::ARM::Graph
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets object Id
15
+ # @return [String] object Id
16
16
  attr_accessor :object_id
17
17
 
18
- # @return [String] Gets or sets object type
18
+ # @return [String] object type
19
19
  attr_accessor :object_type
20
20
 
21
- # @return [String] Gets or sets object display name
21
+ # @return [String] object display name
22
22
  attr_accessor :display_name
23
23
 
24
- # @return [String] Gets or sets principal name
24
+ # @return [String] principal name
25
25
  attr_accessor :user_principal_name
26
26
 
27
- # @return [String] Gets or sets mail
27
+ # @return [String] mail
28
28
  attr_accessor :mail
29
29
 
30
- # @return [Boolean] Gets or sets MailEnabled field
30
+ # @return [Boolean] MailEnabled field
31
31
  attr_accessor :mail_enabled
32
32
 
33
- # @return [Boolean] Gets or sets SecurityEnabled field
33
+ # @return [Boolean] SecurityEnabled field
34
34
  attr_accessor :security_enabled
35
35
 
36
- # @return [String] Gets or sets signIn name
36
+ # @return [String] signIn name
37
37
  attr_accessor :sign_in_name
38
38
 
39
- # @return [Array<String>] Gets or sets the list of service principal
40
- # names.
39
+ # @return [Array<String>] the list of service principal names.
41
40
  attr_accessor :service_principal_names
42
41
 
43
- # @return [String] Gets or sets the user type
42
+ # @return [String] the user type
44
43
  attr_accessor :user_type
45
44
 
46
45
 
@@ -12,19 +12,19 @@ module Azure::ARM::Graph
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets object Id
15
+ # @return [String] object Id
16
16
  attr_accessor :object_id
17
17
 
18
- # @return [String] Gets or sets object type
18
+ # @return [String] object type
19
19
  attr_accessor :object_type
20
20
 
21
- # @return [String] Gets or sets group display name
21
+ # @return [String] group display name
22
22
  attr_accessor :display_name
23
23
 
24
- # @return [Boolean] Gets or sets security enabled field
24
+ # @return [Boolean] security enabled field
25
25
  attr_accessor :security_enabled
26
26
 
27
- # @return [String] Gets or sets mail field
27
+ # @return [String] mail field
28
28
  attr_accessor :mail
29
29
 
30
30
 
@@ -12,29 +12,29 @@ module Azure::ARM::Graph
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets object Id
15
+ # @return [String] object Id
16
16
  attr_accessor :object_id
17
17
 
18
- # @return [String] Gets or sets object type
18
+ # @return [String] object type
19
19
  attr_accessor :object_type
20
20
 
21
- # @return [String] Gets or sets application Id
21
+ # @return [String] application Id
22
22
  attr_accessor :app_id
23
23
 
24
- # @return [Array<String>] Gets or sets application permissions
24
+ # @return [Array<String>] application permissions
25
25
  attr_accessor :app_permissions
26
26
 
27
27
  # @return [Boolean] Indicates if the application will be available to
28
28
  # other tenants
29
29
  attr_accessor :available_to_other_tenants
30
30
 
31
- # @return [String] Gets or sets the displayName
31
+ # @return [String] the displayName
32
32
  attr_accessor :display_name
33
33
 
34
- # @return [Array<String>] Gets or sets the application identifier Uris
34
+ # @return [Array<String>] the application identifier Uris
35
35
  attr_accessor :identifier_uris
36
36
 
37
- # @return [Array<String>] Gets or sets the application reply Urls
37
+ # @return [Array<String>] the application reply Urls
38
38
  attr_accessor :reply_urls
39
39
 
40
40
  # @return [String] Application homepage
@@ -28,12 +28,11 @@ module Azure::ARM::Graph
28
28
  # @return [Array<String>] Application reply Urls
29
29
  attr_accessor :reply_urls
30
30
 
31
- # @return [Array<KeyCredential>] Gets or sets the list of KeyCredential
32
- # objects
31
+ # @return [Array<KeyCredential>] the list of KeyCredential objects
33
32
  attr_accessor :key_credentials
34
33
 
35
- # @return [Array<PasswordCredential>] Gets or sets the list of
36
- # PasswordCredential objects
34
+ # @return [Array<PasswordCredential>] the list of PasswordCredential
35
+ # objects
37
36
  attr_accessor :password_credentials
38
37
 
39
38
 
@@ -64,7 +63,7 @@ module Azure::ARM::Graph
64
63
  }
65
64
  },
66
65
  homepage: {
67
- required: true,
66
+ required: false,
68
67
  serialized_name: 'homepage',
69
68
  type: {
70
69
  name: 'String'
@@ -12,6 +12,10 @@ module Azure::ARM::Graph
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ # @return [Boolean] Indicates if the application will be available to
16
+ # other tenants
17
+ attr_accessor :available_to_other_tenants
18
+
15
19
  # @return [String] Application display name
16
20
  attr_accessor :display_name
17
21
 
@@ -24,12 +28,11 @@ module Azure::ARM::Graph
24
28
  # @return [Array<String>] Application reply Urls
25
29
  attr_accessor :reply_urls
26
30
 
27
- # @return [Array<KeyCredential>] Gets or sets the list of KeyCredential
28
- # objects
31
+ # @return [Array<KeyCredential>] the list of KeyCredential objects
29
32
  attr_accessor :key_credentials
30
33
 
31
- # @return [Array<PasswordCredential>] Gets or sets the list of
32
- # PasswordCredential objects
34
+ # @return [Array<PasswordCredential>] the list of PasswordCredential
35
+ # objects
33
36
  attr_accessor :password_credentials
34
37
 
35
38
 
@@ -45,6 +48,13 @@ module Azure::ARM::Graph
45
48
  name: 'Composite',
46
49
  class_name: 'ApplicationUpdateParameters',
47
50
  model_properties: {
51
+ available_to_other_tenants: {
52
+ required: false,
53
+ serialized_name: 'availableToOtherTenants',
54
+ type: {
55
+ name: 'Boolean'
56
+ }
57
+ },
48
58
  display_name: {
49
59
  required: false,
50
60
  serialized_name: 'displayName',
@@ -15,7 +15,7 @@ module Azure::ARM::Graph
15
15
  # @return [Array<AADObject>] Collection of Active Directory object
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Gets or sets the URL to get the next set of results.
18
+ # @return [String] the URL to get the next set of results.
19
19
  attr_accessor :odatanext_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -0,0 +1,54 @@
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::Graph
7
+ module Models
8
+ #
9
+ # Active Directory error information
10
+ #
11
+ class GraphError
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Error code.
16
+ attr_accessor :code
17
+
18
+ # @return [String] Error message value.
19
+ attr_accessor :message
20
+
21
+
22
+ #
23
+ # Mapper for GraphError class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'GraphError',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'GraphError',
33
+ model_properties: {
34
+ code: {
35
+ required: false,
36
+ serialized_name: 'odata\\.error.code',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ message: {
42
+ required: false,
43
+ serialized_name: 'odata\\.error.message.value',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -12,10 +12,10 @@ module Azure::ARM::Graph
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<ADGroup>] Gets or sets the list of groups.
15
+ # @return [Array<ADGroup>] the list of groups.
16
16
  attr_accessor :value
17
17
 
18
- # @return [String] Gets or sets the URL to get the next set of results.
18
+ # @return [String] the URL to get the next set of results.
19
19
  attr_accessor :odatanext_link
20
20
 
21
21
  # return [Proc] with next page method call.
@@ -6,28 +6,29 @@
6
6
  module Azure::ARM::Graph
7
7
  module Models
8
8
  #
9
- # Active Directory service principal Key Credential information
9
+ # Active Directory Key Credential information
10
10
  #
11
11
  class KeyCredential
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [DateTime] Gets or sets start date
15
+ # @return [DateTime] start date
16
16
  attr_accessor :start_date
17
17
 
18
- # @return [DateTime] Gets or sets end date
18
+ # @return [DateTime] end date
19
19
  attr_accessor :end_date
20
20
 
21
- # @return [String] Gets or sets value
21
+ # @return [String] value
22
22
  attr_accessor :value
23
23
 
24
- # @return [String] Gets or sets key Id
24
+ # @return [String] key Id
25
25
  attr_accessor :key_id
26
26
 
27
- # @return [String] Gets or sets usage
27
+ # @return [String] usage. Acceptable values are 'Verify' and 'Sign'.
28
28
  attr_accessor :usage
29
29
 
30
- # @return [String] Gets or sets type
30
+ # @return [String] type. Acceptable values are 'AsymmetricX509Cert' and
31
+ # 'Symmetric'.
31
32
  attr_accessor :type
32
33
 
33
34
 
@@ -0,0 +1,52 @@
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::Graph
7
+ module Models
8
+ #
9
+ # KeyCredential list operation result.
10
+ #
11
+ class KeyCredentialListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<KeyCredential>] KeyCredential list.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for KeyCredentialListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'KeyCredentialListResult',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'KeyCredentialListResult',
30
+ model_properties: {
31
+ value: {
32
+ required: false,
33
+ serialized_name: 'value',
34
+ type: {
35
+ name: 'Sequence',
36
+ element: {
37
+ required: false,
38
+ serialized_name: 'KeyCredentialElementType',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'KeyCredential'
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ end
50
+ end
51
+ end
52
+ end