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

[ReleasePR sdk/resources/mgmt-v2019_06_01] [Resources] Add support for MG and tenant level What-If #12604

Closed
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions sdk/resources/mgmt-v2019_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-resources</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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.resources.v2019_06_01;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for TenantCategory.
*/
public enum TenantCategory {
/** Enum value Home. */
HOME("Home"),

/** Enum value ProjectedBy. */
PROJECTED_BY("ProjectedBy"),

/** Enum value ManagedBy. */
MANAGED_BY("ManagedBy");

/** The actual serialized value for a TenantCategory instance. */
private String value;

TenantCategory(String value) {
this.value = value;
}

/**
* Parses a serialized value to a TenantCategory instance.
*
* @param value the serialized value to parse.
* @return the parsed TenantCategory object, or null if unable to parse.
*/
@JsonCreator
public static TenantCategory fromString(String value) {
TenantCategory[] items = TenantCategory.values();
for (TenantCategory item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,42 @@
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.resources.v2019_06_01.implementation.ResourcesManager;
import com.microsoft.azure.management.resources.v2019_06_01.implementation.TenantIdDescriptionInner;
import java.util.List;

/**
* Type representing TenantIdDescription.
*/
public interface TenantIdDescription extends HasInner<TenantIdDescriptionInner>, HasManager<ResourcesManager> {
/**
* @return the country value.
*/
String country();

/**
* @return the countryCode value.
*/
String countryCode();

/**
* @return the displayName value.
*/
String displayName();

/**
* @return the domains value.
*/
List<String> domains();

/**
* @return the id value.
*/
String id();

/**
* @return the tenantCategory value.
*/
TenantCategory tenantCategory();

/**
* @return the tenantId value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

import com.microsoft.azure.management.resources.v2019_06_01.TenantIdDescription;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import java.util.List;
import com.microsoft.azure.management.resources.v2019_06_01.TenantCategory;

class TenantIdDescriptionImpl extends WrapperImpl<TenantIdDescriptionInner> implements TenantIdDescription {
private final ResourcesManager manager;
Expand All @@ -23,11 +25,36 @@ public ResourcesManager manager() {
return this.manager;
}

@Override
public String country() {
return this.inner().country();
}

@Override
public String countryCode() {
return this.inner().countryCode();
}

@Override
public String displayName() {
return this.inner().displayName();
}

@Override
public List<String> domains() {
return this.inner().domains();
}

@Override
public String id() {
return this.inner().id();
}

@Override
public TenantCategory tenantCategory() {
return this.inner().tenantCategory();
}

@Override
public String tenantId() {
return this.inner().tenantId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

package com.microsoft.azure.management.resources.v2019_06_01.implementation;

import com.microsoft.azure.management.resources.v2019_06_01.TenantCategory;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -27,6 +29,37 @@ public class TenantIdDescriptionInner {
@JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY)
private String tenantId;

/**
* The tenant category. Possible values include: 'Home', 'ProjectedBy',
* 'ManagedBy'.
*/
@JsonProperty(value = "tenantCategory", access = JsonProperty.Access.WRITE_ONLY)
private TenantCategory tenantCategory;

/**
* Country/region name of the address for the tenant.
*/
@JsonProperty(value = "country", access = JsonProperty.Access.WRITE_ONLY)
private String country;

/**
* Country/region abbreviation for the tenant.
*/
@JsonProperty(value = "countryCode", access = JsonProperty.Access.WRITE_ONLY)
private String countryCode;

/**
* The display name of the tenant.
*/
@JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
private String displayName;

/**
* The list of domains for the tenant.
*/
@JsonProperty(value = "domains", access = JsonProperty.Access.WRITE_ONLY)
private List<String> domains;

/**
* Get the fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
*
Expand All @@ -45,4 +78,49 @@ public String tenantId() {
return this.tenantId;
}

/**
* Get the tenant category. Possible values include: 'Home', 'ProjectedBy', 'ManagedBy'.
*
* @return the tenantCategory value
*/
public TenantCategory tenantCategory() {
return this.tenantCategory;
}

/**
* Get country/region name of the address for the tenant.
*
* @return the country value
*/
public String country() {
return this.country;
}

/**
* Get country/region abbreviation for the tenant.
*
* @return the countryCode value
*/
public String countryCode() {
return this.countryCode;
}

/**
* Get the display name of the tenant.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}

/**
* Get the list of domains for the tenant.
*
* @return the domains value
*/
public List<String> domains() {
return this.domains;
}

}