Constructor
new OsConfigZonalServiceClient(optionsopt, gaxInstanceopt)
Construct an instance of OsConfigZonalServiceClient.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. The options accepted by the constructor are described in detail in this document. The common options are: Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||
gaxInstance |
gax |
<optional> |
loaded instance of |
Members
apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
port
The port for this API service.
scopes
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
The DNS address for this API service.
Methods
(async) checkCreateOSPolicyAssignmentProgress(name) → {Promise}
Check the status of the long running operation returned by createOSPolicyAssignment()
.
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
Type | Description |
---|---|
Promise |
|
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name in the form:
* projects/{project}/locations/{location}
*/
// const parent = 'abc123'
/**
* Required. The OS policy assignment to be created.
*/
// const osPolicyAssignment = {}
/**
* Required. The logical name of the OS policy assignment in the project
* with the following restrictions:
* * Must contain only lowercase letters, numbers, and hyphens.
* * Must start with a letter.
* * Must be between 1-63 characters.
* * Must end with a number or a letter.
* * Must be unique within the project.
*/
// const osPolicyAssignmentId = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callCreateOSPolicyAssignment() {
// Construct request
const request = {
parent,
osPolicyAssignment,
osPolicyAssignmentId,
};
// Run request
const [operation] = await osconfigClient.createOSPolicyAssignment(request);
const [response] = await operation.promise();
console.log(response);
}
callCreateOSPolicyAssignment();
(async) checkDeleteOSPolicyAssignmentProgress(name) → {Promise}
Check the status of the long running operation returned by deleteOSPolicyAssignment()
.
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
Type | Description |
---|---|
Promise |
|
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the OS policy assignment to be deleted
*/
// const name = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callDeleteOSPolicyAssignment() {
// Construct request
const request = {
name,
};
// Run request
const [operation] = await osconfigClient.deleteOSPolicyAssignment(request);
const [response] = await operation.promise();
console.log(response);
}
callDeleteOSPolicyAssignment();
(async) checkUpdateOSPolicyAssignmentProgress(name) → {Promise}
Check the status of the long running operation returned by updateOSPolicyAssignment()
.
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
The operation name that will be passed. |
Returns:
Type | Description |
---|---|
Promise |
|
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The updated OS policy assignment.
*/
// const osPolicyAssignment = {}
/**
* Optional. Field mask that controls which fields of the assignment should be
* updated.
*/
// const updateMask = {}
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callUpdateOSPolicyAssignment() {
// Construct request
const request = {
osPolicyAssignment,
};
// Run request
const [operation] = await osconfigClient.updateOSPolicyAssignment(request);
const [response] = await operation.promise();
console.log(response);
}
callUpdateOSPolicyAssignment();
close() → {Promise}
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves when the client is closed. |
getProjectId() → {Promise}
Return the project ID used by this class.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves to string containing the project ID. |
initialize() → {Promise}
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns:
Type | Description |
---|---|
Promise |
A promise that resolves to an authenticated service stub. |
inventoryPath(project, location, instance) → {string}
Return a fully-qualified inventory resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
location |
string | |
instance |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
listInventoriesAsync(request, optionsopt) → {Object}
Equivalent to listInventories
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Inventory. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name.
* Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
*/
// const parent = 'abc123'
/**
* Inventory view indicating what information should be included in the
* inventory resource. If unspecified, the default view is BASIC.
*/
// const view = {}
/**
* The maximum number of results to return.
*/
// const pageSize = 1234
/**
* A pagination token returned from a previous call to
* `ListInventories` that indicates where this listing
* should continue from.
*/
// const pageToken = 'abc123'
/**
* If provided, this field specifies the criteria that must be met by a
* `Inventory` API resource to be included in the response.
*/
// const filter = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callListInventories() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await osconfigClient.listInventoriesAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListInventories();
listInventoriesStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing Inventory on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listOSPolicyAssignmentReportsAsync(request, optionsopt) → {Object}
Equivalent to listOSPolicyAssignmentReports
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing OSPolicyAssignmentReport. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name.
* Format:
* `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
* For `{project}`, either `project-number` or `project-id` can be provided.
* For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
* provided. If '-' is provided, the response will include
* OSPolicyAssignmentReports for all instances in the project/location.
* For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
* is provided, the response will include OSPolicyAssignmentReports for all
* OSPolicyAssignments in the project/location.
* Either {instance} or {assignment} must be `-`.
* For example:
* `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
* returns all reports for the instance
* `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
* returns all the reports for the given assignment across all instances.
* `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
* returns all the reports for all assignments across all instances.
*/
// const parent = 'abc123'
/**
* The maximum number of results to return.
*/
// const pageSize = 1234
/**
* If provided, this field specifies the criteria that must be met by the
* `OSPolicyAssignmentReport` API resource that is included in the response.
*/
// const filter = 'abc123'
/**
* A pagination token returned from a previous call to the
* `ListOSPolicyAssignmentReports` method that indicates where this listing
* should continue from.
*/
// const pageToken = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callListOSPolicyAssignmentReports() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await osconfigClient.listOSPolicyAssignmentReportsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListOSPolicyAssignmentReports();
listOSPolicyAssignmentReportsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing OSPolicyAssignmentReport on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listOSPolicyAssignmentRevisionsAsync(request, optionsopt) → {Object}
Equivalent to listOSPolicyAssignmentRevisions
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing OSPolicyAssignment. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the OS policy assignment to list revisions for.
*/
// const name = 'abc123'
/**
* The maximum number of revisions to return.
*/
// const pageSize = 1234
/**
* A pagination token returned from a previous call to
* `ListOSPolicyAssignmentRevisions` that indicates where this listing should
* continue from.
*/
// const pageToken = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callListOSPolicyAssignmentRevisions() {
// Construct request
const request = {
name,
};
// Run request
const iterable = await osconfigClient.listOSPolicyAssignmentRevisionsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListOSPolicyAssignmentRevisions();
listOSPolicyAssignmentRevisionsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing OSPolicyAssignment on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listOSPolicyAssignmentsAsync(request, optionsopt) → {Object}
Equivalent to listOSPolicyAssignments
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing OSPolicyAssignment. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name.
*/
// const parent = 'abc123'
/**
* The maximum number of assignments to return.
*/
// const pageSize = 1234
/**
* A pagination token returned from a previous call to
* `ListOSPolicyAssignments` that indicates where this listing should continue
* from.
*/
// const pageToken = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callListOSPolicyAssignments() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await osconfigClient.listOSPolicyAssignmentsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListOSPolicyAssignments();
listOSPolicyAssignmentsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing OSPolicyAssignment on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
listVulnerabilityReportsAsync(request, optionsopt) → {Object}
Equivalent to listVulnerabilityReports
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Object |
An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing VulnerabilityReport. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
Example
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource name.
* Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
*/
// const parent = 'abc123'
/**
* The maximum number of results to return.
*/
// const pageSize = 1234
/**
* A pagination token returned from a previous call to
* `ListVulnerabilityReports` that indicates where this listing
* should continue from.
*/
// const pageToken = 'abc123'
/**
* If provided, this field specifies the criteria that must be met by a
* `vulnerabilityReport` API resource to be included in the response.
*/
// const filter = 'abc123'
// Imports the Osconfig library
const {OsConfigZonalServiceClient} = require('@google-cloud/os-config').v1;
// Instantiates a client
const osconfigClient = new OsConfigZonalServiceClient();
async function callListVulnerabilityReports() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await osconfigClient.listVulnerabilityReportsAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListVulnerabilityReports();
listVulnerabilityReportsStream(request, optionsopt) → {Stream}
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
Returns:
Type | Description |
---|---|
Stream |
An object stream which emits an object representing VulnerabilityReport on 'data' event.
The client library will perform auto-pagination by default: it will call the API as many
times as needed. Note that it can affect your quota.
We recommend using |
matchAssignmentFromOSPolicyAssignmentReportName(oSPolicyAssignmentReportName) → {string}
Parse the assignment from OSPolicyAssignmentReport resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentReportName |
string |
A fully-qualified path representing OSPolicyAssignmentReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the assignment. |
matchInstanceFromInventoryName(inventoryName) → {string}
Parse the instance from Inventory resource.
Parameters:
Name | Type | Description |
---|---|---|
inventoryName |
string |
A fully-qualified path representing Inventory resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the instance. |
matchInstanceFromOSPolicyAssignmentReportName(oSPolicyAssignmentReportName) → {string}
Parse the instance from OSPolicyAssignmentReport resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentReportName |
string |
A fully-qualified path representing OSPolicyAssignmentReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the instance. |
matchInstanceFromVulnerabilityReportName(vulnerabilityReportName) → {string}
Parse the instance from VulnerabilityReport resource.
Parameters:
Name | Type | Description |
---|---|---|
vulnerabilityReportName |
string |
A fully-qualified path representing VulnerabilityReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the instance. |
matchLocationFromInventoryName(inventoryName) → {string}
Parse the location from Inventory resource.
Parameters:
Name | Type | Description |
---|---|---|
inventoryName |
string |
A fully-qualified path representing Inventory resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the location. |
matchLocationFromOSPolicyAssignmentName(oSPolicyAssignmentName) → {string}
Parse the location from OSPolicyAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentName |
string |
A fully-qualified path representing OSPolicyAssignment resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the location. |
matchLocationFromOSPolicyAssignmentReportName(oSPolicyAssignmentReportName) → {string}
Parse the location from OSPolicyAssignmentReport resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentReportName |
string |
A fully-qualified path representing OSPolicyAssignmentReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the location. |
matchLocationFromVulnerabilityReportName(vulnerabilityReportName) → {string}
Parse the location from VulnerabilityReport resource.
Parameters:
Name | Type | Description |
---|---|---|
vulnerabilityReportName |
string |
A fully-qualified path representing VulnerabilityReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the location. |
matchOsPolicyAssignmentFromOSPolicyAssignmentName(oSPolicyAssignmentName) → {string}
Parse the os_policy_assignment from OSPolicyAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentName |
string |
A fully-qualified path representing OSPolicyAssignment resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the os_policy_assignment. |
matchPatchDeploymentFromPatchDeploymentName(patchDeploymentName) → {string}
Parse the patch_deployment from PatchDeployment resource.
Parameters:
Name | Type | Description |
---|---|---|
patchDeploymentName |
string |
A fully-qualified path representing PatchDeployment resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the patch_deployment. |
matchPatchJobFromPatchJobName(patchJobName) → {string}
Parse the patch_job from PatchJob resource.
Parameters:
Name | Type | Description |
---|---|---|
patchJobName |
string |
A fully-qualified path representing PatchJob resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the patch_job. |
matchProjectFromInventoryName(inventoryName) → {string}
Parse the project from Inventory resource.
Parameters:
Name | Type | Description |
---|---|---|
inventoryName |
string |
A fully-qualified path representing Inventory resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
matchProjectFromOSPolicyAssignmentName(oSPolicyAssignmentName) → {string}
Parse the project from OSPolicyAssignment resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentName |
string |
A fully-qualified path representing OSPolicyAssignment resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
matchProjectFromOSPolicyAssignmentReportName(oSPolicyAssignmentReportName) → {string}
Parse the project from OSPolicyAssignmentReport resource.
Parameters:
Name | Type | Description |
---|---|---|
oSPolicyAssignmentReportName |
string |
A fully-qualified path representing OSPolicyAssignmentReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
matchProjectFromPatchDeploymentName(patchDeploymentName) → {string}
Parse the project from PatchDeployment resource.
Parameters:
Name | Type | Description |
---|---|---|
patchDeploymentName |
string |
A fully-qualified path representing PatchDeployment resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
matchProjectFromPatchJobName(patchJobName) → {string}
Parse the project from PatchJob resource.
Parameters:
Name | Type | Description |
---|---|---|
patchJobName |
string |
A fully-qualified path representing PatchJob resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
matchProjectFromVulnerabilityReportName(vulnerabilityReportName) → {string}
Parse the project from VulnerabilityReport resource.
Parameters:
Name | Type | Description |
---|---|---|
vulnerabilityReportName |
string |
A fully-qualified path representing VulnerabilityReport resource. |
Returns:
Type | Description |
---|---|
string |
A string representing the project. |
oSPolicyAssignmentPath(project, location, os_policy_assignment) → {string}
Return a fully-qualified oSPolicyAssignment resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
location |
string | |
os_policy_assignment |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
oSPolicyAssignmentReportPath(project, location, instance, assignment) → {string}
Return a fully-qualified oSPolicyAssignmentReport resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
location |
string | |
instance |
string | |
assignment |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
patchDeploymentPath(project, patch_deployment) → {string}
Return a fully-qualified patchDeployment resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
patch_deployment |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
patchJobPath(project, patch_job) → {string}
Return a fully-qualified patchJob resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
patch_job |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |
vulnerabilityReportPath(project, location, instance) → {string}
Return a fully-qualified vulnerabilityReport resource name string.
Parameters:
Name | Type | Description |
---|---|---|
project |
string | |
location |
string | |
instance |
string |
Returns:
Type | Description |
---|---|
string |
Resource name string. |