@maxim_mazurok/gapi.client.connectors-v2 0.0.20231205 → 0.0.20240102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +167 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://connectors.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20231205
12
+ // Revision: 20240102
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -57,6 +57,28 @@ declare namespace gapi.client {
57
57
  /** State of the connector. */
58
58
  state?: string;
59
59
  }
60
+ interface DailyCycle {
61
+ /** Output only. Duration of the time window, set by service producer. */
62
+ duration?: string;
63
+ /** Time within the day to start the operations. */
64
+ startTime?: TimeOfDay;
65
+ }
66
+ interface Date {
67
+ /** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
68
+ day?: number;
69
+ /** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
70
+ month?: number;
71
+ /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
72
+ year?: number;
73
+ }
74
+ interface DenyMaintenancePeriod {
75
+ /** Deny period end date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be before the end. */
76
+ endDate?: Date;
77
+ /** Deny period start date. This can be: * A full date, with non-zero year, month and day values. * A month and day value, with a zero year. Allows recurring deny periods each year. Date matching this period will have to be the same or after the start. */
78
+ startDate?: Date;
79
+ /** Time in UTC when the Blackout period starts on start_date and ends on end_date. This can be: * Full time. * All zeros for 00:00:00 UTC */
80
+ time?: TimeOfDay;
81
+ }
60
82
  interface Empty {}
61
83
  interface Entity {
62
84
  /** Fields of the entity. The key is name of the field and the value contains the applicable `google.protobuf.Value` entry for this field. */
@@ -128,6 +150,42 @@ declare namespace gapi.client {
128
150
  /** Specifies whether a null value is allowed. */
129
151
  nullable?: boolean;
130
152
  }
153
+ interface Instance {
154
+ /** consumer_defined_name is the name of the instance set by the service consumers. Generally this is different from the `name` field which reperesents the system-assigned id of the instance which the service consumers do not recognize. This is a required field for tenants onboarding to Maintenance Window notifications (go/slm-rollout-maintenance-policies#prerequisites). */
155
+ consumerDefinedName?: string;
156
+ /** Output only. Timestamp when the resource was created. */
157
+ createTime?: string;
158
+ /** Optional. The instance_type of this instance of format: projects/{project_number}/locations/{location_id}/instanceTypes/{instance_type_id}. Instance Type represents a high-level tier or SKU of the service that this instance belong to. When enabled(eg: Maintenance Rollout), Rollout uses 'instance_type' along with 'software_versions' to determine whether instance needs an update or not. */
159
+ instanceType?: string;
160
+ /** Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. */
161
+ labels?: {[P in string]: string};
162
+ /** Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the referenced policy must define the same policy type. For details, please refer to go/mr-user-guide. Should not be set if maintenance_settings.maintenance_policies is set. */
163
+ maintenancePolicyNames?: {[P in string]: string};
164
+ /** The MaintenanceSchedule contains the scheduling information of published maintenance schedule with same key as software_versions. */
165
+ maintenanceSchedules?: {[P in string]: MaintenanceSchedule};
166
+ /** Optional. The MaintenanceSettings associated with instance. */
167
+ maintenanceSettings?: MaintenanceSettings;
168
+ /** Unique name of the resource. It uses the form: `projects/{project_number}/locations/{location_id}/instances/{instance_id}` Note: This name is passed, stored and logged across the rollout system. So use of consumer project_id or any other consumer PII in the name is strongly discouraged for wipeout (go/wipeout) compliance. See go/elysium/project_ids#storage-guidance for more details. */
169
+ name?: string;
170
+ /** Optional. notification_parameter are information that service producers may like to include that is not relevant to Rollout. This parameter will only be passed to Gamma and Cloud Logging for notification/logging purpose. */
171
+ notificationParameters?: {[P in string]: NotificationParameter};
172
+ /** Output only. Custom string attributes used primarily to expose producer-specific information in monitoring dashboards. See go/get-instance-metadata. */
173
+ producerMetadata?: {[P in string]: string};
174
+ /** Output only. The list of data plane resources provisioned for this instance, e.g. compute VMs. See go/get-instance-metadata. */
175
+ provisionedResources?: ProvisionedResource[];
176
+ /** Link to the SLM instance template. Only populated when updating SLM instances via SSA's Actuation service adaptor. Service producers with custom control plane (e.g. Cloud SQL) doesn't need to populate this field. Instead they should use software_versions. */
177
+ slmInstanceTemplate?: string;
178
+ /** Output only. SLO metadata for instance classification in the Standardized dataplane SLO platform. See go/cloud-ssa-standard-slo for feature description. */
179
+ sloMetadata?: SloMetadata;
180
+ /** Software versions that are used to deploy this instance. This can be mutated by rollout services. */
181
+ softwareVersions?: {[P in string]: string};
182
+ /** Output only. Current lifecycle state of the resource (e.g. if it's being created or ready to use). */
183
+ state?: string;
184
+ /** Output only. ID of the associated GCP tenant project. See go/get-instance-metadata. */
185
+ tenantProjectId?: string;
186
+ /** Output only. Timestamp when the resource was last modified. */
187
+ updateTime?: string;
188
+ }
131
189
  interface JsonSchema {
132
190
  /** Additional details apart from standard json schema fields, this gives flexibility to store metadata about the schema */
133
191
  additionalDetails?: {[P in string]: any};
@@ -172,6 +230,70 @@ declare namespace gapi.client {
172
230
  /** List of entity type names which contain unsupported Datatypes. Check datatype.proto for more information. */
173
231
  unsupportedTypeNames?: string[];
174
232
  }
233
+ interface MaintenancePolicy {
234
+ /** Output only. The time when the resource was created. */
235
+ createTime?: string;
236
+ /** Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. */
237
+ description?: string;
238
+ /** Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. */
239
+ labels?: {[P in string]: string};
240
+ /** Required. MaintenancePolicy name using the form: `projects/{project_id}/locations/{location_id}/maintenancePolicies/{maintenance_policy_id}` where {project_id} refers to a GCP consumer project ID, {location_id} refers to a GCP region/zone, {maintenance_policy_id} must be 1-63 characters long and match the regular expression `[a-z0-9]([-a-z0-9]*[a-z0-9])?`. */
241
+ name?: string;
242
+ /** Optional. The state of the policy. */
243
+ state?: string;
244
+ /** Maintenance policy applicable to instance update. */
245
+ updatePolicy?: UpdatePolicy;
246
+ /** Output only. The time when the resource was updated. */
247
+ updateTime?: string;
248
+ }
249
+ interface MaintenanceSchedule {
250
+ /** This field is deprecated, and will be always set to true since reschedule can happen multiple times now. This field should not be removed until all service producers remove this for their customers. */
251
+ canReschedule?: boolean;
252
+ /** The scheduled end time for the maintenance. */
253
+ endTime?: string;
254
+ /** The rollout management policy this maintenance schedule is associated with. When doing reschedule update request, the reschedule should be against this given policy. */
255
+ rolloutManagementPolicy?: string;
256
+ /** schedule_deadline_time is the time deadline any schedule start time cannot go beyond, including reschedule. It's normally the initial schedule start time plus maintenance window length (1 day or 1 week). Maintenance cannot be scheduled to start beyond this deadline. */
257
+ scheduleDeadlineTime?: string;
258
+ /** The scheduled start time for the maintenance. */
259
+ startTime?: string;
260
+ }
261
+ interface MaintenanceSettings {
262
+ /** Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted. */
263
+ exclude?: boolean;
264
+ /** Optional. If the update call is triggered from rollback, set the value as true. */
265
+ isRollback?: boolean;
266
+ /** Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For details, please refer to go/mr-user-guide. Should not be set if maintenance_policy_names is set. If only the name is needed, then only populate MaintenancePolicy.name. */
267
+ maintenancePolicies?: {[P in string]: MaintenancePolicy};
268
+ }
269
+ interface MaintenanceWindow {
270
+ /** Daily cycle. */
271
+ dailyCycle?: DailyCycle;
272
+ /** Weekly cycle. */
273
+ weeklyCycle?: WeeklyCycle;
274
+ }
275
+ interface NodeSloMetadata {
276
+ /** The location of the node, if different from instance location. */
277
+ location?: string;
278
+ /** The id of the node. This should be equal to SaasInstanceNode.node_id. */
279
+ nodeId?: string;
280
+ /** If present, this will override eligibility for the node coming from instance or exclusions for specified SLIs. */
281
+ perSliEligibility?: PerSliSloEligibility;
282
+ }
283
+ interface NotificationParameter {
284
+ /** Optional. Array of string values. e.g. instance's replica information. */
285
+ values?: string[];
286
+ }
287
+ interface PerSliSloEligibility {
288
+ /** An entry in the eligibilities map specifies an eligibility for a particular SLI for the given instance. The SLI key in the name must be a valid SLI name specified in the Eligibility Exporter binary flags otherwise an error will be emitted by Eligibility Exporter and the oncaller will be alerted. If an SLI has been defined in the binary flags but the eligibilities map does not contain it, the corresponding SLI time series will not be emitted by the Eligibility Exporter. This ensures a smooth rollout and compatibility between the data produced by different versions of the Eligibility Exporters. If eligibilities map contains a key for an SLI which has not been declared in the binary flags, there will be an error message emitted in the Eligibility Exporter log and the metric for the SLI in question will not be emitted. */
289
+ eligibilities?: {[P in string]: SloEligibility};
290
+ }
291
+ interface ProvisionedResource {
292
+ /** Type of the resource. This can be either a GCP resource or a custom one (e.g. another cloud provider's VM). For GCP compute resources use singular form of the names listed in GCP compute API documentation (https://cloud.google.com/compute/docs/reference/rest/v1/), prefixed with 'compute-', for example: 'compute-instance', 'compute-disk', 'compute-autoscaler'. */
293
+ resourceType?: string;
294
+ /** URL identifying the resource, e.g. "https://www.googleapis.com/compute/v1/projects/...)". */
295
+ resourceUrl?: string;
296
+ }
175
297
  interface Query {
176
298
  /** Sets the limit for the maximum number of rows returned after the query execution. */
177
299
  maxRows?: string;
@@ -206,10 +328,54 @@ declare namespace gapi.client {
206
328
  /** Name of the metadata field. */
207
329
  name?: string;
208
330
  }
331
+ interface Schedule {
332
+ /** Allows to define schedule that runs specified day of the week. */
333
+ day?: string;
334
+ /** Output only. Duration of the time window, set by service producer. */
335
+ duration?: string;
336
+ /** Time within the window to start the operations. */
337
+ startTime?: TimeOfDay;
338
+ }
339
+ interface SloEligibility {
340
+ /** Whether an instance is eligible or ineligible. */
341
+ eligible?: boolean;
342
+ /** User-defined reason for the current value of instance eligibility. Usually, this can be directly mapped to the internal state. An empty reason is allowed. */
343
+ reason?: string;
344
+ }
345
+ interface SloMetadata {
346
+ /** Optional. List of nodes. Some producers need to use per-node metadata to calculate SLO. This field allows such producers to publish per-node SLO meta data, which will be consumed by SSA Eligibility Exporter and published in the form of per node metric to Monarch. */
347
+ nodes?: NodeSloMetadata[];
348
+ /** Optional. Multiple per-instance SLI eligibilities which apply for individual SLIs. */
349
+ perSliEligibility?: PerSliSloEligibility;
350
+ /** Name of the SLO tier the Instance belongs to. This name will be expected to match the tiers specified in the service SLO configuration. Field is mandatory and must not be empty. */
351
+ tier?: string;
352
+ }
353
+ interface TimeOfDay {
354
+ /** Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */
355
+ hours?: number;
356
+ /** Minutes of hour of day. Must be from 0 to 59. */
357
+ minutes?: number;
358
+ /** Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. */
359
+ nanos?: number;
360
+ /** Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. */
361
+ seconds?: number;
362
+ }
209
363
  interface UpdateEntitiesWithConditionsResponse {
210
364
  /** Response returned by the external system. */
211
365
  response?: {[P in string]: any};
212
366
  }
367
+ interface UpdatePolicy {
368
+ /** Optional. Relative scheduling channel applied to resource. */
369
+ channel?: string;
370
+ /** Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. The protocol supports zero-to-many such periods, but the current SLM Rollout implementation only supports zero-to-one. */
371
+ denyMaintenancePeriods?: DenyMaintenancePeriod[];
372
+ /** Optional. Maintenance window that is applied to resources covered by this policy. */
373
+ window?: MaintenanceWindow;
374
+ }
375
+ interface WeeklyCycle {
376
+ /** User can specify multiple windows in a week. Minimum of 1 window. */
377
+ schedule?: Schedule[];
378
+ }
213
379
  interface ActionsResource {
214
380
  /** Executes an action with the name specified in the request. The input parameters for executing the action are passed through the body of the ExecuteAction request. */
215
381
  execute(request: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.connectors-v2",
3
- "version": "0.0.20231205",
3
+ "version": "0.0.20240102",
4
4
  "description": "TypeScript typings for Connectors API v2",
5
5
  "repository": {
6
6
  "type": "git",