Skip to content

feat: direct link macsec changes #135

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* AuthenticationKeyIdentity.
*
* Classes which extend this class:
* - AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity
* - AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity
*/
public class AuthenticationKeyIdentity extends GenericModel {

protected String crn;

protected AuthenticationKeyIdentity() { }

/**
* Gets the crn.
*
* The CRN of the key.
*
* @return the crn
*/
public String crn() {
return crn;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

/**
* A [Hyper Protect Crypto Service Standard Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started).
*/
public class AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity extends AuthenticationKeyIdentity {


/**
* Builder.
*/
public static class Builder {
private String crn;

/**
* Instantiates a new Builder from an existing AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity instance.
*
* @param authenticationKeyIdentityHpcsAuthenticationKeyIdentity the instance to initialize the Builder with
*/
public Builder(AuthenticationKeyIdentity authenticationKeyIdentityHpcsAuthenticationKeyIdentity) {
this.crn = authenticationKeyIdentityHpcsAuthenticationKeyIdentity.crn;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Instantiates a new builder with required properties.
*
* @param crn the crn
*/
public Builder(String crn) {
this.crn = crn;
}

/**
* Builds a AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity.
*
* @return the new AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity instance
*/
public AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity build() {
return new AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity(this);
}

/**
* Set the crn.
*
* @param crn the crn
* @return the AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity builder
*/
public Builder crn(String crn) {
this.crn = crn;
return this;
}
}

protected AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity() { }

protected AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.crn,
"crn cannot be null");
crn = builder.crn;
}

/**
* New builder.
*
* @return a AuthenticationKeyIdentityHpcsAuthenticationKeyIdentity builder
*/
public Builder newBuilder() {
return new Builder(this);
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

/**
* A [Key Protect Standard Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial).
*/
public class AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity extends AuthenticationKeyIdentity {


/**
* Builder.
*/
public static class Builder {
private String crn;

/**
* Instantiates a new Builder from an existing AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity instance.
*
* @param authenticationKeyIdentityKeyProtectAuthenticationKeyIdentity the instance to initialize the Builder with
*/
public Builder(AuthenticationKeyIdentity authenticationKeyIdentityKeyProtectAuthenticationKeyIdentity) {
this.crn = authenticationKeyIdentityKeyProtectAuthenticationKeyIdentity.crn;
}

/**
* Instantiates a new builder.
*/
public Builder() {
}

/**
* Instantiates a new builder with required properties.
*
* @param crn the crn
*/
public Builder(String crn) {
this.crn = crn;
}

/**
* Builds a AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity.
*
* @return the new AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity instance
*/
public AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity build() {
return new AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity(this);
}

/**
* Set the crn.
*
* @param crn the crn
* @return the AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity builder
*/
public Builder crn(String crn) {
this.crn = crn;
return this;
}
}

protected AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity() { }

protected AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.crn,
"crn cannot be null");
crn = builder.crn;
}

/**
* New builder.
*
* @return a AuthenticationKeyIdentityKeyProtectAuthenticationKeyIdentity builder
*/
public Builder newBuilder() {
return new Builder(this);
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
* AuthenticationKeyReference.
*
* Classes which extend this class:
* - AuthenticationKeyReferenceKeyProtectAuthenticationKeyReference
* - AuthenticationKeyReferenceHpcsAuthenticationKeyReference
*/
public class AuthenticationKeyReference extends GenericModel {

protected String crn;

protected AuthenticationKeyReference() { }

/**
* Gets the crn.
*
* The CRN of the referenced key.
*
* @return the crn
*/
public String getCrn() {
return crn;
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

/**
* A reference to a [Hyper Protect Crypto Service Standard
* Key](https://cloud.ibm.com/docs/hs-crypto?topic=hs-crypto-get-started).
*/
public class AuthenticationKeyReferenceHpcsAuthenticationKeyReference extends AuthenticationKeyReference {


protected AuthenticationKeyReferenceHpcsAuthenticationKeyReference() { }
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* (C) Copyright IBM Corp. 2025.
*
* 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.networking.direct_link.v1.model;

/**
* A reference to a [Key Protect Standard
* Key](https://cloud.ibm.com/docs/key-protect?topic=key-protect-getting-started-tutorial).
*/
public class AuthenticationKeyReferenceKeyProtectAuthenticationKeyReference extends AuthenticationKeyReference {


protected AuthenticationKeyReferenceKeyProtectAuthenticationKeyReference() { }
}

Loading