Skip to content

Commit

Permalink
feat(oslogin): update the API
Browse files Browse the repository at this point in the history
#### oslogin:v1alpha
The following keys were added:
- schemas.ImportSshPublicKeyResponse.properties.details.description
- schemas.ImportSshPublicKeyResponse.properties.details.type

The following keys were changed:
- resources.users.methods.getLoginProfile.parameters.name.description
- resources.users.resources.projects.methods.delete.parameters.name.description
- resources.users.resources.sshPublicKeys.methods.delete.parameters.name.description
- resources.users.resources.sshPublicKeys.methods.get.parameters.name.description
- resources.users.resources.sshPublicKeys.methods.patch.parameters.name.description
- schemas.ImportSshPublicKeyResponse.description
- schemas.LoginProfile.properties.name.description

#### oslogin:v1beta
The following keys were added:
- schemas.ImportSshPublicKeyResponse.properties.details.description
- schemas.ImportSshPublicKeyResponse.properties.details.type

#### oslogin:v1
The following keys were added:
- schemas.ImportSshPublicKeyResponse.properties.details.description
- schemas.ImportSshPublicKeyResponse.properties.details.type
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent 47b89a3 commit c027f96
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 27 deletions.
6 changes: 5 additions & 1 deletion discovery/oslogin-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
}
}
},
"revision": "20200801",
"revision": "20200925",
"rootUrl": "https://oslogin.googleapis.com/",
"schemas": {
"Empty": {
Expand All @@ -319,6 +319,10 @@
"description": "A response message for importing an SSH public key.",
"id": "ImportSshPublicKeyResponse",
"properties": {
"details": {
"description": "Detailed information about import results.",
"type": "string"
},
"loginProfile": {
"$ref": "LoginProfile",
"description": "The login profile information for the user."
Expand Down
20 changes: 12 additions & 8 deletions discovery/oslogin-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
],
"parameters": {
"name": {
"description": "The unique ID for the user in format `users/{user}`.",
"description": "Required. The unique ID for the user in format `users/{user}`.",
"location": "path",
"pattern": "^users/[^/]+$",
"required": true,
Expand Down Expand Up @@ -217,7 +217,7 @@
],
"parameters": {
"name": {
"description": "A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.",
"description": "Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.",
"location": "path",
"pattern": "^users/[^/]+/projects/[^/]+$",
"required": true,
Expand Down Expand Up @@ -262,7 +262,7 @@
],
"parameters": {
"name": {
"description": "The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"description": "Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"location": "path",
"pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
"required": true,
Expand All @@ -288,7 +288,7 @@
],
"parameters": {
"name": {
"description": "The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"description": "Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"location": "path",
"pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
"required": true,
Expand All @@ -314,7 +314,7 @@
],
"parameters": {
"name": {
"description": "The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"description": "Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.",
"location": "path",
"pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
"required": true,
Expand Down Expand Up @@ -344,7 +344,7 @@
}
}
},
"revision": "20200801",
"revision": "20200925",
"rootUrl": "https://oslogin.googleapis.com/",
"schemas": {
"Empty": {
Expand All @@ -354,9 +354,13 @@
"type": "object"
},
"ImportSshPublicKeyResponse": {
"description": "A response message from importing an SSH public key.",
"description": "A response message for importing an SSH public key.",
"id": "ImportSshPublicKeyResponse",
"properties": {
"details": {
"description": "Detailed information about import results.",
"type": "string"
},
"loginProfile": {
"$ref": "LoginProfile",
"description": "The login profile information for the user."
Expand All @@ -369,7 +373,7 @@
"id": "LoginProfile",
"properties": {
"name": {
"description": "A unique user ID.",
"description": "Required. A unique user ID.",
"type": "string"
},
"posixAccounts": {
Expand Down
6 changes: 5 additions & 1 deletion discovery/oslogin-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
}
}
},
"revision": "20200801",
"revision": "20200925",
"rootUrl": "https://oslogin.googleapis.com/",
"schemas": {
"Empty": {
Expand All @@ -327,6 +327,10 @@
"description": "A response message for importing an SSH public key.",
"id": "ImportSshPublicKeyResponse",
"properties": {
"details": {
"description": "Detailed information about import results.",
"type": "string"
},
"loginProfile": {
"$ref": "LoginProfile",
"description": "The login profile information for the user."
Expand Down
5 changes: 5 additions & 0 deletions src/apis/oslogin/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ export namespace oslogin_v1 {
* A response message for importing an SSH public key.
*/
export interface Schema$ImportSshPublicKeyResponse {
/**
* Detailed information about import results.
*/
details?: string | null;
/**
* The login profile information for the user.
*/
Expand Down Expand Up @@ -430,6 +434,7 @@ export namespace oslogin_v1 {
*
* // Example response
* // {
* // "details": "my_details",
* // "loginProfile": {}
* // }
* }
Expand Down
39 changes: 22 additions & 17 deletions src/apis/oslogin/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,13 @@ export namespace oslogin_v1alpha {
*/
export interface Schema$Empty {}
/**
* A response message from importing an SSH public key.
* A response message for importing an SSH public key.
*/
export interface Schema$ImportSshPublicKeyResponse {
/**
* Detailed information about import results.
*/
details?: string | null;
/**
* The login profile information for the user.
*/
Expand All @@ -145,7 +149,7 @@ export namespace oslogin_v1alpha {
*/
export interface Schema$LoginProfile {
/**
* A unique user ID.
* Required. A unique user ID.
*/
name?: string | null;
/**
Expand Down Expand Up @@ -270,7 +274,7 @@ export namespace oslogin_v1alpha {
*
* // Do the magic
* const res = await oslogin.users.getLoginProfile({
* // The unique ID for the user in format `users/{user}`.
* // Required. The unique ID for the user in format `users/{user}`.
* name: 'users/my-user',
* // The type of operating system associated with the account.
* operatingSystemType: 'placeholder-value',
Expand Down Expand Up @@ -298,7 +302,7 @@ export namespace oslogin_v1alpha {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The unique ID for the user in format `users/{user}`.
* @param {string} params.name Required. The unique ID for the user in format `users/{user}`.
* @param {string=} params.operatingSystemType The type of operating system associated with the account.
* @param {string=} params.projectId The project ID of the Google Cloud Platform project.
* @param {string=} params.systemId A system ID for filtering the results of the request.
Expand Down Expand Up @@ -435,6 +439,7 @@ export namespace oslogin_v1alpha {
*
* // Example response
* // {
* // "details": "my_details",
* // "loginProfile": {}
* // }
* }
Expand Down Expand Up @@ -545,7 +550,7 @@ export namespace oslogin_v1alpha {
export interface Params$Resource$Users$Getloginprofile
extends StandardParameters {
/**
* The unique ID for the user in format `users/{user}`.
* Required. The unique ID for the user in format `users/{user}`.
*/
name?: string;
/**
Expand Down Expand Up @@ -614,7 +619,7 @@ export namespace oslogin_v1alpha {
*
* // Do the magic
* const res = await oslogin.users.projects.delete({
* // A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
* // Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
* name: 'users/my-user/projects/my-project',
* // The type of operating system associated with the account.
* operatingSystemType: 'placeholder-value',
Expand All @@ -634,7 +639,7 @@ export namespace oslogin_v1alpha {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
* @param {string} params.name Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
* @param {string=} params.operatingSystemType The type of operating system associated with the account.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -720,7 +725,7 @@ export namespace oslogin_v1alpha {
export interface Params$Resource$Users$Projects$Delete
extends StandardParameters {
/**
* A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
* Required. A reference to the POSIX account to update. POSIX accounts are identified by the project ID they are associated with. A reference to the POSIX account is in format `users/{user}/projects/{project}`.
*/
name?: string;
/**
Expand Down Expand Up @@ -765,7 +770,7 @@ export namespace oslogin_v1alpha {
*
* // Do the magic
* const res = await oslogin.users.sshPublicKeys.delete({
* // The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* // Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* name: 'users/my-user/sshPublicKeys/my-sshPublicKey',
* });
* console.log(res.data);
Expand All @@ -783,7 +788,7 @@ export namespace oslogin_v1alpha {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {string} params.name Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -894,7 +899,7 @@ export namespace oslogin_v1alpha {
*
* // Do the magic
* const res = await oslogin.users.sshPublicKeys.get({
* // The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* // Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* name: 'users/my-user/sshPublicKeys/my-sshPublicKey',
* });
* console.log(res.data);
Expand All @@ -917,7 +922,7 @@ export namespace oslogin_v1alpha {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {string} params.name Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
* @return {object} Request object
Expand Down Expand Up @@ -1028,7 +1033,7 @@ export namespace oslogin_v1alpha {
*
* // Do the magic
* const res = await oslogin.users.sshPublicKeys.patch({
* // The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* // Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* name: 'users/my-user/sshPublicKeys/my-sshPublicKey',
* // Mask to control which fields get updated. Updates all if not present.
* updateMask: 'placeholder-value',
Expand Down Expand Up @@ -1064,7 +1069,7 @@ export namespace oslogin_v1alpha {
* @memberOf! ()
*
* @param {object} params Parameters for request
* @param {string} params.name The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {string} params.name Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* @param {string=} params.updateMask Mask to control which fields get updated. Updates all if not present.
* @param {().SshPublicKey} params.requestBody Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -1151,21 +1156,21 @@ export namespace oslogin_v1alpha {
export interface Params$Resource$Users$Sshpublickeys$Delete
extends StandardParameters {
/**
* The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
*/
name?: string;
}
export interface Params$Resource$Users$Sshpublickeys$Get
extends StandardParameters {
/**
* The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
*/
name?: string;
}
export interface Params$Resource$Users$Sshpublickeys$Patch
extends StandardParameters {
/**
* The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
* Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
*/
name?: string;
/**
Expand Down
5 changes: 5 additions & 0 deletions src/apis/oslogin/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ export namespace oslogin_v1beta {
* A response message for importing an SSH public key.
*/
export interface Schema$ImportSshPublicKeyResponse {
/**
* Detailed information about import results.
*/
details?: string | null;
/**
* The login profile information for the user.
*/
Expand Down Expand Up @@ -432,6 +436,7 @@ export namespace oslogin_v1beta {
*
* // Example response
* // {
* // "details": "my_details",
* // "loginProfile": {}
* // }
* }
Expand Down

0 comments on commit c027f96

Please sign in to comment.