Skip to content

Commit

Permalink
CodeGen from PR 27681 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5746014d040bf3c8ac19243e481e5c03d92d2a53 into 39608b2c1c7b7dc06cb99abb9d733665cfce9a75
  • Loading branch information
SDKAuto committed Feb 8, 2024
1 parent c0f5c92 commit f476ed2
Show file tree
Hide file tree
Showing 300 changed files with 4,862 additions and 8,900 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.2.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-02-08)

- Azure Resource Manager PaloAlto Networks Ngfw client library for Java. This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. Package tag package-preview-2024-02-07-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager PaloAlto Networks Ngfw client library for Java.

This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. Package tag package-2023-09-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. Package tag package-preview-2024-02-07-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-paloaltonetworks-ngfw</artifactId>
<version>1.1.0</version>
<version>1.2.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
1,985 changes: 1,451 additions & 534 deletions sdk/paloaltonetworks/azure-resourcemanager-paloaltonetworks-ngfw/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for PaloAlto Networks Ngfw Management</name>
<description>This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-09-01.</description>
<description>This package contains Microsoft Azure SDK for PaloAlto Networks Ngfw Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-preview-2024-02-07-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -93,8 +94,6 @@
<version>4.11.0</version> <!-- {x-version-update;org.mockito:mockito-core;external_dependency} -->
<scope>test</scope>
</dependency>
<!-- bytebuddy dependencies are required for mockito 4.11.0 to work with Java 21. Mockito 4.11.0 is the last release -->
<!-- of Mockito supporting Java 8 as a baseline. -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.LocalRulestacksImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.OperationsImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwBuilder;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PaloAltoNetworksCloudngfwsImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PostRulesImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PreRulesImpl;
import com.azure.resourcemanager.paloaltonetworks.ngfw.implementation.PrefixListGlobalRulestacksImpl;
Expand All @@ -49,6 +50,7 @@
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.LocalRulestacks;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.Operations;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PaloAltoNetworksCloudngfws;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PostRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PreRules;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.PrefixListGlobalRulestacks;
Expand Down Expand Up @@ -78,6 +80,8 @@ public final class PaloAltoNetworksNgfwManager {

private Operations operations;

private PaloAltoNetworksCloudngfws paloAltoNetworksCloudngfws;

private Firewalls firewalls;

private LocalRulestacks localRulestacks;
Expand Down Expand Up @@ -251,7 +255,7 @@ public PaloAltoNetworksNgfwManager authenticate(TokenCredential credential, Azur

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.paloaltonetworks.ngfw")
.append("/").append("1.1.0");
.append("/").append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
Expand Down Expand Up @@ -377,6 +381,19 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of PaloAltoNetworksCloudngfws.
*
* @return Resource collection API of PaloAltoNetworksCloudngfws.
*/
public PaloAltoNetworksCloudngfws paloAltoNetworksCloudngfws() {
if (this.paloAltoNetworksCloudngfws == null) {
this.paloAltoNetworksCloudngfws
= new PaloAltoNetworksCloudngfwsImpl(clientObject.getPaloAltoNetworksCloudngfws(), this);
}
return paloAltoNetworksCloudngfws;
}

/**
* Gets the resource collection API of Firewalls. It manages FirewallResource.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.AdvSecurityObjectListResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ChangelogInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CountriesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListAppIdResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ListFirewallsResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.LocalRulestackResourceInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.PredefinedUrlCategoriesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SecurityServicesResponseInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.models.AdvSecurityObjectTypeEnum;
Expand Down Expand Up @@ -392,68 +389,6 @@ Response<AdvSecurityObjectListResponseInner> listAdvancedSecurityObjectsWithResp
AdvSecurityObjectListResponseInner listAdvancedSecurityObjects(String resourceGroupName, String localRulestackName,
AdvSecurityObjectTypeEnum type);

/**
* List of AppIds for LocalRulestack ApiVersion.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param appIdVersion The appIdVersion parameter.
* @param appPrefix The appPrefix parameter.
* @param skip The skip parameter.
* @param top The top parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ListAppIdResponseInner> listAppIdsWithResponse(String resourceGroupName, String localRulestackName,
String appIdVersion, String appPrefix, String skip, Integer top, Context context);

/**
* List of AppIds for LocalRulestack ApiVersion.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ListAppIdResponseInner listAppIds(String resourceGroupName, String localRulestackName);

/**
* List of countries for Rulestack.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param skip The skip parameter.
* @param top The top parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return countries Response Object along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CountriesResponseInner> listCountriesWithResponse(String resourceGroupName, String localRulestackName,
String skip, Integer top, Context context);

/**
* List of countries for Rulestack.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return countries Response Object.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CountriesResponseInner listCountries(String resourceGroupName, String localRulestackName);

/**
* List of Firewalls associated with Rulestack.
*
Expand Down Expand Up @@ -482,37 +417,6 @@ Response<ListFirewallsResponseInner> listFirewallsWithResponse(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
ListFirewallsResponseInner listFirewalls(String resourceGroupName, String localRulestackName);

/**
* List predefined URL categories for rulestack.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param skip The skip parameter.
* @param top The top parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return predefined url categories response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PredefinedUrlCategoriesResponseInner> listPredefinedUrlCategoriesWithResponse(String resourceGroupName,
String localRulestackName, String skip, Integer top, Context context);

/**
* List predefined URL categories for rulestack.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return predefined url categories response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PredefinedUrlCategoriesResponseInner listPredefinedUrlCategories(String resourceGroupName,
String localRulestackName);

/**
* List the security services for rulestack.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ public interface PaloAltoNetworksCloudngfw {
*/
OperationsClient getOperations();

/**
* Gets the PaloAltoNetworksCloudngfwsClient object to access its operations.
*
* @return the PaloAltoNetworksCloudngfwsClient object.
*/
PaloAltoNetworksCloudngfwsClient getPaloAltoNetworksCloudngfws();

/**
* Gets the FirewallsClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.paloaltonetworks.ngfw.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.CloudManagerTenantInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberRequestStatusInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.ProductSerialNumberStatusInner;
import com.azure.resourcemanager.paloaltonetworks.ngfw.fluent.models.SupportInfoModelInner;
import java.util.List;

/**
* An instance of this class provides access to all the operations defined in PaloAltoNetworksCloudngfwsClient.
*/
public interface PaloAltoNetworksCloudngfwsClient {
/**
* The createProductSerialNumber operation.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return create Product Serial Number Request status along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ProductSerialNumberRequestStatusInner> createProductSerialNumberWithResponse(Context context);

/**
* The createProductSerialNumber operation.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return create Product Serial Number Request status.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ProductSerialNumberRequestStatusInner createProductSerialNumber();

/**
* The listCloudManagerTenants operation.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return array of CloudManagerTenant along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<List<CloudManagerTenantInner>> listCloudManagerTenantsWithResponse(Context context);

/**
* The listCloudManagerTenants operation.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return array of CloudManagerTenant.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
List<CloudManagerTenantInner> listCloudManagerTenants();

/**
* The listProductSerialNumberStatus operation.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return product serial and status for the service along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ProductSerialNumberStatusInner> listProductSerialNumberStatusWithResponse(Context context);

/**
* The listProductSerialNumberStatus operation.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return product serial and status for the service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ProductSerialNumberStatusInner listProductSerialNumberStatus();

/**
* The listSupportInfo operation.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return support information for the service along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<SupportInfoModelInner> listSupportInfoWithResponse(Context context);

/**
* The listSupportInfo operation.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return support information for the service.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SupportInfoModelInner listSupportInfo();
}
Loading

0 comments on commit f476ed2

Please sign in to comment.