Skip to content

Commit c417552

Browse files
authored
Mgmt: generate attestation.v2020_10_01 (Azure#17611)
* add attestation/resource-manager * generate attestation/resource-manager 2020 10 * add ci and pom
1 parent 851478f commit c417552

36 files changed

+3752
-0
lines changed

eng/mgmt/api-specs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
"\"moduleName\"": "\"AppService\""
3131
}
3232
},
33+
"attestation/resource-manager": {
34+
"source": "specification/attestation/resource-manager/readme.md",
35+
"args": "--multiapi --fluent"
36+
},
3337
"automation/resource-manager": {
3438
"source": "specification/automation/resource-manager/readme.md",
3539
"args": "--multiapi --fluent"

sdk/attestation/ci.mgmt.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
2+
trigger:
3+
branches:
4+
include:
5+
- master
6+
- feature/*
7+
- hotfix/*
8+
- release/*
9+
paths:
10+
include:
11+
- sdk/attestation/
12+
13+
pr:
14+
branches:
15+
include:
16+
- master
17+
- feature/*
18+
- hotfix/*
19+
- release/*
20+
paths:
21+
include:
22+
- sdk/attestation/
23+
24+
stages:
25+
- template: ../../eng/pipelines/templates/stages/archetype-sdk-management.yml
26+
parameters:
27+
ServiceDirectory: attestation
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<!--
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
-->
8+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.microsoft.azure.attestation.v2020_10_01</groupId>
11+
<parent>
12+
<groupId>com.microsoft.azure</groupId>
13+
<artifactId>azure-arm-parent</artifactId>
14+
<version>1.3.2</version>
15+
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
16+
</parent>
17+
<artifactId>azure-mgmt-attestation</artifactId>
18+
<version>1.0.0-beta</version>
19+
<packaging>jar</packaging>
20+
<name>Microsoft Azure SDK for Attestation Management</name>
21+
<description>This package contains Microsoft Attestation Management SDK.</description>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
23+
<licenses>
24+
<license>
25+
<name>The MIT License (MIT)</name>
26+
<url>http://opensource.org/licenses/MIT</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
<scm>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
33+
<tag>HEAD</tag>
34+
</scm>
35+
<properties>
36+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
38+
</properties>
39+
<developers>
40+
<developer>
41+
<id>microsoft</id>
42+
<name>Microsoft</name>
43+
</developer>
44+
</developers>
45+
<dependencies>
46+
<dependency>
47+
<groupId>com.microsoft.azure</groupId>
48+
<artifactId>azure-client-runtime</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>com.microsoft.azure</groupId>
52+
<artifactId>azure-arm-client-runtime</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.microsoft.azure</groupId>
61+
<artifactId>azure-client-authentication</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.microsoft.azure</groupId>
66+
<artifactId>azure-mgmt-resources</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.microsoft.azure</groupId>
71+
<artifactId>azure-arm-client-runtime</artifactId>
72+
<type>test-jar</type>
73+
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
76+
</dependency>
77+
</dependencies>
78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-jar-plugin</artifactId>
83+
<configuration>
84+
<archive>
85+
<manifest>
86+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
87+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
88+
</manifest>
89+
</archive>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.codehaus.mojo</groupId>
94+
<artifactId>build-helper-maven-plugin</artifactId>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-compiler-plugin</artifactId>
99+
<version>3.1</version>
100+
<configuration>
101+
<source>1.7</source>
102+
<target>1.7</target>
103+
<annotationProcessors>
104+
<annotationProcessor>
105+
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
106+
</annotationProcessor>
107+
</annotationProcessors>
108+
<debug>true</debug>
109+
<optimize>true</optimize>
110+
<compilerArguments>
111+
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
112+
<Adebug>true</Adebug>
113+
</compilerArguments>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-javadoc-plugin</artifactId>
119+
<version>2.8</version>
120+
<configuration>
121+
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
122+
<bottom>
123+
<![CDATA[<code>
124+
/**
125+
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
126+
<br />* Licensed under the MIT License. See License.txt in the project root for
127+
<br />* license information.
128+
<br />*/
129+
</code>]]>
130+
</bottom>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.attestation.v2020_10_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.arm.resources.models.Resource;
13+
import com.microsoft.azure.arm.resources.models.GroupableResourceCore;
14+
import com.microsoft.azure.arm.resources.models.HasResourceGroup;
15+
import com.microsoft.azure.arm.model.Refreshable;
16+
import com.microsoft.azure.arm.model.Updatable;
17+
import com.microsoft.azure.arm.model.Appliable;
18+
import com.microsoft.azure.arm.model.Creatable;
19+
import com.microsoft.azure.arm.resources.models.HasManager;
20+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationManager;
21+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationProviderInner;
22+
23+
/**
24+
* Type representing AttestationProvider.
25+
*/
26+
public interface AttestationProvider extends HasInner<AttestationProviderInner>, Resource, GroupableResourceCore<AttestationManager, AttestationProviderInner>, HasResourceGroup, Refreshable<AttestationProvider>, Updatable<AttestationProvider.Update>, HasManager<AttestationManager> {
27+
/**
28+
* @return the attestUri value.
29+
*/
30+
String attestUri();
31+
32+
/**
33+
* @return the status value.
34+
*/
35+
AttestationServiceStatus status();
36+
37+
/**
38+
* @return the systemData value.
39+
*/
40+
SystemData systemData();
41+
42+
/**
43+
* @return the trustModel value.
44+
*/
45+
String trustModel();
46+
47+
/**
48+
* The entirety of the AttestationProvider definition.
49+
*/
50+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
51+
}
52+
53+
/**
54+
* Grouping of AttestationProvider definition stages.
55+
*/
56+
interface DefinitionStages {
57+
/**
58+
* The first stage of a AttestationProvider definition.
59+
*/
60+
interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
61+
}
62+
63+
/**
64+
* The stage of the AttestationProvider definition allowing to specify the resource group.
65+
*/
66+
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithProperties> {
67+
}
68+
69+
/**
70+
* The stage of the attestationprovider definition allowing to specify Properties.
71+
*/
72+
interface WithProperties {
73+
/**
74+
* Specifies properties.
75+
* @param properties Properties of the attestation service instance
76+
* @return the next definition stage
77+
*/
78+
WithCreate withProperties(AttestationServiceCreationSpecificParams properties);
79+
}
80+
81+
/**
82+
* The stage of the definition which contains all the minimum required inputs for
83+
* the resource to be created (via {@link WithCreate#create()}), but also allows
84+
* for any other optional settings to be specified.
85+
*/
86+
interface WithCreate extends Creatable<AttestationProvider>, Resource.DefinitionWithTags<WithCreate> {
87+
}
88+
}
89+
/**
90+
* The template for a AttestationProvider update operation, containing all the settings that can be modified.
91+
*/
92+
interface Update extends Appliable<AttestationProvider>, Resource.UpdateWithTags<Update> {
93+
}
94+
95+
/**
96+
* Grouping of AttestationProvider update stages.
97+
*/
98+
interface UpdateStages {
99+
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.attestation.v2020_10_01;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.arm.resources.models.HasManager;
13+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationManager;
14+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationProviderListResultInner;
15+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationProviderInner;
16+
import java.util.List;
17+
18+
/**
19+
* Type representing AttestationProviderListResult.
20+
*/
21+
public interface AttestationProviderListResult extends HasInner<AttestationProviderListResultInner>, HasManager<AttestationManager> {
22+
/**
23+
* @return the systemData value.
24+
*/
25+
SystemData systemData();
26+
27+
/**
28+
* @return the value value.
29+
*/
30+
List<AttestationProviderInner> value();
31+
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.attestation.v2020_10_01;
10+
11+
import com.microsoft.azure.arm.collection.SupportsCreating;
12+
import com.microsoft.azure.arm.resources.collection.SupportsDeletingByResourceGroup;
13+
import com.microsoft.azure.arm.resources.collection.SupportsBatchDeletion;
14+
import com.microsoft.azure.arm.resources.collection.SupportsGettingByResourceGroup;
15+
import rx.Observable;
16+
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
17+
import com.microsoft.azure.management.attestation.v2020_10_01.implementation.AttestationProvidersInner;
18+
import com.microsoft.azure.arm.model.HasInner;
19+
20+
/**
21+
* Type representing AttestationProviders.
22+
*/
23+
public interface AttestationProviders extends SupportsCreating<AttestationProvider.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<AttestationProvider>, SupportsListingByResourceGroup<AttestationProvider>, HasInner<AttestationProvidersInner> {
24+
/**
25+
* Returns a list of attestation providers in a subscription.
26+
*
27+
* @throws IllegalArgumentException thrown if parameters fail the validation
28+
* @return the observable for the request
29+
*/
30+
Observable<AttestationProviderListResult> listAsync();
31+
32+
/**
33+
* Get the default provider.
34+
*
35+
* @throws IllegalArgumentException thrown if parameters fail the validation
36+
* @return the observable for the request
37+
*/
38+
Observable<AttestationProviderListResult> listDefaultAsync();
39+
40+
/**
41+
* Get the default provider by location.
42+
*
43+
* @param location The location of the default provider.
44+
* @throws IllegalArgumentException thrown if parameters fail the validation
45+
* @return the observable for the request
46+
*/
47+
Observable<AttestationProvider> getDefaultByLocationAsync(String location);
48+
49+
}

0 commit comments

Comments
 (0)