Skip to content
Open
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
36 changes: 23 additions & 13 deletions src/main/java/io/vinyldns/java/VinylDNSClient.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java;
Expand Down Expand Up @@ -259,6 +261,16 @@ VinylDNSResponse<ListRecordSetChangesResponse> listRecordSetChanges(
*/
VinylDNSResponse<ListGroupActivityResponse> listGroupActivity(ListGroupActivityRequest request);

/**
* Retrieves a group change for a groupChangeId.
*
* @param request See {@link GetGroupChangeRequest GetGroupChangeRequest}
* @return {@link VinylDNSSuccessResponse VinylDNSSuccessResponse&lt;GroupChange&gt;} in case of
* success and {@link VinylDNSFailureResponse VinylDNSFailureResponse&lt;GroupChange&gt;} in
* case of failure.
*/
VinylDNSResponse<GroupChange> getGroupChange(GetGroupChangeRequest request);

// Batch
/**
* Retrieves the most recent 100 batch changes created by the user. This call will return a subset
Expand Down Expand Up @@ -364,11 +376,9 @@ VinylDNSResponse<ListRecordSetChangesResponse> listRecordSetChanges(
* minimum of two alpha-numeric characters is required.
*
* @param request See {@link SearchRecordSetsRequest SearchRecordSetsRequest Model}
* @return {@link VinylDNSSuccessResponse
* VinylDNSSuccessResponse&lt;SearchRecordSetsResponse&gt;} in case of success and {@link
* VinylDNSFailureResponse VinylDNSFailureResponse&lt;SearchRecordSetsResponse&gt;} in case
* of failure
* @return {@link VinylDNSSuccessResponse VinylDNSSuccessResponse&lt;SearchRecordSetsResponse&gt;}
* in case of success and {@link VinylDNSFailureResponse
* VinylDNSFailureResponse&lt;SearchRecordSetsResponse&gt;} in case of failure
*/
VinylDNSResponse<SearchRecordSetsResponse> searchRecordSets(
SearchRecordSetsRequest request);
VinylDNSResponse<SearchRecordSetsResponse> searchRecordSets(SearchRecordSetsRequest request);
}
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/VinylDNSClientConfig.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java;
Expand Down
37 changes: 24 additions & 13 deletions src/main/java/io/vinyldns/java/VinylDNSClientImpl.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java;
Expand Down Expand Up @@ -247,7 +249,7 @@ public VinylDNSResponse<ListGroupActivityResponse> listGroupActivity(
new VinylDNSRequest<>(Methods.GET.name(), getBaseUrl(), path, null);

if (request.getStartFrom() != null) {
vinylDNSRequest.addParameter("startFrom", request.getStartFrom());
vinylDNSRequest.addParameter("startFrom", request.getStartFrom().toString());
}

if (request.getMaxItems() != null) {
Expand All @@ -257,6 +259,16 @@ public VinylDNSResponse<ListGroupActivityResponse> listGroupActivity(
return executeRequest(vinylDNSRequest, ListGroupActivityResponse.class);
}

@Override
public VinylDNSResponse<GroupChange> getGroupChange(GetGroupChangeRequest request) {
String path = "groups/change/" + request.getId();

VinylDNSRequest<Void> vinylDNSRequest =
new VinylDNSRequest<>(Methods.GET.name(), getBaseUrl(), path, null);

return executeRequest(vinylDNSRequest, GroupChange.class);
}

@Override
public VinylDNSResponse<RecordSetChange> createRecordSet(CreateRecordSetRequest request) {
String path = "zones/" + request.getZoneId() + "/recordsets";
Expand Down Expand Up @@ -410,11 +422,11 @@ public VinylDNSResponse<BatchResponse> cancelBatchChanges(String id) {

@Override
public VinylDNSResponse<SearchRecordSetsResponse> searchRecordSets(
SearchRecordSetsRequest request) {
SearchRecordSetsRequest request) {
String path = "recordsets";

VinylDNSRequest<Void> vinylDNSRequest =
new VinylDNSRequest<>(Methods.GET.name(), getBaseUrl(), path, null);
new VinylDNSRequest<>(Methods.GET.name(), getBaseUrl(), path, null);

if (request.getStartFrom() != null) {
vinylDNSRequest.addParameter("startFrom", request.getStartFrom());
Expand All @@ -429,12 +441,11 @@ public VinylDNSResponse<SearchRecordSetsResponse> searchRecordSets(
}

if (request.getNameSort() != null) {
vinylDNSRequest.addParameter( "nameSort", request.getNameSort().name());
vinylDNSRequest.addParameter("nameSort", request.getNameSort().name());
}

if (request.getRecordOwnerGroupFilter() != null) {
vinylDNSRequest.addParameter( "recordOwnerGroupFilter",
request.getRecordOwnerGroupFilter());
vinylDNSRequest.addParameter("recordOwnerGroupFilter", request.getRecordOwnerGroupFilter());
}

return executeRequest(vinylDNSRequest, SearchRecordSetsResponse.class);
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/VinylDNSRequest.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.handlers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.handlers;
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/model/Methods.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.model;
Expand Down
23 changes: 18 additions & 5 deletions src/main/java/io/vinyldns/java/model/Order.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* 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.
*/
package io.vinyldns.java.model;

public enum Order
{
ASC,
DESC

public enum Order {
ASC,
DESC
}
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/model/acl/ACLRule.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.model.acl;
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/model/acl/AccessLevel.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.model.acl;
Expand Down
19 changes: 10 additions & 9 deletions src/main/java/io/vinyldns/java/model/batch/AddChangeInput.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.model.batch;
Expand Down Expand Up @@ -41,8 +43,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AddChangeInput that = (AddChangeInput) o;
return super.equals(o)
&& Objects.equals(this.ttl, that.ttl);
return super.equals(o) && Objects.equals(this.ttl, that.ttl);
}

@Override
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/io/vinyldns/java/model/batch/AddSingleChange.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/**
/*
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
* 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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>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
* 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.
*/
package io.vinyldns.java.model.batch;
Expand Down
Loading