Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] authorization/resource-manager #2628

Closed
Closed
Changes from 1 commit
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
Next Next commit
Generated from 11f1a80d6726c7f9a7172dcc47ff1829d634740a (#2627)
refactoring Go out of readme
  • Loading branch information
AutorestCI authored Nov 20, 2018
commit 9f038d7f6814a7240179531a9afca5076aa0530a
Original file line number Diff line number Diff line change
@@ -41,6 +41,11 @@ public interface RoleAssignment extends HasInner<RoleAssignmentInner>, Indexable
*/
String principalId();

/**
* @return the principalType value.
*/
PrincipalType principalType();

/**
* @return the roleDefinitionId value.
*/
Original file line number Diff line number Diff line change
@@ -110,6 +110,11 @@ public String principalId() {
return this.inner().principalId();
}

@Override
public PrincipalType principalType() {
return this.inner().principalType();
}

@Override
public String roleDefinitionId() {
return this.inner().roleDefinitionId();
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@

package com.microsoft.azure.management.authorization.v2018_09_01_preview.implementation;

import com.microsoft.azure.management.authorization.v2018_09_01_preview.PrincipalType;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

@@ -52,6 +53,15 @@ public class RoleAssignmentInner {
@JsonProperty(value = "properties.principalId")
private String principalId;

/**
* The principal type of the assigned principal ID. Possible values
* include: 'User', 'Group', 'ServicePrincipal', 'Unknown',
* 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI',
* 'DirectoryObjectOrGroup', 'Everyone'.
*/
@JsonProperty(value = "properties.principalType")
private PrincipalType principalType;

/**
* The Delegation flag for the roleassignment.
*/
@@ -145,6 +155,26 @@ public RoleAssignmentInner withPrincipalId(String principalId) {
return this;
}

/**
* Get the principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'.
*
* @return the principalType value
*/
public PrincipalType principalType() {
return this.principalType;
}

/**
* Set the principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'.
*
* @param principalType the principalType value to set
* @return the RoleAssignmentInner object itself.
*/
public RoleAssignmentInner withPrincipalType(PrincipalType principalType) {
this.principalType = principalType;
return this;
}

/**
* Get the Delegation flag for the roleassignment.
*