-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1008 from jianghaolu/graphkeyvault
[Ready for review] Graph & Key Vault MGMT
- Loading branch information
Showing
97 changed files
with
6,885 additions
and
2,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
...aph-rbac/src/main/java/com/microsoft/azure/management/graphrbac/ActiveDirectoryGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
|
||
package com.microsoft.azure.management.graphrbac; | ||
|
||
import com.microsoft.azure.management.graphrbac.implementation.ADGroupInner; | ||
import com.microsoft.azure.management.resources.fluentcore.model.Creatable; | ||
import com.microsoft.azure.management.resources.fluentcore.model.Wrapper; | ||
|
||
/** | ||
* An immutable client-side representation of an Azure AD group. | ||
*/ | ||
public interface ActiveDirectoryGroup extends | ||
Wrapper<ADGroupInner> { | ||
/** | ||
* @return object Id. | ||
*/ | ||
String objectId(); | ||
|
||
/** | ||
* @return object type. | ||
*/ | ||
String objectType(); | ||
|
||
/** | ||
* @return group display name. | ||
*/ | ||
String displayName(); | ||
|
||
/** | ||
* @return security enabled field. | ||
*/ | ||
Boolean securityEnabled(); | ||
|
||
/** | ||
* @return mail field. | ||
*/ | ||
String mail(); | ||
|
||
/************************************************************** | ||
* Fluent interfaces to provision a Group | ||
**************************************************************/ | ||
|
||
/** | ||
* Container interface for all the definitions that need to be implemented. | ||
*/ | ||
interface Definition extends | ||
DefinitionStages.Blank, | ||
DefinitionStages.WithDisplayName, | ||
DefinitionStages.WithMailNickname, | ||
DefinitionStages.WithCreate { | ||
} | ||
|
||
/** | ||
* Grouping of all the group definition stages. | ||
*/ | ||
interface DefinitionStages { | ||
/** | ||
* The first stage of the group definition. | ||
*/ | ||
interface Blank extends WithDisplayName { | ||
} | ||
|
||
/** | ||
* The stage of group definition allowing display name to be specified. | ||
*/ | ||
interface WithDisplayName { | ||
/** | ||
* Specifies the display name of the group. | ||
* | ||
* @param displayName the human readable display name | ||
* @return the next stage of group definition | ||
*/ | ||
WithMailNickname withDisplayName(String displayName); | ||
} | ||
|
||
/** | ||
* The stage of group definition allowing mail nickname to be specified. | ||
*/ | ||
interface WithMailNickname { | ||
/** | ||
* Specifies the mail nickname of the group. | ||
* | ||
* @param mailNickname the mail nickname for the group | ||
* @return the next stage of group definition | ||
*/ | ||
WithCreate withMailNickname(String mailNickname); | ||
} | ||
|
||
/** | ||
* An AD group definition with sufficient inputs to create a new | ||
* group in the cloud, but exposing additional optional inputs to | ||
* specify. | ||
*/ | ||
interface WithCreate extends | ||
Creatable<ActiveDirectoryGroup> { | ||
} | ||
} | ||
|
||
/** | ||
* Grouping of all the group update stages. | ||
*/ | ||
interface UpdateStages { | ||
} | ||
|
||
/** | ||
* The template for a group update operation, containing all the settings that can be modified. | ||
*/ | ||
interface Update { | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
azure-mgmt-graph-rbac/src/main/java/com/microsoft/azure/management/graphrbac/GraphError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* 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.graphrbac; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.microsoft.rest.serializer.JsonFlatten; | ||
|
||
/** | ||
* Active Directory error information. | ||
*/ | ||
@JsonFlatten | ||
public class GraphError { | ||
/** | ||
* Error code. | ||
*/ | ||
@JsonProperty(value = "odata\\.error.code") | ||
private String code; | ||
|
||
/** | ||
* Error message value. | ||
*/ | ||
@JsonProperty(value = "odata\\.error.message.value") | ||
private String message; | ||
|
||
/** | ||
* Get the code value. | ||
* | ||
* @return the code value | ||
*/ | ||
public String code() { | ||
return this.code; | ||
} | ||
|
||
/** | ||
* Set the code value. | ||
* | ||
* @param code the code value to set | ||
* @return the GraphError object itself. | ||
*/ | ||
public GraphError withCode(String code) { | ||
this.code = code; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the message value. | ||
* | ||
* @return the message value | ||
*/ | ||
public String message() { | ||
return this.message; | ||
} | ||
|
||
/** | ||
* Set the message value. | ||
* | ||
* @param message the message value to set | ||
* @return the GraphError object itself. | ||
*/ | ||
public GraphError withMessage(String message) { | ||
this.message = message; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.