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

Add functional methods for snapshots and Snapshot class #780

Merged
merged 4 commits into from
Mar 26, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -172,8 +172,8 @@ public final int hashCode() {
return Objects.hash(super.hashCode(), options);
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ public static SnapshotListOption fields(SnapshotField... fields) {
Snapshot getSnapshot(String snapshot, SnapshotOption... options);

/**
* Lists all snapshots.
* Lists snapshots.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

*
* @throws ComputeException upon failure
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,6 @@ public Snapshot apply(com.google.api.services.compute.model.Snapshot snapshot) {
@Override
public Operation deleteSnapshot(SnapshotId snapshot, OperationOption... options) {
return deleteSnapshot(snapshot.snapshot(), options);

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ com.google.api.services.compute.model.Operation toPb() {
return operationPb;
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public final int hashCode() {
return Objects.hash(super.hashCode(), options);
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class AddressTest {
private static final AddressInfo.RegionForwardingUsage REGION_FORWARDING_USAGE =
new AddressInfo.RegionForwardingUsage(REGION_FORWARDING_RULES);

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Address globalForwardingAddress;
private Address instanceAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public class OperationTest {
private static final RegionOperationId REGION_OPERATION_ID =
RegionOperationId.of("project", "region", "op");

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Operation globalOperation;
private Operation regionOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class SnapshotTest {
private static final SnapshotInfo.StorageBytesStatus STORAGE_BYTES_STATUS =
SnapshotInfo.StorageBytesStatus.UP_TO_DATE;

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Snapshot snapshot;
private Snapshot expectedSnapshot;
Expand Down