Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
* Type representing ClassicAdministrator.
*/
public interface ClassicAdministrator extends HasInner<ClassicAdministratorInner>, HasManager<AuthorizationManager> {
/**
* @return the emailAddress value.
*/
String emailAddress();

/**
* @return the id value.
*/
Expand All @@ -28,9 +33,9 @@ public interface ClassicAdministrator extends HasInner<ClassicAdministratorInner
String name();

/**
* @return the properties value.
* @return the role value.
*/
ClassicAdministratorProperties properties();
String role();

/**
* @return the type value.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.authorization.v2015_07_01;

import rx.Completable;
import com.microsoft.azure.management.authorization.v2015_07_01.implementation.GlobalAdministratorsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing GlobalAdministrators.
*/
public interface GlobalAdministrators extends HasInner<GlobalAdministratorsInner> {
/**
* Elevates access for a Global Administrator.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable elevateAccessAsync();

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
* Type representing RoleDefinition.
*/
public interface RoleDefinition extends HasInner<RoleDefinitionInner>, Indexable, Updatable<RoleDefinition.Update>, Refreshable<RoleDefinition>, HasManager<AuthorizationManager> {
/**
* @return the assignableScopes value.
*/
List<String> assignableScopes();

/**
* @return the description value.
*/
String description();

/**
* @return the id value.
*/
Expand All @@ -35,9 +45,19 @@ public interface RoleDefinition extends HasInner<RoleDefinitionInner>, Indexable
String name();

/**
* @return the properties value.
* @return the permissions value.
*/
List<Permission> permissions();

/**
* @return the roleName value.
*/
RoleDefinitionProperties properties();
String roleName();

/**
* @return the roleType value.
*/
String roleType();

/**
* @return the type value.
Expand All @@ -47,7 +67,7 @@ public interface RoleDefinition extends HasInner<RoleDefinitionInner>, Indexable
/**
* The entirety of the RoleDefinition definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithScope, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithScope, DefinitionStages.WithCreate {
}

/**
Expand All @@ -69,49 +89,145 @@ interface WithScope {
* @param scope The scope of the role definition
* @return the next definition stage
*/
WithProperties withScope(String scope);
WithCreate withScope(String scope);
}

/**
* The stage of the roledefinition definition allowing to specify Properties.
* The stage of the roledefinition definition allowing to specify AssignableScopes.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Role definition properties
* @return the next definition stage
*/
WithCreate withProperties(RoleDefinitionProperties properties);
interface WithAssignableScopes {
/**
* Specifies assignableScopes.
* @param assignableScopes Role definition assignable scopes
* @return the next definition stage
*/
WithCreate withAssignableScopes(List<String> assignableScopes);
}

/**
* The stage of the roledefinition definition allowing to specify Description.
*/
interface WithDescription {
/**
* Specifies description.
* @param description The role definition description
* @return the next definition stage
*/
WithCreate withDescription(String description);
}

/**
* The stage of the roledefinition definition allowing to specify Permissions.
*/
interface WithPermissions {
/**
* Specifies permissions.
* @param permissions Role definition permissions
* @return the next definition stage
*/
WithCreate withPermissions(List<PermissionInner> permissions);
}

/**
* The stage of the roledefinition definition allowing to specify RoleName.
*/
interface WithRoleName {
/**
* Specifies roleName.
* @param roleName The role name
* @return the next definition stage
*/
WithCreate withRoleName(String roleName);
}

/**
* The stage of the roledefinition definition allowing to specify RoleType.
*/
interface WithRoleType {
/**
* Specifies roleType.
* @param roleType The role type
* @return the next definition stage
*/
WithCreate withRoleType(String roleType);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<RoleDefinition> {
interface WithCreate extends Creatable<RoleDefinition>, DefinitionStages.WithAssignableScopes, DefinitionStages.WithDescription, DefinitionStages.WithPermissions, DefinitionStages.WithRoleName, DefinitionStages.WithRoleType {
}
}
/**
* The template for a RoleDefinition update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<RoleDefinition>, UpdateStages.WithProperties {
interface Update extends Appliable<RoleDefinition>, UpdateStages.WithAssignableScopes, UpdateStages.WithDescription, UpdateStages.WithPermissions, UpdateStages.WithRoleName, UpdateStages.WithRoleType {
}

/**
* Grouping of RoleDefinition update stages.
*/
interface UpdateStages {
/**
* The stage of the roledefinition update allowing to specify Properties.
* The stage of the roledefinition update allowing to specify AssignableScopes.
*/
interface WithAssignableScopes {
/**
* Specifies assignableScopes.
* @param assignableScopes Role definition assignable scopes
* @return the next update stage
*/
Update withAssignableScopes(List<String> assignableScopes);
}

/**
* The stage of the roledefinition update allowing to specify Description.
*/
interface WithDescription {
/**
* Specifies description.
* @param description The role definition description
* @return the next update stage
*/
Update withDescription(String description);
}

/**
* The stage of the roledefinition update allowing to specify Permissions.
*/
interface WithPermissions {
/**
* Specifies permissions.
* @param permissions Role definition permissions
* @return the next update stage
*/
Update withPermissions(List<PermissionInner> permissions);
}

/**
* The stage of the roledefinition update allowing to specify RoleName.
*/
interface WithRoleName {
/**
* Specifies roleName.
* @param roleName The role name
* @return the next update stage
*/
Update withRoleName(String roleName);
}

/**
* The stage of the roledefinition update allowing to specify RoleType.
*/
interface WithProperties {
interface WithRoleType {
/**
* Specifies properties.
* @param properties Role definition properties
* Specifies roleType.
* @param roleType The role type
* @return the next update stage
*/
Update withProperties(RoleDefinitionProperties properties);
Update withRoleType(String roleType);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,55 +146,55 @@ public PermissionsInner permissions() {
}

/**
* The ProviderOperationsMetadatasInner object to access its operations.
* The RoleDefinitionsInner object to access its operations.
*/
private ProviderOperationsMetadatasInner providerOperationsMetadatas;
private RoleDefinitionsInner roleDefinitions;

/**
* Gets the ProviderOperationsMetadatasInner object to access its operations.
* @return the ProviderOperationsMetadatasInner object.
* Gets the RoleDefinitionsInner object to access its operations.
* @return the RoleDefinitionsInner object.
*/
public ProviderOperationsMetadatasInner providerOperationsMetadatas() {
return this.providerOperationsMetadatas;
public RoleDefinitionsInner roleDefinitions() {
return this.roleDefinitions;
}

/**
* The RoleAssignmentsInner object to access its operations.
* The ProviderOperationsMetadatasInner object to access its operations.
*/
private RoleAssignmentsInner roleAssignments;
private ProviderOperationsMetadatasInner providerOperationsMetadatas;

/**
* Gets the RoleAssignmentsInner object to access its operations.
* @return the RoleAssignmentsInner object.
* Gets the ProviderOperationsMetadatasInner object to access its operations.
* @return the ProviderOperationsMetadatasInner object.
*/
public RoleAssignmentsInner roleAssignments() {
return this.roleAssignments;
public ProviderOperationsMetadatasInner providerOperationsMetadatas() {
return this.providerOperationsMetadatas;
}

/**
* The RoleDefinitionsInner object to access its operations.
* The GlobalAdministratorsInner object to access its operations.
*/
private RoleDefinitionsInner roleDefinitions;
private GlobalAdministratorsInner globalAdministrators;

/**
* Gets the RoleDefinitionsInner object to access its operations.
* @return the RoleDefinitionsInner object.
* Gets the GlobalAdministratorsInner object to access its operations.
* @return the GlobalAdministratorsInner object.
*/
public RoleDefinitionsInner roleDefinitions() {
return this.roleDefinitions;
public GlobalAdministratorsInner globalAdministrators() {
return this.globalAdministrators;
}

/**
* The ElevateAccessInner object to access its operations.
* The RoleAssignmentsInner object to access its operations.
*/
private ElevateAccessInner elevateAccess;
private RoleAssignmentsInner roleAssignments;

/**
* Gets the ElevateAccessInner object to access its operations.
* @return the ElevateAccessInner object.
* Gets the RoleAssignmentsInner object to access its operations.
* @return the RoleAssignmentsInner object.
*/
public ElevateAccessInner elevateAccess() {
return this.elevateAccess;
public RoleAssignmentsInner roleAssignments() {
return this.roleAssignments;
}

/**
Expand Down Expand Up @@ -246,10 +246,10 @@ protected void initialize() {
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
this.permissions = new PermissionsInner(restClient().retrofit(), this);
this.roleDefinitions = new RoleDefinitionsInner(restClient().retrofit(), this);
this.providerOperationsMetadatas = new ProviderOperationsMetadatasInner(restClient().retrofit(), this);
this.globalAdministrators = new GlobalAdministratorsInner(restClient().retrofit(), this);
this.roleAssignments = new RoleAssignmentsInner(restClient().retrofit(), this);
this.roleDefinitions = new RoleDefinitionsInner(restClient().retrofit(), this);
this.elevateAccess = new ElevateAccessInner(restClient().retrofit(), this);
this.classicAdministrators = new ClassicAdministratorsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
Expand Down
Loading