diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb index 9d472b07b8..e2c08a65c4 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb @@ -29,39 +29,42 @@ module Azure::ARM::Graph autoload :GraphRbacManagementClient, 'generated/azure_mgmt_graph/graph_rbac_management_client.rb' module Models - autoload :GroupGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb' - autoload :GraphError, 'generated/azure_mgmt_graph/models/graph_error.rb' autoload :GroupGetMemberGroupsResult, 'generated/azure_mgmt_graph/models/group_get_member_groups_result.rb' - autoload :PasswordCredential, 'generated/azure_mgmt_graph/models/password_credential.rb' + autoload :GraphError, 'generated/azure_mgmt_graph/models/graph_error.rb' autoload :CheckGroupMembershipParameters, 'generated/azure_mgmt_graph/models/check_group_membership_parameters.rb' - autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_graph/models/application_update_parameters.rb' + autoload :PasswordCredential, 'generated/azure_mgmt_graph/models/password_credential.rb' autoload :CheckGroupMembershipResult, 'generated/azure_mgmt_graph/models/check_group_membership_result.rb' - autoload :ApplicationListResult, 'generated/azure_mgmt_graph/models/application_list_result.rb' + autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_graph/models/application_update_parameters.rb' autoload :ServicePrincipalCreateParameters, 'generated/azure_mgmt_graph/models/service_principal_create_parameters.rb' - autoload :KeyCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb' + autoload :ApplicationListResult, 'generated/azure_mgmt_graph/models/application_list_result.rb' autoload :ServicePrincipal, 'generated/azure_mgmt_graph/models/service_principal.rb' - autoload :PasswordCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb' + autoload :KeyCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb' autoload :ServicePrincipalListResult, 'generated/azure_mgmt_graph/models/service_principal_list_result.rb' - autoload :GetObjectsResult, 'generated/azure_mgmt_graph/models/get_objects_result.rb' + autoload :PasswordCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb' autoload :PasswordProfile, 'generated/azure_mgmt_graph/models/password_profile.rb' + autoload :GetObjectsResult, 'generated/azure_mgmt_graph/models/get_objects_result.rb' + autoload :UserBase, 'generated/azure_mgmt_graph/models/user_base.rb' autoload :GroupCreateParameters, 'generated/azure_mgmt_graph/models/group_create_parameters.rb' - autoload :UserCreateParameters, 'generated/azure_mgmt_graph/models/user_create_parameters.rb' - autoload :GroupListResult, 'generated/azure_mgmt_graph/models/group_list_result.rb' - autoload :UserUpdateParameters, 'generated/azure_mgmt_graph/models/user_update_parameters.rb' + autoload :GroupAddMemberParameters, 'generated/azure_mgmt_graph/models/group_add_member_parameters.rb' + autoload :ADGroup, 'generated/azure_mgmt_graph/models/adgroup.rb' + autoload :GroupGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb' autoload :ApplicationCreateParameters, 'generated/azure_mgmt_graph/models/application_create_parameters.rb' - autoload :User, 'generated/azure_mgmt_graph/models/user.rb' + autoload :DomainListResult, 'generated/azure_mgmt_graph/models/domain_list_result.rb' autoload :KeyCredentialListResult, 'generated/azure_mgmt_graph/models/key_credential_list_result.rb' - autoload :UserGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb' + autoload :SignInName, 'generated/azure_mgmt_graph/models/sign_in_name.rb' autoload :AADObject, 'generated/azure_mgmt_graph/models/aadobject.rb' + autoload :Domain, 'generated/azure_mgmt_graph/models/domain.rb' + autoload :KeyCredential, 'generated/azure_mgmt_graph/models/key_credential.rb' + autoload :UserGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb' + autoload :PasswordCredentialListResult, 'generated/azure_mgmt_graph/models/password_credential_list_result.rb' autoload :UserGetMemberGroupsResult, 'generated/azure_mgmt_graph/models/user_get_member_groups_result.rb' - autoload :ADGroup, 'generated/azure_mgmt_graph/models/adgroup.rb' - autoload :UserListResult, 'generated/azure_mgmt_graph/models/user_list_result.rb' autoload :Application, 'generated/azure_mgmt_graph/models/application.rb' + autoload :UserListResult, 'generated/azure_mgmt_graph/models/user_list_result.rb' + autoload :GroupListResult, 'generated/azure_mgmt_graph/models/group_list_result.rb' autoload :GetObjectsParameters, 'generated/azure_mgmt_graph/models/get_objects_parameters.rb' - autoload :GroupAddMemberParameters, 'generated/azure_mgmt_graph/models/group_add_member_parameters.rb' - autoload :Domain, 'generated/azure_mgmt_graph/models/domain.rb' - autoload :PasswordCredentialListResult, 'generated/azure_mgmt_graph/models/password_credential_list_result.rb' - autoload :DomainListResult, 'generated/azure_mgmt_graph/models/domain_list_result.rb' - autoload :KeyCredential, 'generated/azure_mgmt_graph/models/key_credential.rb' + autoload :UserCreateParameters, 'generated/azure_mgmt_graph/models/user_create_parameters.rb' + autoload :UserUpdateParameters, 'generated/azure_mgmt_graph/models/user_update_parameters.rb' + autoload :User, 'generated/azure_mgmt_graph/models/user.rb' + autoload :UserType, 'generated/azure_mgmt_graph/models/user_type.rb' end end diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb index c6c68204ef..5cb9476c80 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb @@ -41,6 +41,9 @@ class Application # @return [String] The home page of the application. attr_accessor :homepage + # @return [Boolean] Whether to allow implicit grant flow for OAuth2 + attr_accessor :oauth2allow_implicit_flow + # # Mapper for Application class as Ruby Hash. @@ -137,6 +140,13 @@ def self.mapper() type: { name: 'String' } + }, + oauth2allow_implicit_flow: { + required: false, + serialized_name: 'oauth2AllowImplicitFlow', + type: { + name: 'Boolean' + } } } } diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb index bd58902373..37944f68f1 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb @@ -36,6 +36,9 @@ class ApplicationCreateParameters # objects. attr_accessor :password_credentials + # @return [Boolean] Whether to allow implicit grant flow for OAuth2 + attr_accessor :oauth2allow_implicit_flow + # # Mapper for ApplicationCreateParameters class as Ruby Hash. @@ -127,6 +130,13 @@ def self.mapper() } } } + }, + oauth2allow_implicit_flow: { + required: false, + serialized_name: 'oauth2AllowImplicitFlow', + type: { + name: 'Boolean' + } } } } diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb index df8ddd00b1..9b7720927f 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb @@ -35,6 +35,9 @@ class ApplicationUpdateParameters # objects. attr_accessor :password_credentials + # @return [Boolean] Whether to allow implicit grant flow for OAuth2 + attr_accessor :oauth2allow_implicit_flow + # # Mapper for ApplicationUpdateParameters class as Ruby Hash. @@ -126,6 +129,13 @@ def self.mapper() } } } + }, + oauth2allow_implicit_flow: { + required: false, + serialized_name: 'oauth2AllowImplicitFlow', + type: { + name: 'Boolean' + } } } } diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb new file mode 100644 index 0000000000..4e58fad225 --- /dev/null +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb @@ -0,0 +1,58 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Graph + module Models + # + # Contains information about a sign-in name of a local account user in an + # Azure Active Directory B2C tenant. + # + class SignInName + + include MsRestAzure + + include MsRest::JSONable + # @return [String] A string value that can be used to classify user + # sign-in types in your directory, such as 'emailAddress' or 'userName'. + attr_accessor :type + + # @return [String] The sign-in used by the local account. Must be unique + # across the company/tenant. For example, 'johnc@example.com'. + attr_accessor :value + + + # + # Mapper for SignInName class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'SignInName', + type: { + name: 'Composite', + class_name: 'SignInName', + model_properties: { + type: { + required: false, + serialized_name: 'type', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb index 0257271007..58d741aadf 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb @@ -8,37 +8,34 @@ module Models # # Active Directory user information. # - class User + class User < UserBase include MsRestAzure include MsRest::JSONable - # @return [String] The object ID. - attr_accessor :object_id + # @return [Boolean] Whether the account is enabled. + attr_accessor :account_enabled - # @return [String] The object type. - attr_accessor :object_type + # @return [String] The display name of the user. + attr_accessor :display_name # @return [String] The principal name of the user. attr_accessor :user_principal_name - # @return [String] The display name of the user. - attr_accessor :display_name - - # @return [String] The sign-in name of the user. - attr_accessor :sign_in_name + # @return [String] The mail alias for the user. + attr_accessor :mail_nickname # @return [String] The primary email address of the user. attr_accessor :mail - # @return [String] The mail alias for the user. - attr_accessor :mail_nickname + # @return [String] The object ID. + attr_accessor :object_id - # @return [String] A two letter country code (ISO standard 3166). - # Required for users that will be assigned licenses due to legal - # requirement to check for availability of services in countries. - # Examples include: "US", "JP", and "GB". - attr_accessor :usage_location + # @return [String] The object type. + attr_accessor :object_type + + # @return [Array] The sign-in names of the user. + attr_accessor :sign_in_names # @@ -53,27 +50,48 @@ def self.mapper() name: 'Composite', class_name: 'User', model_properties: { - object_id: { + immutable_id: { required: false, - serialized_name: 'objectId', + serialized_name: 'immutableId', type: { name: 'String' } }, - object_type: { + usage_location: { required: false, - serialized_name: 'objectType', + serialized_name: 'usageLocation', type: { name: 'String' } }, - user_principal_name: { + given_name: { required: false, - serialized_name: 'userPrincipalName', + serialized_name: 'givenName', + type: { + name: 'String' + } + }, + surname: { + required: false, + serialized_name: 'surname', type: { name: 'String' } }, + user_type: { + required: false, + serialized_name: 'userType', + type: { + name: 'String' + } + }, + account_enabled: { + required: false, + serialized_name: 'accountEnabled', + type: { + name: 'Boolean' + } + }, display_name: { required: false, serialized_name: 'displayName', @@ -81,9 +99,16 @@ def self.mapper() name: 'String' } }, - sign_in_name: { + user_principal_name: { + required: false, + serialized_name: 'userPrincipalName', + type: { + name: 'String' + } + }, + mail_nickname: { required: false, - serialized_name: 'signInName', + serialized_name: 'mailNickname', type: { name: 'String' } @@ -95,19 +120,34 @@ def self.mapper() name: 'String' } }, - mail_nickname: { + object_id: { required: false, - serialized_name: 'mailNickname', + serialized_name: 'objectId', type: { name: 'String' } }, - usage_location: { + object_type: { required: false, - serialized_name: 'usageLocation', + serialized_name: 'objectType', type: { name: 'String' } + }, + sign_in_names: { + required: false, + serialized_name: 'signInNames', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'SignInNameElementType', + type: { + name: 'Composite', + class_name: 'SignInName' + } + } + } } } } diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb new file mode 100644 index 0000000000..bb9502e16e --- /dev/null +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb @@ -0,0 +1,94 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Graph + module Models + # + # Model object. + # + # + class UserBase + + include MsRestAzure + + include MsRest::JSONable + # @return [String] This must be specified if you are using a federated + # domain for the user's userPrincipalName (UPN) property when creating a + # new user account. It is used to associate an on-premises Active + # Directory user account with their Azure AD user object. + attr_accessor :immutable_id + + # @return [String] A two letter country code (ISO standard 3166). + # Required for users that will be assigned licenses due to legal + # requirement to check for availability of services in countries. + # Examples include: "US", "JP", and "GB". + attr_accessor :usage_location + + # @return [String] The given name for the user. + attr_accessor :given_name + + # @return [String] The user's surname (family name or last name). + attr_accessor :surname + + # @return [UserType] A string value that can be used to classify user + # types in your directory, such as 'Member' and 'Guest'. Possible values + # include: 'Member', 'Guest' + attr_accessor :user_type + + + # + # Mapper for UserBase class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'UserBase', + type: { + name: 'Composite', + class_name: 'UserBase', + model_properties: { + immutable_id: { + required: false, + serialized_name: 'immutableId', + type: { + name: 'String' + } + }, + usage_location: { + required: false, + serialized_name: 'usageLocation', + type: { + name: 'String' + } + }, + given_name: { + required: false, + serialized_name: 'givenName', + type: { + name: 'String' + } + }, + surname: { + required: false, + serialized_name: 'surname', + type: { + name: 'String' + } + }, + user_type: { + required: false, + serialized_name: 'userType', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb index 76aec390b3..be7b6400fc 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb @@ -8,7 +8,7 @@ module Models # # Request parameters for creating a new work or school account user. # - class UserCreateParameters + class UserCreateParameters < UserBase include MsRestAzure @@ -29,17 +29,8 @@ class UserCreateParameters # @return [String] The mail alias for the user. attr_accessor :mail_nickname - # @return [String] This must be specified if you are using a federated - # domain for the user's userPrincipalName (UPN) property when creating a - # new user account. It is used to associate an on-premises Active - # Directory user account with their Azure AD user object. - attr_accessor :immutable_id - - # @return [String] A two letter country code (ISO standard 3166). - # Required for users that will be assigned licenses due to legal - # requirement to check for availability of services in countries. - # Examples include: "US", "JP", and "GB". - attr_accessor :usage_location + # @return [String] The primary email address of the user. + attr_accessor :mail # @@ -54,6 +45,41 @@ def self.mapper() name: 'Composite', class_name: 'UserCreateParameters', model_properties: { + immutable_id: { + required: false, + serialized_name: 'immutableId', + type: { + name: 'String' + } + }, + usage_location: { + required: false, + serialized_name: 'usageLocation', + type: { + name: 'String' + } + }, + given_name: { + required: false, + serialized_name: 'givenName', + type: { + name: 'String' + } + }, + surname: { + required: false, + serialized_name: 'surname', + type: { + name: 'String' + } + }, + user_type: { + required: false, + serialized_name: 'userType', + type: { + name: 'String' + } + }, account_enabled: { required: true, serialized_name: 'accountEnabled', @@ -90,16 +116,9 @@ def self.mapper() name: 'String' } }, - immutable_id: { + mail: { required: false, - serialized_name: 'immutableId', - type: { - name: 'String' - } - }, - usage_location: { - required: false, - serialized_name: 'usageLocation', + serialized_name: 'mail', type: { name: 'String' } diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb new file mode 100644 index 0000000000..9da304311e --- /dev/null +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Graph + module Models + # + # Defines values for UserType + # + module UserType + Member = "Member" + Guest = "Guest" + end + end +end diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb index 67ee87a4fc..fc42783b0e 100644 --- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb +++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb @@ -8,7 +8,7 @@ module Models # # Request parameters for updating an existing work or school account user. # - class UserUpdateParameters + class UserUpdateParameters < UserBase include MsRestAzure @@ -22,15 +22,13 @@ class UserUpdateParameters # @return [PasswordProfile] The password profile of the user. attr_accessor :password_profile + # @return [String] The user principal name (someuser@contoso.com). It + # must contain one of the verified domains for the tenant. + attr_accessor :user_principal_name + # @return [String] The mail alias for the user. attr_accessor :mail_nickname - # @return [String] A two letter country code (ISO standard 3166). - # Required for users that will be assigned licenses due to legal - # requirement to check for availability of services in countries. - # Examples include: "US", "JP", and "GB". - attr_accessor :usage_location - # # Mapper for UserUpdateParameters class as Ruby Hash. @@ -44,6 +42,41 @@ def self.mapper() name: 'Composite', class_name: 'UserUpdateParameters', model_properties: { + immutable_id: { + required: false, + serialized_name: 'immutableId', + type: { + name: 'String' + } + }, + usage_location: { + required: false, + serialized_name: 'usageLocation', + type: { + name: 'String' + } + }, + given_name: { + required: false, + serialized_name: 'givenName', + type: { + name: 'String' + } + }, + surname: { + required: false, + serialized_name: 'surname', + type: { + name: 'String' + } + }, + user_type: { + required: false, + serialized_name: 'userType', + type: { + name: 'String' + } + }, account_enabled: { required: false, serialized_name: 'accountEnabled', @@ -66,16 +99,16 @@ def self.mapper() class_name: 'PasswordProfile' } }, - mail_nickname: { + user_principal_name: { required: false, - serialized_name: 'mailNickname', + serialized_name: 'userPrincipalName', type: { name: 'String' } }, - usage_location: { + mail_nickname: { required: false, - serialized_name: 'usageLocation', + serialized_name: 'mailNickname', type: { name: 'String' }