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
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-threatintelligence</artifactId>
<version>v1beta-rev20260803-2.0.0</version>
<version>v1beta-rev20260809-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-threatintelligence:v1beta-rev20260803-2.0.0'
implementation 'com.google.apis:google-api-services-threatintelligence:v1beta-rev20260809-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ public Get set(String parameterName, Object value) {
* optional parameters, call the {@link GetPassword#execute()} method to invoke the remote
* operation.
*
* @param name Required. Name of the alert to get. Format: projects/{project}/alerts/{alert}
* @param name Required. Name of the alert to get password for. Format: projects/{project}/alerts/{alert}
* @return the request
*/
public GetPassword getPassword(java.lang.String name) throws java.io.IOException {
Expand All @@ -1174,7 +1174,7 @@ public GetPassword getPassword(java.lang.String name) throws java.io.IOException
return result;
}

public class GetPassword extends ThreatIntelligenceServiceRequest<com.google.api.services.threatintelligence.v1beta.model.Alert> {
public class GetPassword extends ThreatIntelligenceServiceRequest<com.google.api.services.threatintelligence.v1beta.model.GetPasswordResponse> {

private static final String REST_PATH = "v1beta/{+name}:getPassword";

Expand All @@ -1192,11 +1192,11 @@ public class GetPassword extends ThreatIntelligenceServiceRequest<com.google.api
* GetPassword#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
* must be called to initialize this instance immediately after invoking the constructor. </p>
*
* @param name Required. Name of the alert to get. Format: projects/{project}/alerts/{alert}
* @param name Required. Name of the alert to get password for. Format: projects/{project}/alerts/{alert}
* @since 1.13
*/
protected GetPassword(java.lang.String name) {
super(ThreatIntelligenceService.this, "GET", REST_PATH, null, com.google.api.services.threatintelligence.v1beta.model.Alert.class);
super(ThreatIntelligenceService.this, "GET", REST_PATH, null, com.google.api.services.threatintelligence.v1beta.model.GetPasswordResponse.class);
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
Expand Down Expand Up @@ -1270,17 +1270,23 @@ public GetPassword setUploadProtocol(java.lang.String uploadProtocol) {
return (GetPassword) super.setUploadProtocol(uploadProtocol);
}

/** Required. Name of the alert to get. Format: projects/{project}/alerts/{alert} */
/**
* Required. Name of the alert to get password for. Format:
* projects/{project}/alerts/{alert}
*/
@com.google.api.client.util.Key
private java.lang.String name;

/** Required. Name of the alert to get. Format: projects/{project}/alerts/{alert}
/** Required. Name of the alert to get password for. Format: projects/{project}/alerts/{alert}
*/
public java.lang.String getName() {
return name;
}

/** Required. Name of the alert to get. Format: projects/{project}/alerts/{alert} */
/**
* Required. Name of the alert to get password for. Format:
* projects/{project}/alerts/{alert}
*/
public GetPassword setName(java.lang.String name) {
if (!getSuppressPatternChecks()) {
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.threatintelligence.v1beta.model;

/**
* Response message for GetPassword.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Threat Intelligence API. For a detailed explanation
* see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GetPasswordResponse extends com.google.api.client.json.GenericJson {

/**
* The decrypted cleartext password for the compromised credential.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String password;

/**
* The decrypted cleartext password for the compromised credential.
* @return value or {@code null} for none
*/
public java.lang.String getPassword() {
return password;
}

/**
* The decrypted cleartext password for the compromised credential.
* @param password password or {@code null} for none
*/
public GetPasswordResponse setPassword(java.lang.String password) {
this.password = password;
return this;
}

@Override
public GetPasswordResponse set(String fieldName, Object value) {
return (GetPasswordResponse) super.set(fieldName, value);
}

@Override
public GetPasswordResponse clone() {
return (GetPasswordResponse) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-threatintelligence</artifactId>
<version>v1beta-rev20260803-2.0.0</version>
<name>Threat Intelligence API v1beta-rev20260803-2.0.0</name>
<version>v1beta-rev20260809-2.0.0</version>
<name>Threat Intelligence API v1beta-rev20260809-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-threatintelligence</artifactId>
<version>v1beta-rev20260803-2.0.0</version>
<version>v1beta-rev20260809-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-threatintelligence:v1beta-rev20260803-2.0.0'
implementation 'com.google.apis:google-api-services-threatintelligence:v1beta-rev20260809-2.0.0'
}
```

Expand Down
Loading