-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): Updated java-sdk to adopt Code Engine API specification ch…
…anges
- Loading branch information
1 parent
d3dc0bd
commit 015ba72
Showing
31 changed files
with
2,782 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
.../main/java/com/ibm/cloud/code_engine/code_engine/v2/model/AllowedOutboundDestination.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2024. | ||
* | ||
* 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 com.ibm.cloud.code_engine.code_engine.v2.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.ibm.cloud.sdk.core.service.model.GenericModel; | ||
|
||
/** | ||
* AllowedOutboundDestination Describes the model of an allowed outbound destination. | ||
* | ||
* Classes which extend this class: | ||
* - AllowedOutboundDestinationCidrBlockData | ||
*/ | ||
public class AllowedOutboundDestination extends GenericModel { | ||
|
||
/** | ||
* Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'. | ||
*/ | ||
public interface Type { | ||
/** cidr_block. */ | ||
String CIDR_BLOCK = "cidr_block"; | ||
} | ||
|
||
@SerializedName("entity_tag") | ||
protected String entityTag; | ||
protected String type; | ||
@SerializedName("cidr_block") | ||
protected String cidrBlock; | ||
protected String name; | ||
|
||
protected AllowedOutboundDestination() { } | ||
|
||
/** | ||
* Gets the entityTag. | ||
* | ||
* The version of the allowed outbound destination, which is used to achieve optimistic locking. | ||
* | ||
* @return the entityTag | ||
*/ | ||
public String getEntityTag() { | ||
return entityTag; | ||
} | ||
|
||
/** | ||
* Gets the type. | ||
* | ||
* Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'. | ||
* | ||
* @return the type | ||
*/ | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
/** | ||
* Gets the cidrBlock. | ||
* | ||
* The IP address range. | ||
* | ||
* @return the cidrBlock | ||
*/ | ||
public String getCidrBlock() { | ||
return cidrBlock; | ||
} | ||
|
||
/** | ||
* Gets the name. | ||
* | ||
* The name of the CIDR block. | ||
* | ||
* @return the name | ||
*/ | ||
public String getName() { | ||
return name; | ||
} | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
...m/ibm/cloud/code_engine/code_engine/v2/model/AllowedOutboundDestinationCidrBlockData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* (C) Copyright IBM Corp. 2024. | ||
* | ||
* 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 com.ibm.cloud.code_engine.code_engine.v2.model; | ||
|
||
/** | ||
* Allowed outbound destination CIDR block. | ||
*/ | ||
public class AllowedOutboundDestinationCidrBlockData extends AllowedOutboundDestination { | ||
|
||
/** | ||
* Specify the type of the allowed outbound destination. Allowed types are: 'cidr_block'. | ||
*/ | ||
public interface Type { | ||
/** cidr_block. */ | ||
String CIDR_BLOCK = "cidr_block"; | ||
} | ||
|
||
|
||
protected AllowedOutboundDestinationCidrBlockData() { } | ||
} | ||
|
Oops, something went wrong.