Skip to content

Commit

Permalink
feat(managedidentities): update the API
Browse files Browse the repository at this point in the history
#### managedidentities:v1alpha1

The following keys were added:
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.description
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.flatPath
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.httpMethod
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.id
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameterOrder
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameters.domain.description
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameters.domain.location
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameters.domain.pattern
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameters.domain.required
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.parameters.domain.type
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.path
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.request.$ref
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.response.$ref
- resources.projects.resources.locations.resources.global.resources.domains.methods.domainJoinMachine.scopes
- schemas.DomainJoinMachineRequest.description
- schemas.DomainJoinMachineRequest.id
- schemas.DomainJoinMachineRequest.properties.ouName.description
- schemas.DomainJoinMachineRequest.properties.ouName.type
- schemas.DomainJoinMachineRequest.properties.vmIdToken.description
- schemas.DomainJoinMachineRequest.properties.vmIdToken.type
- schemas.DomainJoinMachineRequest.type
- schemas.DomainJoinMachineResponse.description
- schemas.DomainJoinMachineResponse.id
- schemas.DomainJoinMachineResponse.properties.domainJoinBlob.description
- schemas.DomainJoinMachineResponse.properties.domainJoinBlob.type
- schemas.DomainJoinMachineResponse.type

The following keys were changed:
- schemas.MaintenancePolicy.description

#### managedidentities:v1beta1

The following keys were changed:
- schemas.MaintenancePolicy.description

#### managedidentities:v1

The following keys were changed:
- schemas.MaintenancePolicy.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent d24bca1 commit 1a462c2
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 9 deletions.
4 changes: 2 additions & 2 deletions discovery/managedidentities-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@
}
}
},
"revision": "20220826",
"revision": "20221227",
"rootUrl": "https://managedidentities.googleapis.com/",
"schemas": {
"AttachTrustRequest": {
Expand Down Expand Up @@ -2371,7 +2371,7 @@
"type": "object"
},
"MaintenancePolicy": {
"description": "Defines policies to service maintenance events.",
"description": "LINT.IfChange Defines policies to service maintenance events.",
"id": "MaintenancePolicy",
"properties": {
"createTime": {
Expand Down
58 changes: 56 additions & 2 deletions discovery/managedidentities-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,34 @@
"https://www.googleapis.com/auth/cloud-platform"
]
},
"domainJoinMachine": {
"description": "DomainJoinMachine API joins a Compute Engine VM to the domain",
"flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:domainJoinMachine",
"httpMethod": "POST",
"id": "managedidentities.projects.locations.global.domains.domainJoinMachine",
"parameterOrder": [
"domain"
],
"parameters": {
"domain": {
"description": "Required. The domain resource name using the form: projects/{project_id}/locations/global/domains/{domain_name}",
"location": "path",
"pattern": "^projects/[^/]+/locations/global/domains/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1alpha1/{+domain}:domainJoinMachine",
"request": {
"$ref": "DomainJoinMachineRequest"
},
"response": {
"$ref": "DomainJoinMachineResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
},
"enableMigration": {
"description": "Enable Domain Migration",
"flatPath": "v1alpha1/projects/{projectsId}/locations/global/domains/{domainsId}:enableMigration",
Expand Down Expand Up @@ -1487,7 +1515,7 @@
}
}
},
"revision": "20220926",
"revision": "20221227",
"rootUrl": "https://managedidentities.googleapis.com/",
"schemas": {
"AttachTrustRequest": {
Expand Down Expand Up @@ -1837,6 +1865,32 @@
},
"type": "object"
},
"DomainJoinMachineRequest": {
"description": "DomainJoinMachineRequest is the request message for DomainJoinMachine method",
"id": "DomainJoinMachineRequest",
"properties": {
"ouName": {
"description": "Optional. OU name where the VM needs to be domain joined",
"type": "string"
},
"vmIdToken": {
"description": "Required. Full instance id token of compute engine VM to verify instance identity. More about this: https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature",
"type": "string"
}
},
"type": "object"
},
"DomainJoinMachineResponse": {
"description": "DomainJoinMachineResponse is the response message for DomainJoinMachine method",
"id": "DomainJoinMachineResponse",
"properties": {
"domainJoinBlob": {
"description": "Offline domain join blob as the response",
"type": "string"
}
},
"type": "object"
},
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
"id": "Empty",
Expand Down Expand Up @@ -2508,7 +2562,7 @@
"type": "object"
},
"MaintenancePolicy": {
"description": "Defines policies to service maintenance events.",
"description": "LINT.IfChange Defines policies to service maintenance events.",
"id": "MaintenancePolicy",
"properties": {
"createTime": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/managedidentities-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@
}
}
},
"revision": "20221027",
"revision": "20221227",
"rootUrl": "https://managedidentities.googleapis.com/",
"schemas": {
"AttachTrustRequest": {
Expand Down Expand Up @@ -2572,7 +2572,7 @@
"type": "object"
},
"MaintenancePolicy": {
"description": "Defines policies to service maintenance events.",
"description": "LINT.IfChange Defines policies to service maintenance events.",
"id": "MaintenancePolicy",
"properties": {
"createTime": {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/managedidentities/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ export namespace managedidentities_v1 {
name?: string | null;
}
/**
* Defines policies to service maintenance events.
* LINT.IfChange Defines policies to service maintenance events.
*/
export interface Schema$MaintenancePolicy {
/**
Expand Down
186 changes: 185 additions & 1 deletion src/apis/managedidentities/v1alpha1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,28 @@ export namespace managedidentities_v1alpha1 {
*/
updateTime?: string | null;
}
/**
* DomainJoinMachineRequest is the request message for DomainJoinMachine method
*/
export interface Schema$DomainJoinMachineRequest {
/**
* Optional. OU name where the VM needs to be domain joined
*/
ouName?: string | null;
/**
* Required. Full instance id token of compute engine VM to verify instance identity. More about this: https://cloud.google.com/compute/docs/instances/verifying-instance-identity#request_signature
*/
vmIdToken?: string | null;
}
/**
* DomainJoinMachineResponse is the response message for DomainJoinMachine method
*/
export interface Schema$DomainJoinMachineResponse {
/**
* Offline domain join blob as the response
*/
domainJoinBlob?: string | null;
}
/**
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
*/
Expand Down Expand Up @@ -830,7 +852,7 @@ export namespace managedidentities_v1alpha1 {
name?: string | null;
}
/**
* Defines policies to service maintenance events.
* LINT.IfChange Defines policies to service maintenance events.
*/
export interface Schema$MaintenancePolicy {
/**
Expand Down Expand Up @@ -2442,6 +2464,156 @@ export namespace managedidentities_v1alpha1 {
}
}

/**
* DomainJoinMachine API joins a Compute Engine VM to the domain
* @example
* ```js
* // Before running the sample:
* // - Enable the API at:
* // https://console.developers.google.com/apis/api/managedidentities.googleapis.com
* // - Login into gcloud by running:
* // `$ gcloud auth application-default login`
* // - Install the npm module by running:
* // `$ npm install googleapis`
*
* const {google} = require('googleapis');
* const managedidentities = google.managedidentities('v1alpha1');
*
* async function main() {
* const auth = new google.auth.GoogleAuth({
* // Scopes can be specified either as an array or as a single, space-delimited string.
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
* });
*
* // Acquire an auth client, and bind it to all future calls
* const authClient = await auth.getClient();
* google.options({auth: authClient});
*
* // Do the magic
* const res =
* await managedidentities.projects.locations.global.domains.domainJoinMachine(
* {
* // Required. The domain resource name using the form: projects/{project_id\}/locations/global/domains/{domain_name\}
* domain: 'projects/my-project/locations/global/domains/my-domain',
*
* // Request body metadata
* requestBody: {
* // request body parameters
* // {
* // "ouName": "my_ouName",
* // "vmIdToken": "my_vmIdToken"
* // }
* },
* }
* );
* console.log(res.data);
*
* // Example response
* // {
* // "domainJoinBlob": "my_domainJoinBlob"
* // }
* }
*
* main().catch(e => {
* console.error(e);
* throw e;
* });
*
* ```
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
domainJoinMachine(
params: Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
domainJoinMachine(
params?: Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine,
options?: MethodOptions
): GaxiosPromise<Schema$DomainJoinMachineResponse>;
domainJoinMachine(
params: Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
domainJoinMachine(
params: Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine,
options:
| MethodOptions
| BodyResponseCallback<Schema$DomainJoinMachineResponse>,
callback: BodyResponseCallback<Schema$DomainJoinMachineResponse>
): void;
domainJoinMachine(
params: Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine,
callback: BodyResponseCallback<Schema$DomainJoinMachineResponse>
): void;
domainJoinMachine(
callback: BodyResponseCallback<Schema$DomainJoinMachineResponse>
): void;
domainJoinMachine(
paramsOrCallback?:
| Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine
| BodyResponseCallback<Schema$DomainJoinMachineResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$DomainJoinMachineResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$DomainJoinMachineResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$DomainJoinMachineResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{} as Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl =
options.rootUrl || 'https://managedidentities.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1alpha1/{+domain}:domainJoinMachine').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'POST',
},
options
),
params,
requiredParams: ['domain'],
pathParams: ['domain'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$DomainJoinMachineResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$DomainJoinMachineResponse>(parameters);
}
}

/**
* Enable Domain Migration
* @example
Expand Down Expand Up @@ -4538,6 +4710,18 @@ export namespace managedidentities_v1alpha1 {
*/
requestBody?: Schema$DisableMigrationRequest;
}
export interface Params$Resource$Projects$Locations$Global$Domains$Domainjoinmachine
extends StandardParameters {
/**
* Required. The domain resource name using the form: projects/{project_id\}/locations/global/domains/{domain_name\}
*/
domain?: string;

/**
* Request body metadata
*/
requestBody?: Schema$DomainJoinMachineRequest;
}
export interface Params$Resource$Projects$Locations$Global$Domains$Enablemigration
extends StandardParameters {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/managedidentities/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ export namespace managedidentities_v1beta1 {
name?: string | null;
}
/**
* Defines policies to service maintenance events.
* LINT.IfChange Defines policies to service maintenance events.
*/
export interface Schema$MaintenancePolicy {
/**
Expand Down

0 comments on commit 1a462c2

Please sign in to comment.