-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add types for WorkstationConfig
- Loading branch information
1 parent
93278d7
commit 86622f0
Showing
9 changed files
with
2,212 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2024 Google 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 v1beta1 | ||
|
||
type WorkstationClusterRef struct { | ||
/* The WorkstationCluster selfLink, when not managed by Config Connector. */ | ||
External string `json:"external,omitempty"` | ||
/* The `name` field of a `WorkstationCluster` resource. */ | ||
Name string `json:"name,omitempty"` | ||
/* The `namespace` field of a `WorkstationCluster` resource. */ | ||
Namespace string `json:"namespace,omitempty"` | ||
} |
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,44 @@ | ||
// Copyright 2024 Google 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 v1alpha1 | ||
|
||
type WorkstationAnnotation struct { | ||
// Key for the annotation. | ||
Key string `json:"key,omitempty"` | ||
|
||
// Value for the annotation. | ||
Value string `json:"value,omitempty"` | ||
} | ||
|
||
type WorkstationLabel struct { | ||
// Key for the label. | ||
Key string `json:"key,omitempty"` | ||
|
||
// Value for the label. | ||
Value string `json:"value,omitempty"` | ||
} | ||
|
||
// +kcc:proto=google.rpc.Status | ||
type WorkstationServiceGCPCondition struct { | ||
// The status code, which should be an enum value of | ||
// [google.rpc.Code][google.rpc.Code]. | ||
Code *int `json:"code,omitempty"` | ||
|
||
// A developer-facing error message, which should be in English. Any | ||
// user-facing error message should be localized and sent in the | ||
// [google.rpc.Status.details][google.rpc.Status.details] field, or localized | ||
// by the client. | ||
Message *string `json:"message,omitempty"` | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.