azure_mgmt_graph 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/1.6/generated/azure_mgmt_graph/graph_rbac_management_client.rb +1 -3
  3. data/lib/1.6/generated/azure_mgmt_graph/models/aadobject.rb +23 -0
  4. data/lib/1.6/generated/azure_mgmt_graph/models/adgroup.rb +6 -0
  5. data/lib/1.6/generated/azure_mgmt_graph/models/application.rb +14 -0
  6. data/lib/1.6/generated/azure_mgmt_graph/models/application_create_parameters.rb +15 -0
  7. data/lib/1.6/generated/azure_mgmt_graph/models/application_list_result.rb +4 -0
  8. data/lib/1.6/generated/azure_mgmt_graph/models/application_update_parameters.rb +15 -0
  9. data/lib/1.6/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb +3 -0
  10. data/lib/1.6/generated/azure_mgmt_graph/models/check_group_membership_result.rb +2 -0
  11. data/lib/1.6/generated/azure_mgmt_graph/models/domain.rb +5 -0
  12. data/lib/1.6/generated/azure_mgmt_graph/models/domain_list_result.rb +3 -0
  13. data/lib/1.6/generated/azure_mgmt_graph/models/get_objects_parameters.rb +6 -0
  14. data/lib/1.6/generated/azure_mgmt_graph/models/get_objects_result.rb +4 -0
  15. data/lib/1.6/generated/azure_mgmt_graph/models/graph_error.rb +3 -0
  16. data/lib/1.6/generated/azure_mgmt_graph/models/group_add_member_parameters.rb +2 -0
  17. data/lib/1.6/generated/azure_mgmt_graph/models/group_create_parameters.rb +5 -0
  18. data/lib/1.6/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb +2 -0
  19. data/lib/1.6/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb +3 -0
  20. data/lib/1.6/generated/azure_mgmt_graph/models/group_list_result.rb +4 -0
  21. data/lib/1.6/generated/azure_mgmt_graph/models/key_credential.rb +7 -0
  22. data/lib/1.6/generated/azure_mgmt_graph/models/key_credential_list_result.rb +3 -0
  23. data/lib/1.6/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb +3 -0
  24. data/lib/1.6/generated/azure_mgmt_graph/models/password_credential.rb +5 -0
  25. data/lib/1.6/generated/azure_mgmt_graph/models/password_credential_list_result.rb +3 -0
  26. data/lib/1.6/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb +3 -0
  27. data/lib/1.6/generated/azure_mgmt_graph/models/password_profile.rb +3 -0
  28. data/lib/1.6/generated/azure_mgmt_graph/models/required_resource_access.rb +4 -0
  29. data/lib/1.6/generated/azure_mgmt_graph/models/resource_access.rb +3 -0
  30. data/lib/1.6/generated/azure_mgmt_graph/models/service_principal.rb +7 -0
  31. data/lib/1.6/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb +7 -0
  32. data/lib/1.6/generated/azure_mgmt_graph/models/service_principal_list_result.rb +4 -0
  33. data/lib/1.6/generated/azure_mgmt_graph/models/sign_in_name.rb +3 -0
  34. data/lib/1.6/generated/azure_mgmt_graph/models/user.rb +15 -0
  35. data/lib/1.6/generated/azure_mgmt_graph/models/user_base.rb +6 -0
  36. data/lib/1.6/generated/azure_mgmt_graph/models/user_create_parameters.rb +12 -0
  37. data/lib/1.6/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb +2 -0
  38. data/lib/1.6/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb +3 -0
  39. data/lib/1.6/generated/azure_mgmt_graph/models/user_list_result.rb +4 -0
  40. data/lib/1.6/generated/azure_mgmt_graph/models/user_update_parameters.rb +11 -0
  41. data/lib/profiles/latest/graph_latest_profile_client.rb +1 -3
  42. data/lib/version.rb +1 -1
  43. metadata +10 -8
  44. data/lib/1.6/generated/azure_mgmt_graph/version.rb +0 -8
  45. data/lib/profiles/common/configurable.rb +0 -86
  46. data/lib/profiles/common/default.rb +0 -57
@@ -43,6 +43,7 @@ module Azure::Graph::Mgmt::V1_6
43
43
  #
44
44
  def self.mapper()
45
45
  {
46
+ client_side_validation: true,
46
47
  required: false,
47
48
  serialized_name: 'UserBase',
48
49
  type: {
@@ -50,6 +51,7 @@ module Azure::Graph::Mgmt::V1_6
50
51
  class_name: 'UserBase',
51
52
  model_properties: {
52
53
  immutable_id: {
54
+ client_side_validation: true,
53
55
  required: false,
54
56
  serialized_name: 'immutableId',
55
57
  type: {
@@ -57,6 +59,7 @@ module Azure::Graph::Mgmt::V1_6
57
59
  }
58
60
  },
59
61
  usage_location: {
62
+ client_side_validation: true,
60
63
  required: false,
61
64
  serialized_name: 'usageLocation',
62
65
  type: {
@@ -64,6 +67,7 @@ module Azure::Graph::Mgmt::V1_6
64
67
  }
65
68
  },
66
69
  given_name: {
70
+ client_side_validation: true,
67
71
  required: false,
68
72
  serialized_name: 'givenName',
69
73
  type: {
@@ -71,6 +75,7 @@ module Azure::Graph::Mgmt::V1_6
71
75
  }
72
76
  },
73
77
  surname: {
78
+ client_side_validation: true,
74
79
  required: false,
75
80
  serialized_name: 'surname',
76
81
  type: {
@@ -78,6 +83,7 @@ module Azure::Graph::Mgmt::V1_6
78
83
  }
79
84
  },
80
85
  user_type: {
86
+ client_side_validation: true,
81
87
  required: false,
82
88
  serialized_name: 'userType',
83
89
  type: {
@@ -38,6 +38,7 @@ module Azure::Graph::Mgmt::V1_6
38
38
  #
39
39
  def self.mapper()
40
40
  {
41
+ client_side_validation: true,
41
42
  required: false,
42
43
  serialized_name: 'UserCreateParameters',
43
44
  type: {
@@ -45,6 +46,7 @@ module Azure::Graph::Mgmt::V1_6
45
46
  class_name: 'UserCreateParameters',
46
47
  model_properties: {
47
48
  immutable_id: {
49
+ client_side_validation: true,
48
50
  required: false,
49
51
  serialized_name: 'immutableId',
50
52
  type: {
@@ -52,6 +54,7 @@ module Azure::Graph::Mgmt::V1_6
52
54
  }
53
55
  },
54
56
  usage_location: {
57
+ client_side_validation: true,
55
58
  required: false,
56
59
  serialized_name: 'usageLocation',
57
60
  type: {
@@ -59,6 +62,7 @@ module Azure::Graph::Mgmt::V1_6
59
62
  }
60
63
  },
61
64
  given_name: {
65
+ client_side_validation: true,
62
66
  required: false,
63
67
  serialized_name: 'givenName',
64
68
  type: {
@@ -66,6 +70,7 @@ module Azure::Graph::Mgmt::V1_6
66
70
  }
67
71
  },
68
72
  surname: {
73
+ client_side_validation: true,
69
74
  required: false,
70
75
  serialized_name: 'surname',
71
76
  type: {
@@ -73,6 +78,7 @@ module Azure::Graph::Mgmt::V1_6
73
78
  }
74
79
  },
75
80
  user_type: {
81
+ client_side_validation: true,
76
82
  required: false,
77
83
  serialized_name: 'userType',
78
84
  type: {
@@ -80,6 +86,7 @@ module Azure::Graph::Mgmt::V1_6
80
86
  }
81
87
  },
82
88
  account_enabled: {
89
+ client_side_validation: true,
83
90
  required: true,
84
91
  serialized_name: 'accountEnabled',
85
92
  type: {
@@ -87,6 +94,7 @@ module Azure::Graph::Mgmt::V1_6
87
94
  }
88
95
  },
89
96
  display_name: {
97
+ client_side_validation: true,
90
98
  required: true,
91
99
  serialized_name: 'displayName',
92
100
  type: {
@@ -94,6 +102,7 @@ module Azure::Graph::Mgmt::V1_6
94
102
  }
95
103
  },
96
104
  password_profile: {
105
+ client_side_validation: true,
97
106
  required: true,
98
107
  serialized_name: 'passwordProfile',
99
108
  type: {
@@ -102,6 +111,7 @@ module Azure::Graph::Mgmt::V1_6
102
111
  }
103
112
  },
104
113
  user_principal_name: {
114
+ client_side_validation: true,
105
115
  required: true,
106
116
  serialized_name: 'userPrincipalName',
107
117
  type: {
@@ -109,6 +119,7 @@ module Azure::Graph::Mgmt::V1_6
109
119
  }
110
120
  },
111
121
  mail_nickname: {
122
+ client_side_validation: true,
112
123
  required: true,
113
124
  serialized_name: 'mailNickname',
114
125
  type: {
@@ -116,6 +127,7 @@ module Azure::Graph::Mgmt::V1_6
116
127
  }
117
128
  },
118
129
  mail: {
130
+ client_side_validation: true,
119
131
  required: false,
120
132
  serialized_name: 'mail',
121
133
  type: {
@@ -24,6 +24,7 @@ module Azure::Graph::Mgmt::V1_6
24
24
  #
25
25
  def self.mapper()
26
26
  {
27
+ client_side_validation: true,
27
28
  required: false,
28
29
  serialized_name: 'UserGetMemberGroupsParameters',
29
30
  type: {
@@ -31,6 +32,7 @@ module Azure::Graph::Mgmt::V1_6
31
32
  class_name: 'UserGetMemberGroupsParameters',
32
33
  model_properties: {
33
34
  security_enabled_only: {
35
+ client_side_validation: true,
34
36
  required: true,
35
37
  serialized_name: 'securityEnabledOnly',
36
38
  type: {
@@ -23,6 +23,7 @@ module Azure::Graph::Mgmt::V1_6
23
23
  #
24
24
  def self.mapper()
25
25
  {
26
+ client_side_validation: true,
26
27
  required: false,
27
28
  serialized_name: 'UserGetMemberGroupsResult',
28
29
  type: {
@@ -30,11 +31,13 @@ module Azure::Graph::Mgmt::V1_6
30
31
  class_name: 'UserGetMemberGroupsResult',
31
32
  model_properties: {
32
33
  value: {
34
+ client_side_validation: true,
33
35
  required: false,
34
36
  serialized_name: 'value',
35
37
  type: {
36
38
  name: 'Sequence',
37
39
  element: {
40
+ client_side_validation: true,
38
41
  required: false,
39
42
  serialized_name: 'StringElementType',
40
43
  type: {
@@ -57,6 +57,7 @@ module Azure::Graph::Mgmt::V1_6
57
57
  #
58
58
  def self.mapper()
59
59
  {
60
+ client_side_validation: true,
60
61
  required: false,
61
62
  serialized_name: 'UserListResult',
62
63
  type: {
@@ -64,11 +65,13 @@ module Azure::Graph::Mgmt::V1_6
64
65
  class_name: 'UserListResult',
65
66
  model_properties: {
66
67
  value: {
68
+ client_side_validation: true,
67
69
  required: false,
68
70
  serialized_name: 'value',
69
71
  type: {
70
72
  name: 'Sequence',
71
73
  element: {
74
+ client_side_validation: true,
72
75
  required: false,
73
76
  serialized_name: 'UserElementType',
74
77
  type: {
@@ -79,6 +82,7 @@ module Azure::Graph::Mgmt::V1_6
79
82
  }
80
83
  },
81
84
  odatanext_link: {
85
+ client_side_validation: true,
82
86
  required: false,
83
87
  serialized_name: 'odata\\.nextLink',
84
88
  type: {
@@ -35,6 +35,7 @@ module Azure::Graph::Mgmt::V1_6
35
35
  #
36
36
  def self.mapper()
37
37
  {
38
+ client_side_validation: true,
38
39
  required: false,
39
40
  serialized_name: 'UserUpdateParameters',
40
41
  type: {
@@ -42,6 +43,7 @@ module Azure::Graph::Mgmt::V1_6
42
43
  class_name: 'UserUpdateParameters',
43
44
  model_properties: {
44
45
  immutable_id: {
46
+ client_side_validation: true,
45
47
  required: false,
46
48
  serialized_name: 'immutableId',
47
49
  type: {
@@ -49,6 +51,7 @@ module Azure::Graph::Mgmt::V1_6
49
51
  }
50
52
  },
51
53
  usage_location: {
54
+ client_side_validation: true,
52
55
  required: false,
53
56
  serialized_name: 'usageLocation',
54
57
  type: {
@@ -56,6 +59,7 @@ module Azure::Graph::Mgmt::V1_6
56
59
  }
57
60
  },
58
61
  given_name: {
62
+ client_side_validation: true,
59
63
  required: false,
60
64
  serialized_name: 'givenName',
61
65
  type: {
@@ -63,6 +67,7 @@ module Azure::Graph::Mgmt::V1_6
63
67
  }
64
68
  },
65
69
  surname: {
70
+ client_side_validation: true,
66
71
  required: false,
67
72
  serialized_name: 'surname',
68
73
  type: {
@@ -70,6 +75,7 @@ module Azure::Graph::Mgmt::V1_6
70
75
  }
71
76
  },
72
77
  user_type: {
78
+ client_side_validation: true,
73
79
  required: false,
74
80
  serialized_name: 'userType',
75
81
  type: {
@@ -77,6 +83,7 @@ module Azure::Graph::Mgmt::V1_6
77
83
  }
78
84
  },
79
85
  account_enabled: {
86
+ client_side_validation: true,
80
87
  required: false,
81
88
  serialized_name: 'accountEnabled',
82
89
  type: {
@@ -84,6 +91,7 @@ module Azure::Graph::Mgmt::V1_6
84
91
  }
85
92
  },
86
93
  display_name: {
94
+ client_side_validation: true,
87
95
  required: false,
88
96
  serialized_name: 'displayName',
89
97
  type: {
@@ -91,6 +99,7 @@ module Azure::Graph::Mgmt::V1_6
91
99
  }
92
100
  },
93
101
  password_profile: {
102
+ client_side_validation: true,
94
103
  required: false,
95
104
  serialized_name: 'passwordProfile',
96
105
  type: {
@@ -99,6 +108,7 @@ module Azure::Graph::Mgmt::V1_6
99
108
  }
100
109
  },
101
110
  user_principal_name: {
111
+ client_side_validation: true,
102
112
  required: false,
103
113
  serialized_name: 'userPrincipalName',
104
114
  type: {
@@ -106,6 +116,7 @@ module Azure::Graph::Mgmt::V1_6
106
116
  }
107
117
  },
108
118
  mail_nickname: {
119
+ client_side_validation: true,
109
120
  required: false,
110
121
  serialized_name: 'mailNickname',
111
122
  type: {
@@ -4,15 +4,13 @@
4
4
 
5
5
  require 'profiles/latest/graph_module_definition'
6
6
  require 'profiles/latest/modules/graph_profile_module'
7
- require 'profiles/common/configurable'
8
- require 'profiles/common/default'
9
7
 
10
8
  module Azure::Graph::Profiles::Latest::Mgmt
11
9
  #
12
10
  # Client class for the Latest profile SDK.
13
11
  #
14
12
  class Client < GraphClass
15
- include Azure::Common::Configurable
13
+ include MsRestAzure::Common::Configurable
16
14
 
17
15
 
18
16
  def initialize(options = {})
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Graph::Mgmt
6
- VERSION = '0.15.1'
6
+ VERSION = '0.15.2'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.9.0
75
+ version: 0.10.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.9.0
82
+ version: 0.10.0
83
83
  description: Microsoft Azure Active Directory Graph Management Client Library for
84
84
  Ruby
85
85
  email: azrubyteam@microsoft.com
@@ -136,11 +136,8 @@ files:
136
136
  - lib/1.6/generated/azure_mgmt_graph/objects.rb
137
137
  - lib/1.6/generated/azure_mgmt_graph/service_principals.rb
138
138
  - lib/1.6/generated/azure_mgmt_graph/users.rb
139
- - lib/1.6/generated/azure_mgmt_graph/version.rb
140
139
  - lib/azure_mgmt_graph.rb
141
140
  - lib/module_definition.rb
142
- - lib/profiles/common/configurable.rb
143
- - lib/profiles/common/default.rb
144
141
  - lib/profiles/latest/graph_latest_profile_client.rb
145
142
  - lib/profiles/latest/graph_module_definition.rb
146
143
  - lib/profiles/latest/modules/graph_profile_module.rb
@@ -148,7 +145,12 @@ files:
148
145
  homepage: https://aka.ms/azure-sdk-for-ruby
149
146
  licenses:
150
147
  - MIT
151
- metadata: {}
148
+ metadata:
149
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
150
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
151
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
152
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
153
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_graph
152
154
  post_install_message:
153
155
  rdoc_options: []
154
156
  require_paths:
@@ -1,8 +0,0 @@
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::Graph::Mgmt::V1_6
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
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::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end