Debian Codegraph @

oracledatabase/v1/oracledatabase-gen.go

raw symbols SCIP
1 // Copyright 2026 Google LLC.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // Code generated file. DO NOT EDIT.
6
7 // Package oracledatabase provides access to the Oracle Database@Google Cloud API.
8 //
9 // For product documentation, see: https://cloud.google.com/oracle/database/docs
10 //
11 // # Library status
12 //
13 // These client libraries are officially supported by Google. However, this
14 // library is considered complete and is in maintenance mode. This means
15 // that we will address critical bugs and security issues but will not add
16 // any new features.
17 //
18 // When possible, we recommend using our newer
19 // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
20 // that are still actively being worked and iterated on.
21 //
22 // # Creating a client
23 //
24 // Usage example:
25 //
26 // import "google.golang.org/api/oracledatabase/v1"
27 // ...
28 // ctx := context.Background()
29 // oracledatabaseService, err := oracledatabase.NewService(ctx)
30 //
31 // In this example, Google Application Default Credentials are used for
32 // authentication. For information on how to create and obtain Application
33 // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
34 //
35 // # Other authentication options
36 //
37 // To use an API key for authentication (note: some APIs do not support API
38 // keys), use [google.golang.org/api/option.WithAPIKey]:
39 //
40 // oracledatabaseService, err := oracledatabase.NewService(ctx, option.WithAPIKey("AIza..."))
41 //
42 // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
43 // flow, use [google.golang.org/api/option.WithTokenSource]:
44 //
45 // config := &oauth2.Config{...}
46 // // ...
47 // token, err := config.Exchange(ctx, ...)
48 // oracledatabaseService, err := oracledatabase.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
49 //
50 // See [google.golang.org/api/option.ClientOption] for details on options.
51 package oracledatabase // import "google.golang.org/api/oracledatabase/v1"
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "log/slog"
61 "net/http"
62 "net/url"
63 "strconv"
64 "strings"
65
66 "github.com/googleapis/gax-go/v2/internallog"
67 googleapi "google.golang.org/api/googleapi"
68 internal "google.golang.org/api/internal"
69 gensupport "google.golang.org/api/internal/gensupport"
70 option "google.golang.org/api/option"
71 internaloption "google.golang.org/api/option/internaloption"
72 htransport "google.golang.org/api/transport/http"
73 )
74
75 // Always reference these packages, just in case the auto-generated code
76 // below doesn't.
77 var _ = bytes.NewBuffer
78 var _ = strconv.Itoa
79 var _ = fmt.Sprintf
80 var _ = json.NewDecoder
81 var _ = io.Copy
82 var _ = url.Parse
83 var _ = gensupport.MarshalJSON
84 var _ = googleapi.Version
85 var _ = errors.New
86 var _ = strings.Replace
87 var _ = context.Canceled
88 var _ = internaloption.WithDefaultEndpoint
89 var _ = internal.Version
90 var _ = internallog.New
91
92 const apiId = "oracledatabase:v1"
93 const apiName = "oracledatabase"
94 const apiVersion = "v1"
95 const basePath = "https://oracledatabase.googleapis.com/"
96 const basePathTemplate = "https://oracledatabase.UNIVERSE_DOMAIN/"
97 const mtlsBasePath = "https://oracledatabase.mtls.googleapis.com/"
98
99 // OAuth2 scopes used by this API.
100 const (
101 // See, edit, configure, and delete your Google Cloud data and see the email
102 // address for your Google Account.
103 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
104 )
105
106 // NewService creates a new Service.
107 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
108 scopesOption := internaloption.WithDefaultScopes(
109 "https://www.googleapis.com/auth/cloud-platform",
110 )
111 // NOTE: prepend, so we don't override user-specified scopes.
112 opts = append([]option.ClientOption{scopesOption}, opts...)
113 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
114 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
115 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
116 opts = append(opts, internaloption.EnableNewAuthLibrary())
117 client, endpoint, err := htransport.NewClient(ctx, opts...)
118 if err != nil {
119 return nil, err
120 }
121 s := &Service{client: client, BasePath: basePath, logger: internaloption.GetLogger(opts)}
122 s.Projects = NewProjectsService(s)
123 if endpoint != "" {
124 s.BasePath = endpoint
125 }
126 return s, nil
127 }
128
129 // New creates a new Service. It uses the provided http.Client for requests.
130 //
131 // Deprecated: please use NewService instead.
132 // To provide a custom HTTP client, use option.WithHTTPClient.
133 // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
134 func New(client *http.Client) (*Service, error) {
135 if client == nil {
136 return nil, errors.New("client is nil")
137 }
138 return NewService(context.TODO(), option.WithHTTPClient(client))
139 }
140
141 type Service struct {
142 client *http.Client
143 logger *slog.Logger
144 BasePath string // API endpoint base URL
145 UserAgent string // optional additional User-Agent fragment
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Locations = NewProjectsLocationsService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Locations *ProjectsLocationsService
167 }
168
169 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170 rs := &ProjectsLocationsService{s: s}
171 rs.AutonomousDatabaseBackups = NewProjectsLocationsAutonomousDatabaseBackupsService(s)
172 rs.AutonomousDatabaseCharacterSets = NewProjectsLocationsAutonomousDatabaseCharacterSetsService(s)
173 rs.AutonomousDatabases = NewProjectsLocationsAutonomousDatabasesService(s)
174 rs.AutonomousDbVersions = NewProjectsLocationsAutonomousDbVersionsService(s)
175 rs.CloudExadataInfrastructures = NewProjectsLocationsCloudExadataInfrastructuresService(s)
176 rs.CloudVmClusters = NewProjectsLocationsCloudVmClustersService(s)
177 rs.DatabaseCharacterSets = NewProjectsLocationsDatabaseCharacterSetsService(s)
178 rs.Databases = NewProjectsLocationsDatabasesService(s)
179 rs.DbSystemInitialStorageSizes = NewProjectsLocationsDbSystemInitialStorageSizesService(s)
180 rs.DbSystemShapes = NewProjectsLocationsDbSystemShapesService(s)
181 rs.DbSystems = NewProjectsLocationsDbSystemsService(s)
182 rs.DbVersions = NewProjectsLocationsDbVersionsService(s)
183 rs.Entitlements = NewProjectsLocationsEntitlementsService(s)
184 rs.ExadbVmClusters = NewProjectsLocationsExadbVmClustersService(s)
185 rs.ExascaleDbStorageVaults = NewProjectsLocationsExascaleDbStorageVaultsService(s)
186 rs.GiVersions = NewProjectsLocationsGiVersionsService(s)
187 rs.OdbNetworks = NewProjectsLocationsOdbNetworksService(s)
188 rs.Operations = NewProjectsLocationsOperationsService(s)
189 rs.PluggableDatabases = NewProjectsLocationsPluggableDatabasesService(s)
190 return rs
191 }
192
193 type ProjectsLocationsService struct {
194 s *Service
195
196 AutonomousDatabaseBackups *ProjectsLocationsAutonomousDatabaseBackupsService
197
198 AutonomousDatabaseCharacterSets *ProjectsLocationsAutonomousDatabaseCharacterSetsService
199
200 AutonomousDatabases *ProjectsLocationsAutonomousDatabasesService
201
202 AutonomousDbVersions *ProjectsLocationsAutonomousDbVersionsService
203
204 CloudExadataInfrastructures *ProjectsLocationsCloudExadataInfrastructuresService
205
206 CloudVmClusters *ProjectsLocationsCloudVmClustersService
207
208 DatabaseCharacterSets *ProjectsLocationsDatabaseCharacterSetsService
209
210 Databases *ProjectsLocationsDatabasesService
211
212 DbSystemInitialStorageSizes *ProjectsLocationsDbSystemInitialStorageSizesService
213
214 DbSystemShapes *ProjectsLocationsDbSystemShapesService
215
216 DbSystems *ProjectsLocationsDbSystemsService
217
218 DbVersions *ProjectsLocationsDbVersionsService
219
220 Entitlements *ProjectsLocationsEntitlementsService
221
222 ExadbVmClusters *ProjectsLocationsExadbVmClustersService
223
224 ExascaleDbStorageVaults *ProjectsLocationsExascaleDbStorageVaultsService
225
226 GiVersions *ProjectsLocationsGiVersionsService
227
228 OdbNetworks *ProjectsLocationsOdbNetworksService
229
230 Operations *ProjectsLocationsOperationsService
231
232 PluggableDatabases *ProjectsLocationsPluggableDatabasesService
233 }
234
235 func NewProjectsLocationsAutonomousDatabaseBackupsService(s *Service) *ProjectsLocationsAutonomousDatabaseBackupsService {
236 rs := &ProjectsLocationsAutonomousDatabaseBackupsService{s: s}
237 return rs
238 }
239
240 type ProjectsLocationsAutonomousDatabaseBackupsService struct {
241 s *Service
242 }
243
244 func NewProjectsLocationsAutonomousDatabaseCharacterSetsService(s *Service) *ProjectsLocationsAutonomousDatabaseCharacterSetsService {
245 rs := &ProjectsLocationsAutonomousDatabaseCharacterSetsService{s: s}
246 return rs
247 }
248
249 type ProjectsLocationsAutonomousDatabaseCharacterSetsService struct {
250 s *Service
251 }
252
253 func NewProjectsLocationsAutonomousDatabasesService(s *Service) *ProjectsLocationsAutonomousDatabasesService {
254 rs := &ProjectsLocationsAutonomousDatabasesService{s: s}
255 return rs
256 }
257
258 type ProjectsLocationsAutonomousDatabasesService struct {
259 s *Service
260 }
261
262 func NewProjectsLocationsAutonomousDbVersionsService(s *Service) *ProjectsLocationsAutonomousDbVersionsService {
263 rs := &ProjectsLocationsAutonomousDbVersionsService{s: s}
264 return rs
265 }
266
267 type ProjectsLocationsAutonomousDbVersionsService struct {
268 s *Service
269 }
270
271 func NewProjectsLocationsCloudExadataInfrastructuresService(s *Service) *ProjectsLocationsCloudExadataInfrastructuresService {
272 rs := &ProjectsLocationsCloudExadataInfrastructuresService{s: s}
273 rs.DbServers = NewProjectsLocationsCloudExadataInfrastructuresDbServersService(s)
274 return rs
275 }
276
277 type ProjectsLocationsCloudExadataInfrastructuresService struct {
278 s *Service
279
280 DbServers *ProjectsLocationsCloudExadataInfrastructuresDbServersService
281 }
282
283 func NewProjectsLocationsCloudExadataInfrastructuresDbServersService(s *Service) *ProjectsLocationsCloudExadataInfrastructuresDbServersService {
284 rs := &ProjectsLocationsCloudExadataInfrastructuresDbServersService{s: s}
285 return rs
286 }
287
288 type ProjectsLocationsCloudExadataInfrastructuresDbServersService struct {
289 s *Service
290 }
291
292 func NewProjectsLocationsCloudVmClustersService(s *Service) *ProjectsLocationsCloudVmClustersService {
293 rs := &ProjectsLocationsCloudVmClustersService{s: s}
294 rs.DbNodes = NewProjectsLocationsCloudVmClustersDbNodesService(s)
295 return rs
296 }
297
298 type ProjectsLocationsCloudVmClustersService struct {
299 s *Service
300
301 DbNodes *ProjectsLocationsCloudVmClustersDbNodesService
302 }
303
304 func NewProjectsLocationsCloudVmClustersDbNodesService(s *Service) *ProjectsLocationsCloudVmClustersDbNodesService {
305 rs := &ProjectsLocationsCloudVmClustersDbNodesService{s: s}
306 return rs
307 }
308
309 type ProjectsLocationsCloudVmClustersDbNodesService struct {
310 s *Service
311 }
312
313 func NewProjectsLocationsDatabaseCharacterSetsService(s *Service) *ProjectsLocationsDatabaseCharacterSetsService {
314 rs := &ProjectsLocationsDatabaseCharacterSetsService{s: s}
315 return rs
316 }
317
318 type ProjectsLocationsDatabaseCharacterSetsService struct {
319 s *Service
320 }
321
322 func NewProjectsLocationsDatabasesService(s *Service) *ProjectsLocationsDatabasesService {
323 rs := &ProjectsLocationsDatabasesService{s: s}
324 return rs
325 }
326
327 type ProjectsLocationsDatabasesService struct {
328 s *Service
329 }
330
331 func NewProjectsLocationsDbSystemInitialStorageSizesService(s *Service) *ProjectsLocationsDbSystemInitialStorageSizesService {
332 rs := &ProjectsLocationsDbSystemInitialStorageSizesService{s: s}
333 return rs
334 }
335
336 type ProjectsLocationsDbSystemInitialStorageSizesService struct {
337 s *Service
338 }
339
340 func NewProjectsLocationsDbSystemShapesService(s *Service) *ProjectsLocationsDbSystemShapesService {
341 rs := &ProjectsLocationsDbSystemShapesService{s: s}
342 return rs
343 }
344
345 type ProjectsLocationsDbSystemShapesService struct {
346 s *Service
347 }
348
349 func NewProjectsLocationsDbSystemsService(s *Service) *ProjectsLocationsDbSystemsService {
350 rs := &ProjectsLocationsDbSystemsService{s: s}
351 return rs
352 }
353
354 type ProjectsLocationsDbSystemsService struct {
355 s *Service
356 }
357
358 func NewProjectsLocationsDbVersionsService(s *Service) *ProjectsLocationsDbVersionsService {
359 rs := &ProjectsLocationsDbVersionsService{s: s}
360 return rs
361 }
362
363 type ProjectsLocationsDbVersionsService struct {
364 s *Service
365 }
366
367 func NewProjectsLocationsEntitlementsService(s *Service) *ProjectsLocationsEntitlementsService {
368 rs := &ProjectsLocationsEntitlementsService{s: s}
369 return rs
370 }
371
372 type ProjectsLocationsEntitlementsService struct {
373 s *Service
374 }
375
376 func NewProjectsLocationsExadbVmClustersService(s *Service) *ProjectsLocationsExadbVmClustersService {
377 rs := &ProjectsLocationsExadbVmClustersService{s: s}
378 rs.DbNodes = NewProjectsLocationsExadbVmClustersDbNodesService(s)
379 return rs
380 }
381
382 type ProjectsLocationsExadbVmClustersService struct {
383 s *Service
384
385 DbNodes *ProjectsLocationsExadbVmClustersDbNodesService
386 }
387
388 func NewProjectsLocationsExadbVmClustersDbNodesService(s *Service) *ProjectsLocationsExadbVmClustersDbNodesService {
389 rs := &ProjectsLocationsExadbVmClustersDbNodesService{s: s}
390 return rs
391 }
392
393 type ProjectsLocationsExadbVmClustersDbNodesService struct {
394 s *Service
395 }
396
397 func NewProjectsLocationsExascaleDbStorageVaultsService(s *Service) *ProjectsLocationsExascaleDbStorageVaultsService {
398 rs := &ProjectsLocationsExascaleDbStorageVaultsService{s: s}
399 return rs
400 }
401
402 type ProjectsLocationsExascaleDbStorageVaultsService struct {
403 s *Service
404 }
405
406 func NewProjectsLocationsGiVersionsService(s *Service) *ProjectsLocationsGiVersionsService {
407 rs := &ProjectsLocationsGiVersionsService{s: s}
408 rs.MinorVersions = NewProjectsLocationsGiVersionsMinorVersionsService(s)
409 return rs
410 }
411
412 type ProjectsLocationsGiVersionsService struct {
413 s *Service
414
415 MinorVersions *ProjectsLocationsGiVersionsMinorVersionsService
416 }
417
418 func NewProjectsLocationsGiVersionsMinorVersionsService(s *Service) *ProjectsLocationsGiVersionsMinorVersionsService {
419 rs := &ProjectsLocationsGiVersionsMinorVersionsService{s: s}
420 return rs
421 }
422
423 type ProjectsLocationsGiVersionsMinorVersionsService struct {
424 s *Service
425 }
426
427 func NewProjectsLocationsOdbNetworksService(s *Service) *ProjectsLocationsOdbNetworksService {
428 rs := &ProjectsLocationsOdbNetworksService{s: s}
429 rs.OdbSubnets = NewProjectsLocationsOdbNetworksOdbSubnetsService(s)
430 return rs
431 }
432
433 type ProjectsLocationsOdbNetworksService struct {
434 s *Service
435
436 OdbSubnets *ProjectsLocationsOdbNetworksOdbSubnetsService
437 }
438
439 func NewProjectsLocationsOdbNetworksOdbSubnetsService(s *Service) *ProjectsLocationsOdbNetworksOdbSubnetsService {
440 rs := &ProjectsLocationsOdbNetworksOdbSubnetsService{s: s}
441 return rs
442 }
443
444 type ProjectsLocationsOdbNetworksOdbSubnetsService struct {
445 s *Service
446 }
447
448 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
449 rs := &ProjectsLocationsOperationsService{s: s}
450 return rs
451 }
452
453 type ProjectsLocationsOperationsService struct {
454 s *Service
455 }
456
457 func NewProjectsLocationsPluggableDatabasesService(s *Service) *ProjectsLocationsPluggableDatabasesService {
458 rs := &ProjectsLocationsPluggableDatabasesService{s: s}
459 return rs
460 }
461
462 type ProjectsLocationsPluggableDatabasesService struct {
463 s *Service
464 }
465
466 // AllConnectionStrings: A list of all connection strings that can be used to
467 // connect to the Autonomous Database.
468 type AllConnectionStrings struct {
469 // High: Output only. The database service provides the highest level of
470 // resources to each SQL statement.
471 High string `json:"high,omitempty"`
472 // Low: Output only. The database service provides the least level of resources
473 // to each SQL statement.
474 Low string `json:"low,omitempty"`
475 // Medium: Output only. The database service provides a lower level of
476 // resources to each SQL statement.
477 Medium string `json:"medium,omitempty"`
478 // ForceSendFields is a list of field names (e.g. "High") to unconditionally
479 // include in API requests. By default, fields with empty or default values are
480 // omitted from API requests. See
481 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
482 // details.
483 ForceSendFields []string `json:"-"`
484 // NullFields is a list of field names (e.g. "High") to include in API requests
485 // with the JSON null value. By default, fields with empty values are omitted
486 // from API requests. See
487 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
488 NullFields []string `json:"-"`
489 }
490
491 func (s AllConnectionStrings) MarshalJSON() ([]byte, error) {
492 type NoMethod AllConnectionStrings
493 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
494 }
495
496 // AutonomousDatabase: Details of the Autonomous Database resource.
497 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/
498 type AutonomousDatabase struct {
499 // AdminPassword: Optional. Immutable. The password for the default ADMIN user.
500 // Note: Only one of `admin_password_secret_version` or `admin_password` can be
501 // populated.
502 AdminPassword string `json:"adminPassword,omitempty"`
503 // AdminPasswordSecretVersion: Optional. Immutable. The resource name of a
504 // secret version in Secret Manager which contains the database admin user's
505 // password. Format: projects/{project}/secrets/{secret}/versions/{version}.
506 // Note: Only one of `admin_password_secret_version` or `admin_password` can be
507 // populated.
508 AdminPasswordSecretVersion string `json:"adminPasswordSecretVersion,omitempty"`
509 // Cidr: Optional. Immutable. The subnet CIDR range for the Autonomous
510 // Database.
511 Cidr string `json:"cidr,omitempty"`
512 // CreateTime: Output only. The date and time that the Autonomous Database was
513 // created.
514 CreateTime string `json:"createTime,omitempty"`
515 // Database: Optional. Immutable. The name of the Autonomous Database. The
516 // database name must be unique in the project. The name must begin with a
517 // letter and can contain a maximum of 30 alphanumeric characters.
518 Database string `json:"database,omitempty"`
519 // DisasterRecoverySupportedLocations: Output only. List of supported GCP
520 // region to clone the Autonomous Database for disaster recovery. Format:
521 // `project/{project}/locations/{location}`.
522 DisasterRecoverySupportedLocations []string `json:"disasterRecoverySupportedLocations,omitempty"`
523 // DisplayName: Optional. Immutable. The display name for the Autonomous
524 // Database. The name does not have to be unique within your project.
525 DisplayName string `json:"displayName,omitempty"`
526 // EntitlementId: Output only. The ID of the subscription entitlement
527 // associated with the Autonomous Database.
528 EntitlementId string `json:"entitlementId,omitempty"`
529 // Labels: Optional. The labels or tags associated with the Autonomous
530 // Database.
531 Labels map[string]string `json:"labels,omitempty"`
532 // Name: Identifier. The name of the Autonomous Database resource in the
533 // following format:
534 // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_databas
535 // e}
536 Name string `json:"name,omitempty"`
537 // Network: Optional. Immutable. The name of the VPC network used by the
538 // Autonomous Database in the following format:
539 // projects/{project}/global/networks/{network}
540 Network string `json:"network,omitempty"`
541 // OdbNetwork: Optional. Immutable. The name of the OdbNetwork associated with
542 // the Autonomous Database. Format:
543 // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
544 // optional but if specified, this should match the parent ODBNetwork of the
545 // OdbSubnet.
546 OdbNetwork string `json:"odbNetwork,omitempty"`
547 // OdbSubnet: Optional. Immutable. The name of the OdbSubnet associated with
548 // the Autonomous Database. Format:
549 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
550 // {odb_subnet}
551 OdbSubnet string `json:"odbSubnet,omitempty"`
552 // PeerAutonomousDatabases: Output only. The peer Autonomous Database names of
553 // the given Autonomous Database.
554 PeerAutonomousDatabases []string `json:"peerAutonomousDatabases,omitempty"`
555 // Properties: Optional. The properties of the Autonomous Database.
556 Properties *AutonomousDatabaseProperties `json:"properties,omitempty"`
557 // SourceConfig: Optional. Immutable. The source Autonomous Database
558 // configuration for the standby Autonomous Database. The source Autonomous
559 // Database is configured while creating the Peer Autonomous Database and can't
560 // be updated after creation.
561 SourceConfig *SourceConfig `json:"sourceConfig,omitempty"`
562
563 // ServerResponse contains the HTTP response code and headers from the server.
564 googleapi.ServerResponse `json:"-"`
565 // ForceSendFields is a list of field names (e.g. "AdminPassword") to
566 // unconditionally include in API requests. By default, fields with empty or
567 // default values are omitted from API requests. See
568 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
569 // details.
570 ForceSendFields []string `json:"-"`
571 // NullFields is a list of field names (e.g. "AdminPassword") to include in API
572 // requests with the JSON null value. By default, fields with empty values are
573 // omitted from API requests. See
574 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
575 NullFields []string `json:"-"`
576 }
577
578 func (s AutonomousDatabase) MarshalJSON() ([]byte, error) {
579 type NoMethod AutonomousDatabase
580 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
581 }
582
583 // AutonomousDatabaseApex: Oracle APEX Application Development.
584 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex
585 type AutonomousDatabaseApex struct {
586 // ApexVersion: Output only. The Oracle APEX Application Development version.
587 ApexVersion string `json:"apexVersion,omitempty"`
588 // OrdsVersion: Output only. The Oracle REST Data Services (ORDS) version.
589 OrdsVersion string `json:"ordsVersion,omitempty"`
590 // ForceSendFields is a list of field names (e.g. "ApexVersion") to
591 // unconditionally include in API requests. By default, fields with empty or
592 // default values are omitted from API requests. See
593 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
594 // details.
595 ForceSendFields []string `json:"-"`
596 // NullFields is a list of field names (e.g. "ApexVersion") to include in API
597 // requests with the JSON null value. By default, fields with empty values are
598 // omitted from API requests. See
599 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
600 NullFields []string `json:"-"`
601 }
602
603 func (s AutonomousDatabaseApex) MarshalJSON() ([]byte, error) {
604 type NoMethod AutonomousDatabaseApex
605 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
606 }
607
608 // AutonomousDatabaseBackup: Details of the Autonomous Database Backup
609 // resource.
610 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/
611 type AutonomousDatabaseBackup struct {
612 // AutonomousDatabase: Required. The name of the Autonomous Database resource
613 // for which the backup is being created. Format:
614 // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_databas
615 // e}
616 AutonomousDatabase string `json:"autonomousDatabase,omitempty"`
617 // DisplayName: Optional. User friendly name for the Backup. The name does not
618 // have to be unique.
619 DisplayName string `json:"displayName,omitempty"`
620 // Labels: Optional. labels or tags associated with the resource.
621 Labels map[string]string `json:"labels,omitempty"`
622 // Name: Identifier. The name of the Autonomous Database Backup resource with
623 // the format:
624 // projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_d
625 // atabase_backup}
626 Name string `json:"name,omitempty"`
627 // Properties: Optional. Various properties of the backup.
628 Properties *AutonomousDatabaseBackupProperties `json:"properties,omitempty"`
629 // ForceSendFields is a list of field names (e.g. "AutonomousDatabase") to
630 // unconditionally include in API requests. By default, fields with empty or
631 // default values are omitted from API requests. See
632 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
633 // details.
634 ForceSendFields []string `json:"-"`
635 // NullFields is a list of field names (e.g. "AutonomousDatabase") to include
636 // in API requests with the JSON null value. By default, fields with empty
637 // values are omitted from API requests. See
638 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
639 NullFields []string `json:"-"`
640 }
641
642 func (s AutonomousDatabaseBackup) MarshalJSON() ([]byte, error) {
643 type NoMethod AutonomousDatabaseBackup
644 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
645 }
646
647 // AutonomousDatabaseBackupProperties: Properties of the Autonomous Database
648 // Backup resource.
649 type AutonomousDatabaseBackupProperties struct {
650 // AvailableTillTime: Output only. Timestamp until when the backup will be
651 // available.
652 AvailableTillTime string `json:"availableTillTime,omitempty"`
653 // CompartmentId: Output only. The OCID of the compartment.
654 CompartmentId string `json:"compartmentId,omitempty"`
655 // DatabaseSizeTb: Output only. The quantity of data in the database, in
656 // terabytes.
657 DatabaseSizeTb float64 `json:"databaseSizeTb,omitempty"`
658 // DbVersion: Output only. A valid Oracle Database version for Autonomous
659 // Database.
660 DbVersion string `json:"dbVersion,omitempty"`
661 // EndTime: Output only. The date and time the backup completed.
662 EndTime string `json:"endTime,omitempty"`
663 // IsAutomaticBackup: Output only. Indicates if the backup is automatic or user
664 // initiated.
665 IsAutomaticBackup bool `json:"isAutomaticBackup,omitempty"`
666 // IsLongTermBackup: Output only. Indicates if the backup is long term backup.
667 IsLongTermBackup bool `json:"isLongTermBackup,omitempty"`
668 // IsRestorable: Output only. Indicates if the backup can be used to restore
669 // the Autonomous Database.
670 IsRestorable bool `json:"isRestorable,omitempty"`
671 // KeyStoreId: Optional. The OCID of the key store of Oracle Vault.
672 KeyStoreId string `json:"keyStoreId,omitempty"`
673 // KeyStoreWallet: Optional. The wallet name for Oracle Key Vault.
674 KeyStoreWallet string `json:"keyStoreWallet,omitempty"`
675 // KmsKeyId: Optional. The OCID of the key container that is used as the master
676 // encryption key in database transparent data encryption (TDE) operations.
677 KmsKeyId string `json:"kmsKeyId,omitempty"`
678 // KmsKeyVersionId: Optional. The OCID of the key container version that is
679 // used in database transparent data encryption (TDE) operations KMS Key can
680 // have multiple key versions. If none is specified, the current key version
681 // (latest) of the Key Id is used for the operation. Autonomous Database
682 // Serverless does not use key versions, hence is not applicable for Autonomous
683 // Database Serverless instances.
684 KmsKeyVersionId string `json:"kmsKeyVersionId,omitempty"`
685 // LifecycleDetails: Output only. Additional information about the current
686 // lifecycle state.
687 LifecycleDetails string `json:"lifecycleDetails,omitempty"`
688 // LifecycleState: Output only. The lifecycle state of the backup.
689 //
690 // Possible values:
691 // "STATE_UNSPECIFIED" - Default unspecified value.
692 // "CREATING" - Indicates that the resource is in creating state.
693 // "ACTIVE" - Indicates that the resource is in active state.
694 // "DELETING" - Indicates that the resource is in deleting state.
695 // "DELETED" - Indicates that the resource is in deleted state.
696 // "FAILED" - Indicates that the resource is in failed state.
697 // "UPDATING" - Indicates that the resource is in updating state.
698 LifecycleState string `json:"lifecycleState,omitempty"`
699 // Ocid: Output only. OCID of the Autonomous Database backup.
700 // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
701 Ocid string `json:"ocid,omitempty"`
702 // RetentionPeriodDays: Optional. Retention period in days for the backup.
703 RetentionPeriodDays int64 `json:"retentionPeriodDays,omitempty"`
704 // SizeTb: Output only. The backup size in terabytes.
705 SizeTb float64 `json:"sizeTb,omitempty"`
706 // StartTime: Output only. The date and time the backup started.
707 StartTime string `json:"startTime,omitempty"`
708 // Type: Output only. The type of the backup.
709 //
710 // Possible values:
711 // "TYPE_UNSPECIFIED" - Default unspecified value.
712 // "INCREMENTAL" - Incremental backups.
713 // "FULL" - Full backups.
714 // "LONG_TERM" - Long term backups.
715 Type string `json:"type,omitempty"`
716 // VaultId: Optional. The OCID of the vault.
717 VaultId string `json:"vaultId,omitempty"`
718 // ForceSendFields is a list of field names (e.g. "AvailableTillTime") to
719 // unconditionally include in API requests. By default, fields with empty or
720 // default values are omitted from API requests. See
721 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
722 // details.
723 ForceSendFields []string `json:"-"`
724 // NullFields is a list of field names (e.g. "AvailableTillTime") to include in
725 // API requests with the JSON null value. By default, fields with empty values
726 // are omitted from API requests. See
727 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
728 NullFields []string `json:"-"`
729 }
730
731 func (s AutonomousDatabaseBackupProperties) MarshalJSON() ([]byte, error) {
732 type NoMethod AutonomousDatabaseBackupProperties
733 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
734 }
735
736 func (s *AutonomousDatabaseBackupProperties) UnmarshalJSON(data []byte) error {
737 type NoMethod AutonomousDatabaseBackupProperties
738 var s1 struct {
739 DatabaseSizeTb gensupport.JSONFloat64 `json:"databaseSizeTb"`
740 SizeTb gensupport.JSONFloat64 `json:"sizeTb"`
741 *NoMethod
742 }
743 s1.NoMethod = (*NoMethod)(s)
744 if err := json.Unmarshal(data, &s1); err != nil {
745 return err
746 }
747 s.DatabaseSizeTb = float64(s1.DatabaseSizeTb)
748 s.SizeTb = float64(s1.SizeTb)
749 return nil
750 }
751
752 // AutonomousDatabaseCharacterSet: Details of the Autonomous Database character
753 // set resource.
754 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/
755 type AutonomousDatabaseCharacterSet struct {
756 // CharacterSet: Output only. The character set name for the Autonomous
757 // Database which is the ID in the resource name.
758 CharacterSet string `json:"characterSet,omitempty"`
759 // CharacterSetType: Output only. The character set type for the Autonomous
760 // Database.
761 //
762 // Possible values:
763 // "CHARACTER_SET_TYPE_UNSPECIFIED" - Character set type is not specified.
764 // "DATABASE" - Character set type is set to database.
765 // "NATIONAL" - Character set type is set to national.
766 CharacterSetType string `json:"characterSetType,omitempty"`
767 // Name: Identifier. The name of the Autonomous Database Character Set resource
768 // in the following format:
769 // projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autono
770 // mous_database_character_set}
771 Name string `json:"name,omitempty"`
772 // ForceSendFields is a list of field names (e.g. "CharacterSet") to
773 // unconditionally include in API requests. By default, fields with empty or
774 // default values are omitted from API requests. See
775 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
776 // details.
777 ForceSendFields []string `json:"-"`
778 // NullFields is a list of field names (e.g. "CharacterSet") to include in API
779 // requests with the JSON null value. By default, fields with empty values are
780 // omitted from API requests. See
781 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
782 NullFields []string `json:"-"`
783 }
784
785 func (s AutonomousDatabaseCharacterSet) MarshalJSON() ([]byte, error) {
786 type NoMethod AutonomousDatabaseCharacterSet
787 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
788 }
789
790 // AutonomousDatabaseConnectionStrings: The connection string used to connect
791 // to the Autonomous Database.
792 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings
793 type AutonomousDatabaseConnectionStrings struct {
794 // AllConnectionStrings: Output only. Returns all connection strings that can
795 // be used to connect to the Autonomous Database.
796 AllConnectionStrings *AllConnectionStrings `json:"allConnectionStrings,omitempty"`
797 // Dedicated: Output only. The database service provides the least level of
798 // resources to each SQL statement, but supports the most number of concurrent
799 // SQL statements.
800 Dedicated string `json:"dedicated,omitempty"`
801 // High: Output only. The database service provides the highest level of
802 // resources to each SQL statement.
803 High string `json:"high,omitempty"`
804 // Low: Output only. The database service provides the least level of resources
805 // to each SQL statement.
806 Low string `json:"low,omitempty"`
807 // Medium: Output only. The database service provides a lower level of
808 // resources to each SQL statement.
809 Medium string `json:"medium,omitempty"`
810 // Profiles: Output only. A list of connection string profiles to allow clients
811 // to group, filter, and select values based on the structured metadata.
812 Profiles []*DatabaseConnectionStringProfile `json:"profiles,omitempty"`
813 // ForceSendFields is a list of field names (e.g. "AllConnectionStrings") to
814 // unconditionally include in API requests. By default, fields with empty or
815 // default values are omitted from API requests. See
816 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
817 // details.
818 ForceSendFields []string `json:"-"`
819 // NullFields is a list of field names (e.g. "AllConnectionStrings") to include
820 // in API requests with the JSON null value. By default, fields with empty
821 // values are omitted from API requests. See
822 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
823 NullFields []string `json:"-"`
824 }
825
826 func (s AutonomousDatabaseConnectionStrings) MarshalJSON() ([]byte, error) {
827 type NoMethod AutonomousDatabaseConnectionStrings
828 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
829 }
830
831 // AutonomousDatabaseConnectionUrls: The URLs for accessing Oracle Application
832 // Express (APEX) and SQL Developer Web with a browser from a Compute instance.
833 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls
834 type AutonomousDatabaseConnectionUrls struct {
835 // ApexUri: Output only. Oracle Application Express (APEX) URL.
836 ApexUri string `json:"apexUri,omitempty"`
837 // DatabaseTransformsUri: Output only. The URL of the Database Transforms for
838 // the Autonomous Database.
839 DatabaseTransformsUri string `json:"databaseTransformsUri,omitempty"`
840 // GraphStudioUri: Output only. The URL of the Graph Studio for the Autonomous
841 // Database.
842 GraphStudioUri string `json:"graphStudioUri,omitempty"`
843 // MachineLearningNotebookUri: Output only. The URL of the Oracle Machine
844 // Learning (OML) Notebook for the Autonomous Database.
845 MachineLearningNotebookUri string `json:"machineLearningNotebookUri,omitempty"`
846 // MachineLearningUserManagementUri: Output only. The URL of Machine Learning
847 // user management the Autonomous Database.
848 MachineLearningUserManagementUri string `json:"machineLearningUserManagementUri,omitempty"`
849 // MongoDbUri: Output only. The URL of the MongoDB API for the Autonomous
850 // Database.
851 MongoDbUri string `json:"mongoDbUri,omitempty"`
852 // OrdsUri: Output only. The Oracle REST Data Services (ORDS) URL of the Web
853 // Access for the Autonomous Database.
854 OrdsUri string `json:"ordsUri,omitempty"`
855 // SqlDevWebUri: Output only. The URL of the Oracle SQL Developer Web for the
856 // Autonomous Database.
857 SqlDevWebUri string `json:"sqlDevWebUri,omitempty"`
858 // ForceSendFields is a list of field names (e.g. "ApexUri") to unconditionally
859 // include in API requests. By default, fields with empty or default values are
860 // omitted from API requests. See
861 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
862 // details.
863 ForceSendFields []string `json:"-"`
864 // NullFields is a list of field names (e.g. "ApexUri") to include in API
865 // requests with the JSON null value. By default, fields with empty values are
866 // omitted from API requests. See
867 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
868 NullFields []string `json:"-"`
869 }
870
871 func (s AutonomousDatabaseConnectionUrls) MarshalJSON() ([]byte, error) {
872 type NoMethod AutonomousDatabaseConnectionUrls
873 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
874 }
875
876 // AutonomousDatabaseProperties: The properties of an Autonomous Database.
877 type AutonomousDatabaseProperties struct {
878 // ActualUsedDataStorageSizeTb: Output only. The amount of storage currently
879 // being used for user and system data, in terabytes.
880 ActualUsedDataStorageSizeTb float64 `json:"actualUsedDataStorageSizeTb,omitempty"`
881 // AllocatedStorageSizeTb: Output only. The amount of storage currently
882 // allocated for the database tables and billed for, rounded up in terabytes.
883 AllocatedStorageSizeTb float64 `json:"allocatedStorageSizeTb,omitempty"`
884 // AllowlistedIps: Optional. Immutable. The list of allowlisted IP addresses
885 // for the Autonomous Database.
886 AllowlistedIps []string `json:"allowlistedIps,omitempty"`
887 // ApexDetails: Output only. The details for the Oracle APEX Application
888 // Development.
889 ApexDetails *AutonomousDatabaseApex `json:"apexDetails,omitempty"`
890 // ArePrimaryAllowlistedIpsUsed: Output only. This field indicates the status
891 // of Data Guard and Access control for the Autonomous Database. The field's
892 // value is null if Data Guard is disabled or Access Control is disabled. The
893 // field's value is TRUE if both Data Guard and Access Control are enabled, and
894 // the Autonomous Database is using primary IP access control list (ACL) for
895 // standby. The field's value is FALSE if both Data Guard and Access Control
896 // are enabled, and the Autonomous Database is using a different IP access
897 // control list (ACL) for standby compared to primary.
898 ArePrimaryAllowlistedIpsUsed bool `json:"arePrimaryAllowlistedIpsUsed,omitempty"`
899 // AutonomousContainerDatabaseId: Output only. The Autonomous Container
900 // Database OCID.
901 AutonomousContainerDatabaseId string `json:"autonomousContainerDatabaseId,omitempty"`
902 // AvailableUpgradeVersions: Output only. The list of available Oracle Database
903 // upgrade versions for an Autonomous Database.
904 AvailableUpgradeVersions []string `json:"availableUpgradeVersions,omitempty"`
905 // BackupRetentionPeriodDays: Optional. Immutable. The retention period for the
906 // Autonomous Database. This field is specified in days, can range from 1 day
907 // to 60 days, and has a default value of 60 days.
908 BackupRetentionPeriodDays int64 `json:"backupRetentionPeriodDays,omitempty"`
909 // CharacterSet: Optional. Immutable. The character set for the Autonomous
910 // Database. The default is AL32UTF8.
911 CharacterSet string `json:"characterSet,omitempty"`
912 // ComputeCount: Optional. Immutable. The number of compute servers for the
913 // Autonomous Database.
914 ComputeCount float64 `json:"computeCount,omitempty"`
915 // ConnectionStrings: Output only. The connection strings used to connect to an
916 // Autonomous Database.
917 ConnectionStrings *AutonomousDatabaseConnectionStrings `json:"connectionStrings,omitempty"`
918 // ConnectionUrls: Output only. The Oracle Connection URLs for an Autonomous
919 // Database.
920 ConnectionUrls *AutonomousDatabaseConnectionUrls `json:"connectionUrls,omitempty"`
921 // CpuCoreCount: Optional. Immutable. The number of CPU cores to be made
922 // available to the database.
923 CpuCoreCount int64 `json:"cpuCoreCount,omitempty"`
924 // CustomerContacts: Optional. Immutable. The list of customer contacts.
925 CustomerContacts []*CustomerContact `json:"customerContacts,omitempty"`
926 // DataGuardRoleChangedTime: Output only. The date and time the Autonomous Data
927 // Guard role was changed for the standby Autonomous Database.
928 DataGuardRoleChangedTime string `json:"dataGuardRoleChangedTime,omitempty"`
929 // DataSafeState: Output only. The current state of the Data Safe registration
930 // for the Autonomous Database.
931 //
932 // Possible values:
933 // "DATA_SAFE_STATE_UNSPECIFIED" - Default unspecified value.
934 // "REGISTERING" - Registering data safe state.
935 // "REGISTERED" - Registered data safe state.
936 // "DEREGISTERING" - Deregistering data safe state.
937 // "NOT_REGISTERED" - Not registered data safe state.
938 // "FAILED" - Failed data safe state.
939 DataSafeState string `json:"dataSafeState,omitempty"`
940 // DataStorageSizeGb: Optional. Immutable. The size of the data stored in the
941 // database, in gigabytes.
942 DataStorageSizeGb int64 `json:"dataStorageSizeGb,omitempty"`
943 // DataStorageSizeTb: Optional. Immutable. The size of the data stored in the
944 // database, in terabytes.
945 DataStorageSizeTb int64 `json:"dataStorageSizeTb,omitempty"`
946 // DatabaseManagementState: Output only. The current state of database
947 // management for the Autonomous Database.
948 //
949 // Possible values:
950 // "DATABASE_MANAGEMENT_STATE_UNSPECIFIED" - Default unspecified value.
951 // "ENABLING" - Enabling Database Management state
952 // "ENABLED" - Enabled Database Management state
953 // "DISABLING" - Disabling Database Management state
954 // "NOT_ENABLED" - Not Enabled Database Management state
955 // "FAILED_ENABLING" - Failed enabling Database Management state
956 // "FAILED_DISABLING" - Failed disabling Database Management state
957 DatabaseManagementState string `json:"databaseManagementState,omitempty"`
958 // DbEdition: Optional. Immutable. The edition of the Autonomous Databases.
959 //
960 // Possible values:
961 // "DATABASE_EDITION_UNSPECIFIED" - Default unspecified value.
962 // "STANDARD_EDITION" - Standard Database Edition
963 // "ENTERPRISE_EDITION" - Enterprise Database Edition
964 DbEdition string `json:"dbEdition,omitempty"`
965 // DbVersion: Optional. Immutable. The Oracle Database version for the
966 // Autonomous Database.
967 DbVersion string `json:"dbVersion,omitempty"`
968 // DbWorkload: Required. Immutable. The workload type of the Autonomous
969 // Database.
970 //
971 // Possible values:
972 // "DB_WORKLOAD_UNSPECIFIED" - Default unspecified value.
973 // "OLTP" - Autonomous Transaction Processing database.
974 // "DW" - Autonomous Data Warehouse database.
975 // "AJD" - Autonomous JSON Database.
976 // "APEX" - Autonomous Database with the Oracle APEX Application Development
977 // workload type.
978 DbWorkload string `json:"dbWorkload,omitempty"`
979 // DisasterRecoveryRoleChangedTime: Output only. The date and time the Disaster
980 // Recovery role was changed for the standby Autonomous Database.
981 DisasterRecoveryRoleChangedTime string `json:"disasterRecoveryRoleChangedTime,omitempty"`
982 // EncryptionKey: Optional. The encryption key used to encrypt the Autonomous
983 // Database. Updating this field will add a new entry in the
984 // `encryption_key_history_entries` field with the former version.
985 EncryptionKey *EncryptionKey `json:"encryptionKey,omitempty"`
986 // EncryptionKeyHistoryEntries: Output only. The history of the encryption keys
987 // used to encrypt the Autonomous Database.
988 EncryptionKeyHistoryEntries []*EncryptionKeyHistoryEntry `json:"encryptionKeyHistoryEntries,omitempty"`
989 // FailedDataRecoveryDuration: Output only. This field indicates the number of
990 // seconds of data loss during a Data Guard failover.
991 FailedDataRecoveryDuration string `json:"failedDataRecoveryDuration,omitempty"`
992 // IsAutoScalingEnabled: Optional. Immutable. This field indicates if auto
993 // scaling is enabled for the Autonomous Database CPU core count.
994 IsAutoScalingEnabled bool `json:"isAutoScalingEnabled,omitempty"`
995 // IsLocalDataGuardEnabled: Output only. Deprecated: Please use
996 // `local_data_guard_enabled` instead. This field indicates whether the
997 // Autonomous Database has local (in-region) Data Guard enabled.
998 IsLocalDataGuardEnabled bool `json:"isLocalDataGuardEnabled,omitempty"`
999 // IsStorageAutoScalingEnabled: Optional. Immutable. This field indicates if
1000 // auto scaling is enabled for the Autonomous Database storage.
1001 IsStorageAutoScalingEnabled bool `json:"isStorageAutoScalingEnabled,omitempty"`
1002 // LicenseType: Required. Immutable. The license type used for the Autonomous
1003 // Database.
1004 //
1005 // Possible values:
1006 // "LICENSE_TYPE_UNSPECIFIED" - Unspecified
1007 // "LICENSE_INCLUDED" - License included part of offer
1008 // "BRING_YOUR_OWN_LICENSE" - Bring your own license
1009 LicenseType string `json:"licenseType,omitempty"`
1010 // LifecycleDetails: Output only. The details of the current lifestyle state of
1011 // the Autonomous Database.
1012 LifecycleDetails string `json:"lifecycleDetails,omitempty"`
1013 // LocalAdgAutoFailoverMaxDataLossLimit: Output only. Deprecated: Please use
1014 // `local_adg_auto_failover_max_data_loss_limit_duration` instead. This field
1015 // indicates the maximum data loss limit for an Autonomous Database, in
1016 // seconds.
1017 LocalAdgAutoFailoverMaxDataLossLimit int64 `json:"localAdgAutoFailoverMaxDataLossLimit,omitempty"`
1018 // LocalAdgAutoFailoverMaxDataLossLimitDuration: Optional. This field indicates
1019 // the maximum data loss limit for an Autonomous Database, in seconds.
1020 LocalAdgAutoFailoverMaxDataLossLimitDuration int64 `json:"localAdgAutoFailoverMaxDataLossLimitDuration,omitempty"`
1021 // LocalDataGuardEnabled: Optional. Indicates whether the Autonomous Database
1022 // has a local (in-region) standby database. Not applicable to cross-region
1023 // Data Guard or dedicated Exadata infrastructure.
1024 LocalDataGuardEnabled bool `json:"localDataGuardEnabled,omitempty"`
1025 // LocalDisasterRecoveryType: Output only. This field indicates the local
1026 // disaster recovery (DR) type of an Autonomous Database.
1027 //
1028 // Possible values:
1029 // "LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED" - Default unspecified value.
1030 // "ADG" - Autonomous Data Guard recovery.
1031 // "BACKUP_BASED" - Backup based recovery.
1032 // "NOT_AVAILABLE" - Local disaster recovery is not available.
1033 LocalDisasterRecoveryType string `json:"localDisasterRecoveryType,omitempty"`
1034 // LocalStandbyDb: Output only. The details of the Autonomous Data Guard
1035 // standby database.
1036 LocalStandbyDb *AutonomousDatabaseStandbySummary `json:"localStandbyDb,omitempty"`
1037 // MaintenanceBeginTime: Output only. The date and time when maintenance will
1038 // begin.
1039 MaintenanceBeginTime string `json:"maintenanceBeginTime,omitempty"`
1040 // MaintenanceEndTime: Output only. The date and time when maintenance will
1041 // end.
1042 MaintenanceEndTime string `json:"maintenanceEndTime,omitempty"`
1043 // MaintenanceScheduleType: Optional. Immutable. The maintenance schedule of
1044 // the Autonomous Database.
1045 //
1046 // Possible values:
1047 // "MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED" - Default unspecified value.
1048 // "EARLY" - An EARLY maintenance schedule patches the database before the
1049 // regular scheduled maintenance.
1050 // "REGULAR" - A REGULAR maintenance schedule follows the normal maintenance
1051 // cycle.
1052 MaintenanceScheduleType string `json:"maintenanceScheduleType,omitempty"`
1053 // MemoryPerOracleComputeUnitGbs: Output only. The amount of memory enabled per
1054 // ECPU, in gigabytes.
1055 MemoryPerOracleComputeUnitGbs int64 `json:"memoryPerOracleComputeUnitGbs,omitempty"`
1056 // MemoryTableGbs: Output only. The memory assigned to in-memory tables in an
1057 // Autonomous Database.
1058 MemoryTableGbs int64 `json:"memoryTableGbs,omitempty"`
1059 // MtlsConnectionRequired: Optional. Immutable. This field specifies if the
1060 // Autonomous Database requires mTLS connections.
1061 MtlsConnectionRequired bool `json:"mtlsConnectionRequired,omitempty"`
1062 // NCharacterSet: Optional. Immutable. The national character set for the
1063 // Autonomous Database. The default is AL16UTF16.
1064 NCharacterSet string `json:"nCharacterSet,omitempty"`
1065 // NextLongTermBackupTime: Output only. The long term backup schedule of the
1066 // Autonomous Database.
1067 NextLongTermBackupTime string `json:"nextLongTermBackupTime,omitempty"`
1068 // OciUrl: Output only. The Oracle Cloud Infrastructure link for the Autonomous
1069 // Database.
1070 OciUrl string `json:"ociUrl,omitempty"`
1071 // Ocid: Output only. OCID of the Autonomous Database.
1072 // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
1073 Ocid string `json:"ocid,omitempty"`
1074 // OpenMode: Output only. This field indicates the current mode of the
1075 // Autonomous Database.
1076 //
1077 // Possible values:
1078 // "OPEN_MODE_UNSPECIFIED" - Default unspecified value.
1079 // "READ_ONLY" - Read Only Mode
1080 // "READ_WRITE" - Read Write Mode
1081 OpenMode string `json:"openMode,omitempty"`
1082 // OperationsInsightsState: Output only. This field indicates the state of
1083 // Operations Insights for the Autonomous Database.
1084 //
1085 // Possible values:
1086 // "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" - Default unspecified value.
1087 // "ENABLING" - Enabling status for operation insights.
1088 // "ENABLED" - Enabled status for operation insights.
1089 // "DISABLING" - Disabling status for operation insights.
1090 // "NOT_ENABLED" - Not Enabled status for operation insights.
1091 // "FAILED_ENABLING" - Failed enabling status for operation insights.
1092 // "FAILED_DISABLING" - Failed disabling status for operation insights.
1093 OperationsInsightsState string `json:"operationsInsightsState,omitempty"`
1094 // PeerDbIds: Output only. The list of OCIDs of standby databases located in
1095 // Autonomous Data Guard remote regions that are associated with the source
1096 // database.
1097 PeerDbIds []string `json:"peerDbIds,omitempty"`
1098 // PermissionLevel: Output only. The permission level of the Autonomous
1099 // Database.
1100 //
1101 // Possible values:
1102 // "PERMISSION_LEVEL_UNSPECIFIED" - Default unspecified value.
1103 // "RESTRICTED" - Restricted mode allows access only by admin users.
1104 // "UNRESTRICTED" - Normal access.
1105 PermissionLevel string `json:"permissionLevel,omitempty"`
1106 // PrivateEndpoint: Output only. The private endpoint for the Autonomous
1107 // Database.
1108 PrivateEndpoint string `json:"privateEndpoint,omitempty"`
1109 // PrivateEndpointIp: Optional. Immutable. The private endpoint IP address for
1110 // the Autonomous Database.
1111 PrivateEndpointIp string `json:"privateEndpointIp,omitempty"`
1112 // PrivateEndpointLabel: Optional. Immutable. The private endpoint label for
1113 // the Autonomous Database.
1114 PrivateEndpointLabel string `json:"privateEndpointLabel,omitempty"`
1115 // RefreshableMode: Output only. The refresh mode of the cloned Autonomous
1116 // Database.
1117 //
1118 // Possible values:
1119 // "REFRESHABLE_MODE_UNSPECIFIED" - The default unspecified value.
1120 // "AUTOMATIC" - AUTOMATIC indicates that the cloned database is
1121 // automatically refreshed with data from the source Autonomous Database.
1122 // "MANUAL" - MANUAL indicates that the cloned database is manually refreshed
1123 // with data from the source Autonomous Database.
1124 RefreshableMode string `json:"refreshableMode,omitempty"`
1125 // RefreshableState: Output only. The refresh State of the clone.
1126 //
1127 // Possible values:
1128 // "REFRESHABLE_STATE_UNSPECIFIED" - Default unspecified value.
1129 // "REFRESHING" - Refreshing
1130 // "NOT_REFRESHING" - Not refreshed
1131 RefreshableState string `json:"refreshableState,omitempty"`
1132 // Role: Output only. The Data Guard role of the Autonomous Database.
1133 //
1134 // Possible values:
1135 // "ROLE_UNSPECIFIED" - Default unspecified value.
1136 // "PRIMARY" - Primary role
1137 // "STANDBY" - Standby role
1138 // "DISABLED_STANDBY" - Disabled standby role
1139 // "BACKUP_COPY" - Backup copy role
1140 // "SNAPSHOT_STANDBY" - Snapshot standby role
1141 Role string `json:"role,omitempty"`
1142 // ScheduledOperationDetails: Output only. The list and details of the
1143 // scheduled operations of the Autonomous Database.
1144 ScheduledOperationDetails []*ScheduledOperationDetails `json:"scheduledOperationDetails,omitempty"`
1145 // SecretId: Optional. Immutable. The ID of the Oracle Cloud Infrastructure
1146 // vault secret.
1147 SecretId string `json:"secretId,omitempty"`
1148 // ServiceAgentEmail: Output only. An Oracle-managed Google Cloud service
1149 // account on which customers can grant roles to access resources in the
1150 // customer project.
1151 ServiceAgentEmail string `json:"serviceAgentEmail,omitempty"`
1152 // SqlWebDeveloperUrl: Output only. The SQL Web Developer URL for the
1153 // Autonomous Database.
1154 SqlWebDeveloperUrl string `json:"sqlWebDeveloperUrl,omitempty"`
1155 // State: Output only. The current lifecycle state of the Autonomous Database.
1156 //
1157 // Possible values:
1158 // "STATE_UNSPECIFIED" - Default unspecified value.
1159 // "PROVISIONING" - Indicates that the Autonomous Database is in provisioning
1160 // state.
1161 // "AVAILABLE" - Indicates that the Autonomous Database is in available
1162 // state.
1163 // "STOPPING" - Indicates that the Autonomous Database is in stopping state.
1164 // "STOPPED" - Indicates that the Autonomous Database is in stopped state.
1165 // "STARTING" - Indicates that the Autonomous Database is in starting state.
1166 // "TERMINATING" - Indicates that the Autonomous Database is in terminating
1167 // state.
1168 // "TERMINATED" - Indicates that the Autonomous Database is in terminated
1169 // state.
1170 // "UNAVAILABLE" - Indicates that the Autonomous Database is in unavailable
1171 // state.
1172 // "RESTORE_IN_PROGRESS" - Indicates that the Autonomous Database restore is
1173 // in progress.
1174 // "RESTORE_FAILED" - Indicates that the Autonomous Database failed to
1175 // restore.
1176 // "BACKUP_IN_PROGRESS" - Indicates that the Autonomous Database backup is in
1177 // progress.
1178 // "SCALE_IN_PROGRESS" - Indicates that the Autonomous Database scale is in
1179 // progress.
1180 // "AVAILABLE_NEEDS_ATTENTION" - Indicates that the Autonomous Database is
1181 // available but needs attention state.
1182 // "UPDATING" - Indicates that the Autonomous Database is in updating state.
1183 // "MAINTENANCE_IN_PROGRESS" - Indicates that the Autonomous Database's
1184 // maintenance is in progress state.
1185 // "RESTARTING" - Indicates that the Autonomous Database is in restarting
1186 // state.
1187 // "RECREATING" - Indicates that the Autonomous Database is in recreating
1188 // state.
1189 // "ROLE_CHANGE_IN_PROGRESS" - Indicates that the Autonomous Database's role
1190 // change is in progress state.
1191 // "UPGRADING" - Indicates that the Autonomous Database is in upgrading
1192 // state.
1193 // "INACCESSIBLE" - Indicates that the Autonomous Database is in inaccessible
1194 // state.
1195 // "STANDBY" - Indicates that the Autonomous Database is in standby state.
1196 State string `json:"state,omitempty"`
1197 // SupportedCloneRegions: Output only. The list of available regions that can
1198 // be used to create a clone for the Autonomous Database.
1199 SupportedCloneRegions []string `json:"supportedCloneRegions,omitempty"`
1200 // TotalAutoBackupStorageSizeGbs: Output only. The storage space used by
1201 // automatic backups of Autonomous Database, in gigabytes.
1202 TotalAutoBackupStorageSizeGbs float64 `json:"totalAutoBackupStorageSizeGbs,omitempty"`
1203 // UsedDataStorageSizeTbs: Output only. The storage space used by Autonomous
1204 // Database, in gigabytes.
1205 UsedDataStorageSizeTbs int64 `json:"usedDataStorageSizeTbs,omitempty"`
1206 // VaultId: Optional. Immutable. The ID of the Oracle Cloud Infrastructure
1207 // vault.
1208 VaultId string `json:"vaultId,omitempty"`
1209 // ForceSendFields is a list of field names (e.g.
1210 // "ActualUsedDataStorageSizeTb") to unconditionally include in API requests.
1211 // By default, fields with empty or default values are omitted from API
1212 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
1213 // for more details.
1214 ForceSendFields []string `json:"-"`
1215 // NullFields is a list of field names (e.g. "ActualUsedDataStorageSizeTb") to
1216 // include in API requests with the JSON null value. By default, fields with
1217 // empty values are omitted from API requests. See
1218 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1219 NullFields []string `json:"-"`
1220 }
1221
1222 func (s AutonomousDatabaseProperties) MarshalJSON() ([]byte, error) {
1223 type NoMethod AutonomousDatabaseProperties
1224 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1225 }
1226
1227 func (s *AutonomousDatabaseProperties) UnmarshalJSON(data []byte) error {
1228 type NoMethod AutonomousDatabaseProperties
1229 var s1 struct {
1230 ActualUsedDataStorageSizeTb gensupport.JSONFloat64 `json:"actualUsedDataStorageSizeTb"`
1231 AllocatedStorageSizeTb gensupport.JSONFloat64 `json:"allocatedStorageSizeTb"`
1232 ComputeCount gensupport.JSONFloat64 `json:"computeCount"`
1233 TotalAutoBackupStorageSizeGbs gensupport.JSONFloat64 `json:"totalAutoBackupStorageSizeGbs"`
1234 *NoMethod
1235 }
1236 s1.NoMethod = (*NoMethod)(s)
1237 if err := json.Unmarshal(data, &s1); err != nil {
1238 return err
1239 }
1240 s.ActualUsedDataStorageSizeTb = float64(s1.ActualUsedDataStorageSizeTb)
1241 s.AllocatedStorageSizeTb = float64(s1.AllocatedStorageSizeTb)
1242 s.ComputeCount = float64(s1.ComputeCount)
1243 s.TotalAutoBackupStorageSizeGbs = float64(s1.TotalAutoBackupStorageSizeGbs)
1244 return nil
1245 }
1246
1247 // AutonomousDatabaseStandbySummary: Autonomous Data Guard standby database
1248 // details.
1249 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary
1250 type AutonomousDatabaseStandbySummary struct {
1251 // DataGuardRoleChangedTime: Output only. The date and time the Autonomous Data
1252 // Guard role was switched for the standby Autonomous Database.
1253 DataGuardRoleChangedTime string `json:"dataGuardRoleChangedTime,omitempty"`
1254 // DisasterRecoveryRoleChangedTime: Output only. The date and time the Disaster
1255 // Recovery role was switched for the standby Autonomous Database.
1256 DisasterRecoveryRoleChangedTime string `json:"disasterRecoveryRoleChangedTime,omitempty"`
1257 // LagTimeDuration: Output only. The amount of time, in seconds, that the data
1258 // of the standby database lags in comparison to the data of the primary
1259 // database.
1260 LagTimeDuration string `json:"lagTimeDuration,omitempty"`
1261 // LifecycleDetails: Output only. The additional details about the current
1262 // lifecycle state of the Autonomous Database.
1263 LifecycleDetails string `json:"lifecycleDetails,omitempty"`
1264 // State: Output only. The current lifecycle state of the Autonomous Database.
1265 //
1266 // Possible values:
1267 // "STATE_UNSPECIFIED" - Default unspecified value.
1268 // "PROVISIONING" - Indicates that the Autonomous Database is in provisioning
1269 // state.
1270 // "AVAILABLE" - Indicates that the Autonomous Database is in available
1271 // state.
1272 // "STOPPING" - Indicates that the Autonomous Database is in stopping state.
1273 // "STOPPED" - Indicates that the Autonomous Database is in stopped state.
1274 // "STARTING" - Indicates that the Autonomous Database is in starting state.
1275 // "TERMINATING" - Indicates that the Autonomous Database is in terminating
1276 // state.
1277 // "TERMINATED" - Indicates that the Autonomous Database is in terminated
1278 // state.
1279 // "UNAVAILABLE" - Indicates that the Autonomous Database is in unavailable
1280 // state.
1281 // "RESTORE_IN_PROGRESS" - Indicates that the Autonomous Database restore is
1282 // in progress.
1283 // "RESTORE_FAILED" - Indicates that the Autonomous Database failed to
1284 // restore.
1285 // "BACKUP_IN_PROGRESS" - Indicates that the Autonomous Database backup is in
1286 // progress.
1287 // "SCALE_IN_PROGRESS" - Indicates that the Autonomous Database scale is in
1288 // progress.
1289 // "AVAILABLE_NEEDS_ATTENTION" - Indicates that the Autonomous Database is
1290 // available but needs attention state.
1291 // "UPDATING" - Indicates that the Autonomous Database is in updating state.
1292 // "MAINTENANCE_IN_PROGRESS" - Indicates that the Autonomous Database's
1293 // maintenance is in progress state.
1294 // "RESTARTING" - Indicates that the Autonomous Database is in restarting
1295 // state.
1296 // "RECREATING" - Indicates that the Autonomous Database is in recreating
1297 // state.
1298 // "ROLE_CHANGE_IN_PROGRESS" - Indicates that the Autonomous Database's role
1299 // change is in progress state.
1300 // "UPGRADING" - Indicates that the Autonomous Database is in upgrading
1301 // state.
1302 // "INACCESSIBLE" - Indicates that the Autonomous Database is in inaccessible
1303 // state.
1304 // "STANDBY" - Indicates that the Autonomous Database is in standby state.
1305 State string `json:"state,omitempty"`
1306 // ForceSendFields is a list of field names (e.g. "DataGuardRoleChangedTime")
1307 // to unconditionally include in API requests. By default, fields with empty or
1308 // default values are omitted from API requests. See
1309 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1310 // details.
1311 ForceSendFields []string `json:"-"`
1312 // NullFields is a list of field names (e.g. "DataGuardRoleChangedTime") to
1313 // include in API requests with the JSON null value. By default, fields with
1314 // empty values are omitted from API requests. See
1315 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1316 NullFields []string `json:"-"`
1317 }
1318
1319 func (s AutonomousDatabaseStandbySummary) MarshalJSON() ([]byte, error) {
1320 type NoMethod AutonomousDatabaseStandbySummary
1321 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1322 }
1323
1324 // AutonomousDbVersion: Details of the Autonomous Database version.
1325 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/
1326 type AutonomousDbVersion struct {
1327 // DbWorkload: Output only. The Autonomous Database workload type.
1328 //
1329 // Possible values:
1330 // "DB_WORKLOAD_UNSPECIFIED" - Default unspecified value.
1331 // "OLTP" - Autonomous Transaction Processing database.
1332 // "DW" - Autonomous Data Warehouse database.
1333 // "AJD" - Autonomous JSON Database.
1334 // "APEX" - Autonomous Database with the Oracle APEX Application Development
1335 // workload type.
1336 DbWorkload string `json:"dbWorkload,omitempty"`
1337 // Name: Identifier. The name of the Autonomous Database Version resource with
1338 // the format:
1339 // projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_ver
1340 // sion}
1341 Name string `json:"name,omitempty"`
1342 // Version: Output only. An Oracle Database version for Autonomous Database.
1343 Version string `json:"version,omitempty"`
1344 // WorkloadUri: Output only. A URL that points to a detailed description of the
1345 // Autonomous Database version.
1346 WorkloadUri string `json:"workloadUri,omitempty"`
1347 // ForceSendFields is a list of field names (e.g. "DbWorkload") to
1348 // unconditionally include in API requests. By default, fields with empty or
1349 // default values are omitted from API requests. See
1350 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1351 // details.
1352 ForceSendFields []string `json:"-"`
1353 // NullFields is a list of field names (e.g. "DbWorkload") to include in API
1354 // requests with the JSON null value. By default, fields with empty values are
1355 // omitted from API requests. See
1356 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1357 NullFields []string `json:"-"`
1358 }
1359
1360 func (s AutonomousDbVersion) MarshalJSON() ([]byte, error) {
1361 type NoMethod AutonomousDbVersion
1362 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1363 }
1364
1365 // BackupDestinationDetails: The details of the database backup destination.
1366 type BackupDestinationDetails struct {
1367 // Type: Optional. The type of the database backup destination.
1368 //
1369 // Possible values:
1370 // "BACKUP_DESTINATION_TYPE_UNSPECIFIED" - Default unspecified value.
1371 // "NFS" - Backup destination type is NFS.
1372 // "RECOVERY_APPLIANCE" - Backup destination type is Recovery Appliance.
1373 // "OBJECT_STORE" - Backup destination type is Object Store.
1374 // "LOCAL" - Backup destination type is Local.
1375 // "DBRS" - Backup destination type is DBRS.
1376 Type string `json:"type,omitempty"`
1377 // ForceSendFields is a list of field names (e.g. "Type") to unconditionally
1378 // include in API requests. By default, fields with empty or default values are
1379 // omitted from API requests. See
1380 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1381 // details.
1382 ForceSendFields []string `json:"-"`
1383 // NullFields is a list of field names (e.g. "Type") to include in API requests
1384 // with the JSON null value. By default, fields with empty values are omitted
1385 // from API requests. See
1386 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1387 NullFields []string `json:"-"`
1388 }
1389
1390 func (s BackupDestinationDetails) MarshalJSON() ([]byte, error) {
1391 type NoMethod BackupDestinationDetails
1392 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1393 }
1394
1395 // CancelOperationRequest: The request message for Operations.CancelOperation.
1396 type CancelOperationRequest struct {
1397 }
1398
1399 // CloudAccountDetails: Details of the OCI Cloud Account.
1400 type CloudAccountDetails struct {
1401 // AccountCreationUri: Output only. URL to create a new account and link.
1402 AccountCreationUri string `json:"accountCreationUri,omitempty"`
1403 // CloudAccount: Output only. OCI account name.
1404 CloudAccount string `json:"cloudAccount,omitempty"`
1405 // CloudAccountHomeRegion: Output only. OCI account home region.
1406 CloudAccountHomeRegion string `json:"cloudAccountHomeRegion,omitempty"`
1407 // LinkExistingAccountUri: Output only. URL to link an existing account.
1408 LinkExistingAccountUri string `json:"linkExistingAccountUri,omitempty"`
1409 // ForceSendFields is a list of field names (e.g. "AccountCreationUri") to
1410 // unconditionally include in API requests. By default, fields with empty or
1411 // default values are omitted from API requests. See
1412 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1413 // details.
1414 ForceSendFields []string `json:"-"`
1415 // NullFields is a list of field names (e.g. "AccountCreationUri") to include
1416 // in API requests with the JSON null value. By default, fields with empty
1417 // values are omitted from API requests. See
1418 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1419 NullFields []string `json:"-"`
1420 }
1421
1422 func (s CloudAccountDetails) MarshalJSON() ([]byte, error) {
1423 type NoMethod CloudAccountDetails
1424 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1425 }
1426
1427 // CloudExadataInfrastructure: Represents CloudExadataInfrastructure resource.
1428 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/
1429 type CloudExadataInfrastructure struct {
1430 // CreateTime: Output only. The date and time that the Exadata Infrastructure
1431 // was created.
1432 CreateTime string `json:"createTime,omitempty"`
1433 // DisplayName: Optional. User friendly name for this resource.
1434 DisplayName string `json:"displayName,omitempty"`
1435 // EntitlementId: Output only. Entitlement ID of the private offer against
1436 // which this infrastructure resource is provisioned.
1437 EntitlementId string `json:"entitlementId,omitempty"`
1438 // GcpOracleZone: Optional. The GCP Oracle zone where Oracle Exadata
1439 // Infrastructure is hosted. Example: us-east4-b-r2. If not specified, the
1440 // system will pick a zone based on availability.
1441 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
1442 // Labels: Optional. Labels or tags associated with the resource.
1443 Labels map[string]string `json:"labels,omitempty"`
1444 // Name: Identifier. The name of the Exadata Infrastructure resource with the
1445 // format:
1446 // projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exad
1447 // ata_infrastructure}
1448 Name string `json:"name,omitempty"`
1449 // Properties: Optional. Various properties of the infra.
1450 Properties *CloudExadataInfrastructureProperties `json:"properties,omitempty"`
1451
1452 // ServerResponse contains the HTTP response code and headers from the server.
1453 googleapi.ServerResponse `json:"-"`
1454 // ForceSendFields is a list of field names (e.g. "CreateTime") to
1455 // unconditionally include in API requests. By default, fields with empty or
1456 // default values are omitted from API requests. See
1457 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1458 // details.
1459 ForceSendFields []string `json:"-"`
1460 // NullFields is a list of field names (e.g. "CreateTime") to include in API
1461 // requests with the JSON null value. By default, fields with empty values are
1462 // omitted from API requests. See
1463 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1464 NullFields []string `json:"-"`
1465 }
1466
1467 func (s CloudExadataInfrastructure) MarshalJSON() ([]byte, error) {
1468 type NoMethod CloudExadataInfrastructure
1469 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1470 }
1471
1472 // CloudExadataInfrastructureProperties: Various properties of Exadata
1473 // Infrastructure.
1474 type CloudExadataInfrastructureProperties struct {
1475 // ActivatedStorageCount: Output only. The requested number of additional
1476 // storage servers activated for the Exadata Infrastructure.
1477 ActivatedStorageCount int64 `json:"activatedStorageCount,omitempty"`
1478 // AdditionalStorageCount: Output only. The requested number of additional
1479 // storage servers for the Exadata Infrastructure.
1480 AdditionalStorageCount int64 `json:"additionalStorageCount,omitempty"`
1481 // AvailableStorageSizeGb: Output only. The available storage can be allocated
1482 // to the Exadata Infrastructure resource, in gigabytes (GB).
1483 AvailableStorageSizeGb int64 `json:"availableStorageSizeGb,omitempty"`
1484 // ComputeCount: Optional. The number of compute servers for the Exadata
1485 // Infrastructure.
1486 ComputeCount int64 `json:"computeCount,omitempty"`
1487 // ComputeModel: Output only. The compute model of the Exadata Infrastructure.
1488 //
1489 // Possible values:
1490 // "COMPUTE_MODEL_UNSPECIFIED" - Unspecified compute model.
1491 // "COMPUTE_MODEL_ECPU" - Abstract measure of compute resources. ECPUs are
1492 // based on the number of cores elastically allocated from a pool of compute
1493 // and storage servers.
1494 // "COMPUTE_MODEL_OCPU" - Physical measure of compute resources. OCPUs are
1495 // based on the physical core of a processor.
1496 ComputeModel string `json:"computeModel,omitempty"`
1497 // CpuCount: Output only. The number of enabled CPU cores.
1498 CpuCount int64 `json:"cpuCount,omitempty"`
1499 // CustomerContacts: Optional. The list of customer contacts.
1500 CustomerContacts []*CustomerContact `json:"customerContacts,omitempty"`
1501 // DataStorageSizeTb: Output only. Size, in terabytes, of the DATA disk group.
1502 DataStorageSizeTb float64 `json:"dataStorageSizeTb,omitempty"`
1503 // DatabaseServerType: Output only. The database server type of the Exadata
1504 // Infrastructure.
1505 DatabaseServerType string `json:"databaseServerType,omitempty"`
1506 // DbNodeStorageSizeGb: Output only. The local node storage allocated in GBs.
1507 DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"`
1508 // DbServerVersion: Output only. The software version of the database servers
1509 // (dom0) in the Exadata Infrastructure.
1510 DbServerVersion string `json:"dbServerVersion,omitempty"`
1511 // MaintenanceWindow: Optional. Maintenance window for repair.
1512 MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`
1513 // MaxCpuCount: Output only. The total number of CPU cores available.
1514 MaxCpuCount int64 `json:"maxCpuCount,omitempty"`
1515 // MaxDataStorageTb: Output only. The total available DATA disk group size.
1516 MaxDataStorageTb float64 `json:"maxDataStorageTb,omitempty"`
1517 // MaxDbNodeStorageSizeGb: Output only. The total local node storage available
1518 // in GBs.
1519 MaxDbNodeStorageSizeGb int64 `json:"maxDbNodeStorageSizeGb,omitempty"`
1520 // MaxMemoryGb: Output only. The total memory available in GBs.
1521 MaxMemoryGb int64 `json:"maxMemoryGb,omitempty"`
1522 // MemorySizeGb: Output only. The memory allocated in GBs.
1523 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
1524 // MonthlyDbServerVersion: Output only. The monthly software version of the
1525 // database servers (dom0) in the Exadata Infrastructure. Example: 20.1.15
1526 MonthlyDbServerVersion string `json:"monthlyDbServerVersion,omitempty"`
1527 // MonthlyStorageServerVersion: Output only. The monthly software version of
1528 // the storage servers (cells) in the Exadata Infrastructure. Example: 20.1.15
1529 MonthlyStorageServerVersion string `json:"monthlyStorageServerVersion,omitempty"`
1530 // NextMaintenanceRunId: Output only. The OCID of the next maintenance run.
1531 NextMaintenanceRunId string `json:"nextMaintenanceRunId,omitempty"`
1532 // NextMaintenanceRunTime: Output only. The time when the next maintenance run
1533 // will occur.
1534 NextMaintenanceRunTime string `json:"nextMaintenanceRunTime,omitempty"`
1535 // NextSecurityMaintenanceRunTime: Output only. The time when the next security
1536 // maintenance run will occur.
1537 NextSecurityMaintenanceRunTime string `json:"nextSecurityMaintenanceRunTime,omitempty"`
1538 // OciUrl: Output only. Deep link to the OCI console to view this resource.
1539 OciUrl string `json:"ociUrl,omitempty"`
1540 // Ocid: Output only. OCID of created infra.
1541 // https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle
1542 Ocid string `json:"ocid,omitempty"`
1543 // Shape: Required. The shape of the Exadata Infrastructure. The shape
1544 // determines the amount of CPU, storage, and memory resources allocated to the
1545 // instance.
1546 Shape string `json:"shape,omitempty"`
1547 // State: Output only. The current lifecycle state of the Exadata
1548 // Infrastructure.
1549 //
1550 // Possible values:
1551 // "STATE_UNSPECIFIED" - Default unspecified value.
1552 // "PROVISIONING" - The Exadata Infrastructure is being provisioned.
1553 // "AVAILABLE" - The Exadata Infrastructure is available for use.
1554 // "UPDATING" - The Exadata Infrastructure is being updated.
1555 // "TERMINATING" - The Exadata Infrastructure is being terminated.
1556 // "TERMINATED" - The Exadata Infrastructure is terminated.
1557 // "FAILED" - The Exadata Infrastructure is in failed state.
1558 // "MAINTENANCE_IN_PROGRESS" - The Exadata Infrastructure is in maintenance.
1559 State string `json:"state,omitempty"`
1560 // StorageCount: Optional. The number of Cloud Exadata storage servers for the
1561 // Exadata Infrastructure.
1562 StorageCount int64 `json:"storageCount,omitempty"`
1563 // StorageServerType: Output only. The storage server type of the Exadata
1564 // Infrastructure.
1565 StorageServerType string `json:"storageServerType,omitempty"`
1566 // StorageServerVersion: Output only. The software version of the storage
1567 // servers (cells) in the Exadata Infrastructure.
1568 StorageServerVersion string `json:"storageServerVersion,omitempty"`
1569 // TotalStorageSizeGb: Optional. The total storage allocated to the Exadata
1570 // Infrastructure resource, in gigabytes (GB).
1571 TotalStorageSizeGb int64 `json:"totalStorageSizeGb,omitempty"`
1572 // ForceSendFields is a list of field names (e.g. "ActivatedStorageCount") to
1573 // unconditionally include in API requests. By default, fields with empty or
1574 // default values are omitted from API requests. See
1575 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1576 // details.
1577 ForceSendFields []string `json:"-"`
1578 // NullFields is a list of field names (e.g. "ActivatedStorageCount") to
1579 // include in API requests with the JSON null value. By default, fields with
1580 // empty values are omitted from API requests. See
1581 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1582 NullFields []string `json:"-"`
1583 }
1584
1585 func (s CloudExadataInfrastructureProperties) MarshalJSON() ([]byte, error) {
1586 type NoMethod CloudExadataInfrastructureProperties
1587 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1588 }
1589
1590 func (s *CloudExadataInfrastructureProperties) UnmarshalJSON(data []byte) error {
1591 type NoMethod CloudExadataInfrastructureProperties
1592 var s1 struct {
1593 DataStorageSizeTb gensupport.JSONFloat64 `json:"dataStorageSizeTb"`
1594 MaxDataStorageTb gensupport.JSONFloat64 `json:"maxDataStorageTb"`
1595 *NoMethod
1596 }
1597 s1.NoMethod = (*NoMethod)(s)
1598 if err := json.Unmarshal(data, &s1); err != nil {
1599 return err
1600 }
1601 s.DataStorageSizeTb = float64(s1.DataStorageSizeTb)
1602 s.MaxDataStorageTb = float64(s1.MaxDataStorageTb)
1603 return nil
1604 }
1605
1606 // CloudVmCluster: Details of the Cloud VM Cluster resource.
1607 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/
1608 type CloudVmCluster struct {
1609 // BackupOdbSubnet: Optional. The name of the backup OdbSubnet associated with
1610 // the VM Cluster. Format:
1611 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
1612 // {odb_subnet}
1613 BackupOdbSubnet string `json:"backupOdbSubnet,omitempty"`
1614 // BackupSubnetCidr: Optional. CIDR range of the backup subnet.
1615 BackupSubnetCidr string `json:"backupSubnetCidr,omitempty"`
1616 // Cidr: Optional. Network settings. CIDR to use for cluster IP allocation.
1617 Cidr string `json:"cidr,omitempty"`
1618 // CreateTime: Output only. The date and time that the VM cluster was created.
1619 CreateTime string `json:"createTime,omitempty"`
1620 // DisplayName: Optional. User friendly name for this resource.
1621 DisplayName string `json:"displayName,omitempty"`
1622 // ExadataInfrastructure: Required. The name of the Exadata Infrastructure
1623 // resource on which VM cluster resource is created, in the following format:
1624 // projects/{project}/locations/{region}/cloudExadataInfrastuctures/{cloud_extra
1625 // data_infrastructure}
1626 ExadataInfrastructure string `json:"exadataInfrastructure,omitempty"`
1627 // GcpOracleZone: Output only. The GCP Oracle zone where Oracle CloudVmCluster
1628 // is hosted. This will be the same as the gcp_oracle_zone of the
1629 // CloudExadataInfrastructure. Example: us-east4-b-r2.
1630 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
1631 // IdentityConnector: Output only. The identity connector details which will
1632 // allow OCI to securely access the resources in the customer project.
1633 IdentityConnector *IdentityConnector `json:"identityConnector,omitempty"`
1634 // Labels: Optional. Labels or tags associated with the VM Cluster.
1635 Labels map[string]string `json:"labels,omitempty"`
1636 // Name: Identifier. The name of the VM Cluster resource with the format:
1637 // projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster}
1638 Name string `json:"name,omitempty"`
1639 // Network: Optional. The name of the VPC network. Format:
1640 // projects/{project}/global/networks/{network}
1641 Network string `json:"network,omitempty"`
1642 // OdbNetwork: Optional. The name of the OdbNetwork associated with the VM
1643 // Cluster. Format:
1644 // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
1645 // optional but if specified, this should match the parent ODBNetwork of the
1646 // odb_subnet and backup_odb_subnet.
1647 OdbNetwork string `json:"odbNetwork,omitempty"`
1648 // OdbSubnet: Optional. The name of the OdbSubnet associated with the VM
1649 // Cluster for IP allocation. Format:
1650 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
1651 // {odb_subnet}
1652 OdbSubnet string `json:"odbSubnet,omitempty"`
1653 // Properties: Optional. Various properties of the VM Cluster.
1654 Properties *CloudVmClusterProperties `json:"properties,omitempty"`
1655
1656 // ServerResponse contains the HTTP response code and headers from the server.
1657 googleapi.ServerResponse `json:"-"`
1658 // ForceSendFields is a list of field names (e.g. "BackupOdbSubnet") to
1659 // unconditionally include in API requests. By default, fields with empty or
1660 // default values are omitted from API requests. See
1661 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1662 // details.
1663 ForceSendFields []string `json:"-"`
1664 // NullFields is a list of field names (e.g. "BackupOdbSubnet") to include in
1665 // API requests with the JSON null value. By default, fields with empty values
1666 // are omitted from API requests. See
1667 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1668 NullFields []string `json:"-"`
1669 }
1670
1671 func (s CloudVmCluster) MarshalJSON() ([]byte, error) {
1672 type NoMethod CloudVmCluster
1673 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1674 }
1675
1676 // CloudVmClusterProperties: Various properties and settings associated with
1677 // Exadata VM cluster.
1678 type CloudVmClusterProperties struct {
1679 // ClusterName: Optional. OCI Cluster name.
1680 ClusterName string `json:"clusterName,omitempty"`
1681 // CompartmentId: Output only. Compartment ID of cluster.
1682 CompartmentId string `json:"compartmentId,omitempty"`
1683 // ComputeModel: Output only. The compute model of the VM Cluster.
1684 //
1685 // Possible values:
1686 // "COMPUTE_MODEL_UNSPECIFIED" - Unspecified compute model.
1687 // "COMPUTE_MODEL_ECPU" - Abstract measure of compute resources. ECPUs are
1688 // based on the number of cores elastically allocated from a pool of compute
1689 // and storage servers.
1690 // "COMPUTE_MODEL_OCPU" - Physical measure of compute resources. OCPUs are
1691 // based on the physical core of a processor.
1692 ComputeModel string `json:"computeModel,omitempty"`
1693 // CpuCoreCount: Required. Number of enabled CPU cores.
1694 CpuCoreCount int64 `json:"cpuCoreCount,omitempty"`
1695 // DataStorageSizeTb: Optional. The data disk group size to be allocated in
1696 // TBs.
1697 DataStorageSizeTb float64 `json:"dataStorageSizeTb,omitempty"`
1698 // DbNodeStorageSizeGb: Optional. Local storage per VM.
1699 DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"`
1700 // DbServerOcids: Optional. OCID of database servers.
1701 DbServerOcids []string `json:"dbServerOcids,omitempty"`
1702 // DiagnosticsDataCollectionOptions: Optional. Data collection options for
1703 // diagnostics.
1704 DiagnosticsDataCollectionOptions *DataCollectionOptions `json:"diagnosticsDataCollectionOptions,omitempty"`
1705 // DiskRedundancy: Optional. The type of redundancy.
1706 //
1707 // Possible values:
1708 // "DISK_REDUNDANCY_UNSPECIFIED" - Unspecified.
1709 // "HIGH" - High - 3 way mirror.
1710 // "NORMAL" - Normal - 2 way mirror.
1711 DiskRedundancy string `json:"diskRedundancy,omitempty"`
1712 // DnsListenerIp: Output only. DNS listener IP.
1713 DnsListenerIp string `json:"dnsListenerIp,omitempty"`
1714 // Domain: Output only. Parent DNS domain where SCAN DNS and hosts names are
1715 // qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com
1716 Domain string `json:"domain,omitempty"`
1717 // GiVersion: Optional. Grid Infrastructure Version.
1718 GiVersion string `json:"giVersion,omitempty"`
1719 // Hostname: Output only. host name without domain. format: "-" with some
1720 // suffix. ex: sp2-yi0xq where "sp2" is the hostname_prefix.
1721 Hostname string `json:"hostname,omitempty"`
1722 // HostnamePrefix: Optional. Prefix for VM cluster host names.
1723 HostnamePrefix string `json:"hostnamePrefix,omitempty"`
1724 // LicenseType: Required. License type of VM Cluster.
1725 //
1726 // Possible values:
1727 // "LICENSE_TYPE_UNSPECIFIED" - Unspecified
1728 // "LICENSE_INCLUDED" - License included part of offer
1729 // "BRING_YOUR_OWN_LICENSE" - Bring your own license
1730 LicenseType string `json:"licenseType,omitempty"`
1731 // LocalBackupEnabled: Optional. Use local backup.
1732 LocalBackupEnabled bool `json:"localBackupEnabled,omitempty"`
1733 // MemorySizeGb: Optional. Memory allocated in GBs.
1734 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
1735 // NodeCount: Optional. Number of database servers.
1736 NodeCount int64 `json:"nodeCount,omitempty"`
1737 // OciUrl: Output only. Deep link to the OCI console to view this resource.
1738 OciUrl string `json:"ociUrl,omitempty"`
1739 // Ocid: Output only. Oracle Cloud Infrastructure ID of VM Cluster.
1740 Ocid string `json:"ocid,omitempty"`
1741 // OcpuCount: Optional. OCPU count per VM. Minimum is 0.1.
1742 OcpuCount float64 `json:"ocpuCount,omitempty"`
1743 // ScanDns: Output only. SCAN DNS name. ex:
1744 // sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com
1745 ScanDns string `json:"scanDns,omitempty"`
1746 // ScanDnsRecordId: Output only. OCID of scan DNS record.
1747 ScanDnsRecordId string `json:"scanDnsRecordId,omitempty"`
1748 // ScanIpIds: Output only. OCIDs of scan IPs.
1749 ScanIpIds []string `json:"scanIpIds,omitempty"`
1750 // ScanListenerPortTcp: Output only. SCAN listener port - TCP
1751 ScanListenerPortTcp int64 `json:"scanListenerPortTcp,omitempty"`
1752 // ScanListenerPortTcpSsl: Output only. SCAN listener port - TLS
1753 ScanListenerPortTcpSsl int64 `json:"scanListenerPortTcpSsl,omitempty"`
1754 // Shape: Output only. Shape of VM Cluster.
1755 Shape string `json:"shape,omitempty"`
1756 // SparseDiskgroupEnabled: Optional. Use exadata sparse snapshots.
1757 SparseDiskgroupEnabled bool `json:"sparseDiskgroupEnabled,omitempty"`
1758 // SshPublicKeys: Optional. SSH public keys to be stored with cluster.
1759 SshPublicKeys []string `json:"sshPublicKeys,omitempty"`
1760 // State: Output only. State of the cluster.
1761 //
1762 // Possible values:
1763 // "STATE_UNSPECIFIED" - Default unspecified value.
1764 // "PROVISIONING" - Indicates that the resource is in provisioning state.
1765 // "AVAILABLE" - Indicates that the resource is in available state.
1766 // "UPDATING" - Indicates that the resource is in updating state.
1767 // "TERMINATING" - Indicates that the resource is in terminating state.
1768 // "TERMINATED" - Indicates that the resource is in terminated state.
1769 // "FAILED" - Indicates that the resource is in failed state.
1770 // "MAINTENANCE_IN_PROGRESS" - Indicates that the resource is in maintenance
1771 // in progress state.
1772 State string `json:"state,omitempty"`
1773 // StorageSizeGb: Output only. The storage allocation for the disk group, in
1774 // gigabytes (GB).
1775 StorageSizeGb int64 `json:"storageSizeGb,omitempty"`
1776 // SystemVersion: Optional. Operating system version of the image.
1777 SystemVersion string `json:"systemVersion,omitempty"`
1778 // TimeZone: Optional. Time zone of VM Cluster to set. Defaults to UTC if not
1779 // specified.
1780 TimeZone *TimeZone `json:"timeZone,omitempty"`
1781 // ForceSendFields is a list of field names (e.g. "ClusterName") to
1782 // unconditionally include in API requests. By default, fields with empty or
1783 // default values are omitted from API requests. See
1784 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1785 // details.
1786 ForceSendFields []string `json:"-"`
1787 // NullFields is a list of field names (e.g. "ClusterName") to include in API
1788 // requests with the JSON null value. By default, fields with empty values are
1789 // omitted from API requests. See
1790 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1791 NullFields []string `json:"-"`
1792 }
1793
1794 func (s CloudVmClusterProperties) MarshalJSON() ([]byte, error) {
1795 type NoMethod CloudVmClusterProperties
1796 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1797 }
1798
1799 func (s *CloudVmClusterProperties) UnmarshalJSON(data []byte) error {
1800 type NoMethod CloudVmClusterProperties
1801 var s1 struct {
1802 DataStorageSizeTb gensupport.JSONFloat64 `json:"dataStorageSizeTb"`
1803 OcpuCount gensupport.JSONFloat64 `json:"ocpuCount"`
1804 *NoMethod
1805 }
1806 s1.NoMethod = (*NoMethod)(s)
1807 if err := json.Unmarshal(data, &s1); err != nil {
1808 return err
1809 }
1810 s.DataStorageSizeTb = float64(s1.DataStorageSizeTb)
1811 s.OcpuCount = float64(s1.OcpuCount)
1812 return nil
1813 }
1814
1815 // CustomerContact: The CustomerContact reference as defined by Oracle.
1816 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact
1817 type CustomerContact struct {
1818 // Email: Required. The email address used by Oracle to send notifications
1819 // regarding databases and infrastructure.
1820 Email string `json:"email,omitempty"`
1821 // ForceSendFields is a list of field names (e.g. "Email") to unconditionally
1822 // include in API requests. By default, fields with empty or default values are
1823 // omitted from API requests. See
1824 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1825 // details.
1826 ForceSendFields []string `json:"-"`
1827 // NullFields is a list of field names (e.g. "Email") to include in API
1828 // requests with the JSON null value. By default, fields with empty values are
1829 // omitted from API requests. See
1830 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1831 NullFields []string `json:"-"`
1832 }
1833
1834 func (s CustomerContact) MarshalJSON() ([]byte, error) {
1835 type NoMethod CustomerContact
1836 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1837 }
1838
1839 // DataCollectionOptions: Data collection options for diagnostics.
1840 type DataCollectionOptions struct {
1841 // DiagnosticsEventsEnabled: Optional. Indicates whether diagnostic collection
1842 // is enabled for the VM cluster
1843 DiagnosticsEventsEnabled bool `json:"diagnosticsEventsEnabled,omitempty"`
1844 // HealthMonitoringEnabled: Optional. Indicates whether health monitoring is
1845 // enabled for the VM cluster
1846 HealthMonitoringEnabled bool `json:"healthMonitoringEnabled,omitempty"`
1847 // IncidentLogsEnabled: Optional. Indicates whether incident logs and trace
1848 // collection are enabled for the VM cluster
1849 IncidentLogsEnabled bool `json:"incidentLogsEnabled,omitempty"`
1850 // ForceSendFields is a list of field names (e.g. "DiagnosticsEventsEnabled")
1851 // to unconditionally include in API requests. By default, fields with empty or
1852 // default values are omitted from API requests. See
1853 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1854 // details.
1855 ForceSendFields []string `json:"-"`
1856 // NullFields is a list of field names (e.g. "DiagnosticsEventsEnabled") to
1857 // include in API requests with the JSON null value. By default, fields with
1858 // empty values are omitted from API requests. See
1859 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1860 NullFields []string `json:"-"`
1861 }
1862
1863 func (s DataCollectionOptions) MarshalJSON() ([]byte, error) {
1864 type NoMethod DataCollectionOptions
1865 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1866 }
1867
1868 // DataCollectionOptionsCommon: Data collection options for diagnostics.
1869 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions
1870 type DataCollectionOptionsCommon struct {
1871 // IsDiagnosticsEventsEnabled: Optional. Indicates whether to enable data
1872 // collection for diagnostics.
1873 IsDiagnosticsEventsEnabled bool `json:"isDiagnosticsEventsEnabled,omitempty"`
1874 // IsHealthMonitoringEnabled: Optional. Indicates whether to enable health
1875 // monitoring.
1876 IsHealthMonitoringEnabled bool `json:"isHealthMonitoringEnabled,omitempty"`
1877 // IsIncidentLogsEnabled: Optional. Indicates whether to enable incident logs
1878 // and trace collection.
1879 IsIncidentLogsEnabled bool `json:"isIncidentLogsEnabled,omitempty"`
1880 // ForceSendFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled")
1881 // to unconditionally include in API requests. By default, fields with empty or
1882 // default values are omitted from API requests. See
1883 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1884 // details.
1885 ForceSendFields []string `json:"-"`
1886 // NullFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled") to
1887 // include in API requests with the JSON null value. By default, fields with
1888 // empty values are omitted from API requests. See
1889 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1890 NullFields []string `json:"-"`
1891 }
1892
1893 func (s DataCollectionOptionsCommon) MarshalJSON() ([]byte, error) {
1894 type NoMethod DataCollectionOptionsCommon
1895 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1896 }
1897
1898 // DataCollectionOptionsDbSystem: Data collection options for DbSystem.
1899 type DataCollectionOptionsDbSystem struct {
1900 // IsDiagnosticsEventsEnabled: Optional. Indicates whether to enable data
1901 // collection for diagnostics.
1902 IsDiagnosticsEventsEnabled bool `json:"isDiagnosticsEventsEnabled,omitempty"`
1903 // IsIncidentLogsEnabled: Optional. Indicates whether to enable incident logs
1904 // and trace collection.
1905 IsIncidentLogsEnabled bool `json:"isIncidentLogsEnabled,omitempty"`
1906 // ForceSendFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled")
1907 // to unconditionally include in API requests. By default, fields with empty or
1908 // default values are omitted from API requests. See
1909 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
1910 // details.
1911 ForceSendFields []string `json:"-"`
1912 // NullFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled") to
1913 // include in API requests with the JSON null value. By default, fields with
1914 // empty values are omitted from API requests. See
1915 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
1916 NullFields []string `json:"-"`
1917 }
1918
1919 func (s DataCollectionOptionsDbSystem) MarshalJSON() ([]byte, error) {
1920 type NoMethod DataCollectionOptionsDbSystem
1921 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
1922 }
1923
1924 // Database: Details of the Database resource.
1925 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/
1926 type Database struct {
1927 // AdminPassword: Optional. The password for the default ADMIN user. Note: Only
1928 // one of `admin_password_secret_version` or `admin_password` can be populated.
1929 AdminPassword string `json:"adminPassword,omitempty"`
1930 // AdminPasswordSecretVersion: Optional. The resource name of a secret version
1931 // in Secret Manager which contains the database admin user's password. Format:
1932 // projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
1933 // `admin_password_secret_version` or `admin_password` can be populated.
1934 AdminPasswordSecretVersion string `json:"adminPasswordSecretVersion,omitempty"`
1935 // CharacterSet: Optional. The character set for the database. The default is
1936 // AL32UTF8.
1937 CharacterSet string `json:"characterSet,omitempty"`
1938 // CreateTime: Output only. The date and time that the Database was created.
1939 CreateTime string `json:"createTime,omitempty"`
1940 // DatabaseId: Optional. The database ID of the Database.
1941 DatabaseId string `json:"databaseId,omitempty"`
1942 // DbHomeName: Optional. The name of the DbHome resource associated with the
1943 // Database.
1944 DbHomeName string `json:"dbHomeName,omitempty"`
1945 // DbName: Optional. The database name. The name must begin with an alphabetic
1946 // character and can contain a maximum of eight alphanumeric characters.
1947 // Special characters are not permitted.
1948 DbName string `json:"dbName,omitempty"`
1949 // DbUniqueName: Optional. The DB_UNIQUE_NAME of the Oracle Database being
1950 // backed up.
1951 DbUniqueName string `json:"dbUniqueName,omitempty"`
1952 // GcpOracleZone: Output only. The GCP Oracle zone where the Database is
1953 // created.
1954 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
1955 // Name: Identifier. The name of the Database resource in the following format:
1956 // projects/{project}/locations/{region}/databases/{database}
1957 Name string `json:"name,omitempty"`
1958 // NcharacterSet: Optional. The national character set for the database. The
1959 // default is AL16UTF16.
1960 NcharacterSet string `json:"ncharacterSet,omitempty"`
1961 // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI
1962 // Interface.
1963 OciUrl string `json:"ociUrl,omitempty"`
1964 // OpsInsightsStatus: Output only. The Status of Operations Insights for this
1965 // Database.
1966 //
1967 // Possible values:
1968 // "OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED" - Default unspecified value.
1969 // "ENABLING" - Indicates that the operations insights are being enabled.
1970 // "ENABLED" - Indicates that the operations insights are enabled.
1971 // "DISABLING" - Indicates that the operations insights are being disabled.
1972 // "NOT_ENABLED" - Indicates that the operations insights are not enabled.
1973 // "FAILED_ENABLING" - Indicates that the operations insights failed to
1974 // enable.
1975 // "FAILED_DISABLING" - Indicates that the operations insights failed to
1976 // disable.
1977 OpsInsightsStatus string `json:"opsInsightsStatus,omitempty"`
1978 // PluggableDatabaseId: Optional. The ID of the pluggable database associated
1979 // with the Database. The ID must be unique within the project and location.
1980 PluggableDatabaseId string `json:"pluggableDatabaseId,omitempty"`
1981 // PluggableDatabaseName: Optional. The pluggable database associated with the
1982 // Database. The name must begin with an alphabetic character and can contain a
1983 // maximum of thirty alphanumeric characters.
1984 PluggableDatabaseName string `json:"pluggableDatabaseName,omitempty"`
1985 // Properties: Optional. The properties of the Database.
1986 Properties *DatabaseProperties `json:"properties,omitempty"`
1987 // TdeWalletPassword: Optional. The TDE wallet password for the database. Note:
1988 // Only one of `tde_wallet_password_secret_version` or `tde_wallet_password`
1989 // can be populated.
1990 TdeWalletPassword string `json:"tdeWalletPassword,omitempty"`
1991 // TdeWalletPasswordSecretVersion: Optional. The resource name of a secret
1992 // version in Secret Manager which contains the TDE wallet password for the
1993 // database. Format: projects/{project}/secrets/{secret}/versions/{version}.
1994 // Note: Only one of `tde_wallet_password_secret_version` or
1995 // `tde_wallet_password` can be populated.
1996 TdeWalletPasswordSecretVersion string `json:"tdeWalletPasswordSecretVersion,omitempty"`
1997
1998 // ServerResponse contains the HTTP response code and headers from the server.
1999 googleapi.ServerResponse `json:"-"`
2000 // ForceSendFields is a list of field names (e.g. "AdminPassword") to
2001 // unconditionally include in API requests. By default, fields with empty or
2002 // default values are omitted from API requests. See
2003 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2004 // details.
2005 ForceSendFields []string `json:"-"`
2006 // NullFields is a list of field names (e.g. "AdminPassword") to include in API
2007 // requests with the JSON null value. By default, fields with empty values are
2008 // omitted from API requests. See
2009 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2010 NullFields []string `json:"-"`
2011 }
2012
2013 func (s Database) MarshalJSON() ([]byte, error) {
2014 type NoMethod Database
2015 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2016 }
2017
2018 // DatabaseCharacterSet: Details of the Database character set resource.
2019 type DatabaseCharacterSet struct {
2020 // CharacterSet: Output only. The character set name for the Database which is
2021 // the ID in the resource name.
2022 CharacterSet string `json:"characterSet,omitempty"`
2023 // CharacterSetType: Output only. The character set type for the Database.
2024 //
2025 // Possible values:
2026 // "CHARACTER_SET_TYPE_UNSPECIFIED" - Character set type is not specified.
2027 // "DATABASE" - Character set type is set to database.
2028 // "NATIONAL" - Character set type is set to national.
2029 CharacterSetType string `json:"characterSetType,omitempty"`
2030 // Name: Identifier. The name of the Database Character Set resource in the
2031 // following format:
2032 // projects/{project}/locations/{region}/databaseCharacterSets/{database_charact
2033 // er_set}
2034 Name string `json:"name,omitempty"`
2035 // ForceSendFields is a list of field names (e.g. "CharacterSet") to
2036 // unconditionally include in API requests. By default, fields with empty or
2037 // default values are omitted from API requests. See
2038 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2039 // details.
2040 ForceSendFields []string `json:"-"`
2041 // NullFields is a list of field names (e.g. "CharacterSet") to include in API
2042 // requests with the JSON null value. By default, fields with empty values are
2043 // omitted from API requests. See
2044 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2045 NullFields []string `json:"-"`
2046 }
2047
2048 func (s DatabaseCharacterSet) MarshalJSON() ([]byte, error) {
2049 type NoMethod DatabaseCharacterSet
2050 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2051 }
2052
2053 // DatabaseConnectionStringProfile: The connection string profile to allow
2054 // clients to group.
2055 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile
2056 type DatabaseConnectionStringProfile struct {
2057 // ConsumerGroup: Output only. The current consumer group being used by the
2058 // connection.
2059 //
2060 // Possible values:
2061 // "CONSUMER_GROUP_UNSPECIFIED" - Default unspecified value.
2062 // "HIGH" - High consumer group.
2063 // "MEDIUM" - Medium consumer group.
2064 // "LOW" - Low consumer group.
2065 // "TP" - TP consumer group.
2066 // "TPURGENT" - TPURGENT consumer group.
2067 ConsumerGroup string `json:"consumerGroup,omitempty"`
2068 // DisplayName: Output only. The display name for the database connection.
2069 DisplayName string `json:"displayName,omitempty"`
2070 // HostFormat: Output only. The host name format being currently used in
2071 // connection string.
2072 //
2073 // Possible values:
2074 // "HOST_FORMAT_UNSPECIFIED" - Default unspecified value.
2075 // "FQDN" - FQDN
2076 // "IP" - IP
2077 HostFormat string `json:"hostFormat,omitempty"`
2078 // IsRegional: Output only. This field indicates if the connection string is
2079 // regional and is only applicable for cross-region Data Guard.
2080 IsRegional bool `json:"isRegional,omitempty"`
2081 // Protocol: Output only. The protocol being used by the connection.
2082 //
2083 // Possible values:
2084 // "PROTOCOL_UNSPECIFIED" - Default unspecified value.
2085 // "TCP" - Tcp
2086 // "TCPS" - Tcps
2087 Protocol string `json:"protocol,omitempty"`
2088 // SessionMode: Output only. The current session mode of the connection.
2089 //
2090 // Possible values:
2091 // "SESSION_MODE_UNSPECIFIED" - Default unspecified value.
2092 // "DIRECT" - Direct
2093 // "INDIRECT" - Indirect
2094 SessionMode string `json:"sessionMode,omitempty"`
2095 // SyntaxFormat: Output only. The syntax of the connection string.
2096 //
2097 // Possible values:
2098 // "SYNTAX_FORMAT_UNSPECIFIED" - Default unspecified value.
2099 // "LONG" - Long
2100 // "EZCONNECT" - Ezconnect
2101 // "EZCONNECTPLUS" - Ezconnectplus
2102 SyntaxFormat string `json:"syntaxFormat,omitempty"`
2103 // TlsAuthentication: Output only. This field indicates the TLS authentication
2104 // type of the connection.
2105 //
2106 // Possible values:
2107 // "TLS_AUTHENTICATION_UNSPECIFIED" - Default unspecified value.
2108 // "SERVER" - Server
2109 // "MUTUAL" - Mutual
2110 TlsAuthentication string `json:"tlsAuthentication,omitempty"`
2111 // Value: Output only. The value of the connection string.
2112 Value string `json:"value,omitempty"`
2113 // ForceSendFields is a list of field names (e.g. "ConsumerGroup") to
2114 // unconditionally include in API requests. By default, fields with empty or
2115 // default values are omitted from API requests. See
2116 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2117 // details.
2118 ForceSendFields []string `json:"-"`
2119 // NullFields is a list of field names (e.g. "ConsumerGroup") to include in API
2120 // requests with the JSON null value. By default, fields with empty values are
2121 // omitted from API requests. See
2122 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2123 NullFields []string `json:"-"`
2124 }
2125
2126 func (s DatabaseConnectionStringProfile) MarshalJSON() ([]byte, error) {
2127 type NoMethod DatabaseConnectionStringProfile
2128 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2129 }
2130
2131 // DatabaseManagementConfig: The configuration of the Database Management
2132 // service.
2133 type DatabaseManagementConfig struct {
2134 // ManagementState: Output only. The status of the Database Management service.
2135 //
2136 // Possible values:
2137 // "MANAGEMENT_STATE_UNSPECIFIED" - The status is not specified.
2138 // "ENABLING" - The Database Management service is enabling.
2139 // "ENABLED" - The Database Management service is enabled.
2140 // "DISABLING" - The Database Management service is disabling.
2141 // "DISABLED" - The Database Management service is disabled.
2142 // "UPDATING" - The Database Management service is updating.
2143 // "FAILED_ENABLING" - The Database Management service failed to enable.
2144 // "FAILED_DISABLING" - The Database Management service failed to disable.
2145 // "FAILED_UPDATING" - The Database Management service failed to update.
2146 ManagementState string `json:"managementState,omitempty"`
2147 // ManagementType: Output only. The Database Management type.
2148 //
2149 // Possible values:
2150 // "MANAGEMENT_TYPE_UNSPECIFIED" - The type is not specified.
2151 // "BASIC" - Basic Database Management.
2152 // "ADVANCED" - Advanced Database Management.
2153 ManagementType string `json:"managementType,omitempty"`
2154 // ForceSendFields is a list of field names (e.g. "ManagementState") to
2155 // unconditionally include in API requests. By default, fields with empty or
2156 // default values are omitted from API requests. See
2157 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2158 // details.
2159 ForceSendFields []string `json:"-"`
2160 // NullFields is a list of field names (e.g. "ManagementState") to include in
2161 // API requests with the JSON null value. By default, fields with empty values
2162 // are omitted from API requests. See
2163 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2164 NullFields []string `json:"-"`
2165 }
2166
2167 func (s DatabaseManagementConfig) MarshalJSON() ([]byte, error) {
2168 type NoMethod DatabaseManagementConfig
2169 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2170 }
2171
2172 // DatabaseProperties: The properties of a Database.
2173 type DatabaseProperties struct {
2174 // DatabaseManagementConfig: Output only. The Database Management config.
2175 DatabaseManagementConfig *DatabaseManagementConfig `json:"databaseManagementConfig,omitempty"`
2176 // DbBackupConfig: Optional. Backup options for the Database.
2177 DbBackupConfig *DbBackupConfig `json:"dbBackupConfig,omitempty"`
2178 // DbVersion: Required. The Oracle Database version.
2179 DbVersion string `json:"dbVersion,omitempty"`
2180 // State: Output only. State of the Database.
2181 //
2182 // Possible values:
2183 // "DATABASE_LIFECYCLE_STATE_UNSPECIFIED" - Default unspecified value.
2184 // "PROVISIONING" - Indicates that the resource is in provisioning state.
2185 // "AVAILABLE" - Indicates that the resource is in available state.
2186 // "UPDATING" - Indicates that the resource is in updating state.
2187 // "BACKUP_IN_PROGRESS" - Indicates that the resource is in backup in
2188 // progress state.
2189 // "UPGRADING" - Indicates that the resource is in upgrading state.
2190 // "CONVERTING" - Indicates that the resource is in converting state.
2191 // "TERMINATING" - Indicates that the resource is in terminating state.
2192 // "TERMINATED" - Indicates that the resource is in terminated state.
2193 // "RESTORE_FAILED" - Indicates that the resource is in restore failed state.
2194 // "FAILED" - Indicates that the resource is in failed state.
2195 State string `json:"state,omitempty"`
2196 // ForceSendFields is a list of field names (e.g. "DatabaseManagementConfig")
2197 // to unconditionally include in API requests. By default, fields with empty or
2198 // default values are omitted from API requests. See
2199 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2200 // details.
2201 ForceSendFields []string `json:"-"`
2202 // NullFields is a list of field names (e.g. "DatabaseManagementConfig") to
2203 // include in API requests with the JSON null value. By default, fields with
2204 // empty values are omitted from API requests. See
2205 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2206 NullFields []string `json:"-"`
2207 }
2208
2209 func (s DatabaseProperties) MarshalJSON() ([]byte, error) {
2210 type NoMethod DatabaseProperties
2211 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2212 }
2213
2214 // DbBackupConfig: Backup Options for the Database.
2215 type DbBackupConfig struct {
2216 // AutoBackupEnabled: Optional. If set to true, enables automatic backups on
2217 // the database.
2218 AutoBackupEnabled bool `json:"autoBackupEnabled,omitempty"`
2219 // AutoFullBackupDay: Optional. The day of the week on which the full backup
2220 // should be performed on the database. If no value is provided, it will
2221 // default to Sunday.
2222 //
2223 // Possible values:
2224 // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
2225 // "MONDAY" - Monday
2226 // "TUESDAY" - Tuesday
2227 // "WEDNESDAY" - Wednesday
2228 // "THURSDAY" - Thursday
2229 // "FRIDAY" - Friday
2230 // "SATURDAY" - Saturday
2231 // "SUNDAY" - Sunday
2232 AutoFullBackupDay string `json:"autoFullBackupDay,omitempty"`
2233 // AutoFullBackupWindow: Optional. The window in which the full backup should
2234 // be performed on the database. If no value is provided, the default is
2235 // anytime.
2236 //
2237 // Possible values:
2238 // "BACKUP_WINDOW_UNSPECIFIED" - Default unspecified value.
2239 // "SLOT_ONE" - 12:00 AM - 2:00 AM
2240 // "SLOT_TWO" - 2:00 AM - 4:00 AM
2241 // "SLOT_THREE" - 4:00 AM - 6:00 AM
2242 // "SLOT_FOUR" - 6:00 AM - 8:00 AM
2243 // "SLOT_FIVE" - 8:00 AM - 10:00 AM
2244 // "SLOT_SIX" - 10:00 AM - 12:00 PM
2245 // "SLOT_SEVEN" - 12:00 PM - 2:00 PM
2246 // "SLOT_EIGHT" - 2:00 PM - 4:00 PM
2247 // "SLOT_NINE" - 4:00 PM - 6:00 PM
2248 // "SLOT_TEN" - 6:00 PM - 8:00 PM
2249 // "SLOT_ELEVEN" - 8:00 PM - 10:00 PM
2250 // "SLOT_TWELVE" - 10:00 PM - 12:00 AM
2251 AutoFullBackupWindow string `json:"autoFullBackupWindow,omitempty"`
2252 // AutoIncrementalBackupWindow: Optional. The window in which the incremental
2253 // backup should be performed on the database. If no value is provided, the
2254 // default is anytime except the auto full backup day.
2255 //
2256 // Possible values:
2257 // "BACKUP_WINDOW_UNSPECIFIED" - Default unspecified value.
2258 // "SLOT_ONE" - 12:00 AM - 2:00 AM
2259 // "SLOT_TWO" - 2:00 AM - 4:00 AM
2260 // "SLOT_THREE" - 4:00 AM - 6:00 AM
2261 // "SLOT_FOUR" - 6:00 AM - 8:00 AM
2262 // "SLOT_FIVE" - 8:00 AM - 10:00 AM
2263 // "SLOT_SIX" - 10:00 AM - 12:00 PM
2264 // "SLOT_SEVEN" - 12:00 PM - 2:00 PM
2265 // "SLOT_EIGHT" - 2:00 PM - 4:00 PM
2266 // "SLOT_NINE" - 4:00 PM - 6:00 PM
2267 // "SLOT_TEN" - 6:00 PM - 8:00 PM
2268 // "SLOT_ELEVEN" - 8:00 PM - 10:00 PM
2269 // "SLOT_TWELVE" - 10:00 PM - 12:00 AM
2270 AutoIncrementalBackupWindow string `json:"autoIncrementalBackupWindow,omitempty"`
2271 // BackupDeletionPolicy: Optional. This defines when the backups will be
2272 // deleted after Database termination.
2273 //
2274 // Possible values:
2275 // "BACKUP_DELETION_POLICY_UNSPECIFIED" - Default unspecified value.
2276 // "DELETE_IMMEDIATELY" - Keeps the backup for predefined time i.e. 72 hours
2277 // and then delete permanently.
2278 // "DELETE_AFTER_RETENTION_PERIOD" - Keeps the backups as per the policy
2279 // defined for database backups.
2280 BackupDeletionPolicy string `json:"backupDeletionPolicy,omitempty"`
2281 // BackupDestinationDetails: Optional. Details of the database backup
2282 // destinations.
2283 BackupDestinationDetails []*BackupDestinationDetails `json:"backupDestinationDetails,omitempty"`
2284 // RetentionPeriodDays: Optional. The number of days an automatic backup is
2285 // retained before being automatically deleted. This value determines the
2286 // earliest point in time to which a database can be restored. Min: 1, Max: 60.
2287 RetentionPeriodDays int64 `json:"retentionPeriodDays,omitempty"`
2288 // ForceSendFields is a list of field names (e.g. "AutoBackupEnabled") to
2289 // unconditionally include in API requests. By default, fields with empty or
2290 // default values are omitted from API requests. See
2291 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2292 // details.
2293 ForceSendFields []string `json:"-"`
2294 // NullFields is a list of field names (e.g. "AutoBackupEnabled") to include in
2295 // API requests with the JSON null value. By default, fields with empty values
2296 // are omitted from API requests. See
2297 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2298 NullFields []string `json:"-"`
2299 }
2300
2301 func (s DbBackupConfig) MarshalJSON() ([]byte, error) {
2302 type NoMethod DbBackupConfig
2303 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2304 }
2305
2306 // DbHome: Details of the Database Home resource.
2307 type DbHome struct {
2308 // Database: Required. The Database resource.
2309 Database *Database `json:"database,omitempty"`
2310 // DbVersion: Required. A valid Oracle Database version. For a list of
2311 // supported versions, use the ListDbVersions operation.
2312 DbVersion string `json:"dbVersion,omitempty"`
2313 // DisplayName: Optional. The display name for the Database Home. The name does
2314 // not have to be unique within your project.
2315 DisplayName string `json:"displayName,omitempty"`
2316 // IsUnifiedAuditingEnabled: Optional. Whether unified auditing is enabled for
2317 // the Database Home.
2318 IsUnifiedAuditingEnabled bool `json:"isUnifiedAuditingEnabled,omitempty"`
2319 // ForceSendFields is a list of field names (e.g. "Database") to
2320 // unconditionally include in API requests. By default, fields with empty or
2321 // default values are omitted from API requests. See
2322 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2323 // details.
2324 ForceSendFields []string `json:"-"`
2325 // NullFields is a list of field names (e.g. "Database") to include in API
2326 // requests with the JSON null value. By default, fields with empty values are
2327 // omitted from API requests. See
2328 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2329 NullFields []string `json:"-"`
2330 }
2331
2332 func (s DbHome) MarshalJSON() ([]byte, error) {
2333 type NoMethod DbHome
2334 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2335 }
2336
2337 // DbNode: Details of the database node resource.
2338 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/
2339 type DbNode struct {
2340 // Name: Identifier. The name of the database node resource in the following
2341 // format:
2342 // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/db
2343 // Nodes/{db_node}
2344 Name string `json:"name,omitempty"`
2345 // Properties: Optional. Various properties of the database node.
2346 Properties *DbNodeProperties `json:"properties,omitempty"`
2347 // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
2348 // include in API requests. By default, fields with empty or default values are
2349 // omitted from API requests. See
2350 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2351 // details.
2352 ForceSendFields []string `json:"-"`
2353 // NullFields is a list of field names (e.g. "Name") to include in API requests
2354 // with the JSON null value. By default, fields with empty values are omitted
2355 // from API requests. See
2356 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2357 NullFields []string `json:"-"`
2358 }
2359
2360 func (s DbNode) MarshalJSON() ([]byte, error) {
2361 type NoMethod DbNode
2362 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2363 }
2364
2365 // DbNodeProperties: Various properties and settings associated with Db node.
2366 type DbNodeProperties struct {
2367 // CreateTime: Output only. The date and time that the database node was
2368 // created.
2369 CreateTime string `json:"createTime,omitempty"`
2370 // DbNodeStorageSizeGb: Optional. Local storage per database node.
2371 DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"`
2372 // DbServerOcid: Optional. Database server OCID.
2373 DbServerOcid string `json:"dbServerOcid,omitempty"`
2374 // Hostname: Optional. DNS
2375 Hostname string `json:"hostname,omitempty"`
2376 // MemorySizeGb: Memory allocated in GBs.
2377 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
2378 // Ocid: Output only. OCID of database node.
2379 Ocid string `json:"ocid,omitempty"`
2380 // OcpuCount: Optional. OCPU count per database node.
2381 OcpuCount int64 `json:"ocpuCount,omitempty"`
2382 // State: Output only. State of the database node.
2383 //
2384 // Possible values:
2385 // "STATE_UNSPECIFIED" - Default unspecified value.
2386 // "PROVISIONING" - Indicates that the resource is in provisioning state.
2387 // "AVAILABLE" - Indicates that the resource is in available state.
2388 // "UPDATING" - Indicates that the resource is in updating state.
2389 // "STOPPING" - Indicates that the resource is in stopping state.
2390 // "STOPPED" - Indicates that the resource is in stopped state.
2391 // "STARTING" - Indicates that the resource is in starting state.
2392 // "TERMINATING" - Indicates that the resource is in terminating state.
2393 // "TERMINATED" - Indicates that the resource is in terminated state.
2394 // "FAILED" - Indicates that the resource is in failed state.
2395 State string `json:"state,omitempty"`
2396 // TotalCpuCoreCount: Total CPU core count of the database node.
2397 TotalCpuCoreCount int64 `json:"totalCpuCoreCount,omitempty"`
2398 // ForceSendFields is a list of field names (e.g. "CreateTime") to
2399 // unconditionally include in API requests. By default, fields with empty or
2400 // default values are omitted from API requests. See
2401 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2402 // details.
2403 ForceSendFields []string `json:"-"`
2404 // NullFields is a list of field names (e.g. "CreateTime") to include in API
2405 // requests with the JSON null value. By default, fields with empty values are
2406 // omitted from API requests. See
2407 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2408 NullFields []string `json:"-"`
2409 }
2410
2411 func (s DbNodeProperties) MarshalJSON() ([]byte, error) {
2412 type NoMethod DbNodeProperties
2413 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2414 }
2415
2416 // DbServer: Details of the database server resource.
2417 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/
2418 type DbServer struct {
2419 // DisplayName: Optional. User friendly name for this resource.
2420 DisplayName string `json:"displayName,omitempty"`
2421 // Name: Identifier. The name of the database server resource with the format:
2422 // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_ex
2423 // adata_infrastructure}/dbServers/{db_server}
2424 Name string `json:"name,omitempty"`
2425 // Properties: Optional. Various properties of the database server.
2426 Properties *DbServerProperties `json:"properties,omitempty"`
2427 // ForceSendFields is a list of field names (e.g. "DisplayName") to
2428 // unconditionally include in API requests. By default, fields with empty or
2429 // default values are omitted from API requests. See
2430 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2431 // details.
2432 ForceSendFields []string `json:"-"`
2433 // NullFields is a list of field names (e.g. "DisplayName") to include in API
2434 // requests with the JSON null value. By default, fields with empty values are
2435 // omitted from API requests. See
2436 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2437 NullFields []string `json:"-"`
2438 }
2439
2440 func (s DbServer) MarshalJSON() ([]byte, error) {
2441 type NoMethod DbServer
2442 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2443 }
2444
2445 // DbServerProperties: Various properties and settings associated with Exadata
2446 // database server.
2447 type DbServerProperties struct {
2448 // DbNodeIds: Output only. OCID of database nodes associated with the database
2449 // server.
2450 DbNodeIds []string `json:"dbNodeIds,omitempty"`
2451 // DbNodeStorageSizeGb: Optional. Local storage per VM.
2452 DbNodeStorageSizeGb int64 `json:"dbNodeStorageSizeGb,omitempty"`
2453 // MaxDbNodeStorageSizeGb: Optional. Maximum local storage per VM.
2454 MaxDbNodeStorageSizeGb int64 `json:"maxDbNodeStorageSizeGb,omitempty"`
2455 // MaxMemorySizeGb: Optional. Maximum memory allocated in GBs.
2456 MaxMemorySizeGb int64 `json:"maxMemorySizeGb,omitempty"`
2457 // MaxOcpuCount: Optional. Maximum OCPU count per database.
2458 MaxOcpuCount int64 `json:"maxOcpuCount,omitempty"`
2459 // MemorySizeGb: Optional. Memory allocated in GBs.
2460 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
2461 // Ocid: Output only. OCID of database server.
2462 Ocid string `json:"ocid,omitempty"`
2463 // OcpuCount: Optional. OCPU count per database.
2464 OcpuCount int64 `json:"ocpuCount,omitempty"`
2465 // State: Output only. State of the database server.
2466 //
2467 // Possible values:
2468 // "STATE_UNSPECIFIED" - Default unspecified value.
2469 // "CREATING" - Indicates that the resource is in creating state.
2470 // "AVAILABLE" - Indicates that the resource is in available state.
2471 // "UNAVAILABLE" - Indicates that the resource is in unavailable state.
2472 // "DELETING" - Indicates that the resource is in deleting state.
2473 // "DELETED" - Indicates that the resource is in deleted state.
2474 State string `json:"state,omitempty"`
2475 // VmCount: Optional. Vm count per database.
2476 VmCount int64 `json:"vmCount,omitempty"`
2477 // ForceSendFields is a list of field names (e.g. "DbNodeIds") to
2478 // unconditionally include in API requests. By default, fields with empty or
2479 // default values are omitted from API requests. See
2480 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2481 // details.
2482 ForceSendFields []string `json:"-"`
2483 // NullFields is a list of field names (e.g. "DbNodeIds") to include in API
2484 // requests with the JSON null value. By default, fields with empty values are
2485 // omitted from API requests. See
2486 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2487 NullFields []string `json:"-"`
2488 }
2489
2490 func (s DbServerProperties) MarshalJSON() ([]byte, error) {
2491 type NoMethod DbServerProperties
2492 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2493 }
2494
2495 // DbSystem: Details of the DbSystem (BaseDB) resource.
2496 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/
2497 type DbSystem struct {
2498 // CreateTime: Output only. The date and time that the DbSystem was created.
2499 CreateTime string `json:"createTime,omitempty"`
2500 // DisplayName: Required. The display name for the System db. The name does not
2501 // have to be unique within your project.
2502 DisplayName string `json:"displayName,omitempty"`
2503 // EntitlementId: Output only. The ID of the subscription entitlement
2504 // associated with the DbSystem
2505 EntitlementId string `json:"entitlementId,omitempty"`
2506 // GcpOracleZone: Optional. The GCP Oracle zone where Oracle DbSystem is
2507 // hosted. Example: us-east4-b-r2. If not specified, the system will pick a
2508 // zone based on availability.
2509 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
2510 // Labels: Optional. The labels or tags associated with the DbSystem.
2511 Labels map[string]string `json:"labels,omitempty"`
2512 // Name: Identifier. The name of the DbSystem resource in the following format:
2513 // projects/{project}/locations/{region}/dbSystems/{db_system}
2514 Name string `json:"name,omitempty"`
2515 // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI
2516 // Interface.
2517 OciUrl string `json:"ociUrl,omitempty"`
2518 // OdbNetwork: Optional. The name of the OdbNetwork associated with the
2519 // DbSystem. Format:
2520 // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
2521 // optional but if specified, this should match the parent ODBNetwork of the
2522 // OdbSubnet.
2523 OdbNetwork string `json:"odbNetwork,omitempty"`
2524 // OdbSubnet: Required. The name of the OdbSubnet associated with the DbSystem
2525 // for IP allocation. Format:
2526 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
2527 // {odb_subnet}
2528 OdbSubnet string `json:"odbSubnet,omitempty"`
2529 // Properties: Optional. The properties of the DbSystem.
2530 Properties *DbSystemProperties `json:"properties,omitempty"`
2531
2532 // ServerResponse contains the HTTP response code and headers from the server.
2533 googleapi.ServerResponse `json:"-"`
2534 // ForceSendFields is a list of field names (e.g. "CreateTime") to
2535 // unconditionally include in API requests. By default, fields with empty or
2536 // default values are omitted from API requests. See
2537 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2538 // details.
2539 ForceSendFields []string `json:"-"`
2540 // NullFields is a list of field names (e.g. "CreateTime") to include in API
2541 // requests with the JSON null value. By default, fields with empty values are
2542 // omitted from API requests. See
2543 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2544 NullFields []string `json:"-"`
2545 }
2546
2547 func (s DbSystem) MarshalJSON() ([]byte, error) {
2548 type NoMethod DbSystem
2549 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2550 }
2551
2552 // DbSystemInitialStorageSize: Summary of the DbSystem initial storage size.
2553 type DbSystemInitialStorageSize struct {
2554 // Name: Output only. The name of the resource.
2555 Name string `json:"name,omitempty"`
2556 // Properties: Output only. The properties of the DbSystem initial storage size
2557 // summary.
2558 Properties *DbSystemInitialStorageSizeProperties `json:"properties,omitempty"`
2559 // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
2560 // include in API requests. By default, fields with empty or default values are
2561 // omitted from API requests. See
2562 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2563 // details.
2564 ForceSendFields []string `json:"-"`
2565 // NullFields is a list of field names (e.g. "Name") to include in API requests
2566 // with the JSON null value. By default, fields with empty values are omitted
2567 // from API requests. See
2568 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2569 NullFields []string `json:"-"`
2570 }
2571
2572 func (s DbSystemInitialStorageSize) MarshalJSON() ([]byte, error) {
2573 type NoMethod DbSystemInitialStorageSize
2574 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2575 }
2576
2577 // DbSystemInitialStorageSizeProperties: The properties of a DbSystem initial
2578 // storage size summary.
2579 type DbSystemInitialStorageSizeProperties struct {
2580 // LaunchFromBackupStorageSizeDetails: Output only. List of storage disk
2581 // details available for launches from backup.
2582 LaunchFromBackupStorageSizeDetails []*StorageSizeDetails `json:"launchFromBackupStorageSizeDetails,omitempty"`
2583 // ShapeType: Output only. VM shape platform type
2584 //
2585 // Possible values:
2586 // "SHAPE_TYPE_UNSPECIFIED" - Unspecified shape type.
2587 // "STANDARD_X86" - Standard X86.
2588 ShapeType string `json:"shapeType,omitempty"`
2589 // StorageManagement: Output only. The storage option used in DB system.
2590 //
2591 // Possible values:
2592 // "STORAGE_MANAGEMENT_UNSPECIFIED" - Unspecified storage management.
2593 // "ASM" - Automatic Storage Management.
2594 // "LVM" - Logical Volume Management.
2595 StorageManagement string `json:"storageManagement,omitempty"`
2596 // StorageSizeDetails: Output only. List of storage disk details.
2597 StorageSizeDetails []*StorageSizeDetails `json:"storageSizeDetails,omitempty"`
2598 // ForceSendFields is a list of field names (e.g.
2599 // "LaunchFromBackupStorageSizeDetails") to unconditionally include in API
2600 // requests. By default, fields with empty or default values are omitted from
2601 // API requests. See
2602 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2603 // details.
2604 ForceSendFields []string `json:"-"`
2605 // NullFields is a list of field names (e.g.
2606 // "LaunchFromBackupStorageSizeDetails") to include in API requests with the
2607 // JSON null value. By default, fields with empty values are omitted from API
2608 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
2609 // more details.
2610 NullFields []string `json:"-"`
2611 }
2612
2613 func (s DbSystemInitialStorageSizeProperties) MarshalJSON() ([]byte, error) {
2614 type NoMethod DbSystemInitialStorageSizeProperties
2615 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2616 }
2617
2618 // DbSystemOptions: Details of the DbSystem Options.
2619 type DbSystemOptions struct {
2620 // StorageManagement: Optional. The storage option used in DB system.
2621 //
2622 // Possible values:
2623 // "STORAGE_MANAGEMENT_UNSPECIFIED" - The storage management is unspecified.
2624 // "ASM" - Automatic storage management.
2625 // "LVM" - Logical Volume management.
2626 StorageManagement string `json:"storageManagement,omitempty"`
2627 // ForceSendFields is a list of field names (e.g. "StorageManagement") to
2628 // unconditionally include in API requests. By default, fields with empty or
2629 // default values are omitted from API requests. See
2630 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2631 // details.
2632 ForceSendFields []string `json:"-"`
2633 // NullFields is a list of field names (e.g. "StorageManagement") to include in
2634 // API requests with the JSON null value. By default, fields with empty values
2635 // are omitted from API requests. See
2636 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2637 NullFields []string `json:"-"`
2638 }
2639
2640 func (s DbSystemOptions) MarshalJSON() ([]byte, error) {
2641 type NoMethod DbSystemOptions
2642 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2643 }
2644
2645 // DbSystemProperties: The properties of a DbSystem.
2646 type DbSystemProperties struct {
2647 // ComputeCount: Required. The number of CPU cores to enable for the DbSystem.
2648 ComputeCount int64 `json:"computeCount,omitempty"`
2649 // ComputeModel: Optional. The compute model of the DbSystem.
2650 //
2651 // Possible values:
2652 // "COMPUTE_MODEL_UNSPECIFIED" - The compute model is unspecified.
2653 // "ECPU" - The compute model is virtual.
2654 // "OCPU" - The compute model is physical.
2655 ComputeModel string `json:"computeModel,omitempty"`
2656 // DataCollectionOptions: Optional. Data collection options for diagnostics.
2657 DataCollectionOptions *DataCollectionOptionsDbSystem `json:"dataCollectionOptions,omitempty"`
2658 // DataStorageSizeGb: Optional. The data storage size in GB that is currently
2659 // available to DbSystems.
2660 DataStorageSizeGb int64 `json:"dataStorageSizeGb,omitempty"`
2661 // DatabaseEdition: Required. The database edition of the DbSystem.
2662 //
2663 // Possible values:
2664 // "DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED" - The database edition is
2665 // unspecified.
2666 // "STANDARD_EDITION" - The database edition is Standard.
2667 // "ENTERPRISE_EDITION" - The database edition is Enterprise.
2668 // "ENTERPRISE_EDITION_HIGH_PERFORMANCE" - The database edition is Enterprise
2669 // Edition.
2670 DatabaseEdition string `json:"databaseEdition,omitempty"`
2671 // DbHome: Optional. Details for creating a Database Home.
2672 DbHome *DbHome `json:"dbHome,omitempty"`
2673 // DbSystemOptions: Optional. The options for the DbSystem.
2674 DbSystemOptions *DbSystemOptions `json:"dbSystemOptions,omitempty"`
2675 // Domain: Optional. The host domain name of the DbSystem.
2676 Domain string `json:"domain,omitempty"`
2677 // Hostname: Output only. The hostname of the DbSystem.
2678 Hostname string `json:"hostname,omitempty"`
2679 // HostnamePrefix: Optional. Prefix for DB System host names.
2680 HostnamePrefix string `json:"hostnamePrefix,omitempty"`
2681 // InitialDataStorageSizeGb: Required. The initial data storage size in GB.
2682 InitialDataStorageSizeGb int64 `json:"initialDataStorageSizeGb,omitempty"`
2683 // LicenseModel: Required. The license model of the DbSystem.
2684 //
2685 // Possible values:
2686 // "LICENSE_MODEL_UNSPECIFIED" - The license model is unspecified.
2687 // "LICENSE_INCLUDED" - The license model is included.
2688 // "BRING_YOUR_OWN_LICENSE" - The license model is bring your own license.
2689 LicenseModel string `json:"licenseModel,omitempty"`
2690 // LifecycleState: Output only. State of the DbSystem.
2691 //
2692 // Possible values:
2693 // "DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED" - Default unspecified value.
2694 // "PROVISIONING" - Indicates that the resource is in provisioning state.
2695 // "AVAILABLE" - Indicates that the resource is in available state.
2696 // "UPDATING" - Indicates that the resource is in updating state.
2697 // "TERMINATING" - Indicates that the resource is in terminating state.
2698 // "TERMINATED" - Indicates that the resource is in terminated state.
2699 // "FAILED" - Indicates that the resource is in failed state.
2700 // "MIGRATED" - Indicates that the resource has been migrated.
2701 // "MAINTENANCE_IN_PROGRESS" - Indicates that the resource is in maintenance
2702 // in progress state.
2703 // "NEEDS_ATTENTION" - Indicates that the resource needs attention.
2704 // "UPGRADING" - Indicates that the resource is upgrading.
2705 LifecycleState string `json:"lifecycleState,omitempty"`
2706 // MemorySizeGb: Optional. The memory size in GB.
2707 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
2708 // NodeCount: Optional. The number of nodes in the DbSystem.
2709 NodeCount int64 `json:"nodeCount,omitempty"`
2710 // Ocid: Output only. OCID of the DbSystem.
2711 Ocid string `json:"ocid,omitempty"`
2712 // PrivateIp: Optional. The private IP address of the DbSystem.
2713 PrivateIp string `json:"privateIp,omitempty"`
2714 // RecoStorageSizeGb: Optional. The reco/redo storage size in GB.
2715 RecoStorageSizeGb int64 `json:"recoStorageSizeGb,omitempty"`
2716 // Shape: Required. Shape of DB System.
2717 Shape string `json:"shape,omitempty"`
2718 // SshPublicKeys: Required. SSH public keys to be stored with the DbSystem.
2719 SshPublicKeys []string `json:"sshPublicKeys,omitempty"`
2720 // TimeZone: Optional. Time zone of the DbSystem.
2721 TimeZone *TimeZone `json:"timeZone,omitempty"`
2722 // ForceSendFields is a list of field names (e.g. "ComputeCount") to
2723 // unconditionally include in API requests. By default, fields with empty or
2724 // default values are omitted from API requests. See
2725 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2726 // details.
2727 ForceSendFields []string `json:"-"`
2728 // NullFields is a list of field names (e.g. "ComputeCount") to include in API
2729 // requests with the JSON null value. By default, fields with empty values are
2730 // omitted from API requests. See
2731 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2732 NullFields []string `json:"-"`
2733 }
2734
2735 func (s DbSystemProperties) MarshalJSON() ([]byte, error) {
2736 type NoMethod DbSystemProperties
2737 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2738 }
2739
2740 // DbSystemShape: Details of the Database System Shapes resource.
2741 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/
2742 type DbSystemShape struct {
2743 // AvailableCoreCountPerNode: Optional. Number of cores per node.
2744 AvailableCoreCountPerNode int64 `json:"availableCoreCountPerNode,omitempty"`
2745 // AvailableDataStorageTb: Optional. Storage per storage server in terabytes.
2746 AvailableDataStorageTb int64 `json:"availableDataStorageTb,omitempty"`
2747 // AvailableMemoryPerNodeGb: Optional. Memory per database server node in
2748 // gigabytes.
2749 AvailableMemoryPerNodeGb int64 `json:"availableMemoryPerNodeGb,omitempty"`
2750 // MaxNodeCount: Optional. Maximum number of database servers.
2751 MaxNodeCount int64 `json:"maxNodeCount,omitempty"`
2752 // MaxStorageCount: Optional. Maximum number of storage servers.
2753 MaxStorageCount int64 `json:"maxStorageCount,omitempty"`
2754 // MinCoreCountPerNode: Optional. Minimum core count per node.
2755 MinCoreCountPerNode int64 `json:"minCoreCountPerNode,omitempty"`
2756 // MinDbNodeStoragePerNodeGb: Optional. Minimum node storage per database
2757 // server in gigabytes.
2758 MinDbNodeStoragePerNodeGb int64 `json:"minDbNodeStoragePerNodeGb,omitempty"`
2759 // MinMemoryPerNodeGb: Optional. Minimum memory per node in gigabytes.
2760 MinMemoryPerNodeGb int64 `json:"minMemoryPerNodeGb,omitempty"`
2761 // MinNodeCount: Optional. Minimum number of database servers.
2762 MinNodeCount int64 `json:"minNodeCount,omitempty"`
2763 // MinStorageCount: Optional. Minimum number of storage servers.
2764 MinStorageCount int64 `json:"minStorageCount,omitempty"`
2765 // Name: Identifier. The name of the Database System Shape resource with the
2766 // format:
2767 // projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape}
2768 Name string `json:"name,omitempty"`
2769 // Shape: Optional. shape
2770 Shape string `json:"shape,omitempty"`
2771 // ForceSendFields is a list of field names (e.g. "AvailableCoreCountPerNode")
2772 // to unconditionally include in API requests. By default, fields with empty or
2773 // default values are omitted from API requests. See
2774 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2775 // details.
2776 ForceSendFields []string `json:"-"`
2777 // NullFields is a list of field names (e.g. "AvailableCoreCountPerNode") to
2778 // include in API requests with the JSON null value. By default, fields with
2779 // empty values are omitted from API requests. See
2780 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2781 NullFields []string `json:"-"`
2782 }
2783
2784 func (s DbSystemShape) MarshalJSON() ([]byte, error) {
2785 type NoMethod DbSystemShape
2786 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2787 }
2788
2789 // DbVersion: A valid Oracle Database version.
2790 type DbVersion struct {
2791 // Name: Output only. The name of the DbVersion resource in the following
2792 // format: projects/{project}/locations/{region}/dbVersions/{db_version}
2793 Name string `json:"name,omitempty"`
2794 // Properties: Output only. The properties of the DbVersion.
2795 Properties *DbVersionProperties `json:"properties,omitempty"`
2796 // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
2797 // include in API requests. By default, fields with empty or default values are
2798 // omitted from API requests. See
2799 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2800 // details.
2801 ForceSendFields []string `json:"-"`
2802 // NullFields is a list of field names (e.g. "Name") to include in API requests
2803 // with the JSON null value. By default, fields with empty values are omitted
2804 // from API requests. See
2805 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2806 NullFields []string `json:"-"`
2807 }
2808
2809 func (s DbVersion) MarshalJSON() ([]byte, error) {
2810 type NoMethod DbVersion
2811 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2812 }
2813
2814 // DbVersionProperties: The properties of a DbVersion.
2815 type DbVersionProperties struct {
2816 // IsLatestForMajorVersion: Output only. True if this version of the Oracle
2817 // Database software is the latest version for a release.
2818 IsLatestForMajorVersion bool `json:"isLatestForMajorVersion,omitempty"`
2819 // IsPreviewDbVersion: Output only. True if this version of the Oracle Database
2820 // software is the preview version.
2821 IsPreviewDbVersion bool `json:"isPreviewDbVersion,omitempty"`
2822 // IsUpgradeSupported: Output only. True if this version of the Oracle Database
2823 // software is supported for Upgrade.
2824 IsUpgradeSupported bool `json:"isUpgradeSupported,omitempty"`
2825 // SupportsPdb: Output only. True if this version of the Oracle Database
2826 // software supports pluggable databases.
2827 SupportsPdb bool `json:"supportsPdb,omitempty"`
2828 // Version: Output only. A valid Oracle Database version.
2829 Version string `json:"version,omitempty"`
2830 // ForceSendFields is a list of field names (e.g. "IsLatestForMajorVersion") to
2831 // unconditionally include in API requests. By default, fields with empty or
2832 // default values are omitted from API requests. See
2833 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2834 // details.
2835 ForceSendFields []string `json:"-"`
2836 // NullFields is a list of field names (e.g. "IsLatestForMajorVersion") to
2837 // include in API requests with the JSON null value. By default, fields with
2838 // empty values are omitted from API requests. See
2839 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2840 NullFields []string `json:"-"`
2841 }
2842
2843 func (s DbVersionProperties) MarshalJSON() ([]byte, error) {
2844 type NoMethod DbVersionProperties
2845 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2846 }
2847
2848 // DefinedTagValue: Wrapper message for the value of a defined tag.
2849 type DefinedTagValue struct {
2850 // Tags: The tags within the namespace.
2851 Tags map[string]string `json:"tags,omitempty"`
2852 // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally
2853 // include in API requests. By default, fields with empty or default values are
2854 // omitted from API requests. See
2855 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2856 // details.
2857 ForceSendFields []string `json:"-"`
2858 // NullFields is a list of field names (e.g. "Tags") to include in API requests
2859 // with the JSON null value. By default, fields with empty values are omitted
2860 // from API requests. See
2861 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2862 NullFields []string `json:"-"`
2863 }
2864
2865 func (s DefinedTagValue) MarshalJSON() ([]byte, error) {
2866 type NoMethod DefinedTagValue
2867 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2868 }
2869
2870 // Empty: A generic empty message that you can re-use to avoid defining
2871 // duplicated empty messages in your APIs. A typical example is to use it as
2872 // the request or the response type of an API method. For instance: service Foo
2873 // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
2874 type Empty struct {
2875 // ServerResponse contains the HTTP response code and headers from the server.
2876 googleapi.ServerResponse `json:"-"`
2877 }
2878
2879 // EncryptionKey: The encryption key used to encrypt the Autonomous Database.
2880 type EncryptionKey struct {
2881 // KmsKey: Optional. The KMS key used to encrypt the Autonomous Database. This
2882 // field is required if the provider is GOOGLE_MANAGED. The name of the KMS key
2883 // resource in the following format:
2884 // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryp
2885 // to_key}`.
2886 KmsKey string `json:"kmsKey,omitempty"`
2887 // Provider: Optional. The provider of the encryption key.
2888 //
2889 // Possible values:
2890 // "PROVIDER_UNSPECIFIED" - Default unspecified value.
2891 // "GOOGLE_MANAGED" - Google Managed KMS key, if selected, please provide the
2892 // KMS key name.
2893 // "ORACLE_MANAGED" - Oracle Managed.
2894 Provider string `json:"provider,omitempty"`
2895 // ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally
2896 // include in API requests. By default, fields with empty or default values are
2897 // omitted from API requests. See
2898 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2899 // details.
2900 ForceSendFields []string `json:"-"`
2901 // NullFields is a list of field names (e.g. "KmsKey") to include in API
2902 // requests with the JSON null value. By default, fields with empty values are
2903 // omitted from API requests. See
2904 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2905 NullFields []string `json:"-"`
2906 }
2907
2908 func (s EncryptionKey) MarshalJSON() ([]byte, error) {
2909 type NoMethod EncryptionKey
2910 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2911 }
2912
2913 // EncryptionKeyHistoryEntry: The history of the encryption keys used to
2914 // encrypt the Autonomous Database.
2915 type EncryptionKeyHistoryEntry struct {
2916 // ActivationTime: Output only. The date and time when the encryption key was
2917 // activated on the Autonomous Database..
2918 ActivationTime string `json:"activationTime,omitempty"`
2919 // EncryptionKey: Output only. The encryption key used to encrypt the
2920 // Autonomous Database.
2921 EncryptionKey *EncryptionKey `json:"encryptionKey,omitempty"`
2922 // ForceSendFields is a list of field names (e.g. "ActivationTime") to
2923 // unconditionally include in API requests. By default, fields with empty or
2924 // default values are omitted from API requests. See
2925 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2926 // details.
2927 ForceSendFields []string `json:"-"`
2928 // NullFields is a list of field names (e.g. "ActivationTime") to include in
2929 // API requests with the JSON null value. By default, fields with empty values
2930 // are omitted from API requests. See
2931 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2932 NullFields []string `json:"-"`
2933 }
2934
2935 func (s EncryptionKeyHistoryEntry) MarshalJSON() ([]byte, error) {
2936 type NoMethod EncryptionKeyHistoryEntry
2937 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2938 }
2939
2940 // Entitlement: Details of the Entitlement resource.
2941 type Entitlement struct {
2942 // CloudAccountDetails: Details of the OCI Cloud Account.
2943 CloudAccountDetails *CloudAccountDetails `json:"cloudAccountDetails,omitempty"`
2944 // EntitlementId: Output only. Google Cloud Marketplace order ID (aka
2945 // entitlement ID)
2946 EntitlementId string `json:"entitlementId,omitempty"`
2947 // Name: Identifier. The name of the Entitlement resource with the format:
2948 // projects/{project}/locations/{region}/entitlements/{entitlement}
2949 Name string `json:"name,omitempty"`
2950 // State: Output only. Entitlement State.
2951 //
2952 // Possible values:
2953 // "STATE_UNSPECIFIED" - Default unspecified value.
2954 // "ACCOUNT_NOT_LINKED" - Account not linked.
2955 // "ACCOUNT_NOT_ACTIVE" - Account is linked but not active.
2956 // "ACTIVE" - Entitlement and Account are active.
2957 // "ACCOUNT_SUSPENDED" - Account is suspended.
2958 // "NOT_APPROVED_IN_PRIVATE_MARKETPLACE" - Entitlement is not approved in
2959 // private marketplace.
2960 State string `json:"state,omitempty"`
2961 // ForceSendFields is a list of field names (e.g. "CloudAccountDetails") to
2962 // unconditionally include in API requests. By default, fields with empty or
2963 // default values are omitted from API requests. See
2964 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
2965 // details.
2966 ForceSendFields []string `json:"-"`
2967 // NullFields is a list of field names (e.g. "CloudAccountDetails") to include
2968 // in API requests with the JSON null value. By default, fields with empty
2969 // values are omitted from API requests. See
2970 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
2971 NullFields []string `json:"-"`
2972 }
2973
2974 func (s Entitlement) MarshalJSON() ([]byte, error) {
2975 type NoMethod Entitlement
2976 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
2977 }
2978
2979 // ExadbVmCluster: ExadbVmCluster represents a cluster of VMs that are used to
2980 // run Exadata workloads.
2981 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExadbVmCluster/
2982 type ExadbVmCluster struct {
2983 // BackupOdbSubnet: Required. Immutable. The name of the backup OdbSubnet
2984 // associated with the ExadbVmCluster. Format:
2985 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
2986 // {odb_subnet}
2987 BackupOdbSubnet string `json:"backupOdbSubnet,omitempty"`
2988 // CreateTime: Output only. The date and time that the ExadbVmCluster was
2989 // created.
2990 CreateTime string `json:"createTime,omitempty"`
2991 // DisplayName: Required. Immutable. The display name for the ExadbVmCluster.
2992 // The name does not have to be unique within your project. The name must be
2993 // 1-255 characters long and can only contain alphanumeric characters.
2994 DisplayName string `json:"displayName,omitempty"`
2995 // EntitlementId: Output only. The ID of the subscription entitlement
2996 // associated with the ExadbVmCluster.
2997 EntitlementId string `json:"entitlementId,omitempty"`
2998 // GcpOracleZone: Output only. Immutable. The GCP Oracle zone where Oracle
2999 // ExadbVmCluster is hosted. Example: us-east4-b-r2. During creation, the
3000 // system will pick the zone assigned to the ExascaleDbStorageVault.
3001 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
3002 // Labels: Optional. The labels or tags associated with the ExadbVmCluster.
3003 Labels map[string]string `json:"labels,omitempty"`
3004 // Name: Identifier. The name of the ExadbVmCluster resource in the following
3005 // format:
3006 // projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}
3007 Name string `json:"name,omitempty"`
3008 // OdbNetwork: Optional. Immutable. The name of the OdbNetwork associated with
3009 // the ExadbVmCluster. Format:
3010 // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is
3011 // optional but if specified, this should match the parent ODBNetwork of the
3012 // OdbSubnet.
3013 OdbNetwork string `json:"odbNetwork,omitempty"`
3014 // OdbSubnet: Required. Immutable. The name of the OdbSubnet associated with
3015 // the ExadbVmCluster for IP allocation. Format:
3016 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
3017 // {odb_subnet}
3018 OdbSubnet string `json:"odbSubnet,omitempty"`
3019 // Properties: Required. The properties of the ExadbVmCluster.
3020 Properties *ExadbVmClusterProperties `json:"properties,omitempty"`
3021
3022 // ServerResponse contains the HTTP response code and headers from the server.
3023 googleapi.ServerResponse `json:"-"`
3024 // ForceSendFields is a list of field names (e.g. "BackupOdbSubnet") to
3025 // unconditionally include in API requests. By default, fields with empty or
3026 // default values are omitted from API requests. See
3027 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3028 // details.
3029 ForceSendFields []string `json:"-"`
3030 // NullFields is a list of field names (e.g. "BackupOdbSubnet") to include in
3031 // API requests with the JSON null value. By default, fields with empty values
3032 // are omitted from API requests. See
3033 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3034 NullFields []string `json:"-"`
3035 }
3036
3037 func (s ExadbVmCluster) MarshalJSON() ([]byte, error) {
3038 type NoMethod ExadbVmCluster
3039 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3040 }
3041
3042 // ExadbVmClusterProperties: The properties of an ExadbVmCluster.
3043 type ExadbVmClusterProperties struct {
3044 // AdditionalEcpuCountPerNode: Optional. Immutable. The number of additional
3045 // ECPUs per node for an Exadata VM cluster on exascale infrastructure.
3046 AdditionalEcpuCountPerNode int64 `json:"additionalEcpuCountPerNode,omitempty"`
3047 // ClusterName: Optional. Immutable. The cluster name for Exascale vm cluster.
3048 // The cluster name must begin with an alphabetic character and may contain
3049 // hyphens(-) but can not contain underscores(_). It should be not more than 11
3050 // characters and is not case sensitive. OCI Cluster name.
3051 ClusterName string `json:"clusterName,omitempty"`
3052 // DataCollectionOptions: Optional. Immutable. Indicates user preference for
3053 // data collection options.
3054 DataCollectionOptions *DataCollectionOptionsCommon `json:"dataCollectionOptions,omitempty"`
3055 // EnabledEcpuCountPerNode: Required. Immutable. The number of ECPUs enabled
3056 // per node for an exadata vm cluster on exascale infrastructure.
3057 EnabledEcpuCountPerNode int64 `json:"enabledEcpuCountPerNode,omitempty"`
3058 // ExascaleDbStorageVault: Required. Immutable. The name of
3059 // ExascaleDbStorageVault associated with the ExadbVmCluster. It can refer to
3060 // an existing ExascaleDbStorageVault. Or a new one can be created during the
3061 // ExadbVmCluster creation (requires storage_vault_properties to be set).
3062 // Format:
3063 // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_
3064 // storage_vault}
3065 ExascaleDbStorageVault string `json:"exascaleDbStorageVault,omitempty"`
3066 // GiVersion: Output only. The Oracle Grid Infrastructure (GI) software
3067 // version.
3068 GiVersion string `json:"giVersion,omitempty"`
3069 // GridImageId: Required. Immutable. Grid Infrastructure Version.
3070 GridImageId string `json:"gridImageId,omitempty"`
3071 // Hostname: Output only. The hostname of the ExadbVmCluster.
3072 Hostname string `json:"hostname,omitempty"`
3073 // HostnamePrefix: Required. Immutable. Prefix for VM cluster host names.
3074 HostnamePrefix string `json:"hostnamePrefix,omitempty"`
3075 // LicenseModel: Optional. Immutable. The license type of the ExadbVmCluster.
3076 //
3077 // Possible values:
3078 // "LICENSE_MODEL_UNSPECIFIED" - Unspecified.
3079 // "LICENSE_INCLUDED" - Default is license included.
3080 // "BRING_YOUR_OWN_LICENSE" - Bring your own license.
3081 LicenseModel string `json:"licenseModel,omitempty"`
3082 // LifecycleState: Output only. State of the cluster.
3083 //
3084 // Possible values:
3085 // "EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED" - Default unspecified
3086 // value.
3087 // "PROVISIONING" - Indicates that the resource is in provisioning state.
3088 // "AVAILABLE" - Indicates that the resource is in available state.
3089 // "UPDATING" - Indicates that the resource is in updating state.
3090 // "TERMINATING" - Indicates that the resource is in terminating state.
3091 // "TERMINATED" - Indicates that the resource is in terminated state.
3092 // "FAILED" - Indicates that the resource is in failed state.
3093 // "MAINTENANCE_IN_PROGRESS" - Indicates that the resource is in maintenance
3094 // in progress state.
3095 LifecycleState string `json:"lifecycleState,omitempty"`
3096 // MemorySizeGb: Output only. Memory per VM (GB) (Read-only): Shows the amount
3097 // of memory allocated to each VM. Memory is calculated based on 2.75 GB per
3098 // Total ECPUs.
3099 MemorySizeGb int64 `json:"memorySizeGb,omitempty"`
3100 // NodeCount: Required. The number of nodes/VMs in the ExadbVmCluster.
3101 NodeCount int64 `json:"nodeCount,omitempty"`
3102 // OciUri: Output only. Deep link to the OCI console to view this resource.
3103 OciUri string `json:"ociUri,omitempty"`
3104 // ScanListenerPortTcp: Optional. Immutable. SCAN listener port - TCP
3105 ScanListenerPortTcp int64 `json:"scanListenerPortTcp,omitempty"`
3106 // ShapeAttribute: Required. Immutable. The shape attribute of the VM cluster.
3107 // The type of Exascale storage used for Exadata VM cluster. The default is
3108 // SMART_STORAGE which supports Oracle Database 23ai and later
3109 //
3110 // Possible values:
3111 // "SHAPE_ATTRIBUTE_UNSPECIFIED" - Default unspecified value.
3112 // "SMART_STORAGE" - Indicates that the resource is in smart storage.
3113 // "BLOCK_STORAGE" - Indicates that the resource is in block storage.
3114 ShapeAttribute string `json:"shapeAttribute,omitempty"`
3115 // SshPublicKeys: Required. Immutable. The SSH public keys for the
3116 // ExadbVmCluster.
3117 SshPublicKeys []string `json:"sshPublicKeys,omitempty"`
3118 // TimeZone: Optional. Immutable. The time zone of the ExadbVmCluster.
3119 TimeZone *TimeZone `json:"timeZone,omitempty"`
3120 // VmFileSystemStorage: Required. Immutable. Total storage details for the
3121 // ExadbVmCluster.
3122 VmFileSystemStorage *ExadbVmClusterStorageDetails `json:"vmFileSystemStorage,omitempty"`
3123 // ForceSendFields is a list of field names (e.g. "AdditionalEcpuCountPerNode")
3124 // to unconditionally include in API requests. By default, fields with empty or
3125 // default values are omitted from API requests. See
3126 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3127 // details.
3128 ForceSendFields []string `json:"-"`
3129 // NullFields is a list of field names (e.g. "AdditionalEcpuCountPerNode") to
3130 // include in API requests with the JSON null value. By default, fields with
3131 // empty values are omitted from API requests. See
3132 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3133 NullFields []string `json:"-"`
3134 }
3135
3136 func (s ExadbVmClusterProperties) MarshalJSON() ([]byte, error) {
3137 type NoMethod ExadbVmClusterProperties
3138 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3139 }
3140
3141 // ExadbVmClusterStorageDetails: The storage allocation for the exadbvmcluster,
3142 // in gigabytes (GB).
3143 type ExadbVmClusterStorageDetails struct {
3144 // SizeInGbsPerNode: Required. The storage allocation for the exadbvmcluster
3145 // per node, in gigabytes (GB). This field is used to calculate the total
3146 // storage allocation for the exadbvmcluster.
3147 SizeInGbsPerNode int64 `json:"sizeInGbsPerNode,omitempty"`
3148 // ForceSendFields is a list of field names (e.g. "SizeInGbsPerNode") to
3149 // unconditionally include in API requests. By default, fields with empty or
3150 // default values are omitted from API requests. See
3151 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3152 // details.
3153 ForceSendFields []string `json:"-"`
3154 // NullFields is a list of field names (e.g. "SizeInGbsPerNode") to include in
3155 // API requests with the JSON null value. By default, fields with empty values
3156 // are omitted from API requests. See
3157 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3158 NullFields []string `json:"-"`
3159 }
3160
3161 func (s ExadbVmClusterStorageDetails) MarshalJSON() ([]byte, error) {
3162 type NoMethod ExadbVmClusterStorageDetails
3163 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3164 }
3165
3166 // ExascaleDbStorageDetails: The storage details of the ExascaleDbStorageVault.
3167 type ExascaleDbStorageDetails struct {
3168 // AvailableSizeGbs: Output only. The available storage capacity for the
3169 // ExascaleDbStorageVault, in gigabytes (GB).
3170 AvailableSizeGbs int64 `json:"availableSizeGbs,omitempty"`
3171 // TotalSizeGbs: Required. The total storage allocation for the
3172 // ExascaleDbStorageVault, in gigabytes (GB).
3173 TotalSizeGbs int64 `json:"totalSizeGbs,omitempty"`
3174 // ForceSendFields is a list of field names (e.g. "AvailableSizeGbs") to
3175 // unconditionally include in API requests. By default, fields with empty or
3176 // default values are omitted from API requests. See
3177 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3178 // details.
3179 ForceSendFields []string `json:"-"`
3180 // NullFields is a list of field names (e.g. "AvailableSizeGbs") to include in
3181 // API requests with the JSON null value. By default, fields with empty values
3182 // are omitted from API requests. See
3183 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3184 NullFields []string `json:"-"`
3185 }
3186
3187 func (s ExascaleDbStorageDetails) MarshalJSON() ([]byte, error) {
3188 type NoMethod ExascaleDbStorageDetails
3189 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3190 }
3191
3192 // ExascaleDbStorageVault: ExascaleDbStorageVault represents a storage vault
3193 // exadb vm cluster resource.
3194 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/
3195 type ExascaleDbStorageVault struct {
3196 // CreateTime: Output only. The date and time when the ExascaleDbStorageVault
3197 // was created.
3198 CreateTime string `json:"createTime,omitempty"`
3199 // DisplayName: Required. The display name for the ExascaleDbStorageVault. The
3200 // name does not have to be unique within your project. The name must be 1-255
3201 // characters long and can only contain alphanumeric characters.
3202 DisplayName string `json:"displayName,omitempty"`
3203 // EntitlementId: Output only. The ID of the subscription entitlement
3204 // associated with the ExascaleDbStorageVault.
3205 EntitlementId string `json:"entitlementId,omitempty"`
3206 // GcpOracleZone: Optional. The GCP Oracle zone where Oracle
3207 // ExascaleDbStorageVault is hosted. Example: us-east4-b-r2. If not specified,
3208 // the system will pick a zone based on availability.
3209 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
3210 // Labels: Optional. The labels or tags associated with the
3211 // ExascaleDbStorageVault.
3212 Labels map[string]string `json:"labels,omitempty"`
3213 // Name: Identifier. The resource name of the ExascaleDbStorageVault. Format:
3214 // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_
3215 // storage_vault}
3216 Name string `json:"name,omitempty"`
3217 // Properties: Required. The properties of the ExascaleDbStorageVault.
3218 Properties *ExascaleDbStorageVaultProperties `json:"properties,omitempty"`
3219
3220 // ServerResponse contains the HTTP response code and headers from the server.
3221 googleapi.ServerResponse `json:"-"`
3222 // ForceSendFields is a list of field names (e.g. "CreateTime") to
3223 // unconditionally include in API requests. By default, fields with empty or
3224 // default values are omitted from API requests. See
3225 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3226 // details.
3227 ForceSendFields []string `json:"-"`
3228 // NullFields is a list of field names (e.g. "CreateTime") to include in API
3229 // requests with the JSON null value. By default, fields with empty values are
3230 // omitted from API requests. See
3231 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3232 NullFields []string `json:"-"`
3233 }
3234
3235 func (s ExascaleDbStorageVault) MarshalJSON() ([]byte, error) {
3236 type NoMethod ExascaleDbStorageVault
3237 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3238 }
3239
3240 // ExascaleDbStorageVaultProperties: The properties of the
3241 // ExascaleDbStorageVault. next ID: 12
3242 type ExascaleDbStorageVaultProperties struct {
3243 // AdditionalFlashCachePercent: Optional. The size of additional flash cache in
3244 // percentage of high capacity database storage.
3245 AdditionalFlashCachePercent int64 `json:"additionalFlashCachePercent,omitempty"`
3246 // AttachedShapeAttributes: Output only. The shape attributes of the VM
3247 // clusters attached to the ExascaleDbStorageVault.
3248 //
3249 // Possible values:
3250 // "SHAPE_ATTRIBUTE_UNSPECIFIED" - Default unspecified value.
3251 // "SMART_STORAGE" - Indicates that the resource is in smart storage.
3252 // "BLOCK_STORAGE" - Indicates that the resource is in block storage.
3253 AttachedShapeAttributes []string `json:"attachedShapeAttributes,omitempty"`
3254 // AvailableShapeAttributes: Output only. The shape attributes available for
3255 // the VM clusters to be attached to the ExascaleDbStorageVault.
3256 //
3257 // Possible values:
3258 // "SHAPE_ATTRIBUTE_UNSPECIFIED" - Default unspecified value.
3259 // "SMART_STORAGE" - Indicates that the resource is in smart storage.
3260 // "BLOCK_STORAGE" - Indicates that the resource is in block storage.
3261 AvailableShapeAttributes []string `json:"availableShapeAttributes,omitempty"`
3262 // Description: Optional. The description of the ExascaleDbStorageVault.
3263 Description string `json:"description,omitempty"`
3264 // ExascaleDbStorageDetails: Required. The storage details of the
3265 // ExascaleDbStorageVault.
3266 ExascaleDbStorageDetails *ExascaleDbStorageDetails `json:"exascaleDbStorageDetails,omitempty"`
3267 // OciUri: Output only. Deep link to the OCI console to view this resource.
3268 OciUri string `json:"ociUri,omitempty"`
3269 // Ocid: Output only. The OCID for the ExascaleDbStorageVault.
3270 Ocid string `json:"ocid,omitempty"`
3271 // State: Output only. The state of the ExascaleDbStorageVault.
3272 //
3273 // Possible values:
3274 // "STATE_UNSPECIFIED" - The state of the ExascaleDbStorageVault is
3275 // unspecified.
3276 // "PROVISIONING" - The ExascaleDbStorageVault is being provisioned.
3277 // "AVAILABLE" - The ExascaleDbStorageVault is available.
3278 // "UPDATING" - The ExascaleDbStorageVault is being updated.
3279 // "TERMINATING" - The ExascaleDbStorageVault is being deleted.
3280 // "TERMINATED" - The ExascaleDbStorageVault has been deleted.
3281 // "FAILED" - The ExascaleDbStorageVault has failed.
3282 State string `json:"state,omitempty"`
3283 // TimeZone: Output only. The time zone of the ExascaleDbStorageVault.
3284 TimeZone *TimeZone `json:"timeZone,omitempty"`
3285 // VmClusterCount: Output only. The number of VM clusters associated with the
3286 // ExascaleDbStorageVault.
3287 VmClusterCount int64 `json:"vmClusterCount,omitempty"`
3288 // VmClusterIds: Output only. The list of VM cluster OCIDs associated with the
3289 // ExascaleDbStorageVault.
3290 VmClusterIds []string `json:"vmClusterIds,omitempty"`
3291 // ForceSendFields is a list of field names (e.g.
3292 // "AdditionalFlashCachePercent") to unconditionally include in API requests.
3293 // By default, fields with empty or default values are omitted from API
3294 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
3295 // for more details.
3296 ForceSendFields []string `json:"-"`
3297 // NullFields is a list of field names (e.g. "AdditionalFlashCachePercent") to
3298 // include in API requests with the JSON null value. By default, fields with
3299 // empty values are omitted from API requests. See
3300 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3301 NullFields []string `json:"-"`
3302 }
3303
3304 func (s ExascaleDbStorageVaultProperties) MarshalJSON() ([]byte, error) {
3305 type NoMethod ExascaleDbStorageVaultProperties
3306 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3307 }
3308
3309 // FailoverAutonomousDatabaseRequest: The request for
3310 // `OracleDatabase.FailoverAutonomousDatabase`.
3311 type FailoverAutonomousDatabaseRequest struct {
3312 // PeerAutonomousDatabase: Optional. The peer database name to fail over to.
3313 // Required for cross-region standby, and must be omitted for in-region Data
3314 // Guard.
3315 PeerAutonomousDatabase string `json:"peerAutonomousDatabase,omitempty"`
3316 // ForceSendFields is a list of field names (e.g. "PeerAutonomousDatabase") to
3317 // unconditionally include in API requests. By default, fields with empty or
3318 // default values are omitted from API requests. See
3319 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3320 // details.
3321 ForceSendFields []string `json:"-"`
3322 // NullFields is a list of field names (e.g. "PeerAutonomousDatabase") to
3323 // include in API requests with the JSON null value. By default, fields with
3324 // empty values are omitted from API requests. See
3325 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3326 NullFields []string `json:"-"`
3327 }
3328
3329 func (s FailoverAutonomousDatabaseRequest) MarshalJSON() ([]byte, error) {
3330 type NoMethod FailoverAutonomousDatabaseRequest
3331 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3332 }
3333
3334 // GenerateAutonomousDatabaseWalletRequest: The request for
3335 // `AutonomousDatabase.GenerateWallet`.
3336 type GenerateAutonomousDatabaseWalletRequest struct {
3337 // IsRegional: Optional. True when requesting regional connection strings in
3338 // PDB connect info, applicable to cross-region Data Guard only.
3339 IsRegional bool `json:"isRegional,omitempty"`
3340 // Password: Required. The password used to encrypt the keys inside the wallet.
3341 // The password must be a minimum of 8 characters.
3342 Password string `json:"password,omitempty"`
3343 // Type: Optional. The type of wallet generation for the Autonomous Database.
3344 // The default value is SINGLE.
3345 //
3346 // Possible values:
3347 // "GENERATE_TYPE_UNSPECIFIED" - Default unspecified value.
3348 // "ALL" - Used to generate wallet for all databases in the region.
3349 // "SINGLE" - Used to generate wallet for a single database.
3350 Type string `json:"type,omitempty"`
3351 // ForceSendFields is a list of field names (e.g. "IsRegional") to
3352 // unconditionally include in API requests. By default, fields with empty or
3353 // default values are omitted from API requests. See
3354 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3355 // details.
3356 ForceSendFields []string `json:"-"`
3357 // NullFields is a list of field names (e.g. "IsRegional") to include in API
3358 // requests with the JSON null value. By default, fields with empty values are
3359 // omitted from API requests. See
3360 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3361 NullFields []string `json:"-"`
3362 }
3363
3364 func (s GenerateAutonomousDatabaseWalletRequest) MarshalJSON() ([]byte, error) {
3365 type NoMethod GenerateAutonomousDatabaseWalletRequest
3366 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3367 }
3368
3369 // GenerateAutonomousDatabaseWalletResponse: The response for
3370 // `AutonomousDatabase.GenerateWallet`.
3371 type GenerateAutonomousDatabaseWalletResponse struct {
3372 // ArchiveContent: Output only. The base64 encoded wallet files.
3373 ArchiveContent string `json:"archiveContent,omitempty"`
3374
3375 // ServerResponse contains the HTTP response code and headers from the server.
3376 googleapi.ServerResponse `json:"-"`
3377 // ForceSendFields is a list of field names (e.g. "ArchiveContent") to
3378 // unconditionally include in API requests. By default, fields with empty or
3379 // default values are omitted from API requests. See
3380 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3381 // details.
3382 ForceSendFields []string `json:"-"`
3383 // NullFields is a list of field names (e.g. "ArchiveContent") to include in
3384 // API requests with the JSON null value. By default, fields with empty values
3385 // are omitted from API requests. See
3386 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3387 NullFields []string `json:"-"`
3388 }
3389
3390 func (s GenerateAutonomousDatabaseWalletResponse) MarshalJSON() ([]byte, error) {
3391 type NoMethod GenerateAutonomousDatabaseWalletResponse
3392 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3393 }
3394
3395 // GiVersion: Details of the Oracle Grid Infrastructure (GI) version resource.
3396 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/
3397 type GiVersion struct {
3398 // Name: Identifier. The name of the Oracle Grid Infrastructure (GI) version
3399 // resource with the format:
3400 // projects/{project}/locations/{region}/giVersions/{gi_versions}
3401 Name string `json:"name,omitempty"`
3402 // Version: Optional. version
3403 Version string `json:"version,omitempty"`
3404 // ForceSendFields is a list of field names (e.g. "Name") to unconditionally
3405 // include in API requests. By default, fields with empty or default values are
3406 // omitted from API requests. See
3407 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3408 // details.
3409 ForceSendFields []string `json:"-"`
3410 // NullFields is a list of field names (e.g. "Name") to include in API requests
3411 // with the JSON null value. By default, fields with empty values are omitted
3412 // from API requests. See
3413 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3414 NullFields []string `json:"-"`
3415 }
3416
3417 func (s GiVersion) MarshalJSON() ([]byte, error) {
3418 type NoMethod GiVersion
3419 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3420 }
3421
3422 // IdentityConnector: The identity connector details which will allow OCI to
3423 // securely access the resources in the customer project.
3424 type IdentityConnector struct {
3425 // ConnectionState: Output only. The connection state of the identity
3426 // connector.
3427 //
3428 // Possible values:
3429 // "CONNECTION_STATE_UNSPECIFIED" - Default unspecified value.
3430 // "CONNECTED" - The identity pool connection is connected.
3431 // "PARTIALLY_CONNECTED" - The identity pool connection is partially
3432 // connected.
3433 // "DISCONNECTED" - The identity pool connection is disconnected.
3434 // "UNKNOWN" - The identity pool connection is in an unknown state.
3435 ConnectionState string `json:"connectionState,omitempty"`
3436 // ServiceAgentEmail: Output only. A google managed service account on which
3437 // customers can grant roles to access resources in the customer project.
3438 // Example: `[email protected]`
3439 ServiceAgentEmail string `json:"serviceAgentEmail,omitempty"`
3440 // ForceSendFields is a list of field names (e.g. "ConnectionState") to
3441 // unconditionally include in API requests. By default, fields with empty or
3442 // default values are omitted from API requests. See
3443 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3444 // details.
3445 ForceSendFields []string `json:"-"`
3446 // NullFields is a list of field names (e.g. "ConnectionState") to include in
3447 // API requests with the JSON null value. By default, fields with empty values
3448 // are omitted from API requests. See
3449 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3450 NullFields []string `json:"-"`
3451 }
3452
3453 func (s IdentityConnector) MarshalJSON() ([]byte, error) {
3454 type NoMethod IdentityConnector
3455 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3456 }
3457
3458 // ListAutonomousDatabaseBackupsResponse: The response for
3459 // `AutonomousDatabaseBackup.List`.
3460 type ListAutonomousDatabaseBackupsResponse struct {
3461 // AutonomousDatabaseBackups: The list of Autonomous Database Backups.
3462 AutonomousDatabaseBackups []*AutonomousDatabaseBackup `json:"autonomousDatabaseBackups,omitempty"`
3463 // NextPageToken: A token identifying a page of results the server should
3464 // return.
3465 NextPageToken string `json:"nextPageToken,omitempty"`
3466
3467 // ServerResponse contains the HTTP response code and headers from the server.
3468 googleapi.ServerResponse `json:"-"`
3469 // ForceSendFields is a list of field names (e.g. "AutonomousDatabaseBackups")
3470 // to unconditionally include in API requests. By default, fields with empty or
3471 // default values are omitted from API requests. See
3472 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3473 // details.
3474 ForceSendFields []string `json:"-"`
3475 // NullFields is a list of field names (e.g. "AutonomousDatabaseBackups") to
3476 // include in API requests with the JSON null value. By default, fields with
3477 // empty values are omitted from API requests. See
3478 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3479 NullFields []string `json:"-"`
3480 }
3481
3482 func (s ListAutonomousDatabaseBackupsResponse) MarshalJSON() ([]byte, error) {
3483 type NoMethod ListAutonomousDatabaseBackupsResponse
3484 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3485 }
3486
3487 // ListAutonomousDatabaseCharacterSetsResponse: The response for
3488 // `AutonomousDatabaseCharacterSet.List`.
3489 type ListAutonomousDatabaseCharacterSetsResponse struct {
3490 // AutonomousDatabaseCharacterSets: The list of Autonomous Database Character
3491 // Sets.
3492 AutonomousDatabaseCharacterSets []*AutonomousDatabaseCharacterSet `json:"autonomousDatabaseCharacterSets,omitempty"`
3493 // NextPageToken: A token identifying a page of results the server should
3494 // return.
3495 NextPageToken string `json:"nextPageToken,omitempty"`
3496
3497 // ServerResponse contains the HTTP response code and headers from the server.
3498 googleapi.ServerResponse `json:"-"`
3499 // ForceSendFields is a list of field names (e.g.
3500 // "AutonomousDatabaseCharacterSets") to unconditionally include in API
3501 // requests. By default, fields with empty or default values are omitted from
3502 // API requests. See
3503 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3504 // details.
3505 ForceSendFields []string `json:"-"`
3506 // NullFields is a list of field names (e.g. "AutonomousDatabaseCharacterSets")
3507 // to include in API requests with the JSON null value. By default, fields with
3508 // empty values are omitted from API requests. See
3509 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3510 NullFields []string `json:"-"`
3511 }
3512
3513 func (s ListAutonomousDatabaseCharacterSetsResponse) MarshalJSON() ([]byte, error) {
3514 type NoMethod ListAutonomousDatabaseCharacterSetsResponse
3515 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3516 }
3517
3518 // ListAutonomousDatabasesResponse: The response for `AutonomousDatabase.List`.
3519 type ListAutonomousDatabasesResponse struct {
3520 // AutonomousDatabases: The list of Autonomous Databases.
3521 AutonomousDatabases []*AutonomousDatabase `json:"autonomousDatabases,omitempty"`
3522 // NextPageToken: A token identifying a page of results the server should
3523 // return.
3524 NextPageToken string `json:"nextPageToken,omitempty"`
3525
3526 // ServerResponse contains the HTTP response code and headers from the server.
3527 googleapi.ServerResponse `json:"-"`
3528 // ForceSendFields is a list of field names (e.g. "AutonomousDatabases") to
3529 // unconditionally include in API requests. By default, fields with empty or
3530 // default values are omitted from API requests. See
3531 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3532 // details.
3533 ForceSendFields []string `json:"-"`
3534 // NullFields is a list of field names (e.g. "AutonomousDatabases") to include
3535 // in API requests with the JSON null value. By default, fields with empty
3536 // values are omitted from API requests. See
3537 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3538 NullFields []string `json:"-"`
3539 }
3540
3541 func (s ListAutonomousDatabasesResponse) MarshalJSON() ([]byte, error) {
3542 type NoMethod ListAutonomousDatabasesResponse
3543 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3544 }
3545
3546 // ListAutonomousDbVersionsResponse: The response for
3547 // `AutonomousDbVersion.List`.
3548 type ListAutonomousDbVersionsResponse struct {
3549 // AutonomousDbVersions: The list of Autonomous Database versions.
3550 AutonomousDbVersions []*AutonomousDbVersion `json:"autonomousDbVersions,omitempty"`
3551 // NextPageToken: A token identifying a page of results the server should
3552 // return.
3553 NextPageToken string `json:"nextPageToken,omitempty"`
3554
3555 // ServerResponse contains the HTTP response code and headers from the server.
3556 googleapi.ServerResponse `json:"-"`
3557 // ForceSendFields is a list of field names (e.g. "AutonomousDbVersions") to
3558 // unconditionally include in API requests. By default, fields with empty or
3559 // default values are omitted from API requests. See
3560 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3561 // details.
3562 ForceSendFields []string `json:"-"`
3563 // NullFields is a list of field names (e.g. "AutonomousDbVersions") to include
3564 // in API requests with the JSON null value. By default, fields with empty
3565 // values are omitted from API requests. See
3566 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3567 NullFields []string `json:"-"`
3568 }
3569
3570 func (s ListAutonomousDbVersionsResponse) MarshalJSON() ([]byte, error) {
3571 type NoMethod ListAutonomousDbVersionsResponse
3572 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3573 }
3574
3575 // ListCloudExadataInfrastructuresResponse: The response for
3576 // `CloudExadataInfrastructures.list`.
3577 type ListCloudExadataInfrastructuresResponse struct {
3578 // CloudExadataInfrastructures: The list of Exadata Infrastructures.
3579 CloudExadataInfrastructures []*CloudExadataInfrastructure `json:"cloudExadataInfrastructures,omitempty"`
3580 // NextPageToken: A token for fetching next page of response.
3581 NextPageToken string `json:"nextPageToken,omitempty"`
3582
3583 // ServerResponse contains the HTTP response code and headers from the server.
3584 googleapi.ServerResponse `json:"-"`
3585 // ForceSendFields is a list of field names (e.g.
3586 // "CloudExadataInfrastructures") to unconditionally include in API requests.
3587 // By default, fields with empty or default values are omitted from API
3588 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
3589 // for more details.
3590 ForceSendFields []string `json:"-"`
3591 // NullFields is a list of field names (e.g. "CloudExadataInfrastructures") to
3592 // include in API requests with the JSON null value. By default, fields with
3593 // empty values are omitted from API requests. See
3594 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3595 NullFields []string `json:"-"`
3596 }
3597
3598 func (s ListCloudExadataInfrastructuresResponse) MarshalJSON() ([]byte, error) {
3599 type NoMethod ListCloudExadataInfrastructuresResponse
3600 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3601 }
3602
3603 // ListCloudVmClustersResponse: The response for `CloudVmCluster.List`.
3604 type ListCloudVmClustersResponse struct {
3605 // CloudVmClusters: The list of VM Clusters.
3606 CloudVmClusters []*CloudVmCluster `json:"cloudVmClusters,omitempty"`
3607 // NextPageToken: A token to fetch the next page of results.
3608 NextPageToken string `json:"nextPageToken,omitempty"`
3609
3610 // ServerResponse contains the HTTP response code and headers from the server.
3611 googleapi.ServerResponse `json:"-"`
3612 // ForceSendFields is a list of field names (e.g. "CloudVmClusters") to
3613 // unconditionally include in API requests. By default, fields with empty or
3614 // default values are omitted from API requests. See
3615 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3616 // details.
3617 ForceSendFields []string `json:"-"`
3618 // NullFields is a list of field names (e.g. "CloudVmClusters") to include in
3619 // API requests with the JSON null value. By default, fields with empty values
3620 // are omitted from API requests. See
3621 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3622 NullFields []string `json:"-"`
3623 }
3624
3625 func (s ListCloudVmClustersResponse) MarshalJSON() ([]byte, error) {
3626 type NoMethod ListCloudVmClustersResponse
3627 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3628 }
3629
3630 // ListDatabaseCharacterSetsResponse: The response for
3631 // `DatabaseCharacterSet.List`.
3632 type ListDatabaseCharacterSetsResponse struct {
3633 // DatabaseCharacterSets: The list of DatabaseCharacterSets.
3634 DatabaseCharacterSets []*DatabaseCharacterSet `json:"databaseCharacterSets,omitempty"`
3635 // NextPageToken: A token identifying a page of results the server should
3636 // return.
3637 NextPageToken string `json:"nextPageToken,omitempty"`
3638
3639 // ServerResponse contains the HTTP response code and headers from the server.
3640 googleapi.ServerResponse `json:"-"`
3641 // ForceSendFields is a list of field names (e.g. "DatabaseCharacterSets") to
3642 // unconditionally include in API requests. By default, fields with empty or
3643 // default values are omitted from API requests. See
3644 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3645 // details.
3646 ForceSendFields []string `json:"-"`
3647 // NullFields is a list of field names (e.g. "DatabaseCharacterSets") to
3648 // include in API requests with the JSON null value. By default, fields with
3649 // empty values are omitted from API requests. See
3650 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3651 NullFields []string `json:"-"`
3652 }
3653
3654 func (s ListDatabaseCharacterSetsResponse) MarshalJSON() ([]byte, error) {
3655 type NoMethod ListDatabaseCharacterSetsResponse
3656 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3657 }
3658
3659 // ListDatabasesResponse: The response for `Database.List`.
3660 type ListDatabasesResponse struct {
3661 // Databases: The list of Databases.
3662 Databases []*Database `json:"databases,omitempty"`
3663 // NextPageToken: A token identifying a page of results the server should
3664 // return.
3665 NextPageToken string `json:"nextPageToken,omitempty"`
3666
3667 // ServerResponse contains the HTTP response code and headers from the server.
3668 googleapi.ServerResponse `json:"-"`
3669 // ForceSendFields is a list of field names (e.g. "Databases") to
3670 // unconditionally include in API requests. By default, fields with empty or
3671 // default values are omitted from API requests. See
3672 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3673 // details.
3674 ForceSendFields []string `json:"-"`
3675 // NullFields is a list of field names (e.g. "Databases") to include in API
3676 // requests with the JSON null value. By default, fields with empty values are
3677 // omitted from API requests. See
3678 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3679 NullFields []string `json:"-"`
3680 }
3681
3682 func (s ListDatabasesResponse) MarshalJSON() ([]byte, error) {
3683 type NoMethod ListDatabasesResponse
3684 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3685 }
3686
3687 // ListDbNodesResponse: The response for `DbNode.List`.
3688 type ListDbNodesResponse struct {
3689 // DbNodes: The list of DB Nodes
3690 DbNodes []*DbNode `json:"dbNodes,omitempty"`
3691 // NextPageToken: A token identifying a page of results the node should return.
3692 NextPageToken string `json:"nextPageToken,omitempty"`
3693
3694 // ServerResponse contains the HTTP response code and headers from the server.
3695 googleapi.ServerResponse `json:"-"`
3696 // ForceSendFields is a list of field names (e.g. "DbNodes") to unconditionally
3697 // include in API requests. By default, fields with empty or default values are
3698 // omitted from API requests. See
3699 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3700 // details.
3701 ForceSendFields []string `json:"-"`
3702 // NullFields is a list of field names (e.g. "DbNodes") to include in API
3703 // requests with the JSON null value. By default, fields with empty values are
3704 // omitted from API requests. See
3705 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3706 NullFields []string `json:"-"`
3707 }
3708
3709 func (s ListDbNodesResponse) MarshalJSON() ([]byte, error) {
3710 type NoMethod ListDbNodesResponse
3711 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3712 }
3713
3714 // ListDbServersResponse: The response for `DbServer.List`.
3715 type ListDbServersResponse struct {
3716 // DbServers: The list of database servers.
3717 DbServers []*DbServer `json:"dbServers,omitempty"`
3718 // NextPageToken: A token identifying a page of results the server should
3719 // return.
3720 NextPageToken string `json:"nextPageToken,omitempty"`
3721
3722 // ServerResponse contains the HTTP response code and headers from the server.
3723 googleapi.ServerResponse `json:"-"`
3724 // ForceSendFields is a list of field names (e.g. "DbServers") to
3725 // unconditionally include in API requests. By default, fields with empty or
3726 // default values are omitted from API requests. See
3727 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3728 // details.
3729 ForceSendFields []string `json:"-"`
3730 // NullFields is a list of field names (e.g. "DbServers") to include in API
3731 // requests with the JSON null value. By default, fields with empty values are
3732 // omitted from API requests. See
3733 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3734 NullFields []string `json:"-"`
3735 }
3736
3737 func (s ListDbServersResponse) MarshalJSON() ([]byte, error) {
3738 type NoMethod ListDbServersResponse
3739 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3740 }
3741
3742 // ListDbSystemInitialStorageSizesResponse: The response for
3743 // `DbSystemInitialStorageSizes.List`.
3744 type ListDbSystemInitialStorageSizesResponse struct {
3745 // DbSystemInitialStorageSizes: The list of DbSystemInitialStorageSizes.
3746 DbSystemInitialStorageSizes []*DbSystemInitialStorageSize `json:"dbSystemInitialStorageSizes,omitempty"`
3747 // NextPageToken: A token identifying a page of results the server should
3748 // return.
3749 NextPageToken string `json:"nextPageToken,omitempty"`
3750
3751 // ServerResponse contains the HTTP response code and headers from the server.
3752 googleapi.ServerResponse `json:"-"`
3753 // ForceSendFields is a list of field names (e.g.
3754 // "DbSystemInitialStorageSizes") to unconditionally include in API requests.
3755 // By default, fields with empty or default values are omitted from API
3756 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
3757 // for more details.
3758 ForceSendFields []string `json:"-"`
3759 // NullFields is a list of field names (e.g. "DbSystemInitialStorageSizes") to
3760 // include in API requests with the JSON null value. By default, fields with
3761 // empty values are omitted from API requests. See
3762 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3763 NullFields []string `json:"-"`
3764 }
3765
3766 func (s ListDbSystemInitialStorageSizesResponse) MarshalJSON() ([]byte, error) {
3767 type NoMethod ListDbSystemInitialStorageSizesResponse
3768 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3769 }
3770
3771 // ListDbSystemShapesResponse: The response for `DbSystemShape.List`.
3772 type ListDbSystemShapesResponse struct {
3773 // DbSystemShapes: The list of Database System shapes.
3774 DbSystemShapes []*DbSystemShape `json:"dbSystemShapes,omitempty"`
3775 // NextPageToken: A token identifying a page of results the server should
3776 // return.
3777 NextPageToken string `json:"nextPageToken,omitempty"`
3778
3779 // ServerResponse contains the HTTP response code and headers from the server.
3780 googleapi.ServerResponse `json:"-"`
3781 // ForceSendFields is a list of field names (e.g. "DbSystemShapes") to
3782 // unconditionally include in API requests. By default, fields with empty or
3783 // default values are omitted from API requests. See
3784 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3785 // details.
3786 ForceSendFields []string `json:"-"`
3787 // NullFields is a list of field names (e.g. "DbSystemShapes") to include in
3788 // API requests with the JSON null value. By default, fields with empty values
3789 // are omitted from API requests. See
3790 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3791 NullFields []string `json:"-"`
3792 }
3793
3794 func (s ListDbSystemShapesResponse) MarshalJSON() ([]byte, error) {
3795 type NoMethod ListDbSystemShapesResponse
3796 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3797 }
3798
3799 // ListDbSystemsResponse: The response for `DbSystem.List`.
3800 type ListDbSystemsResponse struct {
3801 // DbSystems: The list of DbSystems.
3802 DbSystems []*DbSystem `json:"dbSystems,omitempty"`
3803 // NextPageToken: A token identifying a page of results the server should
3804 // return.
3805 NextPageToken string `json:"nextPageToken,omitempty"`
3806
3807 // ServerResponse contains the HTTP response code and headers from the server.
3808 googleapi.ServerResponse `json:"-"`
3809 // ForceSendFields is a list of field names (e.g. "DbSystems") to
3810 // unconditionally include in API requests. By default, fields with empty or
3811 // default values are omitted from API requests. See
3812 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3813 // details.
3814 ForceSendFields []string `json:"-"`
3815 // NullFields is a list of field names (e.g. "DbSystems") to include in API
3816 // requests with the JSON null value. By default, fields with empty values are
3817 // omitted from API requests. See
3818 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3819 NullFields []string `json:"-"`
3820 }
3821
3822 func (s ListDbSystemsResponse) MarshalJSON() ([]byte, error) {
3823 type NoMethod ListDbSystemsResponse
3824 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3825 }
3826
3827 // ListDbVersionsResponse: The response for `DbVersions.List`.
3828 type ListDbVersionsResponse struct {
3829 // DbVersions: The list of DbVersions.
3830 DbVersions []*DbVersion `json:"dbVersions,omitempty"`
3831 // NextPageToken: A token identifying a page of results the server should
3832 // return.
3833 NextPageToken string `json:"nextPageToken,omitempty"`
3834
3835 // ServerResponse contains the HTTP response code and headers from the server.
3836 googleapi.ServerResponse `json:"-"`
3837 // ForceSendFields is a list of field names (e.g. "DbVersions") to
3838 // unconditionally include in API requests. By default, fields with empty or
3839 // default values are omitted from API requests. See
3840 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3841 // details.
3842 ForceSendFields []string `json:"-"`
3843 // NullFields is a list of field names (e.g. "DbVersions") to include in API
3844 // requests with the JSON null value. By default, fields with empty values are
3845 // omitted from API requests. See
3846 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3847 NullFields []string `json:"-"`
3848 }
3849
3850 func (s ListDbVersionsResponse) MarshalJSON() ([]byte, error) {
3851 type NoMethod ListDbVersionsResponse
3852 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3853 }
3854
3855 // ListEntitlementsResponse: The response for `Entitlement.List`.
3856 type ListEntitlementsResponse struct {
3857 // Entitlements: The list of Entitlements
3858 Entitlements []*Entitlement `json:"entitlements,omitempty"`
3859 // NextPageToken: A token identifying a page of results the server should
3860 // return.
3861 NextPageToken string `json:"nextPageToken,omitempty"`
3862
3863 // ServerResponse contains the HTTP response code and headers from the server.
3864 googleapi.ServerResponse `json:"-"`
3865 // ForceSendFields is a list of field names (e.g. "Entitlements") to
3866 // unconditionally include in API requests. By default, fields with empty or
3867 // default values are omitted from API requests. See
3868 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3869 // details.
3870 ForceSendFields []string `json:"-"`
3871 // NullFields is a list of field names (e.g. "Entitlements") to include in API
3872 // requests with the JSON null value. By default, fields with empty values are
3873 // omitted from API requests. See
3874 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3875 NullFields []string `json:"-"`
3876 }
3877
3878 func (s ListEntitlementsResponse) MarshalJSON() ([]byte, error) {
3879 type NoMethod ListEntitlementsResponse
3880 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3881 }
3882
3883 // ListExadbVmClustersResponse: The response for `ExadbVmCluster.List`.
3884 type ListExadbVmClustersResponse struct {
3885 // ExadbVmClusters: The list of ExadbVmClusters.
3886 ExadbVmClusters []*ExadbVmCluster `json:"exadbVmClusters,omitempty"`
3887 // NextPageToken: A token identifying a page of results the server should
3888 // return.
3889 NextPageToken string `json:"nextPageToken,omitempty"`
3890
3891 // ServerResponse contains the HTTP response code and headers from the server.
3892 googleapi.ServerResponse `json:"-"`
3893 // ForceSendFields is a list of field names (e.g. "ExadbVmClusters") to
3894 // unconditionally include in API requests. By default, fields with empty or
3895 // default values are omitted from API requests. See
3896 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3897 // details.
3898 ForceSendFields []string `json:"-"`
3899 // NullFields is a list of field names (e.g. "ExadbVmClusters") to include in
3900 // API requests with the JSON null value. By default, fields with empty values
3901 // are omitted from API requests. See
3902 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3903 NullFields []string `json:"-"`
3904 }
3905
3906 func (s ListExadbVmClustersResponse) MarshalJSON() ([]byte, error) {
3907 type NoMethod ListExadbVmClustersResponse
3908 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3909 }
3910
3911 // ListExascaleDbStorageVaultsResponse: The response for
3912 // `ExascaleDbStorageVault.List`.
3913 type ListExascaleDbStorageVaultsResponse struct {
3914 // ExascaleDbStorageVaults: The ExascaleDbStorageVaults.
3915 ExascaleDbStorageVaults []*ExascaleDbStorageVault `json:"exascaleDbStorageVaults,omitempty"`
3916 // NextPageToken: A token identifying a page of results the server should
3917 // return. If present, the next page token can be provided to a subsequent
3918 // ListExascaleDbStorageVaults call to list the next page. If empty, there are
3919 // no more pages.
3920 NextPageToken string `json:"nextPageToken,omitempty"`
3921
3922 // ServerResponse contains the HTTP response code and headers from the server.
3923 googleapi.ServerResponse `json:"-"`
3924 // ForceSendFields is a list of field names (e.g. "ExascaleDbStorageVaults") to
3925 // unconditionally include in API requests. By default, fields with empty or
3926 // default values are omitted from API requests. See
3927 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3928 // details.
3929 ForceSendFields []string `json:"-"`
3930 // NullFields is a list of field names (e.g. "ExascaleDbStorageVaults") to
3931 // include in API requests with the JSON null value. By default, fields with
3932 // empty values are omitted from API requests. See
3933 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3934 NullFields []string `json:"-"`
3935 }
3936
3937 func (s ListExascaleDbStorageVaultsResponse) MarshalJSON() ([]byte, error) {
3938 type NoMethod ListExascaleDbStorageVaultsResponse
3939 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3940 }
3941
3942 // ListGiVersionsResponse: The response for `GiVersion.List`.
3943 type ListGiVersionsResponse struct {
3944 // GiVersions: The list of Oracle Grid Infrastructure (GI) versions.
3945 GiVersions []*GiVersion `json:"giVersions,omitempty"`
3946 // NextPageToken: A token identifying a page of results the server should
3947 // return.
3948 NextPageToken string `json:"nextPageToken,omitempty"`
3949
3950 // ServerResponse contains the HTTP response code and headers from the server.
3951 googleapi.ServerResponse `json:"-"`
3952 // ForceSendFields is a list of field names (e.g. "GiVersions") to
3953 // unconditionally include in API requests. By default, fields with empty or
3954 // default values are omitted from API requests. See
3955 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3956 // details.
3957 ForceSendFields []string `json:"-"`
3958 // NullFields is a list of field names (e.g. "GiVersions") to include in API
3959 // requests with the JSON null value. By default, fields with empty values are
3960 // omitted from API requests. See
3961 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3962 NullFields []string `json:"-"`
3963 }
3964
3965 func (s ListGiVersionsResponse) MarshalJSON() ([]byte, error) {
3966 type NoMethod ListGiVersionsResponse
3967 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3968 }
3969
3970 // ListLocationsResponse: The response message for Locations.ListLocations.
3971 type ListLocationsResponse struct {
3972 // Locations: A list of locations that matches the specified filter in the
3973 // request.
3974 Locations []*Location `json:"locations,omitempty"`
3975 // NextPageToken: The standard List next-page token.
3976 NextPageToken string `json:"nextPageToken,omitempty"`
3977
3978 // ServerResponse contains the HTTP response code and headers from the server.
3979 googleapi.ServerResponse `json:"-"`
3980 // ForceSendFields is a list of field names (e.g. "Locations") to
3981 // unconditionally include in API requests. By default, fields with empty or
3982 // default values are omitted from API requests. See
3983 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
3984 // details.
3985 ForceSendFields []string `json:"-"`
3986 // NullFields is a list of field names (e.g. "Locations") to include in API
3987 // requests with the JSON null value. By default, fields with empty values are
3988 // omitted from API requests. See
3989 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
3990 NullFields []string `json:"-"`
3991 }
3992
3993 func (s ListLocationsResponse) MarshalJSON() ([]byte, error) {
3994 type NoMethod ListLocationsResponse
3995 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
3996 }
3997
3998 // ListMinorVersionsResponse: The response for `MinorVersion.List`.
3999 type ListMinorVersionsResponse struct {
4000 // MinorVersions: The list of MinorVersions.
4001 MinorVersions []*MinorVersion `json:"minorVersions,omitempty"`
4002 // NextPageToken: A token identifying a page of results the server should
4003 // return.
4004 NextPageToken string `json:"nextPageToken,omitempty"`
4005
4006 // ServerResponse contains the HTTP response code and headers from the server.
4007 googleapi.ServerResponse `json:"-"`
4008 // ForceSendFields is a list of field names (e.g. "MinorVersions") to
4009 // unconditionally include in API requests. By default, fields with empty or
4010 // default values are omitted from API requests. See
4011 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4012 // details.
4013 ForceSendFields []string `json:"-"`
4014 // NullFields is a list of field names (e.g. "MinorVersions") to include in API
4015 // requests with the JSON null value. By default, fields with empty values are
4016 // omitted from API requests. See
4017 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4018 NullFields []string `json:"-"`
4019 }
4020
4021 func (s ListMinorVersionsResponse) MarshalJSON() ([]byte, error) {
4022 type NoMethod ListMinorVersionsResponse
4023 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4024 }
4025
4026 // ListOdbNetworksResponse: The response for `OdbNetwork.List`.
4027 type ListOdbNetworksResponse struct {
4028 // NextPageToken: A token identifying a page of results the server should
4029 // return.
4030 NextPageToken string `json:"nextPageToken,omitempty"`
4031 // OdbNetworks: The list of ODB Networks.
4032 OdbNetworks []*OdbNetwork `json:"odbNetworks,omitempty"`
4033 // Unreachable: Unreachable locations when listing resources across all
4034 // locations using wildcard location '-'.
4035 Unreachable []string `json:"unreachable,omitempty"`
4036
4037 // ServerResponse contains the HTTP response code and headers from the server.
4038 googleapi.ServerResponse `json:"-"`
4039 // ForceSendFields is a list of field names (e.g. "NextPageToken") to
4040 // unconditionally include in API requests. By default, fields with empty or
4041 // default values are omitted from API requests. See
4042 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4043 // details.
4044 ForceSendFields []string `json:"-"`
4045 // NullFields is a list of field names (e.g. "NextPageToken") to include in API
4046 // requests with the JSON null value. By default, fields with empty values are
4047 // omitted from API requests. See
4048 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4049 NullFields []string `json:"-"`
4050 }
4051
4052 func (s ListOdbNetworksResponse) MarshalJSON() ([]byte, error) {
4053 type NoMethod ListOdbNetworksResponse
4054 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4055 }
4056
4057 // ListOdbSubnetsResponse: The response for `OdbSubnet.List`.
4058 type ListOdbSubnetsResponse struct {
4059 // NextPageToken: A token identifying a page of results the server should
4060 // return.
4061 NextPageToken string `json:"nextPageToken,omitempty"`
4062 // OdbSubnets: The list of ODB Subnets.
4063 OdbSubnets []*OdbSubnet `json:"odbSubnets,omitempty"`
4064 // Unreachable: Unreachable locations when listing resources across all
4065 // locations using wildcard location '-'.
4066 Unreachable []string `json:"unreachable,omitempty"`
4067
4068 // ServerResponse contains the HTTP response code and headers from the server.
4069 googleapi.ServerResponse `json:"-"`
4070 // ForceSendFields is a list of field names (e.g. "NextPageToken") to
4071 // unconditionally include in API requests. By default, fields with empty or
4072 // default values are omitted from API requests. See
4073 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4074 // details.
4075 ForceSendFields []string `json:"-"`
4076 // NullFields is a list of field names (e.g. "NextPageToken") to include in API
4077 // requests with the JSON null value. By default, fields with empty values are
4078 // omitted from API requests. See
4079 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4080 NullFields []string `json:"-"`
4081 }
4082
4083 func (s ListOdbSubnetsResponse) MarshalJSON() ([]byte, error) {
4084 type NoMethod ListOdbSubnetsResponse
4085 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4086 }
4087
4088 // ListOperationsResponse: The response message for Operations.ListOperations.
4089 type ListOperationsResponse struct {
4090 // NextPageToken: The standard List next-page token.
4091 NextPageToken string `json:"nextPageToken,omitempty"`
4092 // Operations: A list of operations that matches the specified filter in the
4093 // request.
4094 Operations []*Operation `json:"operations,omitempty"`
4095 // Unreachable: Unordered list. Unreachable resources. Populated when the
4096 // request sets `ListOperationsRequest.return_partial_success` and reads across
4097 // collections. For example, when attempting to list all resources across all
4098 // supported locations.
4099 Unreachable []string `json:"unreachable,omitempty"`
4100
4101 // ServerResponse contains the HTTP response code and headers from the server.
4102 googleapi.ServerResponse `json:"-"`
4103 // ForceSendFields is a list of field names (e.g. "NextPageToken") to
4104 // unconditionally include in API requests. By default, fields with empty or
4105 // default values are omitted from API requests. See
4106 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4107 // details.
4108 ForceSendFields []string `json:"-"`
4109 // NullFields is a list of field names (e.g. "NextPageToken") to include in API
4110 // requests with the JSON null value. By default, fields with empty values are
4111 // omitted from API requests. See
4112 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4113 NullFields []string `json:"-"`
4114 }
4115
4116 func (s ListOperationsResponse) MarshalJSON() ([]byte, error) {
4117 type NoMethod ListOperationsResponse
4118 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4119 }
4120
4121 // ListPluggableDatabasesResponse: The response for `PluggableDatabase.List`.
4122 type ListPluggableDatabasesResponse struct {
4123 // NextPageToken: A token identifying a page of results the server should
4124 // return.
4125 NextPageToken string `json:"nextPageToken,omitempty"`
4126 // PluggableDatabases: The list of PluggableDatabases.
4127 PluggableDatabases []*PluggableDatabase `json:"pluggableDatabases,omitempty"`
4128
4129 // ServerResponse contains the HTTP response code and headers from the server.
4130 googleapi.ServerResponse `json:"-"`
4131 // ForceSendFields is a list of field names (e.g. "NextPageToken") to
4132 // unconditionally include in API requests. By default, fields with empty or
4133 // default values are omitted from API requests. See
4134 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4135 // details.
4136 ForceSendFields []string `json:"-"`
4137 // NullFields is a list of field names (e.g. "NextPageToken") to include in API
4138 // requests with the JSON null value. By default, fields with empty values are
4139 // omitted from API requests. See
4140 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4141 NullFields []string `json:"-"`
4142 }
4143
4144 func (s ListPluggableDatabasesResponse) MarshalJSON() ([]byte, error) {
4145 type NoMethod ListPluggableDatabasesResponse
4146 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4147 }
4148
4149 // Location: A resource that represents a Google Cloud location.
4150 type Location struct {
4151 // DisplayName: The friendly name for this location, typically a nearby city
4152 // name. For example, "Tokyo".
4153 DisplayName string `json:"displayName,omitempty"`
4154 // Labels: Cross-service attributes for the location. For example
4155 // {"cloud.googleapis.com/region": "us-east1"}
4156 Labels map[string]string `json:"labels,omitempty"`
4157 // LocationId: The canonical id for this location. For example: "us-east1".
4158 LocationId string `json:"locationId,omitempty"`
4159 // Metadata: Service-specific metadata. For example the available capacity at
4160 // the given location.
4161 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
4162 // Name: Resource name for the location, which may vary between
4163 // implementations. For example:
4164 // "projects/example-project/locations/us-east1"
4165 Name string `json:"name,omitempty"`
4166
4167 // ServerResponse contains the HTTP response code and headers from the server.
4168 googleapi.ServerResponse `json:"-"`
4169 // ForceSendFields is a list of field names (e.g. "DisplayName") to
4170 // unconditionally include in API requests. By default, fields with empty or
4171 // default values are omitted from API requests. See
4172 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4173 // details.
4174 ForceSendFields []string `json:"-"`
4175 // NullFields is a list of field names (e.g. "DisplayName") to include in API
4176 // requests with the JSON null value. By default, fields with empty values are
4177 // omitted from API requests. See
4178 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4179 NullFields []string `json:"-"`
4180 }
4181
4182 func (s Location) MarshalJSON() ([]byte, error) {
4183 type NoMethod Location
4184 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4185 }
4186
4187 // LocationMetadata: Metadata for a given Location.
4188 type LocationMetadata struct {
4189 // GcpOracleZones: Output only. Google Cloud Platform Oracle zones in a
4190 // location.
4191 GcpOracleZones []string `json:"gcpOracleZones,omitempty"`
4192 // ForceSendFields is a list of field names (e.g. "GcpOracleZones") to
4193 // unconditionally include in API requests. By default, fields with empty or
4194 // default values are omitted from API requests. See
4195 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4196 // details.
4197 ForceSendFields []string `json:"-"`
4198 // NullFields is a list of field names (e.g. "GcpOracleZones") to include in
4199 // API requests with the JSON null value. By default, fields with empty values
4200 // are omitted from API requests. See
4201 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4202 NullFields []string `json:"-"`
4203 }
4204
4205 func (s LocationMetadata) MarshalJSON() ([]byte, error) {
4206 type NoMethod LocationMetadata
4207 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4208 }
4209
4210 // MaintenanceWindow: Maintenance window as defined by Oracle.
4211 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow
4212 type MaintenanceWindow struct {
4213 // CustomActionTimeoutMins: Optional. Determines the amount of time the system
4214 // will wait before the start of each database server patching operation.
4215 // Custom action timeout is in minutes and valid value is between 15 to 120
4216 // (inclusive).
4217 CustomActionTimeoutMins int64 `json:"customActionTimeoutMins,omitempty"`
4218 // DaysOfWeek: Optional. Days during the week when maintenance should be
4219 // performed.
4220 //
4221 // Possible values:
4222 // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
4223 // "MONDAY" - Monday
4224 // "TUESDAY" - Tuesday
4225 // "WEDNESDAY" - Wednesday
4226 // "THURSDAY" - Thursday
4227 // "FRIDAY" - Friday
4228 // "SATURDAY" - Saturday
4229 // "SUNDAY" - Sunday
4230 DaysOfWeek []string `json:"daysOfWeek,omitempty"`
4231 // HoursOfDay: Optional. The window of hours during the day when maintenance
4232 // should be performed. The window is a 4 hour slot. Valid values are: 0 -
4233 // represents time slot 0:00 - 3:59 UTC 4 - represents time slot 4:00 - 7:59
4234 // UTC 8 - represents time slot 8:00 - 11:59 UTC 12 - represents time slot
4235 // 12:00 - 15:59 UTC 16 - represents time slot 16:00 - 19:59 UTC 20 -
4236 // represents time slot 20:00 - 23:59 UTC
4237 HoursOfDay []int64 `json:"hoursOfDay,omitempty"`
4238 // IsCustomActionTimeoutEnabled: Optional. If true, enables the configuration
4239 // of a custom action timeout (waiting period) between database server patching
4240 // operations.
4241 IsCustomActionTimeoutEnabled bool `json:"isCustomActionTimeoutEnabled,omitempty"`
4242 // LeadTimeWeek: Optional. Lead time window allows user to set a lead time to
4243 // prepare for a down time. The lead time is in weeks and valid value is
4244 // between 1 to 4.
4245 LeadTimeWeek int64 `json:"leadTimeWeek,omitempty"`
4246 // Months: Optional. Months during the year when maintenance should be
4247 // performed.
4248 //
4249 // Possible values:
4250 // "MONTH_UNSPECIFIED" - The unspecified month.
4251 // "JANUARY" - The month of January.
4252 // "FEBRUARY" - The month of February.
4253 // "MARCH" - The month of March.
4254 // "APRIL" - The month of April.
4255 // "MAY" - The month of May.
4256 // "JUNE" - The month of June.
4257 // "JULY" - The month of July.
4258 // "AUGUST" - The month of August.
4259 // "SEPTEMBER" - The month of September.
4260 // "OCTOBER" - The month of October.
4261 // "NOVEMBER" - The month of November.
4262 // "DECEMBER" - The month of December.
4263 Months []string `json:"months,omitempty"`
4264 // PatchingMode: Optional. Cloud CloudExadataInfrastructure node patching
4265 // method, either "ROLLING" or "NONROLLING". Default value is ROLLING.
4266 //
4267 // Possible values:
4268 // "PATCHING_MODE_UNSPECIFIED" - Default unspecified value.
4269 // "ROLLING" - Updates the Cloud Exadata database server hosts in a rolling
4270 // fashion.
4271 // "NON_ROLLING" - The non-rolling maintenance method first updates your
4272 // storage servers at the same time, then your database servers at the same
4273 // time.
4274 PatchingMode string `json:"patchingMode,omitempty"`
4275 // Preference: Optional. The maintenance window scheduling preference.
4276 //
4277 // Possible values:
4278 // "MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED" - Default unspecified value.
4279 // "CUSTOM_PREFERENCE" - Custom preference.
4280 // "NO_PREFERENCE" - No preference.
4281 Preference string `json:"preference,omitempty"`
4282 // WeeksOfMonth: Optional. Weeks during the month when maintenance should be
4283 // performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month,
4284 // and have a duration of 7 days. Weeks start and end based on calendar dates,
4285 // not days of the week.
4286 WeeksOfMonth []int64 `json:"weeksOfMonth,omitempty"`
4287 // ForceSendFields is a list of field names (e.g. "CustomActionTimeoutMins") to
4288 // unconditionally include in API requests. By default, fields with empty or
4289 // default values are omitted from API requests. See
4290 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4291 // details.
4292 ForceSendFields []string `json:"-"`
4293 // NullFields is a list of field names (e.g. "CustomActionTimeoutMins") to
4294 // include in API requests with the JSON null value. By default, fields with
4295 // empty values are omitted from API requests. See
4296 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4297 NullFields []string `json:"-"`
4298 }
4299
4300 func (s MaintenanceWindow) MarshalJSON() ([]byte, error) {
4301 type NoMethod MaintenanceWindow
4302 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4303 }
4304
4305 // MinorVersion: MinorVersion represents a minor version of a GI.
4306 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/
4307 type MinorVersion struct {
4308 // GridImageId: Optional. The ID of the Grid Image.
4309 GridImageId string `json:"gridImageId,omitempty"`
4310 // Name: Identifier. The name of the MinorVersion resource with the format:
4311 // projects/{project}/locations/{region}/giVersions/{gi_version}/minorVersions/{
4312 // minor_version}
4313 Name string `json:"name,omitempty"`
4314 // Version: Optional. The valid Oracle grid infrastructure software version.
4315 Version string `json:"version,omitempty"`
4316 // ForceSendFields is a list of field names (e.g. "GridImageId") to
4317 // unconditionally include in API requests. By default, fields with empty or
4318 // default values are omitted from API requests. See
4319 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4320 // details.
4321 ForceSendFields []string `json:"-"`
4322 // NullFields is a list of field names (e.g. "GridImageId") to include in API
4323 // requests with the JSON null value. By default, fields with empty values are
4324 // omitted from API requests. See
4325 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4326 NullFields []string `json:"-"`
4327 }
4328
4329 func (s MinorVersion) MarshalJSON() ([]byte, error) {
4330 type NoMethod MinorVersion
4331 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4332 }
4333
4334 // OdbNetwork: Represents OdbNetwork resource.
4335 type OdbNetwork struct {
4336 // CreateTime: Output only. The date and time that the OdbNetwork was created.
4337 CreateTime string `json:"createTime,omitempty"`
4338 // EntitlementId: Output only. The ID of the subscription entitlement
4339 // associated with the OdbNetwork.
4340 EntitlementId string `json:"entitlementId,omitempty"`
4341 // GcpOracleZone: Optional. The GCP Oracle zone where OdbNetwork is hosted.
4342 // Example: us-east4-b-r2. If not specified, the system will pick a zone based
4343 // on availability.
4344 GcpOracleZone string `json:"gcpOracleZone,omitempty"`
4345 // Labels: Optional. Labels or tags associated with the resource.
4346 Labels map[string]string `json:"labels,omitempty"`
4347 // Name: Identifier. The name of the OdbNetwork resource in the following
4348 // format: projects/{project}/locations/{region}/odbNetworks/{odb_network}
4349 Name string `json:"name,omitempty"`
4350 // Network: Required. The name of the VPC network in the following format:
4351 // projects/{project}/global/networks/{network}
4352 Network string `json:"network,omitempty"`
4353 // State: Output only. State of the ODB Network.
4354 //
4355 // Possible values:
4356 // "STATE_UNSPECIFIED" - Default unspecified value.
4357 // "PROVISIONING" - Indicates that the resource is in provisioning state.
4358 // "AVAILABLE" - Indicates that the resource is in available state.
4359 // "TERMINATING" - Indicates that the resource is in terminating state.
4360 // "FAILED" - Indicates that the resource is in failed state.
4361 State string `json:"state,omitempty"`
4362
4363 // ServerResponse contains the HTTP response code and headers from the server.
4364 googleapi.ServerResponse `json:"-"`
4365 // ForceSendFields is a list of field names (e.g. "CreateTime") to
4366 // unconditionally include in API requests. By default, fields with empty or
4367 // default values are omitted from API requests. See
4368 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4369 // details.
4370 ForceSendFields []string `json:"-"`
4371 // NullFields is a list of field names (e.g. "CreateTime") to include in API
4372 // requests with the JSON null value. By default, fields with empty values are
4373 // omitted from API requests. See
4374 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4375 NullFields []string `json:"-"`
4376 }
4377
4378 func (s OdbNetwork) MarshalJSON() ([]byte, error) {
4379 type NoMethod OdbNetwork
4380 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4381 }
4382
4383 // OdbSubnet: Represents OdbSubnet resource.
4384 type OdbSubnet struct {
4385 // CidrRange: Required. The CIDR range of the subnet.
4386 CidrRange string `json:"cidrRange,omitempty"`
4387 // CreateTime: Output only. The date and time that the OdbNetwork was created.
4388 CreateTime string `json:"createTime,omitempty"`
4389 // Labels: Optional. Labels or tags associated with the resource.
4390 Labels map[string]string `json:"labels,omitempty"`
4391 // Name: Identifier. The name of the OdbSubnet resource in the following
4392 // format:
4393 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/
4394 // {odb_subnet}
4395 Name string `json:"name,omitempty"`
4396 // Purpose: Required. Purpose of the subnet.
4397 //
4398 // Possible values:
4399 // "PURPOSE_UNSPECIFIED" - Default unspecified value.
4400 // "CLIENT_SUBNET" - Subnet to be used for client connections.
4401 // "BACKUP_SUBNET" - Subnet to be used for backup.
4402 Purpose string `json:"purpose,omitempty"`
4403 // State: Output only. State of the ODB Subnet.
4404 //
4405 // Possible values:
4406 // "STATE_UNSPECIFIED" - Default unspecified value.
4407 // "PROVISIONING" - Indicates that the resource is in provisioning state.
4408 // "AVAILABLE" - Indicates that the resource is in available state.
4409 // "TERMINATING" - Indicates that the resource is in terminating state.
4410 // "FAILED" - Indicates that the resource is in failed state.
4411 State string `json:"state,omitempty"`
4412
4413 // ServerResponse contains the HTTP response code and headers from the server.
4414 googleapi.ServerResponse `json:"-"`
4415 // ForceSendFields is a list of field names (e.g. "CidrRange") to
4416 // unconditionally include in API requests. By default, fields with empty or
4417 // default values are omitted from API requests. See
4418 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4419 // details.
4420 ForceSendFields []string `json:"-"`
4421 // NullFields is a list of field names (e.g. "CidrRange") to include in API
4422 // requests with the JSON null value. By default, fields with empty values are
4423 // omitted from API requests. See
4424 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4425 NullFields []string `json:"-"`
4426 }
4427
4428 func (s OdbSubnet) MarshalJSON() ([]byte, error) {
4429 type NoMethod OdbSubnet
4430 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4431 }
4432
4433 // Operation: This resource represents a long-running operation that is the
4434 // result of a network API call.
4435 type Operation struct {
4436 // Done: If the value is `false`, it means the operation is still in progress.
4437 // If `true`, the operation is completed, and either `error` or `response` is
4438 // available.
4439 Done bool `json:"done,omitempty"`
4440 // Error: The error result of the operation in case of failure or cancellation.
4441 Error *Status `json:"error,omitempty"`
4442 // Metadata: Service-specific metadata associated with the operation. It
4443 // typically contains progress information and common metadata such as create
4444 // time. Some services might not provide such metadata. Any method that returns
4445 // a long-running operation should document the metadata type, if any.
4446 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
4447 // Name: The server-assigned name, which is only unique within the same service
4448 // that originally returns it. If you use the default HTTP mapping, the `name`
4449 // should be a resource name ending with `operations/{unique_id}`.
4450 Name string `json:"name,omitempty"`
4451 // Response: The normal, successful response of the operation. If the original
4452 // method returns no data on success, such as `Delete`, the response is
4453 // `google.protobuf.Empty`. If the original method is standard
4454 // `Get`/`Create`/`Update`, the response should be the resource. For other
4455 // methods, the response should have the type `XxxResponse`, where `Xxx` is the
4456 // original method name. For example, if the original method name is
4457 // `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
4458 Response googleapi.RawMessage `json:"response,omitempty"`
4459
4460 // ServerResponse contains the HTTP response code and headers from the server.
4461 googleapi.ServerResponse `json:"-"`
4462 // ForceSendFields is a list of field names (e.g. "Done") to unconditionally
4463 // include in API requests. By default, fields with empty or default values are
4464 // omitted from API requests. See
4465 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4466 // details.
4467 ForceSendFields []string `json:"-"`
4468 // NullFields is a list of field names (e.g. "Done") to include in API requests
4469 // with the JSON null value. By default, fields with empty values are omitted
4470 // from API requests. See
4471 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4472 NullFields []string `json:"-"`
4473 }
4474
4475 func (s Operation) MarshalJSON() ([]byte, error) {
4476 type NoMethod Operation
4477 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4478 }
4479
4480 // OperationMetadata: Represents the metadata of the long-running operation.
4481 type OperationMetadata struct {
4482 // ApiVersion: Output only. API version used to start the operation.
4483 ApiVersion string `json:"apiVersion,omitempty"`
4484 // CreateTime: Output only. The time the operation was created.
4485 CreateTime string `json:"createTime,omitempty"`
4486 // EndTime: Output only. The time the operation finished running.
4487 EndTime string `json:"endTime,omitempty"`
4488 // PercentComplete: Output only. An estimated percentage of the operation that
4489 // has been completed at a given moment of time, between 0 and 100.
4490 PercentComplete float64 `json:"percentComplete,omitempty"`
4491 // RequestedCancellation: Output only. Identifies whether the user has
4492 // requested cancellation of the operation. Operations that have been cancelled
4493 // successfully have Operation.error value with a google.rpc.Status.code of 1,
4494 // corresponding to `Code.CANCELLED`.
4495 RequestedCancellation bool `json:"requestedCancellation,omitempty"`
4496 // StatusMessage: Output only. The status of the operation.
4497 StatusMessage string `json:"statusMessage,omitempty"`
4498 // Target: Output only. Server-defined resource path for the target of the
4499 // operation.
4500 Target string `json:"target,omitempty"`
4501 // Verb: Output only. Name of the verb executed by the operation.
4502 Verb string `json:"verb,omitempty"`
4503 // ForceSendFields is a list of field names (e.g. "ApiVersion") to
4504 // unconditionally include in API requests. By default, fields with empty or
4505 // default values are omitted from API requests. See
4506 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4507 // details.
4508 ForceSendFields []string `json:"-"`
4509 // NullFields is a list of field names (e.g. "ApiVersion") to include in API
4510 // requests with the JSON null value. By default, fields with empty values are
4511 // omitted from API requests. See
4512 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4513 NullFields []string `json:"-"`
4514 }
4515
4516 func (s OperationMetadata) MarshalJSON() ([]byte, error) {
4517 type NoMethod OperationMetadata
4518 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4519 }
4520
4521 func (s *OperationMetadata) UnmarshalJSON(data []byte) error {
4522 type NoMethod OperationMetadata
4523 var s1 struct {
4524 PercentComplete gensupport.JSONFloat64 `json:"percentComplete"`
4525 *NoMethod
4526 }
4527 s1.NoMethod = (*NoMethod)(s)
4528 if err := json.Unmarshal(data, &s1); err != nil {
4529 return err
4530 }
4531 s.PercentComplete = float64(s1.PercentComplete)
4532 return nil
4533 }
4534
4535 // PluggableDatabase: The PluggableDatabase resource.
4536 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/
4537 type PluggableDatabase struct {
4538 // CreateTime: Output only. The date and time that the PluggableDatabase was
4539 // created.
4540 CreateTime string `json:"createTime,omitempty"`
4541 // Name: Identifier. The name of the PluggableDatabase resource in the
4542 // following format:
4543 // projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}
4544 Name string `json:"name,omitempty"`
4545 // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI
4546 // Interface.
4547 OciUrl string `json:"ociUrl,omitempty"`
4548 // Properties: Optional. The properties of the PluggableDatabase.
4549 Properties *PluggableDatabaseProperties `json:"properties,omitempty"`
4550
4551 // ServerResponse contains the HTTP response code and headers from the server.
4552 googleapi.ServerResponse `json:"-"`
4553 // ForceSendFields is a list of field names (e.g. "CreateTime") to
4554 // unconditionally include in API requests. By default, fields with empty or
4555 // default values are omitted from API requests. See
4556 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4557 // details.
4558 ForceSendFields []string `json:"-"`
4559 // NullFields is a list of field names (e.g. "CreateTime") to include in API
4560 // requests with the JSON null value. By default, fields with empty values are
4561 // omitted from API requests. See
4562 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4563 NullFields []string `json:"-"`
4564 }
4565
4566 func (s PluggableDatabase) MarshalJSON() ([]byte, error) {
4567 type NoMethod PluggableDatabase
4568 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4569 }
4570
4571 // PluggableDatabaseConnectionStrings: The connection strings used to connect
4572 // to the Oracle Database.
4573 type PluggableDatabaseConnectionStrings struct {
4574 // AllConnectionStrings: Optional. All connection strings to use to connect to
4575 // the pluggable database.
4576 AllConnectionStrings map[string]string `json:"allConnectionStrings,omitempty"`
4577 // PdbDefault: Optional. The default connection string to use to connect to the
4578 // pluggable database.
4579 PdbDefault string `json:"pdbDefault,omitempty"`
4580 // PdbIpDefault: Optional. The default connection string to use to connect to
4581 // the pluggable database using IP.
4582 PdbIpDefault string `json:"pdbIpDefault,omitempty"`
4583 // ForceSendFields is a list of field names (e.g. "AllConnectionStrings") to
4584 // unconditionally include in API requests. By default, fields with empty or
4585 // default values are omitted from API requests. See
4586 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4587 // details.
4588 ForceSendFields []string `json:"-"`
4589 // NullFields is a list of field names (e.g. "AllConnectionStrings") to include
4590 // in API requests with the JSON null value. By default, fields with empty
4591 // values are omitted from API requests. See
4592 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4593 NullFields []string `json:"-"`
4594 }
4595
4596 func (s PluggableDatabaseConnectionStrings) MarshalJSON() ([]byte, error) {
4597 type NoMethod PluggableDatabaseConnectionStrings
4598 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4599 }
4600
4601 // PluggableDatabaseNodeLevelDetails: The Pluggable Database Node Level
4602 // Details.
4603 type PluggableDatabaseNodeLevelDetails struct {
4604 // NodeName: Required. The Node name of the Database home.
4605 NodeName string `json:"nodeName,omitempty"`
4606 // OpenMode: Required. The mode that the pluggable database is in to open it.
4607 //
4608 // Possible values:
4609 // "PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED" - The open mode is unspecified.
4610 // "READ_ONLY" - The pluggable database is opened in read-only mode.
4611 // "READ_WRITE" - The pluggable database is opened in read-write mode.
4612 // "MOUNTED" - The pluggable database is mounted.
4613 // "MIGRATE" - The pluggable database is migrated.
4614 OpenMode string `json:"openMode,omitempty"`
4615 // PluggableDatabaseId: Required. The OCID of the Pluggable Database.
4616 PluggableDatabaseId string `json:"pluggableDatabaseId,omitempty"`
4617 // ForceSendFields is a list of field names (e.g. "NodeName") to
4618 // unconditionally include in API requests. By default, fields with empty or
4619 // default values are omitted from API requests. See
4620 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4621 // details.
4622 ForceSendFields []string `json:"-"`
4623 // NullFields is a list of field names (e.g. "NodeName") to include in API
4624 // requests with the JSON null value. By default, fields with empty values are
4625 // omitted from API requests. See
4626 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4627 NullFields []string `json:"-"`
4628 }
4629
4630 func (s PluggableDatabaseNodeLevelDetails) MarshalJSON() ([]byte, error) {
4631 type NoMethod PluggableDatabaseNodeLevelDetails
4632 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4633 }
4634
4635 // PluggableDatabaseProperties: The properties of a PluggableDatabase.
4636 type PluggableDatabaseProperties struct {
4637 // CompartmentId: Required. The OCID of the compartment.
4638 CompartmentId string `json:"compartmentId,omitempty"`
4639 // ConnectionStrings: Optional. The Connection strings used to connect to the
4640 // Oracle Database.
4641 ConnectionStrings *PluggableDatabaseConnectionStrings `json:"connectionStrings,omitempty"`
4642 // ContainerDatabaseOcid: Required. The OCID of the CDB.
4643 ContainerDatabaseOcid string `json:"containerDatabaseOcid,omitempty"`
4644 // DatabaseManagementConfig: Output only. The configuration of the Database
4645 // Management service.
4646 DatabaseManagementConfig *DatabaseManagementConfig `json:"databaseManagementConfig,omitempty"`
4647 // DefinedTags: Optional. Defined tags for this resource. Each key is
4648 // predefined and scoped to a namespace.
4649 DefinedTags map[string]DefinedTagValue `json:"definedTags,omitempty"`
4650 // FreeformTags: Optional. Free-form tags for this resource. Each tag is a
4651 // simple key-value pair with no predefined name, type, or namespace.
4652 FreeformTags map[string]string `json:"freeformTags,omitempty"`
4653 // IsRestricted: Optional. The restricted mode of the pluggable database. If a
4654 // pluggable database is opened in restricted mode, the user needs both create
4655 // a session and have restricted session privileges to connect to it.
4656 IsRestricted bool `json:"isRestricted,omitempty"`
4657 // LifecycleDetails: Output only. Additional information about the current
4658 // lifecycle state.
4659 LifecycleDetails string `json:"lifecycleDetails,omitempty"`
4660 // LifecycleState: Output only. The current state of the pluggable database.
4661 //
4662 // Possible values:
4663 // "PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED" - The lifecycle state is
4664 // unspecified.
4665 // "PROVISIONING" - The pluggable database is provisioning.
4666 // "AVAILABLE" - The pluggable database is available.
4667 // "TERMINATING" - The pluggable database is terminating.
4668 // "TERMINATED" - The pluggable database is terminated.
4669 // "UPDATING" - The pluggable database is updating.
4670 // "FAILED" - The pluggable database is in a failed state.
4671 // "RELOCATING" - The pluggable database is relocating.
4672 // "RELOCATED" - The pluggable database is relocated.
4673 // "REFRESHING" - The pluggable database is refreshing.
4674 // "RESTORE_IN_PROGRESS" - The pluggable database is restoring.
4675 // "RESTORE_FAILED" - The pluggable database restore failed.
4676 // "BACKUP_IN_PROGRESS" - The pluggable database is backing up.
4677 // "DISABLED" - The pluggable database is disabled.
4678 LifecycleState string `json:"lifecycleState,omitempty"`
4679 // Ocid: Output only. The OCID of the pluggable database.
4680 Ocid string `json:"ocid,omitempty"`
4681 // OperationsInsightsState: Output only. The status of Operations Insights for
4682 // this Database.
4683 //
4684 // Possible values:
4685 // "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" - The status is not specified.
4686 // "ENABLING" - Operations Insights is enabling.
4687 // "ENABLED" - Operations Insights is enabled.
4688 // "DISABLING" - Operations Insights is disabling.
4689 // "NOT_ENABLED" - Operations Insights is not enabled.
4690 // "FAILED_ENABLING" - Operations Insights failed to enable.
4691 // "FAILED_DISABLING" - Operations Insights failed to disable.
4692 OperationsInsightsState string `json:"operationsInsightsState,omitempty"`
4693 // PdbName: Required. The database name.
4694 PdbName string `json:"pdbName,omitempty"`
4695 // PdbNodeLevelDetails: Optional. Pluggable Database Node Level Details
4696 PdbNodeLevelDetails []*PluggableDatabaseNodeLevelDetails `json:"pdbNodeLevelDetails,omitempty"`
4697 // ForceSendFields is a list of field names (e.g. "CompartmentId") to
4698 // unconditionally include in API requests. By default, fields with empty or
4699 // default values are omitted from API requests. See
4700 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4701 // details.
4702 ForceSendFields []string `json:"-"`
4703 // NullFields is a list of field names (e.g. "CompartmentId") to include in API
4704 // requests with the JSON null value. By default, fields with empty values are
4705 // omitted from API requests. See
4706 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4707 NullFields []string `json:"-"`
4708 }
4709
4710 func (s PluggableDatabaseProperties) MarshalJSON() ([]byte, error) {
4711 type NoMethod PluggableDatabaseProperties
4712 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4713 }
4714
4715 // RemoveVirtualMachineExadbVmClusterRequest: The request for
4716 // `ExadbVmCluster.RemoveVirtualMachine`.
4717 type RemoveVirtualMachineExadbVmClusterRequest struct {
4718 // Hostnames: Required. The list of host names of db nodes to be removed from
4719 // the ExadbVmCluster.
4720 Hostnames []string `json:"hostnames,omitempty"`
4721 // RequestId: Optional. An optional ID to identify the request. This value is
4722 // used to identify duplicate requests. If you make a request with the same
4723 // request ID and the original request is still in progress or completed, the
4724 // server ignores the second request. This prevents clients from accidentally
4725 // creating duplicate commitments. The request ID must be a valid UUID with the
4726 // exception that zero UUID is not supported
4727 // (00000000-0000-0000-0000-000000000000).
4728 RequestId string `json:"requestId,omitempty"`
4729 // ForceSendFields is a list of field names (e.g. "Hostnames") to
4730 // unconditionally include in API requests. By default, fields with empty or
4731 // default values are omitted from API requests. See
4732 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4733 // details.
4734 ForceSendFields []string `json:"-"`
4735 // NullFields is a list of field names (e.g. "Hostnames") to include in API
4736 // requests with the JSON null value. By default, fields with empty values are
4737 // omitted from API requests. See
4738 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4739 NullFields []string `json:"-"`
4740 }
4741
4742 func (s RemoveVirtualMachineExadbVmClusterRequest) MarshalJSON() ([]byte, error) {
4743 type NoMethod RemoveVirtualMachineExadbVmClusterRequest
4744 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4745 }
4746
4747 // RestartAutonomousDatabaseRequest: The request for
4748 // `AutonomousDatabase.Restart`.
4749 type RestartAutonomousDatabaseRequest struct {
4750 }
4751
4752 // RestoreAutonomousDatabaseRequest: The request for
4753 // `AutonomousDatabase.Restore`.
4754 type RestoreAutonomousDatabaseRequest struct {
4755 // RestoreTime: Required. The time and date to restore the database to.
4756 RestoreTime string `json:"restoreTime,omitempty"`
4757 // ForceSendFields is a list of field names (e.g. "RestoreTime") to
4758 // unconditionally include in API requests. By default, fields with empty or
4759 // default values are omitted from API requests. See
4760 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4761 // details.
4762 ForceSendFields []string `json:"-"`
4763 // NullFields is a list of field names (e.g. "RestoreTime") to include in API
4764 // requests with the JSON null value. By default, fields with empty values are
4765 // omitted from API requests. See
4766 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4767 NullFields []string `json:"-"`
4768 }
4769
4770 func (s RestoreAutonomousDatabaseRequest) MarshalJSON() ([]byte, error) {
4771 type NoMethod RestoreAutonomousDatabaseRequest
4772 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4773 }
4774
4775 // ScheduledOperationDetails: Details of scheduled operation.
4776 // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails
4777 type ScheduledOperationDetails struct {
4778 // DayOfWeek: Output only. Day of week.
4779 //
4780 // Possible values:
4781 // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified.
4782 // "MONDAY" - Monday
4783 // "TUESDAY" - Tuesday
4784 // "WEDNESDAY" - Wednesday
4785 // "THURSDAY" - Thursday
4786 // "FRIDAY" - Friday
4787 // "SATURDAY" - Saturday
4788 // "SUNDAY" - Sunday
4789 DayOfWeek string `json:"dayOfWeek,omitempty"`
4790 // StartTime: Output only. Auto start time.
4791 StartTime *TimeOfDay `json:"startTime,omitempty"`
4792 // StopTime: Output only. Auto stop time.
4793 StopTime *TimeOfDay `json:"stopTime,omitempty"`
4794 // ForceSendFields is a list of field names (e.g. "DayOfWeek") to
4795 // unconditionally include in API requests. By default, fields with empty or
4796 // default values are omitted from API requests. See
4797 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4798 // details.
4799 ForceSendFields []string `json:"-"`
4800 // NullFields is a list of field names (e.g. "DayOfWeek") to include in API
4801 // requests with the JSON null value. By default, fields with empty values are
4802 // omitted from API requests. See
4803 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4804 NullFields []string `json:"-"`
4805 }
4806
4807 func (s ScheduledOperationDetails) MarshalJSON() ([]byte, error) {
4808 type NoMethod ScheduledOperationDetails
4809 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4810 }
4811
4812 // SourceConfig: The source configuration for the standby Autonomous Database.
4813 type SourceConfig struct {
4814 // AutomaticBackupsReplicationEnabled: Optional. This field specifies if the
4815 // replication of automatic backups is enabled when creating a Data Guard.
4816 AutomaticBackupsReplicationEnabled bool `json:"automaticBackupsReplicationEnabled,omitempty"`
4817 // AutonomousDatabase: Optional. The name of the primary Autonomous Database
4818 // that is used to create a Peer Autonomous Database from a source.
4819 AutonomousDatabase string `json:"autonomousDatabase,omitempty"`
4820 // ForceSendFields is a list of field names (e.g.
4821 // "AutomaticBackupsReplicationEnabled") to unconditionally include in API
4822 // requests. By default, fields with empty or default values are omitted from
4823 // API requests. See
4824 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4825 // details.
4826 ForceSendFields []string `json:"-"`
4827 // NullFields is a list of field names (e.g.
4828 // "AutomaticBackupsReplicationEnabled") to include in API requests with the
4829 // JSON null value. By default, fields with empty values are omitted from API
4830 // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
4831 // more details.
4832 NullFields []string `json:"-"`
4833 }
4834
4835 func (s SourceConfig) MarshalJSON() ([]byte, error) {
4836 type NoMethod SourceConfig
4837 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4838 }
4839
4840 // StartAutonomousDatabaseRequest: The request for `AutonomousDatabase.Start`.
4841 type StartAutonomousDatabaseRequest struct {
4842 }
4843
4844 // Status: The `Status` type defines a logical error model that is suitable for
4845 // different programming environments, including REST APIs and RPC APIs. It is
4846 // used by gRPC (https://github.com/grpc). Each `Status` message contains three
4847 // pieces of data: error code, error message, and error details. You can find
4848 // out more about this error model and how to work with it in the API Design
4849 // Guide (https://cloud.google.com/apis/design/errors).
4850 type Status struct {
4851 // Code: The status code, which should be an enum value of google.rpc.Code.
4852 Code int64 `json:"code,omitempty"`
4853 // Details: A list of messages that carry the error details. There is a common
4854 // set of message types for APIs to use.
4855 Details []googleapi.RawMessage `json:"details,omitempty"`
4856 // Message: A developer-facing error message, which should be in English. Any
4857 // user-facing error message should be localized and sent in the
4858 // google.rpc.Status.details field, or localized by the client.
4859 Message string `json:"message,omitempty"`
4860 // ForceSendFields is a list of field names (e.g. "Code") to unconditionally
4861 // include in API requests. By default, fields with empty or default values are
4862 // omitted from API requests. See
4863 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4864 // details.
4865 ForceSendFields []string `json:"-"`
4866 // NullFields is a list of field names (e.g. "Code") to include in API requests
4867 // with the JSON null value. By default, fields with empty values are omitted
4868 // from API requests. See
4869 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4870 NullFields []string `json:"-"`
4871 }
4872
4873 func (s Status) MarshalJSON() ([]byte, error) {
4874 type NoMethod Status
4875 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4876 }
4877
4878 // StopAutonomousDatabaseRequest: The request for `AutonomousDatabase.Stop`.
4879 type StopAutonomousDatabaseRequest struct {
4880 }
4881
4882 // StorageSizeDetails: The initial storage size, in gigabytes, that is
4883 // applicable for virtual machine DBSystem.
4884 type StorageSizeDetails struct {
4885 // DataStorageSizeInGbs: Output only. The data storage size, in gigabytes, that
4886 // is applicable for virtual machine DBSystem.
4887 DataStorageSizeInGbs int64 `json:"dataStorageSizeInGbs,omitempty"`
4888 // RecoStorageSizeInGbs: Output only. The RECO/REDO storage size, in gigabytes,
4889 // that is applicable for virtual machine DBSystem.
4890 RecoStorageSizeInGbs int64 `json:"recoStorageSizeInGbs,omitempty"`
4891 // ForceSendFields is a list of field names (e.g. "DataStorageSizeInGbs") to
4892 // unconditionally include in API requests. By default, fields with empty or
4893 // default values are omitted from API requests. See
4894 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4895 // details.
4896 ForceSendFields []string `json:"-"`
4897 // NullFields is a list of field names (e.g. "DataStorageSizeInGbs") to include
4898 // in API requests with the JSON null value. By default, fields with empty
4899 // values are omitted from API requests. See
4900 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4901 NullFields []string `json:"-"`
4902 }
4903
4904 func (s StorageSizeDetails) MarshalJSON() ([]byte, error) {
4905 type NoMethod StorageSizeDetails
4906 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4907 }
4908
4909 // SwitchoverAutonomousDatabaseRequest: The request for
4910 // `OracleDatabase.SwitchoverAutonomousDatabase`.
4911 type SwitchoverAutonomousDatabaseRequest struct {
4912 // PeerAutonomousDatabase: Optional. The peer database name to switch over to.
4913 // Required for cross-region standby, and must be omitted for in-region Data
4914 // Guard.
4915 PeerAutonomousDatabase string `json:"peerAutonomousDatabase,omitempty"`
4916 // ForceSendFields is a list of field names (e.g. "PeerAutonomousDatabase") to
4917 // unconditionally include in API requests. By default, fields with empty or
4918 // default values are omitted from API requests. See
4919 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4920 // details.
4921 ForceSendFields []string `json:"-"`
4922 // NullFields is a list of field names (e.g. "PeerAutonomousDatabase") to
4923 // include in API requests with the JSON null value. By default, fields with
4924 // empty values are omitted from API requests. See
4925 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4926 NullFields []string `json:"-"`
4927 }
4928
4929 func (s SwitchoverAutonomousDatabaseRequest) MarshalJSON() ([]byte, error) {
4930 type NoMethod SwitchoverAutonomousDatabaseRequest
4931 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4932 }
4933
4934 // TimeOfDay: Represents a time of day. The date and time zone are either not
4935 // significant or are specified elsewhere. An API may choose to allow leap
4936 // seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.
4937 type TimeOfDay struct {
4938 // Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0
4939 // and typically must be less than or equal to 23. An API may choose to allow
4940 // the value "24:00:00" for scenarios like business closing time.
4941 Hours int64 `json:"hours,omitempty"`
4942 // Minutes: Minutes of an hour. Must be greater than or equal to 0 and less
4943 // than or equal to 59.
4944 Minutes int64 `json:"minutes,omitempty"`
4945 // Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal
4946 // to 0 and less than or equal to 999,999,999.
4947 Nanos int64 `json:"nanos,omitempty"`
4948 // Seconds: Seconds of a minute. Must be greater than or equal to 0 and
4949 // typically must be less than or equal to 59. An API may allow the value 60 if
4950 // it allows leap-seconds.
4951 Seconds int64 `json:"seconds,omitempty"`
4952 // ForceSendFields is a list of field names (e.g. "Hours") to unconditionally
4953 // include in API requests. By default, fields with empty or default values are
4954 // omitted from API requests. See
4955 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4956 // details.
4957 ForceSendFields []string `json:"-"`
4958 // NullFields is a list of field names (e.g. "Hours") to include in API
4959 // requests with the JSON null value. By default, fields with empty values are
4960 // omitted from API requests. See
4961 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4962 NullFields []string `json:"-"`
4963 }
4964
4965 func (s TimeOfDay) MarshalJSON() ([]byte, error) {
4966 type NoMethod TimeOfDay
4967 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4968 }
4969
4970 // TimeZone: Represents a time zone from the IANA Time Zone Database
4971 // (https://www.iana.org/time-zones).
4972 type TimeZone struct {
4973 // Id: IANA Time Zone Database time zone. For example "America/New_York".
4974 Id string `json:"id,omitempty"`
4975 // Version: Optional. IANA Time Zone Database version number. For example
4976 // "2019a".
4977 Version string `json:"version,omitempty"`
4978 // ForceSendFields is a list of field names (e.g. "Id") to unconditionally
4979 // include in API requests. By default, fields with empty or default values are
4980 // omitted from API requests. See
4981 // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
4982 // details.
4983 ForceSendFields []string `json:"-"`
4984 // NullFields is a list of field names (e.g. "Id") to include in API requests
4985 // with the JSON null value. By default, fields with empty values are omitted
4986 // from API requests. See
4987 // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
4988 NullFields []string `json:"-"`
4989 }
4990
4991 func (s TimeZone) MarshalJSON() ([]byte, error) {
4992 type NoMethod TimeZone
4993 return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields)
4994 }
4995
4996 type ProjectsLocationsGetCall struct {
4997 s *Service
4998 name string
4999 urlParams_ gensupport.URLParams
5000 ifNoneMatch_ string
5001 ctx_ context.Context
5002 header_ http.Header
5003 }
5004
5005 // Get: Gets information about a location.
5006 //
5007 // - name: Resource name for the location.
5008 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
5009 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5010 c.name = name
5011 return c
5012 }
5013
5014 // Fields allows partial responses to be retrieved. See
5015 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5016 // details.
5017 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
5018 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5019 return c
5020 }
5021
5022 // IfNoneMatch sets an optional parameter which makes the operation fail if the
5023 // object's ETag matches the given value. This is useful for getting updates
5024 // only after the object has changed since the last request.
5025 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
5026 c.ifNoneMatch_ = entityTag
5027 return c
5028 }
5029
5030 // Context sets the context to be used in this call's Do method.
5031 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
5032 c.ctx_ = ctx
5033 return c
5034 }
5035
5036 // Header returns a http.Header that can be modified by the caller to add
5037 // headers to the request.
5038 func (c *ProjectsLocationsGetCall) Header() http.Header {
5039 if c.header_ == nil {
5040 c.header_ = make(http.Header)
5041 }
5042 return c.header_
5043 }
5044
5045 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
5046 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5047 if c.ifNoneMatch_ != "" {
5048 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5049 }
5050 c.urlParams_.Set("alt", alt)
5051 c.urlParams_.Set("prettyPrint", "false")
5052 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5053 urls += "?" + c.urlParams_.Encode()
5054 req, err := http.NewRequest("GET", urls, nil)
5055 if err != nil {
5056 return nil, err
5057 }
5058 req.Header = reqHeaders
5059 googleapi.Expand(req.URL, map[string]string{
5060 "name": c.name,
5061 })
5062 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.get", "request", internallog.HTTPRequest(req, nil))
5063 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5064 }
5065
5066 // Do executes the "oracledatabase.projects.locations.get" call.
5067 // Any non-2xx status code is an error. Response headers are in either
5068 // *Location.ServerResponse.Header or (if a response was returned at all) in
5069 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5070 // whether the returned error was because http.StatusNotModified was returned.
5071 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
5072 gensupport.SetOptions(c.urlParams_, opts...)
5073 res, err := c.doRequest("json")
5074 if res != nil && res.StatusCode == http.StatusNotModified {
5075 if res.Body != nil {
5076 res.Body.Close()
5077 }
5078 return nil, gensupport.WrapError(&googleapi.Error{
5079 Code: res.StatusCode,
5080 Header: res.Header,
5081 })
5082 }
5083 if err != nil {
5084 return nil, err
5085 }
5086 defer googleapi.CloseBody(res)
5087 if err := googleapi.CheckResponse(res); err != nil {
5088 return nil, gensupport.WrapError(err)
5089 }
5090 ret := &Location{
5091 ServerResponse: googleapi.ServerResponse{
5092 Header: res.Header,
5093 HTTPStatusCode: res.StatusCode,
5094 },
5095 }
5096 target := &ret
5097 b, err := gensupport.DecodeResponseBytes(target, res)
5098 if err != nil {
5099 return nil, err
5100 }
5101 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.get", "response", internallog.HTTPResponse(res, b))
5102 return ret, nil
5103 }
5104
5105 type ProjectsLocationsListCall struct {
5106 s *Service
5107 name string
5108 urlParams_ gensupport.URLParams
5109 ifNoneMatch_ string
5110 ctx_ context.Context
5111 header_ http.Header
5112 }
5113
5114 // List: Lists information about the supported locations for this service. This
5115 // method lists locations based on the resource scope provided in the
5116 // [ListLocationsRequest.name] field: * **Global locations**: If `name` is
5117 // empty, the method lists the public locations available to all projects. *
5118 // **Project-specific locations**: If `name` follows the format
5119 // `projects/{project}`, the method lists locations visible to that specific
5120 // project. This includes public, private, or other project-specific locations
5121 // enabled for the project. For gRPC and client library implementations, the
5122 // resource name is passed as the `name` field. For direct service calls, the
5123 // resource name is incorporated into the request path based on the specific
5124 // service implementation and version.
5125 //
5126 // - name: The resource that owns the locations collection, if applicable.
5127 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
5128 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5129 c.name = name
5130 return c
5131 }
5132
5133 // ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not
5134 // use this field. It is unsupported and is ignored unless explicitly
5135 // documented otherwise. This is primarily for internal usage.
5136 func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall {
5137 c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...))
5138 return c
5139 }
5140
5141 // Filter sets the optional parameter "filter": A filter to narrow down results
5142 // to a preferred subset. The filtering language accepts strings like
5143 // "displayName=tokyo", and is documented in more detail in AIP-160
5144 // (https://google.aip.dev/160).
5145 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
5146 c.urlParams_.Set("filter", filter)
5147 return c
5148 }
5149
5150 // PageSize sets the optional parameter "pageSize": The maximum number of
5151 // results to return. If not set, the service selects a default.
5152 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
5153 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5154 return c
5155 }
5156
5157 // PageToken sets the optional parameter "pageToken": A page token received
5158 // from the `next_page_token` field in the response. Send that page token to
5159 // receive the subsequent page.
5160 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
5161 c.urlParams_.Set("pageToken", pageToken)
5162 return c
5163 }
5164
5165 // Fields allows partial responses to be retrieved. See
5166 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5167 // details.
5168 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
5169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5170 return c
5171 }
5172
5173 // IfNoneMatch sets an optional parameter which makes the operation fail if the
5174 // object's ETag matches the given value. This is useful for getting updates
5175 // only after the object has changed since the last request.
5176 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
5177 c.ifNoneMatch_ = entityTag
5178 return c
5179 }
5180
5181 // Context sets the context to be used in this call's Do method.
5182 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
5183 c.ctx_ = ctx
5184 return c
5185 }
5186
5187 // Header returns a http.Header that can be modified by the caller to add
5188 // headers to the request.
5189 func (c *ProjectsLocationsListCall) Header() http.Header {
5190 if c.header_ == nil {
5191 c.header_ = make(http.Header)
5192 }
5193 return c.header_
5194 }
5195
5196 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
5197 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5198 if c.ifNoneMatch_ != "" {
5199 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5200 }
5201 c.urlParams_.Set("alt", alt)
5202 c.urlParams_.Set("prettyPrint", "false")
5203 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
5204 urls += "?" + c.urlParams_.Encode()
5205 req, err := http.NewRequest("GET", urls, nil)
5206 if err != nil {
5207 return nil, err
5208 }
5209 req.Header = reqHeaders
5210 googleapi.Expand(req.URL, map[string]string{
5211 "name": c.name,
5212 })
5213 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.list", "request", internallog.HTTPRequest(req, nil))
5214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5215 }
5216
5217 // Do executes the "oracledatabase.projects.locations.list" call.
5218 // Any non-2xx status code is an error. Response headers are in either
5219 // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
5220 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5221 // check whether the returned error was because http.StatusNotModified was
5222 // returned.
5223 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
5224 gensupport.SetOptions(c.urlParams_, opts...)
5225 res, err := c.doRequest("json")
5226 if res != nil && res.StatusCode == http.StatusNotModified {
5227 if res.Body != nil {
5228 res.Body.Close()
5229 }
5230 return nil, gensupport.WrapError(&googleapi.Error{
5231 Code: res.StatusCode,
5232 Header: res.Header,
5233 })
5234 }
5235 if err != nil {
5236 return nil, err
5237 }
5238 defer googleapi.CloseBody(res)
5239 if err := googleapi.CheckResponse(res); err != nil {
5240 return nil, gensupport.WrapError(err)
5241 }
5242 ret := &ListLocationsResponse{
5243 ServerResponse: googleapi.ServerResponse{
5244 Header: res.Header,
5245 HTTPStatusCode: res.StatusCode,
5246 },
5247 }
5248 target := &ret
5249 b, err := gensupport.DecodeResponseBytes(target, res)
5250 if err != nil {
5251 return nil, err
5252 }
5253 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.list", "response", internallog.HTTPResponse(res, b))
5254 return ret, nil
5255 }
5256
5257 // Pages invokes f for each page of results.
5258 // A non-nil error returned from f will halt the iteration.
5259 // The provided context supersedes any context provided to the Context method.
5260 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
5261 c.ctx_ = ctx
5262 defer c.PageToken(c.urlParams_.Get("pageToken"))
5263 for {
5264 x, err := c.Do()
5265 if err != nil {
5266 return err
5267 }
5268 if err := f(x); err != nil {
5269 return err
5270 }
5271 if x.NextPageToken == "" {
5272 return nil
5273 }
5274 c.PageToken(x.NextPageToken)
5275 }
5276 }
5277
5278 type ProjectsLocationsAutonomousDatabaseBackupsListCall struct {
5279 s *Service
5280 parent string
5281 urlParams_ gensupport.URLParams
5282 ifNoneMatch_ string
5283 ctx_ context.Context
5284 header_ http.Header
5285 }
5286
5287 // List: Lists the long-term and automatic backups of an Autonomous Database.
5288 //
5289 // - parent: The parent value for ListAutonomousDatabaseBackups in the
5290 // following format: projects/{project}/locations/{location}.
5291 func (r *ProjectsLocationsAutonomousDatabaseBackupsService) List(parent string) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5292 c := &ProjectsLocationsAutonomousDatabaseBackupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5293 c.parent = parent
5294 return c
5295 }
5296
5297 // Filter sets the optional parameter "filter": An expression for filtering the
5298 // results of the request. Only the **autonomous_database_id** field is
5299 // supported in the following format:
5300 // `autonomous_database_id="{autonomous_database_id}". The accepted values
5301 // must be a valid Autonomous Database ID, limited to the naming restrictions
5302 // of the ID: ^a-z ([a-z0-9-]{0,61}[a-z0-9])?$). The ID must start with a
5303 // letter, end with a letter or a number, and be a maximum of 63 characters.
5304 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5305 c.urlParams_.Set("filter", filter)
5306 return c
5307 }
5308
5309 // PageSize sets the optional parameter "pageSize": The maximum number of items
5310 // to return. If unspecified, at most 50 Autonomous DB Backups will be
5311 // returned. The maximum value is 1000; values above 1000 will be coerced to
5312 // 1000.
5313 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5314 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5315 return c
5316 }
5317
5318 // PageToken sets the optional parameter "pageToken": A token identifying a
5319 // page of results the server should return.
5320 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5321 c.urlParams_.Set("pageToken", pageToken)
5322 return c
5323 }
5324
5325 // Fields allows partial responses to be retrieved. See
5326 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5327 // details.
5328 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5329 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5330 return c
5331 }
5332
5333 // IfNoneMatch sets an optional parameter which makes the operation fail if the
5334 // object's ETag matches the given value. This is useful for getting updates
5335 // only after the object has changed since the last request.
5336 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5337 c.ifNoneMatch_ = entityTag
5338 return c
5339 }
5340
5341 // Context sets the context to be used in this call's Do method.
5342 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabaseBackupsListCall {
5343 c.ctx_ = ctx
5344 return c
5345 }
5346
5347 // Header returns a http.Header that can be modified by the caller to add
5348 // headers to the request.
5349 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Header() http.Header {
5350 if c.header_ == nil {
5351 c.header_ = make(http.Header)
5352 }
5353 return c.header_
5354 }
5355
5356 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) doRequest(alt string) (*http.Response, error) {
5357 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5358 if c.ifNoneMatch_ != "" {
5359 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5360 }
5361 c.urlParams_.Set("alt", alt)
5362 c.urlParams_.Set("prettyPrint", "false")
5363 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabaseBackups")
5364 urls += "?" + c.urlParams_.Encode()
5365 req, err := http.NewRequest("GET", urls, nil)
5366 if err != nil {
5367 return nil, err
5368 }
5369 req.Header = reqHeaders
5370 googleapi.Expand(req.URL, map[string]string{
5371 "parent": c.parent,
5372 })
5373 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabaseBackups.list", "request", internallog.HTTPRequest(req, nil))
5374 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5375 }
5376
5377 // Do executes the "oracledatabase.projects.locations.autonomousDatabaseBackups.list" call.
5378 // Any non-2xx status code is an error. Response headers are in either
5379 // *ListAutonomousDatabaseBackupsResponse.ServerResponse.Header or (if a
5380 // response was returned at all) in error.(*googleapi.Error).Header. Use
5381 // googleapi.IsNotModified to check whether the returned error was because
5382 // http.StatusNotModified was returned.
5383 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabaseBackupsResponse, error) {
5384 gensupport.SetOptions(c.urlParams_, opts...)
5385 res, err := c.doRequest("json")
5386 if res != nil && res.StatusCode == http.StatusNotModified {
5387 if res.Body != nil {
5388 res.Body.Close()
5389 }
5390 return nil, gensupport.WrapError(&googleapi.Error{
5391 Code: res.StatusCode,
5392 Header: res.Header,
5393 })
5394 }
5395 if err != nil {
5396 return nil, err
5397 }
5398 defer googleapi.CloseBody(res)
5399 if err := googleapi.CheckResponse(res); err != nil {
5400 return nil, gensupport.WrapError(err)
5401 }
5402 ret := &ListAutonomousDatabaseBackupsResponse{
5403 ServerResponse: googleapi.ServerResponse{
5404 Header: res.Header,
5405 HTTPStatusCode: res.StatusCode,
5406 },
5407 }
5408 target := &ret
5409 b, err := gensupport.DecodeResponseBytes(target, res)
5410 if err != nil {
5411 return nil, err
5412 }
5413 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabaseBackups.list", "response", internallog.HTTPResponse(res, b))
5414 return ret, nil
5415 }
5416
5417 // Pages invokes f for each page of results.
5418 // A non-nil error returned from f will halt the iteration.
5419 // The provided context supersedes any context provided to the Context method.
5420 func (c *ProjectsLocationsAutonomousDatabaseBackupsListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabaseBackupsResponse) error) error {
5421 c.ctx_ = ctx
5422 defer c.PageToken(c.urlParams_.Get("pageToken"))
5423 for {
5424 x, err := c.Do()
5425 if err != nil {
5426 return err
5427 }
5428 if err := f(x); err != nil {
5429 return err
5430 }
5431 if x.NextPageToken == "" {
5432 return nil
5433 }
5434 c.PageToken(x.NextPageToken)
5435 }
5436 }
5437
5438 type ProjectsLocationsAutonomousDatabaseCharacterSetsListCall struct {
5439 s *Service
5440 parent string
5441 urlParams_ gensupport.URLParams
5442 ifNoneMatch_ string
5443 ctx_ context.Context
5444 header_ http.Header
5445 }
5446
5447 // List: Lists Autonomous Database Character Sets in a given project and
5448 // location.
5449 //
5450 // - parent: The parent value for the Autonomous Database in the following
5451 // format: projects/{project}/locations/{location}.
5452 func (r *ProjectsLocationsAutonomousDatabaseCharacterSetsService) List(parent string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5453 c := &ProjectsLocationsAutonomousDatabaseCharacterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5454 c.parent = parent
5455 return c
5456 }
5457
5458 // Filter sets the optional parameter "filter": An expression for filtering the
5459 // results of the request. Only the **character_set_type** field is supported
5460 // in the following format: `character_set_type="{characterSetType}". Accepted
5461 // values include `DATABASE` and `NATIONAL`.
5462 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5463 c.urlParams_.Set("filter", filter)
5464 return c
5465 }
5466
5467 // PageSize sets the optional parameter "pageSize": The maximum number of items
5468 // to return. If unspecified, at most 50 Autonomous DB Character Sets will be
5469 // returned. The maximum value is 1000; values above 1000 will be coerced to
5470 // 1000.
5471 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5472 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5473 return c
5474 }
5475
5476 // PageToken sets the optional parameter "pageToken": A token identifying a
5477 // page of results the server should return.
5478 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5479 c.urlParams_.Set("pageToken", pageToken)
5480 return c
5481 }
5482
5483 // Fields allows partial responses to be retrieved. See
5484 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5485 // details.
5486 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5488 return c
5489 }
5490
5491 // IfNoneMatch sets an optional parameter which makes the operation fail if the
5492 // object's ETag matches the given value. This is useful for getting updates
5493 // only after the object has changed since the last request.
5494 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5495 c.ifNoneMatch_ = entityTag
5496 return c
5497 }
5498
5499 // Context sets the context to be used in this call's Do method.
5500 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall {
5501 c.ctx_ = ctx
5502 return c
5503 }
5504
5505 // Header returns a http.Header that can be modified by the caller to add
5506 // headers to the request.
5507 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Header() http.Header {
5508 if c.header_ == nil {
5509 c.header_ = make(http.Header)
5510 }
5511 return c.header_
5512 }
5513
5514 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) doRequest(alt string) (*http.Response, error) {
5515 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5516 if c.ifNoneMatch_ != "" {
5517 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5518 }
5519 c.urlParams_.Set("alt", alt)
5520 c.urlParams_.Set("prettyPrint", "false")
5521 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabaseCharacterSets")
5522 urls += "?" + c.urlParams_.Encode()
5523 req, err := http.NewRequest("GET", urls, nil)
5524 if err != nil {
5525 return nil, err
5526 }
5527 req.Header = reqHeaders
5528 googleapi.Expand(req.URL, map[string]string{
5529 "parent": c.parent,
5530 })
5531 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabaseCharacterSets.list", "request", internallog.HTTPRequest(req, nil))
5532 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5533 }
5534
5535 // Do executes the "oracledatabase.projects.locations.autonomousDatabaseCharacterSets.list" call.
5536 // Any non-2xx status code is an error. Response headers are in either
5537 // *ListAutonomousDatabaseCharacterSetsResponse.ServerResponse.Header or (if a
5538 // response was returned at all) in error.(*googleapi.Error).Header. Use
5539 // googleapi.IsNotModified to check whether the returned error was because
5540 // http.StatusNotModified was returned.
5541 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabaseCharacterSetsResponse, error) {
5542 gensupport.SetOptions(c.urlParams_, opts...)
5543 res, err := c.doRequest("json")
5544 if res != nil && res.StatusCode == http.StatusNotModified {
5545 if res.Body != nil {
5546 res.Body.Close()
5547 }
5548 return nil, gensupport.WrapError(&googleapi.Error{
5549 Code: res.StatusCode,
5550 Header: res.Header,
5551 })
5552 }
5553 if err != nil {
5554 return nil, err
5555 }
5556 defer googleapi.CloseBody(res)
5557 if err := googleapi.CheckResponse(res); err != nil {
5558 return nil, gensupport.WrapError(err)
5559 }
5560 ret := &ListAutonomousDatabaseCharacterSetsResponse{
5561 ServerResponse: googleapi.ServerResponse{
5562 Header: res.Header,
5563 HTTPStatusCode: res.StatusCode,
5564 },
5565 }
5566 target := &ret
5567 b, err := gensupport.DecodeResponseBytes(target, res)
5568 if err != nil {
5569 return nil, err
5570 }
5571 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabaseCharacterSets.list", "response", internallog.HTTPResponse(res, b))
5572 return ret, nil
5573 }
5574
5575 // Pages invokes f for each page of results.
5576 // A non-nil error returned from f will halt the iteration.
5577 // The provided context supersedes any context provided to the Context method.
5578 func (c *ProjectsLocationsAutonomousDatabaseCharacterSetsListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabaseCharacterSetsResponse) error) error {
5579 c.ctx_ = ctx
5580 defer c.PageToken(c.urlParams_.Get("pageToken"))
5581 for {
5582 x, err := c.Do()
5583 if err != nil {
5584 return err
5585 }
5586 if err := f(x); err != nil {
5587 return err
5588 }
5589 if x.NextPageToken == "" {
5590 return nil
5591 }
5592 c.PageToken(x.NextPageToken)
5593 }
5594 }
5595
5596 type ProjectsLocationsAutonomousDatabasesCreateCall struct {
5597 s *Service
5598 parent string
5599 autonomousdatabase *AutonomousDatabase
5600 urlParams_ gensupport.URLParams
5601 ctx_ context.Context
5602 header_ http.Header
5603 }
5604
5605 // Create: Creates a new Autonomous Database in a given project and location.
5606 //
5607 // - parent: The name of the parent in the following format:
5608 // projects/{project}/locations/{location}.
5609 func (r *ProjectsLocationsAutonomousDatabasesService) Create(parent string, autonomousdatabase *AutonomousDatabase) *ProjectsLocationsAutonomousDatabasesCreateCall {
5610 c := &ProjectsLocationsAutonomousDatabasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5611 c.parent = parent
5612 c.autonomousdatabase = autonomousdatabase
5613 return c
5614 }
5615
5616 // AutonomousDatabaseId sets the optional parameter "autonomousDatabaseId":
5617 // Required. The ID of the Autonomous Database to create. This value is
5618 // restricted to (^a-z ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63
5619 // characters in length. The value must start with a letter and end with a
5620 // letter or a number.
5621 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) AutonomousDatabaseId(autonomousDatabaseId string) *ProjectsLocationsAutonomousDatabasesCreateCall {
5622 c.urlParams_.Set("autonomousDatabaseId", autonomousDatabaseId)
5623 return c
5624 }
5625
5626 // RequestId sets the optional parameter "requestId": An optional ID to
5627 // identify the request. This value is used to identify duplicate requests. If
5628 // you make a request with the same request ID and the original request is
5629 // still in progress or completed, the server ignores the second request. This
5630 // prevents clients from accidentally creating duplicate commitments. The
5631 // request ID must be a valid UUID with the exception that zero UUID is not
5632 // supported (00000000-0000-0000-0000-000000000000).
5633 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) RequestId(requestId string) *ProjectsLocationsAutonomousDatabasesCreateCall {
5634 c.urlParams_.Set("requestId", requestId)
5635 return c
5636 }
5637
5638 // Fields allows partial responses to be retrieved. See
5639 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5640 // details.
5641 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesCreateCall {
5642 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5643 return c
5644 }
5645
5646 // Context sets the context to be used in this call's Do method.
5647 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesCreateCall {
5648 c.ctx_ = ctx
5649 return c
5650 }
5651
5652 // Header returns a http.Header that can be modified by the caller to add
5653 // headers to the request.
5654 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Header() http.Header {
5655 if c.header_ == nil {
5656 c.header_ = make(http.Header)
5657 }
5658 return c.header_
5659 }
5660
5661 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) doRequest(alt string) (*http.Response, error) {
5662 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5663 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autonomousdatabase)
5664 if err != nil {
5665 return nil, err
5666 }
5667 c.urlParams_.Set("alt", alt)
5668 c.urlParams_.Set("prettyPrint", "false")
5669 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabases")
5670 urls += "?" + c.urlParams_.Encode()
5671 req, err := http.NewRequest("POST", urls, body)
5672 if err != nil {
5673 return nil, err
5674 }
5675 req.Header = reqHeaders
5676 googleapi.Expand(req.URL, map[string]string{
5677 "parent": c.parent,
5678 })
5679 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.create", "request", internallog.HTTPRequest(req, body.Bytes()))
5680 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5681 }
5682
5683 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.create" call.
5684 // Any non-2xx status code is an error. Response headers are in either
5685 // *Operation.ServerResponse.Header or (if a response was returned at all) in
5686 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5687 // whether the returned error was because http.StatusNotModified was returned.
5688 func (c *ProjectsLocationsAutonomousDatabasesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5689 gensupport.SetOptions(c.urlParams_, opts...)
5690 res, err := c.doRequest("json")
5691 if res != nil && res.StatusCode == http.StatusNotModified {
5692 if res.Body != nil {
5693 res.Body.Close()
5694 }
5695 return nil, gensupport.WrapError(&googleapi.Error{
5696 Code: res.StatusCode,
5697 Header: res.Header,
5698 })
5699 }
5700 if err != nil {
5701 return nil, err
5702 }
5703 defer googleapi.CloseBody(res)
5704 if err := googleapi.CheckResponse(res); err != nil {
5705 return nil, gensupport.WrapError(err)
5706 }
5707 ret := &Operation{
5708 ServerResponse: googleapi.ServerResponse{
5709 Header: res.Header,
5710 HTTPStatusCode: res.StatusCode,
5711 },
5712 }
5713 target := &ret
5714 b, err := gensupport.DecodeResponseBytes(target, res)
5715 if err != nil {
5716 return nil, err
5717 }
5718 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.create", "response", internallog.HTTPResponse(res, b))
5719 return ret, nil
5720 }
5721
5722 type ProjectsLocationsAutonomousDatabasesDeleteCall struct {
5723 s *Service
5724 name string
5725 urlParams_ gensupport.URLParams
5726 ctx_ context.Context
5727 header_ http.Header
5728 }
5729
5730 // Delete: Deletes a single Autonomous Database.
5731 //
5732 // - name: The name of the resource in the following format:
5733 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
5734 // abase}.
5735 func (r *ProjectsLocationsAutonomousDatabasesService) Delete(name string) *ProjectsLocationsAutonomousDatabasesDeleteCall {
5736 c := &ProjectsLocationsAutonomousDatabasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5737 c.name = name
5738 return c
5739 }
5740
5741 // RequestId sets the optional parameter "requestId": An optional ID to
5742 // identify the request. This value is used to identify duplicate requests. If
5743 // you make a request with the same request ID and the original request is
5744 // still in progress or completed, the server ignores the second request. This
5745 // prevents clients from accidentally creating duplicate commitments. The
5746 // request ID must be a valid UUID with the exception that zero UUID is not
5747 // supported (00000000-0000-0000-0000-000000000000).
5748 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) RequestId(requestId string) *ProjectsLocationsAutonomousDatabasesDeleteCall {
5749 c.urlParams_.Set("requestId", requestId)
5750 return c
5751 }
5752
5753 // Fields allows partial responses to be retrieved. See
5754 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5755 // details.
5756 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesDeleteCall {
5757 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5758 return c
5759 }
5760
5761 // Context sets the context to be used in this call's Do method.
5762 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesDeleteCall {
5763 c.ctx_ = ctx
5764 return c
5765 }
5766
5767 // Header returns a http.Header that can be modified by the caller to add
5768 // headers to the request.
5769 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Header() http.Header {
5770 if c.header_ == nil {
5771 c.header_ = make(http.Header)
5772 }
5773 return c.header_
5774 }
5775
5776 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) doRequest(alt string) (*http.Response, error) {
5777 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
5778 c.urlParams_.Set("alt", alt)
5779 c.urlParams_.Set("prettyPrint", "false")
5780 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
5781 urls += "?" + c.urlParams_.Encode()
5782 req, err := http.NewRequest("DELETE", urls, nil)
5783 if err != nil {
5784 return nil, err
5785 }
5786 req.Header = reqHeaders
5787 googleapi.Expand(req.URL, map[string]string{
5788 "name": c.name,
5789 })
5790 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.delete", "request", internallog.HTTPRequest(req, nil))
5791 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5792 }
5793
5794 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.delete" call.
5795 // Any non-2xx status code is an error. Response headers are in either
5796 // *Operation.ServerResponse.Header or (if a response was returned at all) in
5797 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5798 // whether the returned error was because http.StatusNotModified was returned.
5799 func (c *ProjectsLocationsAutonomousDatabasesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5800 gensupport.SetOptions(c.urlParams_, opts...)
5801 res, err := c.doRequest("json")
5802 if res != nil && res.StatusCode == http.StatusNotModified {
5803 if res.Body != nil {
5804 res.Body.Close()
5805 }
5806 return nil, gensupport.WrapError(&googleapi.Error{
5807 Code: res.StatusCode,
5808 Header: res.Header,
5809 })
5810 }
5811 if err != nil {
5812 return nil, err
5813 }
5814 defer googleapi.CloseBody(res)
5815 if err := googleapi.CheckResponse(res); err != nil {
5816 return nil, gensupport.WrapError(err)
5817 }
5818 ret := &Operation{
5819 ServerResponse: googleapi.ServerResponse{
5820 Header: res.Header,
5821 HTTPStatusCode: res.StatusCode,
5822 },
5823 }
5824 target := &ret
5825 b, err := gensupport.DecodeResponseBytes(target, res)
5826 if err != nil {
5827 return nil, err
5828 }
5829 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.delete", "response", internallog.HTTPResponse(res, b))
5830 return ret, nil
5831 }
5832
5833 type ProjectsLocationsAutonomousDatabasesFailoverCall struct {
5834 s *Service
5835 name string
5836 failoverautonomousdatabaserequest *FailoverAutonomousDatabaseRequest
5837 urlParams_ gensupport.URLParams
5838 ctx_ context.Context
5839 header_ http.Header
5840 }
5841
5842 // Failover: Initiates a failover to target autonomous database from the
5843 // associated primary database.
5844 //
5845 // - name: The name of the Autonomous Database in the following format:
5846 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
5847 // abase}.
5848 func (r *ProjectsLocationsAutonomousDatabasesService) Failover(name string, failoverautonomousdatabaserequest *FailoverAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesFailoverCall {
5849 c := &ProjectsLocationsAutonomousDatabasesFailoverCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5850 c.name = name
5851 c.failoverautonomousdatabaserequest = failoverautonomousdatabaserequest
5852 return c
5853 }
5854
5855 // Fields allows partial responses to be retrieved. See
5856 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5857 // details.
5858 func (c *ProjectsLocationsAutonomousDatabasesFailoverCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesFailoverCall {
5859 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5860 return c
5861 }
5862
5863 // Context sets the context to be used in this call's Do method.
5864 func (c *ProjectsLocationsAutonomousDatabasesFailoverCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesFailoverCall {
5865 c.ctx_ = ctx
5866 return c
5867 }
5868
5869 // Header returns a http.Header that can be modified by the caller to add
5870 // headers to the request.
5871 func (c *ProjectsLocationsAutonomousDatabasesFailoverCall) Header() http.Header {
5872 if c.header_ == nil {
5873 c.header_ = make(http.Header)
5874 }
5875 return c.header_
5876 }
5877
5878 func (c *ProjectsLocationsAutonomousDatabasesFailoverCall) doRequest(alt string) (*http.Response, error) {
5879 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5880 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.failoverautonomousdatabaserequest)
5881 if err != nil {
5882 return nil, err
5883 }
5884 c.urlParams_.Set("alt", alt)
5885 c.urlParams_.Set("prettyPrint", "false")
5886 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:failover")
5887 urls += "?" + c.urlParams_.Encode()
5888 req, err := http.NewRequest("POST", urls, body)
5889 if err != nil {
5890 return nil, err
5891 }
5892 req.Header = reqHeaders
5893 googleapi.Expand(req.URL, map[string]string{
5894 "name": c.name,
5895 })
5896 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.failover", "request", internallog.HTTPRequest(req, body.Bytes()))
5897 return gensupport.SendRequest(c.ctx_, c.s.client, req)
5898 }
5899
5900 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.failover" call.
5901 // Any non-2xx status code is an error. Response headers are in either
5902 // *Operation.ServerResponse.Header or (if a response was returned at all) in
5903 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5904 // whether the returned error was because http.StatusNotModified was returned.
5905 func (c *ProjectsLocationsAutonomousDatabasesFailoverCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
5906 gensupport.SetOptions(c.urlParams_, opts...)
5907 res, err := c.doRequest("json")
5908 if res != nil && res.StatusCode == http.StatusNotModified {
5909 if res.Body != nil {
5910 res.Body.Close()
5911 }
5912 return nil, gensupport.WrapError(&googleapi.Error{
5913 Code: res.StatusCode,
5914 Header: res.Header,
5915 })
5916 }
5917 if err != nil {
5918 return nil, err
5919 }
5920 defer googleapi.CloseBody(res)
5921 if err := googleapi.CheckResponse(res); err != nil {
5922 return nil, gensupport.WrapError(err)
5923 }
5924 ret := &Operation{
5925 ServerResponse: googleapi.ServerResponse{
5926 Header: res.Header,
5927 HTTPStatusCode: res.StatusCode,
5928 },
5929 }
5930 target := &ret
5931 b, err := gensupport.DecodeResponseBytes(target, res)
5932 if err != nil {
5933 return nil, err
5934 }
5935 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.failover", "response", internallog.HTTPResponse(res, b))
5936 return ret, nil
5937 }
5938
5939 type ProjectsLocationsAutonomousDatabasesGenerateWalletCall struct {
5940 s *Service
5941 name string
5942 generateautonomousdatabasewalletrequest *GenerateAutonomousDatabaseWalletRequest
5943 urlParams_ gensupport.URLParams
5944 ctx_ context.Context
5945 header_ http.Header
5946 }
5947
5948 // GenerateWallet: Generates a wallet for an Autonomous Database.
5949 //
5950 // - name: The name of the Autonomous Database in the following format:
5951 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
5952 // abase}.
5953 func (r *ProjectsLocationsAutonomousDatabasesService) GenerateWallet(name string, generateautonomousdatabasewalletrequest *GenerateAutonomousDatabaseWalletRequest) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall {
5954 c := &ProjectsLocationsAutonomousDatabasesGenerateWalletCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5955 c.name = name
5956 c.generateautonomousdatabasewalletrequest = generateautonomousdatabasewalletrequest
5957 return c
5958 }
5959
5960 // Fields allows partial responses to be retrieved. See
5961 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
5962 // details.
5963 func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall {
5964 c.urlParams_.Set("fields", googleapi.CombineFields(s))
5965 return c
5966 }
5967
5968 // Context sets the context to be used in this call's Do method.
5969 func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesGenerateWalletCall {
5970 c.ctx_ = ctx
5971 return c
5972 }
5973
5974 // Header returns a http.Header that can be modified by the caller to add
5975 // headers to the request.
5976 func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Header() http.Header {
5977 if c.header_ == nil {
5978 c.header_ = make(http.Header)
5979 }
5980 return c.header_
5981 }
5982
5983 func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) doRequest(alt string) (*http.Response, error) {
5984 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
5985 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.generateautonomousdatabasewalletrequest)
5986 if err != nil {
5987 return nil, err
5988 }
5989 c.urlParams_.Set("alt", alt)
5990 c.urlParams_.Set("prettyPrint", "false")
5991 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateWallet")
5992 urls += "?" + c.urlParams_.Encode()
5993 req, err := http.NewRequest("POST", urls, body)
5994 if err != nil {
5995 return nil, err
5996 }
5997 req.Header = reqHeaders
5998 googleapi.Expand(req.URL, map[string]string{
5999 "name": c.name,
6000 })
6001 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.generateWallet", "request", internallog.HTTPRequest(req, body.Bytes()))
6002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6003 }
6004
6005 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.generateWallet" call.
6006 // Any non-2xx status code is an error. Response headers are in either
6007 // *GenerateAutonomousDatabaseWalletResponse.ServerResponse.Header or (if a
6008 // response was returned at all) in error.(*googleapi.Error).Header. Use
6009 // googleapi.IsNotModified to check whether the returned error was because
6010 // http.StatusNotModified was returned.
6011 func (c *ProjectsLocationsAutonomousDatabasesGenerateWalletCall) Do(opts ...googleapi.CallOption) (*GenerateAutonomousDatabaseWalletResponse, error) {
6012 gensupport.SetOptions(c.urlParams_, opts...)
6013 res, err := c.doRequest("json")
6014 if res != nil && res.StatusCode == http.StatusNotModified {
6015 if res.Body != nil {
6016 res.Body.Close()
6017 }
6018 return nil, gensupport.WrapError(&googleapi.Error{
6019 Code: res.StatusCode,
6020 Header: res.Header,
6021 })
6022 }
6023 if err != nil {
6024 return nil, err
6025 }
6026 defer googleapi.CloseBody(res)
6027 if err := googleapi.CheckResponse(res); err != nil {
6028 return nil, gensupport.WrapError(err)
6029 }
6030 ret := &GenerateAutonomousDatabaseWalletResponse{
6031 ServerResponse: googleapi.ServerResponse{
6032 Header: res.Header,
6033 HTTPStatusCode: res.StatusCode,
6034 },
6035 }
6036 target := &ret
6037 b, err := gensupport.DecodeResponseBytes(target, res)
6038 if err != nil {
6039 return nil, err
6040 }
6041 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.generateWallet", "response", internallog.HTTPResponse(res, b))
6042 return ret, nil
6043 }
6044
6045 type ProjectsLocationsAutonomousDatabasesGetCall struct {
6046 s *Service
6047 name string
6048 urlParams_ gensupport.URLParams
6049 ifNoneMatch_ string
6050 ctx_ context.Context
6051 header_ http.Header
6052 }
6053
6054 // Get: Gets the details of a single Autonomous Database.
6055 //
6056 // - name: The name of the Autonomous Database in the following format:
6057 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6058 // abase}.
6059 func (r *ProjectsLocationsAutonomousDatabasesService) Get(name string) *ProjectsLocationsAutonomousDatabasesGetCall {
6060 c := &ProjectsLocationsAutonomousDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6061 c.name = name
6062 return c
6063 }
6064
6065 // Fields allows partial responses to be retrieved. See
6066 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6067 // details.
6068 func (c *ProjectsLocationsAutonomousDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesGetCall {
6069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6070 return c
6071 }
6072
6073 // IfNoneMatch sets an optional parameter which makes the operation fail if the
6074 // object's ETag matches the given value. This is useful for getting updates
6075 // only after the object has changed since the last request.
6076 func (c *ProjectsLocationsAutonomousDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabasesGetCall {
6077 c.ifNoneMatch_ = entityTag
6078 return c
6079 }
6080
6081 // Context sets the context to be used in this call's Do method.
6082 func (c *ProjectsLocationsAutonomousDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesGetCall {
6083 c.ctx_ = ctx
6084 return c
6085 }
6086
6087 // Header returns a http.Header that can be modified by the caller to add
6088 // headers to the request.
6089 func (c *ProjectsLocationsAutonomousDatabasesGetCall) Header() http.Header {
6090 if c.header_ == nil {
6091 c.header_ = make(http.Header)
6092 }
6093 return c.header_
6094 }
6095
6096 func (c *ProjectsLocationsAutonomousDatabasesGetCall) doRequest(alt string) (*http.Response, error) {
6097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6098 if c.ifNoneMatch_ != "" {
6099 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6100 }
6101 c.urlParams_.Set("alt", alt)
6102 c.urlParams_.Set("prettyPrint", "false")
6103 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6104 urls += "?" + c.urlParams_.Encode()
6105 req, err := http.NewRequest("GET", urls, nil)
6106 if err != nil {
6107 return nil, err
6108 }
6109 req.Header = reqHeaders
6110 googleapi.Expand(req.URL, map[string]string{
6111 "name": c.name,
6112 })
6113 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.get", "request", internallog.HTTPRequest(req, nil))
6114 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6115 }
6116
6117 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.get" call.
6118 // Any non-2xx status code is an error. Response headers are in either
6119 // *AutonomousDatabase.ServerResponse.Header or (if a response was returned at
6120 // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6121 // check whether the returned error was because http.StatusNotModified was
6122 // returned.
6123 func (c *ProjectsLocationsAutonomousDatabasesGetCall) Do(opts ...googleapi.CallOption) (*AutonomousDatabase, error) {
6124 gensupport.SetOptions(c.urlParams_, opts...)
6125 res, err := c.doRequest("json")
6126 if res != nil && res.StatusCode == http.StatusNotModified {
6127 if res.Body != nil {
6128 res.Body.Close()
6129 }
6130 return nil, gensupport.WrapError(&googleapi.Error{
6131 Code: res.StatusCode,
6132 Header: res.Header,
6133 })
6134 }
6135 if err != nil {
6136 return nil, err
6137 }
6138 defer googleapi.CloseBody(res)
6139 if err := googleapi.CheckResponse(res); err != nil {
6140 return nil, gensupport.WrapError(err)
6141 }
6142 ret := &AutonomousDatabase{
6143 ServerResponse: googleapi.ServerResponse{
6144 Header: res.Header,
6145 HTTPStatusCode: res.StatusCode,
6146 },
6147 }
6148 target := &ret
6149 b, err := gensupport.DecodeResponseBytes(target, res)
6150 if err != nil {
6151 return nil, err
6152 }
6153 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.get", "response", internallog.HTTPResponse(res, b))
6154 return ret, nil
6155 }
6156
6157 type ProjectsLocationsAutonomousDatabasesListCall struct {
6158 s *Service
6159 parent string
6160 urlParams_ gensupport.URLParams
6161 ifNoneMatch_ string
6162 ctx_ context.Context
6163 header_ http.Header
6164 }
6165
6166 // List: Lists the Autonomous Databases in a given project and location.
6167 //
6168 // - parent: The parent value for the Autonomous Database in the following
6169 // format: projects/{project}/locations/{location}.
6170 func (r *ProjectsLocationsAutonomousDatabasesService) List(parent string) *ProjectsLocationsAutonomousDatabasesListCall {
6171 c := &ProjectsLocationsAutonomousDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6172 c.parent = parent
6173 return c
6174 }
6175
6176 // Filter sets the optional parameter "filter": An expression for filtering the
6177 // results of the request.
6178 func (c *ProjectsLocationsAutonomousDatabasesListCall) Filter(filter string) *ProjectsLocationsAutonomousDatabasesListCall {
6179 c.urlParams_.Set("filter", filter)
6180 return c
6181 }
6182
6183 // OrderBy sets the optional parameter "orderBy": An expression for ordering
6184 // the results of the request.
6185 func (c *ProjectsLocationsAutonomousDatabasesListCall) OrderBy(orderBy string) *ProjectsLocationsAutonomousDatabasesListCall {
6186 c.urlParams_.Set("orderBy", orderBy)
6187 return c
6188 }
6189
6190 // PageSize sets the optional parameter "pageSize": The maximum number of items
6191 // to return. If unspecified, at most 50 Autonomous Database will be returned.
6192 // The maximum value is 1000; values above 1000 will be coerced to 1000.
6193 func (c *ProjectsLocationsAutonomousDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDatabasesListCall {
6194 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6195 return c
6196 }
6197
6198 // PageToken sets the optional parameter "pageToken": A token identifying a
6199 // page of results the server should return.
6200 func (c *ProjectsLocationsAutonomousDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDatabasesListCall {
6201 c.urlParams_.Set("pageToken", pageToken)
6202 return c
6203 }
6204
6205 // Fields allows partial responses to be retrieved. See
6206 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6207 // details.
6208 func (c *ProjectsLocationsAutonomousDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesListCall {
6209 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6210 return c
6211 }
6212
6213 // IfNoneMatch sets an optional parameter which makes the operation fail if the
6214 // object's ETag matches the given value. This is useful for getting updates
6215 // only after the object has changed since the last request.
6216 func (c *ProjectsLocationsAutonomousDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDatabasesListCall {
6217 c.ifNoneMatch_ = entityTag
6218 return c
6219 }
6220
6221 // Context sets the context to be used in this call's Do method.
6222 func (c *ProjectsLocationsAutonomousDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesListCall {
6223 c.ctx_ = ctx
6224 return c
6225 }
6226
6227 // Header returns a http.Header that can be modified by the caller to add
6228 // headers to the request.
6229 func (c *ProjectsLocationsAutonomousDatabasesListCall) Header() http.Header {
6230 if c.header_ == nil {
6231 c.header_ = make(http.Header)
6232 }
6233 return c.header_
6234 }
6235
6236 func (c *ProjectsLocationsAutonomousDatabasesListCall) doRequest(alt string) (*http.Response, error) {
6237 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6238 if c.ifNoneMatch_ != "" {
6239 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6240 }
6241 c.urlParams_.Set("alt", alt)
6242 c.urlParams_.Set("prettyPrint", "false")
6243 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDatabases")
6244 urls += "?" + c.urlParams_.Encode()
6245 req, err := http.NewRequest("GET", urls, nil)
6246 if err != nil {
6247 return nil, err
6248 }
6249 req.Header = reqHeaders
6250 googleapi.Expand(req.URL, map[string]string{
6251 "parent": c.parent,
6252 })
6253 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.list", "request", internallog.HTTPRequest(req, nil))
6254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6255 }
6256
6257 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.list" call.
6258 // Any non-2xx status code is an error. Response headers are in either
6259 // *ListAutonomousDatabasesResponse.ServerResponse.Header or (if a response was
6260 // returned at all) in error.(*googleapi.Error).Header. Use
6261 // googleapi.IsNotModified to check whether the returned error was because
6262 // http.StatusNotModified was returned.
6263 func (c *ProjectsLocationsAutonomousDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDatabasesResponse, error) {
6264 gensupport.SetOptions(c.urlParams_, opts...)
6265 res, err := c.doRequest("json")
6266 if res != nil && res.StatusCode == http.StatusNotModified {
6267 if res.Body != nil {
6268 res.Body.Close()
6269 }
6270 return nil, gensupport.WrapError(&googleapi.Error{
6271 Code: res.StatusCode,
6272 Header: res.Header,
6273 })
6274 }
6275 if err != nil {
6276 return nil, err
6277 }
6278 defer googleapi.CloseBody(res)
6279 if err := googleapi.CheckResponse(res); err != nil {
6280 return nil, gensupport.WrapError(err)
6281 }
6282 ret := &ListAutonomousDatabasesResponse{
6283 ServerResponse: googleapi.ServerResponse{
6284 Header: res.Header,
6285 HTTPStatusCode: res.StatusCode,
6286 },
6287 }
6288 target := &ret
6289 b, err := gensupport.DecodeResponseBytes(target, res)
6290 if err != nil {
6291 return nil, err
6292 }
6293 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.list", "response", internallog.HTTPResponse(res, b))
6294 return ret, nil
6295 }
6296
6297 // Pages invokes f for each page of results.
6298 // A non-nil error returned from f will halt the iteration.
6299 // The provided context supersedes any context provided to the Context method.
6300 func (c *ProjectsLocationsAutonomousDatabasesListCall) Pages(ctx context.Context, f func(*ListAutonomousDatabasesResponse) error) error {
6301 c.ctx_ = ctx
6302 defer c.PageToken(c.urlParams_.Get("pageToken"))
6303 for {
6304 x, err := c.Do()
6305 if err != nil {
6306 return err
6307 }
6308 if err := f(x); err != nil {
6309 return err
6310 }
6311 if x.NextPageToken == "" {
6312 return nil
6313 }
6314 c.PageToken(x.NextPageToken)
6315 }
6316 }
6317
6318 type ProjectsLocationsAutonomousDatabasesPatchCall struct {
6319 s *Service
6320 name string
6321 autonomousdatabase *AutonomousDatabase
6322 urlParams_ gensupport.URLParams
6323 ctx_ context.Context
6324 header_ http.Header
6325 }
6326
6327 // Patch: Updates the parameters of a single Autonomous Database.
6328 //
6329 // - name: Identifier. The name of the Autonomous Database resource in the
6330 // following format:
6331 // projects/{project}/locations/{region}/autonomousDatabases/{autonomous_datab
6332 // ase}.
6333 func (r *ProjectsLocationsAutonomousDatabasesService) Patch(name string, autonomousdatabase *AutonomousDatabase) *ProjectsLocationsAutonomousDatabasesPatchCall {
6334 c := &ProjectsLocationsAutonomousDatabasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6335 c.name = name
6336 c.autonomousdatabase = autonomousdatabase
6337 return c
6338 }
6339
6340 // RequestId sets the optional parameter "requestId": An optional ID to
6341 // identify the request. This value is used to identify duplicate requests. If
6342 // you make a request with the same request ID and the original request is
6343 // still in progress or completed, the server ignores the second request. This
6344 // prevents clients from accidentally creating duplicate commitments. The
6345 // request ID must be a valid UUID with the exception that zero UUID is not
6346 // supported (00000000-0000-0000-0000-000000000000).
6347 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) RequestId(requestId string) *ProjectsLocationsAutonomousDatabasesPatchCall {
6348 c.urlParams_.Set("requestId", requestId)
6349 return c
6350 }
6351
6352 // UpdateMask sets the optional parameter "updateMask": Field mask is used to
6353 // specify the fields to be overwritten in the Exadata resource by the update.
6354 // The fields specified in the update_mask are relative to the resource, not
6355 // the full request. A field will be overwritten if it is in the mask. If the
6356 // user does not provide a mask then all fields will be overwritten.
6357 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAutonomousDatabasesPatchCall {
6358 c.urlParams_.Set("updateMask", updateMask)
6359 return c
6360 }
6361
6362 // Fields allows partial responses to be retrieved. See
6363 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6364 // details.
6365 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesPatchCall {
6366 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6367 return c
6368 }
6369
6370 // Context sets the context to be used in this call's Do method.
6371 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesPatchCall {
6372 c.ctx_ = ctx
6373 return c
6374 }
6375
6376 // Header returns a http.Header that can be modified by the caller to add
6377 // headers to the request.
6378 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) Header() http.Header {
6379 if c.header_ == nil {
6380 c.header_ = make(http.Header)
6381 }
6382 return c.header_
6383 }
6384
6385 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) doRequest(alt string) (*http.Response, error) {
6386 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6387 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.autonomousdatabase)
6388 if err != nil {
6389 return nil, err
6390 }
6391 c.urlParams_.Set("alt", alt)
6392 c.urlParams_.Set("prettyPrint", "false")
6393 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6394 urls += "?" + c.urlParams_.Encode()
6395 req, err := http.NewRequest("PATCH", urls, body)
6396 if err != nil {
6397 return nil, err
6398 }
6399 req.Header = reqHeaders
6400 googleapi.Expand(req.URL, map[string]string{
6401 "name": c.name,
6402 })
6403 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.patch", "request", internallog.HTTPRequest(req, body.Bytes()))
6404 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6405 }
6406
6407 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.patch" call.
6408 // Any non-2xx status code is an error. Response headers are in either
6409 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6410 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6411 // whether the returned error was because http.StatusNotModified was returned.
6412 func (c *ProjectsLocationsAutonomousDatabasesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6413 gensupport.SetOptions(c.urlParams_, opts...)
6414 res, err := c.doRequest("json")
6415 if res != nil && res.StatusCode == http.StatusNotModified {
6416 if res.Body != nil {
6417 res.Body.Close()
6418 }
6419 return nil, gensupport.WrapError(&googleapi.Error{
6420 Code: res.StatusCode,
6421 Header: res.Header,
6422 })
6423 }
6424 if err != nil {
6425 return nil, err
6426 }
6427 defer googleapi.CloseBody(res)
6428 if err := googleapi.CheckResponse(res); err != nil {
6429 return nil, gensupport.WrapError(err)
6430 }
6431 ret := &Operation{
6432 ServerResponse: googleapi.ServerResponse{
6433 Header: res.Header,
6434 HTTPStatusCode: res.StatusCode,
6435 },
6436 }
6437 target := &ret
6438 b, err := gensupport.DecodeResponseBytes(target, res)
6439 if err != nil {
6440 return nil, err
6441 }
6442 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.patch", "response", internallog.HTTPResponse(res, b))
6443 return ret, nil
6444 }
6445
6446 type ProjectsLocationsAutonomousDatabasesRestartCall struct {
6447 s *Service
6448 name string
6449 restartautonomousdatabaserequest *RestartAutonomousDatabaseRequest
6450 urlParams_ gensupport.URLParams
6451 ctx_ context.Context
6452 header_ http.Header
6453 }
6454
6455 // Restart: Restarts an Autonomous Database.
6456 //
6457 // - name: The name of the Autonomous Database in the following format:
6458 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6459 // abase}.
6460 func (r *ProjectsLocationsAutonomousDatabasesService) Restart(name string, restartautonomousdatabaserequest *RestartAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesRestartCall {
6461 c := &ProjectsLocationsAutonomousDatabasesRestartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6462 c.name = name
6463 c.restartautonomousdatabaserequest = restartautonomousdatabaserequest
6464 return c
6465 }
6466
6467 // Fields allows partial responses to be retrieved. See
6468 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6469 // details.
6470 func (c *ProjectsLocationsAutonomousDatabasesRestartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesRestartCall {
6471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6472 return c
6473 }
6474
6475 // Context sets the context to be used in this call's Do method.
6476 func (c *ProjectsLocationsAutonomousDatabasesRestartCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesRestartCall {
6477 c.ctx_ = ctx
6478 return c
6479 }
6480
6481 // Header returns a http.Header that can be modified by the caller to add
6482 // headers to the request.
6483 func (c *ProjectsLocationsAutonomousDatabasesRestartCall) Header() http.Header {
6484 if c.header_ == nil {
6485 c.header_ = make(http.Header)
6486 }
6487 return c.header_
6488 }
6489
6490 func (c *ProjectsLocationsAutonomousDatabasesRestartCall) doRequest(alt string) (*http.Response, error) {
6491 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6492 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.restartautonomousdatabaserequest)
6493 if err != nil {
6494 return nil, err
6495 }
6496 c.urlParams_.Set("alt", alt)
6497 c.urlParams_.Set("prettyPrint", "false")
6498 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restart")
6499 urls += "?" + c.urlParams_.Encode()
6500 req, err := http.NewRequest("POST", urls, body)
6501 if err != nil {
6502 return nil, err
6503 }
6504 req.Header = reqHeaders
6505 googleapi.Expand(req.URL, map[string]string{
6506 "name": c.name,
6507 })
6508 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.restart", "request", internallog.HTTPRequest(req, body.Bytes()))
6509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6510 }
6511
6512 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.restart" call.
6513 // Any non-2xx status code is an error. Response headers are in either
6514 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6515 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6516 // whether the returned error was because http.StatusNotModified was returned.
6517 func (c *ProjectsLocationsAutonomousDatabasesRestartCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6518 gensupport.SetOptions(c.urlParams_, opts...)
6519 res, err := c.doRequest("json")
6520 if res != nil && res.StatusCode == http.StatusNotModified {
6521 if res.Body != nil {
6522 res.Body.Close()
6523 }
6524 return nil, gensupport.WrapError(&googleapi.Error{
6525 Code: res.StatusCode,
6526 Header: res.Header,
6527 })
6528 }
6529 if err != nil {
6530 return nil, err
6531 }
6532 defer googleapi.CloseBody(res)
6533 if err := googleapi.CheckResponse(res); err != nil {
6534 return nil, gensupport.WrapError(err)
6535 }
6536 ret := &Operation{
6537 ServerResponse: googleapi.ServerResponse{
6538 Header: res.Header,
6539 HTTPStatusCode: res.StatusCode,
6540 },
6541 }
6542 target := &ret
6543 b, err := gensupport.DecodeResponseBytes(target, res)
6544 if err != nil {
6545 return nil, err
6546 }
6547 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.restart", "response", internallog.HTTPResponse(res, b))
6548 return ret, nil
6549 }
6550
6551 type ProjectsLocationsAutonomousDatabasesRestoreCall struct {
6552 s *Service
6553 name string
6554 restoreautonomousdatabaserequest *RestoreAutonomousDatabaseRequest
6555 urlParams_ gensupport.URLParams
6556 ctx_ context.Context
6557 header_ http.Header
6558 }
6559
6560 // Restore: Restores a single Autonomous Database.
6561 //
6562 // - name: The name of the Autonomous Database in the following format:
6563 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6564 // abase}.
6565 func (r *ProjectsLocationsAutonomousDatabasesService) Restore(name string, restoreautonomousdatabaserequest *RestoreAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesRestoreCall {
6566 c := &ProjectsLocationsAutonomousDatabasesRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6567 c.name = name
6568 c.restoreautonomousdatabaserequest = restoreautonomousdatabaserequest
6569 return c
6570 }
6571
6572 // Fields allows partial responses to be retrieved. See
6573 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6574 // details.
6575 func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesRestoreCall {
6576 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6577 return c
6578 }
6579
6580 // Context sets the context to be used in this call's Do method.
6581 func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesRestoreCall {
6582 c.ctx_ = ctx
6583 return c
6584 }
6585
6586 // Header returns a http.Header that can be modified by the caller to add
6587 // headers to the request.
6588 func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Header() http.Header {
6589 if c.header_ == nil {
6590 c.header_ = make(http.Header)
6591 }
6592 return c.header_
6593 }
6594
6595 func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) doRequest(alt string) (*http.Response, error) {
6596 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6597 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.restoreautonomousdatabaserequest)
6598 if err != nil {
6599 return nil, err
6600 }
6601 c.urlParams_.Set("alt", alt)
6602 c.urlParams_.Set("prettyPrint", "false")
6603 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore")
6604 urls += "?" + c.urlParams_.Encode()
6605 req, err := http.NewRequest("POST", urls, body)
6606 if err != nil {
6607 return nil, err
6608 }
6609 req.Header = reqHeaders
6610 googleapi.Expand(req.URL, map[string]string{
6611 "name": c.name,
6612 })
6613 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.restore", "request", internallog.HTTPRequest(req, body.Bytes()))
6614 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6615 }
6616
6617 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.restore" call.
6618 // Any non-2xx status code is an error. Response headers are in either
6619 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6620 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6621 // whether the returned error was because http.StatusNotModified was returned.
6622 func (c *ProjectsLocationsAutonomousDatabasesRestoreCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6623 gensupport.SetOptions(c.urlParams_, opts...)
6624 res, err := c.doRequest("json")
6625 if res != nil && res.StatusCode == http.StatusNotModified {
6626 if res.Body != nil {
6627 res.Body.Close()
6628 }
6629 return nil, gensupport.WrapError(&googleapi.Error{
6630 Code: res.StatusCode,
6631 Header: res.Header,
6632 })
6633 }
6634 if err != nil {
6635 return nil, err
6636 }
6637 defer googleapi.CloseBody(res)
6638 if err := googleapi.CheckResponse(res); err != nil {
6639 return nil, gensupport.WrapError(err)
6640 }
6641 ret := &Operation{
6642 ServerResponse: googleapi.ServerResponse{
6643 Header: res.Header,
6644 HTTPStatusCode: res.StatusCode,
6645 },
6646 }
6647 target := &ret
6648 b, err := gensupport.DecodeResponseBytes(target, res)
6649 if err != nil {
6650 return nil, err
6651 }
6652 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.restore", "response", internallog.HTTPResponse(res, b))
6653 return ret, nil
6654 }
6655
6656 type ProjectsLocationsAutonomousDatabasesStartCall struct {
6657 s *Service
6658 name string
6659 startautonomousdatabaserequest *StartAutonomousDatabaseRequest
6660 urlParams_ gensupport.URLParams
6661 ctx_ context.Context
6662 header_ http.Header
6663 }
6664
6665 // Start: Starts an Autonomous Database.
6666 //
6667 // - name: The name of the Autonomous Database in the following format:
6668 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6669 // abase}.
6670 func (r *ProjectsLocationsAutonomousDatabasesService) Start(name string, startautonomousdatabaserequest *StartAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesStartCall {
6671 c := &ProjectsLocationsAutonomousDatabasesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6672 c.name = name
6673 c.startautonomousdatabaserequest = startautonomousdatabaserequest
6674 return c
6675 }
6676
6677 // Fields allows partial responses to be retrieved. See
6678 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6679 // details.
6680 func (c *ProjectsLocationsAutonomousDatabasesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesStartCall {
6681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6682 return c
6683 }
6684
6685 // Context sets the context to be used in this call's Do method.
6686 func (c *ProjectsLocationsAutonomousDatabasesStartCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesStartCall {
6687 c.ctx_ = ctx
6688 return c
6689 }
6690
6691 // Header returns a http.Header that can be modified by the caller to add
6692 // headers to the request.
6693 func (c *ProjectsLocationsAutonomousDatabasesStartCall) Header() http.Header {
6694 if c.header_ == nil {
6695 c.header_ = make(http.Header)
6696 }
6697 return c.header_
6698 }
6699
6700 func (c *ProjectsLocationsAutonomousDatabasesStartCall) doRequest(alt string) (*http.Response, error) {
6701 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6702 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.startautonomousdatabaserequest)
6703 if err != nil {
6704 return nil, err
6705 }
6706 c.urlParams_.Set("alt", alt)
6707 c.urlParams_.Set("prettyPrint", "false")
6708 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:start")
6709 urls += "?" + c.urlParams_.Encode()
6710 req, err := http.NewRequest("POST", urls, body)
6711 if err != nil {
6712 return nil, err
6713 }
6714 req.Header = reqHeaders
6715 googleapi.Expand(req.URL, map[string]string{
6716 "name": c.name,
6717 })
6718 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.start", "request", internallog.HTTPRequest(req, body.Bytes()))
6719 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6720 }
6721
6722 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.start" call.
6723 // Any non-2xx status code is an error. Response headers are in either
6724 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6725 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6726 // whether the returned error was because http.StatusNotModified was returned.
6727 func (c *ProjectsLocationsAutonomousDatabasesStartCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6728 gensupport.SetOptions(c.urlParams_, opts...)
6729 res, err := c.doRequest("json")
6730 if res != nil && res.StatusCode == http.StatusNotModified {
6731 if res.Body != nil {
6732 res.Body.Close()
6733 }
6734 return nil, gensupport.WrapError(&googleapi.Error{
6735 Code: res.StatusCode,
6736 Header: res.Header,
6737 })
6738 }
6739 if err != nil {
6740 return nil, err
6741 }
6742 defer googleapi.CloseBody(res)
6743 if err := googleapi.CheckResponse(res); err != nil {
6744 return nil, gensupport.WrapError(err)
6745 }
6746 ret := &Operation{
6747 ServerResponse: googleapi.ServerResponse{
6748 Header: res.Header,
6749 HTTPStatusCode: res.StatusCode,
6750 },
6751 }
6752 target := &ret
6753 b, err := gensupport.DecodeResponseBytes(target, res)
6754 if err != nil {
6755 return nil, err
6756 }
6757 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.start", "response", internallog.HTTPResponse(res, b))
6758 return ret, nil
6759 }
6760
6761 type ProjectsLocationsAutonomousDatabasesStopCall struct {
6762 s *Service
6763 name string
6764 stopautonomousdatabaserequest *StopAutonomousDatabaseRequest
6765 urlParams_ gensupport.URLParams
6766 ctx_ context.Context
6767 header_ http.Header
6768 }
6769
6770 // Stop: Stops an Autonomous Database.
6771 //
6772 // - name: The name of the Autonomous Database in the following format:
6773 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6774 // abase}.
6775 func (r *ProjectsLocationsAutonomousDatabasesService) Stop(name string, stopautonomousdatabaserequest *StopAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesStopCall {
6776 c := &ProjectsLocationsAutonomousDatabasesStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6777 c.name = name
6778 c.stopautonomousdatabaserequest = stopautonomousdatabaserequest
6779 return c
6780 }
6781
6782 // Fields allows partial responses to be retrieved. See
6783 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6784 // details.
6785 func (c *ProjectsLocationsAutonomousDatabasesStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesStopCall {
6786 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6787 return c
6788 }
6789
6790 // Context sets the context to be used in this call's Do method.
6791 func (c *ProjectsLocationsAutonomousDatabasesStopCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesStopCall {
6792 c.ctx_ = ctx
6793 return c
6794 }
6795
6796 // Header returns a http.Header that can be modified by the caller to add
6797 // headers to the request.
6798 func (c *ProjectsLocationsAutonomousDatabasesStopCall) Header() http.Header {
6799 if c.header_ == nil {
6800 c.header_ = make(http.Header)
6801 }
6802 return c.header_
6803 }
6804
6805 func (c *ProjectsLocationsAutonomousDatabasesStopCall) doRequest(alt string) (*http.Response, error) {
6806 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6807 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.stopautonomousdatabaserequest)
6808 if err != nil {
6809 return nil, err
6810 }
6811 c.urlParams_.Set("alt", alt)
6812 c.urlParams_.Set("prettyPrint", "false")
6813 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:stop")
6814 urls += "?" + c.urlParams_.Encode()
6815 req, err := http.NewRequest("POST", urls, body)
6816 if err != nil {
6817 return nil, err
6818 }
6819 req.Header = reqHeaders
6820 googleapi.Expand(req.URL, map[string]string{
6821 "name": c.name,
6822 })
6823 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.stop", "request", internallog.HTTPRequest(req, body.Bytes()))
6824 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6825 }
6826
6827 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.stop" call.
6828 // Any non-2xx status code is an error. Response headers are in either
6829 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6830 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6831 // whether the returned error was because http.StatusNotModified was returned.
6832 func (c *ProjectsLocationsAutonomousDatabasesStopCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6833 gensupport.SetOptions(c.urlParams_, opts...)
6834 res, err := c.doRequest("json")
6835 if res != nil && res.StatusCode == http.StatusNotModified {
6836 if res.Body != nil {
6837 res.Body.Close()
6838 }
6839 return nil, gensupport.WrapError(&googleapi.Error{
6840 Code: res.StatusCode,
6841 Header: res.Header,
6842 })
6843 }
6844 if err != nil {
6845 return nil, err
6846 }
6847 defer googleapi.CloseBody(res)
6848 if err := googleapi.CheckResponse(res); err != nil {
6849 return nil, gensupport.WrapError(err)
6850 }
6851 ret := &Operation{
6852 ServerResponse: googleapi.ServerResponse{
6853 Header: res.Header,
6854 HTTPStatusCode: res.StatusCode,
6855 },
6856 }
6857 target := &ret
6858 b, err := gensupport.DecodeResponseBytes(target, res)
6859 if err != nil {
6860 return nil, err
6861 }
6862 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.stop", "response", internallog.HTTPResponse(res, b))
6863 return ret, nil
6864 }
6865
6866 type ProjectsLocationsAutonomousDatabasesSwitchoverCall struct {
6867 s *Service
6868 name string
6869 switchoverautonomousdatabaserequest *SwitchoverAutonomousDatabaseRequest
6870 urlParams_ gensupport.URLParams
6871 ctx_ context.Context
6872 header_ http.Header
6873 }
6874
6875 // Switchover: Initiates a switchover of specified autonomous database to the
6876 // associated peer database.
6877 //
6878 // - name: The name of the Autonomous Database in the following format:
6879 // projects/{project}/locations/{location}/autonomousDatabases/{autonomous_dat
6880 // abase}.
6881 func (r *ProjectsLocationsAutonomousDatabasesService) Switchover(name string, switchoverautonomousdatabaserequest *SwitchoverAutonomousDatabaseRequest) *ProjectsLocationsAutonomousDatabasesSwitchoverCall {
6882 c := &ProjectsLocationsAutonomousDatabasesSwitchoverCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6883 c.name = name
6884 c.switchoverautonomousdatabaserequest = switchoverautonomousdatabaserequest
6885 return c
6886 }
6887
6888 // Fields allows partial responses to be retrieved. See
6889 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
6890 // details.
6891 func (c *ProjectsLocationsAutonomousDatabasesSwitchoverCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDatabasesSwitchoverCall {
6892 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6893 return c
6894 }
6895
6896 // Context sets the context to be used in this call's Do method.
6897 func (c *ProjectsLocationsAutonomousDatabasesSwitchoverCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDatabasesSwitchoverCall {
6898 c.ctx_ = ctx
6899 return c
6900 }
6901
6902 // Header returns a http.Header that can be modified by the caller to add
6903 // headers to the request.
6904 func (c *ProjectsLocationsAutonomousDatabasesSwitchoverCall) Header() http.Header {
6905 if c.header_ == nil {
6906 c.header_ = make(http.Header)
6907 }
6908 return c.header_
6909 }
6910
6911 func (c *ProjectsLocationsAutonomousDatabasesSwitchoverCall) doRequest(alt string) (*http.Response, error) {
6912 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6913 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.switchoverautonomousdatabaserequest)
6914 if err != nil {
6915 return nil, err
6916 }
6917 c.urlParams_.Set("alt", alt)
6918 c.urlParams_.Set("prettyPrint", "false")
6919 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:switchover")
6920 urls += "?" + c.urlParams_.Encode()
6921 req, err := http.NewRequest("POST", urls, body)
6922 if err != nil {
6923 return nil, err
6924 }
6925 req.Header = reqHeaders
6926 googleapi.Expand(req.URL, map[string]string{
6927 "name": c.name,
6928 })
6929 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.switchover", "request", internallog.HTTPRequest(req, body.Bytes()))
6930 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6931 }
6932
6933 // Do executes the "oracledatabase.projects.locations.autonomousDatabases.switchover" call.
6934 // Any non-2xx status code is an error. Response headers are in either
6935 // *Operation.ServerResponse.Header or (if a response was returned at all) in
6936 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6937 // whether the returned error was because http.StatusNotModified was returned.
6938 func (c *ProjectsLocationsAutonomousDatabasesSwitchoverCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
6939 gensupport.SetOptions(c.urlParams_, opts...)
6940 res, err := c.doRequest("json")
6941 if res != nil && res.StatusCode == http.StatusNotModified {
6942 if res.Body != nil {
6943 res.Body.Close()
6944 }
6945 return nil, gensupport.WrapError(&googleapi.Error{
6946 Code: res.StatusCode,
6947 Header: res.Header,
6948 })
6949 }
6950 if err != nil {
6951 return nil, err
6952 }
6953 defer googleapi.CloseBody(res)
6954 if err := googleapi.CheckResponse(res); err != nil {
6955 return nil, gensupport.WrapError(err)
6956 }
6957 ret := &Operation{
6958 ServerResponse: googleapi.ServerResponse{
6959 Header: res.Header,
6960 HTTPStatusCode: res.StatusCode,
6961 },
6962 }
6963 target := &ret
6964 b, err := gensupport.DecodeResponseBytes(target, res)
6965 if err != nil {
6966 return nil, err
6967 }
6968 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDatabases.switchover", "response", internallog.HTTPResponse(res, b))
6969 return ret, nil
6970 }
6971
6972 type ProjectsLocationsAutonomousDbVersionsListCall struct {
6973 s *Service
6974 parent string
6975 urlParams_ gensupport.URLParams
6976 ifNoneMatch_ string
6977 ctx_ context.Context
6978 header_ http.Header
6979 }
6980
6981 // List: Lists all the available Autonomous Database versions for a project and
6982 // location.
6983 //
6984 // - parent: The parent value for the Autonomous Database in the following
6985 // format: projects/{project}/locations/{location}.
6986 func (r *ProjectsLocationsAutonomousDbVersionsService) List(parent string) *ProjectsLocationsAutonomousDbVersionsListCall {
6987 c := &ProjectsLocationsAutonomousDbVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6988 c.parent = parent
6989 return c
6990 }
6991
6992 // PageSize sets the optional parameter "pageSize": The maximum number of items
6993 // to return. If unspecified, at most 50 Autonomous DB Versions will be
6994 // returned. The maximum value is 1000; values above 1000 will be coerced to
6995 // 1000.
6996 func (c *ProjectsLocationsAutonomousDbVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAutonomousDbVersionsListCall {
6997 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6998 return c
6999 }
7000
7001 // PageToken sets the optional parameter "pageToken": A token identifying a
7002 // page of results the server should return.
7003 func (c *ProjectsLocationsAutonomousDbVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAutonomousDbVersionsListCall {
7004 c.urlParams_.Set("pageToken", pageToken)
7005 return c
7006 }
7007
7008 // Fields allows partial responses to be retrieved. See
7009 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7010 // details.
7011 func (c *ProjectsLocationsAutonomousDbVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAutonomousDbVersionsListCall {
7012 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7013 return c
7014 }
7015
7016 // IfNoneMatch sets an optional parameter which makes the operation fail if the
7017 // object's ETag matches the given value. This is useful for getting updates
7018 // only after the object has changed since the last request.
7019 func (c *ProjectsLocationsAutonomousDbVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAutonomousDbVersionsListCall {
7020 c.ifNoneMatch_ = entityTag
7021 return c
7022 }
7023
7024 // Context sets the context to be used in this call's Do method.
7025 func (c *ProjectsLocationsAutonomousDbVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAutonomousDbVersionsListCall {
7026 c.ctx_ = ctx
7027 return c
7028 }
7029
7030 // Header returns a http.Header that can be modified by the caller to add
7031 // headers to the request.
7032 func (c *ProjectsLocationsAutonomousDbVersionsListCall) Header() http.Header {
7033 if c.header_ == nil {
7034 c.header_ = make(http.Header)
7035 }
7036 return c.header_
7037 }
7038
7039 func (c *ProjectsLocationsAutonomousDbVersionsListCall) doRequest(alt string) (*http.Response, error) {
7040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7041 if c.ifNoneMatch_ != "" {
7042 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7043 }
7044 c.urlParams_.Set("alt", alt)
7045 c.urlParams_.Set("prettyPrint", "false")
7046 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/autonomousDbVersions")
7047 urls += "?" + c.urlParams_.Encode()
7048 req, err := http.NewRequest("GET", urls, nil)
7049 if err != nil {
7050 return nil, err
7051 }
7052 req.Header = reqHeaders
7053 googleapi.Expand(req.URL, map[string]string{
7054 "parent": c.parent,
7055 })
7056 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDbVersions.list", "request", internallog.HTTPRequest(req, nil))
7057 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7058 }
7059
7060 // Do executes the "oracledatabase.projects.locations.autonomousDbVersions.list" call.
7061 // Any non-2xx status code is an error. Response headers are in either
7062 // *ListAutonomousDbVersionsResponse.ServerResponse.Header or (if a response
7063 // was returned at all) in error.(*googleapi.Error).Header. Use
7064 // googleapi.IsNotModified to check whether the returned error was because
7065 // http.StatusNotModified was returned.
7066 func (c *ProjectsLocationsAutonomousDbVersionsListCall) Do(opts ...googleapi.CallOption) (*ListAutonomousDbVersionsResponse, error) {
7067 gensupport.SetOptions(c.urlParams_, opts...)
7068 res, err := c.doRequest("json")
7069 if res != nil && res.StatusCode == http.StatusNotModified {
7070 if res.Body != nil {
7071 res.Body.Close()
7072 }
7073 return nil, gensupport.WrapError(&googleapi.Error{
7074 Code: res.StatusCode,
7075 Header: res.Header,
7076 })
7077 }
7078 if err != nil {
7079 return nil, err
7080 }
7081 defer googleapi.CloseBody(res)
7082 if err := googleapi.CheckResponse(res); err != nil {
7083 return nil, gensupport.WrapError(err)
7084 }
7085 ret := &ListAutonomousDbVersionsResponse{
7086 ServerResponse: googleapi.ServerResponse{
7087 Header: res.Header,
7088 HTTPStatusCode: res.StatusCode,
7089 },
7090 }
7091 target := &ret
7092 b, err := gensupport.DecodeResponseBytes(target, res)
7093 if err != nil {
7094 return nil, err
7095 }
7096 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.autonomousDbVersions.list", "response", internallog.HTTPResponse(res, b))
7097 return ret, nil
7098 }
7099
7100 // Pages invokes f for each page of results.
7101 // A non-nil error returned from f will halt the iteration.
7102 // The provided context supersedes any context provided to the Context method.
7103 func (c *ProjectsLocationsAutonomousDbVersionsListCall) Pages(ctx context.Context, f func(*ListAutonomousDbVersionsResponse) error) error {
7104 c.ctx_ = ctx
7105 defer c.PageToken(c.urlParams_.Get("pageToken"))
7106 for {
7107 x, err := c.Do()
7108 if err != nil {
7109 return err
7110 }
7111 if err := f(x); err != nil {
7112 return err
7113 }
7114 if x.NextPageToken == "" {
7115 return nil
7116 }
7117 c.PageToken(x.NextPageToken)
7118 }
7119 }
7120
7121 type ProjectsLocationsCloudExadataInfrastructuresCreateCall struct {
7122 s *Service
7123 parent string
7124 cloudexadatainfrastructure *CloudExadataInfrastructure
7125 urlParams_ gensupport.URLParams
7126 ctx_ context.Context
7127 header_ http.Header
7128 }
7129
7130 // Create: Creates a new Exadata Infrastructure in a given project and
7131 // location.
7132 //
7133 // - parent: The parent value for CloudExadataInfrastructure in the following
7134 // format: projects/{project}/locations/{location}.
7135 func (r *ProjectsLocationsCloudExadataInfrastructuresService) Create(parent string, cloudexadatainfrastructure *CloudExadataInfrastructure) *ProjectsLocationsCloudExadataInfrastructuresCreateCall {
7136 c := &ProjectsLocationsCloudExadataInfrastructuresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7137 c.parent = parent
7138 c.cloudexadatainfrastructure = cloudexadatainfrastructure
7139 return c
7140 }
7141
7142 // CloudExadataInfrastructureId sets the optional parameter
7143 // "cloudExadataInfrastructureId": Required. The ID of the Exadata
7144 // Infrastructure to create. This value is restricted to (^a-z
7145 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
7146 // length. The value must start with a letter and end with a letter or a
7147 // number.
7148 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) CloudExadataInfrastructureId(cloudExadataInfrastructureId string) *ProjectsLocationsCloudExadataInfrastructuresCreateCall {
7149 c.urlParams_.Set("cloudExadataInfrastructureId", cloudExadataInfrastructureId)
7150 return c
7151 }
7152
7153 // RequestId sets the optional parameter "requestId": An optional ID to
7154 // identify the request. This value is used to identify duplicate requests. If
7155 // you make a request with the same request ID and the original request is
7156 // still in progress or completed, the server ignores the second request. This
7157 // prevents clients from accidentally creating duplicate commitments. The
7158 // request ID must be a valid UUID with the exception that zero UUID is not
7159 // supported (00000000-0000-0000-0000-000000000000).
7160 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) RequestId(requestId string) *ProjectsLocationsCloudExadataInfrastructuresCreateCall {
7161 c.urlParams_.Set("requestId", requestId)
7162 return c
7163 }
7164
7165 // Fields allows partial responses to be retrieved. See
7166 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7167 // details.
7168 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresCreateCall {
7169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7170 return c
7171 }
7172
7173 // Context sets the context to be used in this call's Do method.
7174 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresCreateCall {
7175 c.ctx_ = ctx
7176 return c
7177 }
7178
7179 // Header returns a http.Header that can be modified by the caller to add
7180 // headers to the request.
7181 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Header() http.Header {
7182 if c.header_ == nil {
7183 c.header_ = make(http.Header)
7184 }
7185 return c.header_
7186 }
7187
7188 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) doRequest(alt string) (*http.Response, error) {
7189 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7190 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloudexadatainfrastructure)
7191 if err != nil {
7192 return nil, err
7193 }
7194 c.urlParams_.Set("alt", alt)
7195 c.urlParams_.Set("prettyPrint", "false")
7196 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudExadataInfrastructures")
7197 urls += "?" + c.urlParams_.Encode()
7198 req, err := http.NewRequest("POST", urls, body)
7199 if err != nil {
7200 return nil, err
7201 }
7202 req.Header = reqHeaders
7203 googleapi.Expand(req.URL, map[string]string{
7204 "parent": c.parent,
7205 })
7206 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.create", "request", internallog.HTTPRequest(req, body.Bytes()))
7207 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7208 }
7209
7210 // Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.create" call.
7211 // Any non-2xx status code is an error. Response headers are in either
7212 // *Operation.ServerResponse.Header or (if a response was returned at all) in
7213 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7214 // whether the returned error was because http.StatusNotModified was returned.
7215 func (c *ProjectsLocationsCloudExadataInfrastructuresCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7216 gensupport.SetOptions(c.urlParams_, opts...)
7217 res, err := c.doRequest("json")
7218 if res != nil && res.StatusCode == http.StatusNotModified {
7219 if res.Body != nil {
7220 res.Body.Close()
7221 }
7222 return nil, gensupport.WrapError(&googleapi.Error{
7223 Code: res.StatusCode,
7224 Header: res.Header,
7225 })
7226 }
7227 if err != nil {
7228 return nil, err
7229 }
7230 defer googleapi.CloseBody(res)
7231 if err := googleapi.CheckResponse(res); err != nil {
7232 return nil, gensupport.WrapError(err)
7233 }
7234 ret := &Operation{
7235 ServerResponse: googleapi.ServerResponse{
7236 Header: res.Header,
7237 HTTPStatusCode: res.StatusCode,
7238 },
7239 }
7240 target := &ret
7241 b, err := gensupport.DecodeResponseBytes(target, res)
7242 if err != nil {
7243 return nil, err
7244 }
7245 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.create", "response", internallog.HTTPResponse(res, b))
7246 return ret, nil
7247 }
7248
7249 type ProjectsLocationsCloudExadataInfrastructuresDeleteCall struct {
7250 s *Service
7251 name string
7252 urlParams_ gensupport.URLParams
7253 ctx_ context.Context
7254 header_ http.Header
7255 }
7256
7257 // Delete: Deletes a single Exadata Infrastructure.
7258 //
7259 // - name: The name of the Cloud Exadata Infrastructure in the following
7260 // format:
7261 // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_
7262 // exadata_infrastructure}.
7263 func (r *ProjectsLocationsCloudExadataInfrastructuresService) Delete(name string) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall {
7264 c := &ProjectsLocationsCloudExadataInfrastructuresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7265 c.name = name
7266 return c
7267 }
7268
7269 // Force sets the optional parameter "force": If set to true, all VM clusters
7270 // for this Exadata Infrastructure will be deleted. An Exadata Infrastructure
7271 // can only be deleted once all its VM clusters have been deleted.
7272 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Force(force bool) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall {
7273 c.urlParams_.Set("force", fmt.Sprint(force))
7274 return c
7275 }
7276
7277 // RequestId sets the optional parameter "requestId": An optional ID to
7278 // identify the request. This value is used to identify duplicate requests. If
7279 // you make a request with the same request ID and the original request is
7280 // still in progress or completed, the server ignores the second request. This
7281 // prevents clients from accidentally creating duplicate commitments. The
7282 // request ID must be a valid UUID with the exception that zero UUID is not
7283 // supported (00000000-0000-0000-0000-000000000000).
7284 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) RequestId(requestId string) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall {
7285 c.urlParams_.Set("requestId", requestId)
7286 return c
7287 }
7288
7289 // Fields allows partial responses to be retrieved. See
7290 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7291 // details.
7292 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall {
7293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7294 return c
7295 }
7296
7297 // Context sets the context to be used in this call's Do method.
7298 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresDeleteCall {
7299 c.ctx_ = ctx
7300 return c
7301 }
7302
7303 // Header returns a http.Header that can be modified by the caller to add
7304 // headers to the request.
7305 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Header() http.Header {
7306 if c.header_ == nil {
7307 c.header_ = make(http.Header)
7308 }
7309 return c.header_
7310 }
7311
7312 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) doRequest(alt string) (*http.Response, error) {
7313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7314 c.urlParams_.Set("alt", alt)
7315 c.urlParams_.Set("prettyPrint", "false")
7316 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7317 urls += "?" + c.urlParams_.Encode()
7318 req, err := http.NewRequest("DELETE", urls, nil)
7319 if err != nil {
7320 return nil, err
7321 }
7322 req.Header = reqHeaders
7323 googleapi.Expand(req.URL, map[string]string{
7324 "name": c.name,
7325 })
7326 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.delete", "request", internallog.HTTPRequest(req, nil))
7327 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7328 }
7329
7330 // Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.delete" call.
7331 // Any non-2xx status code is an error. Response headers are in either
7332 // *Operation.ServerResponse.Header or (if a response was returned at all) in
7333 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7334 // whether the returned error was because http.StatusNotModified was returned.
7335 func (c *ProjectsLocationsCloudExadataInfrastructuresDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7336 gensupport.SetOptions(c.urlParams_, opts...)
7337 res, err := c.doRequest("json")
7338 if res != nil && res.StatusCode == http.StatusNotModified {
7339 if res.Body != nil {
7340 res.Body.Close()
7341 }
7342 return nil, gensupport.WrapError(&googleapi.Error{
7343 Code: res.StatusCode,
7344 Header: res.Header,
7345 })
7346 }
7347 if err != nil {
7348 return nil, err
7349 }
7350 defer googleapi.CloseBody(res)
7351 if err := googleapi.CheckResponse(res); err != nil {
7352 return nil, gensupport.WrapError(err)
7353 }
7354 ret := &Operation{
7355 ServerResponse: googleapi.ServerResponse{
7356 Header: res.Header,
7357 HTTPStatusCode: res.StatusCode,
7358 },
7359 }
7360 target := &ret
7361 b, err := gensupport.DecodeResponseBytes(target, res)
7362 if err != nil {
7363 return nil, err
7364 }
7365 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.delete", "response", internallog.HTTPResponse(res, b))
7366 return ret, nil
7367 }
7368
7369 type ProjectsLocationsCloudExadataInfrastructuresGetCall struct {
7370 s *Service
7371 name string
7372 urlParams_ gensupport.URLParams
7373 ifNoneMatch_ string
7374 ctx_ context.Context
7375 header_ http.Header
7376 }
7377
7378 // Get: Gets details of a single Exadata Infrastructure.
7379 //
7380 // - name: The name of the Cloud Exadata Infrastructure in the following
7381 // format:
7382 // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_
7383 // exadata_infrastructure}.
7384 func (r *ProjectsLocationsCloudExadataInfrastructuresService) Get(name string) *ProjectsLocationsCloudExadataInfrastructuresGetCall {
7385 c := &ProjectsLocationsCloudExadataInfrastructuresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7386 c.name = name
7387 return c
7388 }
7389
7390 // Fields allows partial responses to be retrieved. See
7391 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7392 // details.
7393 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresGetCall {
7394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7395 return c
7396 }
7397
7398 // IfNoneMatch sets an optional parameter which makes the operation fail if the
7399 // object's ETag matches the given value. This is useful for getting updates
7400 // only after the object has changed since the last request.
7401 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresGetCall {
7402 c.ifNoneMatch_ = entityTag
7403 return c
7404 }
7405
7406 // Context sets the context to be used in this call's Do method.
7407 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresGetCall {
7408 c.ctx_ = ctx
7409 return c
7410 }
7411
7412 // Header returns a http.Header that can be modified by the caller to add
7413 // headers to the request.
7414 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Header() http.Header {
7415 if c.header_ == nil {
7416 c.header_ = make(http.Header)
7417 }
7418 return c.header_
7419 }
7420
7421 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) doRequest(alt string) (*http.Response, error) {
7422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7423 if c.ifNoneMatch_ != "" {
7424 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7425 }
7426 c.urlParams_.Set("alt", alt)
7427 c.urlParams_.Set("prettyPrint", "false")
7428 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7429 urls += "?" + c.urlParams_.Encode()
7430 req, err := http.NewRequest("GET", urls, nil)
7431 if err != nil {
7432 return nil, err
7433 }
7434 req.Header = reqHeaders
7435 googleapi.Expand(req.URL, map[string]string{
7436 "name": c.name,
7437 })
7438 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.get", "request", internallog.HTTPRequest(req, nil))
7439 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7440 }
7441
7442 // Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.get" call.
7443 // Any non-2xx status code is an error. Response headers are in either
7444 // *CloudExadataInfrastructure.ServerResponse.Header or (if a response was
7445 // returned at all) in error.(*googleapi.Error).Header. Use
7446 // googleapi.IsNotModified to check whether the returned error was because
7447 // http.StatusNotModified was returned.
7448 func (c *ProjectsLocationsCloudExadataInfrastructuresGetCall) Do(opts ...googleapi.CallOption) (*CloudExadataInfrastructure, error) {
7449 gensupport.SetOptions(c.urlParams_, opts...)
7450 res, err := c.doRequest("json")
7451 if res != nil && res.StatusCode == http.StatusNotModified {
7452 if res.Body != nil {
7453 res.Body.Close()
7454 }
7455 return nil, gensupport.WrapError(&googleapi.Error{
7456 Code: res.StatusCode,
7457 Header: res.Header,
7458 })
7459 }
7460 if err != nil {
7461 return nil, err
7462 }
7463 defer googleapi.CloseBody(res)
7464 if err := googleapi.CheckResponse(res); err != nil {
7465 return nil, gensupport.WrapError(err)
7466 }
7467 ret := &CloudExadataInfrastructure{
7468 ServerResponse: googleapi.ServerResponse{
7469 Header: res.Header,
7470 HTTPStatusCode: res.StatusCode,
7471 },
7472 }
7473 target := &ret
7474 b, err := gensupport.DecodeResponseBytes(target, res)
7475 if err != nil {
7476 return nil, err
7477 }
7478 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.get", "response", internallog.HTTPResponse(res, b))
7479 return ret, nil
7480 }
7481
7482 type ProjectsLocationsCloudExadataInfrastructuresListCall struct {
7483 s *Service
7484 parent string
7485 urlParams_ gensupport.URLParams
7486 ifNoneMatch_ string
7487 ctx_ context.Context
7488 header_ http.Header
7489 }
7490
7491 // List: Lists Exadata Infrastructures in a given project and location.
7492 //
7493 // - parent: The parent value for CloudExadataInfrastructure in the following
7494 // format: projects/{project}/locations/{location}.
7495 func (r *ProjectsLocationsCloudExadataInfrastructuresService) List(parent string) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7496 c := &ProjectsLocationsCloudExadataInfrastructuresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7497 c.parent = parent
7498 return c
7499 }
7500
7501 // Filter sets the optional parameter "filter": An expression for filtering the
7502 // results of the request.
7503 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Filter(filter string) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7504 c.urlParams_.Set("filter", filter)
7505 return c
7506 }
7507
7508 // OrderBy sets the optional parameter "orderBy": An expression for ordering
7509 // the results of the request.
7510 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) OrderBy(orderBy string) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7511 c.urlParams_.Set("orderBy", orderBy)
7512 return c
7513 }
7514
7515 // PageSize sets the optional parameter "pageSize": The maximum number of items
7516 // to return. If unspecified, at most 50 Exadata infrastructures will be
7517 // returned. The maximum value is 1000; values above 1000 will be coerced to
7518 // 1000.
7519 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) PageSize(pageSize int64) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7520 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7521 return c
7522 }
7523
7524 // PageToken sets the optional parameter "pageToken": A token identifying a
7525 // page of results the server should return.
7526 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) PageToken(pageToken string) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7527 c.urlParams_.Set("pageToken", pageToken)
7528 return c
7529 }
7530
7531 // Fields allows partial responses to be retrieved. See
7532 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7533 // details.
7534 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7535 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7536 return c
7537 }
7538
7539 // IfNoneMatch sets an optional parameter which makes the operation fail if the
7540 // object's ETag matches the given value. This is useful for getting updates
7541 // only after the object has changed since the last request.
7542 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7543 c.ifNoneMatch_ = entityTag
7544 return c
7545 }
7546
7547 // Context sets the context to be used in this call's Do method.
7548 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresListCall {
7549 c.ctx_ = ctx
7550 return c
7551 }
7552
7553 // Header returns a http.Header that can be modified by the caller to add
7554 // headers to the request.
7555 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Header() http.Header {
7556 if c.header_ == nil {
7557 c.header_ = make(http.Header)
7558 }
7559 return c.header_
7560 }
7561
7562 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) doRequest(alt string) (*http.Response, error) {
7563 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7564 if c.ifNoneMatch_ != "" {
7565 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7566 }
7567 c.urlParams_.Set("alt", alt)
7568 c.urlParams_.Set("prettyPrint", "false")
7569 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudExadataInfrastructures")
7570 urls += "?" + c.urlParams_.Encode()
7571 req, err := http.NewRequest("GET", urls, nil)
7572 if err != nil {
7573 return nil, err
7574 }
7575 req.Header = reqHeaders
7576 googleapi.Expand(req.URL, map[string]string{
7577 "parent": c.parent,
7578 })
7579 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.list", "request", internallog.HTTPRequest(req, nil))
7580 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7581 }
7582
7583 // Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.list" call.
7584 // Any non-2xx status code is an error. Response headers are in either
7585 // *ListCloudExadataInfrastructuresResponse.ServerResponse.Header or (if a
7586 // response was returned at all) in error.(*googleapi.Error).Header. Use
7587 // googleapi.IsNotModified to check whether the returned error was because
7588 // http.StatusNotModified was returned.
7589 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Do(opts ...googleapi.CallOption) (*ListCloudExadataInfrastructuresResponse, error) {
7590 gensupport.SetOptions(c.urlParams_, opts...)
7591 res, err := c.doRequest("json")
7592 if res != nil && res.StatusCode == http.StatusNotModified {
7593 if res.Body != nil {
7594 res.Body.Close()
7595 }
7596 return nil, gensupport.WrapError(&googleapi.Error{
7597 Code: res.StatusCode,
7598 Header: res.Header,
7599 })
7600 }
7601 if err != nil {
7602 return nil, err
7603 }
7604 defer googleapi.CloseBody(res)
7605 if err := googleapi.CheckResponse(res); err != nil {
7606 return nil, gensupport.WrapError(err)
7607 }
7608 ret := &ListCloudExadataInfrastructuresResponse{
7609 ServerResponse: googleapi.ServerResponse{
7610 Header: res.Header,
7611 HTTPStatusCode: res.StatusCode,
7612 },
7613 }
7614 target := &ret
7615 b, err := gensupport.DecodeResponseBytes(target, res)
7616 if err != nil {
7617 return nil, err
7618 }
7619 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.list", "response", internallog.HTTPResponse(res, b))
7620 return ret, nil
7621 }
7622
7623 // Pages invokes f for each page of results.
7624 // A non-nil error returned from f will halt the iteration.
7625 // The provided context supersedes any context provided to the Context method.
7626 func (c *ProjectsLocationsCloudExadataInfrastructuresListCall) Pages(ctx context.Context, f func(*ListCloudExadataInfrastructuresResponse) error) error {
7627 c.ctx_ = ctx
7628 defer c.PageToken(c.urlParams_.Get("pageToken"))
7629 for {
7630 x, err := c.Do()
7631 if err != nil {
7632 return err
7633 }
7634 if err := f(x); err != nil {
7635 return err
7636 }
7637 if x.NextPageToken == "" {
7638 return nil
7639 }
7640 c.PageToken(x.NextPageToken)
7641 }
7642 }
7643
7644 type ProjectsLocationsCloudExadataInfrastructuresDbServersListCall struct {
7645 s *Service
7646 parent string
7647 urlParams_ gensupport.URLParams
7648 ifNoneMatch_ string
7649 ctx_ context.Context
7650 header_ http.Header
7651 }
7652
7653 // List: Lists the database servers of an Exadata Infrastructure instance.
7654 //
7655 // - parent: The parent value for database server in the following format:
7656 // projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudE
7657 // xadataInfrastructure}.
7658 func (r *ProjectsLocationsCloudExadataInfrastructuresDbServersService) List(parent string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7659 c := &ProjectsLocationsCloudExadataInfrastructuresDbServersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7660 c.parent = parent
7661 return c
7662 }
7663
7664 // PageSize sets the optional parameter "pageSize": The maximum number of items
7665 // to return. If unspecified, a maximum of 50 db servers will be returned. The
7666 // maximum value is 1000; values above 1000 will be reset to 1000.
7667 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) PageSize(pageSize int64) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7668 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7669 return c
7670 }
7671
7672 // PageToken sets the optional parameter "pageToken": A token identifying a
7673 // page of results the server should return.
7674 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) PageToken(pageToken string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7675 c.urlParams_.Set("pageToken", pageToken)
7676 return c
7677 }
7678
7679 // Fields allows partial responses to be retrieved. See
7680 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7681 // details.
7682 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7684 return c
7685 }
7686
7687 // IfNoneMatch sets an optional parameter which makes the operation fail if the
7688 // object's ETag matches the given value. This is useful for getting updates
7689 // only after the object has changed since the last request.
7690 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7691 c.ifNoneMatch_ = entityTag
7692 return c
7693 }
7694
7695 // Context sets the context to be used in this call's Do method.
7696 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Context(ctx context.Context) *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall {
7697 c.ctx_ = ctx
7698 return c
7699 }
7700
7701 // Header returns a http.Header that can be modified by the caller to add
7702 // headers to the request.
7703 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Header() http.Header {
7704 if c.header_ == nil {
7705 c.header_ = make(http.Header)
7706 }
7707 return c.header_
7708 }
7709
7710 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) doRequest(alt string) (*http.Response, error) {
7711 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7712 if c.ifNoneMatch_ != "" {
7713 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7714 }
7715 c.urlParams_.Set("alt", alt)
7716 c.urlParams_.Set("prettyPrint", "false")
7717 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbServers")
7718 urls += "?" + c.urlParams_.Encode()
7719 req, err := http.NewRequest("GET", urls, nil)
7720 if err != nil {
7721 return nil, err
7722 }
7723 req.Header = reqHeaders
7724 googleapi.Expand(req.URL, map[string]string{
7725 "parent": c.parent,
7726 })
7727 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers.list", "request", internallog.HTTPRequest(req, nil))
7728 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7729 }
7730
7731 // Do executes the "oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers.list" call.
7732 // Any non-2xx status code is an error. Response headers are in either
7733 // *ListDbServersResponse.ServerResponse.Header or (if a response was returned
7734 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7735 // check whether the returned error was because http.StatusNotModified was
7736 // returned.
7737 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Do(opts ...googleapi.CallOption) (*ListDbServersResponse, error) {
7738 gensupport.SetOptions(c.urlParams_, opts...)
7739 res, err := c.doRequest("json")
7740 if res != nil && res.StatusCode == http.StatusNotModified {
7741 if res.Body != nil {
7742 res.Body.Close()
7743 }
7744 return nil, gensupport.WrapError(&googleapi.Error{
7745 Code: res.StatusCode,
7746 Header: res.Header,
7747 })
7748 }
7749 if err != nil {
7750 return nil, err
7751 }
7752 defer googleapi.CloseBody(res)
7753 if err := googleapi.CheckResponse(res); err != nil {
7754 return nil, gensupport.WrapError(err)
7755 }
7756 ret := &ListDbServersResponse{
7757 ServerResponse: googleapi.ServerResponse{
7758 Header: res.Header,
7759 HTTPStatusCode: res.StatusCode,
7760 },
7761 }
7762 target := &ret
7763 b, err := gensupport.DecodeResponseBytes(target, res)
7764 if err != nil {
7765 return nil, err
7766 }
7767 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudExadataInfrastructures.dbServers.list", "response", internallog.HTTPResponse(res, b))
7768 return ret, nil
7769 }
7770
7771 // Pages invokes f for each page of results.
7772 // A non-nil error returned from f will halt the iteration.
7773 // The provided context supersedes any context provided to the Context method.
7774 func (c *ProjectsLocationsCloudExadataInfrastructuresDbServersListCall) Pages(ctx context.Context, f func(*ListDbServersResponse) error) error {
7775 c.ctx_ = ctx
7776 defer c.PageToken(c.urlParams_.Get("pageToken"))
7777 for {
7778 x, err := c.Do()
7779 if err != nil {
7780 return err
7781 }
7782 if err := f(x); err != nil {
7783 return err
7784 }
7785 if x.NextPageToken == "" {
7786 return nil
7787 }
7788 c.PageToken(x.NextPageToken)
7789 }
7790 }
7791
7792 type ProjectsLocationsCloudVmClustersCreateCall struct {
7793 s *Service
7794 parent string
7795 cloudvmcluster *CloudVmCluster
7796 urlParams_ gensupport.URLParams
7797 ctx_ context.Context
7798 header_ http.Header
7799 }
7800
7801 // Create: Creates a new VM Cluster in a given project and location.
7802 //
7803 // - parent: The name of the parent in the following format:
7804 // projects/{project}/locations/{location}.
7805 func (r *ProjectsLocationsCloudVmClustersService) Create(parent string, cloudvmcluster *CloudVmCluster) *ProjectsLocationsCloudVmClustersCreateCall {
7806 c := &ProjectsLocationsCloudVmClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7807 c.parent = parent
7808 c.cloudvmcluster = cloudvmcluster
7809 return c
7810 }
7811
7812 // CloudVmClusterId sets the optional parameter "cloudVmClusterId": Required.
7813 // The ID of the VM Cluster to create. This value is restricted to (^a-z
7814 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
7815 // length. The value must start with a letter and end with a letter or a
7816 // number.
7817 func (c *ProjectsLocationsCloudVmClustersCreateCall) CloudVmClusterId(cloudVmClusterId string) *ProjectsLocationsCloudVmClustersCreateCall {
7818 c.urlParams_.Set("cloudVmClusterId", cloudVmClusterId)
7819 return c
7820 }
7821
7822 // RequestId sets the optional parameter "requestId": An optional ID to
7823 // identify the request. This value is used to identify duplicate requests. If
7824 // you make a request with the same request ID and the original request is
7825 // still in progress or completed, the server ignores the second request. This
7826 // prevents clients from accidentally creating duplicate commitments. The
7827 // request ID must be a valid UUID with the exception that zero UUID is not
7828 // supported (00000000-0000-0000-0000-000000000000).
7829 func (c *ProjectsLocationsCloudVmClustersCreateCall) RequestId(requestId string) *ProjectsLocationsCloudVmClustersCreateCall {
7830 c.urlParams_.Set("requestId", requestId)
7831 return c
7832 }
7833
7834 // Fields allows partial responses to be retrieved. See
7835 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7836 // details.
7837 func (c *ProjectsLocationsCloudVmClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersCreateCall {
7838 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7839 return c
7840 }
7841
7842 // Context sets the context to be used in this call's Do method.
7843 func (c *ProjectsLocationsCloudVmClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersCreateCall {
7844 c.ctx_ = ctx
7845 return c
7846 }
7847
7848 // Header returns a http.Header that can be modified by the caller to add
7849 // headers to the request.
7850 func (c *ProjectsLocationsCloudVmClustersCreateCall) Header() http.Header {
7851 if c.header_ == nil {
7852 c.header_ = make(http.Header)
7853 }
7854 return c.header_
7855 }
7856
7857 func (c *ProjectsLocationsCloudVmClustersCreateCall) doRequest(alt string) (*http.Response, error) {
7858 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7859 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.cloudvmcluster)
7860 if err != nil {
7861 return nil, err
7862 }
7863 c.urlParams_.Set("alt", alt)
7864 c.urlParams_.Set("prettyPrint", "false")
7865 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudVmClusters")
7866 urls += "?" + c.urlParams_.Encode()
7867 req, err := http.NewRequest("POST", urls, body)
7868 if err != nil {
7869 return nil, err
7870 }
7871 req.Header = reqHeaders
7872 googleapi.Expand(req.URL, map[string]string{
7873 "parent": c.parent,
7874 })
7875 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.create", "request", internallog.HTTPRequest(req, body.Bytes()))
7876 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7877 }
7878
7879 // Do executes the "oracledatabase.projects.locations.cloudVmClusters.create" call.
7880 // Any non-2xx status code is an error. Response headers are in either
7881 // *Operation.ServerResponse.Header or (if a response was returned at all) in
7882 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7883 // whether the returned error was because http.StatusNotModified was returned.
7884 func (c *ProjectsLocationsCloudVmClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
7885 gensupport.SetOptions(c.urlParams_, opts...)
7886 res, err := c.doRequest("json")
7887 if res != nil && res.StatusCode == http.StatusNotModified {
7888 if res.Body != nil {
7889 res.Body.Close()
7890 }
7891 return nil, gensupport.WrapError(&googleapi.Error{
7892 Code: res.StatusCode,
7893 Header: res.Header,
7894 })
7895 }
7896 if err != nil {
7897 return nil, err
7898 }
7899 defer googleapi.CloseBody(res)
7900 if err := googleapi.CheckResponse(res); err != nil {
7901 return nil, gensupport.WrapError(err)
7902 }
7903 ret := &Operation{
7904 ServerResponse: googleapi.ServerResponse{
7905 Header: res.Header,
7906 HTTPStatusCode: res.StatusCode,
7907 },
7908 }
7909 target := &ret
7910 b, err := gensupport.DecodeResponseBytes(target, res)
7911 if err != nil {
7912 return nil, err
7913 }
7914 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.create", "response", internallog.HTTPResponse(res, b))
7915 return ret, nil
7916 }
7917
7918 type ProjectsLocationsCloudVmClustersDeleteCall struct {
7919 s *Service
7920 name string
7921 urlParams_ gensupport.URLParams
7922 ctx_ context.Context
7923 header_ http.Header
7924 }
7925
7926 // Delete: Deletes a single VM Cluster.
7927 //
7928 // - name: The name of the Cloud VM Cluster in the following format:
7929 // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
7930 func (r *ProjectsLocationsCloudVmClustersService) Delete(name string) *ProjectsLocationsCloudVmClustersDeleteCall {
7931 c := &ProjectsLocationsCloudVmClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7932 c.name = name
7933 return c
7934 }
7935
7936 // Force sets the optional parameter "force": If set to true, all child
7937 // resources for the VM Cluster will be deleted. A VM Cluster can only be
7938 // deleted once all its child resources have been deleted.
7939 func (c *ProjectsLocationsCloudVmClustersDeleteCall) Force(force bool) *ProjectsLocationsCloudVmClustersDeleteCall {
7940 c.urlParams_.Set("force", fmt.Sprint(force))
7941 return c
7942 }
7943
7944 // RequestId sets the optional parameter "requestId": An optional ID to
7945 // identify the request. This value is used to identify duplicate requests. If
7946 // you make a request with the same request ID and the original request is
7947 // still in progress or completed, the server ignores the second request. This
7948 // prevents clients from accidentally creating duplicate commitments. The
7949 // request ID must be a valid UUID with the exception that zero UUID is not
7950 // supported (00000000-0000-0000-0000-000000000000).
7951 func (c *ProjectsLocationsCloudVmClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsCloudVmClustersDeleteCall {
7952 c.urlParams_.Set("requestId", requestId)
7953 return c
7954 }
7955
7956 // Fields allows partial responses to be retrieved. See
7957 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
7958 // details.
7959 func (c *ProjectsLocationsCloudVmClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersDeleteCall {
7960 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7961 return c
7962 }
7963
7964 // Context sets the context to be used in this call's Do method.
7965 func (c *ProjectsLocationsCloudVmClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersDeleteCall {
7966 c.ctx_ = ctx
7967 return c
7968 }
7969
7970 // Header returns a http.Header that can be modified by the caller to add
7971 // headers to the request.
7972 func (c *ProjectsLocationsCloudVmClustersDeleteCall) Header() http.Header {
7973 if c.header_ == nil {
7974 c.header_ = make(http.Header)
7975 }
7976 return c.header_
7977 }
7978
7979 func (c *ProjectsLocationsCloudVmClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
7980 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7981 c.urlParams_.Set("alt", alt)
7982 c.urlParams_.Set("prettyPrint", "false")
7983 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7984 urls += "?" + c.urlParams_.Encode()
7985 req, err := http.NewRequest("DELETE", urls, nil)
7986 if err != nil {
7987 return nil, err
7988 }
7989 req.Header = reqHeaders
7990 googleapi.Expand(req.URL, map[string]string{
7991 "name": c.name,
7992 })
7993 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.delete", "request", internallog.HTTPRequest(req, nil))
7994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7995 }
7996
7997 // Do executes the "oracledatabase.projects.locations.cloudVmClusters.delete" call.
7998 // Any non-2xx status code is an error. Response headers are in either
7999 // *Operation.ServerResponse.Header or (if a response was returned at all) in
8000 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8001 // whether the returned error was because http.StatusNotModified was returned.
8002 func (c *ProjectsLocationsCloudVmClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
8003 gensupport.SetOptions(c.urlParams_, opts...)
8004 res, err := c.doRequest("json")
8005 if res != nil && res.StatusCode == http.StatusNotModified {
8006 if res.Body != nil {
8007 res.Body.Close()
8008 }
8009 return nil, gensupport.WrapError(&googleapi.Error{
8010 Code: res.StatusCode,
8011 Header: res.Header,
8012 })
8013 }
8014 if err != nil {
8015 return nil, err
8016 }
8017 defer googleapi.CloseBody(res)
8018 if err := googleapi.CheckResponse(res); err != nil {
8019 return nil, gensupport.WrapError(err)
8020 }
8021 ret := &Operation{
8022 ServerResponse: googleapi.ServerResponse{
8023 Header: res.Header,
8024 HTTPStatusCode: res.StatusCode,
8025 },
8026 }
8027 target := &ret
8028 b, err := gensupport.DecodeResponseBytes(target, res)
8029 if err != nil {
8030 return nil, err
8031 }
8032 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.delete", "response", internallog.HTTPResponse(res, b))
8033 return ret, nil
8034 }
8035
8036 type ProjectsLocationsCloudVmClustersGetCall struct {
8037 s *Service
8038 name string
8039 urlParams_ gensupport.URLParams
8040 ifNoneMatch_ string
8041 ctx_ context.Context
8042 header_ http.Header
8043 }
8044
8045 // Get: Gets details of a single VM Cluster.
8046 //
8047 // - name: The name of the Cloud VM Cluster in the following format:
8048 // projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}.
8049 func (r *ProjectsLocationsCloudVmClustersService) Get(name string) *ProjectsLocationsCloudVmClustersGetCall {
8050 c := &ProjectsLocationsCloudVmClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8051 c.name = name
8052 return c
8053 }
8054
8055 // Fields allows partial responses to be retrieved. See
8056 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8057 // details.
8058 func (c *ProjectsLocationsCloudVmClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersGetCall {
8059 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8060 return c
8061 }
8062
8063 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8064 // object's ETag matches the given value. This is useful for getting updates
8065 // only after the object has changed since the last request.
8066 func (c *ProjectsLocationsCloudVmClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersGetCall {
8067 c.ifNoneMatch_ = entityTag
8068 return c
8069 }
8070
8071 // Context sets the context to be used in this call's Do method.
8072 func (c *ProjectsLocationsCloudVmClustersGetCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersGetCall {
8073 c.ctx_ = ctx
8074 return c
8075 }
8076
8077 // Header returns a http.Header that can be modified by the caller to add
8078 // headers to the request.
8079 func (c *ProjectsLocationsCloudVmClustersGetCall) Header() http.Header {
8080 if c.header_ == nil {
8081 c.header_ = make(http.Header)
8082 }
8083 return c.header_
8084 }
8085
8086 func (c *ProjectsLocationsCloudVmClustersGetCall) doRequest(alt string) (*http.Response, error) {
8087 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8088 if c.ifNoneMatch_ != "" {
8089 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8090 }
8091 c.urlParams_.Set("alt", alt)
8092 c.urlParams_.Set("prettyPrint", "false")
8093 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8094 urls += "?" + c.urlParams_.Encode()
8095 req, err := http.NewRequest("GET", urls, nil)
8096 if err != nil {
8097 return nil, err
8098 }
8099 req.Header = reqHeaders
8100 googleapi.Expand(req.URL, map[string]string{
8101 "name": c.name,
8102 })
8103 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.get", "request", internallog.HTTPRequest(req, nil))
8104 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8105 }
8106
8107 // Do executes the "oracledatabase.projects.locations.cloudVmClusters.get" call.
8108 // Any non-2xx status code is an error. Response headers are in either
8109 // *CloudVmCluster.ServerResponse.Header or (if a response was returned at all)
8110 // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8111 // whether the returned error was because http.StatusNotModified was returned.
8112 func (c *ProjectsLocationsCloudVmClustersGetCall) Do(opts ...googleapi.CallOption) (*CloudVmCluster, error) {
8113 gensupport.SetOptions(c.urlParams_, opts...)
8114 res, err := c.doRequest("json")
8115 if res != nil && res.StatusCode == http.StatusNotModified {
8116 if res.Body != nil {
8117 res.Body.Close()
8118 }
8119 return nil, gensupport.WrapError(&googleapi.Error{
8120 Code: res.StatusCode,
8121 Header: res.Header,
8122 })
8123 }
8124 if err != nil {
8125 return nil, err
8126 }
8127 defer googleapi.CloseBody(res)
8128 if err := googleapi.CheckResponse(res); err != nil {
8129 return nil, gensupport.WrapError(err)
8130 }
8131 ret := &CloudVmCluster{
8132 ServerResponse: googleapi.ServerResponse{
8133 Header: res.Header,
8134 HTTPStatusCode: res.StatusCode,
8135 },
8136 }
8137 target := &ret
8138 b, err := gensupport.DecodeResponseBytes(target, res)
8139 if err != nil {
8140 return nil, err
8141 }
8142 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.get", "response", internallog.HTTPResponse(res, b))
8143 return ret, nil
8144 }
8145
8146 type ProjectsLocationsCloudVmClustersListCall struct {
8147 s *Service
8148 parent string
8149 urlParams_ gensupport.URLParams
8150 ifNoneMatch_ string
8151 ctx_ context.Context
8152 header_ http.Header
8153 }
8154
8155 // List: Lists the VM Clusters in a given project and location.
8156 //
8157 // - parent: The name of the parent in the following format:
8158 // projects/{project}/locations/{location}.
8159 func (r *ProjectsLocationsCloudVmClustersService) List(parent string) *ProjectsLocationsCloudVmClustersListCall {
8160 c := &ProjectsLocationsCloudVmClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8161 c.parent = parent
8162 return c
8163 }
8164
8165 // Filter sets the optional parameter "filter": An expression for filtering the
8166 // results of the request.
8167 func (c *ProjectsLocationsCloudVmClustersListCall) Filter(filter string) *ProjectsLocationsCloudVmClustersListCall {
8168 c.urlParams_.Set("filter", filter)
8169 return c
8170 }
8171
8172 // PageSize sets the optional parameter "pageSize": The number of VM clusters
8173 // to return. If unspecified, at most 50 VM clusters will be returned. The
8174 // maximum value is 1,000.
8175 func (c *ProjectsLocationsCloudVmClustersListCall) PageSize(pageSize int64) *ProjectsLocationsCloudVmClustersListCall {
8176 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8177 return c
8178 }
8179
8180 // PageToken sets the optional parameter "pageToken": A token identifying the
8181 // page of results the server returns.
8182 func (c *ProjectsLocationsCloudVmClustersListCall) PageToken(pageToken string) *ProjectsLocationsCloudVmClustersListCall {
8183 c.urlParams_.Set("pageToken", pageToken)
8184 return c
8185 }
8186
8187 // Fields allows partial responses to be retrieved. See
8188 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8189 // details.
8190 func (c *ProjectsLocationsCloudVmClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersListCall {
8191 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8192 return c
8193 }
8194
8195 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8196 // object's ETag matches the given value. This is useful for getting updates
8197 // only after the object has changed since the last request.
8198 func (c *ProjectsLocationsCloudVmClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersListCall {
8199 c.ifNoneMatch_ = entityTag
8200 return c
8201 }
8202
8203 // Context sets the context to be used in this call's Do method.
8204 func (c *ProjectsLocationsCloudVmClustersListCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersListCall {
8205 c.ctx_ = ctx
8206 return c
8207 }
8208
8209 // Header returns a http.Header that can be modified by the caller to add
8210 // headers to the request.
8211 func (c *ProjectsLocationsCloudVmClustersListCall) Header() http.Header {
8212 if c.header_ == nil {
8213 c.header_ = make(http.Header)
8214 }
8215 return c.header_
8216 }
8217
8218 func (c *ProjectsLocationsCloudVmClustersListCall) doRequest(alt string) (*http.Response, error) {
8219 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8220 if c.ifNoneMatch_ != "" {
8221 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8222 }
8223 c.urlParams_.Set("alt", alt)
8224 c.urlParams_.Set("prettyPrint", "false")
8225 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/cloudVmClusters")
8226 urls += "?" + c.urlParams_.Encode()
8227 req, err := http.NewRequest("GET", urls, nil)
8228 if err != nil {
8229 return nil, err
8230 }
8231 req.Header = reqHeaders
8232 googleapi.Expand(req.URL, map[string]string{
8233 "parent": c.parent,
8234 })
8235 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.list", "request", internallog.HTTPRequest(req, nil))
8236 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8237 }
8238
8239 // Do executes the "oracledatabase.projects.locations.cloudVmClusters.list" call.
8240 // Any non-2xx status code is an error. Response headers are in either
8241 // *ListCloudVmClustersResponse.ServerResponse.Header or (if a response was
8242 // returned at all) in error.(*googleapi.Error).Header. Use
8243 // googleapi.IsNotModified to check whether the returned error was because
8244 // http.StatusNotModified was returned.
8245 func (c *ProjectsLocationsCloudVmClustersListCall) Do(opts ...googleapi.CallOption) (*ListCloudVmClustersResponse, error) {
8246 gensupport.SetOptions(c.urlParams_, opts...)
8247 res, err := c.doRequest("json")
8248 if res != nil && res.StatusCode == http.StatusNotModified {
8249 if res.Body != nil {
8250 res.Body.Close()
8251 }
8252 return nil, gensupport.WrapError(&googleapi.Error{
8253 Code: res.StatusCode,
8254 Header: res.Header,
8255 })
8256 }
8257 if err != nil {
8258 return nil, err
8259 }
8260 defer googleapi.CloseBody(res)
8261 if err := googleapi.CheckResponse(res); err != nil {
8262 return nil, gensupport.WrapError(err)
8263 }
8264 ret := &ListCloudVmClustersResponse{
8265 ServerResponse: googleapi.ServerResponse{
8266 Header: res.Header,
8267 HTTPStatusCode: res.StatusCode,
8268 },
8269 }
8270 target := &ret
8271 b, err := gensupport.DecodeResponseBytes(target, res)
8272 if err != nil {
8273 return nil, err
8274 }
8275 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.list", "response", internallog.HTTPResponse(res, b))
8276 return ret, nil
8277 }
8278
8279 // Pages invokes f for each page of results.
8280 // A non-nil error returned from f will halt the iteration.
8281 // The provided context supersedes any context provided to the Context method.
8282 func (c *ProjectsLocationsCloudVmClustersListCall) Pages(ctx context.Context, f func(*ListCloudVmClustersResponse) error) error {
8283 c.ctx_ = ctx
8284 defer c.PageToken(c.urlParams_.Get("pageToken"))
8285 for {
8286 x, err := c.Do()
8287 if err != nil {
8288 return err
8289 }
8290 if err := f(x); err != nil {
8291 return err
8292 }
8293 if x.NextPageToken == "" {
8294 return nil
8295 }
8296 c.PageToken(x.NextPageToken)
8297 }
8298 }
8299
8300 type ProjectsLocationsCloudVmClustersDbNodesListCall struct {
8301 s *Service
8302 parent string
8303 urlParams_ gensupport.URLParams
8304 ifNoneMatch_ string
8305 ctx_ context.Context
8306 header_ http.Header
8307 }
8308
8309 // List: Lists the database nodes of a VM Cluster.
8310 //
8311 // - parent: The parent value for database node in the following format:
8312 // projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
8313 // .
8314 func (r *ProjectsLocationsCloudVmClustersDbNodesService) List(parent string) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8315 c := &ProjectsLocationsCloudVmClustersDbNodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8316 c.parent = parent
8317 return c
8318 }
8319
8320 // PageSize sets the optional parameter "pageSize": The maximum number of items
8321 // to return. If unspecified, at most 50 db nodes will be returned. The maximum
8322 // value is 1000; values above 1000 will be coerced to 1000.
8323 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) PageSize(pageSize int64) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8324 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8325 return c
8326 }
8327
8328 // PageToken sets the optional parameter "pageToken": A token identifying a
8329 // page of results the node should return.
8330 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) PageToken(pageToken string) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8331 c.urlParams_.Set("pageToken", pageToken)
8332 return c
8333 }
8334
8335 // Fields allows partial responses to be retrieved. See
8336 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8337 // details.
8338 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8340 return c
8341 }
8342
8343 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8344 // object's ETag matches the given value. This is useful for getting updates
8345 // only after the object has changed since the last request.
8346 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8347 c.ifNoneMatch_ = entityTag
8348 return c
8349 }
8350
8351 // Context sets the context to be used in this call's Do method.
8352 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Context(ctx context.Context) *ProjectsLocationsCloudVmClustersDbNodesListCall {
8353 c.ctx_ = ctx
8354 return c
8355 }
8356
8357 // Header returns a http.Header that can be modified by the caller to add
8358 // headers to the request.
8359 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Header() http.Header {
8360 if c.header_ == nil {
8361 c.header_ = make(http.Header)
8362 }
8363 return c.header_
8364 }
8365
8366 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) doRequest(alt string) (*http.Response, error) {
8367 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8368 if c.ifNoneMatch_ != "" {
8369 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8370 }
8371 c.urlParams_.Set("alt", alt)
8372 c.urlParams_.Set("prettyPrint", "false")
8373 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbNodes")
8374 urls += "?" + c.urlParams_.Encode()
8375 req, err := http.NewRequest("GET", urls, nil)
8376 if err != nil {
8377 return nil, err
8378 }
8379 req.Header = reqHeaders
8380 googleapi.Expand(req.URL, map[string]string{
8381 "parent": c.parent,
8382 })
8383 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.dbNodes.list", "request", internallog.HTTPRequest(req, nil))
8384 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8385 }
8386
8387 // Do executes the "oracledatabase.projects.locations.cloudVmClusters.dbNodes.list" call.
8388 // Any non-2xx status code is an error. Response headers are in either
8389 // *ListDbNodesResponse.ServerResponse.Header or (if a response was returned at
8390 // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8391 // check whether the returned error was because http.StatusNotModified was
8392 // returned.
8393 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Do(opts ...googleapi.CallOption) (*ListDbNodesResponse, error) {
8394 gensupport.SetOptions(c.urlParams_, opts...)
8395 res, err := c.doRequest("json")
8396 if res != nil && res.StatusCode == http.StatusNotModified {
8397 if res.Body != nil {
8398 res.Body.Close()
8399 }
8400 return nil, gensupport.WrapError(&googleapi.Error{
8401 Code: res.StatusCode,
8402 Header: res.Header,
8403 })
8404 }
8405 if err != nil {
8406 return nil, err
8407 }
8408 defer googleapi.CloseBody(res)
8409 if err := googleapi.CheckResponse(res); err != nil {
8410 return nil, gensupport.WrapError(err)
8411 }
8412 ret := &ListDbNodesResponse{
8413 ServerResponse: googleapi.ServerResponse{
8414 Header: res.Header,
8415 HTTPStatusCode: res.StatusCode,
8416 },
8417 }
8418 target := &ret
8419 b, err := gensupport.DecodeResponseBytes(target, res)
8420 if err != nil {
8421 return nil, err
8422 }
8423 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.cloudVmClusters.dbNodes.list", "response", internallog.HTTPResponse(res, b))
8424 return ret, nil
8425 }
8426
8427 // Pages invokes f for each page of results.
8428 // A non-nil error returned from f will halt the iteration.
8429 // The provided context supersedes any context provided to the Context method.
8430 func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Pages(ctx context.Context, f func(*ListDbNodesResponse) error) error {
8431 c.ctx_ = ctx
8432 defer c.PageToken(c.urlParams_.Get("pageToken"))
8433 for {
8434 x, err := c.Do()
8435 if err != nil {
8436 return err
8437 }
8438 if err := f(x); err != nil {
8439 return err
8440 }
8441 if x.NextPageToken == "" {
8442 return nil
8443 }
8444 c.PageToken(x.NextPageToken)
8445 }
8446 }
8447
8448 type ProjectsLocationsDatabaseCharacterSetsListCall struct {
8449 s *Service
8450 parent string
8451 urlParams_ gensupport.URLParams
8452 ifNoneMatch_ string
8453 ctx_ context.Context
8454 header_ http.Header
8455 }
8456
8457 // List: List DatabaseCharacterSets for the given project and location.
8458 //
8459 // - parent: The parent value for DatabaseCharacterSets in the following
8460 // format: projects/{project}/locations/{location}.
8461 func (r *ProjectsLocationsDatabaseCharacterSetsService) List(parent string) *ProjectsLocationsDatabaseCharacterSetsListCall {
8462 c := &ProjectsLocationsDatabaseCharacterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8463 c.parent = parent
8464 return c
8465 }
8466
8467 // Filter sets the optional parameter "filter": An expression for filtering the
8468 // results of the request. Only the **character_set_type** field is supported
8469 // in the following format: `character_set_type="{characterSetType}". Accepted
8470 // values include `DATABASE` and `NATIONAL`.
8471 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Filter(filter string) *ProjectsLocationsDatabaseCharacterSetsListCall {
8472 c.urlParams_.Set("filter", filter)
8473 return c
8474 }
8475
8476 // PageSize sets the optional parameter "pageSize": The maximum number of
8477 // DatabaseCharacterSets to return. The service may return fewer than this
8478 // value. If unspecified, at most 50 DatabaseCharacterSets will be returned.
8479 // The maximum value is 1000; values above 1000 will be coerced to 1000.
8480 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatabaseCharacterSetsListCall {
8481 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8482 return c
8483 }
8484
8485 // PageToken sets the optional parameter "pageToken": A page token, received
8486 // from a previous `ListDatabaseCharacterSets` call. Provide this to retrieve
8487 // the subsequent page. When paginating, all other parameters provided to
8488 // `ListDatabaseCharacterSets` must match the call that provided the page
8489 // token.
8490 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) PageToken(pageToken string) *ProjectsLocationsDatabaseCharacterSetsListCall {
8491 c.urlParams_.Set("pageToken", pageToken)
8492 return c
8493 }
8494
8495 // Fields allows partial responses to be retrieved. See
8496 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8497 // details.
8498 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabaseCharacterSetsListCall {
8499 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8500 return c
8501 }
8502
8503 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8504 // object's ETag matches the given value. This is useful for getting updates
8505 // only after the object has changed since the last request.
8506 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabaseCharacterSetsListCall {
8507 c.ifNoneMatch_ = entityTag
8508 return c
8509 }
8510
8511 // Context sets the context to be used in this call's Do method.
8512 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Context(ctx context.Context) *ProjectsLocationsDatabaseCharacterSetsListCall {
8513 c.ctx_ = ctx
8514 return c
8515 }
8516
8517 // Header returns a http.Header that can be modified by the caller to add
8518 // headers to the request.
8519 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Header() http.Header {
8520 if c.header_ == nil {
8521 c.header_ = make(http.Header)
8522 }
8523 return c.header_
8524 }
8525
8526 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) doRequest(alt string) (*http.Response, error) {
8527 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8528 if c.ifNoneMatch_ != "" {
8529 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8530 }
8531 c.urlParams_.Set("alt", alt)
8532 c.urlParams_.Set("prettyPrint", "false")
8533 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/databaseCharacterSets")
8534 urls += "?" + c.urlParams_.Encode()
8535 req, err := http.NewRequest("GET", urls, nil)
8536 if err != nil {
8537 return nil, err
8538 }
8539 req.Header = reqHeaders
8540 googleapi.Expand(req.URL, map[string]string{
8541 "parent": c.parent,
8542 })
8543 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databaseCharacterSets.list", "request", internallog.HTTPRequest(req, nil))
8544 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8545 }
8546
8547 // Do executes the "oracledatabase.projects.locations.databaseCharacterSets.list" call.
8548 // Any non-2xx status code is an error. Response headers are in either
8549 // *ListDatabaseCharacterSetsResponse.ServerResponse.Header or (if a response
8550 // was returned at all) in error.(*googleapi.Error).Header. Use
8551 // googleapi.IsNotModified to check whether the returned error was because
8552 // http.StatusNotModified was returned.
8553 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Do(opts ...googleapi.CallOption) (*ListDatabaseCharacterSetsResponse, error) {
8554 gensupport.SetOptions(c.urlParams_, opts...)
8555 res, err := c.doRequest("json")
8556 if res != nil && res.StatusCode == http.StatusNotModified {
8557 if res.Body != nil {
8558 res.Body.Close()
8559 }
8560 return nil, gensupport.WrapError(&googleapi.Error{
8561 Code: res.StatusCode,
8562 Header: res.Header,
8563 })
8564 }
8565 if err != nil {
8566 return nil, err
8567 }
8568 defer googleapi.CloseBody(res)
8569 if err := googleapi.CheckResponse(res); err != nil {
8570 return nil, gensupport.WrapError(err)
8571 }
8572 ret := &ListDatabaseCharacterSetsResponse{
8573 ServerResponse: googleapi.ServerResponse{
8574 Header: res.Header,
8575 HTTPStatusCode: res.StatusCode,
8576 },
8577 }
8578 target := &ret
8579 b, err := gensupport.DecodeResponseBytes(target, res)
8580 if err != nil {
8581 return nil, err
8582 }
8583 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databaseCharacterSets.list", "response", internallog.HTTPResponse(res, b))
8584 return ret, nil
8585 }
8586
8587 // Pages invokes f for each page of results.
8588 // A non-nil error returned from f will halt the iteration.
8589 // The provided context supersedes any context provided to the Context method.
8590 func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Pages(ctx context.Context, f func(*ListDatabaseCharacterSetsResponse) error) error {
8591 c.ctx_ = ctx
8592 defer c.PageToken(c.urlParams_.Get("pageToken"))
8593 for {
8594 x, err := c.Do()
8595 if err != nil {
8596 return err
8597 }
8598 if err := f(x); err != nil {
8599 return err
8600 }
8601 if x.NextPageToken == "" {
8602 return nil
8603 }
8604 c.PageToken(x.NextPageToken)
8605 }
8606 }
8607
8608 type ProjectsLocationsDatabasesGetCall struct {
8609 s *Service
8610 name string
8611 urlParams_ gensupport.URLParams
8612 ifNoneMatch_ string
8613 ctx_ context.Context
8614 header_ http.Header
8615 }
8616
8617 // Get: Gets details of a single Database.
8618 //
8619 // - name: The name of the Database resource in the following format:
8620 // projects/{project}/locations/{region}/databases/{database}.
8621 func (r *ProjectsLocationsDatabasesService) Get(name string) *ProjectsLocationsDatabasesGetCall {
8622 c := &ProjectsLocationsDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8623 c.name = name
8624 return c
8625 }
8626
8627 // Fields allows partial responses to be retrieved. See
8628 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8629 // details.
8630 func (c *ProjectsLocationsDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabasesGetCall {
8631 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8632 return c
8633 }
8634
8635 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8636 // object's ETag matches the given value. This is useful for getting updates
8637 // only after the object has changed since the last request.
8638 func (c *ProjectsLocationsDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabasesGetCall {
8639 c.ifNoneMatch_ = entityTag
8640 return c
8641 }
8642
8643 // Context sets the context to be used in this call's Do method.
8644 func (c *ProjectsLocationsDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsDatabasesGetCall {
8645 c.ctx_ = ctx
8646 return c
8647 }
8648
8649 // Header returns a http.Header that can be modified by the caller to add
8650 // headers to the request.
8651 func (c *ProjectsLocationsDatabasesGetCall) Header() http.Header {
8652 if c.header_ == nil {
8653 c.header_ = make(http.Header)
8654 }
8655 return c.header_
8656 }
8657
8658 func (c *ProjectsLocationsDatabasesGetCall) doRequest(alt string) (*http.Response, error) {
8659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8660 if c.ifNoneMatch_ != "" {
8661 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8662 }
8663 c.urlParams_.Set("alt", alt)
8664 c.urlParams_.Set("prettyPrint", "false")
8665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8666 urls += "?" + c.urlParams_.Encode()
8667 req, err := http.NewRequest("GET", urls, nil)
8668 if err != nil {
8669 return nil, err
8670 }
8671 req.Header = reqHeaders
8672 googleapi.Expand(req.URL, map[string]string{
8673 "name": c.name,
8674 })
8675 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.get", "request", internallog.HTTPRequest(req, nil))
8676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8677 }
8678
8679 // Do executes the "oracledatabase.projects.locations.databases.get" call.
8680 // Any non-2xx status code is an error. Response headers are in either
8681 // *Database.ServerResponse.Header or (if a response was returned at all) in
8682 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8683 // whether the returned error was because http.StatusNotModified was returned.
8684 func (c *ProjectsLocationsDatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, error) {
8685 gensupport.SetOptions(c.urlParams_, opts...)
8686 res, err := c.doRequest("json")
8687 if res != nil && res.StatusCode == http.StatusNotModified {
8688 if res.Body != nil {
8689 res.Body.Close()
8690 }
8691 return nil, gensupport.WrapError(&googleapi.Error{
8692 Code: res.StatusCode,
8693 Header: res.Header,
8694 })
8695 }
8696 if err != nil {
8697 return nil, err
8698 }
8699 defer googleapi.CloseBody(res)
8700 if err := googleapi.CheckResponse(res); err != nil {
8701 return nil, gensupport.WrapError(err)
8702 }
8703 ret := &Database{
8704 ServerResponse: googleapi.ServerResponse{
8705 Header: res.Header,
8706 HTTPStatusCode: res.StatusCode,
8707 },
8708 }
8709 target := &ret
8710 b, err := gensupport.DecodeResponseBytes(target, res)
8711 if err != nil {
8712 return nil, err
8713 }
8714 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.get", "response", internallog.HTTPResponse(res, b))
8715 return ret, nil
8716 }
8717
8718 type ProjectsLocationsDatabasesListCall struct {
8719 s *Service
8720 parent string
8721 urlParams_ gensupport.URLParams
8722 ifNoneMatch_ string
8723 ctx_ context.Context
8724 header_ http.Header
8725 }
8726
8727 // List: Lists all the Databases for the given project, location and DbSystem.
8728 //
8729 // - parent: The parent resource name in the following format:
8730 // projects/{project}/locations/{region}.
8731 func (r *ProjectsLocationsDatabasesService) List(parent string) *ProjectsLocationsDatabasesListCall {
8732 c := &ProjectsLocationsDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8733 c.parent = parent
8734 return c
8735 }
8736
8737 // Filter sets the optional parameter "filter": An expression for filtering the
8738 // results of the request. list for container databases is supported only with
8739 // a valid dbSystem (full resource name) filter in this format:
8740 // `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"
8741 func (c *ProjectsLocationsDatabasesListCall) Filter(filter string) *ProjectsLocationsDatabasesListCall {
8742 c.urlParams_.Set("filter", filter)
8743 return c
8744 }
8745
8746 // PageSize sets the optional parameter "pageSize": The maximum number of items
8747 // to return. If unspecified, a maximum of 50 Databases will be returned. The
8748 // maximum value is 1000; values above 1000 will be reset to 1000.
8749 func (c *ProjectsLocationsDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsDatabasesListCall {
8750 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8751 return c
8752 }
8753
8754 // PageToken sets the optional parameter "pageToken": A token identifying the
8755 // requested page of results to return. All fields except the filter should
8756 // remain the same as in the request that provided this page token.
8757 func (c *ProjectsLocationsDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsDatabasesListCall {
8758 c.urlParams_.Set("pageToken", pageToken)
8759 return c
8760 }
8761
8762 // Fields allows partial responses to be retrieved. See
8763 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8764 // details.
8765 func (c *ProjectsLocationsDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabasesListCall {
8766 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8767 return c
8768 }
8769
8770 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8771 // object's ETag matches the given value. This is useful for getting updates
8772 // only after the object has changed since the last request.
8773 func (c *ProjectsLocationsDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabasesListCall {
8774 c.ifNoneMatch_ = entityTag
8775 return c
8776 }
8777
8778 // Context sets the context to be used in this call's Do method.
8779 func (c *ProjectsLocationsDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsDatabasesListCall {
8780 c.ctx_ = ctx
8781 return c
8782 }
8783
8784 // Header returns a http.Header that can be modified by the caller to add
8785 // headers to the request.
8786 func (c *ProjectsLocationsDatabasesListCall) Header() http.Header {
8787 if c.header_ == nil {
8788 c.header_ = make(http.Header)
8789 }
8790 return c.header_
8791 }
8792
8793 func (c *ProjectsLocationsDatabasesListCall) doRequest(alt string) (*http.Response, error) {
8794 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8795 if c.ifNoneMatch_ != "" {
8796 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8797 }
8798 c.urlParams_.Set("alt", alt)
8799 c.urlParams_.Set("prettyPrint", "false")
8800 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/databases")
8801 urls += "?" + c.urlParams_.Encode()
8802 req, err := http.NewRequest("GET", urls, nil)
8803 if err != nil {
8804 return nil, err
8805 }
8806 req.Header = reqHeaders
8807 googleapi.Expand(req.URL, map[string]string{
8808 "parent": c.parent,
8809 })
8810 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.list", "request", internallog.HTTPRequest(req, nil))
8811 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8812 }
8813
8814 // Do executes the "oracledatabase.projects.locations.databases.list" call.
8815 // Any non-2xx status code is an error. Response headers are in either
8816 // *ListDatabasesResponse.ServerResponse.Header or (if a response was returned
8817 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8818 // check whether the returned error was because http.StatusNotModified was
8819 // returned.
8820 func (c *ProjectsLocationsDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListDatabasesResponse, error) {
8821 gensupport.SetOptions(c.urlParams_, opts...)
8822 res, err := c.doRequest("json")
8823 if res != nil && res.StatusCode == http.StatusNotModified {
8824 if res.Body != nil {
8825 res.Body.Close()
8826 }
8827 return nil, gensupport.WrapError(&googleapi.Error{
8828 Code: res.StatusCode,
8829 Header: res.Header,
8830 })
8831 }
8832 if err != nil {
8833 return nil, err
8834 }
8835 defer googleapi.CloseBody(res)
8836 if err := googleapi.CheckResponse(res); err != nil {
8837 return nil, gensupport.WrapError(err)
8838 }
8839 ret := &ListDatabasesResponse{
8840 ServerResponse: googleapi.ServerResponse{
8841 Header: res.Header,
8842 HTTPStatusCode: res.StatusCode,
8843 },
8844 }
8845 target := &ret
8846 b, err := gensupport.DecodeResponseBytes(target, res)
8847 if err != nil {
8848 return nil, err
8849 }
8850 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.list", "response", internallog.HTTPResponse(res, b))
8851 return ret, nil
8852 }
8853
8854 // Pages invokes f for each page of results.
8855 // A non-nil error returned from f will halt the iteration.
8856 // The provided context supersedes any context provided to the Context method.
8857 func (c *ProjectsLocationsDatabasesListCall) Pages(ctx context.Context, f func(*ListDatabasesResponse) error) error {
8858 c.ctx_ = ctx
8859 defer c.PageToken(c.urlParams_.Get("pageToken"))
8860 for {
8861 x, err := c.Do()
8862 if err != nil {
8863 return err
8864 }
8865 if err := f(x); err != nil {
8866 return err
8867 }
8868 if x.NextPageToken == "" {
8869 return nil
8870 }
8871 c.PageToken(x.NextPageToken)
8872 }
8873 }
8874
8875 type ProjectsLocationsDbSystemInitialStorageSizesListCall struct {
8876 s *Service
8877 parent string
8878 urlParams_ gensupport.URLParams
8879 ifNoneMatch_ string
8880 ctx_ context.Context
8881 header_ http.Header
8882 }
8883
8884 // List: Lists all the DbSystemInitialStorageSizes for the given project and
8885 // location.
8886 //
8887 // - parent: The parent value for the DbSystemInitialStorageSize resource with
8888 // the format: projects/{project}/locations/{location}.
8889 func (r *ProjectsLocationsDbSystemInitialStorageSizesService) List(parent string) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8890 c := &ProjectsLocationsDbSystemInitialStorageSizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8891 c.parent = parent
8892 return c
8893 }
8894
8895 // PageSize sets the optional parameter "pageSize": The maximum number of items
8896 // to return. If unspecified, a maximum of 50 DbSystemInitialStorageSizes will
8897 // be returned. The maximum value is 1000; values above 1000 will be reset to
8898 // 1000.
8899 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8900 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8901 return c
8902 }
8903
8904 // PageToken sets the optional parameter "pageToken": A token identifying the
8905 // requested page of results to return. All fields except the filter should
8906 // remain the same as in the request that provided this page token.
8907 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8908 c.urlParams_.Set("pageToken", pageToken)
8909 return c
8910 }
8911
8912 // Fields allows partial responses to be retrieved. See
8913 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
8914 // details.
8915 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8916 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8917 return c
8918 }
8919
8920 // IfNoneMatch sets an optional parameter which makes the operation fail if the
8921 // object's ETag matches the given value. This is useful for getting updates
8922 // only after the object has changed since the last request.
8923 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8924 c.ifNoneMatch_ = entityTag
8925 return c
8926 }
8927
8928 // Context sets the context to be used in this call's Do method.
8929 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemInitialStorageSizesListCall {
8930 c.ctx_ = ctx
8931 return c
8932 }
8933
8934 // Header returns a http.Header that can be modified by the caller to add
8935 // headers to the request.
8936 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Header() http.Header {
8937 if c.header_ == nil {
8938 c.header_ = make(http.Header)
8939 }
8940 return c.header_
8941 }
8942
8943 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) doRequest(alt string) (*http.Response, error) {
8944 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8945 if c.ifNoneMatch_ != "" {
8946 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8947 }
8948 c.urlParams_.Set("alt", alt)
8949 c.urlParams_.Set("prettyPrint", "false")
8950 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemInitialStorageSizes")
8951 urls += "?" + c.urlParams_.Encode()
8952 req, err := http.NewRequest("GET", urls, nil)
8953 if err != nil {
8954 return nil, err
8955 }
8956 req.Header = reqHeaders
8957 googleapi.Expand(req.URL, map[string]string{
8958 "parent": c.parent,
8959 })
8960 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", "request", internallog.HTTPRequest(req, nil))
8961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8962 }
8963
8964 // Do executes the "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list" call.
8965 // Any non-2xx status code is an error. Response headers are in either
8966 // *ListDbSystemInitialStorageSizesResponse.ServerResponse.Header or (if a
8967 // response was returned at all) in error.(*googleapi.Error).Header. Use
8968 // googleapi.IsNotModified to check whether the returned error was because
8969 // http.StatusNotModified was returned.
8970 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemInitialStorageSizesResponse, error) {
8971 gensupport.SetOptions(c.urlParams_, opts...)
8972 res, err := c.doRequest("json")
8973 if res != nil && res.StatusCode == http.StatusNotModified {
8974 if res.Body != nil {
8975 res.Body.Close()
8976 }
8977 return nil, gensupport.WrapError(&googleapi.Error{
8978 Code: res.StatusCode,
8979 Header: res.Header,
8980 })
8981 }
8982 if err != nil {
8983 return nil, err
8984 }
8985 defer googleapi.CloseBody(res)
8986 if err := googleapi.CheckResponse(res); err != nil {
8987 return nil, gensupport.WrapError(err)
8988 }
8989 ret := &ListDbSystemInitialStorageSizesResponse{
8990 ServerResponse: googleapi.ServerResponse{
8991 Header: res.Header,
8992 HTTPStatusCode: res.StatusCode,
8993 },
8994 }
8995 target := &ret
8996 b, err := gensupport.DecodeResponseBytes(target, res)
8997 if err != nil {
8998 return nil, err
8999 }
9000 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", "response", internallog.HTTPResponse(res, b))
9001 return ret, nil
9002 }
9003
9004 // Pages invokes f for each page of results.
9005 // A non-nil error returned from f will halt the iteration.
9006 // The provided context supersedes any context provided to the Context method.
9007 func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Pages(ctx context.Context, f func(*ListDbSystemInitialStorageSizesResponse) error) error {
9008 c.ctx_ = ctx
9009 defer c.PageToken(c.urlParams_.Get("pageToken"))
9010 for {
9011 x, err := c.Do()
9012 if err != nil {
9013 return err
9014 }
9015 if err := f(x); err != nil {
9016 return err
9017 }
9018 if x.NextPageToken == "" {
9019 return nil
9020 }
9021 c.PageToken(x.NextPageToken)
9022 }
9023 }
9024
9025 type ProjectsLocationsDbSystemShapesListCall struct {
9026 s *Service
9027 parent string
9028 urlParams_ gensupport.URLParams
9029 ifNoneMatch_ string
9030 ctx_ context.Context
9031 header_ http.Header
9032 }
9033
9034 // List: Lists the database system shapes available for the project and
9035 // location.
9036 //
9037 // - parent: The parent value for Database System Shapes in the following
9038 // format: projects/{project}/locations/{location}.
9039 func (r *ProjectsLocationsDbSystemShapesService) List(parent string) *ProjectsLocationsDbSystemShapesListCall {
9040 c := &ProjectsLocationsDbSystemShapesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9041 c.parent = parent
9042 return c
9043 }
9044
9045 // Filter sets the optional parameter "filter": An expression for filtering the
9046 // results of the request. Only the gcp_oracle_zone_id field is supported in
9047 // this format: `gcp_oracle_zone_id="{gcp_oracle_zone_id}".
9048 func (c *ProjectsLocationsDbSystemShapesListCall) Filter(filter string) *ProjectsLocationsDbSystemShapesListCall {
9049 c.urlParams_.Set("filter", filter)
9050 return c
9051 }
9052
9053 // PageSize sets the optional parameter "pageSize": The maximum number of items
9054 // to return. If unspecified, at most 50 database system shapes will be
9055 // returned. The maximum value is 1000; values above 1000 will be coerced to
9056 // 1000.
9057 func (c *ProjectsLocationsDbSystemShapesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemShapesListCall {
9058 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9059 return c
9060 }
9061
9062 // PageToken sets the optional parameter "pageToken": A token identifying a
9063 // page of results the server should return.
9064 func (c *ProjectsLocationsDbSystemShapesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemShapesListCall {
9065 c.urlParams_.Set("pageToken", pageToken)
9066 return c
9067 }
9068
9069 // Fields allows partial responses to be retrieved. See
9070 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9071 // details.
9072 func (c *ProjectsLocationsDbSystemShapesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemShapesListCall {
9073 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9074 return c
9075 }
9076
9077 // IfNoneMatch sets an optional parameter which makes the operation fail if the
9078 // object's ETag matches the given value. This is useful for getting updates
9079 // only after the object has changed since the last request.
9080 func (c *ProjectsLocationsDbSystemShapesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemShapesListCall {
9081 c.ifNoneMatch_ = entityTag
9082 return c
9083 }
9084
9085 // Context sets the context to be used in this call's Do method.
9086 func (c *ProjectsLocationsDbSystemShapesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemShapesListCall {
9087 c.ctx_ = ctx
9088 return c
9089 }
9090
9091 // Header returns a http.Header that can be modified by the caller to add
9092 // headers to the request.
9093 func (c *ProjectsLocationsDbSystemShapesListCall) Header() http.Header {
9094 if c.header_ == nil {
9095 c.header_ = make(http.Header)
9096 }
9097 return c.header_
9098 }
9099
9100 func (c *ProjectsLocationsDbSystemShapesListCall) doRequest(alt string) (*http.Response, error) {
9101 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9102 if c.ifNoneMatch_ != "" {
9103 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9104 }
9105 c.urlParams_.Set("alt", alt)
9106 c.urlParams_.Set("prettyPrint", "false")
9107 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemShapes")
9108 urls += "?" + c.urlParams_.Encode()
9109 req, err := http.NewRequest("GET", urls, nil)
9110 if err != nil {
9111 return nil, err
9112 }
9113 req.Header = reqHeaders
9114 googleapi.Expand(req.URL, map[string]string{
9115 "parent": c.parent,
9116 })
9117 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "request", internallog.HTTPRequest(req, nil))
9118 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9119 }
9120
9121 // Do executes the "oracledatabase.projects.locations.dbSystemShapes.list" call.
9122 // Any non-2xx status code is an error. Response headers are in either
9123 // *ListDbSystemShapesResponse.ServerResponse.Header or (if a response was
9124 // returned at all) in error.(*googleapi.Error).Header. Use
9125 // googleapi.IsNotModified to check whether the returned error was because
9126 // http.StatusNotModified was returned.
9127 func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemShapesResponse, error) {
9128 gensupport.SetOptions(c.urlParams_, opts...)
9129 res, err := c.doRequest("json")
9130 if res != nil && res.StatusCode == http.StatusNotModified {
9131 if res.Body != nil {
9132 res.Body.Close()
9133 }
9134 return nil, gensupport.WrapError(&googleapi.Error{
9135 Code: res.StatusCode,
9136 Header: res.Header,
9137 })
9138 }
9139 if err != nil {
9140 return nil, err
9141 }
9142 defer googleapi.CloseBody(res)
9143 if err := googleapi.CheckResponse(res); err != nil {
9144 return nil, gensupport.WrapError(err)
9145 }
9146 ret := &ListDbSystemShapesResponse{
9147 ServerResponse: googleapi.ServerResponse{
9148 Header: res.Header,
9149 HTTPStatusCode: res.StatusCode,
9150 },
9151 }
9152 target := &ret
9153 b, err := gensupport.DecodeResponseBytes(target, res)
9154 if err != nil {
9155 return nil, err
9156 }
9157 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "response", internallog.HTTPResponse(res, b))
9158 return ret, nil
9159 }
9160
9161 // Pages invokes f for each page of results.
9162 // A non-nil error returned from f will halt the iteration.
9163 // The provided context supersedes any context provided to the Context method.
9164 func (c *ProjectsLocationsDbSystemShapesListCall) Pages(ctx context.Context, f func(*ListDbSystemShapesResponse) error) error {
9165 c.ctx_ = ctx
9166 defer c.PageToken(c.urlParams_.Get("pageToken"))
9167 for {
9168 x, err := c.Do()
9169 if err != nil {
9170 return err
9171 }
9172 if err := f(x); err != nil {
9173 return err
9174 }
9175 if x.NextPageToken == "" {
9176 return nil
9177 }
9178 c.PageToken(x.NextPageToken)
9179 }
9180 }
9181
9182 type ProjectsLocationsDbSystemsCreateCall struct {
9183 s *Service
9184 parent string
9185 dbsystem *DbSystem
9186 urlParams_ gensupport.URLParams
9187 ctx_ context.Context
9188 header_ http.Header
9189 }
9190
9191 // Create: Creates a new DbSystem in a given project and location.
9192 //
9193 // - parent: The value for parent of the DbSystem in the following format:
9194 // projects/{project}/locations/{location}.
9195 func (r *ProjectsLocationsDbSystemsService) Create(parent string, dbsystem *DbSystem) *ProjectsLocationsDbSystemsCreateCall {
9196 c := &ProjectsLocationsDbSystemsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9197 c.parent = parent
9198 c.dbsystem = dbsystem
9199 return c
9200 }
9201
9202 // DbSystemId sets the optional parameter "dbSystemId": Required. The ID of the
9203 // DbSystem to create. This value is restricted to (^a-z
9204 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
9205 // length. The value must start with a letter and end with a letter or a
9206 // number.
9207 func (c *ProjectsLocationsDbSystemsCreateCall) DbSystemId(dbSystemId string) *ProjectsLocationsDbSystemsCreateCall {
9208 c.urlParams_.Set("dbSystemId", dbSystemId)
9209 return c
9210 }
9211
9212 // RequestId sets the optional parameter "requestId": An optional request ID to
9213 // identify requests. Specify a unique request ID so that if you must retry
9214 // your request, the server will know to ignore the request if it has already
9215 // been completed. The server will guarantee that for at least 60 minutes since
9216 // the first request. For example, consider a situation where you make an
9217 // initial request and the request times out. If you make the request again
9218 // with the same request ID, the server can check if original operation with
9219 // the same request ID was received, and if so, will ignore the second request.
9220 // This prevents clients from accidentally creating duplicate commitments. The
9221 // request ID must be a valid UUID with the exception that zero UUID is not
9222 // supported (00000000-0000-0000-0000-000000000000).
9223 func (c *ProjectsLocationsDbSystemsCreateCall) RequestId(requestId string) *ProjectsLocationsDbSystemsCreateCall {
9224 c.urlParams_.Set("requestId", requestId)
9225 return c
9226 }
9227
9228 // Fields allows partial responses to be retrieved. See
9229 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9230 // details.
9231 func (c *ProjectsLocationsDbSystemsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsCreateCall {
9232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9233 return c
9234 }
9235
9236 // Context sets the context to be used in this call's Do method.
9237 func (c *ProjectsLocationsDbSystemsCreateCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsCreateCall {
9238 c.ctx_ = ctx
9239 return c
9240 }
9241
9242 // Header returns a http.Header that can be modified by the caller to add
9243 // headers to the request.
9244 func (c *ProjectsLocationsDbSystemsCreateCall) Header() http.Header {
9245 if c.header_ == nil {
9246 c.header_ = make(http.Header)
9247 }
9248 return c.header_
9249 }
9250
9251 func (c *ProjectsLocationsDbSystemsCreateCall) doRequest(alt string) (*http.Response, error) {
9252 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9253 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.dbsystem)
9254 if err != nil {
9255 return nil, err
9256 }
9257 c.urlParams_.Set("alt", alt)
9258 c.urlParams_.Set("prettyPrint", "false")
9259 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystems")
9260 urls += "?" + c.urlParams_.Encode()
9261 req, err := http.NewRequest("POST", urls, body)
9262 if err != nil {
9263 return nil, err
9264 }
9265 req.Header = reqHeaders
9266 googleapi.Expand(req.URL, map[string]string{
9267 "parent": c.parent,
9268 })
9269 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.create", "request", internallog.HTTPRequest(req, body.Bytes()))
9270 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9271 }
9272
9273 // Do executes the "oracledatabase.projects.locations.dbSystems.create" call.
9274 // Any non-2xx status code is an error. Response headers are in either
9275 // *Operation.ServerResponse.Header or (if a response was returned at all) in
9276 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9277 // whether the returned error was because http.StatusNotModified was returned.
9278 func (c *ProjectsLocationsDbSystemsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9279 gensupport.SetOptions(c.urlParams_, opts...)
9280 res, err := c.doRequest("json")
9281 if res != nil && res.StatusCode == http.StatusNotModified {
9282 if res.Body != nil {
9283 res.Body.Close()
9284 }
9285 return nil, gensupport.WrapError(&googleapi.Error{
9286 Code: res.StatusCode,
9287 Header: res.Header,
9288 })
9289 }
9290 if err != nil {
9291 return nil, err
9292 }
9293 defer googleapi.CloseBody(res)
9294 if err := googleapi.CheckResponse(res); err != nil {
9295 return nil, gensupport.WrapError(err)
9296 }
9297 ret := &Operation{
9298 ServerResponse: googleapi.ServerResponse{
9299 Header: res.Header,
9300 HTTPStatusCode: res.StatusCode,
9301 },
9302 }
9303 target := &ret
9304 b, err := gensupport.DecodeResponseBytes(target, res)
9305 if err != nil {
9306 return nil, err
9307 }
9308 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.create", "response", internallog.HTTPResponse(res, b))
9309 return ret, nil
9310 }
9311
9312 type ProjectsLocationsDbSystemsDeleteCall struct {
9313 s *Service
9314 name string
9315 urlParams_ gensupport.URLParams
9316 ctx_ context.Context
9317 header_ http.Header
9318 }
9319
9320 // Delete: Deletes a single DbSystem.
9321 //
9322 // - name: The name of the DbSystem in the following format:
9323 // projects/{project}/locations/{location}/dbSystems/{db_system}.
9324 func (r *ProjectsLocationsDbSystemsService) Delete(name string) *ProjectsLocationsDbSystemsDeleteCall {
9325 c := &ProjectsLocationsDbSystemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9326 c.name = name
9327 return c
9328 }
9329
9330 // RequestId sets the optional parameter "requestId": An optional ID to
9331 // identify the request. This value is used to identify duplicate requests. If
9332 // you make a request with the same request ID and the original request is
9333 // still in progress or completed, the server ignores the second request. This
9334 // prevents clients from accidentally creating duplicate commitments. The
9335 // request ID must be a valid UUID with the exception that zero UUID is not
9336 // supported (00000000-0000-0000-0000-000000000000).
9337 func (c *ProjectsLocationsDbSystemsDeleteCall) RequestId(requestId string) *ProjectsLocationsDbSystemsDeleteCall {
9338 c.urlParams_.Set("requestId", requestId)
9339 return c
9340 }
9341
9342 // Fields allows partial responses to be retrieved. See
9343 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9344 // details.
9345 func (c *ProjectsLocationsDbSystemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsDeleteCall {
9346 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9347 return c
9348 }
9349
9350 // Context sets the context to be used in this call's Do method.
9351 func (c *ProjectsLocationsDbSystemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsDeleteCall {
9352 c.ctx_ = ctx
9353 return c
9354 }
9355
9356 // Header returns a http.Header that can be modified by the caller to add
9357 // headers to the request.
9358 func (c *ProjectsLocationsDbSystemsDeleteCall) Header() http.Header {
9359 if c.header_ == nil {
9360 c.header_ = make(http.Header)
9361 }
9362 return c.header_
9363 }
9364
9365 func (c *ProjectsLocationsDbSystemsDeleteCall) doRequest(alt string) (*http.Response, error) {
9366 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9367 c.urlParams_.Set("alt", alt)
9368 c.urlParams_.Set("prettyPrint", "false")
9369 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9370 urls += "?" + c.urlParams_.Encode()
9371 req, err := http.NewRequest("DELETE", urls, nil)
9372 if err != nil {
9373 return nil, err
9374 }
9375 req.Header = reqHeaders
9376 googleapi.Expand(req.URL, map[string]string{
9377 "name": c.name,
9378 })
9379 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.delete", "request", internallog.HTTPRequest(req, nil))
9380 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9381 }
9382
9383 // Do executes the "oracledatabase.projects.locations.dbSystems.delete" call.
9384 // Any non-2xx status code is an error. Response headers are in either
9385 // *Operation.ServerResponse.Header or (if a response was returned at all) in
9386 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9387 // whether the returned error was because http.StatusNotModified was returned.
9388 func (c *ProjectsLocationsDbSystemsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
9389 gensupport.SetOptions(c.urlParams_, opts...)
9390 res, err := c.doRequest("json")
9391 if res != nil && res.StatusCode == http.StatusNotModified {
9392 if res.Body != nil {
9393 res.Body.Close()
9394 }
9395 return nil, gensupport.WrapError(&googleapi.Error{
9396 Code: res.StatusCode,
9397 Header: res.Header,
9398 })
9399 }
9400 if err != nil {
9401 return nil, err
9402 }
9403 defer googleapi.CloseBody(res)
9404 if err := googleapi.CheckResponse(res); err != nil {
9405 return nil, gensupport.WrapError(err)
9406 }
9407 ret := &Operation{
9408 ServerResponse: googleapi.ServerResponse{
9409 Header: res.Header,
9410 HTTPStatusCode: res.StatusCode,
9411 },
9412 }
9413 target := &ret
9414 b, err := gensupport.DecodeResponseBytes(target, res)
9415 if err != nil {
9416 return nil, err
9417 }
9418 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.delete", "response", internallog.HTTPResponse(res, b))
9419 return ret, nil
9420 }
9421
9422 type ProjectsLocationsDbSystemsGetCall struct {
9423 s *Service
9424 name string
9425 urlParams_ gensupport.URLParams
9426 ifNoneMatch_ string
9427 ctx_ context.Context
9428 header_ http.Header
9429 }
9430
9431 // Get: Gets details of a single DbSystem.
9432 //
9433 // - name: The name of the DbSystem in the following format:
9434 // projects/{project}/locations/{location}/dbSystems/{db_system}.
9435 func (r *ProjectsLocationsDbSystemsService) Get(name string) *ProjectsLocationsDbSystemsGetCall {
9436 c := &ProjectsLocationsDbSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9437 c.name = name
9438 return c
9439 }
9440
9441 // Fields allows partial responses to be retrieved. See
9442 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9443 // details.
9444 func (c *ProjectsLocationsDbSystemsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsGetCall {
9445 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9446 return c
9447 }
9448
9449 // IfNoneMatch sets an optional parameter which makes the operation fail if the
9450 // object's ETag matches the given value. This is useful for getting updates
9451 // only after the object has changed since the last request.
9452 func (c *ProjectsLocationsDbSystemsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemsGetCall {
9453 c.ifNoneMatch_ = entityTag
9454 return c
9455 }
9456
9457 // Context sets the context to be used in this call's Do method.
9458 func (c *ProjectsLocationsDbSystemsGetCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsGetCall {
9459 c.ctx_ = ctx
9460 return c
9461 }
9462
9463 // Header returns a http.Header that can be modified by the caller to add
9464 // headers to the request.
9465 func (c *ProjectsLocationsDbSystemsGetCall) Header() http.Header {
9466 if c.header_ == nil {
9467 c.header_ = make(http.Header)
9468 }
9469 return c.header_
9470 }
9471
9472 func (c *ProjectsLocationsDbSystemsGetCall) doRequest(alt string) (*http.Response, error) {
9473 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9474 if c.ifNoneMatch_ != "" {
9475 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9476 }
9477 c.urlParams_.Set("alt", alt)
9478 c.urlParams_.Set("prettyPrint", "false")
9479 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9480 urls += "?" + c.urlParams_.Encode()
9481 req, err := http.NewRequest("GET", urls, nil)
9482 if err != nil {
9483 return nil, err
9484 }
9485 req.Header = reqHeaders
9486 googleapi.Expand(req.URL, map[string]string{
9487 "name": c.name,
9488 })
9489 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.get", "request", internallog.HTTPRequest(req, nil))
9490 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9491 }
9492
9493 // Do executes the "oracledatabase.projects.locations.dbSystems.get" call.
9494 // Any non-2xx status code is an error. Response headers are in either
9495 // *DbSystem.ServerResponse.Header or (if a response was returned at all) in
9496 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9497 // whether the returned error was because http.StatusNotModified was returned.
9498 func (c *ProjectsLocationsDbSystemsGetCall) Do(opts ...googleapi.CallOption) (*DbSystem, error) {
9499 gensupport.SetOptions(c.urlParams_, opts...)
9500 res, err := c.doRequest("json")
9501 if res != nil && res.StatusCode == http.StatusNotModified {
9502 if res.Body != nil {
9503 res.Body.Close()
9504 }
9505 return nil, gensupport.WrapError(&googleapi.Error{
9506 Code: res.StatusCode,
9507 Header: res.Header,
9508 })
9509 }
9510 if err != nil {
9511 return nil, err
9512 }
9513 defer googleapi.CloseBody(res)
9514 if err := googleapi.CheckResponse(res); err != nil {
9515 return nil, gensupport.WrapError(err)
9516 }
9517 ret := &DbSystem{
9518 ServerResponse: googleapi.ServerResponse{
9519 Header: res.Header,
9520 HTTPStatusCode: res.StatusCode,
9521 },
9522 }
9523 target := &ret
9524 b, err := gensupport.DecodeResponseBytes(target, res)
9525 if err != nil {
9526 return nil, err
9527 }
9528 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.get", "response", internallog.HTTPResponse(res, b))
9529 return ret, nil
9530 }
9531
9532 type ProjectsLocationsDbSystemsListCall struct {
9533 s *Service
9534 parent string
9535 urlParams_ gensupport.URLParams
9536 ifNoneMatch_ string
9537 ctx_ context.Context
9538 header_ http.Header
9539 }
9540
9541 // List: Lists all the DbSystems for the given project and location.
9542 //
9543 // - parent: The parent value for DbSystems in the following format:
9544 // projects/{project}/locations/{location}.
9545 func (r *ProjectsLocationsDbSystemsService) List(parent string) *ProjectsLocationsDbSystemsListCall {
9546 c := &ProjectsLocationsDbSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9547 c.parent = parent
9548 return c
9549 }
9550
9551 // Filter sets the optional parameter "filter": An expression for filtering the
9552 // results of the request.
9553 func (c *ProjectsLocationsDbSystemsListCall) Filter(filter string) *ProjectsLocationsDbSystemsListCall {
9554 c.urlParams_.Set("filter", filter)
9555 return c
9556 }
9557
9558 // OrderBy sets the optional parameter "orderBy": An expression for ordering
9559 // the results of the request.
9560 func (c *ProjectsLocationsDbSystemsListCall) OrderBy(orderBy string) *ProjectsLocationsDbSystemsListCall {
9561 c.urlParams_.Set("orderBy", orderBy)
9562 return c
9563 }
9564
9565 // PageSize sets the optional parameter "pageSize": The maximum number of items
9566 // to return. If unspecified, at most 50 DbSystems will be returned. The
9567 // maximum value is 1000; values above 1000 will be coerced to 1000.
9568 func (c *ProjectsLocationsDbSystemsListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemsListCall {
9569 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9570 return c
9571 }
9572
9573 // PageToken sets the optional parameter "pageToken": A token identifying a
9574 // page of results the server should return.
9575 func (c *ProjectsLocationsDbSystemsListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemsListCall {
9576 c.urlParams_.Set("pageToken", pageToken)
9577 return c
9578 }
9579
9580 // Fields allows partial responses to be retrieved. See
9581 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9582 // details.
9583 func (c *ProjectsLocationsDbSystemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsListCall {
9584 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9585 return c
9586 }
9587
9588 // IfNoneMatch sets an optional parameter which makes the operation fail if the
9589 // object's ETag matches the given value. This is useful for getting updates
9590 // only after the object has changed since the last request.
9591 func (c *ProjectsLocationsDbSystemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemsListCall {
9592 c.ifNoneMatch_ = entityTag
9593 return c
9594 }
9595
9596 // Context sets the context to be used in this call's Do method.
9597 func (c *ProjectsLocationsDbSystemsListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsListCall {
9598 c.ctx_ = ctx
9599 return c
9600 }
9601
9602 // Header returns a http.Header that can be modified by the caller to add
9603 // headers to the request.
9604 func (c *ProjectsLocationsDbSystemsListCall) Header() http.Header {
9605 if c.header_ == nil {
9606 c.header_ = make(http.Header)
9607 }
9608 return c.header_
9609 }
9610
9611 func (c *ProjectsLocationsDbSystemsListCall) doRequest(alt string) (*http.Response, error) {
9612 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9613 if c.ifNoneMatch_ != "" {
9614 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9615 }
9616 c.urlParams_.Set("alt", alt)
9617 c.urlParams_.Set("prettyPrint", "false")
9618 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystems")
9619 urls += "?" + c.urlParams_.Encode()
9620 req, err := http.NewRequest("GET", urls, nil)
9621 if err != nil {
9622 return nil, err
9623 }
9624 req.Header = reqHeaders
9625 googleapi.Expand(req.URL, map[string]string{
9626 "parent": c.parent,
9627 })
9628 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.list", "request", internallog.HTTPRequest(req, nil))
9629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9630 }
9631
9632 // Do executes the "oracledatabase.projects.locations.dbSystems.list" call.
9633 // Any non-2xx status code is an error. Response headers are in either
9634 // *ListDbSystemsResponse.ServerResponse.Header or (if a response was returned
9635 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9636 // check whether the returned error was because http.StatusNotModified was
9637 // returned.
9638 func (c *ProjectsLocationsDbSystemsListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemsResponse, error) {
9639 gensupport.SetOptions(c.urlParams_, opts...)
9640 res, err := c.doRequest("json")
9641 if res != nil && res.StatusCode == http.StatusNotModified {
9642 if res.Body != nil {
9643 res.Body.Close()
9644 }
9645 return nil, gensupport.WrapError(&googleapi.Error{
9646 Code: res.StatusCode,
9647 Header: res.Header,
9648 })
9649 }
9650 if err != nil {
9651 return nil, err
9652 }
9653 defer googleapi.CloseBody(res)
9654 if err := googleapi.CheckResponse(res); err != nil {
9655 return nil, gensupport.WrapError(err)
9656 }
9657 ret := &ListDbSystemsResponse{
9658 ServerResponse: googleapi.ServerResponse{
9659 Header: res.Header,
9660 HTTPStatusCode: res.StatusCode,
9661 },
9662 }
9663 target := &ret
9664 b, err := gensupport.DecodeResponseBytes(target, res)
9665 if err != nil {
9666 return nil, err
9667 }
9668 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.list", "response", internallog.HTTPResponse(res, b))
9669 return ret, nil
9670 }
9671
9672 // Pages invokes f for each page of results.
9673 // A non-nil error returned from f will halt the iteration.
9674 // The provided context supersedes any context provided to the Context method.
9675 func (c *ProjectsLocationsDbSystemsListCall) Pages(ctx context.Context, f func(*ListDbSystemsResponse) error) error {
9676 c.ctx_ = ctx
9677 defer c.PageToken(c.urlParams_.Get("pageToken"))
9678 for {
9679 x, err := c.Do()
9680 if err != nil {
9681 return err
9682 }
9683 if err := f(x); err != nil {
9684 return err
9685 }
9686 if x.NextPageToken == "" {
9687 return nil
9688 }
9689 c.PageToken(x.NextPageToken)
9690 }
9691 }
9692
9693 type ProjectsLocationsDbVersionsListCall struct {
9694 s *Service
9695 parent string
9696 urlParams_ gensupport.URLParams
9697 ifNoneMatch_ string
9698 ctx_ context.Context
9699 header_ http.Header
9700 }
9701
9702 // List: List DbVersions for the given project and location.
9703 //
9704 // - parent: The parent value for the DbVersion resource with the format:
9705 // projects/{project}/locations/{location}.
9706 func (r *ProjectsLocationsDbVersionsService) List(parent string) *ProjectsLocationsDbVersionsListCall {
9707 c := &ProjectsLocationsDbVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9708 c.parent = parent
9709 return c
9710 }
9711
9712 // Filter sets the optional parameter "filter": Filter expression that matches
9713 // a subset of the DbVersions to show. The supported filter for dbSystem
9714 // creation is `db_system_shape = {db_system_shape} AND storage_management =
9715 // {storage_management}`. If no filter is provided, all DbVersions will be
9716 // returned.
9717 func (c *ProjectsLocationsDbVersionsListCall) Filter(filter string) *ProjectsLocationsDbVersionsListCall {
9718 c.urlParams_.Set("filter", filter)
9719 return c
9720 }
9721
9722 // PageSize sets the optional parameter "pageSize": The maximum number of items
9723 // to return. If unspecified, a maximum of 50 DbVersions will be returned. The
9724 // maximum value is 1000; values above 1000 will be reset to 1000.
9725 func (c *ProjectsLocationsDbVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDbVersionsListCall {
9726 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9727 return c
9728 }
9729
9730 // PageToken sets the optional parameter "pageToken": A token identifying the
9731 // requested page of results to return. All fields except the filter should
9732 // remain the same as in the request that provided this page token.
9733 func (c *ProjectsLocationsDbVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDbVersionsListCall {
9734 c.urlParams_.Set("pageToken", pageToken)
9735 return c
9736 }
9737
9738 // Fields allows partial responses to be retrieved. See
9739 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9740 // details.
9741 func (c *ProjectsLocationsDbVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbVersionsListCall {
9742 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9743 return c
9744 }
9745
9746 // IfNoneMatch sets an optional parameter which makes the operation fail if the
9747 // object's ETag matches the given value. This is useful for getting updates
9748 // only after the object has changed since the last request.
9749 func (c *ProjectsLocationsDbVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbVersionsListCall {
9750 c.ifNoneMatch_ = entityTag
9751 return c
9752 }
9753
9754 // Context sets the context to be used in this call's Do method.
9755 func (c *ProjectsLocationsDbVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDbVersionsListCall {
9756 c.ctx_ = ctx
9757 return c
9758 }
9759
9760 // Header returns a http.Header that can be modified by the caller to add
9761 // headers to the request.
9762 func (c *ProjectsLocationsDbVersionsListCall) Header() http.Header {
9763 if c.header_ == nil {
9764 c.header_ = make(http.Header)
9765 }
9766 return c.header_
9767 }
9768
9769 func (c *ProjectsLocationsDbVersionsListCall) doRequest(alt string) (*http.Response, error) {
9770 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9771 if c.ifNoneMatch_ != "" {
9772 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9773 }
9774 c.urlParams_.Set("alt", alt)
9775 c.urlParams_.Set("prettyPrint", "false")
9776 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbVersions")
9777 urls += "?" + c.urlParams_.Encode()
9778 req, err := http.NewRequest("GET", urls, nil)
9779 if err != nil {
9780 return nil, err
9781 }
9782 req.Header = reqHeaders
9783 googleapi.Expand(req.URL, map[string]string{
9784 "parent": c.parent,
9785 })
9786 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbVersions.list", "request", internallog.HTTPRequest(req, nil))
9787 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9788 }
9789
9790 // Do executes the "oracledatabase.projects.locations.dbVersions.list" call.
9791 // Any non-2xx status code is an error. Response headers are in either
9792 // *ListDbVersionsResponse.ServerResponse.Header or (if a response was returned
9793 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9794 // check whether the returned error was because http.StatusNotModified was
9795 // returned.
9796 func (c *ProjectsLocationsDbVersionsListCall) Do(opts ...googleapi.CallOption) (*ListDbVersionsResponse, error) {
9797 gensupport.SetOptions(c.urlParams_, opts...)
9798 res, err := c.doRequest("json")
9799 if res != nil && res.StatusCode == http.StatusNotModified {
9800 if res.Body != nil {
9801 res.Body.Close()
9802 }
9803 return nil, gensupport.WrapError(&googleapi.Error{
9804 Code: res.StatusCode,
9805 Header: res.Header,
9806 })
9807 }
9808 if err != nil {
9809 return nil, err
9810 }
9811 defer googleapi.CloseBody(res)
9812 if err := googleapi.CheckResponse(res); err != nil {
9813 return nil, gensupport.WrapError(err)
9814 }
9815 ret := &ListDbVersionsResponse{
9816 ServerResponse: googleapi.ServerResponse{
9817 Header: res.Header,
9818 HTTPStatusCode: res.StatusCode,
9819 },
9820 }
9821 target := &ret
9822 b, err := gensupport.DecodeResponseBytes(target, res)
9823 if err != nil {
9824 return nil, err
9825 }
9826 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbVersions.list", "response", internallog.HTTPResponse(res, b))
9827 return ret, nil
9828 }
9829
9830 // Pages invokes f for each page of results.
9831 // A non-nil error returned from f will halt the iteration.
9832 // The provided context supersedes any context provided to the Context method.
9833 func (c *ProjectsLocationsDbVersionsListCall) Pages(ctx context.Context, f func(*ListDbVersionsResponse) error) error {
9834 c.ctx_ = ctx
9835 defer c.PageToken(c.urlParams_.Get("pageToken"))
9836 for {
9837 x, err := c.Do()
9838 if err != nil {
9839 return err
9840 }
9841 if err := f(x); err != nil {
9842 return err
9843 }
9844 if x.NextPageToken == "" {
9845 return nil
9846 }
9847 c.PageToken(x.NextPageToken)
9848 }
9849 }
9850
9851 type ProjectsLocationsEntitlementsListCall struct {
9852 s *Service
9853 parent string
9854 urlParams_ gensupport.URLParams
9855 ifNoneMatch_ string
9856 ctx_ context.Context
9857 header_ http.Header
9858 }
9859
9860 // List: Lists the entitlements in a given project.
9861 //
9862 // - parent: The parent value for the entitlement in the following format:
9863 // projects/{project}/locations/{location}.
9864 func (r *ProjectsLocationsEntitlementsService) List(parent string) *ProjectsLocationsEntitlementsListCall {
9865 c := &ProjectsLocationsEntitlementsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9866 c.parent = parent
9867 return c
9868 }
9869
9870 // PageSize sets the optional parameter "pageSize": The maximum number of items
9871 // to return. If unspecified, a maximum of 50 entitlements will be returned.
9872 // The maximum value is 1000.
9873 func (c *ProjectsLocationsEntitlementsListCall) PageSize(pageSize int64) *ProjectsLocationsEntitlementsListCall {
9874 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9875 return c
9876 }
9877
9878 // PageToken sets the optional parameter "pageToken": A token identifying a
9879 // page of results the server should return.
9880 func (c *ProjectsLocationsEntitlementsListCall) PageToken(pageToken string) *ProjectsLocationsEntitlementsListCall {
9881 c.urlParams_.Set("pageToken", pageToken)
9882 return c
9883 }
9884
9885 // Fields allows partial responses to be retrieved. See
9886 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
9887 // details.
9888 func (c *ProjectsLocationsEntitlementsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEntitlementsListCall {
9889 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9890 return c
9891 }
9892
9893 // IfNoneMatch sets an optional parameter which makes the operation fail if the
9894 // object's ETag matches the given value. This is useful for getting updates
9895 // only after the object has changed since the last request.
9896 func (c *ProjectsLocationsEntitlementsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEntitlementsListCall {
9897 c.ifNoneMatch_ = entityTag
9898 return c
9899 }
9900
9901 // Context sets the context to be used in this call's Do method.
9902 func (c *ProjectsLocationsEntitlementsListCall) Context(ctx context.Context) *ProjectsLocationsEntitlementsListCall {
9903 c.ctx_ = ctx
9904 return c
9905 }
9906
9907 // Header returns a http.Header that can be modified by the caller to add
9908 // headers to the request.
9909 func (c *ProjectsLocationsEntitlementsListCall) Header() http.Header {
9910 if c.header_ == nil {
9911 c.header_ = make(http.Header)
9912 }
9913 return c.header_
9914 }
9915
9916 func (c *ProjectsLocationsEntitlementsListCall) doRequest(alt string) (*http.Response, error) {
9917 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9918 if c.ifNoneMatch_ != "" {
9919 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9920 }
9921 c.urlParams_.Set("alt", alt)
9922 c.urlParams_.Set("prettyPrint", "false")
9923 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entitlements")
9924 urls += "?" + c.urlParams_.Encode()
9925 req, err := http.NewRequest("GET", urls, nil)
9926 if err != nil {
9927 return nil, err
9928 }
9929 req.Header = reqHeaders
9930 googleapi.Expand(req.URL, map[string]string{
9931 "parent": c.parent,
9932 })
9933 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.entitlements.list", "request", internallog.HTTPRequest(req, nil))
9934 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9935 }
9936
9937 // Do executes the "oracledatabase.projects.locations.entitlements.list" call.
9938 // Any non-2xx status code is an error. Response headers are in either
9939 // *ListEntitlementsResponse.ServerResponse.Header or (if a response was
9940 // returned at all) in error.(*googleapi.Error).Header. Use
9941 // googleapi.IsNotModified to check whether the returned error was because
9942 // http.StatusNotModified was returned.
9943 func (c *ProjectsLocationsEntitlementsListCall) Do(opts ...googleapi.CallOption) (*ListEntitlementsResponse, error) {
9944 gensupport.SetOptions(c.urlParams_, opts...)
9945 res, err := c.doRequest("json")
9946 if res != nil && res.StatusCode == http.StatusNotModified {
9947 if res.Body != nil {
9948 res.Body.Close()
9949 }
9950 return nil, gensupport.WrapError(&googleapi.Error{
9951 Code: res.StatusCode,
9952 Header: res.Header,
9953 })
9954 }
9955 if err != nil {
9956 return nil, err
9957 }
9958 defer googleapi.CloseBody(res)
9959 if err := googleapi.CheckResponse(res); err != nil {
9960 return nil, gensupport.WrapError(err)
9961 }
9962 ret := &ListEntitlementsResponse{
9963 ServerResponse: googleapi.ServerResponse{
9964 Header: res.Header,
9965 HTTPStatusCode: res.StatusCode,
9966 },
9967 }
9968 target := &ret
9969 b, err := gensupport.DecodeResponseBytes(target, res)
9970 if err != nil {
9971 return nil, err
9972 }
9973 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.entitlements.list", "response", internallog.HTTPResponse(res, b))
9974 return ret, nil
9975 }
9976
9977 // Pages invokes f for each page of results.
9978 // A non-nil error returned from f will halt the iteration.
9979 // The provided context supersedes any context provided to the Context method.
9980 func (c *ProjectsLocationsEntitlementsListCall) Pages(ctx context.Context, f func(*ListEntitlementsResponse) error) error {
9981 c.ctx_ = ctx
9982 defer c.PageToken(c.urlParams_.Get("pageToken"))
9983 for {
9984 x, err := c.Do()
9985 if err != nil {
9986 return err
9987 }
9988 if err := f(x); err != nil {
9989 return err
9990 }
9991 if x.NextPageToken == "" {
9992 return nil
9993 }
9994 c.PageToken(x.NextPageToken)
9995 }
9996 }
9997
9998 type ProjectsLocationsExadbVmClustersCreateCall struct {
9999 s *Service
10000 parent string
10001 exadbvmcluster *ExadbVmCluster
10002 urlParams_ gensupport.URLParams
10003 ctx_ context.Context
10004 header_ http.Header
10005 }
10006
10007 // Create: Creates a new Exadb (Exascale) VM Cluster resource.
10008 //
10009 // - parent: The value for parent of the ExadbVmCluster in the following
10010 // format: projects/{project}/locations/{location}.
10011 func (r *ProjectsLocationsExadbVmClustersService) Create(parent string, exadbvmcluster *ExadbVmCluster) *ProjectsLocationsExadbVmClustersCreateCall {
10012 c := &ProjectsLocationsExadbVmClustersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10013 c.parent = parent
10014 c.exadbvmcluster = exadbvmcluster
10015 return c
10016 }
10017
10018 // ExadbVmClusterId sets the optional parameter "exadbVmClusterId": Required.
10019 // The ID of the ExadbVmCluster to create. This value is restricted to (^a-z
10020 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
10021 // length. The value must start with a letter and end with a letter or a
10022 // number.
10023 func (c *ProjectsLocationsExadbVmClustersCreateCall) ExadbVmClusterId(exadbVmClusterId string) *ProjectsLocationsExadbVmClustersCreateCall {
10024 c.urlParams_.Set("exadbVmClusterId", exadbVmClusterId)
10025 return c
10026 }
10027
10028 // RequestId sets the optional parameter "requestId": An optional request ID to
10029 // identify requests. Specify a unique request ID so that if you must retry
10030 // your request, the server will know to ignore the request if it has already
10031 // been completed. The server will guarantee that for at least 60 minutes since
10032 // the first request. For example, consider a situation where you make an
10033 // initial request and the request times out. If you make the request again
10034 // with the same request ID, the server can check if original operation with
10035 // the same request ID was received, and if so, will ignore the second request.
10036 // This prevents clients from accidentally creating duplicate commitments. The
10037 // request ID must be a valid UUID with the exception that zero UUID is not
10038 // supported (00000000-0000-0000-0000-000000000000).
10039 func (c *ProjectsLocationsExadbVmClustersCreateCall) RequestId(requestId string) *ProjectsLocationsExadbVmClustersCreateCall {
10040 c.urlParams_.Set("requestId", requestId)
10041 return c
10042 }
10043
10044 // Fields allows partial responses to be retrieved. See
10045 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10046 // details.
10047 func (c *ProjectsLocationsExadbVmClustersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersCreateCall {
10048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10049 return c
10050 }
10051
10052 // Context sets the context to be used in this call's Do method.
10053 func (c *ProjectsLocationsExadbVmClustersCreateCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersCreateCall {
10054 c.ctx_ = ctx
10055 return c
10056 }
10057
10058 // Header returns a http.Header that can be modified by the caller to add
10059 // headers to the request.
10060 func (c *ProjectsLocationsExadbVmClustersCreateCall) Header() http.Header {
10061 if c.header_ == nil {
10062 c.header_ = make(http.Header)
10063 }
10064 return c.header_
10065 }
10066
10067 func (c *ProjectsLocationsExadbVmClustersCreateCall) doRequest(alt string) (*http.Response, error) {
10068 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10069 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.exadbvmcluster)
10070 if err != nil {
10071 return nil, err
10072 }
10073 c.urlParams_.Set("alt", alt)
10074 c.urlParams_.Set("prettyPrint", "false")
10075 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/exadbVmClusters")
10076 urls += "?" + c.urlParams_.Encode()
10077 req, err := http.NewRequest("POST", urls, body)
10078 if err != nil {
10079 return nil, err
10080 }
10081 req.Header = reqHeaders
10082 googleapi.Expand(req.URL, map[string]string{
10083 "parent": c.parent,
10084 })
10085 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.create", "request", internallog.HTTPRequest(req, body.Bytes()))
10086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10087 }
10088
10089 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.create" call.
10090 // Any non-2xx status code is an error. Response headers are in either
10091 // *Operation.ServerResponse.Header or (if a response was returned at all) in
10092 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10093 // whether the returned error was because http.StatusNotModified was returned.
10094 func (c *ProjectsLocationsExadbVmClustersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10095 gensupport.SetOptions(c.urlParams_, opts...)
10096 res, err := c.doRequest("json")
10097 if res != nil && res.StatusCode == http.StatusNotModified {
10098 if res.Body != nil {
10099 res.Body.Close()
10100 }
10101 return nil, gensupport.WrapError(&googleapi.Error{
10102 Code: res.StatusCode,
10103 Header: res.Header,
10104 })
10105 }
10106 if err != nil {
10107 return nil, err
10108 }
10109 defer googleapi.CloseBody(res)
10110 if err := googleapi.CheckResponse(res); err != nil {
10111 return nil, gensupport.WrapError(err)
10112 }
10113 ret := &Operation{
10114 ServerResponse: googleapi.ServerResponse{
10115 Header: res.Header,
10116 HTTPStatusCode: res.StatusCode,
10117 },
10118 }
10119 target := &ret
10120 b, err := gensupport.DecodeResponseBytes(target, res)
10121 if err != nil {
10122 return nil, err
10123 }
10124 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.create", "response", internallog.HTTPResponse(res, b))
10125 return ret, nil
10126 }
10127
10128 type ProjectsLocationsExadbVmClustersDeleteCall struct {
10129 s *Service
10130 name string
10131 urlParams_ gensupport.URLParams
10132 ctx_ context.Context
10133 header_ http.Header
10134 }
10135
10136 // Delete: Deletes a single Exadb (Exascale) VM Cluster.
10137 //
10138 // - name: The name of the ExadbVmCluster in the following format:
10139 // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
10140 func (r *ProjectsLocationsExadbVmClustersService) Delete(name string) *ProjectsLocationsExadbVmClustersDeleteCall {
10141 c := &ProjectsLocationsExadbVmClustersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10142 c.name = name
10143 return c
10144 }
10145
10146 // RequestId sets the optional parameter "requestId": An optional ID to
10147 // identify the request. This value is used to identify duplicate requests. If
10148 // you make a request with the same request ID and the original request is
10149 // still in progress or completed, the server ignores the second request. This
10150 // prevents clients from accidentally creating duplicate commitments. The
10151 // request ID must be a valid UUID with the exception that zero UUID is not
10152 // supported (00000000-0000-0000-0000-000000000000).
10153 func (c *ProjectsLocationsExadbVmClustersDeleteCall) RequestId(requestId string) *ProjectsLocationsExadbVmClustersDeleteCall {
10154 c.urlParams_.Set("requestId", requestId)
10155 return c
10156 }
10157
10158 // Fields allows partial responses to be retrieved. See
10159 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10160 // details.
10161 func (c *ProjectsLocationsExadbVmClustersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersDeleteCall {
10162 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10163 return c
10164 }
10165
10166 // Context sets the context to be used in this call's Do method.
10167 func (c *ProjectsLocationsExadbVmClustersDeleteCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersDeleteCall {
10168 c.ctx_ = ctx
10169 return c
10170 }
10171
10172 // Header returns a http.Header that can be modified by the caller to add
10173 // headers to the request.
10174 func (c *ProjectsLocationsExadbVmClustersDeleteCall) Header() http.Header {
10175 if c.header_ == nil {
10176 c.header_ = make(http.Header)
10177 }
10178 return c.header_
10179 }
10180
10181 func (c *ProjectsLocationsExadbVmClustersDeleteCall) doRequest(alt string) (*http.Response, error) {
10182 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10183 c.urlParams_.Set("alt", alt)
10184 c.urlParams_.Set("prettyPrint", "false")
10185 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10186 urls += "?" + c.urlParams_.Encode()
10187 req, err := http.NewRequest("DELETE", urls, nil)
10188 if err != nil {
10189 return nil, err
10190 }
10191 req.Header = reqHeaders
10192 googleapi.Expand(req.URL, map[string]string{
10193 "name": c.name,
10194 })
10195 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.delete", "request", internallog.HTTPRequest(req, nil))
10196 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10197 }
10198
10199 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.delete" call.
10200 // Any non-2xx status code is an error. Response headers are in either
10201 // *Operation.ServerResponse.Header or (if a response was returned at all) in
10202 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10203 // whether the returned error was because http.StatusNotModified was returned.
10204 func (c *ProjectsLocationsExadbVmClustersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10205 gensupport.SetOptions(c.urlParams_, opts...)
10206 res, err := c.doRequest("json")
10207 if res != nil && res.StatusCode == http.StatusNotModified {
10208 if res.Body != nil {
10209 res.Body.Close()
10210 }
10211 return nil, gensupport.WrapError(&googleapi.Error{
10212 Code: res.StatusCode,
10213 Header: res.Header,
10214 })
10215 }
10216 if err != nil {
10217 return nil, err
10218 }
10219 defer googleapi.CloseBody(res)
10220 if err := googleapi.CheckResponse(res); err != nil {
10221 return nil, gensupport.WrapError(err)
10222 }
10223 ret := &Operation{
10224 ServerResponse: googleapi.ServerResponse{
10225 Header: res.Header,
10226 HTTPStatusCode: res.StatusCode,
10227 },
10228 }
10229 target := &ret
10230 b, err := gensupport.DecodeResponseBytes(target, res)
10231 if err != nil {
10232 return nil, err
10233 }
10234 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.delete", "response", internallog.HTTPResponse(res, b))
10235 return ret, nil
10236 }
10237
10238 type ProjectsLocationsExadbVmClustersGetCall struct {
10239 s *Service
10240 name string
10241 urlParams_ gensupport.URLParams
10242 ifNoneMatch_ string
10243 ctx_ context.Context
10244 header_ http.Header
10245 }
10246
10247 // Get: Gets details of a single Exadb (Exascale) VM Cluster.
10248 //
10249 // - name: The name of the ExadbVmCluster in the following format:
10250 // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
10251 func (r *ProjectsLocationsExadbVmClustersService) Get(name string) *ProjectsLocationsExadbVmClustersGetCall {
10252 c := &ProjectsLocationsExadbVmClustersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10253 c.name = name
10254 return c
10255 }
10256
10257 // Fields allows partial responses to be retrieved. See
10258 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10259 // details.
10260 func (c *ProjectsLocationsExadbVmClustersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersGetCall {
10261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10262 return c
10263 }
10264
10265 // IfNoneMatch sets an optional parameter which makes the operation fail if the
10266 // object's ETag matches the given value. This is useful for getting updates
10267 // only after the object has changed since the last request.
10268 func (c *ProjectsLocationsExadbVmClustersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExadbVmClustersGetCall {
10269 c.ifNoneMatch_ = entityTag
10270 return c
10271 }
10272
10273 // Context sets the context to be used in this call's Do method.
10274 func (c *ProjectsLocationsExadbVmClustersGetCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersGetCall {
10275 c.ctx_ = ctx
10276 return c
10277 }
10278
10279 // Header returns a http.Header that can be modified by the caller to add
10280 // headers to the request.
10281 func (c *ProjectsLocationsExadbVmClustersGetCall) Header() http.Header {
10282 if c.header_ == nil {
10283 c.header_ = make(http.Header)
10284 }
10285 return c.header_
10286 }
10287
10288 func (c *ProjectsLocationsExadbVmClustersGetCall) doRequest(alt string) (*http.Response, error) {
10289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10290 if c.ifNoneMatch_ != "" {
10291 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10292 }
10293 c.urlParams_.Set("alt", alt)
10294 c.urlParams_.Set("prettyPrint", "false")
10295 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10296 urls += "?" + c.urlParams_.Encode()
10297 req, err := http.NewRequest("GET", urls, nil)
10298 if err != nil {
10299 return nil, err
10300 }
10301 req.Header = reqHeaders
10302 googleapi.Expand(req.URL, map[string]string{
10303 "name": c.name,
10304 })
10305 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.get", "request", internallog.HTTPRequest(req, nil))
10306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10307 }
10308
10309 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.get" call.
10310 // Any non-2xx status code is an error. Response headers are in either
10311 // *ExadbVmCluster.ServerResponse.Header or (if a response was returned at all)
10312 // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10313 // whether the returned error was because http.StatusNotModified was returned.
10314 func (c *ProjectsLocationsExadbVmClustersGetCall) Do(opts ...googleapi.CallOption) (*ExadbVmCluster, error) {
10315 gensupport.SetOptions(c.urlParams_, opts...)
10316 res, err := c.doRequest("json")
10317 if res != nil && res.StatusCode == http.StatusNotModified {
10318 if res.Body != nil {
10319 res.Body.Close()
10320 }
10321 return nil, gensupport.WrapError(&googleapi.Error{
10322 Code: res.StatusCode,
10323 Header: res.Header,
10324 })
10325 }
10326 if err != nil {
10327 return nil, err
10328 }
10329 defer googleapi.CloseBody(res)
10330 if err := googleapi.CheckResponse(res); err != nil {
10331 return nil, gensupport.WrapError(err)
10332 }
10333 ret := &ExadbVmCluster{
10334 ServerResponse: googleapi.ServerResponse{
10335 Header: res.Header,
10336 HTTPStatusCode: res.StatusCode,
10337 },
10338 }
10339 target := &ret
10340 b, err := gensupport.DecodeResponseBytes(target, res)
10341 if err != nil {
10342 return nil, err
10343 }
10344 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.get", "response", internallog.HTTPResponse(res, b))
10345 return ret, nil
10346 }
10347
10348 type ProjectsLocationsExadbVmClustersListCall struct {
10349 s *Service
10350 parent string
10351 urlParams_ gensupport.URLParams
10352 ifNoneMatch_ string
10353 ctx_ context.Context
10354 header_ http.Header
10355 }
10356
10357 // List: Lists all the Exadb (Exascale) VM Clusters for the given project and
10358 // location.
10359 //
10360 // - parent: The parent value for ExadbVmClusters in the following format:
10361 // projects/{project}/locations/{location}.
10362 func (r *ProjectsLocationsExadbVmClustersService) List(parent string) *ProjectsLocationsExadbVmClustersListCall {
10363 c := &ProjectsLocationsExadbVmClustersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10364 c.parent = parent
10365 return c
10366 }
10367
10368 // Filter sets the optional parameter "filter": An expression for filtering the
10369 // results of the request.
10370 func (c *ProjectsLocationsExadbVmClustersListCall) Filter(filter string) *ProjectsLocationsExadbVmClustersListCall {
10371 c.urlParams_.Set("filter", filter)
10372 return c
10373 }
10374
10375 // OrderBy sets the optional parameter "orderBy": An expression for ordering
10376 // the results of the request.
10377 func (c *ProjectsLocationsExadbVmClustersListCall) OrderBy(orderBy string) *ProjectsLocationsExadbVmClustersListCall {
10378 c.urlParams_.Set("orderBy", orderBy)
10379 return c
10380 }
10381
10382 // PageSize sets the optional parameter "pageSize": The maximum number of items
10383 // to return. If unspecified, at most 50 ExadbVmClusters will be returned. The
10384 // maximum value is 1000; values above 1000 will be coerced to 1000.
10385 func (c *ProjectsLocationsExadbVmClustersListCall) PageSize(pageSize int64) *ProjectsLocationsExadbVmClustersListCall {
10386 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10387 return c
10388 }
10389
10390 // PageToken sets the optional parameter "pageToken": A token identifying a
10391 // page of results the server should return.
10392 func (c *ProjectsLocationsExadbVmClustersListCall) PageToken(pageToken string) *ProjectsLocationsExadbVmClustersListCall {
10393 c.urlParams_.Set("pageToken", pageToken)
10394 return c
10395 }
10396
10397 // Fields allows partial responses to be retrieved. See
10398 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10399 // details.
10400 func (c *ProjectsLocationsExadbVmClustersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersListCall {
10401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10402 return c
10403 }
10404
10405 // IfNoneMatch sets an optional parameter which makes the operation fail if the
10406 // object's ETag matches the given value. This is useful for getting updates
10407 // only after the object has changed since the last request.
10408 func (c *ProjectsLocationsExadbVmClustersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExadbVmClustersListCall {
10409 c.ifNoneMatch_ = entityTag
10410 return c
10411 }
10412
10413 // Context sets the context to be used in this call's Do method.
10414 func (c *ProjectsLocationsExadbVmClustersListCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersListCall {
10415 c.ctx_ = ctx
10416 return c
10417 }
10418
10419 // Header returns a http.Header that can be modified by the caller to add
10420 // headers to the request.
10421 func (c *ProjectsLocationsExadbVmClustersListCall) Header() http.Header {
10422 if c.header_ == nil {
10423 c.header_ = make(http.Header)
10424 }
10425 return c.header_
10426 }
10427
10428 func (c *ProjectsLocationsExadbVmClustersListCall) doRequest(alt string) (*http.Response, error) {
10429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10430 if c.ifNoneMatch_ != "" {
10431 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10432 }
10433 c.urlParams_.Set("alt", alt)
10434 c.urlParams_.Set("prettyPrint", "false")
10435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/exadbVmClusters")
10436 urls += "?" + c.urlParams_.Encode()
10437 req, err := http.NewRequest("GET", urls, nil)
10438 if err != nil {
10439 return nil, err
10440 }
10441 req.Header = reqHeaders
10442 googleapi.Expand(req.URL, map[string]string{
10443 "parent": c.parent,
10444 })
10445 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.list", "request", internallog.HTTPRequest(req, nil))
10446 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10447 }
10448
10449 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.list" call.
10450 // Any non-2xx status code is an error. Response headers are in either
10451 // *ListExadbVmClustersResponse.ServerResponse.Header or (if a response was
10452 // returned at all) in error.(*googleapi.Error).Header. Use
10453 // googleapi.IsNotModified to check whether the returned error was because
10454 // http.StatusNotModified was returned.
10455 func (c *ProjectsLocationsExadbVmClustersListCall) Do(opts ...googleapi.CallOption) (*ListExadbVmClustersResponse, error) {
10456 gensupport.SetOptions(c.urlParams_, opts...)
10457 res, err := c.doRequest("json")
10458 if res != nil && res.StatusCode == http.StatusNotModified {
10459 if res.Body != nil {
10460 res.Body.Close()
10461 }
10462 return nil, gensupport.WrapError(&googleapi.Error{
10463 Code: res.StatusCode,
10464 Header: res.Header,
10465 })
10466 }
10467 if err != nil {
10468 return nil, err
10469 }
10470 defer googleapi.CloseBody(res)
10471 if err := googleapi.CheckResponse(res); err != nil {
10472 return nil, gensupport.WrapError(err)
10473 }
10474 ret := &ListExadbVmClustersResponse{
10475 ServerResponse: googleapi.ServerResponse{
10476 Header: res.Header,
10477 HTTPStatusCode: res.StatusCode,
10478 },
10479 }
10480 target := &ret
10481 b, err := gensupport.DecodeResponseBytes(target, res)
10482 if err != nil {
10483 return nil, err
10484 }
10485 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.list", "response", internallog.HTTPResponse(res, b))
10486 return ret, nil
10487 }
10488
10489 // Pages invokes f for each page of results.
10490 // A non-nil error returned from f will halt the iteration.
10491 // The provided context supersedes any context provided to the Context method.
10492 func (c *ProjectsLocationsExadbVmClustersListCall) Pages(ctx context.Context, f func(*ListExadbVmClustersResponse) error) error {
10493 c.ctx_ = ctx
10494 defer c.PageToken(c.urlParams_.Get("pageToken"))
10495 for {
10496 x, err := c.Do()
10497 if err != nil {
10498 return err
10499 }
10500 if err := f(x); err != nil {
10501 return err
10502 }
10503 if x.NextPageToken == "" {
10504 return nil
10505 }
10506 c.PageToken(x.NextPageToken)
10507 }
10508 }
10509
10510 type ProjectsLocationsExadbVmClustersPatchCall struct {
10511 s *Service
10512 name string
10513 exadbvmcluster *ExadbVmCluster
10514 urlParams_ gensupport.URLParams
10515 ctx_ context.Context
10516 header_ http.Header
10517 }
10518
10519 // Patch: Updates a single Exadb (Exascale) VM Cluster. To add virtual machines
10520 // to existing exadb vm cluster, only pass the node count.
10521 //
10522 // - name: Identifier. The name of the ExadbVmCluster resource in the following
10523 // format:
10524 // projects/{project}/locations/{region}/exadbVmClusters/{exadb_vm_cluster}.
10525 func (r *ProjectsLocationsExadbVmClustersService) Patch(name string, exadbvmcluster *ExadbVmCluster) *ProjectsLocationsExadbVmClustersPatchCall {
10526 c := &ProjectsLocationsExadbVmClustersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10527 c.name = name
10528 c.exadbvmcluster = exadbvmcluster
10529 return c
10530 }
10531
10532 // RequestId sets the optional parameter "requestId": An optional ID to
10533 // identify the request. This value is used to identify duplicate requests. If
10534 // you make a request with the same request ID and the original request is
10535 // still in progress or completed, the server ignores the second request. This
10536 // prevents clients from accidentally creating duplicate commitments. The
10537 // request ID must be a valid UUID with the exception that zero UUID is not
10538 // supported (00000000-0000-0000-0000-000000000000).
10539 func (c *ProjectsLocationsExadbVmClustersPatchCall) RequestId(requestId string) *ProjectsLocationsExadbVmClustersPatchCall {
10540 c.urlParams_.Set("requestId", requestId)
10541 return c
10542 }
10543
10544 // UpdateMask sets the optional parameter "updateMask": A mask specifying which
10545 // fields in th VM Cluster should be updated. A field specified in the mask is
10546 // overwritten. If a mask isn't provided then all the fields in the VM Cluster
10547 // are overwritten.
10548 func (c *ProjectsLocationsExadbVmClustersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsExadbVmClustersPatchCall {
10549 c.urlParams_.Set("updateMask", updateMask)
10550 return c
10551 }
10552
10553 // Fields allows partial responses to be retrieved. See
10554 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10555 // details.
10556 func (c *ProjectsLocationsExadbVmClustersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersPatchCall {
10557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10558 return c
10559 }
10560
10561 // Context sets the context to be used in this call's Do method.
10562 func (c *ProjectsLocationsExadbVmClustersPatchCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersPatchCall {
10563 c.ctx_ = ctx
10564 return c
10565 }
10566
10567 // Header returns a http.Header that can be modified by the caller to add
10568 // headers to the request.
10569 func (c *ProjectsLocationsExadbVmClustersPatchCall) Header() http.Header {
10570 if c.header_ == nil {
10571 c.header_ = make(http.Header)
10572 }
10573 return c.header_
10574 }
10575
10576 func (c *ProjectsLocationsExadbVmClustersPatchCall) doRequest(alt string) (*http.Response, error) {
10577 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10578 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.exadbvmcluster)
10579 if err != nil {
10580 return nil, err
10581 }
10582 c.urlParams_.Set("alt", alt)
10583 c.urlParams_.Set("prettyPrint", "false")
10584 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10585 urls += "?" + c.urlParams_.Encode()
10586 req, err := http.NewRequest("PATCH", urls, body)
10587 if err != nil {
10588 return nil, err
10589 }
10590 req.Header = reqHeaders
10591 googleapi.Expand(req.URL, map[string]string{
10592 "name": c.name,
10593 })
10594 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.patch", "request", internallog.HTTPRequest(req, body.Bytes()))
10595 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10596 }
10597
10598 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.patch" call.
10599 // Any non-2xx status code is an error. Response headers are in either
10600 // *Operation.ServerResponse.Header or (if a response was returned at all) in
10601 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10602 // whether the returned error was because http.StatusNotModified was returned.
10603 func (c *ProjectsLocationsExadbVmClustersPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10604 gensupport.SetOptions(c.urlParams_, opts...)
10605 res, err := c.doRequest("json")
10606 if res != nil && res.StatusCode == http.StatusNotModified {
10607 if res.Body != nil {
10608 res.Body.Close()
10609 }
10610 return nil, gensupport.WrapError(&googleapi.Error{
10611 Code: res.StatusCode,
10612 Header: res.Header,
10613 })
10614 }
10615 if err != nil {
10616 return nil, err
10617 }
10618 defer googleapi.CloseBody(res)
10619 if err := googleapi.CheckResponse(res); err != nil {
10620 return nil, gensupport.WrapError(err)
10621 }
10622 ret := &Operation{
10623 ServerResponse: googleapi.ServerResponse{
10624 Header: res.Header,
10625 HTTPStatusCode: res.StatusCode,
10626 },
10627 }
10628 target := &ret
10629 b, err := gensupport.DecodeResponseBytes(target, res)
10630 if err != nil {
10631 return nil, err
10632 }
10633 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.patch", "response", internallog.HTTPResponse(res, b))
10634 return ret, nil
10635 }
10636
10637 type ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall struct {
10638 s *Service
10639 name string
10640 removevirtualmachineexadbvmclusterrequest *RemoveVirtualMachineExadbVmClusterRequest
10641 urlParams_ gensupport.URLParams
10642 ctx_ context.Context
10643 header_ http.Header
10644 }
10645
10646 // RemoveVirtualMachine: Removes virtual machines from an existing exadb vm
10647 // cluster.
10648 //
10649 // - name: The name of the ExadbVmCluster in the following format:
10650 // projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}.
10651 func (r *ProjectsLocationsExadbVmClustersService) RemoveVirtualMachine(name string, removevirtualmachineexadbvmclusterrequest *RemoveVirtualMachineExadbVmClusterRequest) *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall {
10652 c := &ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10653 c.name = name
10654 c.removevirtualmachineexadbvmclusterrequest = removevirtualmachineexadbvmclusterrequest
10655 return c
10656 }
10657
10658 // Fields allows partial responses to be retrieved. See
10659 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10660 // details.
10661 func (c *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall {
10662 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10663 return c
10664 }
10665
10666 // Context sets the context to be used in this call's Do method.
10667 func (c *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall {
10668 c.ctx_ = ctx
10669 return c
10670 }
10671
10672 // Header returns a http.Header that can be modified by the caller to add
10673 // headers to the request.
10674 func (c *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall) Header() http.Header {
10675 if c.header_ == nil {
10676 c.header_ = make(http.Header)
10677 }
10678 return c.header_
10679 }
10680
10681 func (c *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall) doRequest(alt string) (*http.Response, error) {
10682 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10683 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.removevirtualmachineexadbvmclusterrequest)
10684 if err != nil {
10685 return nil, err
10686 }
10687 c.urlParams_.Set("alt", alt)
10688 c.urlParams_.Set("prettyPrint", "false")
10689 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:removeVirtualMachine")
10690 urls += "?" + c.urlParams_.Encode()
10691 req, err := http.NewRequest("POST", urls, body)
10692 if err != nil {
10693 return nil, err
10694 }
10695 req.Header = reqHeaders
10696 googleapi.Expand(req.URL, map[string]string{
10697 "name": c.name,
10698 })
10699 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.removeVirtualMachine", "request", internallog.HTTPRequest(req, body.Bytes()))
10700 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10701 }
10702
10703 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.removeVirtualMachine" call.
10704 // Any non-2xx status code is an error. Response headers are in either
10705 // *Operation.ServerResponse.Header or (if a response was returned at all) in
10706 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10707 // whether the returned error was because http.StatusNotModified was returned.
10708 func (c *ProjectsLocationsExadbVmClustersRemoveVirtualMachineCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10709 gensupport.SetOptions(c.urlParams_, opts...)
10710 res, err := c.doRequest("json")
10711 if res != nil && res.StatusCode == http.StatusNotModified {
10712 if res.Body != nil {
10713 res.Body.Close()
10714 }
10715 return nil, gensupport.WrapError(&googleapi.Error{
10716 Code: res.StatusCode,
10717 Header: res.Header,
10718 })
10719 }
10720 if err != nil {
10721 return nil, err
10722 }
10723 defer googleapi.CloseBody(res)
10724 if err := googleapi.CheckResponse(res); err != nil {
10725 return nil, gensupport.WrapError(err)
10726 }
10727 ret := &Operation{
10728 ServerResponse: googleapi.ServerResponse{
10729 Header: res.Header,
10730 HTTPStatusCode: res.StatusCode,
10731 },
10732 }
10733 target := &ret
10734 b, err := gensupport.DecodeResponseBytes(target, res)
10735 if err != nil {
10736 return nil, err
10737 }
10738 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.removeVirtualMachine", "response", internallog.HTTPResponse(res, b))
10739 return ret, nil
10740 }
10741
10742 type ProjectsLocationsExadbVmClustersDbNodesListCall struct {
10743 s *Service
10744 parent string
10745 urlParams_ gensupport.URLParams
10746 ifNoneMatch_ string
10747 ctx_ context.Context
10748 header_ http.Header
10749 }
10750
10751 // List: Lists the database nodes of a VM Cluster.
10752 //
10753 // - parent: The parent value for database node in the following format:
10754 // projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}.
10755 // .
10756 func (r *ProjectsLocationsExadbVmClustersDbNodesService) List(parent string) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10757 c := &ProjectsLocationsExadbVmClustersDbNodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10758 c.parent = parent
10759 return c
10760 }
10761
10762 // PageSize sets the optional parameter "pageSize": The maximum number of items
10763 // to return. If unspecified, at most 50 db nodes will be returned. The maximum
10764 // value is 1000; values above 1000 will be coerced to 1000.
10765 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) PageSize(pageSize int64) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10766 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10767 return c
10768 }
10769
10770 // PageToken sets the optional parameter "pageToken": A token identifying a
10771 // page of results the node should return.
10772 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) PageToken(pageToken string) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10773 c.urlParams_.Set("pageToken", pageToken)
10774 return c
10775 }
10776
10777 // Fields allows partial responses to be retrieved. See
10778 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10779 // details.
10780 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10782 return c
10783 }
10784
10785 // IfNoneMatch sets an optional parameter which makes the operation fail if the
10786 // object's ETag matches the given value. This is useful for getting updates
10787 // only after the object has changed since the last request.
10788 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10789 c.ifNoneMatch_ = entityTag
10790 return c
10791 }
10792
10793 // Context sets the context to be used in this call's Do method.
10794 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) Context(ctx context.Context) *ProjectsLocationsExadbVmClustersDbNodesListCall {
10795 c.ctx_ = ctx
10796 return c
10797 }
10798
10799 // Header returns a http.Header that can be modified by the caller to add
10800 // headers to the request.
10801 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) Header() http.Header {
10802 if c.header_ == nil {
10803 c.header_ = make(http.Header)
10804 }
10805 return c.header_
10806 }
10807
10808 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) doRequest(alt string) (*http.Response, error) {
10809 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10810 if c.ifNoneMatch_ != "" {
10811 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10812 }
10813 c.urlParams_.Set("alt", alt)
10814 c.urlParams_.Set("prettyPrint", "false")
10815 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbNodes")
10816 urls += "?" + c.urlParams_.Encode()
10817 req, err := http.NewRequest("GET", urls, nil)
10818 if err != nil {
10819 return nil, err
10820 }
10821 req.Header = reqHeaders
10822 googleapi.Expand(req.URL, map[string]string{
10823 "parent": c.parent,
10824 })
10825 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.dbNodes.list", "request", internallog.HTTPRequest(req, nil))
10826 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10827 }
10828
10829 // Do executes the "oracledatabase.projects.locations.exadbVmClusters.dbNodes.list" call.
10830 // Any non-2xx status code is an error. Response headers are in either
10831 // *ListDbNodesResponse.ServerResponse.Header or (if a response was returned at
10832 // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10833 // check whether the returned error was because http.StatusNotModified was
10834 // returned.
10835 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) Do(opts ...googleapi.CallOption) (*ListDbNodesResponse, error) {
10836 gensupport.SetOptions(c.urlParams_, opts...)
10837 res, err := c.doRequest("json")
10838 if res != nil && res.StatusCode == http.StatusNotModified {
10839 if res.Body != nil {
10840 res.Body.Close()
10841 }
10842 return nil, gensupport.WrapError(&googleapi.Error{
10843 Code: res.StatusCode,
10844 Header: res.Header,
10845 })
10846 }
10847 if err != nil {
10848 return nil, err
10849 }
10850 defer googleapi.CloseBody(res)
10851 if err := googleapi.CheckResponse(res); err != nil {
10852 return nil, gensupport.WrapError(err)
10853 }
10854 ret := &ListDbNodesResponse{
10855 ServerResponse: googleapi.ServerResponse{
10856 Header: res.Header,
10857 HTTPStatusCode: res.StatusCode,
10858 },
10859 }
10860 target := &ret
10861 b, err := gensupport.DecodeResponseBytes(target, res)
10862 if err != nil {
10863 return nil, err
10864 }
10865 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exadbVmClusters.dbNodes.list", "response", internallog.HTTPResponse(res, b))
10866 return ret, nil
10867 }
10868
10869 // Pages invokes f for each page of results.
10870 // A non-nil error returned from f will halt the iteration.
10871 // The provided context supersedes any context provided to the Context method.
10872 func (c *ProjectsLocationsExadbVmClustersDbNodesListCall) Pages(ctx context.Context, f func(*ListDbNodesResponse) error) error {
10873 c.ctx_ = ctx
10874 defer c.PageToken(c.urlParams_.Get("pageToken"))
10875 for {
10876 x, err := c.Do()
10877 if err != nil {
10878 return err
10879 }
10880 if err := f(x); err != nil {
10881 return err
10882 }
10883 if x.NextPageToken == "" {
10884 return nil
10885 }
10886 c.PageToken(x.NextPageToken)
10887 }
10888 }
10889
10890 type ProjectsLocationsExascaleDbStorageVaultsCreateCall struct {
10891 s *Service
10892 parent string
10893 exascaledbstoragevault *ExascaleDbStorageVault
10894 urlParams_ gensupport.URLParams
10895 ctx_ context.Context
10896 header_ http.Header
10897 }
10898
10899 // Create: Creates a new ExascaleDB Storage Vault resource.
10900 //
10901 // - parent: The value for parent of the ExascaleDbStorageVault in the
10902 // following format: projects/{project}/locations/{location}.
10903 func (r *ProjectsLocationsExascaleDbStorageVaultsService) Create(parent string, exascaledbstoragevault *ExascaleDbStorageVault) *ProjectsLocationsExascaleDbStorageVaultsCreateCall {
10904 c := &ProjectsLocationsExascaleDbStorageVaultsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10905 c.parent = parent
10906 c.exascaledbstoragevault = exascaledbstoragevault
10907 return c
10908 }
10909
10910 // ExascaleDbStorageVaultId sets the optional parameter
10911 // "exascaleDbStorageVaultId": Required. The ID of the ExascaleDbStorageVault
10912 // to create. This value is restricted to (^a-z ([a-z0-9-]{0,61}[a-z0-9])?$)
10913 // and must be a maximum of 63 characters in length. The value must start with
10914 // a letter and end with a letter or a number.
10915 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) ExascaleDbStorageVaultId(exascaleDbStorageVaultId string) *ProjectsLocationsExascaleDbStorageVaultsCreateCall {
10916 c.urlParams_.Set("exascaleDbStorageVaultId", exascaleDbStorageVaultId)
10917 return c
10918 }
10919
10920 // RequestId sets the optional parameter "requestId": An optional request ID to
10921 // identify requests. Specify a unique request ID so that if you must retry
10922 // your request, the server will know to ignore the request if it has already
10923 // been completed. The server will guarantee that for at least 60 minutes since
10924 // the first request. For example, consider a situation where you make an
10925 // initial request and the request times out. If you make the request again
10926 // with the same request ID, the server can check if original operation with
10927 // the same request ID was received, and if so, will ignore the second request.
10928 // This prevents clients from accidentally creating duplicate commitments. The
10929 // request ID must be a valid UUID with the exception that zero UUID is not
10930 // supported (00000000-0000-0000-0000-000000000000).
10931 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) RequestId(requestId string) *ProjectsLocationsExascaleDbStorageVaultsCreateCall {
10932 c.urlParams_.Set("requestId", requestId)
10933 return c
10934 }
10935
10936 // Fields allows partial responses to be retrieved. See
10937 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
10938 // details.
10939 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsExascaleDbStorageVaultsCreateCall {
10940 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10941 return c
10942 }
10943
10944 // Context sets the context to be used in this call's Do method.
10945 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) Context(ctx context.Context) *ProjectsLocationsExascaleDbStorageVaultsCreateCall {
10946 c.ctx_ = ctx
10947 return c
10948 }
10949
10950 // Header returns a http.Header that can be modified by the caller to add
10951 // headers to the request.
10952 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) Header() http.Header {
10953 if c.header_ == nil {
10954 c.header_ = make(http.Header)
10955 }
10956 return c.header_
10957 }
10958
10959 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) doRequest(alt string) (*http.Response, error) {
10960 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10961 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.exascaledbstoragevault)
10962 if err != nil {
10963 return nil, err
10964 }
10965 c.urlParams_.Set("alt", alt)
10966 c.urlParams_.Set("prettyPrint", "false")
10967 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/exascaleDbStorageVaults")
10968 urls += "?" + c.urlParams_.Encode()
10969 req, err := http.NewRequest("POST", urls, body)
10970 if err != nil {
10971 return nil, err
10972 }
10973 req.Header = reqHeaders
10974 googleapi.Expand(req.URL, map[string]string{
10975 "parent": c.parent,
10976 })
10977 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.create", "request", internallog.HTTPRequest(req, body.Bytes()))
10978 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10979 }
10980
10981 // Do executes the "oracledatabase.projects.locations.exascaleDbStorageVaults.create" call.
10982 // Any non-2xx status code is an error. Response headers are in either
10983 // *Operation.ServerResponse.Header or (if a response was returned at all) in
10984 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10985 // whether the returned error was because http.StatusNotModified was returned.
10986 func (c *ProjectsLocationsExascaleDbStorageVaultsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
10987 gensupport.SetOptions(c.urlParams_, opts...)
10988 res, err := c.doRequest("json")
10989 if res != nil && res.StatusCode == http.StatusNotModified {
10990 if res.Body != nil {
10991 res.Body.Close()
10992 }
10993 return nil, gensupport.WrapError(&googleapi.Error{
10994 Code: res.StatusCode,
10995 Header: res.Header,
10996 })
10997 }
10998 if err != nil {
10999 return nil, err
11000 }
11001 defer googleapi.CloseBody(res)
11002 if err := googleapi.CheckResponse(res); err != nil {
11003 return nil, gensupport.WrapError(err)
11004 }
11005 ret := &Operation{
11006 ServerResponse: googleapi.ServerResponse{
11007 Header: res.Header,
11008 HTTPStatusCode: res.StatusCode,
11009 },
11010 }
11011 target := &ret
11012 b, err := gensupport.DecodeResponseBytes(target, res)
11013 if err != nil {
11014 return nil, err
11015 }
11016 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.create", "response", internallog.HTTPResponse(res, b))
11017 return ret, nil
11018 }
11019
11020 type ProjectsLocationsExascaleDbStorageVaultsDeleteCall struct {
11021 s *Service
11022 name string
11023 urlParams_ gensupport.URLParams
11024 ctx_ context.Context
11025 header_ http.Header
11026 }
11027
11028 // Delete: Deletes a single ExascaleDB Storage Vault.
11029 //
11030 // - name: The name of the ExascaleDbStorageVault in the following format:
11031 // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_d
11032 // b_storage_vault}.
11033 func (r *ProjectsLocationsExascaleDbStorageVaultsService) Delete(name string) *ProjectsLocationsExascaleDbStorageVaultsDeleteCall {
11034 c := &ProjectsLocationsExascaleDbStorageVaultsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11035 c.name = name
11036 return c
11037 }
11038
11039 // RequestId sets the optional parameter "requestId": An optional ID to
11040 // identify the request. This value is used to identify duplicate requests. If
11041 // you make a request with the same request ID and the original request is
11042 // still in progress or completed, the server ignores the second request. This
11043 // prevents clients from accidentally creating duplicate commitments. The
11044 // request ID must be a valid UUID with the exception that zero UUID is not
11045 // supported (00000000-0000-0000-0000-000000000000).
11046 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) RequestId(requestId string) *ProjectsLocationsExascaleDbStorageVaultsDeleteCall {
11047 c.urlParams_.Set("requestId", requestId)
11048 return c
11049 }
11050
11051 // Fields allows partial responses to be retrieved. See
11052 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11053 // details.
11054 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExascaleDbStorageVaultsDeleteCall {
11055 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11056 return c
11057 }
11058
11059 // Context sets the context to be used in this call's Do method.
11060 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExascaleDbStorageVaultsDeleteCall {
11061 c.ctx_ = ctx
11062 return c
11063 }
11064
11065 // Header returns a http.Header that can be modified by the caller to add
11066 // headers to the request.
11067 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) Header() http.Header {
11068 if c.header_ == nil {
11069 c.header_ = make(http.Header)
11070 }
11071 return c.header_
11072 }
11073
11074 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) doRequest(alt string) (*http.Response, error) {
11075 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11076 c.urlParams_.Set("alt", alt)
11077 c.urlParams_.Set("prettyPrint", "false")
11078 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11079 urls += "?" + c.urlParams_.Encode()
11080 req, err := http.NewRequest("DELETE", urls, nil)
11081 if err != nil {
11082 return nil, err
11083 }
11084 req.Header = reqHeaders
11085 googleapi.Expand(req.URL, map[string]string{
11086 "name": c.name,
11087 })
11088 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.delete", "request", internallog.HTTPRequest(req, nil))
11089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11090 }
11091
11092 // Do executes the "oracledatabase.projects.locations.exascaleDbStorageVaults.delete" call.
11093 // Any non-2xx status code is an error. Response headers are in either
11094 // *Operation.ServerResponse.Header or (if a response was returned at all) in
11095 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11096 // whether the returned error was because http.StatusNotModified was returned.
11097 func (c *ProjectsLocationsExascaleDbStorageVaultsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11098 gensupport.SetOptions(c.urlParams_, opts...)
11099 res, err := c.doRequest("json")
11100 if res != nil && res.StatusCode == http.StatusNotModified {
11101 if res.Body != nil {
11102 res.Body.Close()
11103 }
11104 return nil, gensupport.WrapError(&googleapi.Error{
11105 Code: res.StatusCode,
11106 Header: res.Header,
11107 })
11108 }
11109 if err != nil {
11110 return nil, err
11111 }
11112 defer googleapi.CloseBody(res)
11113 if err := googleapi.CheckResponse(res); err != nil {
11114 return nil, gensupport.WrapError(err)
11115 }
11116 ret := &Operation{
11117 ServerResponse: googleapi.ServerResponse{
11118 Header: res.Header,
11119 HTTPStatusCode: res.StatusCode,
11120 },
11121 }
11122 target := &ret
11123 b, err := gensupport.DecodeResponseBytes(target, res)
11124 if err != nil {
11125 return nil, err
11126 }
11127 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.delete", "response", internallog.HTTPResponse(res, b))
11128 return ret, nil
11129 }
11130
11131 type ProjectsLocationsExascaleDbStorageVaultsGetCall struct {
11132 s *Service
11133 name string
11134 urlParams_ gensupport.URLParams
11135 ifNoneMatch_ string
11136 ctx_ context.Context
11137 header_ http.Header
11138 }
11139
11140 // Get: Gets details of a single ExascaleDB Storage Vault.
11141 //
11142 // - name: The name of the ExascaleDbStorageVault in the following format:
11143 // projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_d
11144 // b_storage_vault}.
11145 func (r *ProjectsLocationsExascaleDbStorageVaultsService) Get(name string) *ProjectsLocationsExascaleDbStorageVaultsGetCall {
11146 c := &ProjectsLocationsExascaleDbStorageVaultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11147 c.name = name
11148 return c
11149 }
11150
11151 // Fields allows partial responses to be retrieved. See
11152 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11153 // details.
11154 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExascaleDbStorageVaultsGetCall {
11155 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11156 return c
11157 }
11158
11159 // IfNoneMatch sets an optional parameter which makes the operation fail if the
11160 // object's ETag matches the given value. This is useful for getting updates
11161 // only after the object has changed since the last request.
11162 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExascaleDbStorageVaultsGetCall {
11163 c.ifNoneMatch_ = entityTag
11164 return c
11165 }
11166
11167 // Context sets the context to be used in this call's Do method.
11168 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) Context(ctx context.Context) *ProjectsLocationsExascaleDbStorageVaultsGetCall {
11169 c.ctx_ = ctx
11170 return c
11171 }
11172
11173 // Header returns a http.Header that can be modified by the caller to add
11174 // headers to the request.
11175 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) Header() http.Header {
11176 if c.header_ == nil {
11177 c.header_ = make(http.Header)
11178 }
11179 return c.header_
11180 }
11181
11182 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) doRequest(alt string) (*http.Response, error) {
11183 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11184 if c.ifNoneMatch_ != "" {
11185 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11186 }
11187 c.urlParams_.Set("alt", alt)
11188 c.urlParams_.Set("prettyPrint", "false")
11189 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11190 urls += "?" + c.urlParams_.Encode()
11191 req, err := http.NewRequest("GET", urls, nil)
11192 if err != nil {
11193 return nil, err
11194 }
11195 req.Header = reqHeaders
11196 googleapi.Expand(req.URL, map[string]string{
11197 "name": c.name,
11198 })
11199 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.get", "request", internallog.HTTPRequest(req, nil))
11200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11201 }
11202
11203 // Do executes the "oracledatabase.projects.locations.exascaleDbStorageVaults.get" call.
11204 // Any non-2xx status code is an error. Response headers are in either
11205 // *ExascaleDbStorageVault.ServerResponse.Header or (if a response was returned
11206 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11207 // check whether the returned error was because http.StatusNotModified was
11208 // returned.
11209 func (c *ProjectsLocationsExascaleDbStorageVaultsGetCall) Do(opts ...googleapi.CallOption) (*ExascaleDbStorageVault, error) {
11210 gensupport.SetOptions(c.urlParams_, opts...)
11211 res, err := c.doRequest("json")
11212 if res != nil && res.StatusCode == http.StatusNotModified {
11213 if res.Body != nil {
11214 res.Body.Close()
11215 }
11216 return nil, gensupport.WrapError(&googleapi.Error{
11217 Code: res.StatusCode,
11218 Header: res.Header,
11219 })
11220 }
11221 if err != nil {
11222 return nil, err
11223 }
11224 defer googleapi.CloseBody(res)
11225 if err := googleapi.CheckResponse(res); err != nil {
11226 return nil, gensupport.WrapError(err)
11227 }
11228 ret := &ExascaleDbStorageVault{
11229 ServerResponse: googleapi.ServerResponse{
11230 Header: res.Header,
11231 HTTPStatusCode: res.StatusCode,
11232 },
11233 }
11234 target := &ret
11235 b, err := gensupport.DecodeResponseBytes(target, res)
11236 if err != nil {
11237 return nil, err
11238 }
11239 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.get", "response", internallog.HTTPResponse(res, b))
11240 return ret, nil
11241 }
11242
11243 type ProjectsLocationsExascaleDbStorageVaultsListCall struct {
11244 s *Service
11245 parent string
11246 urlParams_ gensupport.URLParams
11247 ifNoneMatch_ string
11248 ctx_ context.Context
11249 header_ http.Header
11250 }
11251
11252 // List: Lists all the ExascaleDB Storage Vaults for the given project and
11253 // location.
11254 //
11255 // - parent: The parent value for ExascaleDbStorageVault in the following
11256 // format: projects/{project}/locations/{location}.
11257 func (r *ProjectsLocationsExascaleDbStorageVaultsService) List(parent string) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11258 c := &ProjectsLocationsExascaleDbStorageVaultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11259 c.parent = parent
11260 return c
11261 }
11262
11263 // Filter sets the optional parameter "filter": An expression for filtering the
11264 // results of the request. Filter the list as specified in
11265 // https://google.aip.dev/160.
11266 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Filter(filter string) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11267 c.urlParams_.Set("filter", filter)
11268 return c
11269 }
11270
11271 // OrderBy sets the optional parameter "orderBy": An expression for ordering
11272 // the results of the request. Order results as specified in
11273 // https://google.aip.dev/132.
11274 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) OrderBy(orderBy string) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11275 c.urlParams_.Set("orderBy", orderBy)
11276 return c
11277 }
11278
11279 // PageSize sets the optional parameter "pageSize": The maximum number of items
11280 // to return. If unspecified, at most 50 ExascaleDbStorageVaults will be
11281 // returned. The maximum value is 1000; values above 1000 will be coerced to
11282 // 1000.
11283 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) PageSize(pageSize int64) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11284 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11285 return c
11286 }
11287
11288 // PageToken sets the optional parameter "pageToken": A token identifying a
11289 // page of results the server should return.
11290 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) PageToken(pageToken string) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11291 c.urlParams_.Set("pageToken", pageToken)
11292 return c
11293 }
11294
11295 // Fields allows partial responses to be retrieved. See
11296 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11297 // details.
11298 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11299 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11300 return c
11301 }
11302
11303 // IfNoneMatch sets an optional parameter which makes the operation fail if the
11304 // object's ETag matches the given value. This is useful for getting updates
11305 // only after the object has changed since the last request.
11306 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11307 c.ifNoneMatch_ = entityTag
11308 return c
11309 }
11310
11311 // Context sets the context to be used in this call's Do method.
11312 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Context(ctx context.Context) *ProjectsLocationsExascaleDbStorageVaultsListCall {
11313 c.ctx_ = ctx
11314 return c
11315 }
11316
11317 // Header returns a http.Header that can be modified by the caller to add
11318 // headers to the request.
11319 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Header() http.Header {
11320 if c.header_ == nil {
11321 c.header_ = make(http.Header)
11322 }
11323 return c.header_
11324 }
11325
11326 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) doRequest(alt string) (*http.Response, error) {
11327 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11328 if c.ifNoneMatch_ != "" {
11329 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11330 }
11331 c.urlParams_.Set("alt", alt)
11332 c.urlParams_.Set("prettyPrint", "false")
11333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/exascaleDbStorageVaults")
11334 urls += "?" + c.urlParams_.Encode()
11335 req, err := http.NewRequest("GET", urls, nil)
11336 if err != nil {
11337 return nil, err
11338 }
11339 req.Header = reqHeaders
11340 googleapi.Expand(req.URL, map[string]string{
11341 "parent": c.parent,
11342 })
11343 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.list", "request", internallog.HTTPRequest(req, nil))
11344 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11345 }
11346
11347 // Do executes the "oracledatabase.projects.locations.exascaleDbStorageVaults.list" call.
11348 // Any non-2xx status code is an error. Response headers are in either
11349 // *ListExascaleDbStorageVaultsResponse.ServerResponse.Header or (if a response
11350 // was returned at all) in error.(*googleapi.Error).Header. Use
11351 // googleapi.IsNotModified to check whether the returned error was because
11352 // http.StatusNotModified was returned.
11353 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Do(opts ...googleapi.CallOption) (*ListExascaleDbStorageVaultsResponse, error) {
11354 gensupport.SetOptions(c.urlParams_, opts...)
11355 res, err := c.doRequest("json")
11356 if res != nil && res.StatusCode == http.StatusNotModified {
11357 if res.Body != nil {
11358 res.Body.Close()
11359 }
11360 return nil, gensupport.WrapError(&googleapi.Error{
11361 Code: res.StatusCode,
11362 Header: res.Header,
11363 })
11364 }
11365 if err != nil {
11366 return nil, err
11367 }
11368 defer googleapi.CloseBody(res)
11369 if err := googleapi.CheckResponse(res); err != nil {
11370 return nil, gensupport.WrapError(err)
11371 }
11372 ret := &ListExascaleDbStorageVaultsResponse{
11373 ServerResponse: googleapi.ServerResponse{
11374 Header: res.Header,
11375 HTTPStatusCode: res.StatusCode,
11376 },
11377 }
11378 target := &ret
11379 b, err := gensupport.DecodeResponseBytes(target, res)
11380 if err != nil {
11381 return nil, err
11382 }
11383 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.exascaleDbStorageVaults.list", "response", internallog.HTTPResponse(res, b))
11384 return ret, nil
11385 }
11386
11387 // Pages invokes f for each page of results.
11388 // A non-nil error returned from f will halt the iteration.
11389 // The provided context supersedes any context provided to the Context method.
11390 func (c *ProjectsLocationsExascaleDbStorageVaultsListCall) Pages(ctx context.Context, f func(*ListExascaleDbStorageVaultsResponse) error) error {
11391 c.ctx_ = ctx
11392 defer c.PageToken(c.urlParams_.Get("pageToken"))
11393 for {
11394 x, err := c.Do()
11395 if err != nil {
11396 return err
11397 }
11398 if err := f(x); err != nil {
11399 return err
11400 }
11401 if x.NextPageToken == "" {
11402 return nil
11403 }
11404 c.PageToken(x.NextPageToken)
11405 }
11406 }
11407
11408 type ProjectsLocationsGiVersionsListCall struct {
11409 s *Service
11410 parent string
11411 urlParams_ gensupport.URLParams
11412 ifNoneMatch_ string
11413 ctx_ context.Context
11414 header_ http.Header
11415 }
11416
11417 // List: Lists all the valid Oracle Grid Infrastructure (GI) versions for the
11418 // given project and location.
11419 //
11420 // - parent: The parent value for Grid Infrastructure Version in the following
11421 // format: Format: projects/{project}/locations/{location}.
11422 func (r *ProjectsLocationsGiVersionsService) List(parent string) *ProjectsLocationsGiVersionsListCall {
11423 c := &ProjectsLocationsGiVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11424 c.parent = parent
11425 return c
11426 }
11427
11428 // Filter sets the optional parameter "filter": An expression for filtering the
11429 // results of the request. Only the shape, gcp_oracle_zone and gi_version
11430 // fields are supported in this format: `shape="{shape}".
11431 func (c *ProjectsLocationsGiVersionsListCall) Filter(filter string) *ProjectsLocationsGiVersionsListCall {
11432 c.urlParams_.Set("filter", filter)
11433 return c
11434 }
11435
11436 // PageSize sets the optional parameter "pageSize": The maximum number of items
11437 // to return. If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI)
11438 // versions will be returned. The maximum value is 1000; values above 1000 will
11439 // be reset to 1000.
11440 func (c *ProjectsLocationsGiVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsGiVersionsListCall {
11441 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11442 return c
11443 }
11444
11445 // PageToken sets the optional parameter "pageToken": A token identifying a
11446 // page of results the server should return.
11447 func (c *ProjectsLocationsGiVersionsListCall) PageToken(pageToken string) *ProjectsLocationsGiVersionsListCall {
11448 c.urlParams_.Set("pageToken", pageToken)
11449 return c
11450 }
11451
11452 // Fields allows partial responses to be retrieved. See
11453 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11454 // details.
11455 func (c *ProjectsLocationsGiVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGiVersionsListCall {
11456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11457 return c
11458 }
11459
11460 // IfNoneMatch sets an optional parameter which makes the operation fail if the
11461 // object's ETag matches the given value. This is useful for getting updates
11462 // only after the object has changed since the last request.
11463 func (c *ProjectsLocationsGiVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGiVersionsListCall {
11464 c.ifNoneMatch_ = entityTag
11465 return c
11466 }
11467
11468 // Context sets the context to be used in this call's Do method.
11469 func (c *ProjectsLocationsGiVersionsListCall) Context(ctx context.Context) *ProjectsLocationsGiVersionsListCall {
11470 c.ctx_ = ctx
11471 return c
11472 }
11473
11474 // Header returns a http.Header that can be modified by the caller to add
11475 // headers to the request.
11476 func (c *ProjectsLocationsGiVersionsListCall) Header() http.Header {
11477 if c.header_ == nil {
11478 c.header_ = make(http.Header)
11479 }
11480 return c.header_
11481 }
11482
11483 func (c *ProjectsLocationsGiVersionsListCall) doRequest(alt string) (*http.Response, error) {
11484 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11485 if c.ifNoneMatch_ != "" {
11486 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11487 }
11488 c.urlParams_.Set("alt", alt)
11489 c.urlParams_.Set("prettyPrint", "false")
11490 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/giVersions")
11491 urls += "?" + c.urlParams_.Encode()
11492 req, err := http.NewRequest("GET", urls, nil)
11493 if err != nil {
11494 return nil, err
11495 }
11496 req.Header = reqHeaders
11497 googleapi.Expand(req.URL, map[string]string{
11498 "parent": c.parent,
11499 })
11500 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.giVersions.list", "request", internallog.HTTPRequest(req, nil))
11501 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11502 }
11503
11504 // Do executes the "oracledatabase.projects.locations.giVersions.list" call.
11505 // Any non-2xx status code is an error. Response headers are in either
11506 // *ListGiVersionsResponse.ServerResponse.Header or (if a response was returned
11507 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11508 // check whether the returned error was because http.StatusNotModified was
11509 // returned.
11510 func (c *ProjectsLocationsGiVersionsListCall) Do(opts ...googleapi.CallOption) (*ListGiVersionsResponse, error) {
11511 gensupport.SetOptions(c.urlParams_, opts...)
11512 res, err := c.doRequest("json")
11513 if res != nil && res.StatusCode == http.StatusNotModified {
11514 if res.Body != nil {
11515 res.Body.Close()
11516 }
11517 return nil, gensupport.WrapError(&googleapi.Error{
11518 Code: res.StatusCode,
11519 Header: res.Header,
11520 })
11521 }
11522 if err != nil {
11523 return nil, err
11524 }
11525 defer googleapi.CloseBody(res)
11526 if err := googleapi.CheckResponse(res); err != nil {
11527 return nil, gensupport.WrapError(err)
11528 }
11529 ret := &ListGiVersionsResponse{
11530 ServerResponse: googleapi.ServerResponse{
11531 Header: res.Header,
11532 HTTPStatusCode: res.StatusCode,
11533 },
11534 }
11535 target := &ret
11536 b, err := gensupport.DecodeResponseBytes(target, res)
11537 if err != nil {
11538 return nil, err
11539 }
11540 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.giVersions.list", "response", internallog.HTTPResponse(res, b))
11541 return ret, nil
11542 }
11543
11544 // Pages invokes f for each page of results.
11545 // A non-nil error returned from f will halt the iteration.
11546 // The provided context supersedes any context provided to the Context method.
11547 func (c *ProjectsLocationsGiVersionsListCall) Pages(ctx context.Context, f func(*ListGiVersionsResponse) error) error {
11548 c.ctx_ = ctx
11549 defer c.PageToken(c.urlParams_.Get("pageToken"))
11550 for {
11551 x, err := c.Do()
11552 if err != nil {
11553 return err
11554 }
11555 if err := f(x); err != nil {
11556 return err
11557 }
11558 if x.NextPageToken == "" {
11559 return nil
11560 }
11561 c.PageToken(x.NextPageToken)
11562 }
11563 }
11564
11565 type ProjectsLocationsGiVersionsMinorVersionsListCall struct {
11566 s *Service
11567 parent string
11568 urlParams_ gensupport.URLParams
11569 ifNoneMatch_ string
11570 ctx_ context.Context
11571 header_ http.Header
11572 }
11573
11574 // List: Lists all the valid minor versions for the given project, location, gi
11575 // version and shape family.
11576 //
11577 // - parent: The parent value for the MinorVersion resource with the format:
11578 // projects/{project}/locations/{location}/giVersions/{gi_version}.
11579 func (r *ProjectsLocationsGiVersionsMinorVersionsService) List(parent string) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11580 c := &ProjectsLocationsGiVersionsMinorVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11581 c.parent = parent
11582 return c
11583 }
11584
11585 // Filter sets the optional parameter "filter": An expression for filtering the
11586 // results of the request. Only shapeFamily and gcp_oracle_zone_id are
11587 // supported in this format: `shape_family="{shapeFamily}" AND
11588 // gcp_oracle_zone_id="{gcp_oracle_zone_id}".
11589 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Filter(filter string) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11590 c.urlParams_.Set("filter", filter)
11591 return c
11592 }
11593
11594 // PageSize sets the optional parameter "pageSize": The maximum number of items
11595 // to return. If unspecified, a maximum of 50 System Versions will be returned.
11596 // The maximum value is 1000; values above 1000 will be reset to 1000.
11597 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11598 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11599 return c
11600 }
11601
11602 // PageToken sets the optional parameter "pageToken": A token identifying the
11603 // requested page of results to return. All fields except the filter should
11604 // remain the same as in the request that provided this page token.
11605 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) PageToken(pageToken string) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11606 c.urlParams_.Set("pageToken", pageToken)
11607 return c
11608 }
11609
11610 // Fields allows partial responses to be retrieved. See
11611 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11612 // details.
11613 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11614 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11615 return c
11616 }
11617
11618 // IfNoneMatch sets an optional parameter which makes the operation fail if the
11619 // object's ETag matches the given value. This is useful for getting updates
11620 // only after the object has changed since the last request.
11621 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11622 c.ifNoneMatch_ = entityTag
11623 return c
11624 }
11625
11626 // Context sets the context to be used in this call's Do method.
11627 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Context(ctx context.Context) *ProjectsLocationsGiVersionsMinorVersionsListCall {
11628 c.ctx_ = ctx
11629 return c
11630 }
11631
11632 // Header returns a http.Header that can be modified by the caller to add
11633 // headers to the request.
11634 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Header() http.Header {
11635 if c.header_ == nil {
11636 c.header_ = make(http.Header)
11637 }
11638 return c.header_
11639 }
11640
11641 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) doRequest(alt string) (*http.Response, error) {
11642 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11643 if c.ifNoneMatch_ != "" {
11644 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11645 }
11646 c.urlParams_.Set("alt", alt)
11647 c.urlParams_.Set("prettyPrint", "false")
11648 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/minorVersions")
11649 urls += "?" + c.urlParams_.Encode()
11650 req, err := http.NewRequest("GET", urls, nil)
11651 if err != nil {
11652 return nil, err
11653 }
11654 req.Header = reqHeaders
11655 googleapi.Expand(req.URL, map[string]string{
11656 "parent": c.parent,
11657 })
11658 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.giVersions.minorVersions.list", "request", internallog.HTTPRequest(req, nil))
11659 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11660 }
11661
11662 // Do executes the "oracledatabase.projects.locations.giVersions.minorVersions.list" call.
11663 // Any non-2xx status code is an error. Response headers are in either
11664 // *ListMinorVersionsResponse.ServerResponse.Header or (if a response was
11665 // returned at all) in error.(*googleapi.Error).Header. Use
11666 // googleapi.IsNotModified to check whether the returned error was because
11667 // http.StatusNotModified was returned.
11668 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Do(opts ...googleapi.CallOption) (*ListMinorVersionsResponse, error) {
11669 gensupport.SetOptions(c.urlParams_, opts...)
11670 res, err := c.doRequest("json")
11671 if res != nil && res.StatusCode == http.StatusNotModified {
11672 if res.Body != nil {
11673 res.Body.Close()
11674 }
11675 return nil, gensupport.WrapError(&googleapi.Error{
11676 Code: res.StatusCode,
11677 Header: res.Header,
11678 })
11679 }
11680 if err != nil {
11681 return nil, err
11682 }
11683 defer googleapi.CloseBody(res)
11684 if err := googleapi.CheckResponse(res); err != nil {
11685 return nil, gensupport.WrapError(err)
11686 }
11687 ret := &ListMinorVersionsResponse{
11688 ServerResponse: googleapi.ServerResponse{
11689 Header: res.Header,
11690 HTTPStatusCode: res.StatusCode,
11691 },
11692 }
11693 target := &ret
11694 b, err := gensupport.DecodeResponseBytes(target, res)
11695 if err != nil {
11696 return nil, err
11697 }
11698 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.giVersions.minorVersions.list", "response", internallog.HTTPResponse(res, b))
11699 return ret, nil
11700 }
11701
11702 // Pages invokes f for each page of results.
11703 // A non-nil error returned from f will halt the iteration.
11704 // The provided context supersedes any context provided to the Context method.
11705 func (c *ProjectsLocationsGiVersionsMinorVersionsListCall) Pages(ctx context.Context, f func(*ListMinorVersionsResponse) error) error {
11706 c.ctx_ = ctx
11707 defer c.PageToken(c.urlParams_.Get("pageToken"))
11708 for {
11709 x, err := c.Do()
11710 if err != nil {
11711 return err
11712 }
11713 if err := f(x); err != nil {
11714 return err
11715 }
11716 if x.NextPageToken == "" {
11717 return nil
11718 }
11719 c.PageToken(x.NextPageToken)
11720 }
11721 }
11722
11723 type ProjectsLocationsOdbNetworksCreateCall struct {
11724 s *Service
11725 parent string
11726 odbnetwork *OdbNetwork
11727 urlParams_ gensupport.URLParams
11728 ctx_ context.Context
11729 header_ http.Header
11730 }
11731
11732 // Create: Creates a new ODB Network in a given project and location.
11733 //
11734 // - parent: The parent value for the OdbNetwork in the following format:
11735 // projects/{project}/locations/{location}.
11736 func (r *ProjectsLocationsOdbNetworksService) Create(parent string, odbnetwork *OdbNetwork) *ProjectsLocationsOdbNetworksCreateCall {
11737 c := &ProjectsLocationsOdbNetworksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11738 c.parent = parent
11739 c.odbnetwork = odbnetwork
11740 return c
11741 }
11742
11743 // OdbNetworkId sets the optional parameter "odbNetworkId": Required. The ID of
11744 // the OdbNetwork to create. This value is restricted to (^a-z
11745 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
11746 // length. The value must start with a letter and end with a letter or a
11747 // number.
11748 func (c *ProjectsLocationsOdbNetworksCreateCall) OdbNetworkId(odbNetworkId string) *ProjectsLocationsOdbNetworksCreateCall {
11749 c.urlParams_.Set("odbNetworkId", odbNetworkId)
11750 return c
11751 }
11752
11753 // RequestId sets the optional parameter "requestId": An optional ID to
11754 // identify the request. This value is used to identify duplicate requests. If
11755 // you make a request with the same request ID and the original request is
11756 // still in progress or completed, the server ignores the second request. This
11757 // prevents clients from accidentally creating duplicate commitments. The
11758 // request ID must be a valid UUID with the exception that zero UUID is not
11759 // supported (00000000-0000-0000-0000-000000000000).
11760 func (c *ProjectsLocationsOdbNetworksCreateCall) RequestId(requestId string) *ProjectsLocationsOdbNetworksCreateCall {
11761 c.urlParams_.Set("requestId", requestId)
11762 return c
11763 }
11764
11765 // Fields allows partial responses to be retrieved. See
11766 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11767 // details.
11768 func (c *ProjectsLocationsOdbNetworksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksCreateCall {
11769 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11770 return c
11771 }
11772
11773 // Context sets the context to be used in this call's Do method.
11774 func (c *ProjectsLocationsOdbNetworksCreateCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksCreateCall {
11775 c.ctx_ = ctx
11776 return c
11777 }
11778
11779 // Header returns a http.Header that can be modified by the caller to add
11780 // headers to the request.
11781 func (c *ProjectsLocationsOdbNetworksCreateCall) Header() http.Header {
11782 if c.header_ == nil {
11783 c.header_ = make(http.Header)
11784 }
11785 return c.header_
11786 }
11787
11788 func (c *ProjectsLocationsOdbNetworksCreateCall) doRequest(alt string) (*http.Response, error) {
11789 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11790 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.odbnetwork)
11791 if err != nil {
11792 return nil, err
11793 }
11794 c.urlParams_.Set("alt", alt)
11795 c.urlParams_.Set("prettyPrint", "false")
11796 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/odbNetworks")
11797 urls += "?" + c.urlParams_.Encode()
11798 req, err := http.NewRequest("POST", urls, body)
11799 if err != nil {
11800 return nil, err
11801 }
11802 req.Header = reqHeaders
11803 googleapi.Expand(req.URL, map[string]string{
11804 "parent": c.parent,
11805 })
11806 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.create", "request", internallog.HTTPRequest(req, body.Bytes()))
11807 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11808 }
11809
11810 // Do executes the "oracledatabase.projects.locations.odbNetworks.create" call.
11811 // Any non-2xx status code is an error. Response headers are in either
11812 // *Operation.ServerResponse.Header or (if a response was returned at all) in
11813 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11814 // whether the returned error was because http.StatusNotModified was returned.
11815 func (c *ProjectsLocationsOdbNetworksCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11816 gensupport.SetOptions(c.urlParams_, opts...)
11817 res, err := c.doRequest("json")
11818 if res != nil && res.StatusCode == http.StatusNotModified {
11819 if res.Body != nil {
11820 res.Body.Close()
11821 }
11822 return nil, gensupport.WrapError(&googleapi.Error{
11823 Code: res.StatusCode,
11824 Header: res.Header,
11825 })
11826 }
11827 if err != nil {
11828 return nil, err
11829 }
11830 defer googleapi.CloseBody(res)
11831 if err := googleapi.CheckResponse(res); err != nil {
11832 return nil, gensupport.WrapError(err)
11833 }
11834 ret := &Operation{
11835 ServerResponse: googleapi.ServerResponse{
11836 Header: res.Header,
11837 HTTPStatusCode: res.StatusCode,
11838 },
11839 }
11840 target := &ret
11841 b, err := gensupport.DecodeResponseBytes(target, res)
11842 if err != nil {
11843 return nil, err
11844 }
11845 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.create", "response", internallog.HTTPResponse(res, b))
11846 return ret, nil
11847 }
11848
11849 type ProjectsLocationsOdbNetworksDeleteCall struct {
11850 s *Service
11851 name string
11852 urlParams_ gensupport.URLParams
11853 ctx_ context.Context
11854 header_ http.Header
11855 }
11856
11857 // Delete: Deletes a single ODB Network.
11858 //
11859 // - name: The name of the resource in the following format:
11860 // projects/{project}/locations/{location}/odbNetworks/{odb_network}.
11861 func (r *ProjectsLocationsOdbNetworksService) Delete(name string) *ProjectsLocationsOdbNetworksDeleteCall {
11862 c := &ProjectsLocationsOdbNetworksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11863 c.name = name
11864 return c
11865 }
11866
11867 // RequestId sets the optional parameter "requestId": An optional ID to
11868 // identify the request. This value is used to identify duplicate requests. If
11869 // you make a request with the same request ID and the original request is
11870 // still in progress or completed, the server ignores the second request. This
11871 // prevents clients from accidentally creating duplicate commitments. The
11872 // request ID must be a valid UUID with the exception that zero UUID is not
11873 // supported (00000000-0000-0000-0000-000000000000).
11874 func (c *ProjectsLocationsOdbNetworksDeleteCall) RequestId(requestId string) *ProjectsLocationsOdbNetworksDeleteCall {
11875 c.urlParams_.Set("requestId", requestId)
11876 return c
11877 }
11878
11879 // Fields allows partial responses to be retrieved. See
11880 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11881 // details.
11882 func (c *ProjectsLocationsOdbNetworksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksDeleteCall {
11883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11884 return c
11885 }
11886
11887 // Context sets the context to be used in this call's Do method.
11888 func (c *ProjectsLocationsOdbNetworksDeleteCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksDeleteCall {
11889 c.ctx_ = ctx
11890 return c
11891 }
11892
11893 // Header returns a http.Header that can be modified by the caller to add
11894 // headers to the request.
11895 func (c *ProjectsLocationsOdbNetworksDeleteCall) Header() http.Header {
11896 if c.header_ == nil {
11897 c.header_ = make(http.Header)
11898 }
11899 return c.header_
11900 }
11901
11902 func (c *ProjectsLocationsOdbNetworksDeleteCall) doRequest(alt string) (*http.Response, error) {
11903 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11904 c.urlParams_.Set("alt", alt)
11905 c.urlParams_.Set("prettyPrint", "false")
11906 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11907 urls += "?" + c.urlParams_.Encode()
11908 req, err := http.NewRequest("DELETE", urls, nil)
11909 if err != nil {
11910 return nil, err
11911 }
11912 req.Header = reqHeaders
11913 googleapi.Expand(req.URL, map[string]string{
11914 "name": c.name,
11915 })
11916 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.delete", "request", internallog.HTTPRequest(req, nil))
11917 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11918 }
11919
11920 // Do executes the "oracledatabase.projects.locations.odbNetworks.delete" call.
11921 // Any non-2xx status code is an error. Response headers are in either
11922 // *Operation.ServerResponse.Header or (if a response was returned at all) in
11923 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11924 // whether the returned error was because http.StatusNotModified was returned.
11925 func (c *ProjectsLocationsOdbNetworksDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
11926 gensupport.SetOptions(c.urlParams_, opts...)
11927 res, err := c.doRequest("json")
11928 if res != nil && res.StatusCode == http.StatusNotModified {
11929 if res.Body != nil {
11930 res.Body.Close()
11931 }
11932 return nil, gensupport.WrapError(&googleapi.Error{
11933 Code: res.StatusCode,
11934 Header: res.Header,
11935 })
11936 }
11937 if err != nil {
11938 return nil, err
11939 }
11940 defer googleapi.CloseBody(res)
11941 if err := googleapi.CheckResponse(res); err != nil {
11942 return nil, gensupport.WrapError(err)
11943 }
11944 ret := &Operation{
11945 ServerResponse: googleapi.ServerResponse{
11946 Header: res.Header,
11947 HTTPStatusCode: res.StatusCode,
11948 },
11949 }
11950 target := &ret
11951 b, err := gensupport.DecodeResponseBytes(target, res)
11952 if err != nil {
11953 return nil, err
11954 }
11955 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.delete", "response", internallog.HTTPResponse(res, b))
11956 return ret, nil
11957 }
11958
11959 type ProjectsLocationsOdbNetworksGetCall struct {
11960 s *Service
11961 name string
11962 urlParams_ gensupport.URLParams
11963 ifNoneMatch_ string
11964 ctx_ context.Context
11965 header_ http.Header
11966 }
11967
11968 // Get: Gets details of a single ODB Network.
11969 //
11970 // - name: The name of the OdbNetwork in the following format:
11971 // projects/{project}/locations/{location}/odbNetworks/{odb_network}.
11972 func (r *ProjectsLocationsOdbNetworksService) Get(name string) *ProjectsLocationsOdbNetworksGetCall {
11973 c := &ProjectsLocationsOdbNetworksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11974 c.name = name
11975 return c
11976 }
11977
11978 // Fields allows partial responses to be retrieved. See
11979 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
11980 // details.
11981 func (c *ProjectsLocationsOdbNetworksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksGetCall {
11982 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11983 return c
11984 }
11985
11986 // IfNoneMatch sets an optional parameter which makes the operation fail if the
11987 // object's ETag matches the given value. This is useful for getting updates
11988 // only after the object has changed since the last request.
11989 func (c *ProjectsLocationsOdbNetworksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOdbNetworksGetCall {
11990 c.ifNoneMatch_ = entityTag
11991 return c
11992 }
11993
11994 // Context sets the context to be used in this call's Do method.
11995 func (c *ProjectsLocationsOdbNetworksGetCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksGetCall {
11996 c.ctx_ = ctx
11997 return c
11998 }
11999
12000 // Header returns a http.Header that can be modified by the caller to add
12001 // headers to the request.
12002 func (c *ProjectsLocationsOdbNetworksGetCall) Header() http.Header {
12003 if c.header_ == nil {
12004 c.header_ = make(http.Header)
12005 }
12006 return c.header_
12007 }
12008
12009 func (c *ProjectsLocationsOdbNetworksGetCall) doRequest(alt string) (*http.Response, error) {
12010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12011 if c.ifNoneMatch_ != "" {
12012 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12013 }
12014 c.urlParams_.Set("alt", alt)
12015 c.urlParams_.Set("prettyPrint", "false")
12016 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12017 urls += "?" + c.urlParams_.Encode()
12018 req, err := http.NewRequest("GET", urls, nil)
12019 if err != nil {
12020 return nil, err
12021 }
12022 req.Header = reqHeaders
12023 googleapi.Expand(req.URL, map[string]string{
12024 "name": c.name,
12025 })
12026 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.get", "request", internallog.HTTPRequest(req, nil))
12027 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12028 }
12029
12030 // Do executes the "oracledatabase.projects.locations.odbNetworks.get" call.
12031 // Any non-2xx status code is an error. Response headers are in either
12032 // *OdbNetwork.ServerResponse.Header or (if a response was returned at all) in
12033 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12034 // whether the returned error was because http.StatusNotModified was returned.
12035 func (c *ProjectsLocationsOdbNetworksGetCall) Do(opts ...googleapi.CallOption) (*OdbNetwork, error) {
12036 gensupport.SetOptions(c.urlParams_, opts...)
12037 res, err := c.doRequest("json")
12038 if res != nil && res.StatusCode == http.StatusNotModified {
12039 if res.Body != nil {
12040 res.Body.Close()
12041 }
12042 return nil, gensupport.WrapError(&googleapi.Error{
12043 Code: res.StatusCode,
12044 Header: res.Header,
12045 })
12046 }
12047 if err != nil {
12048 return nil, err
12049 }
12050 defer googleapi.CloseBody(res)
12051 if err := googleapi.CheckResponse(res); err != nil {
12052 return nil, gensupport.WrapError(err)
12053 }
12054 ret := &OdbNetwork{
12055 ServerResponse: googleapi.ServerResponse{
12056 Header: res.Header,
12057 HTTPStatusCode: res.StatusCode,
12058 },
12059 }
12060 target := &ret
12061 b, err := gensupport.DecodeResponseBytes(target, res)
12062 if err != nil {
12063 return nil, err
12064 }
12065 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.get", "response", internallog.HTTPResponse(res, b))
12066 return ret, nil
12067 }
12068
12069 type ProjectsLocationsOdbNetworksListCall struct {
12070 s *Service
12071 parent string
12072 urlParams_ gensupport.URLParams
12073 ifNoneMatch_ string
12074 ctx_ context.Context
12075 header_ http.Header
12076 }
12077
12078 // List: Lists the ODB Networks in a given project and location.
12079 //
12080 // - parent: The parent value for the ODB Network in the following format:
12081 // projects/{project}/locations/{location}.
12082 func (r *ProjectsLocationsOdbNetworksService) List(parent string) *ProjectsLocationsOdbNetworksListCall {
12083 c := &ProjectsLocationsOdbNetworksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12084 c.parent = parent
12085 return c
12086 }
12087
12088 // Filter sets the optional parameter "filter": An expression for filtering the
12089 // results of the request.
12090 func (c *ProjectsLocationsOdbNetworksListCall) Filter(filter string) *ProjectsLocationsOdbNetworksListCall {
12091 c.urlParams_.Set("filter", filter)
12092 return c
12093 }
12094
12095 // OrderBy sets the optional parameter "orderBy": An expression for ordering
12096 // the results of the request.
12097 func (c *ProjectsLocationsOdbNetworksListCall) OrderBy(orderBy string) *ProjectsLocationsOdbNetworksListCall {
12098 c.urlParams_.Set("orderBy", orderBy)
12099 return c
12100 }
12101
12102 // PageSize sets the optional parameter "pageSize": The maximum number of items
12103 // to return. If unspecified, at most 50 ODB Networks will be returned. The
12104 // maximum value is 1000; values above 1000 will be coerced to 1000.
12105 func (c *ProjectsLocationsOdbNetworksListCall) PageSize(pageSize int64) *ProjectsLocationsOdbNetworksListCall {
12106 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12107 return c
12108 }
12109
12110 // PageToken sets the optional parameter "pageToken": A token identifying a
12111 // page of results the server should return.
12112 func (c *ProjectsLocationsOdbNetworksListCall) PageToken(pageToken string) *ProjectsLocationsOdbNetworksListCall {
12113 c.urlParams_.Set("pageToken", pageToken)
12114 return c
12115 }
12116
12117 // Fields allows partial responses to be retrieved. See
12118 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12119 // details.
12120 func (c *ProjectsLocationsOdbNetworksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksListCall {
12121 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12122 return c
12123 }
12124
12125 // IfNoneMatch sets an optional parameter which makes the operation fail if the
12126 // object's ETag matches the given value. This is useful for getting updates
12127 // only after the object has changed since the last request.
12128 func (c *ProjectsLocationsOdbNetworksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOdbNetworksListCall {
12129 c.ifNoneMatch_ = entityTag
12130 return c
12131 }
12132
12133 // Context sets the context to be used in this call's Do method.
12134 func (c *ProjectsLocationsOdbNetworksListCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksListCall {
12135 c.ctx_ = ctx
12136 return c
12137 }
12138
12139 // Header returns a http.Header that can be modified by the caller to add
12140 // headers to the request.
12141 func (c *ProjectsLocationsOdbNetworksListCall) Header() http.Header {
12142 if c.header_ == nil {
12143 c.header_ = make(http.Header)
12144 }
12145 return c.header_
12146 }
12147
12148 func (c *ProjectsLocationsOdbNetworksListCall) doRequest(alt string) (*http.Response, error) {
12149 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12150 if c.ifNoneMatch_ != "" {
12151 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12152 }
12153 c.urlParams_.Set("alt", alt)
12154 c.urlParams_.Set("prettyPrint", "false")
12155 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/odbNetworks")
12156 urls += "?" + c.urlParams_.Encode()
12157 req, err := http.NewRequest("GET", urls, nil)
12158 if err != nil {
12159 return nil, err
12160 }
12161 req.Header = reqHeaders
12162 googleapi.Expand(req.URL, map[string]string{
12163 "parent": c.parent,
12164 })
12165 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.list", "request", internallog.HTTPRequest(req, nil))
12166 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12167 }
12168
12169 // Do executes the "oracledatabase.projects.locations.odbNetworks.list" call.
12170 // Any non-2xx status code is an error. Response headers are in either
12171 // *ListOdbNetworksResponse.ServerResponse.Header or (if a response was
12172 // returned at all) in error.(*googleapi.Error).Header. Use
12173 // googleapi.IsNotModified to check whether the returned error was because
12174 // http.StatusNotModified was returned.
12175 func (c *ProjectsLocationsOdbNetworksListCall) Do(opts ...googleapi.CallOption) (*ListOdbNetworksResponse, error) {
12176 gensupport.SetOptions(c.urlParams_, opts...)
12177 res, err := c.doRequest("json")
12178 if res != nil && res.StatusCode == http.StatusNotModified {
12179 if res.Body != nil {
12180 res.Body.Close()
12181 }
12182 return nil, gensupport.WrapError(&googleapi.Error{
12183 Code: res.StatusCode,
12184 Header: res.Header,
12185 })
12186 }
12187 if err != nil {
12188 return nil, err
12189 }
12190 defer googleapi.CloseBody(res)
12191 if err := googleapi.CheckResponse(res); err != nil {
12192 return nil, gensupport.WrapError(err)
12193 }
12194 ret := &ListOdbNetworksResponse{
12195 ServerResponse: googleapi.ServerResponse{
12196 Header: res.Header,
12197 HTTPStatusCode: res.StatusCode,
12198 },
12199 }
12200 target := &ret
12201 b, err := gensupport.DecodeResponseBytes(target, res)
12202 if err != nil {
12203 return nil, err
12204 }
12205 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.list", "response", internallog.HTTPResponse(res, b))
12206 return ret, nil
12207 }
12208
12209 // Pages invokes f for each page of results.
12210 // A non-nil error returned from f will halt the iteration.
12211 // The provided context supersedes any context provided to the Context method.
12212 func (c *ProjectsLocationsOdbNetworksListCall) Pages(ctx context.Context, f func(*ListOdbNetworksResponse) error) error {
12213 c.ctx_ = ctx
12214 defer c.PageToken(c.urlParams_.Get("pageToken"))
12215 for {
12216 x, err := c.Do()
12217 if err != nil {
12218 return err
12219 }
12220 if err := f(x); err != nil {
12221 return err
12222 }
12223 if x.NextPageToken == "" {
12224 return nil
12225 }
12226 c.PageToken(x.NextPageToken)
12227 }
12228 }
12229
12230 type ProjectsLocationsOdbNetworksOdbSubnetsCreateCall struct {
12231 s *Service
12232 parent string
12233 odbsubnet *OdbSubnet
12234 urlParams_ gensupport.URLParams
12235 ctx_ context.Context
12236 header_ http.Header
12237 }
12238
12239 // Create: Creates a new ODB Subnet in a given ODB Network.
12240 //
12241 // - parent: The parent value for the OdbSubnet in the following format:
12242 // projects/{project}/locations/{location}/odbNetworks/{odb_network}.
12243 func (r *ProjectsLocationsOdbNetworksOdbSubnetsService) Create(parent string, odbsubnet *OdbSubnet) *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall {
12244 c := &ProjectsLocationsOdbNetworksOdbSubnetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12245 c.parent = parent
12246 c.odbsubnet = odbsubnet
12247 return c
12248 }
12249
12250 // OdbSubnetId sets the optional parameter "odbSubnetId": Required. The ID of
12251 // the OdbSubnet to create. This value is restricted to (^a-z
12252 // ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in
12253 // length. The value must start with a letter and end with a letter or a
12254 // number.
12255 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) OdbSubnetId(odbSubnetId string) *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall {
12256 c.urlParams_.Set("odbSubnetId", odbSubnetId)
12257 return c
12258 }
12259
12260 // RequestId sets the optional parameter "requestId": An optional ID to
12261 // identify the request. This value is used to identify duplicate requests. If
12262 // you make a request with the same request ID and the original request is
12263 // still in progress or completed, the server ignores the second request. This
12264 // prevents clients from accidentally creating duplicate commitments. The
12265 // request ID must be a valid UUID with the exception that zero UUID is not
12266 // supported (00000000-0000-0000-0000-000000000000).
12267 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) RequestId(requestId string) *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall {
12268 c.urlParams_.Set("requestId", requestId)
12269 return c
12270 }
12271
12272 // Fields allows partial responses to be retrieved. See
12273 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12274 // details.
12275 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall {
12276 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12277 return c
12278 }
12279
12280 // Context sets the context to be used in this call's Do method.
12281 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall {
12282 c.ctx_ = ctx
12283 return c
12284 }
12285
12286 // Header returns a http.Header that can be modified by the caller to add
12287 // headers to the request.
12288 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) Header() http.Header {
12289 if c.header_ == nil {
12290 c.header_ = make(http.Header)
12291 }
12292 return c.header_
12293 }
12294
12295 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) doRequest(alt string) (*http.Response, error) {
12296 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12297 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.odbsubnet)
12298 if err != nil {
12299 return nil, err
12300 }
12301 c.urlParams_.Set("alt", alt)
12302 c.urlParams_.Set("prettyPrint", "false")
12303 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/odbSubnets")
12304 urls += "?" + c.urlParams_.Encode()
12305 req, err := http.NewRequest("POST", urls, body)
12306 if err != nil {
12307 return nil, err
12308 }
12309 req.Header = reqHeaders
12310 googleapi.Expand(req.URL, map[string]string{
12311 "parent": c.parent,
12312 })
12313 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", "request", internallog.HTTPRequest(req, body.Bytes()))
12314 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12315 }
12316
12317 // Do executes the "oracledatabase.projects.locations.odbNetworks.odbSubnets.create" call.
12318 // Any non-2xx status code is an error. Response headers are in either
12319 // *Operation.ServerResponse.Header or (if a response was returned at all) in
12320 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12321 // whether the returned error was because http.StatusNotModified was returned.
12322 func (c *ProjectsLocationsOdbNetworksOdbSubnetsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12323 gensupport.SetOptions(c.urlParams_, opts...)
12324 res, err := c.doRequest("json")
12325 if res != nil && res.StatusCode == http.StatusNotModified {
12326 if res.Body != nil {
12327 res.Body.Close()
12328 }
12329 return nil, gensupport.WrapError(&googleapi.Error{
12330 Code: res.StatusCode,
12331 Header: res.Header,
12332 })
12333 }
12334 if err != nil {
12335 return nil, err
12336 }
12337 defer googleapi.CloseBody(res)
12338 if err := googleapi.CheckResponse(res); err != nil {
12339 return nil, gensupport.WrapError(err)
12340 }
12341 ret := &Operation{
12342 ServerResponse: googleapi.ServerResponse{
12343 Header: res.Header,
12344 HTTPStatusCode: res.StatusCode,
12345 },
12346 }
12347 target := &ret
12348 b, err := gensupport.DecodeResponseBytes(target, res)
12349 if err != nil {
12350 return nil, err
12351 }
12352 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", "response", internallog.HTTPResponse(res, b))
12353 return ret, nil
12354 }
12355
12356 type ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall struct {
12357 s *Service
12358 name string
12359 urlParams_ gensupport.URLParams
12360 ctx_ context.Context
12361 header_ http.Header
12362 }
12363
12364 // Delete: Deletes a single ODB Subnet.
12365 //
12366 // - name: The name of the resource in the following format:
12367 // projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/
12368 // {odb_subnet}.
12369 func (r *ProjectsLocationsOdbNetworksOdbSubnetsService) Delete(name string) *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall {
12370 c := &ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12371 c.name = name
12372 return c
12373 }
12374
12375 // RequestId sets the optional parameter "requestId": An optional ID to
12376 // identify the request. This value is used to identify duplicate requests. If
12377 // you make a request with the same request ID and the original request is
12378 // still in progress or completed, the server ignores the second request. This
12379 // prevents clients from accidentally creating duplicate commitments. The
12380 // request ID must be a valid UUID with the exception that zero UUID is not
12381 // supported (00000000-0000-0000-0000-000000000000).
12382 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) RequestId(requestId string) *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall {
12383 c.urlParams_.Set("requestId", requestId)
12384 return c
12385 }
12386
12387 // Fields allows partial responses to be retrieved. See
12388 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12389 // details.
12390 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall {
12391 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12392 return c
12393 }
12394
12395 // Context sets the context to be used in this call's Do method.
12396 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall {
12397 c.ctx_ = ctx
12398 return c
12399 }
12400
12401 // Header returns a http.Header that can be modified by the caller to add
12402 // headers to the request.
12403 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) Header() http.Header {
12404 if c.header_ == nil {
12405 c.header_ = make(http.Header)
12406 }
12407 return c.header_
12408 }
12409
12410 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) doRequest(alt string) (*http.Response, error) {
12411 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12412 c.urlParams_.Set("alt", alt)
12413 c.urlParams_.Set("prettyPrint", "false")
12414 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12415 urls += "?" + c.urlParams_.Encode()
12416 req, err := http.NewRequest("DELETE", urls, nil)
12417 if err != nil {
12418 return nil, err
12419 }
12420 req.Header = reqHeaders
12421 googleapi.Expand(req.URL, map[string]string{
12422 "name": c.name,
12423 })
12424 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", "request", internallog.HTTPRequest(req, nil))
12425 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12426 }
12427
12428 // Do executes the "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete" call.
12429 // Any non-2xx status code is an error. Response headers are in either
12430 // *Operation.ServerResponse.Header or (if a response was returned at all) in
12431 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12432 // whether the returned error was because http.StatusNotModified was returned.
12433 func (c *ProjectsLocationsOdbNetworksOdbSubnetsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
12434 gensupport.SetOptions(c.urlParams_, opts...)
12435 res, err := c.doRequest("json")
12436 if res != nil && res.StatusCode == http.StatusNotModified {
12437 if res.Body != nil {
12438 res.Body.Close()
12439 }
12440 return nil, gensupport.WrapError(&googleapi.Error{
12441 Code: res.StatusCode,
12442 Header: res.Header,
12443 })
12444 }
12445 if err != nil {
12446 return nil, err
12447 }
12448 defer googleapi.CloseBody(res)
12449 if err := googleapi.CheckResponse(res); err != nil {
12450 return nil, gensupport.WrapError(err)
12451 }
12452 ret := &Operation{
12453 ServerResponse: googleapi.ServerResponse{
12454 Header: res.Header,
12455 HTTPStatusCode: res.StatusCode,
12456 },
12457 }
12458 target := &ret
12459 b, err := gensupport.DecodeResponseBytes(target, res)
12460 if err != nil {
12461 return nil, err
12462 }
12463 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", "response", internallog.HTTPResponse(res, b))
12464 return ret, nil
12465 }
12466
12467 type ProjectsLocationsOdbNetworksOdbSubnetsGetCall struct {
12468 s *Service
12469 name string
12470 urlParams_ gensupport.URLParams
12471 ifNoneMatch_ string
12472 ctx_ context.Context
12473 header_ http.Header
12474 }
12475
12476 // Get: Gets details of a single ODB Subnet.
12477 //
12478 // - name: The name of the OdbSubnet in the following format:
12479 // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnet
12480 // s/{odb_subnet}.
12481 func (r *ProjectsLocationsOdbNetworksOdbSubnetsService) Get(name string) *ProjectsLocationsOdbNetworksOdbSubnetsGetCall {
12482 c := &ProjectsLocationsOdbNetworksOdbSubnetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12483 c.name = name
12484 return c
12485 }
12486
12487 // Fields allows partial responses to be retrieved. See
12488 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12489 // details.
12490 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksOdbSubnetsGetCall {
12491 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12492 return c
12493 }
12494
12495 // IfNoneMatch sets an optional parameter which makes the operation fail if the
12496 // object's ETag matches the given value. This is useful for getting updates
12497 // only after the object has changed since the last request.
12498 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOdbNetworksOdbSubnetsGetCall {
12499 c.ifNoneMatch_ = entityTag
12500 return c
12501 }
12502
12503 // Context sets the context to be used in this call's Do method.
12504 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksOdbSubnetsGetCall {
12505 c.ctx_ = ctx
12506 return c
12507 }
12508
12509 // Header returns a http.Header that can be modified by the caller to add
12510 // headers to the request.
12511 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) Header() http.Header {
12512 if c.header_ == nil {
12513 c.header_ = make(http.Header)
12514 }
12515 return c.header_
12516 }
12517
12518 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) doRequest(alt string) (*http.Response, error) {
12519 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12520 if c.ifNoneMatch_ != "" {
12521 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12522 }
12523 c.urlParams_.Set("alt", alt)
12524 c.urlParams_.Set("prettyPrint", "false")
12525 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12526 urls += "?" + c.urlParams_.Encode()
12527 req, err := http.NewRequest("GET", urls, nil)
12528 if err != nil {
12529 return nil, err
12530 }
12531 req.Header = reqHeaders
12532 googleapi.Expand(req.URL, map[string]string{
12533 "name": c.name,
12534 })
12535 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", "request", internallog.HTTPRequest(req, nil))
12536 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12537 }
12538
12539 // Do executes the "oracledatabase.projects.locations.odbNetworks.odbSubnets.get" call.
12540 // Any non-2xx status code is an error. Response headers are in either
12541 // *OdbSubnet.ServerResponse.Header or (if a response was returned at all) in
12542 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12543 // whether the returned error was because http.StatusNotModified was returned.
12544 func (c *ProjectsLocationsOdbNetworksOdbSubnetsGetCall) Do(opts ...googleapi.CallOption) (*OdbSubnet, error) {
12545 gensupport.SetOptions(c.urlParams_, opts...)
12546 res, err := c.doRequest("json")
12547 if res != nil && res.StatusCode == http.StatusNotModified {
12548 if res.Body != nil {
12549 res.Body.Close()
12550 }
12551 return nil, gensupport.WrapError(&googleapi.Error{
12552 Code: res.StatusCode,
12553 Header: res.Header,
12554 })
12555 }
12556 if err != nil {
12557 return nil, err
12558 }
12559 defer googleapi.CloseBody(res)
12560 if err := googleapi.CheckResponse(res); err != nil {
12561 return nil, gensupport.WrapError(err)
12562 }
12563 ret := &OdbSubnet{
12564 ServerResponse: googleapi.ServerResponse{
12565 Header: res.Header,
12566 HTTPStatusCode: res.StatusCode,
12567 },
12568 }
12569 target := &ret
12570 b, err := gensupport.DecodeResponseBytes(target, res)
12571 if err != nil {
12572 return nil, err
12573 }
12574 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", "response", internallog.HTTPResponse(res, b))
12575 return ret, nil
12576 }
12577
12578 type ProjectsLocationsOdbNetworksOdbSubnetsListCall struct {
12579 s *Service
12580 parent string
12581 urlParams_ gensupport.URLParams
12582 ifNoneMatch_ string
12583 ctx_ context.Context
12584 header_ http.Header
12585 }
12586
12587 // List: Lists all the ODB Subnets in a given ODB Network.
12588 //
12589 // - parent: The parent value for the OdbSubnet in the following format:
12590 // projects/{project}/locations/{location}/odbNetworks/{odb_network}.
12591 func (r *ProjectsLocationsOdbNetworksOdbSubnetsService) List(parent string) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12592 c := &ProjectsLocationsOdbNetworksOdbSubnetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12593 c.parent = parent
12594 return c
12595 }
12596
12597 // Filter sets the optional parameter "filter": An expression for filtering the
12598 // results of the request.
12599 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Filter(filter string) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12600 c.urlParams_.Set("filter", filter)
12601 return c
12602 }
12603
12604 // OrderBy sets the optional parameter "orderBy": An expression for ordering
12605 // the results of the request.
12606 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) OrderBy(orderBy string) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12607 c.urlParams_.Set("orderBy", orderBy)
12608 return c
12609 }
12610
12611 // PageSize sets the optional parameter "pageSize": The maximum number of items
12612 // to return. If unspecified, at most 50 ODB Networks will be returned. The
12613 // maximum value is 1000; values above 1000 will be coerced to 1000.
12614 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) PageSize(pageSize int64) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12615 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12616 return c
12617 }
12618
12619 // PageToken sets the optional parameter "pageToken": A token identifying a
12620 // page of results the server should return.
12621 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) PageToken(pageToken string) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12622 c.urlParams_.Set("pageToken", pageToken)
12623 return c
12624 }
12625
12626 // Fields allows partial responses to be retrieved. See
12627 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12628 // details.
12629 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12631 return c
12632 }
12633
12634 // IfNoneMatch sets an optional parameter which makes the operation fail if the
12635 // object's ETag matches the given value. This is useful for getting updates
12636 // only after the object has changed since the last request.
12637 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12638 c.ifNoneMatch_ = entityTag
12639 return c
12640 }
12641
12642 // Context sets the context to be used in this call's Do method.
12643 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Context(ctx context.Context) *ProjectsLocationsOdbNetworksOdbSubnetsListCall {
12644 c.ctx_ = ctx
12645 return c
12646 }
12647
12648 // Header returns a http.Header that can be modified by the caller to add
12649 // headers to the request.
12650 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Header() http.Header {
12651 if c.header_ == nil {
12652 c.header_ = make(http.Header)
12653 }
12654 return c.header_
12655 }
12656
12657 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) doRequest(alt string) (*http.Response, error) {
12658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12659 if c.ifNoneMatch_ != "" {
12660 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12661 }
12662 c.urlParams_.Set("alt", alt)
12663 c.urlParams_.Set("prettyPrint", "false")
12664 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/odbSubnets")
12665 urls += "?" + c.urlParams_.Encode()
12666 req, err := http.NewRequest("GET", urls, nil)
12667 if err != nil {
12668 return nil, err
12669 }
12670 req.Header = reqHeaders
12671 googleapi.Expand(req.URL, map[string]string{
12672 "parent": c.parent,
12673 })
12674 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", "request", internallog.HTTPRequest(req, nil))
12675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12676 }
12677
12678 // Do executes the "oracledatabase.projects.locations.odbNetworks.odbSubnets.list" call.
12679 // Any non-2xx status code is an error. Response headers are in either
12680 // *ListOdbSubnetsResponse.ServerResponse.Header or (if a response was returned
12681 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12682 // check whether the returned error was because http.StatusNotModified was
12683 // returned.
12684 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Do(opts ...googleapi.CallOption) (*ListOdbSubnetsResponse, error) {
12685 gensupport.SetOptions(c.urlParams_, opts...)
12686 res, err := c.doRequest("json")
12687 if res != nil && res.StatusCode == http.StatusNotModified {
12688 if res.Body != nil {
12689 res.Body.Close()
12690 }
12691 return nil, gensupport.WrapError(&googleapi.Error{
12692 Code: res.StatusCode,
12693 Header: res.Header,
12694 })
12695 }
12696 if err != nil {
12697 return nil, err
12698 }
12699 defer googleapi.CloseBody(res)
12700 if err := googleapi.CheckResponse(res); err != nil {
12701 return nil, gensupport.WrapError(err)
12702 }
12703 ret := &ListOdbSubnetsResponse{
12704 ServerResponse: googleapi.ServerResponse{
12705 Header: res.Header,
12706 HTTPStatusCode: res.StatusCode,
12707 },
12708 }
12709 target := &ret
12710 b, err := gensupport.DecodeResponseBytes(target, res)
12711 if err != nil {
12712 return nil, err
12713 }
12714 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", "response", internallog.HTTPResponse(res, b))
12715 return ret, nil
12716 }
12717
12718 // Pages invokes f for each page of results.
12719 // A non-nil error returned from f will halt the iteration.
12720 // The provided context supersedes any context provided to the Context method.
12721 func (c *ProjectsLocationsOdbNetworksOdbSubnetsListCall) Pages(ctx context.Context, f func(*ListOdbSubnetsResponse) error) error {
12722 c.ctx_ = ctx
12723 defer c.PageToken(c.urlParams_.Get("pageToken"))
12724 for {
12725 x, err := c.Do()
12726 if err != nil {
12727 return err
12728 }
12729 if err := f(x); err != nil {
12730 return err
12731 }
12732 if x.NextPageToken == "" {
12733 return nil
12734 }
12735 c.PageToken(x.NextPageToken)
12736 }
12737 }
12738
12739 type ProjectsLocationsOperationsCancelCall struct {
12740 s *Service
12741 name string
12742 canceloperationrequest *CancelOperationRequest
12743 urlParams_ gensupport.URLParams
12744 ctx_ context.Context
12745 header_ http.Header
12746 }
12747
12748 // Cancel: Starts asynchronous cancellation on a long-running operation. The
12749 // server makes a best effort to cancel the operation, but success is not
12750 // guaranteed. If the server doesn't support this method, it returns
12751 // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
12752 // other methods to check whether the cancellation succeeded or whether the
12753 // operation completed despite cancellation. On successful cancellation, the
12754 // operation is not deleted; instead, it becomes an operation with an
12755 // Operation.error value with a google.rpc.Status.code of `1`, corresponding to
12756 // `Code.CANCELLED`.
12757 //
12758 // - name: The name of the operation resource to be cancelled.
12759 func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
12760 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12761 c.name = name
12762 c.canceloperationrequest = canceloperationrequest
12763 return c
12764 }
12765
12766 // Fields allows partial responses to be retrieved. See
12767 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12768 // details.
12769 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
12770 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12771 return c
12772 }
12773
12774 // Context sets the context to be used in this call's Do method.
12775 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
12776 c.ctx_ = ctx
12777 return c
12778 }
12779
12780 // Header returns a http.Header that can be modified by the caller to add
12781 // headers to the request.
12782 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
12783 if c.header_ == nil {
12784 c.header_ = make(http.Header)
12785 }
12786 return c.header_
12787 }
12788
12789 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
12790 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12791 body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.canceloperationrequest)
12792 if err != nil {
12793 return nil, err
12794 }
12795 c.urlParams_.Set("alt", alt)
12796 c.urlParams_.Set("prettyPrint", "false")
12797 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
12798 urls += "?" + c.urlParams_.Encode()
12799 req, err := http.NewRequest("POST", urls, body)
12800 if err != nil {
12801 return nil, err
12802 }
12803 req.Header = reqHeaders
12804 googleapi.Expand(req.URL, map[string]string{
12805 "name": c.name,
12806 })
12807 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes()))
12808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12809 }
12810
12811 // Do executes the "oracledatabase.projects.locations.operations.cancel" call.
12812 // Any non-2xx status code is an error. Response headers are in either
12813 // *Empty.ServerResponse.Header or (if a response was returned at all) in
12814 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12815 // whether the returned error was because http.StatusNotModified was returned.
12816 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12817 gensupport.SetOptions(c.urlParams_, opts...)
12818 res, err := c.doRequest("json")
12819 if res != nil && res.StatusCode == http.StatusNotModified {
12820 if res.Body != nil {
12821 res.Body.Close()
12822 }
12823 return nil, gensupport.WrapError(&googleapi.Error{
12824 Code: res.StatusCode,
12825 Header: res.Header,
12826 })
12827 }
12828 if err != nil {
12829 return nil, err
12830 }
12831 defer googleapi.CloseBody(res)
12832 if err := googleapi.CheckResponse(res); err != nil {
12833 return nil, gensupport.WrapError(err)
12834 }
12835 ret := &Empty{
12836 ServerResponse: googleapi.ServerResponse{
12837 Header: res.Header,
12838 HTTPStatusCode: res.StatusCode,
12839 },
12840 }
12841 target := &ret
12842 b, err := gensupport.DecodeResponseBytes(target, res)
12843 if err != nil {
12844 return nil, err
12845 }
12846 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.cancel", "response", internallog.HTTPResponse(res, b))
12847 return ret, nil
12848 }
12849
12850 type ProjectsLocationsOperationsDeleteCall struct {
12851 s *Service
12852 name string
12853 urlParams_ gensupport.URLParams
12854 ctx_ context.Context
12855 header_ http.Header
12856 }
12857
12858 // Delete: Deletes a long-running operation. This method indicates that the
12859 // client is no longer interested in the operation result. It does not cancel
12860 // the operation. If the server doesn't support this method, it returns
12861 // `google.rpc.Code.UNIMPLEMENTED`.
12862 //
12863 // - name: The name of the operation resource to be deleted.
12864 func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
12865 c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12866 c.name = name
12867 return c
12868 }
12869
12870 // Fields allows partial responses to be retrieved. See
12871 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12872 // details.
12873 func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
12874 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12875 return c
12876 }
12877
12878 // Context sets the context to be used in this call's Do method.
12879 func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
12880 c.ctx_ = ctx
12881 return c
12882 }
12883
12884 // Header returns a http.Header that can be modified by the caller to add
12885 // headers to the request.
12886 func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
12887 if c.header_ == nil {
12888 c.header_ = make(http.Header)
12889 }
12890 return c.header_
12891 }
12892
12893 func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
12894 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12895 c.urlParams_.Set("alt", alt)
12896 c.urlParams_.Set("prettyPrint", "false")
12897 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12898 urls += "?" + c.urlParams_.Encode()
12899 req, err := http.NewRequest("DELETE", urls, nil)
12900 if err != nil {
12901 return nil, err
12902 }
12903 req.Header = reqHeaders
12904 googleapi.Expand(req.URL, map[string]string{
12905 "name": c.name,
12906 })
12907 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.delete", "request", internallog.HTTPRequest(req, nil))
12908 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12909 }
12910
12911 // Do executes the "oracledatabase.projects.locations.operations.delete" call.
12912 // Any non-2xx status code is an error. Response headers are in either
12913 // *Empty.ServerResponse.Header or (if a response was returned at all) in
12914 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12915 // whether the returned error was because http.StatusNotModified was returned.
12916 func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12917 gensupport.SetOptions(c.urlParams_, opts...)
12918 res, err := c.doRequest("json")
12919 if res != nil && res.StatusCode == http.StatusNotModified {
12920 if res.Body != nil {
12921 res.Body.Close()
12922 }
12923 return nil, gensupport.WrapError(&googleapi.Error{
12924 Code: res.StatusCode,
12925 Header: res.Header,
12926 })
12927 }
12928 if err != nil {
12929 return nil, err
12930 }
12931 defer googleapi.CloseBody(res)
12932 if err := googleapi.CheckResponse(res); err != nil {
12933 return nil, gensupport.WrapError(err)
12934 }
12935 ret := &Empty{
12936 ServerResponse: googleapi.ServerResponse{
12937 Header: res.Header,
12938 HTTPStatusCode: res.StatusCode,
12939 },
12940 }
12941 target := &ret
12942 b, err := gensupport.DecodeResponseBytes(target, res)
12943 if err != nil {
12944 return nil, err
12945 }
12946 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.delete", "response", internallog.HTTPResponse(res, b))
12947 return ret, nil
12948 }
12949
12950 type ProjectsLocationsOperationsGetCall struct {
12951 s *Service
12952 name string
12953 urlParams_ gensupport.URLParams
12954 ifNoneMatch_ string
12955 ctx_ context.Context
12956 header_ http.Header
12957 }
12958
12959 // Get: Gets the latest state of a long-running operation. Clients can use this
12960 // method to poll the operation result at intervals as recommended by the API
12961 // service.
12962 //
12963 // - name: The name of the operation resource.
12964 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
12965 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12966 c.name = name
12967 return c
12968 }
12969
12970 // Fields allows partial responses to be retrieved. See
12971 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
12972 // details.
12973 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
12974 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12975 return c
12976 }
12977
12978 // IfNoneMatch sets an optional parameter which makes the operation fail if the
12979 // object's ETag matches the given value. This is useful for getting updates
12980 // only after the object has changed since the last request.
12981 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
12982 c.ifNoneMatch_ = entityTag
12983 return c
12984 }
12985
12986 // Context sets the context to be used in this call's Do method.
12987 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
12988 c.ctx_ = ctx
12989 return c
12990 }
12991
12992 // Header returns a http.Header that can be modified by the caller to add
12993 // headers to the request.
12994 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
12995 if c.header_ == nil {
12996 c.header_ = make(http.Header)
12997 }
12998 return c.header_
12999 }
13000
13001 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
13002 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13003 if c.ifNoneMatch_ != "" {
13004 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13005 }
13006 c.urlParams_.Set("alt", alt)
13007 c.urlParams_.Set("prettyPrint", "false")
13008 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13009 urls += "?" + c.urlParams_.Encode()
13010 req, err := http.NewRequest("GET", urls, nil)
13011 if err != nil {
13012 return nil, err
13013 }
13014 req.Header = reqHeaders
13015 googleapi.Expand(req.URL, map[string]string{
13016 "name": c.name,
13017 })
13018 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.get", "request", internallog.HTTPRequest(req, nil))
13019 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13020 }
13021
13022 // Do executes the "oracledatabase.projects.locations.operations.get" call.
13023 // Any non-2xx status code is an error. Response headers are in either
13024 // *Operation.ServerResponse.Header or (if a response was returned at all) in
13025 // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13026 // whether the returned error was because http.StatusNotModified was returned.
13027 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
13028 gensupport.SetOptions(c.urlParams_, opts...)
13029 res, err := c.doRequest("json")
13030 if res != nil && res.StatusCode == http.StatusNotModified {
13031 if res.Body != nil {
13032 res.Body.Close()
13033 }
13034 return nil, gensupport.WrapError(&googleapi.Error{
13035 Code: res.StatusCode,
13036 Header: res.Header,
13037 })
13038 }
13039 if err != nil {
13040 return nil, err
13041 }
13042 defer googleapi.CloseBody(res)
13043 if err := googleapi.CheckResponse(res); err != nil {
13044 return nil, gensupport.WrapError(err)
13045 }
13046 ret := &Operation{
13047 ServerResponse: googleapi.ServerResponse{
13048 Header: res.Header,
13049 HTTPStatusCode: res.StatusCode,
13050 },
13051 }
13052 target := &ret
13053 b, err := gensupport.DecodeResponseBytes(target, res)
13054 if err != nil {
13055 return nil, err
13056 }
13057 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.get", "response", internallog.HTTPResponse(res, b))
13058 return ret, nil
13059 }
13060
13061 type ProjectsLocationsOperationsListCall struct {
13062 s *Service
13063 name string
13064 urlParams_ gensupport.URLParams
13065 ifNoneMatch_ string
13066 ctx_ context.Context
13067 header_ http.Header
13068 }
13069
13070 // List: Lists operations that match the specified filter in the request. If
13071 // the server doesn't support this method, it returns `UNIMPLEMENTED`.
13072 //
13073 // - name: The name of the operation's parent resource.
13074 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
13075 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13076 c.name = name
13077 return c
13078 }
13079
13080 // Filter sets the optional parameter "filter": The standard list filter.
13081 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
13082 c.urlParams_.Set("filter", filter)
13083 return c
13084 }
13085
13086 // PageSize sets the optional parameter "pageSize": The standard list page
13087 // size.
13088 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
13089 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13090 return c
13091 }
13092
13093 // PageToken sets the optional parameter "pageToken": The standard list page
13094 // token.
13095 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
13096 c.urlParams_.Set("pageToken", pageToken)
13097 return c
13098 }
13099
13100 // ReturnPartialSuccess sets the optional parameter "returnPartialSuccess":
13101 // When set to `true`, operations that are reachable are returned as normal,
13102 // and those that are unreachable are returned in the
13103 // ListOperationsResponse.unreachable field. This can only be `true` when
13104 // reading across collections. For example, when `parent` is set to
13105 // "projects/example/locations/-". This field is not supported by default and
13106 // will result in an `UNIMPLEMENTED` error if set unless explicitly documented
13107 // otherwise in service or product specific documentation.
13108 func (c *ProjectsLocationsOperationsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *ProjectsLocationsOperationsListCall {
13109 c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess))
13110 return c
13111 }
13112
13113 // Fields allows partial responses to be retrieved. See
13114 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
13115 // details.
13116 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
13117 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13118 return c
13119 }
13120
13121 // IfNoneMatch sets an optional parameter which makes the operation fail if the
13122 // object's ETag matches the given value. This is useful for getting updates
13123 // only after the object has changed since the last request.
13124 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
13125 c.ifNoneMatch_ = entityTag
13126 return c
13127 }
13128
13129 // Context sets the context to be used in this call's Do method.
13130 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
13131 c.ctx_ = ctx
13132 return c
13133 }
13134
13135 // Header returns a http.Header that can be modified by the caller to add
13136 // headers to the request.
13137 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
13138 if c.header_ == nil {
13139 c.header_ = make(http.Header)
13140 }
13141 return c.header_
13142 }
13143
13144 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
13145 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13146 if c.ifNoneMatch_ != "" {
13147 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13148 }
13149 c.urlParams_.Set("alt", alt)
13150 c.urlParams_.Set("prettyPrint", "false")
13151 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
13152 urls += "?" + c.urlParams_.Encode()
13153 req, err := http.NewRequest("GET", urls, nil)
13154 if err != nil {
13155 return nil, err
13156 }
13157 req.Header = reqHeaders
13158 googleapi.Expand(req.URL, map[string]string{
13159 "name": c.name,
13160 })
13161 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.list", "request", internallog.HTTPRequest(req, nil))
13162 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13163 }
13164
13165 // Do executes the "oracledatabase.projects.locations.operations.list" call.
13166 // Any non-2xx status code is an error. Response headers are in either
13167 // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
13168 // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13169 // check whether the returned error was because http.StatusNotModified was
13170 // returned.
13171 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
13172 gensupport.SetOptions(c.urlParams_, opts...)
13173 res, err := c.doRequest("json")
13174 if res != nil && res.StatusCode == http.StatusNotModified {
13175 if res.Body != nil {
13176 res.Body.Close()
13177 }
13178 return nil, gensupport.WrapError(&googleapi.Error{
13179 Code: res.StatusCode,
13180 Header: res.Header,
13181 })
13182 }
13183 if err != nil {
13184 return nil, err
13185 }
13186 defer googleapi.CloseBody(res)
13187 if err := googleapi.CheckResponse(res); err != nil {
13188 return nil, gensupport.WrapError(err)
13189 }
13190 ret := &ListOperationsResponse{
13191 ServerResponse: googleapi.ServerResponse{
13192 Header: res.Header,
13193 HTTPStatusCode: res.StatusCode,
13194 },
13195 }
13196 target := &ret
13197 b, err := gensupport.DecodeResponseBytes(target, res)
13198 if err != nil {
13199 return nil, err
13200 }
13201 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.operations.list", "response", internallog.HTTPResponse(res, b))
13202 return ret, nil
13203 }
13204
13205 // Pages invokes f for each page of results.
13206 // A non-nil error returned from f will halt the iteration.
13207 // The provided context supersedes any context provided to the Context method.
13208 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
13209 c.ctx_ = ctx
13210 defer c.PageToken(c.urlParams_.Get("pageToken"))
13211 for {
13212 x, err := c.Do()
13213 if err != nil {
13214 return err
13215 }
13216 if err := f(x); err != nil {
13217 return err
13218 }
13219 if x.NextPageToken == "" {
13220 return nil
13221 }
13222 c.PageToken(x.NextPageToken)
13223 }
13224 }
13225
13226 type ProjectsLocationsPluggableDatabasesGetCall struct {
13227 s *Service
13228 name string
13229 urlParams_ gensupport.URLParams
13230 ifNoneMatch_ string
13231 ctx_ context.Context
13232 header_ http.Header
13233 }
13234
13235 // Get: Gets details of a single PluggableDatabase.
13236 //
13237 // - name: The name of the PluggableDatabase resource in the following format:
13238 // projects/{project}/locations/{region}/pluggableDatabases/{pluggable_databas
13239 // e}.
13240 func (r *ProjectsLocationsPluggableDatabasesService) Get(name string) *ProjectsLocationsPluggableDatabasesGetCall {
13241 c := &ProjectsLocationsPluggableDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13242 c.name = name
13243 return c
13244 }
13245
13246 // Fields allows partial responses to be retrieved. See
13247 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
13248 // details.
13249 func (c *ProjectsLocationsPluggableDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPluggableDatabasesGetCall {
13250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13251 return c
13252 }
13253
13254 // IfNoneMatch sets an optional parameter which makes the operation fail if the
13255 // object's ETag matches the given value. This is useful for getting updates
13256 // only after the object has changed since the last request.
13257 func (c *ProjectsLocationsPluggableDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPluggableDatabasesGetCall {
13258 c.ifNoneMatch_ = entityTag
13259 return c
13260 }
13261
13262 // Context sets the context to be used in this call's Do method.
13263 func (c *ProjectsLocationsPluggableDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsPluggableDatabasesGetCall {
13264 c.ctx_ = ctx
13265 return c
13266 }
13267
13268 // Header returns a http.Header that can be modified by the caller to add
13269 // headers to the request.
13270 func (c *ProjectsLocationsPluggableDatabasesGetCall) Header() http.Header {
13271 if c.header_ == nil {
13272 c.header_ = make(http.Header)
13273 }
13274 return c.header_
13275 }
13276
13277 func (c *ProjectsLocationsPluggableDatabasesGetCall) doRequest(alt string) (*http.Response, error) {
13278 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13279 if c.ifNoneMatch_ != "" {
13280 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13281 }
13282 c.urlParams_.Set("alt", alt)
13283 c.urlParams_.Set("prettyPrint", "false")
13284 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13285 urls += "?" + c.urlParams_.Encode()
13286 req, err := http.NewRequest("GET", urls, nil)
13287 if err != nil {
13288 return nil, err
13289 }
13290 req.Header = reqHeaders
13291 googleapi.Expand(req.URL, map[string]string{
13292 "name": c.name,
13293 })
13294 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.get", "request", internallog.HTTPRequest(req, nil))
13295 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13296 }
13297
13298 // Do executes the "oracledatabase.projects.locations.pluggableDatabases.get" call.
13299 // Any non-2xx status code is an error. Response headers are in either
13300 // *PluggableDatabase.ServerResponse.Header or (if a response was returned at
13301 // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13302 // check whether the returned error was because http.StatusNotModified was
13303 // returned.
13304 func (c *ProjectsLocationsPluggableDatabasesGetCall) Do(opts ...googleapi.CallOption) (*PluggableDatabase, error) {
13305 gensupport.SetOptions(c.urlParams_, opts...)
13306 res, err := c.doRequest("json")
13307 if res != nil && res.StatusCode == http.StatusNotModified {
13308 if res.Body != nil {
13309 res.Body.Close()
13310 }
13311 return nil, gensupport.WrapError(&googleapi.Error{
13312 Code: res.StatusCode,
13313 Header: res.Header,
13314 })
13315 }
13316 if err != nil {
13317 return nil, err
13318 }
13319 defer googleapi.CloseBody(res)
13320 if err := googleapi.CheckResponse(res); err != nil {
13321 return nil, gensupport.WrapError(err)
13322 }
13323 ret := &PluggableDatabase{
13324 ServerResponse: googleapi.ServerResponse{
13325 Header: res.Header,
13326 HTTPStatusCode: res.StatusCode,
13327 },
13328 }
13329 target := &ret
13330 b, err := gensupport.DecodeResponseBytes(target, res)
13331 if err != nil {
13332 return nil, err
13333 }
13334 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.get", "response", internallog.HTTPResponse(res, b))
13335 return ret, nil
13336 }
13337
13338 type ProjectsLocationsPluggableDatabasesListCall struct {
13339 s *Service
13340 parent string
13341 urlParams_ gensupport.URLParams
13342 ifNoneMatch_ string
13343 ctx_ context.Context
13344 header_ http.Header
13345 }
13346
13347 // List: Lists all the PluggableDatabases for the given project, location and
13348 // Container Database.
13349 //
13350 // - parent: The parent, which owns this collection of PluggableDatabases.
13351 // Format: projects/{project}/locations/{location}.
13352 func (r *ProjectsLocationsPluggableDatabasesService) List(parent string) *ProjectsLocationsPluggableDatabasesListCall {
13353 c := &ProjectsLocationsPluggableDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13354 c.parent = parent
13355 return c
13356 }
13357
13358 // Filter sets the optional parameter "filter": An expression for filtering the
13359 // results of the request. List for pluggable databases is supported only with
13360 // a valid container database (full resource name) filter in this format:
13361 // `database="projects/{project}/locations/{location}/databases/{database}"
13362 func (c *ProjectsLocationsPluggableDatabasesListCall) Filter(filter string) *ProjectsLocationsPluggableDatabasesListCall {
13363 c.urlParams_.Set("filter", filter)
13364 return c
13365 }
13366
13367 // PageSize sets the optional parameter "pageSize": The maximum number of
13368 // PluggableDatabases to return. The service may return fewer than this value.
13369 func (c *ProjectsLocationsPluggableDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsPluggableDatabasesListCall {
13370 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13371 return c
13372 }
13373
13374 // PageToken sets the optional parameter "pageToken": A page token, received
13375 // from a previous `ListPluggableDatabases` call. Provide this to retrieve the
13376 // subsequent page. When paginating, all other parameters provided to
13377 // `ListPluggableDatabases` must match the call that provided the page token.
13378 func (c *ProjectsLocationsPluggableDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsPluggableDatabasesListCall {
13379 c.urlParams_.Set("pageToken", pageToken)
13380 return c
13381 }
13382
13383 // Fields allows partial responses to be retrieved. See
13384 // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
13385 // details.
13386 func (c *ProjectsLocationsPluggableDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPluggableDatabasesListCall {
13387 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13388 return c
13389 }
13390
13391 // IfNoneMatch sets an optional parameter which makes the operation fail if the
13392 // object's ETag matches the given value. This is useful for getting updates
13393 // only after the object has changed since the last request.
13394 func (c *ProjectsLocationsPluggableDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPluggableDatabasesListCall {
13395 c.ifNoneMatch_ = entityTag
13396 return c
13397 }
13398
13399 // Context sets the context to be used in this call's Do method.
13400 func (c *ProjectsLocationsPluggableDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsPluggableDatabasesListCall {
13401 c.ctx_ = ctx
13402 return c
13403 }
13404
13405 // Header returns a http.Header that can be modified by the caller to add
13406 // headers to the request.
13407 func (c *ProjectsLocationsPluggableDatabasesListCall) Header() http.Header {
13408 if c.header_ == nil {
13409 c.header_ = make(http.Header)
13410 }
13411 return c.header_
13412 }
13413
13414 func (c *ProjectsLocationsPluggableDatabasesListCall) doRequest(alt string) (*http.Response, error) {
13415 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13416 if c.ifNoneMatch_ != "" {
13417 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13418 }
13419 c.urlParams_.Set("alt", alt)
13420 c.urlParams_.Set("prettyPrint", "false")
13421 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pluggableDatabases")
13422 urls += "?" + c.urlParams_.Encode()
13423 req, err := http.NewRequest("GET", urls, nil)
13424 if err != nil {
13425 return nil, err
13426 }
13427 req.Header = reqHeaders
13428 googleapi.Expand(req.URL, map[string]string{
13429 "parent": c.parent,
13430 })
13431 c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.list", "request", internallog.HTTPRequest(req, nil))
13432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13433 }
13434
13435 // Do executes the "oracledatabase.projects.locations.pluggableDatabases.list" call.
13436 // Any non-2xx status code is an error. Response headers are in either
13437 // *ListPluggableDatabasesResponse.ServerResponse.Header or (if a response was
13438 // returned at all) in error.(*googleapi.Error).Header. Use
13439 // googleapi.IsNotModified to check whether the returned error was because
13440 // http.StatusNotModified was returned.
13441 func (c *ProjectsLocationsPluggableDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListPluggableDatabasesResponse, error) {
13442 gensupport.SetOptions(c.urlParams_, opts...)
13443 res, err := c.doRequest("json")
13444 if res != nil && res.StatusCode == http.StatusNotModified {
13445 if res.Body != nil {
13446 res.Body.Close()
13447 }
13448 return nil, gensupport.WrapError(&googleapi.Error{
13449 Code: res.StatusCode,
13450 Header: res.Header,
13451 })
13452 }
13453 if err != nil {
13454 return nil, err
13455 }
13456 defer googleapi.CloseBody(res)
13457 if err := googleapi.CheckResponse(res); err != nil {
13458 return nil, gensupport.WrapError(err)
13459 }
13460 ret := &ListPluggableDatabasesResponse{
13461 ServerResponse: googleapi.ServerResponse{
13462 Header: res.Header,
13463 HTTPStatusCode: res.StatusCode,
13464 },
13465 }
13466 target := &ret
13467 b, err := gensupport.DecodeResponseBytes(target, res)
13468 if err != nil {
13469 return nil, err
13470 }
13471 c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.list", "response", internallog.HTTPResponse(res, b))
13472 return ret, nil
13473 }
13474
13475 // Pages invokes f for each page of results.
13476 // A non-nil error returned from f will halt the iteration.
13477 // The provided context supersedes any context provided to the Context method.
13478 func (c *ProjectsLocationsPluggableDatabasesListCall) Pages(ctx context.Context, f func(*ListPluggableDatabasesResponse) error) error {
13479 c.ctx_ = ctx
13480 defer c.PageToken(c.urlParams_.Get("pageToken"))
13481 for {
13482 x, err := c.Do()
13483 if err != nil {
13484 return err
13485 }
13486 if err := f(x); err != nil {
13487 return err
13488 }
13489 if x.NextPageToken == "" {
13490 return nil
13491 }
13492 c.PageToken(x.NextPageToken)
13493 }
13494 }