forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt restructure authorization (Azure#11817)
* mgmt restructure authorization * update namespace for spec * regenerate code * fix compile error * fix checkstyle * fix import
- Loading branch information
1 parent
edaa5f8
commit 4b18c35
Showing
181 changed files
with
4,266 additions
and
1,759 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
151 changes: 151 additions & 0 deletions
151
.../src/main/java/com/azure/resourcemanager/authorization/AuthorizationManagementClient.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,151 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.authorization; | ||
|
||
import com.azure.core.annotation.ServiceClient; | ||
import com.azure.core.http.HttpPipeline; | ||
import com.azure.core.management.AzureEnvironment; | ||
import com.azure.core.util.logging.ClientLogger; | ||
import com.azure.resourcemanager.AzureServiceClient; | ||
import com.azure.resourcemanager.authorization.fluent.ClassicAdministratorsClient; | ||
import com.azure.resourcemanager.authorization.fluent.GlobalAdministratorsClient; | ||
import com.azure.resourcemanager.authorization.fluent.PermissionsClient; | ||
import com.azure.resourcemanager.authorization.fluent.ProviderOperationsMetadatasClient; | ||
import com.azure.resourcemanager.authorization.fluent.RoleAssignmentsClient; | ||
import com.azure.resourcemanager.authorization.fluent.RoleDefinitionsClient; | ||
|
||
/** Initializes a new instance of the AuthorizationManagementClient type. */ | ||
@ServiceClient(builder = AuthorizationManagementClientBuilder.class) | ||
public final class AuthorizationManagementClient extends AzureServiceClient { | ||
private final ClientLogger logger = new ClientLogger(AuthorizationManagementClient.class); | ||
|
||
/** The ID of the target subscription. */ | ||
private final String subscriptionId; | ||
|
||
/** | ||
* Gets The ID of the target subscription. | ||
* | ||
* @return the subscriptionId value. | ||
*/ | ||
public String getSubscriptionId() { | ||
return this.subscriptionId; | ||
} | ||
|
||
/** server parameter. */ | ||
private final String endpoint; | ||
|
||
/** | ||
* Gets server parameter. | ||
* | ||
* @return the endpoint value. | ||
*/ | ||
public String getEndpoint() { | ||
return this.endpoint; | ||
} | ||
|
||
/** The HTTP pipeline to send requests through. */ | ||
private final HttpPipeline httpPipeline; | ||
|
||
/** | ||
* Gets The HTTP pipeline to send requests through. | ||
* | ||
* @return the httpPipeline value. | ||
*/ | ||
public HttpPipeline getHttpPipeline() { | ||
return this.httpPipeline; | ||
} | ||
|
||
/** The ClassicAdministratorsClient object to access its operations. */ | ||
private final ClassicAdministratorsClient classicAdministrators; | ||
|
||
/** | ||
* Gets the ClassicAdministratorsClient object to access its operations. | ||
* | ||
* @return the ClassicAdministratorsClient object. | ||
*/ | ||
public ClassicAdministratorsClient getClassicAdministrators() { | ||
return this.classicAdministrators; | ||
} | ||
|
||
/** The GlobalAdministratorsClient object to access its operations. */ | ||
private final GlobalAdministratorsClient globalAdministrators; | ||
|
||
/** | ||
* Gets the GlobalAdministratorsClient object to access its operations. | ||
* | ||
* @return the GlobalAdministratorsClient object. | ||
*/ | ||
public GlobalAdministratorsClient getGlobalAdministrators() { | ||
return this.globalAdministrators; | ||
} | ||
|
||
/** The ProviderOperationsMetadatasClient object to access its operations. */ | ||
private final ProviderOperationsMetadatasClient providerOperationsMetadatas; | ||
|
||
/** | ||
* Gets the ProviderOperationsMetadatasClient object to access its operations. | ||
* | ||
* @return the ProviderOperationsMetadatasClient object. | ||
*/ | ||
public ProviderOperationsMetadatasClient getProviderOperationsMetadatas() { | ||
return this.providerOperationsMetadatas; | ||
} | ||
|
||
/** The RoleAssignmentsClient object to access its operations. */ | ||
private final RoleAssignmentsClient roleAssignments; | ||
|
||
/** | ||
* Gets the RoleAssignmentsClient object to access its operations. | ||
* | ||
* @return the RoleAssignmentsClient object. | ||
*/ | ||
public RoleAssignmentsClient getRoleAssignments() { | ||
return this.roleAssignments; | ||
} | ||
|
||
/** The PermissionsClient object to access its operations. */ | ||
private final PermissionsClient permissions; | ||
|
||
/** | ||
* Gets the PermissionsClient object to access its operations. | ||
* | ||
* @return the PermissionsClient object. | ||
*/ | ||
public PermissionsClient getPermissions() { | ||
return this.permissions; | ||
} | ||
|
||
/** The RoleDefinitionsClient object to access its operations. */ | ||
private final RoleDefinitionsClient roleDefinitions; | ||
|
||
/** | ||
* Gets the RoleDefinitionsClient object to access its operations. | ||
* | ||
* @return the RoleDefinitionsClient object. | ||
*/ | ||
public RoleDefinitionsClient getRoleDefinitions() { | ||
return this.roleDefinitions; | ||
} | ||
|
||
/** | ||
* Initializes an instance of AuthorizationManagementClient client. | ||
* | ||
* @param httpPipeline The HTTP pipeline to send requests through. | ||
* @param environment The Azure environment. | ||
*/ | ||
AuthorizationManagementClient( | ||
HttpPipeline httpPipeline, AzureEnvironment environment, String subscriptionId, String endpoint) { | ||
super(httpPipeline, environment); | ||
this.httpPipeline = httpPipeline; | ||
this.subscriptionId = subscriptionId; | ||
this.endpoint = endpoint; | ||
this.classicAdministrators = new ClassicAdministratorsClient(this); | ||
this.globalAdministrators = new GlobalAdministratorsClient(this); | ||
this.providerOperationsMetadatas = new ProviderOperationsMetadatasClient(this); | ||
this.roleAssignments = new RoleAssignmentsClient(this); | ||
this.permissions = new PermissionsClient(this); | ||
this.roleDefinitions = new RoleDefinitionsClient(this); | ||
} | ||
} |
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
Oops, something went wrong.