forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt, resourcegraph track1 (Azure#19943)
- Loading branch information
1 parent
1b40bc6
commit f25746c
Showing
13 changed files
with
441 additions
and
120 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
51 changes: 51 additions & 0 deletions
51
...src/main/java/com/microsoft/azure/management/resourcegraph/v2019_04_01/QueryResponse.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,51 @@ | ||
/** | ||
* 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.resourcegraph.v2019_04_01; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.implementation.ResourceGraphManager; | ||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.implementation.QueryResponseInner; | ||
import java.util.List; | ||
|
||
/** | ||
* Type representing QueryResponse. | ||
*/ | ||
public interface QueryResponse extends HasInner<QueryResponseInner>, HasManager<ResourceGraphManager> { | ||
/** | ||
* @return the count value. | ||
*/ | ||
long count(); | ||
|
||
/** | ||
* @return the data value. | ||
*/ | ||
Object data(); | ||
|
||
/** | ||
* @return the facets value. | ||
*/ | ||
List<Facet> facets(); | ||
|
||
/** | ||
* @return the resultTruncated value. | ||
*/ | ||
ResultTruncated resultTruncated(); | ||
|
||
/** | ||
* @return the skipToken value. | ||
*/ | ||
String skipToken(); | ||
|
||
/** | ||
* @return the totalRecords value. | ||
*/ | ||
long totalRecords(); | ||
|
||
} |
36 changes: 36 additions & 0 deletions
36
...main/java/com/microsoft/azure/management/resourcegraph/v2019_04_01/ResourceProviders.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,36 @@ | ||
/** | ||
* 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.resourcegraph.v2019_04_01; | ||
|
||
import rx.Observable; | ||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.implementation.ResourceProvidersInner; | ||
import com.microsoft.azure.arm.model.HasInner; | ||
|
||
/** | ||
* Type representing ResourceProviders. | ||
*/ | ||
public interface ResourceProviders extends HasInner<ResourceProvidersInner> { | ||
/** | ||
* Queries the resources managed by Azure Resource Manager for all subscriptions specified in the request. | ||
* | ||
* @param query Request specifying query and its options. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<QueryResponse> resourcesAsync(QueryRequest query); | ||
|
||
/** | ||
* Queries the resources managed by Azure Resource Manager for all subscriptions specified in the request. | ||
* | ||
* @param query Request specifying query and its options. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the response | ||
*/ | ||
QueryResponse resources(QueryRequest query); | ||
} |
59 changes: 59 additions & 0 deletions
59
...icrosoft/azure/management/resourcegraph/v2019_04_01/implementation/QueryResponseImpl.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,59 @@ | ||
/** | ||
* 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.resourcegraph.v2019_04_01.implementation; | ||
|
||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.QueryResponse; | ||
import com.microsoft.azure.arm.model.implementation.WrapperImpl; | ||
import java.util.List; | ||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.Facet; | ||
import com.microsoft.azure.management.resourcegraph.v2019_04_01.ResultTruncated; | ||
|
||
class QueryResponseImpl extends WrapperImpl<QueryResponseInner> implements QueryResponse { | ||
private final ResourceGraphManager manager; | ||
QueryResponseImpl(QueryResponseInner inner, ResourceGraphManager manager) { | ||
super(inner); | ||
this.manager = manager; | ||
} | ||
|
||
@Override | ||
public ResourceGraphManager manager() { | ||
return this.manager; | ||
} | ||
|
||
@Override | ||
public long count() { | ||
return this.inner().count(); | ||
} | ||
|
||
@Override | ||
public Object data() { | ||
return this.inner().data(); | ||
} | ||
|
||
@Override | ||
public List<Facet> facets() { | ||
return this.inner().facets(); | ||
} | ||
|
||
@Override | ||
public ResultTruncated resultTruncated() { | ||
return this.inner().resultTruncated(); | ||
} | ||
|
||
@Override | ||
public String skipToken() { | ||
return this.inner().skipToken(); | ||
} | ||
|
||
@Override | ||
public long totalRecords() { | ||
return this.inner().totalRecords(); | ||
} | ||
|
||
} |
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.