Skip to content
Open
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
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.managementgroups;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Management group name availability check parameters.
*/
public class CheckNameAvailabilityRequest {
/**
* the name to check for availability.
*/
@JsonProperty(value = "name")
private String name;

/**
* fully qualified resource type which includes provider namespace.
* Possible values include:
* '/providers/Microsoft.Management/managementGroups'.
*/
@JsonProperty(value = "type")
private Type type;

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

/**
* Set the name value.
*
* @param name the name value to set
* @return the CheckNameAvailabilityRequest object itself.
*/
public CheckNameAvailabilityRequest withName(String name) {
this.name = name;
return this;
}

/**
* Get the type value.
*
* @return the type value
*/
public Type type() {
return this.type;
}

/**
* Set the type value.
*
* @param type the type value to set
* @return the CheckNameAvailabilityRequest object itself.
*/
public CheckNameAvailabilityRequest withType(Type type) {
this.type = type;
return this;
}

}
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.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.managementgroups;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The child information of a management group used during creation.
*/
public class CreateManagementGroupChildInfo {
/**
* The type of child resource.
* The fully qualified resource type which includes provider namespace
* (e.g. /providers/Microsoft.Management/managementGroups). Possible values
* include: '/providers/Microsoft.Management/managementGroups',
* '/subscriptions'.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
* The fully qualified ID for the child resource (management group or
* subscription). For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

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

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

/**
* The roles definitions associated with the management group.
*/
@JsonProperty(value = "roles", access = JsonProperty.Access.WRITE_ONLY)
private List<String> roles;

/**
* The list of children.
*/
@JsonProperty(value = "children", access = JsonProperty.Access.WRITE_ONLY)
private List<CreateManagementGroupChildInfo> children;

/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}

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

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

/**
* Get the roles value.
*
* @return the roles value
*/
public List<String> roles() {
return this.roles;
}

/**
* Get the children value.
*
* @return the children value
*/
public List<CreateManagementGroupChildInfo> children() {
return this.children;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/**
* 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.managementgroups;

import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The details of a management group used during creation.
*/
public class CreateManagementGroupDetails {
/**
* The version number of the object.
*/
@JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
private Double version;

/**
* The date and time when this object was last updated.
*/
@JsonProperty(value = "updatedTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime updatedTime;

/**
* The identity of the principal or process that updated the object.
*/
@JsonProperty(value = "updatedBy", access = JsonProperty.Access.WRITE_ONLY)
private String updatedBy;

/**
* Parent.
*/
@JsonProperty(value = "parent")
private CreateParentGroupInfo parent;

/**
* Get the version value.
*
* @return the version value
*/
public Double version() {
return this.version;
}

/**
* Get the updatedTime value.
*
* @return the updatedTime value
*/
public DateTime updatedTime() {
return this.updatedTime;
}

/**
* Get the updatedBy value.
*
* @return the updatedBy value
*/
public String updatedBy() {
return this.updatedBy;
}

/**
* Get the parent value.
*
* @return the parent value
*/
public CreateParentGroupInfo parent() {
return this.parent;
}

/**
* Set the parent value.
*
* @param parent the parent value to set
* @return the CreateManagementGroupDetails object itself.
*/
public CreateManagementGroupDetails withParent(CreateParentGroupInfo parent) {
this.parent = parent;
return this;
}

}
Loading