Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

chore: removed migrated samples #755

Merged
merged 8 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
41 changes: 1 addition & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,8 @@ The Maven artifact coordinates (`com.google.cloud:google-cloud-webrisk`) remain

## Quickstart

If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:

```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-webrisk</artifactId>
</dependency>

```

If you are using Maven without BOM, add this to your dependencies:
If you are using Maven, add this to your pom.xml file:


```xml
Expand All @@ -53,13 +31,6 @@ If you are using Maven without BOM, add this to your dependencies:

```

If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.4')

implementation 'com.google.cloud:google-cloud-webrisk'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
Expand Down Expand Up @@ -107,16 +78,6 @@ use this Web Risk Client Library.



## Samples

Samples are in the [`samples/`](https://github.com/googleapis/java-webrisk/tree/main/samples) directory.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Search Uri Example | [source code](https://github.com/googleapis/java-webrisk/blob/main/samples/snippets/src/main/java/webrisk/SearchUriExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-webrisk&page=editor&open_in_editor=samples/snippets/src/main/java/webrisk/SearchUriExample.java) |
| Submit Uri Example | [source code](https://github.com/googleapis/java-webrisk/blob/main/samples/snippets/src/main/java/webrisk/SubmitUriExample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-webrisk&page=editor&open_in_editor=samples/snippets/src/main/java/webrisk/SubmitUriExample.java) |



## Troubleshooting

Expand Down
21 changes: 4 additions & 17 deletions samples/snippets/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>webrisk-snippets</artifactId>
<artifactId>-snippets</artifactId>
Shabirmean marked this conversation as resolved.
Show resolved Hide resolved
<packaging>jar</packaging>
<name>Google Web Risk Snippets</name>
<url>https://github.com/googleapis/java-webrisk</url>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in anyway.
Removing or replacing it should not affect the execution of the samples in any way.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
Expand All @@ -23,26 +23,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<!-- [START webrisk_install_with_bom] -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.4</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<!-- TODO: switch to libraries-bom after this artifact is included -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-webrisk</artifactId>
<version>2.4.0</version>
</dependency>
<!-- [END webrisk_install_with_bom] -->

<dependency>
<groupId>junit</groupId>
Expand Down
53 changes: 0 additions & 53 deletions samples/snippets/src/main/java/webrisk/SearchUriExample.java

This file was deleted.

49 changes: 0 additions & 49 deletions samples/snippets/src/main/java/webrisk/SubmitUriExample.java

This file was deleted.

47 changes: 0 additions & 47 deletions samples/snippets/src/test/java/webrisk/SearchUriExampleTest.java

This file was deleted.

31 changes: 0 additions & 31 deletions samples/snippets/src/test/java/webrisk/SubmitUriExampleTest.java

This file was deleted.