Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Automatic PR from RestAPI-PR1716 #992

Merged
merged 1 commit into from
Sep 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 23 additions & 20 deletions management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -137,6 +140,13 @@ def self.mapper()
type: {
name: 'String'
}
},
oauth2allow_implicit_flow: {
required: false,
serialized_name: 'oauth2AllowImplicitFlow',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -127,6 +130,13 @@ def self.mapper()
}
}
}
},
oauth2allow_implicit_flow: {
required: false,
serialized_name: 'oauth2AllowImplicitFlow',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -126,6 +129,13 @@ def self.mapper()
}
}
}
},
oauth2allow_implicit_flow: {
required: false,
serialized_name: 'oauth2AllowImplicitFlow',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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<SignInName>] The sign-in names of the user.
attr_accessor :sign_in_names


#
Expand All @@ -53,37 +50,65 @@ 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',
type: {
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'
}
Expand All @@ -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'
}
}
}
}
}
}
Expand Down
Loading