Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from securityinsights#package-previ…
Browse files Browse the repository at this point in the history
…ew-2022-01 (#27818)
  • Loading branch information
azure-sdk authored Mar 23, 2022
1 parent 768191c commit aa98bbf
Show file tree
Hide file tree
Showing 654 changed files with 11,719 additions and 5,831 deletions.

Large diffs are not rendered by default.

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

Azure Resource Manager SecurityInsights client library for Java.

This package contains Microsoft Azure SDK for SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09. 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 SecurityInsights Management SDK. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-01. 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-securityinsights</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
1,250 changes: 974 additions & 276 deletions sdk/securityinsights/azure-resourcemanager-securityinsights/SAMPLE.md

Large diffs are not rendered by default.

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

<name>Microsoft Azure SDK for SecurityInsights Management</name>
<description>This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09.</description>
<description>This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2022-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public final class SecurityInsightsManager {

private AutomationRules automationRules;

private Incidents incidents;

private Bookmarks bookmarks;

private BookmarkRelations bookmarkRelations;
Expand All @@ -117,8 +119,6 @@ public final class SecurityInsightsManager {

private DomainWhois domainWhois;

private EntityQueries entityQueries;

private Entities entities;

private EntitiesGetTimelines entitiesGetTimelines;
Expand All @@ -127,14 +127,18 @@ public final class SecurityInsightsManager {

private EntityRelations entityRelations;

private Incidents incidents;
private EntityQueries entityQueries;

private EntityQueryTemplates entityQueryTemplates;

private IncidentComments incidentComments;

private IncidentRelations incidentRelations;

private Metadatas metadatas;

private OfficeConsents officeConsents;

private SentinelOnboardingStates sentinelOnboardingStates;

private ProductSettings productSettings;
Expand All @@ -143,6 +147,12 @@ public final class SecurityInsightsManager {

private SourceControlsOperations sourceControlsOperations;

private ThreatIntelligenceIndicators threatIntelligenceIndicators;

private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;

private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;

private Watchlists watchlists;

private WatchlistItems watchlistItems;
Expand All @@ -151,18 +161,8 @@ public final class SecurityInsightsManager {

private DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirementsOperations;

private ThreatIntelligenceIndicators threatIntelligenceIndicators;

private ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations;

private ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics;

private Operations operations;

private OfficeConsents officeConsents;

private EntityQueryTemplates entityQueryTemplates;

private final SecurityInsights clientObject;

private SecurityInsightsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -201,7 +201,7 @@ public static Configurable configure() {

/** The Configurable allowing configurations to be set. */
public static final class Configurable {
private final ClientLogger logger = new ClientLogger(Configurable.class);
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -275,9 +275,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
this.defaultPollInterval =
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
Expand All @@ -299,7 +301,7 @@ public SecurityInsightsManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.securityinsights")
.append("/")
.append("1.0.0-beta.1");
.append("1.0.0-beta.2");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -383,6 +385,14 @@ public AutomationRules automationRules() {
return automationRules;
}

/** @return Resource collection API of Incidents. */
public Incidents incidents() {
if (this.incidents == null) {
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
}
return incidents;
}

/** @return Resource collection API of Bookmarks. */
public Bookmarks bookmarks() {
if (this.bookmarks == null) {
Expand Down Expand Up @@ -423,14 +433,6 @@ public DomainWhois domainWhois() {
return domainWhois;
}

/** @return Resource collection API of EntityQueries. */
public EntityQueries entityQueries() {
if (this.entityQueries == null) {
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
}
return entityQueries;
}

/** @return Resource collection API of Entities. */
public Entities entities() {
if (this.entities == null) {
Expand Down Expand Up @@ -463,12 +465,20 @@ public EntityRelations entityRelations() {
return entityRelations;
}

/** @return Resource collection API of Incidents. */
public Incidents incidents() {
if (this.incidents == null) {
this.incidents = new IncidentsImpl(clientObject.getIncidents(), this);
/** @return Resource collection API of EntityQueries. */
public EntityQueries entityQueries() {
if (this.entityQueries == null) {
this.entityQueries = new EntityQueriesImpl(clientObject.getEntityQueries(), this);
}
return incidents;
return entityQueries;
}

/** @return Resource collection API of EntityQueryTemplates. */
public EntityQueryTemplates entityQueryTemplates() {
if (this.entityQueryTemplates == null) {
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
}
return entityQueryTemplates;
}

/** @return Resource collection API of IncidentComments. */
Expand All @@ -495,6 +505,14 @@ public Metadatas metadatas() {
return metadatas;
}

/** @return Resource collection API of OfficeConsents. */
public OfficeConsents officeConsents() {
if (this.officeConsents == null) {
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
}
return officeConsents;
}

/** @return Resource collection API of SentinelOnboardingStates. */
public SentinelOnboardingStates sentinelOnboardingStates() {
if (this.sentinelOnboardingStates == null) {
Expand Down Expand Up @@ -529,6 +547,34 @@ public SourceControlsOperations sourceControlsOperations() {
return sourceControlsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicators. */
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
if (this.threatIntelligenceIndicators == null) {
this.threatIntelligenceIndicators =
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
}
return threatIntelligenceIndicators;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
if (this.threatIntelligenceIndicatorsOperations == null) {
this.threatIntelligenceIndicatorsOperations =
new ThreatIntelligenceIndicatorsOperationsImpl(
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
}
return threatIntelligenceIndicatorsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
if (this.threatIntelligenceIndicatorMetrics == null) {
this.threatIntelligenceIndicatorMetrics =
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
}
return threatIntelligenceIndicatorMetrics;
}

/** @return Resource collection API of Watchlists. */
public Watchlists watchlists() {
if (this.watchlists == null) {
Expand Down Expand Up @@ -563,34 +609,6 @@ public DataConnectorsCheckRequirementsOperations dataConnectorsCheckRequirements
return dataConnectorsCheckRequirementsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicators. */
public ThreatIntelligenceIndicators threatIntelligenceIndicators() {
if (this.threatIntelligenceIndicators == null) {
this.threatIntelligenceIndicators =
new ThreatIntelligenceIndicatorsImpl(clientObject.getThreatIntelligenceIndicators(), this);
}
return threatIntelligenceIndicators;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorsOperations. */
public ThreatIntelligenceIndicatorsOperations threatIntelligenceIndicatorsOperations() {
if (this.threatIntelligenceIndicatorsOperations == null) {
this.threatIntelligenceIndicatorsOperations =
new ThreatIntelligenceIndicatorsOperationsImpl(
clientObject.getThreatIntelligenceIndicatorsOperations(), this);
}
return threatIntelligenceIndicatorsOperations;
}

/** @return Resource collection API of ThreatIntelligenceIndicatorMetrics. */
public ThreatIntelligenceIndicatorMetrics threatIntelligenceIndicatorMetrics() {
if (this.threatIntelligenceIndicatorMetrics == null) {
this.threatIntelligenceIndicatorMetrics =
new ThreatIntelligenceIndicatorMetricsImpl(clientObject.getThreatIntelligenceIndicatorMetrics(), this);
}
return threatIntelligenceIndicatorMetrics;
}

/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
Expand All @@ -599,22 +617,6 @@ public Operations operations() {
return operations;
}

/** @return Resource collection API of OfficeConsents. */
public OfficeConsents officeConsents() {
if (this.officeConsents == null) {
this.officeConsents = new OfficeConsentsImpl(clientObject.getOfficeConsents(), this);
}
return officeConsents;
}

/** @return Resource collection API of EntityQueryTemplates. */
public EntityQueryTemplates entityQueryTemplates() {
if (this.entityQueryTemplates == null) {
this.entityQueryTemplates = new EntityQueryTemplatesImpl(clientObject.getEntityQueryTemplates(), this);
}
return entityQueryTemplates;
}

/**
* @return Wrapped service client SecurityInsights 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 @@ -23,7 +23,7 @@ public interface ActionsClient {
* @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 all actions of alert rule.
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ActionResponseInner> listByAlertRule(String resourceGroupName, String workspaceName, String ruleId);
Expand All @@ -38,7 +38,7 @@ public interface ActionsClient {
* @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 all actions of alert rule.
* @return all actions of alert rule as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ActionResponseInner> listByAlertRule(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface AlertRuleTemplatesClient {
* @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 all alert rule templates.
* @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName);
Expand All @@ -35,7 +35,7 @@ public interface AlertRuleTemplatesClient {
* @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 all alert rule templates.
* @return all alert rule templates as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleTemplateInner> list(String resourceGroupName, String workspaceName, Context context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface AlertRulesClient {
* @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 all alert rules.
* @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName);
Expand All @@ -35,7 +35,7 @@ public interface AlertRulesClient {
* @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 all alert rules.
* @return all alert rules as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AlertRuleInner> list(String resourceGroupName, String workspaceName, Context context);
Expand Down
Loading

0 comments on commit aa98bbf

Please sign in to comment.