Skip to content
Merged
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,74 @@
/**
* 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;

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

/**
* Export resource group template request parameters.
*/
public class ExportTemplateRequest {
/**
* The IDs of the resources. The only supported string currently is '*'
* (all resources). Future updates will support exporting specific
* resources.
*/
@JsonProperty(value = "resources")
private List<String> resources;

/**
* The export template options. Supported values include
* 'IncludeParameterDefaultValue', 'IncludeComments' or
* 'IncludeParameterDefaultValue, IncludeComments.
*/
@JsonProperty(value = "options")
private String options;

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

/**
* Set the resources value.
*
* @param resources the resources value to set
* @return the ExportTemplateRequest object itself.
*/
public ExportTemplateRequest withResources(List<String> resources) {
this.resources = resources;
return this;
}

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

/**
* Set the options value.
*
* @param options the options value to set
* @return the ExportTemplateRequest object itself.
*/
public ExportTemplateRequest withOptions(String options) {
this.options = options;
return this;
}

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

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

/**
* Parameters of move resources.
*/
public class ResourcesMoveInfo {
/**
* The IDs of the resources.
*/
@JsonProperty(value = "resources")
private List<String> resources;

/**
* The target resource group.
*/
@JsonProperty(value = "targetResourceGroup")
private String targetResourceGroup;

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

/**
* Set the resources value.
*
* @param resources the resources value to set
* @return the ResourcesMoveInfo object itself.
*/
public ResourcesMoveInfo withResources(List<String> resources) {
this.resources = resources;
return this;
}

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

/**
* Set the targetResourceGroup value.
*
* @param targetResourceGroup the targetResourceGroup value to set
* @return the ResourcesMoveInfo object itself.
*/
public ResourcesMoveInfo withTargetResourceGroup(String targetResourceGroup) {
this.targetResourceGroup = targetResourceGroup;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
import com.microsoft.azure.management.resources.Sku;
import com.microsoft.azure.management.resources.Identity;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.SkipParentValidation;
import com.microsoft.azure.Resource;

/**
* Resource information.
*/
@SkipParentValidation
public class GenericResourceInner extends Resource {
/**
* The plan of the resource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

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

import java.util.List;
import com.microsoft.azure.management.resources.PolicySku;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

Expand All @@ -34,24 +36,54 @@ public class PolicyAssignmentInner {
@JsonProperty(value = "properties.scope")
private String scope;

/**
* The policy's excluded scopes.
*/
@JsonProperty(value = "properties.notScopes")
private List<String> notScopes;

/**
* Required if a parameter is used in policy rule.
*/
@JsonProperty(value = "properties.parameters")
private Object parameters;

/**
* This message will be part of response in case of policy violation.
*/
@JsonProperty(value = "properties.description")
private String description;

/**
* The policy assignment metadata.
*/
@JsonProperty(value = "properties.metadata")
private Object metadata;

/**
* The ID of the policy assignment.
*/
@JsonProperty(value = "id")
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* The type of the policy assignment.
*/
@JsonProperty(value = "type")
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

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

/**
* The policy sku.
*/
@JsonProperty(value = "sku")
private PolicySku sku;

/**
* Get the displayName value.
*
Expand Down Expand Up @@ -113,45 +145,103 @@ public PolicyAssignmentInner withScope(String scope) {
}

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

/**
* Set the id value.
* Set the notScopes value.
*
* @param id the id value to set
* @param notScopes the notScopes value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withId(String id) {
this.id = id;
public PolicyAssignmentInner withNotScopes(List<String> notScopes) {
this.notScopes = notScopes;
return this;
}

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

/**
* Set the parameters value.
*
* @param parameters the parameters value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withParameters(Object parameters) {
this.parameters = parameters;
return this;
}

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

/**
* Set the type value.
* Set the description value.
*
* @param type the type value to set
* @param description the description value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withType(String type) {
this.type = type;
public PolicyAssignmentInner withDescription(String description) {
this.description = description;
return this;
}

/**
* Get the metadata value.
*
* @return the metadata value
*/
public Object metadata() {
return this.metadata;
}

/**
* Set the metadata value.
*
* @param metadata the metadata value to set
* @return the PolicyAssignmentInner object itself.
*/
public PolicyAssignmentInner withMetadata(Object metadata) {
this.metadata = metadata;
return this;
}

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

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

/**
* Get the name value.
*
Expand All @@ -162,13 +252,22 @@ public String name() {
}

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

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

Expand Down
Loading