Skip to content

Commit ef99a44

Browse files
committed
---
yaml --- r: 4599 b: refs/heads/logging-alpha c: 452e274 h: refs/heads/master i: 4597: 30538f0 4595: 6ba6ce3 4591: 6e6b408
1 parent aa9c08c commit ef99a44

43 files changed

Lines changed: 43 additions & 10738 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
1414
refs/heads/gcs-nio: 283aeaf15efdcf3621eb6859f05e55ad7764375d
15-
refs/heads/logging-alpha: 17442b07867021b85d0452f5f3eda29a3413288f
15+
refs/heads/logging-alpha: 452e27495dfae67fb43adc96b020fc1bbaa10961
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0
1818
refs/tags/v0.1.2: 3eb3fe866ba22487686048f45d927b8c8638ea3f

branches/logging-alpha/README.md

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ This client supports the following Google Cloud Platform services:
1616

1717
- [Google Cloud BigQuery] (#google-cloud-bigquery-alpha) (Alpha)
1818
- [Google Cloud Datastore] (#google-cloud-datastore)
19-
- [Google Cloud DNS] (#google-cloud-dns-alpha) (Alpha)
2019
- [Google Cloud Resource Manager] (#google-cloud-resource-manager-alpha) (Alpha)
2120
- [Google Cloud Storage] (#google-cloud-storage)
2221

@@ -49,10 +48,8 @@ Example Applications
4948
- Read more about using this application on the [`BigQueryExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/bigquery/BigQueryExample.html).
5049
- [`Bookshelf`](https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/bookshelf) - An App Engine app that manages a virtual bookshelf.
5150
- This app uses `gcloud-java` to interface with Cloud Datastore and Cloud Storage. It also uses Cloud SQL, another Google Cloud Platform service.
52-
- [`DatastoreExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/datastore/DatastoreExample.java) - A simple command line interface for Cloud Datastore
51+
- [`DatastoreExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/datastore/DatastoreExample.java) - A simple command line interface for the Cloud Datastore
5352
- Read more about using this application on the [`DatastoreExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/datastore/DatastoreExample.html).
54-
- [`DnsExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/DnsExample.java) - A simple command line interface for Cloud DNS
55-
- Read more about using this application on the [`DnsExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/dns/DnsExample.html).
5653
- [`ResourceManagerExample`](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/resourcemanager/ResourceManagerExample.java) - A simple command line interface providing some of Cloud Resource Manager's functionality
5754
- Read more about using this application on the [`ResourceManagerExample` docs page](http://googlecloudplatform.github.io/gcloud-java/apidocs/?com/google/gcloud/examples/resourcemanager/ResourceManagerExample.html).
5855
- [`SparkDemo`](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/master/managed_vms/sparkjava) - An example of using gcloud-java-datastore from within the SparkJava and App Engine Managed VM frameworks.
@@ -221,71 +218,6 @@ if (entity != null) {
221218
}
222219
```
223220
224-
Google Cloud DNS (Alpha)
225-
----------------------
226-
- [API Documentation][dns-api]
227-
- [Official Documentation][cloud-dns-docs]
228-
229-
*Follow the [activation instructions][cloud-dns-activation] to use the Google Cloud DNS API with your project.*
230-
231-
#### Preview
232-
233-
Here are two code snippets showing simple usage examples from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
234-
235-
The first snippet shows how to create a zone resource. Complete source code can be found on
236-
[CreateZone.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateZone.java).
237-
238-
```java
239-
import com.google.gcloud.dns.Dns;
240-
import com.google.gcloud.dns.DnsOptions;
241-
import com.google.gcloud.dns.Zone;
242-
import com.google.gcloud.dns.ZoneInfo;
243-
244-
Dns dns = DnsOptions.defaultInstance().service();
245-
String zoneName = "my-unique-zone";
246-
String domainName = "someexampledomain.com.";
247-
String description = "This is a gcloud-java-dns sample zone.";
248-
ZoneInfo zoneInfo = ZoneInfo.of(zoneName, domainName, description);
249-
Zone zone = dns.create(zoneInfo);
250-
```
251-
252-
The second snippet shows how to create records inside a zone. The complete code can be found on [CreateOrUpdateDnsRecords.java](./gcloud-java-examples/src/main/java/com/google/gcloud/examples/dns/snippets/CreateOrUpdateDnsRecords.java).
253-
254-
```java
255-
import com.google.gcloud.dns.ChangeRequest;
256-
import com.google.gcloud.dns.Dns;
257-
import com.google.gcloud.dns.DnsOptions;
258-
import com.google.gcloud.dns.DnsRecord;
259-
import com.google.gcloud.dns.Zone;
260-
261-
import java.util.Iterator;
262-
import java.util.concurrent.TimeUnit;
263-
264-
Dns dns = DnsOptions.defaultInstance().service();
265-
String zoneName = "my-unique-zone";
266-
Zone zone = dns.getZone(zoneName);
267-
String ip = "12.13.14.15";
268-
DnsRecord toCreate = DnsRecord.builder("www.someexampledomain.com.", DnsRecord.Type.A)
269-
.ttl(24, TimeUnit.HOURS)
270-
.addRecord(ip)
271-
.build();
272-
ChangeRequest.Builder changeBuilder = ChangeRequest.builder().add(toCreate);
273-
274-
// Verify that the record does not exist yet.
275-
// If it does exist, we will overwrite it with our prepared record.
276-
Iterator<DnsRecord> recordIterator = zone.listDnsRecords().iterateAll();
277-
while (recordIterator.hasNext()) {
278-
DnsRecord current = recordIterator.next();
279-
if (toCreate.name().equals(current.name()) &&
280-
toCreate.type().equals(current.type())) {
281-
changeBuilder.delete(current);
282-
}
283-
}
284-
285-
ChangeRequest changeRequest = changeBuilder.build();
286-
zone.applyChangeRequest(changeRequest);
287-
```
288-
289221
Google Cloud Resource Manager (Alpha)
290222
----------------------
291223
@@ -427,10 +359,6 @@ Apache 2.0 - See [LICENSE] for more information.
427359
[cloud-datastore-activation]: https://cloud.google.com/datastore/docs/activate
428360
[datastore-api]: http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/datastore/package-summary.html
429361
430-
[dns-api]: http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/dns/package-summary.html
431-
[cloud-dns-docs]: https://cloud.google.com/dns/docs
432-
[cloud-dns-activation]: https://console.cloud.google.com/start/api?id=dns
433-
434362
[cloud-pubsub]: https://cloud.google.com/pubsub/
435363
[cloud-pubsub-docs]: https://cloud.google.com/pubsub/docs
436364

0 commit comments

Comments
 (0)