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

[AutoPR azure-resourcemanager-security] [Go] Rename stuttering #12194

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion sdk/security/azure-resourcemanager-security/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2022-01-21)

- Azure Resource Manager Security client library for Java. This package contains Microsoft Azure SDK for Security Management SDK. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.1 (2021-07-14)

Expand Down
2 changes: 1 addition & 1 deletion sdk/security/azure-resourcemanager-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-security</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
5,709 changes: 5,461 additions & 248 deletions sdk/security/azure-resourcemanager-security/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand All @@ -34,28 +35,20 @@
import com.azure.resourcemanager.security.implementation.ComplianceResultsImpl;
import com.azure.resourcemanager.security.implementation.CompliancesImpl;
import com.azure.resourcemanager.security.implementation.ConnectorsImpl;
import com.azure.resourcemanager.security.implementation.CustomAssessmentAutomationsImpl;
import com.azure.resourcemanager.security.implementation.CustomEntityStoreAssignmentsImpl;
import com.azure.resourcemanager.security.implementation.DeviceSecurityGroupsImpl;
import com.azure.resourcemanager.security.implementation.DevicesForHubsImpl;
import com.azure.resourcemanager.security.implementation.DevicesForSubscriptionsImpl;
import com.azure.resourcemanager.security.implementation.DevicesImpl;
import com.azure.resourcemanager.security.implementation.DiscoveredSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.ExternalSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.InformationProtectionPoliciesImpl;
import com.azure.resourcemanager.security.implementation.IngestionSettingsImpl;
import com.azure.resourcemanager.security.implementation.IotAlertTypesImpl;
import com.azure.resourcemanager.security.implementation.IotAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotDefenderSettingsImpl;
import com.azure.resourcemanager.security.implementation.IotRecommendationTypesImpl;
import com.azure.resourcemanager.security.implementation.IotRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionAnalyticsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsAggregatedAlertsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsAnalyticsRecommendationsImpl;
import com.azure.resourcemanager.security.implementation.IotSecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.IotSensorsImpl;
import com.azure.resourcemanager.security.implementation.IotSitesImpl;
import com.azure.resourcemanager.security.implementation.JitNetworkAccessPoliciesImpl;
import com.azure.resourcemanager.security.implementation.LocationsImpl;
import com.azure.resourcemanager.security.implementation.OnPremiseIotSensorsImpl;
import com.azure.resourcemanager.security.implementation.MdeOnboardingsImpl;
import com.azure.resourcemanager.security.implementation.OperationsImpl;
import com.azure.resourcemanager.security.implementation.PricingsImpl;
import com.azure.resourcemanager.security.implementation.RegulatoryComplianceAssessmentsImpl;
Expand All @@ -65,6 +58,7 @@
import com.azure.resourcemanager.security.implementation.SecureScoreControlsImpl;
import com.azure.resourcemanager.security.implementation.SecureScoresImpl;
import com.azure.resourcemanager.security.implementation.SecurityCenterBuilder;
import com.azure.resourcemanager.security.implementation.SecurityConnectorsImpl;
import com.azure.resourcemanager.security.implementation.SecurityContactsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsImpl;
import com.azure.resourcemanager.security.implementation.SecuritySolutionsReferenceDatasImpl;
Expand All @@ -91,28 +85,20 @@
import com.azure.resourcemanager.security.models.ComplianceResults;
import com.azure.resourcemanager.security.models.Compliances;
import com.azure.resourcemanager.security.models.Connectors;
import com.azure.resourcemanager.security.models.CustomAssessmentAutomations;
import com.azure.resourcemanager.security.models.CustomEntityStoreAssignments;
import com.azure.resourcemanager.security.models.DeviceSecurityGroups;
import com.azure.resourcemanager.security.models.Devices;
import com.azure.resourcemanager.security.models.DevicesForHubs;
import com.azure.resourcemanager.security.models.DevicesForSubscriptions;
import com.azure.resourcemanager.security.models.DiscoveredSecuritySolutions;
import com.azure.resourcemanager.security.models.ExternalSecuritySolutions;
import com.azure.resourcemanager.security.models.InformationProtectionPolicies;
import com.azure.resourcemanager.security.models.IngestionSettings;
import com.azure.resourcemanager.security.models.IotAlertTypes;
import com.azure.resourcemanager.security.models.IotAlerts;
import com.azure.resourcemanager.security.models.IotDefenderSettings;
import com.azure.resourcemanager.security.models.IotRecommendationTypes;
import com.azure.resourcemanager.security.models.IotRecommendations;
import com.azure.resourcemanager.security.models.IotSecuritySolutionAnalytics;
import com.azure.resourcemanager.security.models.IotSecuritySolutions;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsAggregatedAlerts;
import com.azure.resourcemanager.security.models.IotSecuritySolutionsAnalyticsRecommendations;
import com.azure.resourcemanager.security.models.IotSensors;
import com.azure.resourcemanager.security.models.IotSites;
import com.azure.resourcemanager.security.models.JitNetworkAccessPolicies;
import com.azure.resourcemanager.security.models.Locations;
import com.azure.resourcemanager.security.models.OnPremiseIotSensors;
import com.azure.resourcemanager.security.models.MdeOnboardings;
import com.azure.resourcemanager.security.models.Operations;
import com.azure.resourcemanager.security.models.Pricings;
import com.azure.resourcemanager.security.models.RegulatoryComplianceAssessments;
Expand All @@ -121,6 +107,7 @@
import com.azure.resourcemanager.security.models.SecureScoreControlDefinitions;
import com.azure.resourcemanager.security.models.SecureScoreControls;
import com.azure.resourcemanager.security.models.SecureScores;
import com.azure.resourcemanager.security.models.SecurityConnectors;
import com.azure.resourcemanager.security.models.SecurityContacts;
import com.azure.resourcemanager.security.models.SecuritySolutions;
import com.azure.resourcemanager.security.models.SecuritySolutionsReferenceDatas;
Expand All @@ -139,9 +126,16 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to SecurityManager. API spec for Microsoft.Security (Azure Security Center) resource provider. */
public final class SecurityManager {
private MdeOnboardings mdeOnboardings;

private CustomAssessmentAutomations customAssessmentAutomations;

private CustomEntityStoreAssignments customEntityStoreAssignments;

private ComplianceResults complianceResults;

private Pricings pricings;
Expand Down Expand Up @@ -224,28 +218,6 @@ public final class SecurityManager {

private SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselineRules;

private IotDefenderSettings iotDefenderSettings;

private IotSensors iotSensors;

private DevicesForSubscriptions devicesForSubscriptions;

private DevicesForHubs devicesForHubs;

private Devices devices;

private OnPremiseIotSensors onPremiseIotSensors;

private IotSites iotSites;

private IotAlerts iotAlerts;

private IotAlertTypes iotAlertTypes;

private IotRecommendations iotRecommendations;

private IotRecommendationTypes iotRecommendationTypes;

private Alerts alerts;

private Settings settings;
Expand All @@ -254,6 +226,8 @@ public final class SecurityManager {

private SoftwareInventories softwareInventories;

private SecurityConnectors securityConnectors;

private final SecurityCenter clientObject;

private SecurityManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -413,11 +387,24 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand All @@ -429,6 +416,32 @@ public SecurityManager authenticate(TokenCredential credential, AzureProfile pro
}
}

/** @return Resource collection API of MdeOnboardings. */
public MdeOnboardings mdeOnboardings() {
if (this.mdeOnboardings == null) {
this.mdeOnboardings = new MdeOnboardingsImpl(clientObject.getMdeOnboardings(), this);
}
return mdeOnboardings;
}

/** @return Resource collection API of CustomAssessmentAutomations. */
public CustomAssessmentAutomations customAssessmentAutomations() {
if (this.customAssessmentAutomations == null) {
this.customAssessmentAutomations =
new CustomAssessmentAutomationsImpl(clientObject.getCustomAssessmentAutomations(), this);
}
return customAssessmentAutomations;
}

/** @return Resource collection API of CustomEntityStoreAssignments. */
public CustomEntityStoreAssignments customEntityStoreAssignments() {
if (this.customEntityStoreAssignments == null) {
this.customEntityStoreAssignments =
new CustomEntityStoreAssignmentsImpl(clientObject.getCustomEntityStoreAssignments(), this);
}
return customEntityStoreAssignments;
}

/** @return Resource collection API of ComplianceResults. */
public ComplianceResults complianceResults() {
if (this.complianceResults == null) {
Expand Down Expand Up @@ -782,96 +795,6 @@ public SqlVulnerabilityAssessmentBaselineRules sqlVulnerabilityAssessmentBaselin
return sqlVulnerabilityAssessmentBaselineRules;
}

/** @return Resource collection API of IotDefenderSettings. */
public IotDefenderSettings iotDefenderSettings() {
if (this.iotDefenderSettings == null) {
this.iotDefenderSettings = new IotDefenderSettingsImpl(clientObject.getIotDefenderSettings(), this);
}
return iotDefenderSettings;
}

/** @return Resource collection API of IotSensors. */
public IotSensors iotSensors() {
if (this.iotSensors == null) {
this.iotSensors = new IotSensorsImpl(clientObject.getIotSensors(), this);
}
return iotSensors;
}

/** @return Resource collection API of DevicesForSubscriptions. */
public DevicesForSubscriptions devicesForSubscriptions() {
if (this.devicesForSubscriptions == null) {
this.devicesForSubscriptions =
new DevicesForSubscriptionsImpl(clientObject.getDevicesForSubscriptions(), this);
}
return devicesForSubscriptions;
}

/** @return Resource collection API of DevicesForHubs. */
public DevicesForHubs devicesForHubs() {
if (this.devicesForHubs == null) {
this.devicesForHubs = new DevicesForHubsImpl(clientObject.getDevicesForHubs(), this);
}
return devicesForHubs;
}

/** @return Resource collection API of Devices. */
public Devices devices() {
if (this.devices == null) {
this.devices = new DevicesImpl(clientObject.getDevices(), this);
}
return devices;
}

/** @return Resource collection API of OnPremiseIotSensors. */
public OnPremiseIotSensors onPremiseIotSensors() {
if (this.onPremiseIotSensors == null) {
this.onPremiseIotSensors = new OnPremiseIotSensorsImpl(clientObject.getOnPremiseIotSensors(), this);
}
return onPremiseIotSensors;
}

/** @return Resource collection API of IotSites. */
public IotSites iotSites() {
if (this.iotSites == null) {
this.iotSites = new IotSitesImpl(clientObject.getIotSites(), this);
}
return iotSites;
}

/** @return Resource collection API of IotAlerts. */
public IotAlerts iotAlerts() {
if (this.iotAlerts == null) {
this.iotAlerts = new IotAlertsImpl(clientObject.getIotAlerts(), this);
}
return iotAlerts;
}

/** @return Resource collection API of IotAlertTypes. */
public IotAlertTypes iotAlertTypes() {
if (this.iotAlertTypes == null) {
this.iotAlertTypes = new IotAlertTypesImpl(clientObject.getIotAlertTypes(), this);
}
return iotAlertTypes;
}

/** @return Resource collection API of IotRecommendations. */
public IotRecommendations iotRecommendations() {
if (this.iotRecommendations == null) {
this.iotRecommendations = new IotRecommendationsImpl(clientObject.getIotRecommendations(), this);
}
return iotRecommendations;
}

/** @return Resource collection API of IotRecommendationTypes. */
public IotRecommendationTypes iotRecommendationTypes() {
if (this.iotRecommendationTypes == null) {
this.iotRecommendationTypes =
new IotRecommendationTypesImpl(clientObject.getIotRecommendationTypes(), this);
}
return iotRecommendationTypes;
}

/** @return Resource collection API of Alerts. */
public Alerts alerts() {
if (this.alerts == null) {
Expand Down Expand Up @@ -904,6 +827,14 @@ public SoftwareInventories softwareInventories() {
return softwareInventories;
}

/** @return Resource collection API of SecurityConnectors. */
public SecurityConnectors securityConnectors() {
if (this.securityConnectors == null) {
this.securityConnectors = new SecurityConnectorsImpl(clientObject.getSecurityConnectors(), this);
}
return securityConnectors;
}

/**
* @return Wrapped service client SecurityCenter providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface AdaptiveApplicationControlsClient {
* @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 a list of application control machine groups for the subscription.
* @return a list of application control machine groups for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AdaptiveApplicationControlGroupsInner> listWithResponse(
Expand Down Expand Up @@ -62,7 +62,7 @@ Response<AdaptiveApplicationControlGroupsInner> listWithResponse(
* @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 an application control VM/server group.
* @return an application control VM/server group along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AdaptiveApplicationControlGroupInner> getWithResponse(
Expand Down Expand Up @@ -95,7 +95,7 @@ AdaptiveApplicationControlGroupInner put(
* @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.
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AdaptiveApplicationControlGroupInner> putWithResponse(
Expand Down Expand Up @@ -124,7 +124,7 @@ Response<AdaptiveApplicationControlGroupInner> putWithResponse(
* @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.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String ascLocation, String groupName, Context context);
Expand Down
Loading