-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Confluent Cloud ACL(s) API usage, so ACL(s) are finally created p…
…roperly (#444) * add few calls to translate String ServiceAccountLabels into proper AccountIDs as expected by the internal system * add configuration variable to control the confluent cloud translation future for service account id(s) * simplify topic only descriptor * add log information for when the translation process happends * update the julieops example for confluent cloud with more interesting configs * code simplification * more simplification * ammend typo * ammend formatting
- Loading branch information
Showing
11 changed files
with
180 additions
and
19 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
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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/purbon/kafka/topology/api/ccloud/response/ServiceAccountV1Response.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,16 @@ | ||
package com.purbon.kafka.topology.api.ccloud.response; | ||
|
||
import com.purbon.kafka.topology.model.cluster.ServiceAccountV1; | ||
import java.util.List; | ||
import java.util.Map; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
public class ServiceAccountV1Response { | ||
|
||
private List<ServiceAccountV1> users; | ||
private Map<String, Object> page_info; | ||
private String error; | ||
} |
34 changes: 34 additions & 0 deletions
34
src/main/java/com/purbon/kafka/topology/model/cluster/ServiceAccountV1.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,34 @@ | ||
package com.purbon.kafka.topology.model.cluster; | ||
|
||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@ToString | ||
public class ServiceAccountV1 { | ||
|
||
private long id; | ||
private String email; | ||
private String first_name; | ||
private String last_name; | ||
private int organization_id; | ||
private boolean deactivated; | ||
private String verified; | ||
private String created; | ||
private String modified; | ||
private String service_name; | ||
private String service_description; | ||
private boolean service_account; | ||
private Map<String, Object> sso; | ||
private Map<String, Object> preferences; | ||
private boolean internal; | ||
private String resource_id; | ||
private String deactivated_at; | ||
private String social_connection; | ||
private String auth_type; | ||
} |
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
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