1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package apigee
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "apigee:v1"
90 const apiName = "apigee"
91 const apiVersion = "v1"
92 const basePath = "https://apigee.googleapis.com/"
93 const basePathTemplate = "https://apigee.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://apigee.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Hybrid = NewHybridService(s)
139 s.Organizations = NewOrganizationsService(s)
140 s.Projects = NewProjectsService(s)
141 return s, nil
142 }
143
144 type Service struct {
145 client *http.Client
146 BasePath string
147 UserAgent string
148
149 Hybrid *HybridService
150
151 Organizations *OrganizationsService
152
153 Projects *ProjectsService
154 }
155
156 func (s *Service) userAgent() string {
157 if s.UserAgent == "" {
158 return googleapi.UserAgent
159 }
160 return googleapi.UserAgent + " " + s.UserAgent
161 }
162
163 func NewHybridService(s *Service) *HybridService {
164 rs := &HybridService{s: s}
165 rs.Issuers = NewHybridIssuersService(s)
166 return rs
167 }
168
169 type HybridService struct {
170 s *Service
171
172 Issuers *HybridIssuersService
173 }
174
175 func NewHybridIssuersService(s *Service) *HybridIssuersService {
176 rs := &HybridIssuersService{s: s}
177 return rs
178 }
179
180 type HybridIssuersService struct {
181 s *Service
182 }
183
184 func NewOrganizationsService(s *Service) *OrganizationsService {
185 rs := &OrganizationsService{s: s}
186 rs.Analytics = NewOrganizationsAnalyticsService(s)
187 rs.Apiproducts = NewOrganizationsApiproductsService(s)
188 rs.Apis = NewOrganizationsApisService(s)
189 rs.Appgroups = NewOrganizationsAppgroupsService(s)
190 rs.Apps = NewOrganizationsAppsService(s)
191 rs.Datacollectors = NewOrganizationsDatacollectorsService(s)
192 rs.Deployments = NewOrganizationsDeploymentsService(s)
193 rs.Developers = NewOrganizationsDevelopersService(s)
194 rs.EndpointAttachments = NewOrganizationsEndpointAttachmentsService(s)
195 rs.Envgroups = NewOrganizationsEnvgroupsService(s)
196 rs.Environments = NewOrganizationsEnvironmentsService(s)
197 rs.HostQueries = NewOrganizationsHostQueriesService(s)
198 rs.HostSecurityReports = NewOrganizationsHostSecurityReportsService(s)
199 rs.HostStats = NewOrganizationsHostStatsService(s)
200 rs.Instances = NewOrganizationsInstancesService(s)
201 rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
202 rs.Operations = NewOrganizationsOperationsService(s)
203 rs.OptimizedHostStats = NewOrganizationsOptimizedHostStatsService(s)
204 rs.Reports = NewOrganizationsReportsService(s)
205 rs.SecurityAssessmentResults = NewOrganizationsSecurityAssessmentResultsService(s)
206 rs.SecurityProfiles = NewOrganizationsSecurityProfilesService(s)
207 rs.Sharedflows = NewOrganizationsSharedflowsService(s)
208 rs.Sites = NewOrganizationsSitesService(s)
209 return rs
210 }
211
212 type OrganizationsService struct {
213 s *Service
214
215 Analytics *OrganizationsAnalyticsService
216
217 Apiproducts *OrganizationsApiproductsService
218
219 Apis *OrganizationsApisService
220
221 Appgroups *OrganizationsAppgroupsService
222
223 Apps *OrganizationsAppsService
224
225 Datacollectors *OrganizationsDatacollectorsService
226
227 Deployments *OrganizationsDeploymentsService
228
229 Developers *OrganizationsDevelopersService
230
231 EndpointAttachments *OrganizationsEndpointAttachmentsService
232
233 Envgroups *OrganizationsEnvgroupsService
234
235 Environments *OrganizationsEnvironmentsService
236
237 HostQueries *OrganizationsHostQueriesService
238
239 HostSecurityReports *OrganizationsHostSecurityReportsService
240
241 HostStats *OrganizationsHostStatsService
242
243 Instances *OrganizationsInstancesService
244
245 Keyvaluemaps *OrganizationsKeyvaluemapsService
246
247 Operations *OrganizationsOperationsService
248
249 OptimizedHostStats *OrganizationsOptimizedHostStatsService
250
251 Reports *OrganizationsReportsService
252
253 SecurityAssessmentResults *OrganizationsSecurityAssessmentResultsService
254
255 SecurityProfiles *OrganizationsSecurityProfilesService
256
257 Sharedflows *OrganizationsSharedflowsService
258
259 Sites *OrganizationsSitesService
260 }
261
262 func NewOrganizationsAnalyticsService(s *Service) *OrganizationsAnalyticsService {
263 rs := &OrganizationsAnalyticsService{s: s}
264 rs.Datastores = NewOrganizationsAnalyticsDatastoresService(s)
265 return rs
266 }
267
268 type OrganizationsAnalyticsService struct {
269 s *Service
270
271 Datastores *OrganizationsAnalyticsDatastoresService
272 }
273
274 func NewOrganizationsAnalyticsDatastoresService(s *Service) *OrganizationsAnalyticsDatastoresService {
275 rs := &OrganizationsAnalyticsDatastoresService{s: s}
276 return rs
277 }
278
279 type OrganizationsAnalyticsDatastoresService struct {
280 s *Service
281 }
282
283 func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
284 rs := &OrganizationsApiproductsService{s: s}
285 rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
286 rs.Rateplans = NewOrganizationsApiproductsRateplansService(s)
287 return rs
288 }
289
290 type OrganizationsApiproductsService struct {
291 s *Service
292
293 Attributes_ *OrganizationsApiproductsAttributesService
294
295 Rateplans *OrganizationsApiproductsRateplansService
296 }
297
298 func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
299 rs := &OrganizationsApiproductsAttributesService{s: s}
300 return rs
301 }
302
303 type OrganizationsApiproductsAttributesService struct {
304 s *Service
305 }
306
307 func NewOrganizationsApiproductsRateplansService(s *Service) *OrganizationsApiproductsRateplansService {
308 rs := &OrganizationsApiproductsRateplansService{s: s}
309 return rs
310 }
311
312 type OrganizationsApiproductsRateplansService struct {
313 s *Service
314 }
315
316 func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
317 rs := &OrganizationsApisService{s: s}
318 rs.Deployments = NewOrganizationsApisDeploymentsService(s)
319 rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
320 rs.Revisions = NewOrganizationsApisRevisionsService(s)
321 return rs
322 }
323
324 type OrganizationsApisService struct {
325 s *Service
326
327 Deployments *OrganizationsApisDeploymentsService
328
329 Keyvaluemaps *OrganizationsApisKeyvaluemapsService
330
331 Revisions *OrganizationsApisRevisionsService
332 }
333
334 func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
335 rs := &OrganizationsApisDeploymentsService{s: s}
336 return rs
337 }
338
339 type OrganizationsApisDeploymentsService struct {
340 s *Service
341 }
342
343 func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
344 rs := &OrganizationsApisKeyvaluemapsService{s: s}
345 rs.Entries = NewOrganizationsApisKeyvaluemapsEntriesService(s)
346 return rs
347 }
348
349 type OrganizationsApisKeyvaluemapsService struct {
350 s *Service
351
352 Entries *OrganizationsApisKeyvaluemapsEntriesService
353 }
354
355 func NewOrganizationsApisKeyvaluemapsEntriesService(s *Service) *OrganizationsApisKeyvaluemapsEntriesService {
356 rs := &OrganizationsApisKeyvaluemapsEntriesService{s: s}
357 return rs
358 }
359
360 type OrganizationsApisKeyvaluemapsEntriesService struct {
361 s *Service
362 }
363
364 func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
365 rs := &OrganizationsApisRevisionsService{s: s}
366 rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
367 return rs
368 }
369
370 type OrganizationsApisRevisionsService struct {
371 s *Service
372
373 Deployments *OrganizationsApisRevisionsDeploymentsService
374 }
375
376 func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
377 rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
378 return rs
379 }
380
381 type OrganizationsApisRevisionsDeploymentsService struct {
382 s *Service
383 }
384
385 func NewOrganizationsAppgroupsService(s *Service) *OrganizationsAppgroupsService {
386 rs := &OrganizationsAppgroupsService{s: s}
387 rs.Apps = NewOrganizationsAppgroupsAppsService(s)
388 return rs
389 }
390
391 type OrganizationsAppgroupsService struct {
392 s *Service
393
394 Apps *OrganizationsAppgroupsAppsService
395 }
396
397 func NewOrganizationsAppgroupsAppsService(s *Service) *OrganizationsAppgroupsAppsService {
398 rs := &OrganizationsAppgroupsAppsService{s: s}
399 rs.Keys = NewOrganizationsAppgroupsAppsKeysService(s)
400 return rs
401 }
402
403 type OrganizationsAppgroupsAppsService struct {
404 s *Service
405
406 Keys *OrganizationsAppgroupsAppsKeysService
407 }
408
409 func NewOrganizationsAppgroupsAppsKeysService(s *Service) *OrganizationsAppgroupsAppsKeysService {
410 rs := &OrganizationsAppgroupsAppsKeysService{s: s}
411 rs.Apiproducts = NewOrganizationsAppgroupsAppsKeysApiproductsService(s)
412 return rs
413 }
414
415 type OrganizationsAppgroupsAppsKeysService struct {
416 s *Service
417
418 Apiproducts *OrganizationsAppgroupsAppsKeysApiproductsService
419 }
420
421 func NewOrganizationsAppgroupsAppsKeysApiproductsService(s *Service) *OrganizationsAppgroupsAppsKeysApiproductsService {
422 rs := &OrganizationsAppgroupsAppsKeysApiproductsService{s: s}
423 return rs
424 }
425
426 type OrganizationsAppgroupsAppsKeysApiproductsService struct {
427 s *Service
428 }
429
430 func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
431 rs := &OrganizationsAppsService{s: s}
432 return rs
433 }
434
435 type OrganizationsAppsService struct {
436 s *Service
437 }
438
439 func NewOrganizationsDatacollectorsService(s *Service) *OrganizationsDatacollectorsService {
440 rs := &OrganizationsDatacollectorsService{s: s}
441 return rs
442 }
443
444 type OrganizationsDatacollectorsService struct {
445 s *Service
446 }
447
448 func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
449 rs := &OrganizationsDeploymentsService{s: s}
450 return rs
451 }
452
453 type OrganizationsDeploymentsService struct {
454 s *Service
455 }
456
457 func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
458 rs := &OrganizationsDevelopersService{s: s}
459 rs.Apps = NewOrganizationsDevelopersAppsService(s)
460 rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
461 rs.Balance = NewOrganizationsDevelopersBalanceService(s)
462 rs.Subscriptions = NewOrganizationsDevelopersSubscriptionsService(s)
463 return rs
464 }
465
466 type OrganizationsDevelopersService struct {
467 s *Service
468
469 Apps *OrganizationsDevelopersAppsService
470
471 Attributes_ *OrganizationsDevelopersAttributesService
472
473 Balance *OrganizationsDevelopersBalanceService
474
475 Subscriptions *OrganizationsDevelopersSubscriptionsService
476 }
477
478 func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
479 rs := &OrganizationsDevelopersAppsService{s: s}
480 rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
481 rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
482 return rs
483 }
484
485 type OrganizationsDevelopersAppsService struct {
486 s *Service
487
488 Attributes_ *OrganizationsDevelopersAppsAttributesService
489
490 Keys *OrganizationsDevelopersAppsKeysService
491 }
492
493 func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
494 rs := &OrganizationsDevelopersAppsAttributesService{s: s}
495 return rs
496 }
497
498 type OrganizationsDevelopersAppsAttributesService struct {
499 s *Service
500 }
501
502 func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
503 rs := &OrganizationsDevelopersAppsKeysService{s: s}
504 rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
505 rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
506 return rs
507 }
508
509 type OrganizationsDevelopersAppsKeysService struct {
510 s *Service
511
512 Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
513
514 Create_ *OrganizationsDevelopersAppsKeysCreateService
515 }
516
517 func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
518 rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
519 return rs
520 }
521
522 type OrganizationsDevelopersAppsKeysApiproductsService struct {
523 s *Service
524 }
525
526 func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
527 rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
528 return rs
529 }
530
531 type OrganizationsDevelopersAppsKeysCreateService struct {
532 s *Service
533 }
534
535 func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
536 rs := &OrganizationsDevelopersAttributesService{s: s}
537 return rs
538 }
539
540 type OrganizationsDevelopersAttributesService struct {
541 s *Service
542 }
543
544 func NewOrganizationsDevelopersBalanceService(s *Service) *OrganizationsDevelopersBalanceService {
545 rs := &OrganizationsDevelopersBalanceService{s: s}
546 return rs
547 }
548
549 type OrganizationsDevelopersBalanceService struct {
550 s *Service
551 }
552
553 func NewOrganizationsDevelopersSubscriptionsService(s *Service) *OrganizationsDevelopersSubscriptionsService {
554 rs := &OrganizationsDevelopersSubscriptionsService{s: s}
555 return rs
556 }
557
558 type OrganizationsDevelopersSubscriptionsService struct {
559 s *Service
560 }
561
562 func NewOrganizationsEndpointAttachmentsService(s *Service) *OrganizationsEndpointAttachmentsService {
563 rs := &OrganizationsEndpointAttachmentsService{s: s}
564 return rs
565 }
566
567 type OrganizationsEndpointAttachmentsService struct {
568 s *Service
569 }
570
571 func NewOrganizationsEnvgroupsService(s *Service) *OrganizationsEnvgroupsService {
572 rs := &OrganizationsEnvgroupsService{s: s}
573 rs.Attachments = NewOrganizationsEnvgroupsAttachmentsService(s)
574 return rs
575 }
576
577 type OrganizationsEnvgroupsService struct {
578 s *Service
579
580 Attachments *OrganizationsEnvgroupsAttachmentsService
581 }
582
583 func NewOrganizationsEnvgroupsAttachmentsService(s *Service) *OrganizationsEnvgroupsAttachmentsService {
584 rs := &OrganizationsEnvgroupsAttachmentsService{s: s}
585 return rs
586 }
587
588 type OrganizationsEnvgroupsAttachmentsService struct {
589 s *Service
590 }
591
592 func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
593 rs := &OrganizationsEnvironmentsService{s: s}
594 rs.AddonsConfig = NewOrganizationsEnvironmentsAddonsConfigService(s)
595 rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
596 rs.Apis = NewOrganizationsEnvironmentsApisService(s)
597 rs.ArchiveDeployments = NewOrganizationsEnvironmentsArchiveDeploymentsService(s)
598 rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
599 rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
600 rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
601 rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
602 rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
603 rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
604 rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
605 rs.References = NewOrganizationsEnvironmentsReferencesService(s)
606 rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
607 rs.SecurityActions = NewOrganizationsEnvironmentsSecurityActionsService(s)
608 rs.SecurityIncidents = NewOrganizationsEnvironmentsSecurityIncidentsService(s)
609 rs.SecurityReports = NewOrganizationsEnvironmentsSecurityReportsService(s)
610 rs.SecurityStats = NewOrganizationsEnvironmentsSecurityStatsService(s)
611 rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
612 rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
613 rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
614 rs.TraceConfig = NewOrganizationsEnvironmentsTraceConfigService(s)
615 return rs
616 }
617
618 type OrganizationsEnvironmentsService struct {
619 s *Service
620
621 AddonsConfig *OrganizationsEnvironmentsAddonsConfigService
622
623 Analytics *OrganizationsEnvironmentsAnalyticsService
624
625 Apis *OrganizationsEnvironmentsApisService
626
627 ArchiveDeployments *OrganizationsEnvironmentsArchiveDeploymentsService
628
629 Caches *OrganizationsEnvironmentsCachesService
630
631 Deployments *OrganizationsEnvironmentsDeploymentsService
632
633 Flowhooks *OrganizationsEnvironmentsFlowhooksService
634
635 Keystores *OrganizationsEnvironmentsKeystoresService
636
637 Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
638
639 OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
640
641 Queries *OrganizationsEnvironmentsQueriesService
642
643 References *OrganizationsEnvironmentsReferencesService
644
645 Resourcefiles *OrganizationsEnvironmentsResourcefilesService
646
647 SecurityActions *OrganizationsEnvironmentsSecurityActionsService
648
649 SecurityIncidents *OrganizationsEnvironmentsSecurityIncidentsService
650
651 SecurityReports *OrganizationsEnvironmentsSecurityReportsService
652
653 SecurityStats *OrganizationsEnvironmentsSecurityStatsService
654
655 Sharedflows *OrganizationsEnvironmentsSharedflowsService
656
657 Stats *OrganizationsEnvironmentsStatsService
658
659 Targetservers *OrganizationsEnvironmentsTargetserversService
660
661 TraceConfig *OrganizationsEnvironmentsTraceConfigService
662 }
663
664 func NewOrganizationsEnvironmentsAddonsConfigService(s *Service) *OrganizationsEnvironmentsAddonsConfigService {
665 rs := &OrganizationsEnvironmentsAddonsConfigService{s: s}
666 return rs
667 }
668
669 type OrganizationsEnvironmentsAddonsConfigService struct {
670 s *Service
671 }
672
673 func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
674 rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
675 rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
676 rs.Exports = NewOrganizationsEnvironmentsAnalyticsExportsService(s)
677 return rs
678 }
679
680 type OrganizationsEnvironmentsAnalyticsService struct {
681 s *Service
682
683 Admin *OrganizationsEnvironmentsAnalyticsAdminService
684
685 Exports *OrganizationsEnvironmentsAnalyticsExportsService
686 }
687
688 func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
689 rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
690 return rs
691 }
692
693 type OrganizationsEnvironmentsAnalyticsAdminService struct {
694 s *Service
695 }
696
697 func NewOrganizationsEnvironmentsAnalyticsExportsService(s *Service) *OrganizationsEnvironmentsAnalyticsExportsService {
698 rs := &OrganizationsEnvironmentsAnalyticsExportsService{s: s}
699 return rs
700 }
701
702 type OrganizationsEnvironmentsAnalyticsExportsService struct {
703 s *Service
704 }
705
706 func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
707 rs := &OrganizationsEnvironmentsApisService{s: s}
708 rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
709 rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
710 return rs
711 }
712
713 type OrganizationsEnvironmentsApisService struct {
714 s *Service
715
716 Deployments *OrganizationsEnvironmentsApisDeploymentsService
717
718 Revisions *OrganizationsEnvironmentsApisRevisionsService
719 }
720
721 func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
722 rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
723 return rs
724 }
725
726 type OrganizationsEnvironmentsApisDeploymentsService struct {
727 s *Service
728 }
729
730 func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
731 rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
732 rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
733 rs.Deployments = NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s)
734 return rs
735 }
736
737 type OrganizationsEnvironmentsApisRevisionsService struct {
738 s *Service
739
740 Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
741
742 Deployments *OrganizationsEnvironmentsApisRevisionsDeploymentsService
743 }
744
745 func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
746 rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
747 rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
748 return rs
749 }
750
751 type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
752 s *Service
753
754 Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
755 }
756
757 func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
758 rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
759 return rs
760 }
761
762 type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
763 s *Service
764 }
765
766 func NewOrganizationsEnvironmentsApisRevisionsDeploymentsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDeploymentsService {
767 rs := &OrganizationsEnvironmentsApisRevisionsDeploymentsService{s: s}
768 return rs
769 }
770
771 type OrganizationsEnvironmentsApisRevisionsDeploymentsService struct {
772 s *Service
773 }
774
775 func NewOrganizationsEnvironmentsArchiveDeploymentsService(s *Service) *OrganizationsEnvironmentsArchiveDeploymentsService {
776 rs := &OrganizationsEnvironmentsArchiveDeploymentsService{s: s}
777 return rs
778 }
779
780 type OrganizationsEnvironmentsArchiveDeploymentsService struct {
781 s *Service
782 }
783
784 func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
785 rs := &OrganizationsEnvironmentsCachesService{s: s}
786 return rs
787 }
788
789 type OrganizationsEnvironmentsCachesService struct {
790 s *Service
791 }
792
793 func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
794 rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
795 return rs
796 }
797
798 type OrganizationsEnvironmentsDeploymentsService struct {
799 s *Service
800 }
801
802 func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
803 rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
804 return rs
805 }
806
807 type OrganizationsEnvironmentsFlowhooksService struct {
808 s *Service
809 }
810
811 func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
812 rs := &OrganizationsEnvironmentsKeystoresService{s: s}
813 rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
814 return rs
815 }
816
817 type OrganizationsEnvironmentsKeystoresService struct {
818 s *Service
819
820 Aliases *OrganizationsEnvironmentsKeystoresAliasesService
821 }
822
823 func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
824 rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
825 return rs
826 }
827
828 type OrganizationsEnvironmentsKeystoresAliasesService struct {
829 s *Service
830 }
831
832 func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
833 rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
834 rs.Entries = NewOrganizationsEnvironmentsKeyvaluemapsEntriesService(s)
835 return rs
836 }
837
838 type OrganizationsEnvironmentsKeyvaluemapsService struct {
839 s *Service
840
841 Entries *OrganizationsEnvironmentsKeyvaluemapsEntriesService
842 }
843
844 func NewOrganizationsEnvironmentsKeyvaluemapsEntriesService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsEntriesService {
845 rs := &OrganizationsEnvironmentsKeyvaluemapsEntriesService{s: s}
846 return rs
847 }
848
849 type OrganizationsEnvironmentsKeyvaluemapsEntriesService struct {
850 s *Service
851 }
852
853 func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
854 rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
855 return rs
856 }
857
858 type OrganizationsEnvironmentsOptimizedStatsService struct {
859 s *Service
860 }
861
862 func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
863 rs := &OrganizationsEnvironmentsQueriesService{s: s}
864 return rs
865 }
866
867 type OrganizationsEnvironmentsQueriesService struct {
868 s *Service
869 }
870
871 func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
872 rs := &OrganizationsEnvironmentsReferencesService{s: s}
873 return rs
874 }
875
876 type OrganizationsEnvironmentsReferencesService struct {
877 s *Service
878 }
879
880 func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
881 rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
882 return rs
883 }
884
885 type OrganizationsEnvironmentsResourcefilesService struct {
886 s *Service
887 }
888
889 func NewOrganizationsEnvironmentsSecurityActionsService(s *Service) *OrganizationsEnvironmentsSecurityActionsService {
890 rs := &OrganizationsEnvironmentsSecurityActionsService{s: s}
891 return rs
892 }
893
894 type OrganizationsEnvironmentsSecurityActionsService struct {
895 s *Service
896 }
897
898 func NewOrganizationsEnvironmentsSecurityIncidentsService(s *Service) *OrganizationsEnvironmentsSecurityIncidentsService {
899 rs := &OrganizationsEnvironmentsSecurityIncidentsService{s: s}
900 return rs
901 }
902
903 type OrganizationsEnvironmentsSecurityIncidentsService struct {
904 s *Service
905 }
906
907 func NewOrganizationsEnvironmentsSecurityReportsService(s *Service) *OrganizationsEnvironmentsSecurityReportsService {
908 rs := &OrganizationsEnvironmentsSecurityReportsService{s: s}
909 return rs
910 }
911
912 type OrganizationsEnvironmentsSecurityReportsService struct {
913 s *Service
914 }
915
916 func NewOrganizationsEnvironmentsSecurityStatsService(s *Service) *OrganizationsEnvironmentsSecurityStatsService {
917 rs := &OrganizationsEnvironmentsSecurityStatsService{s: s}
918 return rs
919 }
920
921 type OrganizationsEnvironmentsSecurityStatsService struct {
922 s *Service
923 }
924
925 func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
926 rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
927 rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
928 rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
929 return rs
930 }
931
932 type OrganizationsEnvironmentsSharedflowsService struct {
933 s *Service
934
935 Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
936
937 Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
938 }
939
940 func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
941 rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
942 return rs
943 }
944
945 type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
946 s *Service
947 }
948
949 func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
950 rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
951 return rs
952 }
953
954 type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
955 s *Service
956 }
957
958 func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
959 rs := &OrganizationsEnvironmentsStatsService{s: s}
960 return rs
961 }
962
963 type OrganizationsEnvironmentsStatsService struct {
964 s *Service
965 }
966
967 func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
968 rs := &OrganizationsEnvironmentsTargetserversService{s: s}
969 return rs
970 }
971
972 type OrganizationsEnvironmentsTargetserversService struct {
973 s *Service
974 }
975
976 func NewOrganizationsEnvironmentsTraceConfigService(s *Service) *OrganizationsEnvironmentsTraceConfigService {
977 rs := &OrganizationsEnvironmentsTraceConfigService{s: s}
978 rs.Overrides = NewOrganizationsEnvironmentsTraceConfigOverridesService(s)
979 return rs
980 }
981
982 type OrganizationsEnvironmentsTraceConfigService struct {
983 s *Service
984
985 Overrides *OrganizationsEnvironmentsTraceConfigOverridesService
986 }
987
988 func NewOrganizationsEnvironmentsTraceConfigOverridesService(s *Service) *OrganizationsEnvironmentsTraceConfigOverridesService {
989 rs := &OrganizationsEnvironmentsTraceConfigOverridesService{s: s}
990 return rs
991 }
992
993 type OrganizationsEnvironmentsTraceConfigOverridesService struct {
994 s *Service
995 }
996
997 func NewOrganizationsHostQueriesService(s *Service) *OrganizationsHostQueriesService {
998 rs := &OrganizationsHostQueriesService{s: s}
999 return rs
1000 }
1001
1002 type OrganizationsHostQueriesService struct {
1003 s *Service
1004 }
1005
1006 func NewOrganizationsHostSecurityReportsService(s *Service) *OrganizationsHostSecurityReportsService {
1007 rs := &OrganizationsHostSecurityReportsService{s: s}
1008 return rs
1009 }
1010
1011 type OrganizationsHostSecurityReportsService struct {
1012 s *Service
1013 }
1014
1015 func NewOrganizationsHostStatsService(s *Service) *OrganizationsHostStatsService {
1016 rs := &OrganizationsHostStatsService{s: s}
1017 return rs
1018 }
1019
1020 type OrganizationsHostStatsService struct {
1021 s *Service
1022 }
1023
1024 func NewOrganizationsInstancesService(s *Service) *OrganizationsInstancesService {
1025 rs := &OrganizationsInstancesService{s: s}
1026 rs.Attachments = NewOrganizationsInstancesAttachmentsService(s)
1027 rs.Canaryevaluations = NewOrganizationsInstancesCanaryevaluationsService(s)
1028 rs.NatAddresses = NewOrganizationsInstancesNatAddressesService(s)
1029 return rs
1030 }
1031
1032 type OrganizationsInstancesService struct {
1033 s *Service
1034
1035 Attachments *OrganizationsInstancesAttachmentsService
1036
1037 Canaryevaluations *OrganizationsInstancesCanaryevaluationsService
1038
1039 NatAddresses *OrganizationsInstancesNatAddressesService
1040 }
1041
1042 func NewOrganizationsInstancesAttachmentsService(s *Service) *OrganizationsInstancesAttachmentsService {
1043 rs := &OrganizationsInstancesAttachmentsService{s: s}
1044 return rs
1045 }
1046
1047 type OrganizationsInstancesAttachmentsService struct {
1048 s *Service
1049 }
1050
1051 func NewOrganizationsInstancesCanaryevaluationsService(s *Service) *OrganizationsInstancesCanaryevaluationsService {
1052 rs := &OrganizationsInstancesCanaryevaluationsService{s: s}
1053 return rs
1054 }
1055
1056 type OrganizationsInstancesCanaryevaluationsService struct {
1057 s *Service
1058 }
1059
1060 func NewOrganizationsInstancesNatAddressesService(s *Service) *OrganizationsInstancesNatAddressesService {
1061 rs := &OrganizationsInstancesNatAddressesService{s: s}
1062 return rs
1063 }
1064
1065 type OrganizationsInstancesNatAddressesService struct {
1066 s *Service
1067 }
1068
1069 func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
1070 rs := &OrganizationsKeyvaluemapsService{s: s}
1071 rs.Entries = NewOrganizationsKeyvaluemapsEntriesService(s)
1072 return rs
1073 }
1074
1075 type OrganizationsKeyvaluemapsService struct {
1076 s *Service
1077
1078 Entries *OrganizationsKeyvaluemapsEntriesService
1079 }
1080
1081 func NewOrganizationsKeyvaluemapsEntriesService(s *Service) *OrganizationsKeyvaluemapsEntriesService {
1082 rs := &OrganizationsKeyvaluemapsEntriesService{s: s}
1083 return rs
1084 }
1085
1086 type OrganizationsKeyvaluemapsEntriesService struct {
1087 s *Service
1088 }
1089
1090 func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
1091 rs := &OrganizationsOperationsService{s: s}
1092 return rs
1093 }
1094
1095 type OrganizationsOperationsService struct {
1096 s *Service
1097 }
1098
1099 func NewOrganizationsOptimizedHostStatsService(s *Service) *OrganizationsOptimizedHostStatsService {
1100 rs := &OrganizationsOptimizedHostStatsService{s: s}
1101 return rs
1102 }
1103
1104 type OrganizationsOptimizedHostStatsService struct {
1105 s *Service
1106 }
1107
1108 func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
1109 rs := &OrganizationsReportsService{s: s}
1110 return rs
1111 }
1112
1113 type OrganizationsReportsService struct {
1114 s *Service
1115 }
1116
1117 func NewOrganizationsSecurityAssessmentResultsService(s *Service) *OrganizationsSecurityAssessmentResultsService {
1118 rs := &OrganizationsSecurityAssessmentResultsService{s: s}
1119 return rs
1120 }
1121
1122 type OrganizationsSecurityAssessmentResultsService struct {
1123 s *Service
1124 }
1125
1126 func NewOrganizationsSecurityProfilesService(s *Service) *OrganizationsSecurityProfilesService {
1127 rs := &OrganizationsSecurityProfilesService{s: s}
1128 rs.Environments = NewOrganizationsSecurityProfilesEnvironmentsService(s)
1129 return rs
1130 }
1131
1132 type OrganizationsSecurityProfilesService struct {
1133 s *Service
1134
1135 Environments *OrganizationsSecurityProfilesEnvironmentsService
1136 }
1137
1138 func NewOrganizationsSecurityProfilesEnvironmentsService(s *Service) *OrganizationsSecurityProfilesEnvironmentsService {
1139 rs := &OrganizationsSecurityProfilesEnvironmentsService{s: s}
1140 return rs
1141 }
1142
1143 type OrganizationsSecurityProfilesEnvironmentsService struct {
1144 s *Service
1145 }
1146
1147 func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
1148 rs := &OrganizationsSharedflowsService{s: s}
1149 rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
1150 rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
1151 return rs
1152 }
1153
1154 type OrganizationsSharedflowsService struct {
1155 s *Service
1156
1157 Deployments *OrganizationsSharedflowsDeploymentsService
1158
1159 Revisions *OrganizationsSharedflowsRevisionsService
1160 }
1161
1162 func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
1163 rs := &OrganizationsSharedflowsDeploymentsService{s: s}
1164 return rs
1165 }
1166
1167 type OrganizationsSharedflowsDeploymentsService struct {
1168 s *Service
1169 }
1170
1171 func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
1172 rs := &OrganizationsSharedflowsRevisionsService{s: s}
1173 rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
1174 return rs
1175 }
1176
1177 type OrganizationsSharedflowsRevisionsService struct {
1178 s *Service
1179
1180 Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
1181 }
1182
1183 func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
1184 rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
1185 return rs
1186 }
1187
1188 type OrganizationsSharedflowsRevisionsDeploymentsService struct {
1189 s *Service
1190 }
1191
1192 func NewOrganizationsSitesService(s *Service) *OrganizationsSitesService {
1193 rs := &OrganizationsSitesService{s: s}
1194 rs.Apicategories = NewOrganizationsSitesApicategoriesService(s)
1195 rs.Apidocs = NewOrganizationsSitesApidocsService(s)
1196 return rs
1197 }
1198
1199 type OrganizationsSitesService struct {
1200 s *Service
1201
1202 Apicategories *OrganizationsSitesApicategoriesService
1203
1204 Apidocs *OrganizationsSitesApidocsService
1205 }
1206
1207 func NewOrganizationsSitesApicategoriesService(s *Service) *OrganizationsSitesApicategoriesService {
1208 rs := &OrganizationsSitesApicategoriesService{s: s}
1209 return rs
1210 }
1211
1212 type OrganizationsSitesApicategoriesService struct {
1213 s *Service
1214 }
1215
1216 func NewOrganizationsSitesApidocsService(s *Service) *OrganizationsSitesApidocsService {
1217 rs := &OrganizationsSitesApidocsService{s: s}
1218 return rs
1219 }
1220
1221 type OrganizationsSitesApidocsService struct {
1222 s *Service
1223 }
1224
1225 func NewProjectsService(s *Service) *ProjectsService {
1226 rs := &ProjectsService{s: s}
1227 return rs
1228 }
1229
1230 type ProjectsService struct {
1231 s *Service
1232 }
1233
1234
1235
1236 type EdgeConfigstoreBundleBadBundle struct {
1237
1238 Violations []*EdgeConfigstoreBundleBadBundleViolation `json:"violations,omitempty"`
1239
1240
1241
1242
1243
1244 ForceSendFields []string `json:"-"`
1245
1246
1247
1248
1249 NullFields []string `json:"-"`
1250 }
1251
1252 func (s *EdgeConfigstoreBundleBadBundle) MarshalJSON() ([]byte, error) {
1253 type NoMethod EdgeConfigstoreBundleBadBundle
1254 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1255 }
1256
1257
1258
1259 type EdgeConfigstoreBundleBadBundleViolation struct {
1260
1261 Description string `json:"description,omitempty"`
1262
1263
1264 Filename string `json:"filename,omitempty"`
1265
1266
1267
1268
1269
1270 ForceSendFields []string `json:"-"`
1271
1272
1273
1274
1275 NullFields []string `json:"-"`
1276 }
1277
1278 func (s *EdgeConfigstoreBundleBadBundleViolation) MarshalJSON() ([]byte, error) {
1279 type NoMethod EdgeConfigstoreBundleBadBundleViolation
1280 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1281 }
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300 type GoogleApiHttpBody struct {
1301
1302
1303 ContentType string `json:"contentType,omitempty"`
1304
1305 Data string `json:"data,omitempty"`
1306
1307
1308 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
1309
1310
1311 googleapi.ServerResponse `json:"-"`
1312
1313
1314
1315
1316
1317 ForceSendFields []string `json:"-"`
1318
1319
1320
1321
1322 NullFields []string `json:"-"`
1323 }
1324
1325 func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
1326 type NoMethod GoogleApiHttpBody
1327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1328 }
1329
1330
1331
1332 type GoogleCloudApigeeV1APIProductAssociation struct {
1333
1334 Apiproduct string `json:"apiproduct,omitempty"`
1335
1336
1337 Status string `json:"status,omitempty"`
1338
1339
1340
1341
1342
1343 ForceSendFields []string `json:"-"`
1344
1345
1346
1347
1348 NullFields []string `json:"-"`
1349 }
1350
1351 func (s *GoogleCloudApigeeV1APIProductAssociation) MarshalJSON() ([]byte, error) {
1352 type NoMethod GoogleCloudApigeeV1APIProductAssociation
1353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1354 }
1355
1356 type GoogleCloudApigeeV1Access struct {
1357 Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
1358 Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
1359 Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
1360
1361
1362
1363
1364
1365 ForceSendFields []string `json:"-"`
1366
1367
1368
1369
1370 NullFields []string `json:"-"`
1371 }
1372
1373 func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
1374 type NoMethod GoogleCloudApigeeV1Access
1375 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1376 }
1377
1378
1379
1380 type GoogleCloudApigeeV1AccessGet struct {
1381 Name string `json:"name,omitempty"`
1382 Value string `json:"value,omitempty"`
1383
1384
1385
1386
1387
1388 ForceSendFields []string `json:"-"`
1389
1390
1391
1392
1393 NullFields []string `json:"-"`
1394 }
1395
1396 func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
1397 type NoMethod GoogleCloudApigeeV1AccessGet
1398 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1399 }
1400
1401
1402
1403
1404
1405 type GoogleCloudApigeeV1AccessLoggingConfig struct {
1406
1407
1408 Enabled bool `json:"enabled,omitempty"`
1409
1410
1411
1412
1413
1414 Filter string `json:"filter,omitempty"`
1415
1416
1417
1418
1419
1420 ForceSendFields []string `json:"-"`
1421
1422
1423
1424
1425 NullFields []string `json:"-"`
1426 }
1427
1428 func (s *GoogleCloudApigeeV1AccessLoggingConfig) MarshalJSON() ([]byte, error) {
1429 type NoMethod GoogleCloudApigeeV1AccessLoggingConfig
1430 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1431 }
1432
1433
1434
1435 type GoogleCloudApigeeV1AccessRemove struct {
1436 Name string `json:"name,omitempty"`
1437 Success bool `json:"success,omitempty"`
1438
1439
1440
1441
1442
1443 ForceSendFields []string `json:"-"`
1444
1445
1446
1447
1448 NullFields []string `json:"-"`
1449 }
1450
1451 func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
1452 type NoMethod GoogleCloudApigeeV1AccessRemove
1453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1454 }
1455
1456
1457
1458 type GoogleCloudApigeeV1AccessSet struct {
1459 Name string `json:"name,omitempty"`
1460 Success bool `json:"success,omitempty"`
1461 Value string `json:"value,omitempty"`
1462
1463
1464
1465
1466
1467 ForceSendFields []string `json:"-"`
1468
1469
1470
1471
1472 NullFields []string `json:"-"`
1473 }
1474
1475 func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
1476 type NoMethod GoogleCloudApigeeV1AccessSet
1477 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1478 }
1479
1480
1481
1482 type GoogleCloudApigeeV1ActivateNatAddressRequest struct {
1483 }
1484
1485
1486
1487 type GoogleCloudApigeeV1AddonsConfig struct {
1488
1489 AdvancedApiOpsConfig *GoogleCloudApigeeV1AdvancedApiOpsConfig `json:"advancedApiOpsConfig,omitempty"`
1490
1491 AnalyticsConfig *GoogleCloudApigeeV1AnalyticsConfig `json:"analyticsConfig,omitempty"`
1492
1493 ApiSecurityConfig *GoogleCloudApigeeV1ApiSecurityConfig `json:"apiSecurityConfig,omitempty"`
1494
1495 ConnectorsPlatformConfig *GoogleCloudApigeeV1ConnectorsPlatformConfig `json:"connectorsPlatformConfig,omitempty"`
1496
1497 IntegrationConfig *GoogleCloudApigeeV1IntegrationConfig `json:"integrationConfig,omitempty"`
1498
1499 MonetizationConfig *GoogleCloudApigeeV1MonetizationConfig `json:"monetizationConfig,omitempty"`
1500
1501
1502 googleapi.ServerResponse `json:"-"`
1503
1504
1505
1506
1507
1508 ForceSendFields []string `json:"-"`
1509
1510
1511
1512
1513 NullFields []string `json:"-"`
1514 }
1515
1516 func (s *GoogleCloudApigeeV1AddonsConfig) MarshalJSON() ([]byte, error) {
1517 type NoMethod GoogleCloudApigeeV1AddonsConfig
1518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1519 }
1520
1521
1522
1523 type GoogleCloudApigeeV1AdjustDeveloperBalanceRequest struct {
1524
1525
1526
1527
1528
1529 Adjustment *GoogleTypeMoney `json:"adjustment,omitempty"`
1530
1531
1532
1533
1534
1535 ForceSendFields []string `json:"-"`
1536
1537
1538
1539
1540 NullFields []string `json:"-"`
1541 }
1542
1543 func (s *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest) MarshalJSON() ([]byte, error) {
1544 type NoMethod GoogleCloudApigeeV1AdjustDeveloperBalanceRequest
1545 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1546 }
1547
1548
1549
1550 type GoogleCloudApigeeV1AdvancedApiOpsConfig struct {
1551
1552 Enabled bool `json:"enabled,omitempty"`
1553
1554
1555
1556
1557
1558 ForceSendFields []string `json:"-"`
1559
1560
1561
1562
1563 NullFields []string `json:"-"`
1564 }
1565
1566 func (s *GoogleCloudApigeeV1AdvancedApiOpsConfig) MarshalJSON() ([]byte, error) {
1567 type NoMethod GoogleCloudApigeeV1AdvancedApiOpsConfig
1568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1569 }
1570
1571
1572
1573 type GoogleCloudApigeeV1Alias struct {
1574
1575
1576 Alias string `json:"alias,omitempty"`
1577
1578 CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
1579
1580
1581
1582
1583
1584
1585 Type string `json:"type,omitempty"`
1586
1587
1588 googleapi.ServerResponse `json:"-"`
1589
1590
1591
1592
1593
1594 ForceSendFields []string `json:"-"`
1595
1596
1597
1598
1599 NullFields []string `json:"-"`
1600 }
1601
1602 func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1603 type NoMethod GoogleCloudApigeeV1Alias
1604 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1605 }
1606
1607 type GoogleCloudApigeeV1AliasRevisionConfig struct {
1608
1609
1610 Location string `json:"location,omitempty"`
1611
1612
1613
1614
1615 Name string `json:"name,omitempty"`
1616
1617
1618
1619
1620 Type string `json:"type,omitempty"`
1621
1622
1623
1624
1625
1626 ForceSendFields []string `json:"-"`
1627
1628
1629
1630
1631 NullFields []string `json:"-"`
1632 }
1633
1634 func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1635 type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1637 }
1638
1639
1640 type GoogleCloudApigeeV1AnalyticsConfig struct {
1641
1642 Enabled bool `json:"enabled,omitempty"`
1643
1644
1645 ExpireTimeMillis int64 `json:"expireTimeMillis,omitempty,string"`
1646
1647
1648
1649
1650
1651
1652
1653
1654 State string `json:"state,omitempty"`
1655
1656 UpdateTime string `json:"updateTime,omitempty"`
1657
1658
1659
1660
1661
1662 ForceSendFields []string `json:"-"`
1663
1664
1665
1666
1667 NullFields []string `json:"-"`
1668 }
1669
1670 func (s *GoogleCloudApigeeV1AnalyticsConfig) MarshalJSON() ([]byte, error) {
1671 type NoMethod GoogleCloudApigeeV1AnalyticsConfig
1672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1673 }
1674
1675
1676
1677
1678
1679
1680 type GoogleCloudApigeeV1ApiCategory struct {
1681
1682 Id string `json:"id,omitempty"`
1683
1684 Name string `json:"name,omitempty"`
1685
1686 SiteId string `json:"siteId,omitempty"`
1687
1688 UpdateTime int64 `json:"updateTime,omitempty,string"`
1689
1690
1691
1692
1693
1694 ForceSendFields []string `json:"-"`
1695
1696
1697
1698
1699 NullFields []string `json:"-"`
1700 }
1701
1702 func (s *GoogleCloudApigeeV1ApiCategory) MarshalJSON() ([]byte, error) {
1703 type NoMethod GoogleCloudApigeeV1ApiCategory
1704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1705 }
1706
1707
1708
1709 type GoogleCloudApigeeV1ApiCategoryResponse struct {
1710
1711 Data *GoogleCloudApigeeV1ApiCategory `json:"data,omitempty"`
1712
1713 ErrorCode string `json:"errorCode,omitempty"`
1714
1715 Message string `json:"message,omitempty"`
1716
1717 RequestId string `json:"requestId,omitempty"`
1718
1719 Status string `json:"status,omitempty"`
1720
1721
1722 googleapi.ServerResponse `json:"-"`
1723
1724
1725
1726
1727
1728 ForceSendFields []string `json:"-"`
1729
1730
1731
1732
1733 NullFields []string `json:"-"`
1734 }
1735
1736 func (s *GoogleCloudApigeeV1ApiCategoryResponse) MarshalJSON() ([]byte, error) {
1737 type NoMethod GoogleCloudApigeeV1ApiCategoryResponse
1738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1739 }
1740
1741
1742
1743
1744
1745
1746
1747
1748 type GoogleCloudApigeeV1ApiDoc struct {
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761 AnonAllowed bool `json:"anonAllowed,omitempty"`
1762
1763
1764
1765
1766 ApiProductName string `json:"apiProductName,omitempty"`
1767
1768
1769 CategoryIds []string `json:"categoryIds,omitempty"`
1770
1771
1772 Description string `json:"description,omitempty"`
1773
1774
1775 EdgeAPIProductName string `json:"edgeAPIProductName,omitempty"`
1776
1777
1778 GraphqlEndpointUrl string `json:"graphqlEndpointUrl,omitempty"`
1779
1780
1781 GraphqlSchema string `json:"graphqlSchema,omitempty"`
1782
1783
1784 GraphqlSchemaDisplayName string `json:"graphqlSchemaDisplayName,omitempty"`
1785
1786 Id int64 `json:"id,omitempty,string"`
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797 ImageUrl string `json:"imageUrl,omitempty"`
1798
1799
1800 Modified int64 `json:"modified,omitempty,string"`
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811 Published bool `json:"published,omitempty"`
1812
1813
1814
1815
1816 RequireCallbackUrl bool `json:"requireCallbackUrl,omitempty"`
1817
1818 SiteId string `json:"siteId,omitempty"`
1819
1820 SpecId string `json:"specId,omitempty"`
1821
1822
1823 Title string `json:"title,omitempty"`
1824
1825 Visibility bool `json:"visibility,omitempty"`
1826
1827
1828
1829
1830
1831 ForceSendFields []string `json:"-"`
1832
1833
1834
1835
1836 NullFields []string `json:"-"`
1837 }
1838
1839 func (s *GoogleCloudApigeeV1ApiDoc) MarshalJSON() ([]byte, error) {
1840 type NoMethod GoogleCloudApigeeV1ApiDoc
1841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1842 }
1843
1844
1845
1846 type GoogleCloudApigeeV1ApiDocDocumentation struct {
1847
1848 GraphqlDocumentation *GoogleCloudApigeeV1GraphqlDocumentation `json:"graphqlDocumentation,omitempty"`
1849
1850 OasDocumentation *GoogleCloudApigeeV1OASDocumentation `json:"oasDocumentation,omitempty"`
1851
1852
1853
1854
1855
1856 ForceSendFields []string `json:"-"`
1857
1858
1859
1860
1861 NullFields []string `json:"-"`
1862 }
1863
1864 func (s *GoogleCloudApigeeV1ApiDocDocumentation) MarshalJSON() ([]byte, error) {
1865 type NoMethod GoogleCloudApigeeV1ApiDocDocumentation
1866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1867 }
1868
1869
1870
1871 type GoogleCloudApigeeV1ApiDocDocumentationResponse struct {
1872
1873 Data *GoogleCloudApigeeV1ApiDocDocumentation `json:"data,omitempty"`
1874
1875 ErrorCode string `json:"errorCode,omitempty"`
1876
1877 Message string `json:"message,omitempty"`
1878
1879 RequestId string `json:"requestId,omitempty"`
1880
1881 Status string `json:"status,omitempty"`
1882
1883
1884 googleapi.ServerResponse `json:"-"`
1885
1886
1887
1888
1889
1890 ForceSendFields []string `json:"-"`
1891
1892
1893
1894
1895 NullFields []string `json:"-"`
1896 }
1897
1898 func (s *GoogleCloudApigeeV1ApiDocDocumentationResponse) MarshalJSON() ([]byte, error) {
1899 type NoMethod GoogleCloudApigeeV1ApiDocDocumentationResponse
1900 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1901 }
1902
1903
1904
1905 type GoogleCloudApigeeV1ApiDocResponse struct {
1906
1907 Data *GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"`
1908
1909 ErrorCode string `json:"errorCode,omitempty"`
1910
1911 Message string `json:"message,omitempty"`
1912
1913 RequestId string `json:"requestId,omitempty"`
1914
1915 Status string `json:"status,omitempty"`
1916
1917
1918 googleapi.ServerResponse `json:"-"`
1919
1920
1921
1922
1923
1924 ForceSendFields []string `json:"-"`
1925
1926
1927
1928
1929 NullFields []string `json:"-"`
1930 }
1931
1932 func (s *GoogleCloudApigeeV1ApiDocResponse) MarshalJSON() ([]byte, error) {
1933 type NoMethod GoogleCloudApigeeV1ApiDocResponse
1934 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1935 }
1936
1937 type GoogleCloudApigeeV1ApiProduct struct {
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953 ApiResources []string `json:"apiResources,omitempty"`
1954
1955
1956
1957
1958
1959
1960
1961 ApprovalType string `json:"approvalType,omitempty"`
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1972
1973
1974 CreatedAt int64 `json:"createdAt,omitempty,string"`
1975
1976
1977 Description string `json:"description,omitempty"`
1978
1979
1980 DisplayName string `json:"displayName,omitempty"`
1981
1982
1983
1984
1985
1986
1987
1988
1989 Environments []string `json:"environments,omitempty"`
1990
1991
1992
1993
1994
1995
1996 GraphqlOperationGroup *GoogleCloudApigeeV1GraphQLOperationGroup `json:"graphqlOperationGroup,omitempty"`
1997
1998
1999
2000
2001
2002 GrpcOperationGroup *GoogleCloudApigeeV1GrpcOperationGroup `json:"grpcOperationGroup,omitempty"`
2003
2004
2005 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2006
2007
2008
2009 Name string `json:"name,omitempty"`
2010
2011
2012
2013
2014
2015
2016
2017
2018 OperationGroup *GoogleCloudApigeeV1OperationGroup `json:"operationGroup,omitempty"`
2019
2020
2021
2022
2023
2024
2025 Proxies []string `json:"proxies,omitempty"`
2026
2027
2028
2029
2030 Quota string `json:"quota,omitempty"`
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054 QuotaCounterScope string `json:"quotaCounterScope,omitempty"`
2055
2056
2057 QuotaInterval string `json:"quotaInterval,omitempty"`
2058
2059
2060 QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
2061
2062
2063
2064 Scopes []string `json:"scopes,omitempty"`
2065
2066
2067 googleapi.ServerResponse `json:"-"`
2068
2069
2070
2071
2072
2073 ForceSendFields []string `json:"-"`
2074
2075
2076
2077
2078 NullFields []string `json:"-"`
2079 }
2080
2081 func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
2082 type NoMethod GoogleCloudApigeeV1ApiProduct
2083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2084 }
2085
2086 type GoogleCloudApigeeV1ApiProductRef struct {
2087
2088 Apiproduct string `json:"apiproduct,omitempty"`
2089
2090 Status string `json:"status,omitempty"`
2091
2092
2093
2094
2095
2096 ForceSendFields []string `json:"-"`
2097
2098
2099
2100
2101 NullFields []string `json:"-"`
2102 }
2103
2104 func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
2105 type NoMethod GoogleCloudApigeeV1ApiProductRef
2106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2107 }
2108
2109
2110 type GoogleCloudApigeeV1ApiProxy struct {
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123 ApiProxyType string `json:"apiProxyType,omitempty"`
2124
2125 Labels map[string]string `json:"labels,omitempty"`
2126
2127
2128 LatestRevisionId string `json:"latestRevisionId,omitempty"`
2129
2130 MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
2131
2132 Name string `json:"name,omitempty"`
2133
2134
2135
2136 ReadOnly bool `json:"readOnly,omitempty"`
2137
2138 Revision []string `json:"revision,omitempty"`
2139
2140
2141 googleapi.ServerResponse `json:"-"`
2142
2143
2144
2145
2146
2147 ForceSendFields []string `json:"-"`
2148
2149
2150
2151
2152 NullFields []string `json:"-"`
2153 }
2154
2155 func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
2156 type NoMethod GoogleCloudApigeeV1ApiProxy
2157 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2158 }
2159
2160
2161 type GoogleCloudApigeeV1ApiProxyRevision struct {
2162
2163
2164
2165
2166
2167 Archive string `json:"archive,omitempty"`
2168
2169 Basepaths []string `json:"basepaths,omitempty"`
2170
2171
2172
2173
2174 ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
2175
2176 ContextInfo string `json:"contextInfo,omitempty"`
2177
2178
2179 CreatedAt int64 `json:"createdAt,omitempty,string"`
2180
2181 Description string `json:"description,omitempty"`
2182
2183 DisplayName string `json:"displayName,omitempty"`
2184
2185
2186 EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
2187
2188
2189 HasExtensiblePolicy bool `json:"hasExtensiblePolicy,omitempty"`
2190
2191
2192
2193 IntegrationEndpoints []string `json:"integrationEndpoints,omitempty"`
2194
2195
2196 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2197
2198 Name string `json:"name,omitempty"`
2199
2200 Policies []string `json:"policies,omitempty"`
2201
2202 Proxies []string `json:"proxies,omitempty"`
2203
2204
2205
2206
2207 ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
2208
2209 ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
2210
2211
2212 Resources []string `json:"resources,omitempty"`
2213
2214 Revision string `json:"revision,omitempty"`
2215
2216 SharedFlows []string `json:"sharedFlows,omitempty"`
2217
2218
2219 Spec string `json:"spec,omitempty"`
2220
2221
2222
2223
2224 TargetEndpoints []string `json:"targetEndpoints,omitempty"`
2225
2226
2227
2228
2229 TargetServers []string `json:"targetServers,omitempty"`
2230
2231 Targets []string `json:"targets,omitempty"`
2232
2233 Teams []string `json:"teams,omitempty"`
2234
2235
2236 Type string `json:"type,omitempty"`
2237
2238
2239 googleapi.ServerResponse `json:"-"`
2240
2241
2242
2243
2244
2245 ForceSendFields []string `json:"-"`
2246
2247
2248
2249
2250 NullFields []string `json:"-"`
2251 }
2252
2253 func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
2254 type NoMethod GoogleCloudApigeeV1ApiProxyRevision
2255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2256 }
2257
2258
2259
2260 type GoogleCloudApigeeV1ApiSecurityConfig struct {
2261
2262 Enabled bool `json:"enabled,omitempty"`
2263
2264
2265 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2266
2267
2268
2269
2270
2271 ForceSendFields []string `json:"-"`
2272
2273
2274
2275
2276 NullFields []string `json:"-"`
2277 }
2278
2279 func (s *GoogleCloudApigeeV1ApiSecurityConfig) MarshalJSON() ([]byte, error) {
2280 type NoMethod GoogleCloudApigeeV1ApiSecurityConfig
2281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2282 }
2283
2284
2285
2286 type GoogleCloudApigeeV1ApiSecurityRuntimeConfig struct {
2287
2288
2289 Location []string `json:"location,omitempty"`
2290
2291
2292 Name string `json:"name,omitempty"`
2293
2294
2295 RevisionId int64 `json:"revisionId,omitempty,string"`
2296
2297
2298 Uid string `json:"uid,omitempty"`
2299
2300 UpdateTime string `json:"updateTime,omitempty"`
2301
2302
2303 googleapi.ServerResponse `json:"-"`
2304
2305
2306
2307
2308
2309 ForceSendFields []string `json:"-"`
2310
2311
2312
2313
2314 NullFields []string `json:"-"`
2315 }
2316
2317 func (s *GoogleCloudApigeeV1ApiSecurityRuntimeConfig) MarshalJSON() ([]byte, error) {
2318 type NoMethod GoogleCloudApigeeV1ApiSecurityRuntimeConfig
2319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2320 }
2321
2322 type GoogleCloudApigeeV1App struct {
2323
2324 ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2325
2326 AppGroup string `json:"appGroup,omitempty"`
2327
2328 AppId string `json:"appId,omitempty"`
2329
2330 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2331
2332
2333 CallbackUrl string `json:"callbackUrl,omitempty"`
2334
2335 CompanyName string `json:"companyName,omitempty"`
2336
2337 CreatedAt int64 `json:"createdAt,omitempty,string"`
2338
2339
2340 Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
2341
2342 DeveloperEmail string `json:"developerEmail,omitempty"`
2343
2344 DeveloperId string `json:"developerId,omitempty"`
2345
2346
2347
2348 KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
2349
2350 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2351
2352 Name string `json:"name,omitempty"`
2353
2354
2355 Scopes []string `json:"scopes,omitempty"`
2356
2357 Status string `json:"status,omitempty"`
2358
2359
2360 googleapi.ServerResponse `json:"-"`
2361
2362
2363
2364
2365
2366 ForceSendFields []string `json:"-"`
2367
2368
2369
2370
2371 NullFields []string `json:"-"`
2372 }
2373
2374 func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
2375 type NoMethod GoogleCloudApigeeV1App
2376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2377 }
2378
2379
2380
2381
2382
2383
2384 type GoogleCloudApigeeV1AppGroup struct {
2385
2386 AppGroupId string `json:"appGroupId,omitempty"`
2387
2388 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2389
2390 ChannelId string `json:"channelId,omitempty"`
2391
2392 ChannelUri string `json:"channelUri,omitempty"`
2393
2394 CreatedAt int64 `json:"createdAt,omitempty,string"`
2395
2396 DisplayName string `json:"displayName,omitempty"`
2397
2398 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2399
2400
2401 Name string `json:"name,omitempty"`
2402
2403 Organization string `json:"organization,omitempty"`
2404
2405
2406
2407 Status string `json:"status,omitempty"`
2408
2409
2410 googleapi.ServerResponse `json:"-"`
2411
2412
2413
2414
2415
2416 ForceSendFields []string `json:"-"`
2417
2418
2419
2420
2421 NullFields []string `json:"-"`
2422 }
2423
2424 func (s *GoogleCloudApigeeV1AppGroup) MarshalJSON() ([]byte, error) {
2425 type NoMethod GoogleCloudApigeeV1AppGroup
2426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2427 }
2428
2429
2430
2431
2432
2433 type GoogleCloudApigeeV1AppGroupApp struct {
2434
2435 ApiProducts []string `json:"apiProducts,omitempty"`
2436
2437
2438 AppGroup string `json:"appGroup,omitempty"`
2439
2440 AppId string `json:"appId,omitempty"`
2441
2442 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2443
2444
2445 CallbackUrl string `json:"callbackUrl,omitempty"`
2446
2447
2448 CreatedAt int64 `json:"createdAt,omitempty,string"`
2449
2450
2451 Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
2452
2453
2454
2455
2456 KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
2457
2458
2459 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2460
2461
2462 Name string `json:"name,omitempty"`
2463
2464
2465 Scopes []string `json:"scopes,omitempty"`
2466
2467 Status string `json:"status,omitempty"`
2468
2469
2470 googleapi.ServerResponse `json:"-"`
2471
2472
2473
2474
2475
2476 ForceSendFields []string `json:"-"`
2477
2478
2479
2480
2481 NullFields []string `json:"-"`
2482 }
2483
2484 func (s *GoogleCloudApigeeV1AppGroupApp) MarshalJSON() ([]byte, error) {
2485 type NoMethod GoogleCloudApigeeV1AppGroupApp
2486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2487 }
2488
2489
2490
2491 type GoogleCloudApigeeV1AppGroupAppKey struct {
2492
2493
2494
2495 ApiProducts []*GoogleCloudApigeeV1APIProductAssociation `json:"apiProducts,omitempty"`
2496
2497 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2498
2499 ConsumerKey string `json:"consumerKey,omitempty"`
2500
2501 ConsumerSecret string `json:"consumerSecret,omitempty"`
2502
2503
2504 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2505
2506
2507
2508 ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
2509
2510
2511 IssuedAt int64 `json:"issuedAt,omitempty,string"`
2512
2513
2514 Scopes []string `json:"scopes,omitempty"`
2515
2516
2517 Status string `json:"status,omitempty"`
2518
2519
2520 googleapi.ServerResponse `json:"-"`
2521
2522
2523
2524
2525
2526 ForceSendFields []string `json:"-"`
2527
2528
2529
2530
2531 NullFields []string `json:"-"`
2532 }
2533
2534 func (s *GoogleCloudApigeeV1AppGroupAppKey) MarshalJSON() ([]byte, error) {
2535 type NoMethod GoogleCloudApigeeV1AppGroupAppKey
2536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2537 }
2538
2539
2540 type GoogleCloudApigeeV1ArchiveDeployment struct {
2541
2542
2543 CreatedAt int64 `json:"createdAt,omitempty,string"`
2544
2545
2546 GcsUri string `json:"gcsUri,omitempty"`
2547
2548
2549
2550
2551
2552
2553
2554
2555 Labels map[string]string `json:"labels,omitempty"`
2556
2557
2558 Name string `json:"name,omitempty"`
2559
2560
2561 Operation string `json:"operation,omitempty"`
2562
2563
2564 UpdatedAt int64 `json:"updatedAt,omitempty,string"`
2565
2566
2567 googleapi.ServerResponse `json:"-"`
2568
2569
2570
2571
2572
2573 ForceSendFields []string `json:"-"`
2574
2575
2576
2577
2578 NullFields []string `json:"-"`
2579 }
2580
2581 func (s *GoogleCloudApigeeV1ArchiveDeployment) MarshalJSON() ([]byte, error) {
2582 type NoMethod GoogleCloudApigeeV1ArchiveDeployment
2583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2584 }
2585
2586 type GoogleCloudApigeeV1AsyncQuery struct {
2587
2588 Created string `json:"created,omitempty"`
2589
2590
2591 EnvgroupHostname string `json:"envgroupHostname,omitempty"`
2592
2593 Error string `json:"error,omitempty"`
2594
2595 ExecutionTime string `json:"executionTime,omitempty"`
2596
2597 Name string `json:"name,omitempty"`
2598
2599
2600 QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
2601
2602 ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
2603
2604 Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
2605
2606
2607 ResultFileSize string `json:"resultFileSize,omitempty"`
2608
2609 ResultRows int64 `json:"resultRows,omitempty,string"`
2610
2611
2612
2613
2614 Self string `json:"self,omitempty"`
2615
2616 State string `json:"state,omitempty"`
2617
2618 Updated string `json:"updated,omitempty"`
2619
2620
2621 googleapi.ServerResponse `json:"-"`
2622
2623
2624
2625
2626
2627 ForceSendFields []string `json:"-"`
2628
2629
2630
2631
2632 NullFields []string `json:"-"`
2633 }
2634
2635 func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
2636 type NoMethod GoogleCloudApigeeV1AsyncQuery
2637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2638 }
2639
2640 type GoogleCloudApigeeV1AsyncQueryResult struct {
2641
2642 Expires string `json:"expires,omitempty"`
2643
2644
2645
2646
2647
2648 Self string `json:"self,omitempty"`
2649
2650
2651
2652
2653
2654 ForceSendFields []string `json:"-"`
2655
2656
2657
2658
2659 NullFields []string `json:"-"`
2660 }
2661
2662 func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
2663 type NoMethod GoogleCloudApigeeV1AsyncQueryResult
2664 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2665 }
2666
2667 type GoogleCloudApigeeV1AsyncQueryResultView struct {
2668
2669 Code int64 `json:"code,omitempty"`
2670
2671 Error string `json:"error,omitempty"`
2672
2673
2674 Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
2675
2676
2677 Rows []interface{} `json:"rows,omitempty"`
2678
2679 State string `json:"state,omitempty"`
2680
2681
2682 googleapi.ServerResponse `json:"-"`
2683
2684
2685
2686
2687
2688 ForceSendFields []string `json:"-"`
2689
2690
2691
2692
2693 NullFields []string `json:"-"`
2694 }
2695
2696 func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
2697 type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
2698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2699 }
2700
2701
2702 type GoogleCloudApigeeV1Attribute struct {
2703
2704 Name string `json:"name,omitempty"`
2705
2706 Value string `json:"value,omitempty"`
2707
2708
2709 googleapi.ServerResponse `json:"-"`
2710
2711
2712
2713
2714
2715 ForceSendFields []string `json:"-"`
2716
2717
2718
2719
2720 NullFields []string `json:"-"`
2721 }
2722
2723 func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
2724 type NoMethod GoogleCloudApigeeV1Attribute
2725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2726 }
2727
2728 type GoogleCloudApigeeV1Attributes struct {
2729
2730 Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
2731
2732
2733 googleapi.ServerResponse `json:"-"`
2734
2735
2736
2737
2738
2739 ForceSendFields []string `json:"-"`
2740
2741
2742
2743
2744 NullFields []string `json:"-"`
2745 }
2746
2747 func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
2748 type NoMethod GoogleCloudApigeeV1Attributes
2749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2750 }
2751
2752
2753
2754 type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest struct {
2755
2756 Include *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray `json:"include,omitempty"`
2757
2758 IncludeAllResources *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll `json:"includeAllResources,omitempty"`
2759
2760
2761
2762 PageSize int64 `json:"pageSize,omitempty"`
2763
2764
2765
2766 PageToken string `json:"pageToken,omitempty"`
2767
2768 Profile string `json:"profile,omitempty"`
2769
2770
2771 Scope string `json:"scope,omitempty"`
2772
2773
2774
2775
2776
2777 ForceSendFields []string `json:"-"`
2778
2779
2780
2781
2782 NullFields []string `json:"-"`
2783 }
2784
2785 func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest) MarshalJSON() ([]byte, error) {
2786 type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
2787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2788 }
2789
2790
2791
2792 type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll struct {
2793 }
2794
2795
2796
2797
2798 type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray struct {
2799
2800
2801 Resources []*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource `json:"resources,omitempty"`
2802
2803
2804
2805
2806
2807 ForceSendFields []string `json:"-"`
2808
2809
2810
2811
2812 NullFields []string `json:"-"`
2813 }
2814
2815 func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray) MarshalJSON() ([]byte, error) {
2816 type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray
2817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2818 }
2819
2820
2821
2822 type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource struct {
2823
2824 Name string `json:"name,omitempty"`
2825
2826
2827
2828
2829
2830 Type string `json:"type,omitempty"`
2831
2832
2833
2834
2835
2836 ForceSendFields []string `json:"-"`
2837
2838
2839
2840
2841 NullFields []string `json:"-"`
2842 }
2843
2844 func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource) MarshalJSON() ([]byte, error) {
2845 type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource
2846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2847 }
2848
2849
2850
2851 type GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse struct {
2852
2853 AssessmentTime string `json:"assessmentTime,omitempty"`
2854
2855
2856 NextPageToken string `json:"nextPageToken,omitempty"`
2857
2858
2859 SecurityAssessmentResults []*GoogleCloudApigeeV1SecurityAssessmentResult `json:"securityAssessmentResults,omitempty"`
2860
2861
2862 googleapi.ServerResponse `json:"-"`
2863
2864
2865
2866
2867
2868 ForceSendFields []string `json:"-"`
2869
2870
2871
2872
2873 NullFields []string `json:"-"`
2874 }
2875
2876 func (s *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse) MarshalJSON() ([]byte, error) {
2877 type NoMethod GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse
2878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2879 }
2880
2881
2882
2883 type GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest struct {
2884
2885
2886 Requests []*GoogleCloudApigeeV1UpdateSecurityIncidentRequest `json:"requests,omitempty"`
2887
2888
2889
2890
2891
2892 ForceSendFields []string `json:"-"`
2893
2894
2895
2896
2897 NullFields []string `json:"-"`
2898 }
2899
2900 func (s *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest) MarshalJSON() ([]byte, error) {
2901 type NoMethod GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest
2902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2903 }
2904
2905
2906
2907 type GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse struct {
2908
2909 SecurityIncidents []*GoogleCloudApigeeV1SecurityIncident `json:"securityIncidents,omitempty"`
2910
2911
2912 googleapi.ServerResponse `json:"-"`
2913
2914
2915
2916
2917
2918 ForceSendFields []string `json:"-"`
2919
2920
2921
2922
2923 NullFields []string `json:"-"`
2924 }
2925
2926 func (s *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse) MarshalJSON() ([]byte, error) {
2927 type NoMethod GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse
2928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2929 }
2930
2931
2932
2933 type GoogleCloudApigeeV1CanaryEvaluation struct {
2934
2935 Control string `json:"control,omitempty"`
2936
2937 CreateTime string `json:"createTime,omitempty"`
2938
2939 EndTime string `json:"endTime,omitempty"`
2940
2941
2942 MetricLabels *GoogleCloudApigeeV1CanaryEvaluationMetricLabels `json:"metricLabels,omitempty"`
2943
2944 Name string `json:"name,omitempty"`
2945
2946 StartTime string `json:"startTime,omitempty"`
2947
2948
2949
2950
2951
2952
2953 State string `json:"state,omitempty"`
2954
2955 Treatment string `json:"treatment,omitempty"`
2956
2957
2958
2959
2960
2961
2962
2963
2964 Verdict string `json:"verdict,omitempty"`
2965
2966
2967 googleapi.ServerResponse `json:"-"`
2968
2969
2970
2971
2972
2973 ForceSendFields []string `json:"-"`
2974
2975
2976
2977
2978 NullFields []string `json:"-"`
2979 }
2980
2981 func (s *GoogleCloudApigeeV1CanaryEvaluation) MarshalJSON() ([]byte, error) {
2982 type NoMethod GoogleCloudApigeeV1CanaryEvaluation
2983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2984 }
2985
2986
2987
2988 type GoogleCloudApigeeV1CanaryEvaluationMetricLabels struct {
2989
2990 Env string `json:"env,omitempty"`
2991
2992
2993 InstanceId string `json:"instance_id,omitempty"`
2994
2995 Location string `json:"location,omitempty"`
2996
2997
2998
2999
3000
3001 ForceSendFields []string `json:"-"`
3002
3003
3004
3005
3006 NullFields []string `json:"-"`
3007 }
3008
3009 func (s *GoogleCloudApigeeV1CanaryEvaluationMetricLabels) MarshalJSON() ([]byte, error) {
3010 type NoMethod GoogleCloudApigeeV1CanaryEvaluationMetricLabels
3011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3012 }
3013
3014
3015 type GoogleCloudApigeeV1CertInfo struct {
3016
3017 BasicConstraints string `json:"basicConstraints,omitempty"`
3018
3019 ExpiryDate int64 `json:"expiryDate,omitempty,string"`
3020
3021
3022
3023 IsValid string `json:"isValid,omitempty"`
3024
3025 Issuer string `json:"issuer,omitempty"`
3026
3027 PublicKey string `json:"publicKey,omitempty"`
3028
3029 SerialNumber string `json:"serialNumber,omitempty"`
3030
3031 SigAlgName string `json:"sigAlgName,omitempty"`
3032
3033 Subject string `json:"subject,omitempty"`
3034
3035 SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
3036
3037 ValidFrom int64 `json:"validFrom,omitempty,string"`
3038
3039 Version int64 `json:"version,omitempty"`
3040
3041
3042
3043
3044
3045 ForceSendFields []string `json:"-"`
3046
3047
3048
3049
3050 NullFields []string `json:"-"`
3051 }
3052
3053 func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
3054 type NoMethod GoogleCloudApigeeV1CertInfo
3055 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3056 }
3057
3058 type GoogleCloudApigeeV1Certificate struct {
3059
3060 CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
3061
3062
3063
3064
3065
3066 ForceSendFields []string `json:"-"`
3067
3068
3069
3070
3071 NullFields []string `json:"-"`
3072 }
3073
3074 func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
3075 type NoMethod GoogleCloudApigeeV1Certificate
3076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3077 }
3078
3079 type GoogleCloudApigeeV1CommonNameConfig struct {
3080 MatchWildCards bool `json:"matchWildCards,omitempty"`
3081 Name string `json:"name,omitempty"`
3082
3083
3084
3085
3086
3087 ForceSendFields []string `json:"-"`
3088
3089
3090
3091
3092 NullFields []string `json:"-"`
3093 }
3094
3095 func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
3096 type NoMethod GoogleCloudApigeeV1CommonNameConfig
3097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3098 }
3099
3100
3101
3102 type GoogleCloudApigeeV1ComputeEnvironmentScoresRequest struct {
3103
3104
3105
3106
3107
3108
3109
3110
3111 Filters []*GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter `json:"filters,omitempty"`
3112
3113
3114
3115 PageSize int64 `json:"pageSize,omitempty"`
3116
3117
3118 PageToken string `json:"pageToken,omitempty"`
3119
3120
3121
3122 TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
3123
3124
3125
3126
3127
3128 ForceSendFields []string `json:"-"`
3129
3130
3131
3132
3133 NullFields []string `json:"-"`
3134 }
3135
3136 func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest) MarshalJSON() ([]byte, error) {
3137 type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresRequest
3138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3139 }
3140
3141
3142
3143
3144 type GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter struct {
3145
3146
3147 ScorePath string `json:"scorePath,omitempty"`
3148
3149
3150
3151
3152
3153 ForceSendFields []string `json:"-"`
3154
3155
3156
3157
3158 NullFields []string `json:"-"`
3159 }
3160
3161 func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter) MarshalJSON() ([]byte, error) {
3162 type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresRequestFilter
3163 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3164 }
3165
3166
3167
3168 type GoogleCloudApigeeV1ComputeEnvironmentScoresResponse struct {
3169
3170
3171 NextPageToken string `json:"nextPageToken,omitempty"`
3172
3173 Scores []*GoogleCloudApigeeV1Score `json:"scores,omitempty"`
3174
3175
3176 googleapi.ServerResponse `json:"-"`
3177
3178
3179
3180
3181
3182 ForceSendFields []string `json:"-"`
3183
3184
3185
3186
3187 NullFields []string `json:"-"`
3188 }
3189
3190 func (s *GoogleCloudApigeeV1ComputeEnvironmentScoresResponse) MarshalJSON() ([]byte, error) {
3191 type NoMethod GoogleCloudApigeeV1ComputeEnvironmentScoresResponse
3192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3193 }
3194
3195
3196
3197 type GoogleCloudApigeeV1ConfigVersion struct {
3198
3199 MajorVersion int64 `json:"majorVersion,omitempty"`
3200
3201 MinorVersion int64 `json:"minorVersion,omitempty"`
3202
3203
3204
3205
3206
3207 ForceSendFields []string `json:"-"`
3208
3209
3210
3211
3212 NullFields []string `json:"-"`
3213 }
3214
3215 func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
3216 type NoMethod GoogleCloudApigeeV1ConfigVersion
3217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3218 }
3219
3220
3221
3222 type GoogleCloudApigeeV1ConnectorsPlatformConfig struct {
3223
3224
3225 Enabled bool `json:"enabled,omitempty"`
3226
3227
3228 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3229
3230
3231
3232
3233
3234 ForceSendFields []string `json:"-"`
3235
3236
3237
3238
3239 NullFields []string `json:"-"`
3240 }
3241
3242 func (s *GoogleCloudApigeeV1ConnectorsPlatformConfig) MarshalJSON() ([]byte, error) {
3243 type NoMethod GoogleCloudApigeeV1ConnectorsPlatformConfig
3244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3245 }
3246
3247 type GoogleCloudApigeeV1Credential struct {
3248
3249 ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
3250
3251 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
3252
3253 ConsumerKey string `json:"consumerKey,omitempty"`
3254
3255 ConsumerSecret string `json:"consumerSecret,omitempty"`
3256
3257 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
3258
3259 IssuedAt int64 `json:"issuedAt,omitempty,string"`
3260
3261
3262 Scopes []string `json:"scopes,omitempty"`
3263
3264
3265 Status string `json:"status,omitempty"`
3266
3267
3268
3269
3270
3271 ForceSendFields []string `json:"-"`
3272
3273
3274
3275
3276 NullFields []string `json:"-"`
3277 }
3278
3279 func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
3280 type NoMethod GoogleCloudApigeeV1Credential
3281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3282 }
3283
3284
3285
3286 type GoogleCloudApigeeV1CreditDeveloperBalanceRequest struct {
3287
3288
3289
3290
3291
3292
3293 TransactionAmount *GoogleTypeMoney `json:"transactionAmount,omitempty"`
3294
3295
3296
3297 TransactionId string `json:"transactionId,omitempty"`
3298
3299
3300
3301
3302
3303 ForceSendFields []string `json:"-"`
3304
3305
3306
3307
3308 NullFields []string `json:"-"`
3309 }
3310
3311 func (s *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) MarshalJSON() ([]byte, error) {
3312 type NoMethod GoogleCloudApigeeV1CreditDeveloperBalanceRequest
3313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3314 }
3315
3316 type GoogleCloudApigeeV1CustomReport struct {
3317
3318 ChartType string `json:"chartType,omitempty"`
3319
3320
3321 Comments []string `json:"comments,omitempty"`
3322
3323
3324 CreatedAt int64 `json:"createdAt,omitempty,string"`
3325
3326 Dimensions []string `json:"dimensions,omitempty"`
3327
3328 DisplayName string `json:"displayName,omitempty"`
3329
3330 Environment string `json:"environment,omitempty"`
3331
3332 Filter string `json:"filter,omitempty"`
3333
3334 FromTime string `json:"fromTime,omitempty"`
3335
3336
3337 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3338
3339
3340 LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
3341
3342
3343 Limit string `json:"limit,omitempty"`
3344
3345 Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
3346
3347
3348 Name string `json:"name,omitempty"`
3349
3350 Offset string `json:"offset,omitempty"`
3351
3352 Organization string `json:"organization,omitempty"`
3353
3354 Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
3355
3356
3357 SortByCols []string `json:"sortByCols,omitempty"`
3358
3359
3360 SortOrder string `json:"sortOrder,omitempty"`
3361
3362
3363 Tags []string `json:"tags,omitempty"`
3364
3365 TimeUnit string `json:"timeUnit,omitempty"`
3366
3367 ToTime string `json:"toTime,omitempty"`
3368
3369
3370 Topk string `json:"topk,omitempty"`
3371
3372
3373 googleapi.ServerResponse `json:"-"`
3374
3375
3376
3377
3378
3379 ForceSendFields []string `json:"-"`
3380
3381
3382
3383
3384 NullFields []string `json:"-"`
3385 }
3386
3387 func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
3388 type NoMethod GoogleCloudApigeeV1CustomReport
3389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3390 }
3391
3392
3393
3394
3395 type GoogleCloudApigeeV1CustomReportMetric struct {
3396
3397 Function string `json:"function,omitempty"`
3398
3399 Name string `json:"name,omitempty"`
3400
3401
3402
3403
3404
3405 ForceSendFields []string `json:"-"`
3406
3407
3408
3409
3410 NullFields []string `json:"-"`
3411 }
3412
3413 func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
3414 type NoMethod GoogleCloudApigeeV1CustomReportMetric
3415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3416 }
3417
3418
3419 type GoogleCloudApigeeV1DataCollector struct {
3420
3421
3422 CreatedAt int64 `json:"createdAt,omitempty,string"`
3423
3424 Description string `json:"description,omitempty"`
3425
3426
3427 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
3428
3429 Name string `json:"name,omitempty"`
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439 Type string `json:"type,omitempty"`
3440
3441
3442 googleapi.ServerResponse `json:"-"`
3443
3444
3445
3446
3447
3448 ForceSendFields []string `json:"-"`
3449
3450
3451
3452
3453 NullFields []string `json:"-"`
3454 }
3455
3456 func (s *GoogleCloudApigeeV1DataCollector) MarshalJSON() ([]byte, error) {
3457 type NoMethod GoogleCloudApigeeV1DataCollector
3458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3459 }
3460
3461
3462
3463 type GoogleCloudApigeeV1DataCollectorConfig struct {
3464
3465
3466 Name string `json:"name,omitempty"`
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476 Type string `json:"type,omitempty"`
3477
3478
3479
3480
3481
3482 ForceSendFields []string `json:"-"`
3483
3484
3485
3486
3487 NullFields []string `json:"-"`
3488 }
3489
3490 func (s *GoogleCloudApigeeV1DataCollectorConfig) MarshalJSON() ([]byte, error) {
3491 type NoMethod GoogleCloudApigeeV1DataCollectorConfig
3492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3493 }
3494
3495
3496
3497
3498 type GoogleCloudApigeeV1Datastore struct {
3499
3500
3501 CreateTime int64 `json:"createTime,omitempty,string"`
3502
3503 DatastoreConfig *GoogleCloudApigeeV1DatastoreConfig `json:"datastoreConfig,omitempty"`
3504
3505 DisplayName string `json:"displayName,omitempty"`
3506
3507
3508 LastUpdateTime int64 `json:"lastUpdateTime,omitempty,string"`
3509
3510 Org string `json:"org,omitempty"`
3511
3512
3513 Self string `json:"self,omitempty"`
3514
3515 TargetType string `json:"targetType,omitempty"`
3516
3517
3518 googleapi.ServerResponse `json:"-"`
3519
3520
3521
3522
3523
3524 ForceSendFields []string `json:"-"`
3525
3526
3527
3528
3529 NullFields []string `json:"-"`
3530 }
3531
3532 func (s *GoogleCloudApigeeV1Datastore) MarshalJSON() ([]byte, error) {
3533 type NoMethod GoogleCloudApigeeV1Datastore
3534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3535 }
3536
3537
3538 type GoogleCloudApigeeV1DatastoreConfig struct {
3539
3540
3541 BucketName string `json:"bucketName,omitempty"`
3542
3543 DatasetName string `json:"datasetName,omitempty"`
3544
3545 Path string `json:"path,omitempty"`
3546
3547 ProjectId string `json:"projectId,omitempty"`
3548
3549 TablePrefix string `json:"tablePrefix,omitempty"`
3550
3551
3552
3553
3554
3555 ForceSendFields []string `json:"-"`
3556
3557
3558
3559
3560 NullFields []string `json:"-"`
3561 }
3562
3563 func (s *GoogleCloudApigeeV1DatastoreConfig) MarshalJSON() ([]byte, error) {
3564 type NoMethod GoogleCloudApigeeV1DatastoreConfig
3565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3566 }
3567
3568
3569 type GoogleCloudApigeeV1DateRange struct {
3570
3571
3572
3573 End string `json:"end,omitempty"`
3574
3575
3576 Start string `json:"start,omitempty"`
3577
3578
3579
3580
3581
3582 ForceSendFields []string `json:"-"`
3583
3584
3585
3586
3587 NullFields []string `json:"-"`
3588 }
3589
3590 func (s *GoogleCloudApigeeV1DateRange) MarshalJSON() ([]byte, error) {
3591 type NoMethod GoogleCloudApigeeV1DateRange
3592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3593 }
3594
3595 type GoogleCloudApigeeV1DebugMask struct {
3596
3597
3598 FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
3599
3600
3601 FaultXPaths []string `json:"faultXPaths,omitempty"`
3602
3603 Name string `json:"name,omitempty"`
3604
3605 Namespaces map[string]string `json:"namespaces,omitempty"`
3606
3607
3608 RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
3609
3610
3611 RequestXPaths []string `json:"requestXPaths,omitempty"`
3612
3613
3614 ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
3615
3616
3617 ResponseXPaths []string `json:"responseXPaths,omitempty"`
3618
3619 Variables []string `json:"variables,omitempty"`
3620
3621
3622 googleapi.ServerResponse `json:"-"`
3623
3624
3625
3626
3627
3628 ForceSendFields []string `json:"-"`
3629
3630
3631
3632
3633 NullFields []string `json:"-"`
3634 }
3635
3636 func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
3637 type NoMethod GoogleCloudApigeeV1DebugMask
3638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3639 }
3640
3641 type GoogleCloudApigeeV1DebugSession struct {
3642
3643
3644 Count int64 `json:"count,omitempty"`
3645
3646
3647 CreateTime string `json:"createTime,omitempty"`
3648
3649
3650
3651 Filter string `json:"filter,omitempty"`
3652
3653 Name string `json:"name,omitempty"`
3654
3655
3656
3657 Timeout int64 `json:"timeout,omitempty,string"`
3658
3659
3660 Tracesize int64 `json:"tracesize,omitempty"`
3661
3662
3663
3664 Validity int64 `json:"validity,omitempty"`
3665
3666
3667 googleapi.ServerResponse `json:"-"`
3668
3669
3670
3671
3672
3673 ForceSendFields []string `json:"-"`
3674
3675
3676
3677
3678 NullFields []string `json:"-"`
3679 }
3680
3681 func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
3682 type NoMethod GoogleCloudApigeeV1DebugSession
3683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3684 }
3685
3686
3687
3688
3689
3690 type GoogleCloudApigeeV1DebugSessionTransaction struct {
3691
3692 Completed bool `json:"completed,omitempty"`
3693
3694
3695 Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
3696
3697
3698 googleapi.ServerResponse `json:"-"`
3699
3700
3701
3702
3703
3704 ForceSendFields []string `json:"-"`
3705
3706
3707
3708
3709 NullFields []string `json:"-"`
3710 }
3711
3712 func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
3713 type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
3714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3715 }
3716
3717 type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
3718
3719 Message string `json:"message,omitempty"`
3720
3721
3722 googleapi.ServerResponse `json:"-"`
3723
3724
3725
3726
3727
3728 ForceSendFields []string `json:"-"`
3729
3730
3731
3732
3733 NullFields []string `json:"-"`
3734 }
3735
3736 func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
3737 type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
3738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3739 }
3740
3741
3742 type GoogleCloudApigeeV1DeleteResponse struct {
3743
3744 ErrorCode string `json:"errorCode,omitempty"`
3745
3746 GcpResource string `json:"gcpResource,omitempty"`
3747
3748 Message string `json:"message,omitempty"`
3749
3750 RequestId string `json:"requestId,omitempty"`
3751
3752 Status string `json:"status,omitempty"`
3753
3754
3755 googleapi.ServerResponse `json:"-"`
3756
3757
3758
3759
3760
3761 ForceSendFields []string `json:"-"`
3762
3763
3764
3765
3766 NullFields []string `json:"-"`
3767 }
3768
3769 func (s *GoogleCloudApigeeV1DeleteResponse) MarshalJSON() ([]byte, error) {
3770 type NoMethod GoogleCloudApigeeV1DeleteResponse
3771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3772 }
3773
3774 type GoogleCloudApigeeV1Deployment struct {
3775
3776 ApiProxy string `json:"apiProxy,omitempty"`
3777
3778
3779 DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
3780
3781 Environment string `json:"environment,omitempty"`
3782
3783
3784
3785 Errors []*GoogleRpcStatus `json:"errors,omitempty"`
3786
3787
3788 Instances []*GoogleCloudApigeeV1InstanceDeploymentStatus `json:"instances,omitempty"`
3789
3790
3791
3792 Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805 ProxyDeploymentType string `json:"proxyDeploymentType,omitempty"`
3806
3807 Revision string `json:"revision,omitempty"`
3808
3809
3810
3811
3812
3813
3814 RouteConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routeConflicts,omitempty"`
3815
3816
3817 ServiceAccount string `json:"serviceAccount,omitempty"`
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827 State string `json:"state,omitempty"`
3828
3829
3830 googleapi.ServerResponse `json:"-"`
3831
3832
3833
3834
3835
3836 ForceSendFields []string `json:"-"`
3837
3838
3839
3840
3841 NullFields []string `json:"-"`
3842 }
3843
3844 func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
3845 type NoMethod GoogleCloudApigeeV1Deployment
3846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3847 }
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862 type GoogleCloudApigeeV1DeploymentChangeReport struct {
3863
3864
3865 RoutingChanges []*GoogleCloudApigeeV1DeploymentChangeReportRoutingChange `json:"routingChanges,omitempty"`
3866
3867 RoutingConflicts []*GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict `json:"routingConflicts,omitempty"`
3868
3869
3870 ValidationErrors *GoogleRpcPreconditionFailure `json:"validationErrors,omitempty"`
3871
3872
3873 googleapi.ServerResponse `json:"-"`
3874
3875
3876
3877
3878
3879 ForceSendFields []string `json:"-"`
3880
3881
3882
3883
3884 NullFields []string `json:"-"`
3885 }
3886
3887 func (s *GoogleCloudApigeeV1DeploymentChangeReport) MarshalJSON() ([]byte, error) {
3888 type NoMethod GoogleCloudApigeeV1DeploymentChangeReport
3889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3890 }
3891
3892
3893
3894
3895 type GoogleCloudApigeeV1DeploymentChangeReportRoutingChange struct {
3896
3897 Description string `json:"description,omitempty"`
3898
3899
3900 EnvironmentGroup string `json:"environmentGroup,omitempty"`
3901
3902 FromDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"fromDeployment,omitempty"`
3903
3904
3905
3906 ShouldSequenceRollout bool `json:"shouldSequenceRollout,omitempty"`
3907
3908
3909 ToDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"toDeployment,omitempty"`
3910
3911
3912
3913
3914
3915 ForceSendFields []string `json:"-"`
3916
3917
3918
3919
3920 NullFields []string `json:"-"`
3921 }
3922
3923 func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingChange) MarshalJSON() ([]byte, error) {
3924 type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingChange
3925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3926 }
3927
3928
3929
3930
3931 type GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict struct {
3932
3933 ConflictingDeployment *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment `json:"conflictingDeployment,omitempty"`
3934
3935 Description string `json:"description,omitempty"`
3936
3937
3938 EnvironmentGroup string `json:"environmentGroup,omitempty"`
3939
3940
3941
3942
3943
3944 ForceSendFields []string `json:"-"`
3945
3946
3947
3948
3949 NullFields []string `json:"-"`
3950 }
3951
3952 func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict) MarshalJSON() ([]byte, error) {
3953 type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
3954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3955 }
3956
3957
3958
3959 type GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment struct {
3960
3961 ApiProxy string `json:"apiProxy,omitempty"`
3962
3963 Basepath string `json:"basepath,omitempty"`
3964
3965 Environment string `json:"environment,omitempty"`
3966
3967 Revision string `json:"revision,omitempty"`
3968
3969
3970
3971
3972
3973 ForceSendFields []string `json:"-"`
3974
3975
3976
3977
3978 NullFields []string `json:"-"`
3979 }
3980
3981 func (s *GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment) MarshalJSON() ([]byte, error) {
3982 type NoMethod GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment
3983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3984 }
3985
3986
3987 type GoogleCloudApigeeV1DeploymentConfig struct {
3988
3989 Attributes map[string]string `json:"attributes,omitempty"`
3990
3991 BasePath string `json:"basePath,omitempty"`
3992
3993
3994 DeploymentGroups []string `json:"deploymentGroups,omitempty"`
3995
3996
3997 Endpoints map[string]string `json:"endpoints,omitempty"`
3998
3999 Location string `json:"location,omitempty"`
4000
4001
4002
4003 Name string `json:"name,omitempty"`
4004
4005 ProxyUid string `json:"proxyUid,omitempty"`
4006
4007
4008
4009 ServiceAccount string `json:"serviceAccount,omitempty"`
4010
4011
4012 Uid string `json:"uid,omitempty"`
4013
4014
4015
4016
4017
4018 ForceSendFields []string `json:"-"`
4019
4020
4021
4022
4023 NullFields []string `json:"-"`
4024 }
4025
4026 func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
4027 type NoMethod GoogleCloudApigeeV1DeploymentConfig
4028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4029 }
4030
4031
4032
4033 type GoogleCloudApigeeV1DeploymentGroupConfig struct {
4034
4035
4036
4037
4038
4039
4040
4041 DeploymentGroupType string `json:"deploymentGroupType,omitempty"`
4042
4043
4044 Name string `json:"name,omitempty"`
4045
4046
4047 RevisionId int64 `json:"revisionId,omitempty,string"`
4048
4049
4050 Uid string `json:"uid,omitempty"`
4051
4052
4053
4054
4055
4056 ForceSendFields []string `json:"-"`
4057
4058
4059
4060
4061 NullFields []string `json:"-"`
4062 }
4063
4064 func (s *GoogleCloudApigeeV1DeploymentGroupConfig) MarshalJSON() ([]byte, error) {
4065 type NoMethod GoogleCloudApigeeV1DeploymentGroupConfig
4066 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4067 }
4068
4069 type GoogleCloudApigeeV1Developer struct {
4070
4071 AccessType string `json:"accessType,omitempty"`
4072
4073 AppFamily string `json:"appFamily,omitempty"`
4074
4075 Apps []string `json:"apps,omitempty"`
4076
4077
4078 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4079
4080 Companies []string `json:"companies,omitempty"`
4081
4082
4083 CreatedAt int64 `json:"createdAt,omitempty,string"`
4084
4085
4086 DeveloperId string `json:"developerId,omitempty"`
4087
4088
4089
4090 Email string `json:"email,omitempty"`
4091
4092 FirstName string `json:"firstName,omitempty"`
4093
4094
4095 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4096
4097 LastName string `json:"lastName,omitempty"`
4098
4099
4100 OrganizationName string `json:"organizationName,omitempty"`
4101
4102
4103 Status string `json:"status,omitempty"`
4104
4105 UserName string `json:"userName,omitempty"`
4106
4107
4108 googleapi.ServerResponse `json:"-"`
4109
4110
4111
4112
4113
4114 ForceSendFields []string `json:"-"`
4115
4116
4117
4118
4119 NullFields []string `json:"-"`
4120 }
4121
4122 func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
4123 type NoMethod GoogleCloudApigeeV1Developer
4124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4125 }
4126
4127 type GoogleCloudApigeeV1DeveloperApp struct {
4128
4129 ApiProducts []string `json:"apiProducts,omitempty"`
4130
4131 AppFamily string `json:"appFamily,omitempty"`
4132
4133 AppId string `json:"appId,omitempty"`
4134
4135 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4136
4137
4138 CallbackUrl string `json:"callbackUrl,omitempty"`
4139
4140
4141 CreatedAt int64 `json:"createdAt,omitempty,string"`
4142
4143
4144
4145 Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
4146
4147 DeveloperId string `json:"developerId,omitempty"`
4148
4149
4150
4151
4152 KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
4153
4154
4155 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4156
4157 Name string `json:"name,omitempty"`
4158
4159
4160 Scopes []string `json:"scopes,omitempty"`
4161
4162
4163 Status string `json:"status,omitempty"`
4164
4165
4166 googleapi.ServerResponse `json:"-"`
4167
4168
4169
4170
4171
4172 ForceSendFields []string `json:"-"`
4173
4174
4175
4176
4177 NullFields []string `json:"-"`
4178 }
4179
4180 func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
4181 type NoMethod GoogleCloudApigeeV1DeveloperApp
4182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4183 }
4184
4185 type GoogleCloudApigeeV1DeveloperAppKey struct {
4186
4187
4188
4189
4190 ApiProducts []interface{} `json:"apiProducts,omitempty"`
4191
4192 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
4193
4194 ConsumerKey string `json:"consumerKey,omitempty"`
4195
4196 ConsumerSecret string `json:"consumerSecret,omitempty"`
4197
4198 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
4199
4200
4201
4202 ExpiresInSeconds int64 `json:"expiresInSeconds,omitempty,string"`
4203
4204 IssuedAt int64 `json:"issuedAt,omitempty,string"`
4205
4206
4207 Scopes []string `json:"scopes,omitempty"`
4208
4209
4210 Status string `json:"status,omitempty"`
4211
4212
4213 googleapi.ServerResponse `json:"-"`
4214
4215
4216
4217
4218
4219 ForceSendFields []string `json:"-"`
4220
4221
4222
4223
4224 NullFields []string `json:"-"`
4225 }
4226
4227 func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
4228 type NoMethod GoogleCloudApigeeV1DeveloperAppKey
4229 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4230 }
4231
4232
4233 type GoogleCloudApigeeV1DeveloperBalance struct {
4234
4235
4236 Wallets []*GoogleCloudApigeeV1DeveloperBalanceWallet `json:"wallets,omitempty"`
4237
4238
4239 googleapi.ServerResponse `json:"-"`
4240
4241
4242
4243
4244
4245 ForceSendFields []string `json:"-"`
4246
4247
4248
4249
4250 NullFields []string `json:"-"`
4251 }
4252
4253 func (s *GoogleCloudApigeeV1DeveloperBalance) MarshalJSON() ([]byte, error) {
4254 type NoMethod GoogleCloudApigeeV1DeveloperBalance
4255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4256 }
4257
4258
4259
4260 type GoogleCloudApigeeV1DeveloperBalanceWallet struct {
4261
4262
4263 Balance *GoogleTypeMoney `json:"balance,omitempty"`
4264
4265
4266 LastCreditTime int64 `json:"lastCreditTime,omitempty,string"`
4267
4268
4269
4270
4271
4272 ForceSendFields []string `json:"-"`
4273
4274
4275
4276
4277 NullFields []string `json:"-"`
4278 }
4279
4280 func (s *GoogleCloudApigeeV1DeveloperBalanceWallet) MarshalJSON() ([]byte, error) {
4281 type NoMethod GoogleCloudApigeeV1DeveloperBalanceWallet
4282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4283 }
4284
4285
4286
4287 type GoogleCloudApigeeV1DeveloperMonetizationConfig struct {
4288
4289
4290
4291
4292
4293
4294
4295
4296 BillingType string `json:"billingType,omitempty"`
4297
4298
4299 googleapi.ServerResponse `json:"-"`
4300
4301
4302
4303
4304
4305 ForceSendFields []string `json:"-"`
4306
4307
4308
4309
4310 NullFields []string `json:"-"`
4311 }
4312
4313 func (s *GoogleCloudApigeeV1DeveloperMonetizationConfig) MarshalJSON() ([]byte, error) {
4314 type NoMethod GoogleCloudApigeeV1DeveloperMonetizationConfig
4315 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4316 }
4317
4318
4319
4320 type GoogleCloudApigeeV1DeveloperSubscription struct {
4321
4322
4323 Apiproduct string `json:"apiproduct,omitempty"`
4324
4325
4326 CreatedAt int64 `json:"createdAt,omitempty,string"`
4327
4328
4329 EndTime int64 `json:"endTime,omitempty,string"`
4330
4331
4332 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4333
4334 Name string `json:"name,omitempty"`
4335
4336
4337 StartTime int64 `json:"startTime,omitempty,string"`
4338
4339
4340 googleapi.ServerResponse `json:"-"`
4341
4342
4343
4344
4345
4346 ForceSendFields []string `json:"-"`
4347
4348
4349
4350
4351 NullFields []string `json:"-"`
4352 }
4353
4354 func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) {
4355 type NoMethod GoogleCloudApigeeV1DeveloperSubscription
4356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4357 }
4358
4359
4360
4361 type GoogleCloudApigeeV1DimensionMetric struct {
4362
4363
4364 IndividualNames []string `json:"individualNames,omitempty"`
4365
4366 Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
4367
4368
4369
4370 Name string `json:"name,omitempty"`
4371
4372
4373
4374
4375
4376 ForceSendFields []string `json:"-"`
4377
4378
4379
4380
4381 NullFields []string `json:"-"`
4382 }
4383
4384 func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
4385 type NoMethod GoogleCloudApigeeV1DimensionMetric
4386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4387 }
4388
4389
4390
4391 type GoogleCloudApigeeV1DisableSecurityActionRequest struct {
4392 }
4393
4394
4395
4396 type GoogleCloudApigeeV1DocumentationFile struct {
4397
4398 Contents string `json:"contents,omitempty"`
4399
4400
4401 DisplayName string `json:"displayName,omitempty"`
4402
4403
4404
4405
4406
4407 ForceSendFields []string `json:"-"`
4408
4409
4410
4411
4412 NullFields []string `json:"-"`
4413 }
4414
4415 func (s *GoogleCloudApigeeV1DocumentationFile) MarshalJSON() ([]byte, error) {
4416 type NoMethod GoogleCloudApigeeV1DocumentationFile
4417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4418 }
4419
4420
4421
4422 type GoogleCloudApigeeV1EnableSecurityActionRequest struct {
4423 }
4424
4425
4426
4427
4428 type GoogleCloudApigeeV1EndpointAttachment struct {
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 ConnectionState string `json:"connectionState,omitempty"`
4446
4447
4448 Host string `json:"host,omitempty"`
4449
4450 Location string `json:"location,omitempty"`
4451
4452
4453 Name string `json:"name,omitempty"`
4454
4455 ServiceAttachment string `json:"serviceAttachment,omitempty"`
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465 State string `json:"state,omitempty"`
4466
4467
4468 googleapi.ServerResponse `json:"-"`
4469
4470
4471
4472
4473
4474 ForceSendFields []string `json:"-"`
4475
4476
4477
4478
4479 NullFields []string `json:"-"`
4480 }
4481
4482 func (s *GoogleCloudApigeeV1EndpointAttachment) MarshalJSON() ([]byte, error) {
4483 type NoMethod GoogleCloudApigeeV1EndpointAttachment
4484 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4485 }
4486
4487
4488
4489
4490 type GoogleCloudApigeeV1EndpointChainingRule struct {
4491
4492
4493 DeploymentGroup string `json:"deploymentGroup,omitempty"`
4494
4495
4496 ProxyIds []string `json:"proxyIds,omitempty"`
4497
4498
4499
4500
4501
4502 ForceSendFields []string `json:"-"`
4503
4504
4505
4506
4507 NullFields []string `json:"-"`
4508 }
4509
4510 func (s *GoogleCloudApigeeV1EndpointChainingRule) MarshalJSON() ([]byte, error) {
4511 type NoMethod GoogleCloudApigeeV1EndpointChainingRule
4512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4513 }
4514
4515
4516
4517 type GoogleCloudApigeeV1EntityMetadata struct {
4518
4519
4520 CreatedAt int64 `json:"createdAt,omitempty,string"`
4521
4522
4523 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4524
4525 SubType string `json:"subType,omitempty"`
4526
4527
4528
4529
4530
4531 ForceSendFields []string `json:"-"`
4532
4533
4534
4535
4536 NullFields []string `json:"-"`
4537 }
4538
4539 func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
4540 type NoMethod GoogleCloudApigeeV1EntityMetadata
4541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4542 }
4543
4544 type GoogleCloudApigeeV1Environment struct {
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558 ApiProxyType string `json:"apiProxyType,omitempty"`
4559
4560
4561 CreatedAt int64 `json:"createdAt,omitempty,string"`
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581 DeploymentType string `json:"deploymentType,omitempty"`
4582
4583 Description string `json:"description,omitempty"`
4584
4585 DisplayName string `json:"displayName,omitempty"`
4586
4587
4588
4589
4590
4591
4592
4593
4594 ForwardProxyUri string `json:"forwardProxyUri,omitempty"`
4595 HasAttachedFlowHooks bool `json:"hasAttachedFlowHooks,omitempty"`
4596
4597
4598 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4599
4600
4601 Name string `json:"name,omitempty"`
4602
4603 NodeConfig *GoogleCloudApigeeV1NodeConfig `json:"nodeConfig,omitempty"`
4604
4605
4606 Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616 State string `json:"state,omitempty"`
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631 Type string `json:"type,omitempty"`
4632
4633
4634 googleapi.ServerResponse `json:"-"`
4635
4636
4637
4638
4639
4640 ForceSendFields []string `json:"-"`
4641
4642
4643
4644
4645 NullFields []string `json:"-"`
4646 }
4647
4648 func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
4649 type NoMethod GoogleCloudApigeeV1Environment
4650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4651 }
4652
4653 type GoogleCloudApigeeV1EnvironmentConfig struct {
4654
4655 AddonsConfig *GoogleCloudApigeeV1RuntimeAddonsConfig `json:"addonsConfig,omitempty"`
4656
4657
4658
4659 ArcConfigLocation string `json:"arcConfigLocation,omitempty"`
4660
4661 CreateTime string `json:"createTime,omitempty"`
4662
4663
4664 DataCollectors []*GoogleCloudApigeeV1DataCollectorConfig `json:"dataCollectors,omitempty"`
4665
4666 DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
4667
4668 DeploymentGroups []*GoogleCloudApigeeV1DeploymentGroupConfig `json:"deploymentGroups,omitempty"`
4669
4670 Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
4671
4672
4673
4674 EnvScopedRevisionId int64 `json:"envScopedRevisionId,omitempty,string"`
4675
4676 FeatureFlags map[string]string `json:"featureFlags,omitempty"`
4677
4678 Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
4679
4680
4681
4682 ForwardProxyUri string `json:"forwardProxyUri,omitempty"`
4683
4684
4685 GatewayConfigLocation string `json:"gatewayConfigLocation,omitempty"`
4686
4687 Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
4688
4689
4690 Name string `json:"name,omitempty"`
4691
4692
4693 Provider string `json:"provider,omitempty"`
4694
4695 PubsubTopic string `json:"pubsubTopic,omitempty"`
4696
4697 ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
4698
4699 Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
4700
4701
4702 RevisionId int64 `json:"revisionId,omitempty,string"`
4703
4704 SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
4705
4706
4707 Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
4708
4709
4710 TraceConfig *GoogleCloudApigeeV1RuntimeTraceConfig `json:"traceConfig,omitempty"`
4711
4712
4713 Uid string `json:"uid,omitempty"`
4714
4715
4716 googleapi.ServerResponse `json:"-"`
4717
4718
4719
4720
4721
4722 ForceSendFields []string `json:"-"`
4723
4724
4725
4726
4727 NullFields []string `json:"-"`
4728 }
4729
4730 func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
4731 type NoMethod GoogleCloudApigeeV1EnvironmentConfig
4732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4733 }
4734
4735
4736
4737
4738 type GoogleCloudApigeeV1EnvironmentGroup struct {
4739
4740
4741 CreatedAt int64 `json:"createdAt,omitempty,string"`
4742
4743 Hostnames []string `json:"hostnames,omitempty"`
4744
4745
4746 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4747
4748 Name string `json:"name,omitempty"`
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758 State string `json:"state,omitempty"`
4759
4760
4761 googleapi.ServerResponse `json:"-"`
4762
4763
4764
4765
4766
4767 ForceSendFields []string `json:"-"`
4768
4769
4770
4771
4772 NullFields []string `json:"-"`
4773 }
4774
4775 func (s *GoogleCloudApigeeV1EnvironmentGroup) MarshalJSON() ([]byte, error) {
4776 type NoMethod GoogleCloudApigeeV1EnvironmentGroup
4777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4778 }
4779
4780
4781
4782
4783 type GoogleCloudApigeeV1EnvironmentGroupAttachment struct {
4784
4785
4786 CreatedAt int64 `json:"createdAt,omitempty,string"`
4787
4788 Environment string `json:"environment,omitempty"`
4789
4790 EnvironmentGroupId string `json:"environmentGroupId,omitempty"`
4791
4792 Name string `json:"name,omitempty"`
4793
4794
4795 googleapi.ServerResponse `json:"-"`
4796
4797
4798
4799
4800
4801 ForceSendFields []string `json:"-"`
4802
4803
4804
4805
4806 NullFields []string `json:"-"`
4807 }
4808
4809 func (s *GoogleCloudApigeeV1EnvironmentGroupAttachment) MarshalJSON() ([]byte, error) {
4810 type NoMethod GoogleCloudApigeeV1EnvironmentGroupAttachment
4811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4812 }
4813
4814
4815
4816 type GoogleCloudApigeeV1EnvironmentGroupConfig struct {
4817
4818
4819 EndpointChainingRules []*GoogleCloudApigeeV1EndpointChainingRule `json:"endpointChainingRules,omitempty"`
4820
4821 Hostnames []string `json:"hostnames,omitempty"`
4822
4823
4824
4825
4826 Location string `json:"location,omitempty"`
4827
4828
4829 Name string `json:"name,omitempty"`
4830
4831
4832
4833 RevisionId int64 `json:"revisionId,omitempty,string"`
4834
4835
4836 RoutingRules []*GoogleCloudApigeeV1RoutingRule `json:"routingRules,omitempty"`
4837
4838
4839 Uid string `json:"uid,omitempty"`
4840
4841
4842 googleapi.ServerResponse `json:"-"`
4843
4844
4845
4846
4847
4848 ForceSendFields []string `json:"-"`
4849
4850
4851
4852
4853 NullFields []string `json:"-"`
4854 }
4855
4856 func (s *GoogleCloudApigeeV1EnvironmentGroupConfig) MarshalJSON() ([]byte, error) {
4857 type NoMethod GoogleCloudApigeeV1EnvironmentGroupConfig
4858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4859 }
4860
4861
4862
4863 type GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest struct {
4864 }
4865
4866
4867 type GoogleCloudApigeeV1Export struct {
4868
4869 Created string `json:"created,omitempty"`
4870
4871
4872 DatastoreName string `json:"datastoreName,omitempty"`
4873
4874 Description string `json:"description,omitempty"`
4875
4876 Error string `json:"error,omitempty"`
4877
4878
4879
4880
4881 ExecutionTime string `json:"executionTime,omitempty"`
4882
4883 Name string `json:"name,omitempty"`
4884
4885
4886
4887
4888 Self string `json:"self,omitempty"`
4889
4890
4891 State string `json:"state,omitempty"`
4892
4893 Updated string `json:"updated,omitempty"`
4894
4895
4896 googleapi.ServerResponse `json:"-"`
4897
4898
4899
4900
4901
4902 ForceSendFields []string `json:"-"`
4903
4904
4905
4906
4907 NullFields []string `json:"-"`
4908 }
4909
4910 func (s *GoogleCloudApigeeV1Export) MarshalJSON() ([]byte, error) {
4911 type NoMethod GoogleCloudApigeeV1Export
4912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4913 }
4914
4915
4916 type GoogleCloudApigeeV1ExportRequest struct {
4917
4918
4919
4920 CsvDelimiter string `json:"csvDelimiter,omitempty"`
4921
4922 DatastoreName string `json:"datastoreName,omitempty"`
4923
4924 DateRange *GoogleCloudApigeeV1DateRange `json:"dateRange,omitempty"`
4925
4926 Description string `json:"description,omitempty"`
4927
4928 Name string `json:"name,omitempty"`
4929
4930
4931
4932 OutputFormat string `json:"outputFormat,omitempty"`
4933
4934
4935
4936
4937
4938 ForceSendFields []string `json:"-"`
4939
4940
4941
4942
4943 NullFields []string `json:"-"`
4944 }
4945
4946 func (s *GoogleCloudApigeeV1ExportRequest) MarshalJSON() ([]byte, error) {
4947 type NoMethod GoogleCloudApigeeV1ExportRequest
4948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4949 }
4950
4951 type GoogleCloudApigeeV1FlowHook struct {
4952
4953
4954
4955
4956 ContinueOnError bool `json:"continueOnError,omitempty"`
4957
4958 Description string `json:"description,omitempty"`
4959
4960
4961
4962 FlowHookPoint string `json:"flowHookPoint,omitempty"`
4963
4964
4965 SharedFlow string `json:"sharedFlow,omitempty"`
4966
4967
4968 googleapi.ServerResponse `json:"-"`
4969
4970
4971
4972
4973
4974 ForceSendFields []string `json:"-"`
4975
4976
4977
4978
4979 NullFields []string `json:"-"`
4980 }
4981
4982 func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
4983 type NoMethod GoogleCloudApigeeV1FlowHook
4984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4985 }
4986
4987 type GoogleCloudApigeeV1FlowHookConfig struct {
4988
4989
4990 ContinueOnError bool `json:"continueOnError,omitempty"`
4991
4992
4993
4994
4995 Name string `json:"name,omitempty"`
4996
4997
4998 SharedFlowName string `json:"sharedFlowName,omitempty"`
4999
5000
5001
5002
5003
5004 ForceSendFields []string `json:"-"`
5005
5006
5007
5008
5009 NullFields []string `json:"-"`
5010 }
5011
5012 func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
5013 type NoMethod GoogleCloudApigeeV1FlowHookConfig
5014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5015 }
5016
5017
5018
5019 type GoogleCloudApigeeV1GenerateDownloadUrlRequest struct {
5020 }
5021
5022
5023
5024 type GoogleCloudApigeeV1GenerateDownloadUrlResponse struct {
5025
5026
5027 DownloadUri string `json:"downloadUri,omitempty"`
5028
5029
5030 googleapi.ServerResponse `json:"-"`
5031
5032
5033
5034
5035
5036 ForceSendFields []string `json:"-"`
5037
5038
5039
5040
5041 NullFields []string `json:"-"`
5042 }
5043
5044 func (s *GoogleCloudApigeeV1GenerateDownloadUrlResponse) MarshalJSON() ([]byte, error) {
5045 type NoMethod GoogleCloudApigeeV1GenerateDownloadUrlResponse
5046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5047 }
5048
5049
5050
5051 type GoogleCloudApigeeV1GenerateUploadUrlRequest struct {
5052 }
5053
5054
5055
5056 type GoogleCloudApigeeV1GenerateUploadUrlResponse struct {
5057
5058
5059 UploadUri string `json:"uploadUri,omitempty"`
5060
5061
5062 googleapi.ServerResponse `json:"-"`
5063
5064
5065
5066
5067
5068 ForceSendFields []string `json:"-"`
5069
5070
5071
5072
5073 NullFields []string `json:"-"`
5074 }
5075
5076 func (s *GoogleCloudApigeeV1GenerateUploadUrlResponse) MarshalJSON() ([]byte, error) {
5077 type NoMethod GoogleCloudApigeeV1GenerateUploadUrlResponse
5078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5079 }
5080
5081
5082
5083 type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse struct {
5084
5085 Urls []*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo `json:"urls,omitempty"`
5086
5087
5088 googleapi.ServerResponse `json:"-"`
5089
5090
5091
5092
5093
5094 ForceSendFields []string `json:"-"`
5095
5096
5097
5098
5099 NullFields []string `json:"-"`
5100 }
5101
5102 func (s *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse) MarshalJSON() ([]byte, error) {
5103 type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse
5104 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5105 }
5106
5107
5108
5109 type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo struct {
5110
5111 Md5 string `json:"md5,omitempty"`
5112
5113 SizeBytes int64 `json:"sizeBytes,omitempty,string"`
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 Uri string `json:"uri,omitempty"`
5135
5136
5137
5138
5139
5140 ForceSendFields []string `json:"-"`
5141
5142
5143
5144
5145 NullFields []string `json:"-"`
5146 }
5147
5148 func (s *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo) MarshalJSON() ([]byte, error) {
5149 type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo
5150 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5151 }
5152
5153
5154
5155 type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
5156 }
5157
5158
5159
5160 type GoogleCloudApigeeV1GraphQLOperation struct {
5161
5162
5163
5164 Operation string `json:"operation,omitempty"`
5165
5166
5167
5168 OperationTypes []string `json:"operationTypes,omitempty"`
5169
5170
5171
5172
5173
5174 ForceSendFields []string `json:"-"`
5175
5176
5177
5178
5179 NullFields []string `json:"-"`
5180 }
5181
5182 func (s *GoogleCloudApigeeV1GraphQLOperation) MarshalJSON() ([]byte, error) {
5183 type NoMethod GoogleCloudApigeeV1GraphQLOperation
5184 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5185 }
5186
5187
5188
5189
5190 type GoogleCloudApigeeV1GraphQLOperationConfig struct {
5191
5192
5193 ApiSource string `json:"apiSource,omitempty"`
5194
5195 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
5196
5197
5198
5199
5200
5201
5202 Operations []*GoogleCloudApigeeV1GraphQLOperation `json:"operations,omitempty"`
5203
5204
5205
5206 Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
5207
5208
5209
5210
5211
5212 ForceSendFields []string `json:"-"`
5213
5214
5215
5216
5217 NullFields []string `json:"-"`
5218 }
5219
5220 func (s *GoogleCloudApigeeV1GraphQLOperationConfig) MarshalJSON() ([]byte, error) {
5221 type NoMethod GoogleCloudApigeeV1GraphQLOperationConfig
5222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5223 }
5224
5225
5226
5227
5228 type GoogleCloudApigeeV1GraphQLOperationGroup struct {
5229
5230
5231
5232
5233
5234 OperationConfigType string `json:"operationConfigType,omitempty"`
5235
5236
5237
5238 OperationConfigs []*GoogleCloudApigeeV1GraphQLOperationConfig `json:"operationConfigs,omitempty"`
5239
5240
5241
5242
5243
5244 ForceSendFields []string `json:"-"`
5245
5246
5247
5248
5249 NullFields []string `json:"-"`
5250 }
5251
5252 func (s *GoogleCloudApigeeV1GraphQLOperationGroup) MarshalJSON() ([]byte, error) {
5253 type NoMethod GoogleCloudApigeeV1GraphQLOperationGroup
5254 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5255 }
5256
5257
5258
5259 type GoogleCloudApigeeV1GraphqlDocumentation struct {
5260
5261
5262 EndpointUri string `json:"endpointUri,omitempty"`
5263
5264 Schema *GoogleCloudApigeeV1DocumentationFile `json:"schema,omitempty"`
5265
5266
5267
5268
5269
5270 ForceSendFields []string `json:"-"`
5271
5272
5273
5274
5275 NullFields []string `json:"-"`
5276 }
5277
5278 func (s *GoogleCloudApigeeV1GraphqlDocumentation) MarshalJSON() ([]byte, error) {
5279 type NoMethod GoogleCloudApigeeV1GraphqlDocumentation
5280 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5281 }
5282
5283
5284
5285 type GoogleCloudApigeeV1GrpcOperationConfig struct {
5286
5287
5288 ApiSource string `json:"apiSource,omitempty"`
5289
5290 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
5291
5292
5293
5294
5295
5296
5297 Methods []string `json:"methods,omitempty"`
5298
5299
5300 Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
5301
5302
5303 Service string `json:"service,omitempty"`
5304
5305
5306
5307
5308
5309 ForceSendFields []string `json:"-"`
5310
5311
5312
5313
5314 NullFields []string `json:"-"`
5315 }
5316
5317 func (s *GoogleCloudApigeeV1GrpcOperationConfig) MarshalJSON() ([]byte, error) {
5318 type NoMethod GoogleCloudApigeeV1GrpcOperationConfig
5319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5320 }
5321
5322
5323
5324 type GoogleCloudApigeeV1GrpcOperationGroup struct {
5325
5326
5327 OperationConfigs []*GoogleCloudApigeeV1GrpcOperationConfig `json:"operationConfigs,omitempty"`
5328
5329
5330
5331
5332
5333 ForceSendFields []string `json:"-"`
5334
5335
5336
5337
5338 NullFields []string `json:"-"`
5339 }
5340
5341 func (s *GoogleCloudApigeeV1GrpcOperationGroup) MarshalJSON() ([]byte, error) {
5342 type NoMethod GoogleCloudApigeeV1GrpcOperationGroup
5343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5344 }
5345
5346 type GoogleCloudApigeeV1IngressConfig struct {
5347
5348 EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroupConfig `json:"environmentGroups,omitempty"`
5349
5350
5351 Name string `json:"name,omitempty"`
5352
5353 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
5354
5355
5356
5357 RevisionId int64 `json:"revisionId,omitempty,string"`
5358
5359
5360 Uid string `json:"uid,omitempty"`
5361
5362
5363 googleapi.ServerResponse `json:"-"`
5364
5365
5366
5367
5368
5369 ForceSendFields []string `json:"-"`
5370
5371
5372
5373
5374 NullFields []string `json:"-"`
5375 }
5376
5377 func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) {
5378 type NoMethod GoogleCloudApigeeV1IngressConfig
5379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5380 }
5381
5382
5383 type GoogleCloudApigeeV1Instance struct {
5384
5385
5386
5387 AccessLoggingConfig *GoogleCloudApigeeV1AccessLoggingConfig `json:"accessLoggingConfig,omitempty"`
5388
5389
5390
5391
5392
5393 ConsumerAcceptList []string `json:"consumerAcceptList,omitempty"`
5394
5395
5396 CreatedAt int64 `json:"createdAt,omitempty,string"`
5397
5398 Description string `json:"description,omitempty"`
5399
5400
5401
5402
5403 DiskEncryptionKeyName string `json:"diskEncryptionKeyName,omitempty"`
5404
5405 DisplayName string `json:"displayName,omitempty"`
5406
5407
5408 Host string `json:"host,omitempty"`
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 IpRange string `json:"ipRange,omitempty"`
5419
5420
5421 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
5422
5423 Location string `json:"location,omitempty"`
5424
5425
5426 Name string `json:"name,omitempty"`
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 PeeringCidrRange string `json:"peeringCidrRange,omitempty"`
5442
5443 Port string `json:"port,omitempty"`
5444
5445
5446
5447 RuntimeVersion string `json:"runtimeVersion,omitempty"`
5448
5449
5450
5451
5452 ServiceAttachment string `json:"serviceAttachment,omitempty"`
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 State string `json:"state,omitempty"`
5463
5464
5465 googleapi.ServerResponse `json:"-"`
5466
5467
5468
5469
5470
5471 ForceSendFields []string `json:"-"`
5472
5473
5474
5475
5476 NullFields []string `json:"-"`
5477 }
5478
5479 func (s *GoogleCloudApigeeV1Instance) MarshalJSON() ([]byte, error) {
5480 type NoMethod GoogleCloudApigeeV1Instance
5481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5482 }
5483
5484
5485
5486 type GoogleCloudApigeeV1InstanceAttachment struct {
5487
5488
5489 CreatedAt int64 `json:"createdAt,omitempty,string"`
5490
5491 Environment string `json:"environment,omitempty"`
5492
5493 Name string `json:"name,omitempty"`
5494
5495
5496 googleapi.ServerResponse `json:"-"`
5497
5498
5499
5500
5501
5502 ForceSendFields []string `json:"-"`
5503
5504
5505
5506
5507 NullFields []string `json:"-"`
5508 }
5509
5510 func (s *GoogleCloudApigeeV1InstanceAttachment) MarshalJSON() ([]byte, error) {
5511 type NoMethod GoogleCloudApigeeV1InstanceAttachment
5512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5513 }
5514
5515
5516
5517 type GoogleCloudApigeeV1InstanceDeploymentStatus struct {
5518
5519 DeployedRevisions []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision `json:"deployedRevisions,omitempty"`
5520
5521
5522 DeployedRoutes []*GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute `json:"deployedRoutes,omitempty"`
5523
5524 Instance string `json:"instance,omitempty"`
5525
5526
5527
5528
5529
5530 ForceSendFields []string `json:"-"`
5531
5532
5533
5534
5535 NullFields []string `json:"-"`
5536 }
5537
5538 func (s *GoogleCloudApigeeV1InstanceDeploymentStatus) MarshalJSON() ([]byte, error) {
5539 type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatus
5540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5541 }
5542
5543
5544
5545 type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision struct {
5546
5547 Percentage int64 `json:"percentage,omitempty"`
5548
5549 Revision string `json:"revision,omitempty"`
5550
5551
5552
5553
5554
5555 ForceSendFields []string `json:"-"`
5556
5557
5558
5559
5560 NullFields []string `json:"-"`
5561 }
5562
5563 func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision) MarshalJSON() ([]byte, error) {
5564 type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision
5565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5566 }
5567
5568
5569
5570 type GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute struct {
5571
5572 Basepath string `json:"basepath,omitempty"`
5573
5574 Envgroup string `json:"envgroup,omitempty"`
5575
5576
5577 Environment string `json:"environment,omitempty"`
5578
5579 Percentage int64 `json:"percentage,omitempty"`
5580
5581
5582
5583
5584
5585 ForceSendFields []string `json:"-"`
5586
5587
5588
5589
5590 NullFields []string `json:"-"`
5591 }
5592
5593 func (s *GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute) MarshalJSON() ([]byte, error) {
5594 type NoMethod GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute
5595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5596 }
5597
5598
5599
5600 type GoogleCloudApigeeV1IntegrationConfig struct {
5601
5602 Enabled bool `json:"enabled,omitempty"`
5603
5604
5605
5606
5607
5608 ForceSendFields []string `json:"-"`
5609
5610
5611
5612
5613 NullFields []string `json:"-"`
5614 }
5615
5616 func (s *GoogleCloudApigeeV1IntegrationConfig) MarshalJSON() ([]byte, error) {
5617 type NoMethod GoogleCloudApigeeV1IntegrationConfig
5618 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5619 }
5620
5621 type GoogleCloudApigeeV1KeyAliasReference struct {
5622
5623 AliasId string `json:"aliasId,omitempty"`
5624
5625
5626 Reference string `json:"reference,omitempty"`
5627
5628
5629
5630
5631
5632 ForceSendFields []string `json:"-"`
5633
5634
5635
5636
5637 NullFields []string `json:"-"`
5638 }
5639
5640 func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
5641 type NoMethod GoogleCloudApigeeV1KeyAliasReference
5642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5643 }
5644
5645
5646
5647
5648 type GoogleCloudApigeeV1KeyValueEntry struct {
5649
5650
5651 Name string `json:"name,omitempty"`
5652
5653
5654 Value string `json:"value,omitempty"`
5655
5656
5657 googleapi.ServerResponse `json:"-"`
5658
5659
5660
5661
5662
5663 ForceSendFields []string `json:"-"`
5664
5665
5666
5667
5668 NullFields []string `json:"-"`
5669 }
5670
5671 func (s *GoogleCloudApigeeV1KeyValueEntry) MarshalJSON() ([]byte, error) {
5672 type NoMethod GoogleCloudApigeeV1KeyValueEntry
5673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5674 }
5675
5676
5677 type GoogleCloudApigeeV1KeyValueMap struct {
5678
5679
5680
5681
5682 Encrypted bool `json:"encrypted,omitempty"`
5683
5684 Name string `json:"name,omitempty"`
5685
5686
5687 googleapi.ServerResponse `json:"-"`
5688
5689
5690
5691
5692
5693 ForceSendFields []string `json:"-"`
5694
5695
5696
5697
5698 NullFields []string `json:"-"`
5699 }
5700
5701 func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
5702 type NoMethod GoogleCloudApigeeV1KeyValueMap
5703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5704 }
5705
5706
5707 type GoogleCloudApigeeV1Keystore struct {
5708
5709 Aliases []string `json:"aliases,omitempty"`
5710
5711
5712 Name string `json:"name,omitempty"`
5713
5714
5715 googleapi.ServerResponse `json:"-"`
5716
5717
5718
5719
5720
5721 ForceSendFields []string `json:"-"`
5722
5723
5724
5725
5726 NullFields []string `json:"-"`
5727 }
5728
5729 func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
5730 type NoMethod GoogleCloudApigeeV1Keystore
5731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5732 }
5733
5734 type GoogleCloudApigeeV1KeystoreConfig struct {
5735
5736 Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
5737
5738
5739 Name string `json:"name,omitempty"`
5740
5741
5742
5743
5744
5745 ForceSendFields []string `json:"-"`
5746
5747
5748
5749
5750 NullFields []string `json:"-"`
5751 }
5752
5753 func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
5754 type NoMethod GoogleCloudApigeeV1KeystoreConfig
5755 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5756 }
5757
5758
5759
5760 type GoogleCloudApigeeV1ListApiCategoriesResponse struct {
5761
5762 Data []*GoogleCloudApigeeV1ApiCategory `json:"data,omitempty"`
5763
5764 ErrorCode string `json:"errorCode,omitempty"`
5765
5766 Message string `json:"message,omitempty"`
5767
5768 RequestId string `json:"requestId,omitempty"`
5769
5770 Status string `json:"status,omitempty"`
5771
5772
5773 googleapi.ServerResponse `json:"-"`
5774
5775
5776
5777
5778
5779 ForceSendFields []string `json:"-"`
5780
5781
5782
5783
5784 NullFields []string `json:"-"`
5785 }
5786
5787 func (s *GoogleCloudApigeeV1ListApiCategoriesResponse) MarshalJSON() ([]byte, error) {
5788 type NoMethod GoogleCloudApigeeV1ListApiCategoriesResponse
5789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5790 }
5791
5792 type GoogleCloudApigeeV1ListApiDocsResponse struct {
5793
5794 Data []*GoogleCloudApigeeV1ApiDoc `json:"data,omitempty"`
5795
5796 ErrorCode string `json:"errorCode,omitempty"`
5797
5798 Message string `json:"message,omitempty"`
5799
5800
5801 NextPageToken string `json:"nextPageToken,omitempty"`
5802
5803 RequestId string `json:"requestId,omitempty"`
5804
5805 Status string `json:"status,omitempty"`
5806
5807
5808 googleapi.ServerResponse `json:"-"`
5809
5810
5811
5812
5813
5814 ForceSendFields []string `json:"-"`
5815
5816
5817
5818
5819 NullFields []string `json:"-"`
5820 }
5821
5822 func (s *GoogleCloudApigeeV1ListApiDocsResponse) MarshalJSON() ([]byte, error) {
5823 type NoMethod GoogleCloudApigeeV1ListApiDocsResponse
5824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5825 }
5826
5827 type GoogleCloudApigeeV1ListApiProductsResponse struct {
5828
5829 ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
5830
5831
5832 googleapi.ServerResponse `json:"-"`
5833
5834
5835
5836
5837
5838 ForceSendFields []string `json:"-"`
5839
5840
5841
5842
5843 NullFields []string `json:"-"`
5844 }
5845
5846 func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
5847 type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
5848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5849 }
5850
5851
5852
5853 type GoogleCloudApigeeV1ListApiProxiesResponse struct {
5854 Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
5855
5856
5857 googleapi.ServerResponse `json:"-"`
5858
5859
5860
5861
5862
5863 ForceSendFields []string `json:"-"`
5864
5865
5866
5867
5868 NullFields []string `json:"-"`
5869 }
5870
5871 func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
5872 type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
5873 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5874 }
5875
5876
5877 type GoogleCloudApigeeV1ListAppGroupAppsResponse struct {
5878
5879 AppGroupApps []*GoogleCloudApigeeV1AppGroupApp `json:"appGroupApps,omitempty"`
5880
5881
5882 NextPageToken string `json:"nextPageToken,omitempty"`
5883
5884
5885 googleapi.ServerResponse `json:"-"`
5886
5887
5888
5889
5890
5891 ForceSendFields []string `json:"-"`
5892
5893
5894
5895
5896 NullFields []string `json:"-"`
5897 }
5898
5899 func (s *GoogleCloudApigeeV1ListAppGroupAppsResponse) MarshalJSON() ([]byte, error) {
5900 type NoMethod GoogleCloudApigeeV1ListAppGroupAppsResponse
5901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5902 }
5903
5904
5905
5906
5907 type GoogleCloudApigeeV1ListAppGroupsResponse struct {
5908
5909 AppGroups []*GoogleCloudApigeeV1AppGroup `json:"appGroups,omitempty"`
5910
5911
5912 NextPageToken string `json:"nextPageToken,omitempty"`
5913
5914 TotalSize int64 `json:"totalSize,omitempty"`
5915
5916
5917 googleapi.ServerResponse `json:"-"`
5918
5919
5920
5921
5922
5923 ForceSendFields []string `json:"-"`
5924
5925
5926
5927
5928 NullFields []string `json:"-"`
5929 }
5930
5931 func (s *GoogleCloudApigeeV1ListAppGroupsResponse) MarshalJSON() ([]byte, error) {
5932 type NoMethod GoogleCloudApigeeV1ListAppGroupsResponse
5933 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5934 }
5935
5936 type GoogleCloudApigeeV1ListAppsResponse struct {
5937 App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
5938
5939
5940 NextPageToken string `json:"nextPageToken,omitempty"`
5941
5942 TotalSize int64 `json:"totalSize,omitempty"`
5943
5944
5945 googleapi.ServerResponse `json:"-"`
5946
5947
5948
5949
5950
5951 ForceSendFields []string `json:"-"`
5952
5953
5954
5955
5956 NullFields []string `json:"-"`
5957 }
5958
5959 func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
5960 type NoMethod GoogleCloudApigeeV1ListAppsResponse
5961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5962 }
5963
5964
5965
5966 type GoogleCloudApigeeV1ListArchiveDeploymentsResponse struct {
5967
5968 ArchiveDeployments []*GoogleCloudApigeeV1ArchiveDeployment `json:"archiveDeployments,omitempty"`
5969
5970
5971 NextPageToken string `json:"nextPageToken,omitempty"`
5972
5973
5974 googleapi.ServerResponse `json:"-"`
5975
5976
5977
5978
5979
5980 ForceSendFields []string `json:"-"`
5981
5982
5983
5984
5985 NullFields []string `json:"-"`
5986 }
5987
5988 func (s *GoogleCloudApigeeV1ListArchiveDeploymentsResponse) MarshalJSON() ([]byte, error) {
5989 type NoMethod GoogleCloudApigeeV1ListArchiveDeploymentsResponse
5990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5991 }
5992
5993
5994
5995 type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
5996
5997 Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
5998
5999
6000 googleapi.ServerResponse `json:"-"`
6001
6002
6003
6004
6005
6006 ForceSendFields []string `json:"-"`
6007
6008
6009
6010
6011 NullFields []string `json:"-"`
6012 }
6013
6014 func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
6015 type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
6016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6017 }
6018
6019
6020
6021 type GoogleCloudApigeeV1ListCustomReportsResponse struct {
6022 Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
6023
6024
6025 googleapi.ServerResponse `json:"-"`
6026
6027
6028
6029
6030
6031 ForceSendFields []string `json:"-"`
6032
6033
6034
6035
6036 NullFields []string `json:"-"`
6037 }
6038
6039 func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
6040 type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
6041 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6042 }
6043
6044
6045
6046 type GoogleCloudApigeeV1ListDataCollectorsResponse struct {
6047
6048 DataCollectors []*GoogleCloudApigeeV1DataCollector `json:"dataCollectors,omitempty"`
6049
6050
6051 NextPageToken string `json:"nextPageToken,omitempty"`
6052
6053
6054 googleapi.ServerResponse `json:"-"`
6055
6056
6057
6058
6059
6060 ForceSendFields []string `json:"-"`
6061
6062
6063
6064
6065 NullFields []string `json:"-"`
6066 }
6067
6068 func (s *GoogleCloudApigeeV1ListDataCollectorsResponse) MarshalJSON() ([]byte, error) {
6069 type NoMethod GoogleCloudApigeeV1ListDataCollectorsResponse
6070 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6071 }
6072
6073
6074 type GoogleCloudApigeeV1ListDatastoresResponse struct {
6075
6076 Datastores []*GoogleCloudApigeeV1Datastore `json:"datastores,omitempty"`
6077
6078
6079 googleapi.ServerResponse `json:"-"`
6080
6081
6082
6083
6084
6085 ForceSendFields []string `json:"-"`
6086
6087
6088
6089
6090 NullFields []string `json:"-"`
6091 }
6092
6093 func (s *GoogleCloudApigeeV1ListDatastoresResponse) MarshalJSON() ([]byte, error) {
6094 type NoMethod GoogleCloudApigeeV1ListDatastoresResponse
6095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6096 }
6097
6098 type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
6099
6100
6101 NextPageToken string `json:"nextPageToken,omitempty"`
6102
6103
6104 Sessions []*GoogleCloudApigeeV1Session `json:"sessions,omitempty"`
6105
6106
6107 googleapi.ServerResponse `json:"-"`
6108
6109
6110
6111
6112
6113 ForceSendFields []string `json:"-"`
6114
6115
6116
6117
6118 NullFields []string `json:"-"`
6119 }
6120
6121 func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
6122 type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
6123 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6124 }
6125
6126 type GoogleCloudApigeeV1ListDeploymentsResponse struct {
6127
6128 Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
6129
6130
6131 googleapi.ServerResponse `json:"-"`
6132
6133
6134
6135
6136
6137 ForceSendFields []string `json:"-"`
6138
6139
6140
6141
6142 NullFields []string `json:"-"`
6143 }
6144
6145 func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
6146 type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
6147 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6148 }
6149
6150 type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
6151
6152 App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
6153
6154
6155 googleapi.ServerResponse `json:"-"`
6156
6157
6158
6159
6160
6161 ForceSendFields []string `json:"-"`
6162
6163
6164
6165
6166 NullFields []string `json:"-"`
6167 }
6168
6169 func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
6170 type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
6171 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6172 }
6173
6174
6175
6176 type GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse struct {
6177
6178 DeveloperSubscriptions []*GoogleCloudApigeeV1DeveloperSubscription `json:"developerSubscriptions,omitempty"`
6179
6180
6181 NextStartKey string `json:"nextStartKey,omitempty"`
6182
6183
6184 googleapi.ServerResponse `json:"-"`
6185
6186
6187
6188
6189
6190 ForceSendFields []string `json:"-"`
6191
6192
6193
6194
6195 NullFields []string `json:"-"`
6196 }
6197
6198 func (s *GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse) MarshalJSON() ([]byte, error) {
6199 type NoMethod GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse
6200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6201 }
6202
6203
6204
6205 type GoogleCloudApigeeV1ListEndpointAttachmentsResponse struct {
6206
6207 EndpointAttachments []*GoogleCloudApigeeV1EndpointAttachment `json:"endpointAttachments,omitempty"`
6208
6209
6210
6211 NextPageToken string `json:"nextPageToken,omitempty"`
6212
6213
6214 googleapi.ServerResponse `json:"-"`
6215
6216
6217
6218
6219
6220 ForceSendFields []string `json:"-"`
6221
6222
6223
6224
6225 NullFields []string `json:"-"`
6226 }
6227
6228 func (s *GoogleCloudApigeeV1ListEndpointAttachmentsResponse) MarshalJSON() ([]byte, error) {
6229 type NoMethod GoogleCloudApigeeV1ListEndpointAttachmentsResponse
6230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6231 }
6232
6233
6234
6235 type GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse struct {
6236
6237
6238 EnvironmentGroupAttachments []*GoogleCloudApigeeV1EnvironmentGroupAttachment `json:"environmentGroupAttachments,omitempty"`
6239
6240
6241
6242 NextPageToken string `json:"nextPageToken,omitempty"`
6243
6244
6245 googleapi.ServerResponse `json:"-"`
6246
6247
6248
6249
6250
6251 ForceSendFields []string `json:"-"`
6252
6253
6254
6255
6256 NullFields []string `json:"-"`
6257 }
6258
6259 func (s *GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) MarshalJSON() ([]byte, error) {
6260 type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse
6261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6262 }
6263
6264
6265
6266 type GoogleCloudApigeeV1ListEnvironmentGroupsResponse struct {
6267
6268 EnvironmentGroups []*GoogleCloudApigeeV1EnvironmentGroup `json:"environmentGroups,omitempty"`
6269
6270
6271 NextPageToken string `json:"nextPageToken,omitempty"`
6272
6273
6274 googleapi.ServerResponse `json:"-"`
6275
6276
6277
6278
6279
6280 ForceSendFields []string `json:"-"`
6281
6282
6283
6284
6285 NullFields []string `json:"-"`
6286 }
6287
6288 func (s *GoogleCloudApigeeV1ListEnvironmentGroupsResponse) MarshalJSON() ([]byte, error) {
6289 type NoMethod GoogleCloudApigeeV1ListEnvironmentGroupsResponse
6290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6291 }
6292
6293
6294
6295 type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
6296
6297 ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
6298
6299
6300 googleapi.ServerResponse `json:"-"`
6301
6302
6303
6304
6305
6306 ForceSendFields []string `json:"-"`
6307
6308
6309
6310
6311 NullFields []string `json:"-"`
6312 }
6313
6314 func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
6315 type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
6316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6317 }
6318
6319
6320 type GoogleCloudApigeeV1ListExportsResponse struct {
6321
6322 Exports []*GoogleCloudApigeeV1Export `json:"exports,omitempty"`
6323
6324
6325 googleapi.ServerResponse `json:"-"`
6326
6327
6328
6329
6330
6331 ForceSendFields []string `json:"-"`
6332
6333
6334
6335
6336 NullFields []string `json:"-"`
6337 }
6338
6339 func (s *GoogleCloudApigeeV1ListExportsResponse) MarshalJSON() ([]byte, error) {
6340 type NoMethod GoogleCloudApigeeV1ListExportsResponse
6341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6342 }
6343
6344 type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
6345
6346 Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
6347
6348
6349 googleapi.ServerResponse `json:"-"`
6350
6351
6352
6353
6354
6355 ForceSendFields []string `json:"-"`
6356
6357
6358
6359
6360 NullFields []string `json:"-"`
6361 }
6362
6363 func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
6364 type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
6365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6366 }
6367
6368
6369
6370 type GoogleCloudApigeeV1ListInstanceAttachmentsResponse struct {
6371
6372 Attachments []*GoogleCloudApigeeV1InstanceAttachment `json:"attachments,omitempty"`
6373
6374
6375
6376 NextPageToken string `json:"nextPageToken,omitempty"`
6377
6378
6379 googleapi.ServerResponse `json:"-"`
6380
6381
6382
6383
6384
6385 ForceSendFields []string `json:"-"`
6386
6387
6388
6389
6390 NullFields []string `json:"-"`
6391 }
6392
6393 func (s *GoogleCloudApigeeV1ListInstanceAttachmentsResponse) MarshalJSON() ([]byte, error) {
6394 type NoMethod GoogleCloudApigeeV1ListInstanceAttachmentsResponse
6395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6396 }
6397
6398
6399 type GoogleCloudApigeeV1ListInstancesResponse struct {
6400
6401 Instances []*GoogleCloudApigeeV1Instance `json:"instances,omitempty"`
6402
6403
6404 NextPageToken string `json:"nextPageToken,omitempty"`
6405
6406
6407 googleapi.ServerResponse `json:"-"`
6408
6409
6410
6411
6412
6413 ForceSendFields []string `json:"-"`
6414
6415
6416
6417
6418 NullFields []string `json:"-"`
6419 }
6420
6421 func (s *GoogleCloudApigeeV1ListInstancesResponse) MarshalJSON() ([]byte, error) {
6422 type NoMethod GoogleCloudApigeeV1ListInstancesResponse
6423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6424 }
6425
6426
6427
6428 type GoogleCloudApigeeV1ListKeyValueEntriesResponse struct {
6429
6430 KeyValueEntries []*GoogleCloudApigeeV1KeyValueEntry `json:"keyValueEntries,omitempty"`
6431
6432
6433 NextPageToken string `json:"nextPageToken,omitempty"`
6434
6435
6436 googleapi.ServerResponse `json:"-"`
6437
6438
6439
6440
6441
6442 ForceSendFields []string `json:"-"`
6443
6444
6445
6446
6447 NullFields []string `json:"-"`
6448 }
6449
6450 func (s *GoogleCloudApigeeV1ListKeyValueEntriesResponse) MarshalJSON() ([]byte, error) {
6451 type NoMethod GoogleCloudApigeeV1ListKeyValueEntriesResponse
6452 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6453 }
6454
6455
6456 type GoogleCloudApigeeV1ListNatAddressesResponse struct {
6457
6458 NatAddresses []*GoogleCloudApigeeV1NatAddress `json:"natAddresses,omitempty"`
6459
6460
6461 NextPageToken string `json:"nextPageToken,omitempty"`
6462
6463
6464 googleapi.ServerResponse `json:"-"`
6465
6466
6467
6468
6469
6470 ForceSendFields []string `json:"-"`
6471
6472
6473
6474
6475 NullFields []string `json:"-"`
6476 }
6477
6478 func (s *GoogleCloudApigeeV1ListNatAddressesResponse) MarshalJSON() ([]byte, error) {
6479 type NoMethod GoogleCloudApigeeV1ListNatAddressesResponse
6480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6481 }
6482
6483 type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
6484
6485 Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
6486
6487
6488 googleapi.ServerResponse `json:"-"`
6489
6490
6491
6492
6493
6494 ForceSendFields []string `json:"-"`
6495
6496
6497
6498
6499 NullFields []string `json:"-"`
6500 }
6501
6502 func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
6503 type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
6504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6505 }
6506
6507 type GoogleCloudApigeeV1ListOrganizationsResponse struct {
6508
6509
6510 Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
6511
6512
6513 googleapi.ServerResponse `json:"-"`
6514
6515
6516
6517
6518
6519 ForceSendFields []string `json:"-"`
6520
6521
6522
6523
6524 NullFields []string `json:"-"`
6525 }
6526
6527 func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
6528 type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
6529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6530 }
6531
6532
6533 type GoogleCloudApigeeV1ListRatePlansResponse struct {
6534
6535
6536 NextStartKey string `json:"nextStartKey,omitempty"`
6537
6538 RatePlans []*GoogleCloudApigeeV1RatePlan `json:"ratePlans,omitempty"`
6539
6540
6541 googleapi.ServerResponse `json:"-"`
6542
6543
6544
6545
6546
6547 ForceSendFields []string `json:"-"`
6548
6549
6550
6551
6552 NullFields []string `json:"-"`
6553 }
6554
6555 func (s *GoogleCloudApigeeV1ListRatePlansResponse) MarshalJSON() ([]byte, error) {
6556 type NoMethod GoogleCloudApigeeV1ListRatePlansResponse
6557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6558 }
6559
6560
6561
6562 type GoogleCloudApigeeV1ListSecurityActionsResponse struct {
6563
6564
6565 NextPageToken string `json:"nextPageToken,omitempty"`
6566
6567 SecurityActions []*GoogleCloudApigeeV1SecurityAction `json:"securityActions,omitempty"`
6568
6569
6570 googleapi.ServerResponse `json:"-"`
6571
6572
6573
6574
6575
6576 ForceSendFields []string `json:"-"`
6577
6578
6579
6580
6581 NullFields []string `json:"-"`
6582 }
6583
6584 func (s *GoogleCloudApigeeV1ListSecurityActionsResponse) MarshalJSON() ([]byte, error) {
6585 type NoMethod GoogleCloudApigeeV1ListSecurityActionsResponse
6586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6587 }
6588
6589
6590
6591 type GoogleCloudApigeeV1ListSecurityIncidentsResponse struct {
6592
6593
6594 NextPageToken string `json:"nextPageToken,omitempty"`
6595
6596 SecurityIncidents []*GoogleCloudApigeeV1SecurityIncident `json:"securityIncidents,omitempty"`
6597
6598
6599 googleapi.ServerResponse `json:"-"`
6600
6601
6602
6603
6604
6605 ForceSendFields []string `json:"-"`
6606
6607
6608
6609
6610 NullFields []string `json:"-"`
6611 }
6612
6613 func (s *GoogleCloudApigeeV1ListSecurityIncidentsResponse) MarshalJSON() ([]byte, error) {
6614 type NoMethod GoogleCloudApigeeV1ListSecurityIncidentsResponse
6615 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6616 }
6617
6618
6619
6620 type GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse struct {
6621
6622
6623 NextPageToken string `json:"nextPageToken,omitempty"`
6624
6625
6626 SecurityProfiles []*GoogleCloudApigeeV1SecurityProfile `json:"securityProfiles,omitempty"`
6627
6628
6629 googleapi.ServerResponse `json:"-"`
6630
6631
6632
6633
6634
6635 ForceSendFields []string `json:"-"`
6636
6637
6638
6639
6640 NullFields []string `json:"-"`
6641 }
6642
6643 func (s *GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse) MarshalJSON() ([]byte, error) {
6644 type NoMethod GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
6645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6646 }
6647
6648
6649
6650 type GoogleCloudApigeeV1ListSecurityProfilesResponse struct {
6651
6652
6653 NextPageToken string `json:"nextPageToken,omitempty"`
6654
6655
6656
6657 SecurityProfiles []*GoogleCloudApigeeV1SecurityProfile `json:"securityProfiles,omitempty"`
6658
6659
6660 googleapi.ServerResponse `json:"-"`
6661
6662
6663
6664
6665
6666 ForceSendFields []string `json:"-"`
6667
6668
6669
6670
6671 NullFields []string `json:"-"`
6672 }
6673
6674 func (s *GoogleCloudApigeeV1ListSecurityProfilesResponse) MarshalJSON() ([]byte, error) {
6675 type NoMethod GoogleCloudApigeeV1ListSecurityProfilesResponse
6676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6677 }
6678
6679
6680
6681 type GoogleCloudApigeeV1ListSecurityReportsResponse struct {
6682
6683
6684
6685
6686 NextPageToken string `json:"nextPageToken,omitempty"`
6687
6688 SecurityReports []*GoogleCloudApigeeV1SecurityReport `json:"securityReports,omitempty"`
6689
6690
6691 googleapi.ServerResponse `json:"-"`
6692
6693
6694
6695
6696
6697 ForceSendFields []string `json:"-"`
6698
6699
6700
6701
6702 NullFields []string `json:"-"`
6703 }
6704
6705 func (s *GoogleCloudApigeeV1ListSecurityReportsResponse) MarshalJSON() ([]byte, error) {
6706 type NoMethod GoogleCloudApigeeV1ListSecurityReportsResponse
6707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6708 }
6709
6710
6711
6712 type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
6713 SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
6714
6715
6716 googleapi.ServerResponse `json:"-"`
6717
6718
6719
6720
6721
6722 ForceSendFields []string `json:"-"`
6723
6724
6725
6726
6727 NullFields []string `json:"-"`
6728 }
6729
6730 func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
6731 type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
6732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6733 }
6734
6735
6736
6737 type GoogleCloudApigeeV1ListTraceConfigOverridesResponse struct {
6738
6739
6740 NextPageToken string `json:"nextPageToken,omitempty"`
6741
6742
6743 TraceConfigOverrides []*GoogleCloudApigeeV1TraceConfigOverride `json:"traceConfigOverrides,omitempty"`
6744
6745
6746 googleapi.ServerResponse `json:"-"`
6747
6748
6749
6750
6751
6752 ForceSendFields []string `json:"-"`
6753
6754
6755
6756
6757 NullFields []string `json:"-"`
6758 }
6759
6760 func (s *GoogleCloudApigeeV1ListTraceConfigOverridesResponse) MarshalJSON() ([]byte, error) {
6761 type NoMethod GoogleCloudApigeeV1ListTraceConfigOverridesResponse
6762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6763 }
6764
6765
6766
6767 type GoogleCloudApigeeV1Metadata struct {
6768
6769 Errors []string `json:"errors,omitempty"`
6770
6771
6772
6773
6774
6775 Notices []string `json:"notices,omitempty"`
6776
6777
6778
6779
6780
6781 ForceSendFields []string `json:"-"`
6782
6783
6784
6785
6786 NullFields []string `json:"-"`
6787 }
6788
6789 func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
6790 type NoMethod GoogleCloudApigeeV1Metadata
6791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6792 }
6793
6794
6795
6796
6797
6798
6799 type GoogleCloudApigeeV1Metric struct {
6800
6801 Name string `json:"name,omitempty"`
6802
6803
6804
6805 Values []interface{} `json:"values,omitempty"`
6806
6807
6808
6809
6810
6811 ForceSendFields []string `json:"-"`
6812
6813
6814
6815
6816 NullFields []string `json:"-"`
6817 }
6818
6819 func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
6820 type NoMethod GoogleCloudApigeeV1Metric
6821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6822 }
6823
6824
6825
6826 type GoogleCloudApigeeV1MetricAggregation struct {
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 Aggregation string `json:"aggregation,omitempty"`
6837
6838 Name string `json:"name,omitempty"`
6839
6840
6841
6842
6843
6844
6845
6846
6847 Order string `json:"order,omitempty"`
6848
6849
6850
6851
6852
6853 ForceSendFields []string `json:"-"`
6854
6855
6856
6857
6858 NullFields []string `json:"-"`
6859 }
6860
6861 func (s *GoogleCloudApigeeV1MetricAggregation) MarshalJSON() ([]byte, error) {
6862 type NoMethod GoogleCloudApigeeV1MetricAggregation
6863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6864 }
6865
6866
6867
6868 type GoogleCloudApigeeV1MonetizationConfig struct {
6869
6870 Enabled bool `json:"enabled,omitempty"`
6871
6872
6873
6874
6875
6876 ForceSendFields []string `json:"-"`
6877
6878
6879
6880
6881 NullFields []string `json:"-"`
6882 }
6883
6884 func (s *GoogleCloudApigeeV1MonetizationConfig) MarshalJSON() ([]byte, error) {
6885 type NoMethod GoogleCloudApigeeV1MonetizationConfig
6886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6887 }
6888
6889
6890
6891
6892 type GoogleCloudApigeeV1NatAddress struct {
6893
6894 IpAddress string `json:"ipAddress,omitempty"`
6895
6896 Name string `json:"name,omitempty"`
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 State string `json:"state,omitempty"`
6907
6908
6909 googleapi.ServerResponse `json:"-"`
6910
6911
6912
6913
6914
6915 ForceSendFields []string `json:"-"`
6916
6917
6918
6919
6920 NullFields []string `json:"-"`
6921 }
6922
6923 func (s *GoogleCloudApigeeV1NatAddress) MarshalJSON() ([]byte, error) {
6924 type NoMethod GoogleCloudApigeeV1NatAddress
6925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6926 }
6927
6928
6929
6930 type GoogleCloudApigeeV1NodeConfig struct {
6931
6932
6933 CurrentAggregateNodeCount int64 `json:"currentAggregateNodeCount,omitempty,string"`
6934
6935
6936
6937
6938 MaxNodeCount int64 `json:"maxNodeCount,omitempty,string"`
6939
6940
6941
6942
6943 MinNodeCount int64 `json:"minNodeCount,omitempty,string"`
6944
6945
6946
6947
6948
6949 ForceSendFields []string `json:"-"`
6950
6951
6952
6953
6954 NullFields []string `json:"-"`
6955 }
6956
6957 func (s *GoogleCloudApigeeV1NodeConfig) MarshalJSON() ([]byte, error) {
6958 type NoMethod GoogleCloudApigeeV1NodeConfig
6959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6960 }
6961
6962
6963
6964 type GoogleCloudApigeeV1OASDocumentation struct {
6965
6966
6967
6968
6969
6970
6971 Format string `json:"format,omitempty"`
6972
6973
6974 Spec *GoogleCloudApigeeV1DocumentationFile `json:"spec,omitempty"`
6975
6976
6977
6978
6979
6980 ForceSendFields []string `json:"-"`
6981
6982
6983
6984
6985 NullFields []string `json:"-"`
6986 }
6987
6988 func (s *GoogleCloudApigeeV1OASDocumentation) MarshalJSON() ([]byte, error) {
6989 type NoMethod GoogleCloudApigeeV1OASDocumentation
6990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6991 }
6992
6993
6994
6995 type GoogleCloudApigeeV1Operation struct {
6996
6997
6998
6999 Methods []string `json:"methods,omitempty"`
7000
7001
7002 Resource string `json:"resource,omitempty"`
7003
7004
7005
7006
7007
7008 ForceSendFields []string `json:"-"`
7009
7010
7011
7012
7013 NullFields []string `json:"-"`
7014 }
7015
7016 func (s *GoogleCloudApigeeV1Operation) MarshalJSON() ([]byte, error) {
7017 type NoMethod GoogleCloudApigeeV1Operation
7018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7019 }
7020
7021
7022
7023
7024 type GoogleCloudApigeeV1OperationConfig struct {
7025
7026
7027 ApiSource string `json:"apiSource,omitempty"`
7028
7029 Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
7030
7031
7032
7033
7034 Operations []*GoogleCloudApigeeV1Operation `json:"operations,omitempty"`
7035
7036
7037
7038 Quota *GoogleCloudApigeeV1Quota `json:"quota,omitempty"`
7039
7040
7041
7042
7043
7044 ForceSendFields []string `json:"-"`
7045
7046
7047
7048
7049 NullFields []string `json:"-"`
7050 }
7051
7052 func (s *GoogleCloudApigeeV1OperationConfig) MarshalJSON() ([]byte, error) {
7053 type NoMethod GoogleCloudApigeeV1OperationConfig
7054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7055 }
7056
7057
7058
7059
7060 type GoogleCloudApigeeV1OperationGroup struct {
7061
7062
7063
7064
7065
7066 OperationConfigType string `json:"operationConfigType,omitempty"`
7067
7068
7069
7070 OperationConfigs []*GoogleCloudApigeeV1OperationConfig `json:"operationConfigs,omitempty"`
7071
7072
7073
7074
7075
7076 ForceSendFields []string `json:"-"`
7077
7078
7079
7080
7081 NullFields []string `json:"-"`
7082 }
7083
7084 func (s *GoogleCloudApigeeV1OperationGroup) MarshalJSON() ([]byte, error) {
7085 type NoMethod GoogleCloudApigeeV1OperationGroup
7086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7087 }
7088
7089
7090 type GoogleCloudApigeeV1OperationMetadata struct {
7091
7092
7093
7094
7095
7096 OperationType string `json:"operationType,omitempty"`
7097
7098 Progress *GoogleCloudApigeeV1OperationMetadataProgress `json:"progress,omitempty"`
7099
7100
7101
7102
7103
7104 State string `json:"state,omitempty"`
7105
7106
7107 TargetResourceName string `json:"targetResourceName,omitempty"`
7108
7109 Warnings []string `json:"warnings,omitempty"`
7110
7111
7112
7113
7114
7115 ForceSendFields []string `json:"-"`
7116
7117
7118
7119
7120 NullFields []string `json:"-"`
7121 }
7122
7123 func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
7124 type NoMethod GoogleCloudApigeeV1OperationMetadata
7125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7126 }
7127
7128
7129
7130 type GoogleCloudApigeeV1OperationMetadataProgress struct {
7131
7132 Description string `json:"description,omitempty"`
7133
7134 Details googleapi.RawMessage `json:"details,omitempty"`
7135
7136 PercentDone int64 `json:"percentDone,omitempty"`
7137
7138
7139
7140
7141
7142
7143
7144 State string `json:"state,omitempty"`
7145
7146
7147
7148
7149
7150 ForceSendFields []string `json:"-"`
7151
7152
7153
7154
7155 NullFields []string `json:"-"`
7156 }
7157
7158 func (s *GoogleCloudApigeeV1OperationMetadataProgress) MarshalJSON() ([]byte, error) {
7159 type NoMethod GoogleCloudApigeeV1OperationMetadataProgress
7160 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7161 }
7162
7163 type GoogleCloudApigeeV1OptimizedStats struct {
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174 Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
7175
7176
7177 googleapi.ServerResponse `json:"-"`
7178
7179
7180
7181
7182
7183 ForceSendFields []string `json:"-"`
7184
7185
7186
7187
7188 NullFields []string `json:"-"`
7189 }
7190
7191 func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
7192 type NoMethod GoogleCloudApigeeV1OptimizedStats
7193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7194 }
7195
7196
7197
7198
7199
7200
7201
7202
7203 type GoogleCloudApigeeV1OptimizedStatsNode struct {
7204 Data []interface{} `json:"data,omitempty"`
7205
7206
7207
7208
7209
7210 ForceSendFields []string `json:"-"`
7211
7212
7213
7214
7215 NullFields []string `json:"-"`
7216 }
7217
7218 func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
7219 type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
7220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7221 }
7222
7223
7224
7225 type GoogleCloudApigeeV1OptimizedStatsResponse struct {
7226
7227
7228 TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
7229
7230 MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
7231
7232
7233 ResultTruncated bool `json:"resultTruncated,omitempty"`
7234
7235 Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
7236
7237
7238
7239
7240
7241 ForceSendFields []string `json:"-"`
7242
7243
7244
7245
7246 NullFields []string `json:"-"`
7247 }
7248
7249 func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
7250 type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
7251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7252 }
7253
7254 type GoogleCloudApigeeV1Organization struct {
7255
7256 AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
7257
7258
7259
7260
7261
7262 AnalyticsRegion string `json:"analyticsRegion,omitempty"`
7263
7264
7265
7266
7267 ApiConsumerDataEncryptionKeyName string `json:"apiConsumerDataEncryptionKeyName,omitempty"`
7268
7269
7270
7271
7272
7273 ApiConsumerDataLocation string `json:"apiConsumerDataLocation,omitempty"`
7274
7275
7276
7277 ApigeeProjectId string `json:"apigeeProjectId,omitempty"`
7278
7279 Attributes []string `json:"attributes,omitempty"`
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 BillingType string `json:"billingType,omitempty"`
7305
7306
7307
7308 CaCertificate string `json:"caCertificate,omitempty"`
7309
7310
7311
7312
7313
7314 ControlPlaneEncryptionKeyName string `json:"controlPlaneEncryptionKeyName,omitempty"`
7315
7316
7317 CreatedAt int64 `json:"createdAt,omitempty,string"`
7318
7319 CustomerName string `json:"customerName,omitempty"`
7320
7321 Description string `json:"description,omitempty"`
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 DisableVpcPeering bool `json:"disableVpcPeering,omitempty"`
7334
7335
7336 DisplayName string `json:"displayName,omitempty"`
7337
7338 Environments []string `json:"environments,omitempty"`
7339
7340
7341 ExpiresAt int64 `json:"expiresAt,omitempty,string"`
7342
7343
7344 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
7345
7346 Name string `json:"name,omitempty"`
7347
7348 PortalDisabled bool `json:"portalDisabled,omitempty"`
7349
7350 ProjectId string `json:"projectId,omitempty"`
7351
7352 Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
7353
7354
7355
7356
7357
7358
7359 RuntimeDatabaseEncryptionKeyName string `json:"runtimeDatabaseEncryptionKeyName,omitempty"`
7360
7361
7362
7363
7364
7365
7366
7367 RuntimeType string `json:"runtimeType,omitempty"`
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 State string `json:"state,omitempty"`
7378
7379
7380
7381
7382
7383
7384
7385
7386 SubscriptionPlan string `json:"subscriptionPlan,omitempty"`
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398 SubscriptionType string `json:"subscriptionType,omitempty"`
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408 Type string `json:"type,omitempty"`
7409
7410
7411 googleapi.ServerResponse `json:"-"`
7412
7413
7414
7415
7416
7417 ForceSendFields []string `json:"-"`
7418
7419
7420
7421
7422 NullFields []string `json:"-"`
7423 }
7424
7425 func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
7426 type NoMethod GoogleCloudApigeeV1Organization
7427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7428 }
7429
7430 type GoogleCloudApigeeV1OrganizationProjectMapping struct {
7431
7432
7433
7434 Location string `json:"location,omitempty"`
7435
7436 Organization string `json:"organization,omitempty"`
7437
7438 ProjectId string `json:"projectId,omitempty"`
7439
7440
7441 ProjectIds []string `json:"projectIds,omitempty"`
7442
7443
7444 googleapi.ServerResponse `json:"-"`
7445
7446
7447
7448
7449
7450 ForceSendFields []string `json:"-"`
7451
7452
7453
7454
7455 NullFields []string `json:"-"`
7456 }
7457
7458 func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
7459 type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
7460 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7461 }
7462
7463 type GoogleCloudApigeeV1PodStatus struct {
7464
7465 AppVersion string `json:"appVersion,omitempty"`
7466
7467
7468
7469 DeploymentStatus string `json:"deploymentStatus,omitempty"`
7470
7471
7472 DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
7473
7474 DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
7475
7476 PodName string `json:"podName,omitempty"`
7477
7478
7479
7480
7481 PodStatus string `json:"podStatus,omitempty"`
7482
7483 PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
7484
7485 StatusCode string `json:"statusCode,omitempty"`
7486
7487 StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
7488
7489
7490
7491
7492
7493 ForceSendFields []string `json:"-"`
7494
7495
7496
7497
7498 NullFields []string `json:"-"`
7499 }
7500
7501 func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
7502 type NoMethod GoogleCloudApigeeV1PodStatus
7503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7504 }
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 type GoogleCloudApigeeV1Point struct {
7517
7518 Id string `json:"id,omitempty"`
7519
7520 Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
7521
7522
7523
7524
7525
7526 ForceSendFields []string `json:"-"`
7527
7528
7529
7530
7531 NullFields []string `json:"-"`
7532 }
7533
7534 func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
7535 type NoMethod GoogleCloudApigeeV1Point
7536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7537 }
7538
7539
7540
7541 type GoogleCloudApigeeV1ProfileConfig struct {
7542
7543 Categories []*GoogleCloudApigeeV1ProfileConfigCategory `json:"categories,omitempty"`
7544
7545
7546
7547
7548
7549 ForceSendFields []string `json:"-"`
7550
7551
7552
7553
7554 NullFields []string `json:"-"`
7555 }
7556
7557 func (s *GoogleCloudApigeeV1ProfileConfig) MarshalJSON() ([]byte, error) {
7558 type NoMethod GoogleCloudApigeeV1ProfileConfig
7559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7560 }
7561
7562
7563
7564
7565
7566 type GoogleCloudApigeeV1ProfileConfigAbuse struct {
7567 }
7568
7569
7570
7571 type GoogleCloudApigeeV1ProfileConfigAuthorization struct {
7572 }
7573
7574
7575
7576 type GoogleCloudApigeeV1ProfileConfigCORS struct {
7577 }
7578
7579
7580
7581 type GoogleCloudApigeeV1ProfileConfigCategory struct {
7582
7583
7584
7585 Abuse *GoogleCloudApigeeV1ProfileConfigAbuse `json:"abuse,omitempty"`
7586
7587 Authorization *GoogleCloudApigeeV1ProfileConfigAuthorization `json:"authorization,omitempty"`
7588
7589 Cors *GoogleCloudApigeeV1ProfileConfigCORS `json:"cors,omitempty"`
7590
7591 Mediation *GoogleCloudApigeeV1ProfileConfigMediation `json:"mediation,omitempty"`
7592
7593 Mtls *GoogleCloudApigeeV1ProfileConfigMTLS `json:"mtls,omitempty"`
7594
7595 Threat *GoogleCloudApigeeV1ProfileConfigThreat `json:"threat,omitempty"`
7596
7597
7598
7599
7600
7601 ForceSendFields []string `json:"-"`
7602
7603
7604
7605
7606 NullFields []string `json:"-"`
7607 }
7608
7609 func (s *GoogleCloudApigeeV1ProfileConfigCategory) MarshalJSON() ([]byte, error) {
7610 type NoMethod GoogleCloudApigeeV1ProfileConfigCategory
7611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7612 }
7613
7614
7615
7616 type GoogleCloudApigeeV1ProfileConfigMTLS struct {
7617 }
7618
7619
7620
7621 type GoogleCloudApigeeV1ProfileConfigMediation struct {
7622 }
7623
7624
7625
7626 type GoogleCloudApigeeV1ProfileConfigThreat struct {
7627 }
7628
7629
7630
7631 type GoogleCloudApigeeV1Properties struct {
7632
7633 Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
7634
7635
7636
7637
7638
7639 ForceSendFields []string `json:"-"`
7640
7641
7642
7643
7644 NullFields []string `json:"-"`
7645 }
7646
7647 func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
7648 type NoMethod GoogleCloudApigeeV1Properties
7649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7650 }
7651
7652
7653
7654 type GoogleCloudApigeeV1Property struct {
7655
7656 Name string `json:"name,omitempty"`
7657
7658 Value string `json:"value,omitempty"`
7659
7660
7661
7662
7663
7664 ForceSendFields []string `json:"-"`
7665
7666
7667
7668
7669 NullFields []string `json:"-"`
7670 }
7671
7672 func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
7673 type NoMethod GoogleCloudApigeeV1Property
7674 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7675 }
7676
7677
7678
7679 type GoogleCloudApigeeV1ProvisionOrganizationRequest struct {
7680
7681
7682
7683
7684 AnalyticsRegion string `json:"analyticsRegion,omitempty"`
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695 AuthorizedNetwork string `json:"authorizedNetwork,omitempty"`
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 DisableVpcPeering bool `json:"disableVpcPeering,omitempty"`
7707
7708
7709
7710 RuntimeLocation string `json:"runtimeLocation,omitempty"`
7711
7712
7713
7714
7715
7716 ForceSendFields []string `json:"-"`
7717
7718
7719
7720
7721 NullFields []string `json:"-"`
7722 }
7723
7724 func (s *GoogleCloudApigeeV1ProvisionOrganizationRequest) MarshalJSON() ([]byte, error) {
7725 type NoMethod GoogleCloudApigeeV1ProvisionOrganizationRequest
7726 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7727 }
7728
7729 type GoogleCloudApigeeV1Query struct {
7730
7731
7732
7733 CsvDelimiter string `json:"csvDelimiter,omitempty"`
7734
7735
7736 Dimensions []string `json:"dimensions,omitempty"`
7737
7738
7739
7740
7741 EnvgroupHostname string `json:"envgroupHostname,omitempty"`
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 Filter string `json:"filter,omitempty"`
7752
7753
7754
7755
7756
7757
7758 GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
7759
7760 Limit int64 `json:"limit,omitempty"`
7761
7762 Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
7763
7764 Name string `json:"name,omitempty"`
7765
7766
7767
7768 OutputFormat string `json:"outputFormat,omitempty"`
7769
7770 ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
7771
7772
7773
7774
7775
7776
7777 TimeRange interface{} `json:"timeRange,omitempty"`
7778
7779
7780
7781
7782
7783 ForceSendFields []string `json:"-"`
7784
7785
7786
7787
7788 NullFields []string `json:"-"`
7789 }
7790
7791 func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
7792 type NoMethod GoogleCloudApigeeV1Query
7793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7794 }
7795
7796 type GoogleCloudApigeeV1QueryMetadata struct {
7797
7798 Dimensions []string `json:"dimensions,omitempty"`
7799
7800 EndTimestamp string `json:"endTimestamp,omitempty"`
7801
7802
7803 Metrics []string `json:"metrics,omitempty"`
7804
7805 OutputFormat string `json:"outputFormat,omitempty"`
7806
7807 StartTimestamp string `json:"startTimestamp,omitempty"`
7808
7809 TimeUnit string `json:"timeUnit,omitempty"`
7810
7811
7812
7813
7814
7815 ForceSendFields []string `json:"-"`
7816
7817
7818
7819
7820 NullFields []string `json:"-"`
7821 }
7822
7823 func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
7824 type NoMethod GoogleCloudApigeeV1QueryMetadata
7825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7826 }
7827
7828
7829
7830 type GoogleCloudApigeeV1QueryMetric struct {
7831
7832
7833 Alias string `json:"alias,omitempty"`
7834
7835 Function string `json:"function,omitempty"`
7836
7837 Name string `json:"name,omitempty"`
7838
7839 Operator string `json:"operator,omitempty"`
7840
7841 Value string `json:"value,omitempty"`
7842
7843
7844
7845
7846
7847 ForceSendFields []string `json:"-"`
7848
7849
7850
7851
7852 NullFields []string `json:"-"`
7853 }
7854
7855 func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
7856 type NoMethod GoogleCloudApigeeV1QueryMetric
7857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7858 }
7859
7860
7861
7862 type GoogleCloudApigeeV1QueryTabularStatsRequest struct {
7863
7864 Dimensions []string `json:"dimensions,omitempty"`
7865
7866
7867
7868
7869 Filter string `json:"filter,omitempty"`
7870
7871 Metrics []*GoogleCloudApigeeV1MetricAggregation `json:"metrics,omitempty"`
7872
7873 PageSize int64 `json:"pageSize,omitempty"`
7874
7875 PageToken string `json:"pageToken,omitempty"`
7876
7877 TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
7878
7879
7880
7881
7882
7883 ForceSendFields []string `json:"-"`
7884
7885
7886
7887
7888 NullFields []string `json:"-"`
7889 }
7890
7891 func (s *GoogleCloudApigeeV1QueryTabularStatsRequest) MarshalJSON() ([]byte, error) {
7892 type NoMethod GoogleCloudApigeeV1QueryTabularStatsRequest
7893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7894 }
7895
7896
7897
7898
7899
7900 type GoogleCloudApigeeV1QueryTabularStatsResponse struct {
7901
7902
7903 Columns []string `json:"columns,omitempty"`
7904
7905 NextPageToken string `json:"nextPageToken,omitempty"`
7906
7907 Values [][]interface{} `json:"values,omitempty"`
7908
7909
7910 googleapi.ServerResponse `json:"-"`
7911
7912
7913
7914
7915
7916 ForceSendFields []string `json:"-"`
7917
7918
7919
7920
7921 NullFields []string `json:"-"`
7922 }
7923
7924 func (s *GoogleCloudApigeeV1QueryTabularStatsResponse) MarshalJSON() ([]byte, error) {
7925 type NoMethod GoogleCloudApigeeV1QueryTabularStatsResponse
7926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7927 }
7928
7929
7930
7931
7932 type GoogleCloudApigeeV1QueryTimeSeriesStatsRequest struct {
7933
7934
7935
7936 Dimensions []string `json:"dimensions,omitempty"`
7937
7938
7939
7940
7941 Filter string `json:"filter,omitempty"`
7942
7943 Metrics []*GoogleCloudApigeeV1MetricAggregation `json:"metrics,omitempty"`
7944
7945
7946 PageSize int64 `json:"pageSize,omitempty"`
7947
7948
7949 PageToken string `json:"pageToken,omitempty"`
7950
7951 TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
7952
7953
7954
7955
7956
7957
7958
7959 TimestampOrder string `json:"timestampOrder,omitempty"`
7960
7961
7962
7963
7964
7965
7966
7967
7968 WindowSize string `json:"windowSize,omitempty"`
7969
7970
7971
7972
7973
7974 ForceSendFields []string `json:"-"`
7975
7976
7977
7978
7979 NullFields []string `json:"-"`
7980 }
7981
7982 func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest) MarshalJSON() ([]byte, error) {
7983 type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsRequest
7984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7985 }
7986
7987
7988
7989 type GoogleCloudApigeeV1QueryTimeSeriesStatsResponse struct {
7990
7991
7992 Columns []string `json:"columns,omitempty"`
7993
7994 NextPageToken string `json:"nextPageToken,omitempty"`
7995
7996 Values []*GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence `json:"values,omitempty"`
7997
7998
7999 googleapi.ServerResponse `json:"-"`
8000
8001
8002
8003
8004
8005 ForceSendFields []string `json:"-"`
8006
8007
8008
8009
8010 NullFields []string `json:"-"`
8011 }
8012
8013 func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsResponse) MarshalJSON() ([]byte, error) {
8014 type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsResponse
8015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8016 }
8017
8018
8019
8020 type GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence struct {
8021
8022
8023 Dimensions map[string]string `json:"dimensions,omitempty"`
8024
8025 Points [][]interface{} `json:"points,omitempty"`
8026
8027
8028
8029
8030
8031 ForceSendFields []string `json:"-"`
8032
8033
8034
8035
8036 NullFields []string `json:"-"`
8037 }
8038
8039 func (s *GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence) MarshalJSON() ([]byte, error) {
8040 type NoMethod GoogleCloudApigeeV1QueryTimeSeriesStatsResponseSequence
8041 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8042 }
8043
8044
8045
8046
8047
8048 type GoogleCloudApigeeV1Quota struct {
8049
8050
8051 Interval string `json:"interval,omitempty"`
8052
8053
8054 Limit string `json:"limit,omitempty"`
8055
8056
8057
8058 TimeUnit string `json:"timeUnit,omitempty"`
8059
8060
8061
8062
8063
8064 ForceSendFields []string `json:"-"`
8065
8066
8067
8068
8069 NullFields []string `json:"-"`
8070 }
8071
8072 func (s *GoogleCloudApigeeV1Quota) MarshalJSON() ([]byte, error) {
8073 type NoMethod GoogleCloudApigeeV1Quota
8074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8075 }
8076
8077
8078 type GoogleCloudApigeeV1RatePlan struct {
8079
8080 Apiproduct string `json:"apiproduct,omitempty"`
8081
8082
8083
8084
8085
8086
8087
8088 BillingPeriod string `json:"billingPeriod,omitempty"`
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 ConsumptionPricingRates []*GoogleCloudApigeeV1RateRange `json:"consumptionPricingRates,omitempty"`
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113 ConsumptionPricingType string `json:"consumptionPricingType,omitempty"`
8114
8115
8116 CreatedAt int64 `json:"createdAt,omitempty,string"`
8117
8118
8119
8120 CurrencyCode string `json:"currencyCode,omitempty"`
8121
8122 Description string `json:"description,omitempty"`
8123
8124 DisplayName string `json:"displayName,omitempty"`
8125
8126
8127 EndTime int64 `json:"endTime,omitempty,string"`
8128
8129 FixedFeeFrequency int64 `json:"fixedFeeFrequency,omitempty"`
8130
8131
8132
8133 FixedRecurringFee *GoogleTypeMoney `json:"fixedRecurringFee,omitempty"`
8134
8135
8136 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
8137
8138 Name string `json:"name,omitempty"`
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 PaymentFundingModel string `json:"paymentFundingModel,omitempty"`
8152
8153 RevenueShareRates []*GoogleCloudApigeeV1RevenueShareRange `json:"revenueShareRates,omitempty"`
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 RevenueShareType string `json:"revenueShareType,omitempty"`
8166
8167 SetupFee *GoogleTypeMoney `json:"setupFee,omitempty"`
8168
8169
8170 StartTime int64 `json:"startTime,omitempty,string"`
8171
8172
8173
8174
8175
8176
8177
8178 State string `json:"state,omitempty"`
8179
8180
8181 googleapi.ServerResponse `json:"-"`
8182
8183
8184
8185
8186
8187 ForceSendFields []string `json:"-"`
8188
8189
8190
8191
8192 NullFields []string `json:"-"`
8193 }
8194
8195 func (s *GoogleCloudApigeeV1RatePlan) MarshalJSON() ([]byte, error) {
8196 type NoMethod GoogleCloudApigeeV1RatePlan
8197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8198 }
8199
8200
8201
8202 type GoogleCloudApigeeV1RateRange struct {
8203
8204
8205 End int64 `json:"end,omitempty,string"`
8206
8207 Fee *GoogleTypeMoney `json:"fee,omitempty"`
8208
8209
8210 Start int64 `json:"start,omitempty,string"`
8211
8212
8213
8214
8215
8216 ForceSendFields []string `json:"-"`
8217
8218
8219
8220
8221 NullFields []string `json:"-"`
8222 }
8223
8224 func (s *GoogleCloudApigeeV1RateRange) MarshalJSON() ([]byte, error) {
8225 type NoMethod GoogleCloudApigeeV1RateRange
8226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8227 }
8228
8229
8230
8231 type GoogleCloudApigeeV1Reference struct {
8232
8233 Description string `json:"description,omitempty"`
8234
8235
8236 Name string `json:"name,omitempty"`
8237
8238
8239
8240 Refers string `json:"refers,omitempty"`
8241
8242
8243 ResourceType string `json:"resourceType,omitempty"`
8244
8245
8246 googleapi.ServerResponse `json:"-"`
8247
8248
8249
8250
8251
8252 ForceSendFields []string `json:"-"`
8253
8254
8255
8256
8257 NullFields []string `json:"-"`
8258 }
8259
8260 func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
8261 type NoMethod GoogleCloudApigeeV1Reference
8262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8263 }
8264
8265 type GoogleCloudApigeeV1ReferenceConfig struct {
8266
8267
8268 Name string `json:"name,omitempty"`
8269
8270
8271
8272 ResourceName string `json:"resourceName,omitempty"`
8273
8274
8275
8276
8277
8278 ForceSendFields []string `json:"-"`
8279
8280
8281
8282
8283 NullFields []string `json:"-"`
8284 }
8285
8286 func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
8287 type NoMethod GoogleCloudApigeeV1ReferenceConfig
8288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8289 }
8290
8291
8292
8293 type GoogleCloudApigeeV1ReportInstanceStatusRequest struct {
8294
8295
8296
8297 InstanceUid string `json:"instanceUid,omitempty"`
8298
8299
8300
8301 ReportTime string `json:"reportTime,omitempty"`
8302
8303 Resources []*GoogleCloudApigeeV1ResourceStatus `json:"resources,omitempty"`
8304
8305
8306
8307
8308
8309 ForceSendFields []string `json:"-"`
8310
8311
8312
8313
8314 NullFields []string `json:"-"`
8315 }
8316
8317 func (s *GoogleCloudApigeeV1ReportInstanceStatusRequest) MarshalJSON() ([]byte, error) {
8318 type NoMethod GoogleCloudApigeeV1ReportInstanceStatusRequest
8319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8320 }
8321
8322
8323
8324 type GoogleCloudApigeeV1ReportInstanceStatusResponse struct {
8325
8326 googleapi.ServerResponse `json:"-"`
8327 }
8328
8329 type GoogleCloudApigeeV1ReportProperty struct {
8330
8331 Property string `json:"property,omitempty"`
8332
8333 Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
8334
8335
8336
8337
8338
8339 ForceSendFields []string `json:"-"`
8340
8341
8342
8343
8344 NullFields []string `json:"-"`
8345 }
8346
8347 func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
8348 type NoMethod GoogleCloudApigeeV1ReportProperty
8349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8350 }
8351
8352 type GoogleCloudApigeeV1ResourceConfig struct {
8353
8354 Location string `json:"location,omitempty"`
8355
8356
8357
8358 Name string `json:"name,omitempty"`
8359
8360
8361
8362
8363
8364 ForceSendFields []string `json:"-"`
8365
8366
8367
8368
8369 NullFields []string `json:"-"`
8370 }
8371
8372 func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
8373 type NoMethod GoogleCloudApigeeV1ResourceConfig
8374 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8375 }
8376
8377
8378 type GoogleCloudApigeeV1ResourceFile struct {
8379
8380 Name string `json:"name,omitempty"`
8381
8382 Type string `json:"type,omitempty"`
8383
8384
8385 googleapi.ServerResponse `json:"-"`
8386
8387
8388
8389
8390
8391 ForceSendFields []string `json:"-"`
8392
8393
8394
8395
8396 NullFields []string `json:"-"`
8397 }
8398
8399 func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
8400 type NoMethod GoogleCloudApigeeV1ResourceFile
8401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8402 }
8403
8404
8405 type GoogleCloudApigeeV1ResourceFiles struct {
8406
8407 ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
8408
8409
8410
8411
8412
8413 ForceSendFields []string `json:"-"`
8414
8415
8416
8417
8418 NullFields []string `json:"-"`
8419 }
8420
8421 func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
8422 type NoMethod GoogleCloudApigeeV1ResourceFiles
8423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8424 }
8425
8426
8427
8428 type GoogleCloudApigeeV1ResourceStatus struct {
8429
8430
8431
8432
8433 Resource string `json:"resource,omitempty"`
8434
8435 Revisions []*GoogleCloudApigeeV1RevisionStatus `json:"revisions,omitempty"`
8436
8437 TotalReplicas int64 `json:"totalReplicas,omitempty"`
8438
8439
8440
8441 Uid string `json:"uid,omitempty"`
8442
8443
8444
8445
8446
8447 ForceSendFields []string `json:"-"`
8448
8449
8450
8451
8452 NullFields []string `json:"-"`
8453 }
8454
8455 func (s *GoogleCloudApigeeV1ResourceStatus) MarshalJSON() ([]byte, error) {
8456 type NoMethod GoogleCloudApigeeV1ResourceStatus
8457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8458 }
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 type GoogleCloudApigeeV1Result struct {
8475
8476
8477 ActionResult string `json:"ActionResult,omitempty"`
8478
8479
8480 AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
8481
8482
8483
8484 Content string `json:"content,omitempty"`
8485
8486
8487
8488 Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
8489
8490 Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
8491
8492 ReasonPhrase string `json:"reasonPhrase,omitempty"`
8493
8494 StatusCode string `json:"statusCode,omitempty"`
8495
8496
8497 Timestamp string `json:"timestamp,omitempty"`
8498
8499 URI string `json:"uRI,omitempty"`
8500
8501 Verb string `json:"verb,omitempty"`
8502
8503
8504
8505
8506
8507 ForceSendFields []string `json:"-"`
8508
8509
8510
8511
8512 NullFields []string `json:"-"`
8513 }
8514
8515 func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
8516 type NoMethod GoogleCloudApigeeV1Result
8517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8518 }
8519
8520
8521
8522
8523 type GoogleCloudApigeeV1RevenueShareRange struct {
8524
8525
8526 End int64 `json:"end,omitempty,string"`
8527
8528
8529
8530
8531 SharePercentage float64 `json:"sharePercentage,omitempty"`
8532
8533
8534 Start int64 `json:"start,omitempty,string"`
8535
8536
8537
8538
8539
8540 ForceSendFields []string `json:"-"`
8541
8542
8543
8544
8545 NullFields []string `json:"-"`
8546 }
8547
8548 func (s *GoogleCloudApigeeV1RevenueShareRange) MarshalJSON() ([]byte, error) {
8549 type NoMethod GoogleCloudApigeeV1RevenueShareRange
8550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8551 }
8552
8553 func (s *GoogleCloudApigeeV1RevenueShareRange) UnmarshalJSON(data []byte) error {
8554 type NoMethod GoogleCloudApigeeV1RevenueShareRange
8555 var s1 struct {
8556 SharePercentage gensupport.JSONFloat64 `json:"sharePercentage"`
8557 *NoMethod
8558 }
8559 s1.NoMethod = (*NoMethod)(s)
8560 if err := json.Unmarshal(data, &s1); err != nil {
8561 return err
8562 }
8563 s.SharePercentage = float64(s1.SharePercentage)
8564 return nil
8565 }
8566
8567
8568
8569 type GoogleCloudApigeeV1RevisionStatus struct {
8570
8571 Errors []*GoogleCloudApigeeV1UpdateError `json:"errors,omitempty"`
8572
8573
8574 JsonSpec string `json:"jsonSpec,omitempty"`
8575
8576
8577 Replicas int64 `json:"replicas,omitempty"`
8578
8579 RevisionId string `json:"revisionId,omitempty"`
8580
8581
8582
8583
8584
8585 ForceSendFields []string `json:"-"`
8586
8587
8588
8589
8590 NullFields []string `json:"-"`
8591 }
8592
8593 func (s *GoogleCloudApigeeV1RevisionStatus) MarshalJSON() ([]byte, error) {
8594 type NoMethod GoogleCloudApigeeV1RevisionStatus
8595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8596 }
8597
8598 type GoogleCloudApigeeV1RoutingRule struct {
8599
8600
8601
8602 Basepath string `json:"basepath,omitempty"`
8603
8604
8605
8606
8607 DeploymentGroup string `json:"deploymentGroup,omitempty"`
8608
8609
8610
8611
8612
8613
8614 EnvGroupRevision int64 `json:"envGroupRevision,omitempty,string"`
8615
8616
8617
8618 Environment string `json:"environment,omitempty"`
8619
8620
8621 OtherTargets []string `json:"otherTargets,omitempty"`
8622
8623
8624
8625
8626
8627 Receiver string `json:"receiver,omitempty"`
8628
8629
8630
8631
8632 UpdateTime string `json:"updateTime,omitempty"`
8633
8634
8635
8636
8637
8638 ForceSendFields []string `json:"-"`
8639
8640
8641
8642
8643 NullFields []string `json:"-"`
8644 }
8645
8646 func (s *GoogleCloudApigeeV1RoutingRule) MarshalJSON() ([]byte, error) {
8647 type NoMethod GoogleCloudApigeeV1RoutingRule
8648 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8649 }
8650
8651
8652
8653 type GoogleCloudApigeeV1RuntimeAddonsConfig struct {
8654
8655 AnalyticsConfig *GoogleCloudApigeeV1RuntimeAnalyticsConfig `json:"analyticsConfig,omitempty"`
8656
8657 ApiSecurityConfig *GoogleCloudApigeeV1RuntimeApiSecurityConfig `json:"apiSecurityConfig,omitempty"`
8658
8659
8660 Name string `json:"name,omitempty"`
8661
8662 RevisionId string `json:"revisionId,omitempty"`
8663
8664
8665
8666 Uid string `json:"uid,omitempty"`
8667
8668
8669
8670
8671
8672 ForceSendFields []string `json:"-"`
8673
8674
8675
8676
8677 NullFields []string `json:"-"`
8678 }
8679
8680 func (s *GoogleCloudApigeeV1RuntimeAddonsConfig) MarshalJSON() ([]byte, error) {
8681 type NoMethod GoogleCloudApigeeV1RuntimeAddonsConfig
8682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8683 }
8684
8685
8686
8687 type GoogleCloudApigeeV1RuntimeAnalyticsConfig struct {
8688
8689 BillingPipelineEnabled bool `json:"billingPipelineEnabled,omitempty"`
8690
8691 Enabled bool `json:"enabled,omitempty"`
8692
8693
8694
8695
8696
8697 ForceSendFields []string `json:"-"`
8698
8699
8700
8701
8702 NullFields []string `json:"-"`
8703 }
8704
8705 func (s *GoogleCloudApigeeV1RuntimeAnalyticsConfig) MarshalJSON() ([]byte, error) {
8706 type NoMethod GoogleCloudApigeeV1RuntimeAnalyticsConfig
8707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8708 }
8709
8710
8711
8712 type GoogleCloudApigeeV1RuntimeApiSecurityConfig struct {
8713
8714 Enabled bool `json:"enabled,omitempty"`
8715
8716
8717
8718
8719
8720 ForceSendFields []string `json:"-"`
8721
8722
8723
8724
8725 NullFields []string `json:"-"`
8726 }
8727
8728 func (s *GoogleCloudApigeeV1RuntimeApiSecurityConfig) MarshalJSON() ([]byte, error) {
8729 type NoMethod GoogleCloudApigeeV1RuntimeApiSecurityConfig
8730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8731 }
8732
8733
8734
8735 type GoogleCloudApigeeV1RuntimeConfig struct {
8736
8737 AnalyticsBucket string `json:"analyticsBucket,omitempty"`
8738
8739
8740 Name string `json:"name,omitempty"`
8741
8742
8743
8744
8745
8746
8747
8748 TenantProjectId string `json:"tenantProjectId,omitempty"`
8749
8750 TraceBucket string `json:"traceBucket,omitempty"`
8751
8752
8753 googleapi.ServerResponse `json:"-"`
8754
8755
8756
8757
8758
8759 ForceSendFields []string `json:"-"`
8760
8761
8762
8763
8764 NullFields []string `json:"-"`
8765 }
8766
8767 func (s *GoogleCloudApigeeV1RuntimeConfig) MarshalJSON() ([]byte, error) {
8768 type NoMethod GoogleCloudApigeeV1RuntimeConfig
8769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8770 }
8771
8772
8773
8774 type GoogleCloudApigeeV1RuntimeTraceConfig struct {
8775
8776 Endpoint string `json:"endpoint,omitempty"`
8777
8778
8779
8780
8781
8782
8783
8784
8785 Exporter string `json:"exporter,omitempty"`
8786
8787
8788 Name string `json:"name,omitempty"`
8789
8790 Overrides []*GoogleCloudApigeeV1RuntimeTraceConfigOverride `json:"overrides,omitempty"`
8791
8792 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
8793
8794
8795 RevisionId string `json:"revisionId,omitempty"`
8796
8797 SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
8798
8799
8800
8801
8802
8803 ForceSendFields []string `json:"-"`
8804
8805
8806
8807
8808 NullFields []string `json:"-"`
8809 }
8810
8811 func (s *GoogleCloudApigeeV1RuntimeTraceConfig) MarshalJSON() ([]byte, error) {
8812 type NoMethod GoogleCloudApigeeV1RuntimeTraceConfig
8813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8814 }
8815
8816
8817
8818 type GoogleCloudApigeeV1RuntimeTraceConfigOverride struct {
8819
8820
8821 ApiProxy string `json:"apiProxy,omitempty"`
8822
8823
8824 Name string `json:"name,omitempty"`
8825
8826 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
8827
8828
8829 RevisionId string `json:"revisionId,omitempty"`
8830
8831
8832 SamplingConfig *GoogleCloudApigeeV1RuntimeTraceSamplingConfig `json:"samplingConfig,omitempty"`
8833
8834
8835
8836 Uid string `json:"uid,omitempty"`
8837
8838
8839
8840
8841
8842 ForceSendFields []string `json:"-"`
8843
8844
8845
8846
8847 NullFields []string `json:"-"`
8848 }
8849
8850 func (s *GoogleCloudApigeeV1RuntimeTraceConfigOverride) MarshalJSON() ([]byte, error) {
8851 type NoMethod GoogleCloudApigeeV1RuntimeTraceConfigOverride
8852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8853 }
8854
8855
8856
8857
8858
8859
8860 type GoogleCloudApigeeV1RuntimeTraceSamplingConfig struct {
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870 Sampler string `json:"sampler,omitempty"`
8871
8872
8873 SamplingRate float64 `json:"samplingRate,omitempty"`
8874
8875
8876
8877
8878
8879 ForceSendFields []string `json:"-"`
8880
8881
8882
8883
8884 NullFields []string `json:"-"`
8885 }
8886
8887 func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) MarshalJSON() ([]byte, error) {
8888 type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
8889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8890 }
8891
8892 func (s *GoogleCloudApigeeV1RuntimeTraceSamplingConfig) UnmarshalJSON(data []byte) error {
8893 type NoMethod GoogleCloudApigeeV1RuntimeTraceSamplingConfig
8894 var s1 struct {
8895 SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
8896 *NoMethod
8897 }
8898 s1.NoMethod = (*NoMethod)(s)
8899 if err := json.Unmarshal(data, &s1); err != nil {
8900 return err
8901 }
8902 s.SamplingRate = float64(s1.SamplingRate)
8903 return nil
8904 }
8905
8906
8907 type GoogleCloudApigeeV1Schema struct {
8908
8909 Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
8910
8911
8912 Meta []string `json:"meta,omitempty"`
8913
8914
8915 Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
8916
8917
8918 googleapi.ServerResponse `json:"-"`
8919
8920
8921
8922
8923
8924 ForceSendFields []string `json:"-"`
8925
8926
8927
8928
8929 NullFields []string `json:"-"`
8930 }
8931
8932 func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
8933 type NoMethod GoogleCloudApigeeV1Schema
8934 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8935 }
8936
8937
8938 type GoogleCloudApigeeV1SchemaSchemaElement struct {
8939
8940 Name string `json:"name,omitempty"`
8941
8942
8943 Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
8944
8945
8946
8947
8948
8949 ForceSendFields []string `json:"-"`
8950
8951
8952
8953
8954 NullFields []string `json:"-"`
8955 }
8956
8957 func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
8958 type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
8959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8960 }
8961
8962
8963 type GoogleCloudApigeeV1SchemaSchemaProperty struct {
8964
8965
8966 CreateTime string `json:"createTime,omitempty"`
8967
8968
8969
8970 Custom string `json:"custom,omitempty"`
8971
8972 Type string `json:"type,omitempty"`
8973
8974
8975
8976
8977
8978 ForceSendFields []string `json:"-"`
8979
8980
8981
8982
8983 NullFields []string `json:"-"`
8984 }
8985
8986 func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
8987 type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
8988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8989 }
8990
8991
8992 type GoogleCloudApigeeV1Score struct {
8993
8994 Component *GoogleCloudApigeeV1ScoreComponent `json:"component,omitempty"`
8995
8996 Subcomponents []*GoogleCloudApigeeV1ScoreComponent `json:"subcomponents,omitempty"`
8997
8998 TimeRange *GoogleTypeInterval `json:"timeRange,omitempty"`
8999
9000
9001
9002
9003
9004 ForceSendFields []string `json:"-"`
9005
9006
9007
9008
9009 NullFields []string `json:"-"`
9010 }
9011
9012 func (s *GoogleCloudApigeeV1Score) MarshalJSON() ([]byte, error) {
9013 type NoMethod GoogleCloudApigeeV1Score
9014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9015 }
9016
9017
9018
9019 type GoogleCloudApigeeV1ScoreComponent struct {
9020
9021 CalculateTime string `json:"calculateTime,omitempty"`
9022
9023
9024 DataCaptureTime string `json:"dataCaptureTime,omitempty"`
9025
9026 DrilldownPaths []string `json:"drilldownPaths,omitempty"`
9027
9028 Recommendations []*GoogleCloudApigeeV1ScoreComponentRecommendation `json:"recommendations,omitempty"`
9029
9030 Score int64 `json:"score,omitempty"`
9031
9032
9033 ScorePath string `json:"scorePath,omitempty"`
9034
9035
9036
9037
9038
9039 ForceSendFields []string `json:"-"`
9040
9041
9042
9043
9044 NullFields []string `json:"-"`
9045 }
9046
9047 func (s *GoogleCloudApigeeV1ScoreComponent) MarshalJSON() ([]byte, error) {
9048 type NoMethod GoogleCloudApigeeV1ScoreComponent
9049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9050 }
9051
9052
9053
9054 type GoogleCloudApigeeV1ScoreComponentRecommendation struct {
9055
9056 Actions []*GoogleCloudApigeeV1ScoreComponentRecommendationAction `json:"actions,omitempty"`
9057
9058 Description string `json:"description,omitempty"`
9059
9060
9061 Impact int64 `json:"impact,omitempty"`
9062
9063 Title string `json:"title,omitempty"`
9064
9065
9066
9067
9068
9069 ForceSendFields []string `json:"-"`
9070
9071
9072
9073
9074 NullFields []string `json:"-"`
9075 }
9076
9077 func (s *GoogleCloudApigeeV1ScoreComponentRecommendation) MarshalJSON() ([]byte, error) {
9078 type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendation
9079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9080 }
9081
9082
9083
9084 type GoogleCloudApigeeV1ScoreComponentRecommendationAction struct {
9085
9086 ActionContext *GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext `json:"actionContext,omitempty"`
9087
9088 Description string `json:"description,omitempty"`
9089
9090
9091
9092
9093
9094 ForceSendFields []string `json:"-"`
9095
9096
9097
9098
9099 NullFields []string `json:"-"`
9100 }
9101
9102 func (s *GoogleCloudApigeeV1ScoreComponentRecommendationAction) MarshalJSON() ([]byte, error) {
9103 type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendationAction
9104 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9105 }
9106
9107
9108
9109 type GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext struct {
9110
9111 DocumentationLink string `json:"documentationLink,omitempty"`
9112
9113
9114
9115
9116
9117 ForceSendFields []string `json:"-"`
9118
9119
9120
9121
9122 NullFields []string `json:"-"`
9123 }
9124
9125 func (s *GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext) MarshalJSON() ([]byte, error) {
9126 type NoMethod GoogleCloudApigeeV1ScoreComponentRecommendationActionActionContext
9127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9128 }
9129
9130
9131
9132
9133
9134
9135 type GoogleCloudApigeeV1SecurityAction struct {
9136
9137 Allow *GoogleCloudApigeeV1SecurityActionAllow `json:"allow,omitempty"`
9138
9139
9140 ConditionConfig *GoogleCloudApigeeV1SecurityActionConditionConfig `json:"conditionConfig,omitempty"`
9141
9142 CreateTime string `json:"createTime,omitempty"`
9143
9144 Deny *GoogleCloudApigeeV1SecurityActionDeny `json:"deny,omitempty"`
9145
9146
9147 Description string `json:"description,omitempty"`
9148
9149 ExpireTime string `json:"expireTime,omitempty"`
9150
9151 Flag *GoogleCloudApigeeV1SecurityActionFlag `json:"flag,omitempty"`
9152
9153
9154
9155
9156 Name string `json:"name,omitempty"`
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 State string `json:"state,omitempty"`
9167
9168 Ttl string `json:"ttl,omitempty"`
9169
9170
9171 UpdateTime string `json:"updateTime,omitempty"`
9172
9173
9174 googleapi.ServerResponse `json:"-"`
9175
9176
9177
9178
9179
9180 ForceSendFields []string `json:"-"`
9181
9182
9183
9184
9185 NullFields []string `json:"-"`
9186 }
9187
9188 func (s *GoogleCloudApigeeV1SecurityAction) MarshalJSON() ([]byte, error) {
9189 type NoMethod GoogleCloudApigeeV1SecurityAction
9190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9191 }
9192
9193
9194
9195 type GoogleCloudApigeeV1SecurityActionAllow struct {
9196 }
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207 type GoogleCloudApigeeV1SecurityActionConditionConfig struct {
9208
9209 AccessTokens []string `json:"accessTokens,omitempty"`
9210
9211 ApiKeys []string `json:"apiKeys,omitempty"`
9212
9213 ApiProducts []string `json:"apiProducts,omitempty"`
9214
9215
9216
9217 Asns googleapi.Int64s `json:"asns,omitempty"`
9218
9219
9220
9221
9222
9223 BotReasons []string `json:"botReasons,omitempty"`
9224
9225 DeveloperApps []string `json:"developerApps,omitempty"`
9226
9227 Developers []string `json:"developers,omitempty"`
9228
9229
9230
9231 HttpMethods []string `json:"httpMethods,omitempty"`
9232
9233
9234 IpAddressRanges []string `json:"ipAddressRanges,omitempty"`
9235
9236
9237 RegionCodes []string `json:"regionCodes,omitempty"`
9238
9239
9240 UserAgents []string `json:"userAgents,omitempty"`
9241
9242
9243
9244
9245
9246 ForceSendFields []string `json:"-"`
9247
9248
9249
9250
9251 NullFields []string `json:"-"`
9252 }
9253
9254 func (s *GoogleCloudApigeeV1SecurityActionConditionConfig) MarshalJSON() ([]byte, error) {
9255 type NoMethod GoogleCloudApigeeV1SecurityActionConditionConfig
9256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9257 }
9258
9259
9260
9261 type GoogleCloudApigeeV1SecurityActionDeny struct {
9262
9263 ResponseCode int64 `json:"responseCode,omitempty"`
9264
9265
9266
9267
9268
9269 ForceSendFields []string `json:"-"`
9270
9271
9272
9273
9274 NullFields []string `json:"-"`
9275 }
9276
9277 func (s *GoogleCloudApigeeV1SecurityActionDeny) MarshalJSON() ([]byte, error) {
9278 type NoMethod GoogleCloudApigeeV1SecurityActionDeny
9279 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9280 }
9281
9282
9283
9284 type GoogleCloudApigeeV1SecurityActionFlag struct {
9285
9286
9287
9288 Headers []*GoogleCloudApigeeV1SecurityActionHttpHeader `json:"headers,omitempty"`
9289
9290
9291
9292
9293
9294 ForceSendFields []string `json:"-"`
9295
9296
9297
9298
9299 NullFields []string `json:"-"`
9300 }
9301
9302 func (s *GoogleCloudApigeeV1SecurityActionFlag) MarshalJSON() ([]byte, error) {
9303 type NoMethod GoogleCloudApigeeV1SecurityActionFlag
9304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9305 }
9306
9307
9308 type GoogleCloudApigeeV1SecurityActionHttpHeader struct {
9309
9310 Name string `json:"name,omitempty"`
9311
9312 Value string `json:"value,omitempty"`
9313
9314
9315
9316
9317
9318 ForceSendFields []string `json:"-"`
9319
9320
9321
9322
9323 NullFields []string `json:"-"`
9324 }
9325
9326 func (s *GoogleCloudApigeeV1SecurityActionHttpHeader) MarshalJSON() ([]byte, error) {
9327 type NoMethod GoogleCloudApigeeV1SecurityActionHttpHeader
9328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9329 }
9330
9331
9332
9333
9334 type GoogleCloudApigeeV1SecurityActionsConfig struct {
9335
9336
9337
9338 Enabled bool `json:"enabled,omitempty"`
9339
9340
9341
9342 Name string `json:"name,omitempty"`
9343
9344 UpdateTime string `json:"updateTime,omitempty"`
9345
9346
9347 googleapi.ServerResponse `json:"-"`
9348
9349
9350
9351
9352
9353 ForceSendFields []string `json:"-"`
9354
9355
9356
9357
9358 NullFields []string `json:"-"`
9359 }
9360
9361 func (s *GoogleCloudApigeeV1SecurityActionsConfig) MarshalJSON() ([]byte, error) {
9362 type NoMethod GoogleCloudApigeeV1SecurityActionsConfig
9363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9364 }
9365
9366
9367
9368 type GoogleCloudApigeeV1SecurityAssessmentResult struct {
9369
9370
9371 CreateTime string `json:"createTime,omitempty"`
9372
9373 Error *GoogleRpcStatus `json:"error,omitempty"`
9374
9375 Resource *GoogleCloudApigeeV1SecurityAssessmentResultResource `json:"resource,omitempty"`
9376
9377 ScoringResult *GoogleCloudApigeeV1SecurityAssessmentResultScoringResult `json:"scoringResult,omitempty"`
9378
9379
9380
9381
9382
9383 ForceSendFields []string `json:"-"`
9384
9385
9386
9387
9388 NullFields []string `json:"-"`
9389 }
9390
9391 func (s *GoogleCloudApigeeV1SecurityAssessmentResult) MarshalJSON() ([]byte, error) {
9392 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResult
9393 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9394 }
9395
9396
9397
9398 type GoogleCloudApigeeV1SecurityAssessmentResultResource struct {
9399
9400 Name string `json:"name,omitempty"`
9401
9402
9403 ResourceRevisionId string `json:"resourceRevisionId,omitempty"`
9404
9405
9406
9407
9408
9409 Type string `json:"type,omitempty"`
9410
9411
9412
9413
9414
9415 ForceSendFields []string `json:"-"`
9416
9417
9418
9419
9420 NullFields []string `json:"-"`
9421 }
9422
9423 func (s *GoogleCloudApigeeV1SecurityAssessmentResultResource) MarshalJSON() ([]byte, error) {
9424 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultResource
9425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9426 }
9427
9428
9429
9430 type GoogleCloudApigeeV1SecurityAssessmentResultScoringResult struct {
9431
9432
9433
9434 AssessmentRecommendations map[string]GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation `json:"assessmentRecommendations,omitempty"`
9435
9436
9437
9438 DataUpdateTime string `json:"dataUpdateTime,omitempty"`
9439
9440
9441 FailedAssessmentPerWeight map[string]int64 `json:"failedAssessmentPerWeight,omitempty"`
9442
9443 Score int64 `json:"score,omitempty"`
9444
9445
9446
9447
9448
9449
9450
9451
9452 Severity string `json:"severity,omitempty"`
9453
9454
9455
9456
9457
9458 ForceSendFields []string `json:"-"`
9459
9460
9461
9462
9463 NullFields []string `json:"-"`
9464 }
9465
9466 func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResult) MarshalJSON() ([]byte, error) {
9467 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResult
9468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9469 }
9470
9471
9472
9473 type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation struct {
9474
9475 DisplayName string `json:"displayName,omitempty"`
9476
9477 Recommendations []*GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation `json:"recommendations,omitempty"`
9478
9479
9480 ScoreImpact int64 `json:"scoreImpact,omitempty"`
9481
9482
9483
9484
9485
9486
9487 Verdict string `json:"verdict,omitempty"`
9488
9489
9490
9491
9492
9493
9494
9495 Weight string `json:"weight,omitempty"`
9496
9497
9498
9499
9500
9501 ForceSendFields []string `json:"-"`
9502
9503
9504
9505
9506 NullFields []string `json:"-"`
9507 }
9508
9509 func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation) MarshalJSON() ([]byte, error) {
9510 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation
9511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9512 }
9513
9514
9515
9516 type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation struct {
9517
9518 Description string `json:"description,omitempty"`
9519
9520 Link *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink `json:"link,omitempty"`
9521
9522
9523
9524
9525
9526 ForceSendFields []string `json:"-"`
9527
9528
9529
9530
9531 NullFields []string `json:"-"`
9532 }
9533
9534 func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation) MarshalJSON() ([]byte, error) {
9535 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation
9536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9537 }
9538
9539
9540
9541 type GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink struct {
9542
9543 Text string `json:"text,omitempty"`
9544
9545 Uri string `json:"uri,omitempty"`
9546
9547
9548
9549
9550
9551 ForceSendFields []string `json:"-"`
9552
9553
9554
9555
9556 NullFields []string `json:"-"`
9557 }
9558
9559 func (s *GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink) MarshalJSON() ([]byte, error) {
9560 type NoMethod GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendationLink
9561 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9562 }
9563
9564
9565
9566 type GoogleCloudApigeeV1SecurityIncident struct {
9567
9568
9569 DetectionTypes []string `json:"detectionTypes,omitempty"`
9570
9571 DisplayName string `json:"displayName,omitempty"`
9572
9573
9574 FirstDetectedTime string `json:"firstDetectedTime,omitempty"`
9575
9576
9577 LastDetectedTime string `json:"lastDetectedTime,omitempty"`
9578
9579
9580 LastObservabilityChangeTime string `json:"lastObservabilityChangeTime,omitempty"`
9581
9582
9583
9584
9585
9586 Name string `json:"name,omitempty"`
9587
9588
9589
9590
9591
9592
9593
9594
9595 Observability string `json:"observability,omitempty"`
9596
9597
9598
9599
9600
9601
9602
9603 RiskLevel string `json:"riskLevel,omitempty"`
9604
9605 TrafficCount int64 `json:"trafficCount,omitempty,string"`
9606
9607
9608 googleapi.ServerResponse `json:"-"`
9609
9610
9611
9612
9613
9614 ForceSendFields []string `json:"-"`
9615
9616
9617
9618
9619 NullFields []string `json:"-"`
9620 }
9621
9622 func (s *GoogleCloudApigeeV1SecurityIncident) MarshalJSON() ([]byte, error) {
9623 type NoMethod GoogleCloudApigeeV1SecurityIncident
9624 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9625 }
9626
9627
9628 type GoogleCloudApigeeV1SecurityProfile struct {
9629
9630 Description string `json:"description,omitempty"`
9631
9632 DisplayName string `json:"displayName,omitempty"`
9633
9634 Environments []*GoogleCloudApigeeV1SecurityProfileEnvironment `json:"environments,omitempty"`
9635
9636
9637 MaxScore int64 `json:"maxScore,omitempty"`
9638
9639
9640 MinScore int64 `json:"minScore,omitempty"`
9641
9642
9643 Name string `json:"name,omitempty"`
9644
9645
9646 ProfileConfig *GoogleCloudApigeeV1ProfileConfig `json:"profileConfig,omitempty"`
9647
9648 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
9649
9650 RevisionId int64 `json:"revisionId,omitempty,string"`
9651
9652
9653
9654 RevisionPublishTime string `json:"revisionPublishTime,omitempty"`
9655
9656 RevisionUpdateTime string `json:"revisionUpdateTime,omitempty"`
9657
9658 ScoringConfigs []*GoogleCloudApigeeV1SecurityProfileScoringConfig `json:"scoringConfigs,omitempty"`
9659
9660
9661 googleapi.ServerResponse `json:"-"`
9662
9663
9664
9665
9666
9667 ForceSendFields []string `json:"-"`
9668
9669
9670
9671
9672 NullFields []string `json:"-"`
9673 }
9674
9675 func (s *GoogleCloudApigeeV1SecurityProfile) MarshalJSON() ([]byte, error) {
9676 type NoMethod GoogleCloudApigeeV1SecurityProfile
9677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9678 }
9679
9680
9681
9682
9683 type GoogleCloudApigeeV1SecurityProfileEnvironment struct {
9684
9685
9686 AttachTime string `json:"attachTime,omitempty"`
9687
9688 Environment string `json:"environment,omitempty"`
9689
9690
9691
9692
9693
9694 ForceSendFields []string `json:"-"`
9695
9696
9697
9698
9699 NullFields []string `json:"-"`
9700 }
9701
9702 func (s *GoogleCloudApigeeV1SecurityProfileEnvironment) MarshalJSON() ([]byte, error) {
9703 type NoMethod GoogleCloudApigeeV1SecurityProfileEnvironment
9704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9705 }
9706
9707
9708
9709 type GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation struct {
9710
9711
9712 AttachTime string `json:"attachTime,omitempty"`
9713
9714 Name string `json:"name,omitempty"`
9715
9716
9717 SecurityProfileRevisionId int64 `json:"securityProfileRevisionId,omitempty,string"`
9718
9719
9720 googleapi.ServerResponse `json:"-"`
9721
9722
9723
9724
9725
9726 ForceSendFields []string `json:"-"`
9727
9728
9729
9730
9731 NullFields []string `json:"-"`
9732 }
9733
9734 func (s *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation) MarshalJSON() ([]byte, error) {
9735 type NoMethod GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
9736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9737 }
9738
9739
9740
9741 type GoogleCloudApigeeV1SecurityProfileScoringConfig struct {
9742
9743 Description string `json:"description,omitempty"`
9744
9745 ScorePath string `json:"scorePath,omitempty"`
9746
9747 Title string `json:"title,omitempty"`
9748
9749
9750
9751
9752
9753 ForceSendFields []string `json:"-"`
9754
9755
9756
9757
9758 NullFields []string `json:"-"`
9759 }
9760
9761 func (s *GoogleCloudApigeeV1SecurityProfileScoringConfig) MarshalJSON() ([]byte, error) {
9762 type NoMethod GoogleCloudApigeeV1SecurityProfileScoringConfig
9763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9764 }
9765
9766
9767
9768 type GoogleCloudApigeeV1SecurityReport struct {
9769
9770 Created string `json:"created,omitempty"`
9771
9772 DisplayName string `json:"displayName,omitempty"`
9773
9774
9775 EnvgroupHostname string `json:"envgroupHostname,omitempty"`
9776
9777 Error string `json:"error,omitempty"`
9778
9779 ExecutionTime string `json:"executionTime,omitempty"`
9780
9781
9782 QueryParams *GoogleCloudApigeeV1SecurityReportMetadata `json:"queryParams,omitempty"`
9783
9784 ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
9785
9786 Result *GoogleCloudApigeeV1SecurityReportResultMetadata `json:"result,omitempty"`
9787
9788
9789 ResultFileSize string `json:"resultFileSize,omitempty"`
9790
9791 ResultRows int64 `json:"resultRows,omitempty,string"`
9792
9793
9794
9795
9796
9797 Self string `json:"self,omitempty"`
9798
9799
9800 State string `json:"state,omitempty"`
9801
9802 Updated string `json:"updated,omitempty"`
9803
9804
9805 googleapi.ServerResponse `json:"-"`
9806
9807
9808
9809
9810
9811 ForceSendFields []string `json:"-"`
9812
9813
9814
9815
9816 NullFields []string `json:"-"`
9817 }
9818
9819 func (s *GoogleCloudApigeeV1SecurityReport) MarshalJSON() ([]byte, error) {
9820 type NoMethod GoogleCloudApigeeV1SecurityReport
9821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9822 }
9823
9824
9825 type GoogleCloudApigeeV1SecurityReportMetadata struct {
9826
9827 Dimensions []string `json:"dimensions,omitempty"`
9828
9829 EndTimestamp string `json:"endTimestamp,omitempty"`
9830
9831
9832 Metrics []string `json:"metrics,omitempty"`
9833
9834 MimeType string `json:"mimeType,omitempty"`
9835
9836 StartTimestamp string `json:"startTimestamp,omitempty"`
9837
9838 TimeUnit string `json:"timeUnit,omitempty"`
9839
9840
9841
9842
9843
9844 ForceSendFields []string `json:"-"`
9845
9846
9847
9848
9849 NullFields []string `json:"-"`
9850 }
9851
9852 func (s *GoogleCloudApigeeV1SecurityReportMetadata) MarshalJSON() ([]byte, error) {
9853 type NoMethod GoogleCloudApigeeV1SecurityReportMetadata
9854 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9855 }
9856
9857
9858
9859 type GoogleCloudApigeeV1SecurityReportQuery struct {
9860
9861
9862
9863 CsvDelimiter string `json:"csvDelimiter,omitempty"`
9864
9865
9866 Dimensions []string `json:"dimensions,omitempty"`
9867
9868 DisplayName string `json:"displayName,omitempty"`
9869
9870
9871
9872
9873 EnvgroupHostname string `json:"envgroupHostname,omitempty"`
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883 Filter string `json:"filter,omitempty"`
9884
9885
9886
9887
9888
9889
9890 GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
9891
9892 Limit int64 `json:"limit,omitempty"`
9893
9894 Metrics []*GoogleCloudApigeeV1SecurityReportQueryMetric `json:"metrics,omitempty"`
9895
9896
9897 MimeType string `json:"mimeType,omitempty"`
9898
9899 ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
9900
9901
9902
9903
9904
9905
9906 TimeRange interface{} `json:"timeRange,omitempty"`
9907
9908
9909
9910
9911
9912 ForceSendFields []string `json:"-"`
9913
9914
9915
9916
9917 NullFields []string `json:"-"`
9918 }
9919
9920 func (s *GoogleCloudApigeeV1SecurityReportQuery) MarshalJSON() ([]byte, error) {
9921 type NoMethod GoogleCloudApigeeV1SecurityReportQuery
9922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9923 }
9924
9925
9926 type GoogleCloudApigeeV1SecurityReportQueryMetric struct {
9927
9928 AggregationFunction string `json:"aggregationFunction,omitempty"`
9929
9930
9931 Alias string `json:"alias,omitempty"`
9932
9933 Name string `json:"name,omitempty"`
9934
9935 Operator string `json:"operator,omitempty"`
9936
9937 Value string `json:"value,omitempty"`
9938
9939
9940
9941
9942
9943 ForceSendFields []string `json:"-"`
9944
9945
9946
9947
9948 NullFields []string `json:"-"`
9949 }
9950
9951 func (s *GoogleCloudApigeeV1SecurityReportQueryMetric) MarshalJSON() ([]byte, error) {
9952 type NoMethod GoogleCloudApigeeV1SecurityReportQueryMetric
9953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9954 }
9955
9956
9957
9958 type GoogleCloudApigeeV1SecurityReportResultMetadata struct {
9959
9960
9961
9962 Expires string `json:"expires,omitempty"`
9963
9964
9965
9966
9967
9968
9969 Self string `json:"self,omitempty"`
9970
9971
9972
9973
9974
9975 ForceSendFields []string `json:"-"`
9976
9977
9978
9979
9980 NullFields []string `json:"-"`
9981 }
9982
9983 func (s *GoogleCloudApigeeV1SecurityReportResultMetadata) MarshalJSON() ([]byte, error) {
9984 type NoMethod GoogleCloudApigeeV1SecurityReportResultMetadata
9985 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9986 }
9987
9988
9989
9990 type GoogleCloudApigeeV1SecurityReportResultView struct {
9991
9992 Code int64 `json:"code,omitempty"`
9993
9994 Error string `json:"error,omitempty"`
9995
9996
9997 Metadata *GoogleCloudApigeeV1SecurityReportMetadata `json:"metadata,omitempty"`
9998
9999
10000 Rows []interface{} `json:"rows,omitempty"`
10001
10002 State string `json:"state,omitempty"`
10003
10004
10005 googleapi.ServerResponse `json:"-"`
10006
10007
10008
10009
10010
10011 ForceSendFields []string `json:"-"`
10012
10013
10014
10015
10016 NullFields []string `json:"-"`
10017 }
10018
10019 func (s *GoogleCloudApigeeV1SecurityReportResultView) MarshalJSON() ([]byte, error) {
10020 type NoMethod GoogleCloudApigeeV1SecurityReportResultView
10021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10022 }
10023
10024
10025
10026 type GoogleCloudApigeeV1SecuritySettings struct {
10027
10028
10029 MlRetrainingFeedbackEnabled bool `json:"mlRetrainingFeedbackEnabled,omitempty"`
10030
10031
10032 Name string `json:"name,omitempty"`
10033
10034
10035 googleapi.ServerResponse `json:"-"`
10036
10037
10038
10039
10040
10041 ForceSendFields []string `json:"-"`
10042
10043
10044
10045
10046 NullFields []string `json:"-"`
10047 }
10048
10049 func (s *GoogleCloudApigeeV1SecuritySettings) MarshalJSON() ([]byte, error) {
10050 type NoMethod GoogleCloudApigeeV1SecuritySettings
10051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10052 }
10053
10054 type GoogleCloudApigeeV1ServiceIssuersMapping struct {
10055
10056 EmailIds []string `json:"emailIds,omitempty"`
10057
10058 Service string `json:"service,omitempty"`
10059
10060
10061
10062
10063
10064 ForceSendFields []string `json:"-"`
10065
10066
10067
10068
10069 NullFields []string `json:"-"`
10070 }
10071
10072 func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
10073 type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
10074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10075 }
10076
10077
10078
10079 type GoogleCloudApigeeV1Session struct {
10080
10081 Id string `json:"id,omitempty"`
10082
10083
10084 TimestampMs int64 `json:"timestampMs,omitempty,string"`
10085
10086
10087
10088
10089
10090 ForceSendFields []string `json:"-"`
10091
10092
10093
10094
10095 NullFields []string `json:"-"`
10096 }
10097
10098 func (s *GoogleCloudApigeeV1Session) MarshalJSON() ([]byte, error) {
10099 type NoMethod GoogleCloudApigeeV1Session
10100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10101 }
10102
10103
10104
10105 type GoogleCloudApigeeV1SetAddonEnablementRequest struct {
10106
10107 AnalyticsEnabled bool `json:"analyticsEnabled,omitempty"`
10108
10109
10110 ApiSecurityEnabled bool `json:"apiSecurityEnabled,omitempty"`
10111
10112
10113
10114
10115
10116 ForceSendFields []string `json:"-"`
10117
10118
10119
10120
10121 NullFields []string `json:"-"`
10122 }
10123
10124 func (s *GoogleCloudApigeeV1SetAddonEnablementRequest) MarshalJSON() ([]byte, error) {
10125 type NoMethod GoogleCloudApigeeV1SetAddonEnablementRequest
10126 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10127 }
10128
10129
10130 type GoogleCloudApigeeV1SetAddonsRequest struct {
10131
10132 AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"`
10133
10134
10135
10136
10137
10138 ForceSendFields []string `json:"-"`
10139
10140
10141
10142
10143 NullFields []string `json:"-"`
10144 }
10145
10146 func (s *GoogleCloudApigeeV1SetAddonsRequest) MarshalJSON() ([]byte, error) {
10147 type NoMethod GoogleCloudApigeeV1SetAddonsRequest
10148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10149 }
10150
10151
10152 type GoogleCloudApigeeV1SharedFlow struct {
10153
10154
10155 LatestRevisionId string `json:"latestRevisionId,omitempty"`
10156
10157 MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
10158
10159 Name string `json:"name,omitempty"`
10160
10161 Revision []string `json:"revision,omitempty"`
10162
10163
10164 googleapi.ServerResponse `json:"-"`
10165
10166
10167
10168
10169
10170 ForceSendFields []string `json:"-"`
10171
10172
10173
10174
10175 NullFields []string `json:"-"`
10176 }
10177
10178 func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
10179 type NoMethod GoogleCloudApigeeV1SharedFlow
10180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10181 }
10182
10183
10184
10185 type GoogleCloudApigeeV1SharedFlowRevision struct {
10186
10187
10188
10189
10190 ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
10191
10192 ContextInfo string `json:"contextInfo,omitempty"`
10193
10194
10195 CreatedAt int64 `json:"createdAt,omitempty,string"`
10196
10197 Description string `json:"description,omitempty"`
10198
10199 DisplayName string `json:"displayName,omitempty"`
10200
10201
10202 EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
10203
10204
10205 LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
10206
10207 Name string `json:"name,omitempty"`
10208
10209 Policies []string `json:"policies,omitempty"`
10210
10211 ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
10212
10213
10214 Resources []string `json:"resources,omitempty"`
10215
10216 Revision string `json:"revision,omitempty"`
10217
10218
10219 SharedFlows []string `json:"sharedFlows,omitempty"`
10220
10221 Type string `json:"type,omitempty"`
10222
10223
10224 googleapi.ServerResponse `json:"-"`
10225
10226
10227
10228
10229
10230 ForceSendFields []string `json:"-"`
10231
10232
10233
10234
10235 NullFields []string `json:"-"`
10236 }
10237
10238 func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
10239 type NoMethod GoogleCloudApigeeV1SharedFlowRevision
10240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10241 }
10242
10243
10244 type GoogleCloudApigeeV1Stats struct {
10245
10246 Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
10247
10248 Hosts []*GoogleCloudApigeeV1StatsHostStats `json:"hosts,omitempty"`
10249
10250 MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
10251
10252
10253 googleapi.ServerResponse `json:"-"`
10254
10255
10256
10257
10258
10259 ForceSendFields []string `json:"-"`
10260
10261
10262
10263
10264 NullFields []string `json:"-"`
10265 }
10266
10267 func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
10268 type NoMethod GoogleCloudApigeeV1Stats
10269 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10270 }
10271
10272
10273
10274
10275
10276 type GoogleCloudApigeeV1StatsEnvironmentStats struct {
10277
10278 Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289 Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
10290
10291 Name string `json:"name,omitempty"`
10292
10293
10294
10295
10296
10297 ForceSendFields []string `json:"-"`
10298
10299
10300
10301
10302 NullFields []string `json:"-"`
10303 }
10304
10305 func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
10306 type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
10307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10308 }
10309
10310
10311
10312
10313 type GoogleCloudApigeeV1StatsHostStats struct {
10314
10315 Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325 Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
10326
10327 Name string `json:"name,omitempty"`
10328
10329
10330
10331
10332
10333 ForceSendFields []string `json:"-"`
10334
10335
10336
10337
10338 NullFields []string `json:"-"`
10339 }
10340
10341 func (s *GoogleCloudApigeeV1StatsHostStats) MarshalJSON() ([]byte, error) {
10342 type NoMethod GoogleCloudApigeeV1StatsHostStats
10343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10344 }
10345
10346
10347 type GoogleCloudApigeeV1Subscription struct {
10348
10349
10350 Name string `json:"name,omitempty"`
10351
10352
10353 googleapi.ServerResponse `json:"-"`
10354
10355
10356
10357
10358
10359 ForceSendFields []string `json:"-"`
10360
10361
10362
10363
10364 NullFields []string `json:"-"`
10365 }
10366
10367 func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
10368 type NoMethod GoogleCloudApigeeV1Subscription
10369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10370 }
10371
10372 type GoogleCloudApigeeV1SyncAuthorization struct {
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382 Etag string `json:"etag,omitempty"`
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393 Identities []string `json:"identities,omitempty"`
10394
10395
10396 googleapi.ServerResponse `json:"-"`
10397
10398
10399
10400
10401
10402 ForceSendFields []string `json:"-"`
10403
10404
10405
10406
10407 NullFields []string `json:"-"`
10408 }
10409
10410 func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
10411 type NoMethod GoogleCloudApigeeV1SyncAuthorization
10412 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10413 }
10414
10415
10416
10417
10418 type GoogleCloudApigeeV1TargetServer struct {
10419
10420 Description string `json:"description,omitempty"`
10421
10422
10423 Host string `json:"host,omitempty"`
10424
10425
10426
10427 IsEnabled bool `json:"isEnabled,omitempty"`
10428
10429
10430 Name string `json:"name,omitempty"`
10431
10432
10433 Port int64 `json:"port,omitempty"`
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 Protocol string `json:"protocol,omitempty"`
10448
10449
10450
10451
10452 SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
10453
10454
10455 googleapi.ServerResponse `json:"-"`
10456
10457
10458
10459
10460
10461 ForceSendFields []string `json:"-"`
10462
10463
10464
10465
10466 NullFields []string `json:"-"`
10467 }
10468
10469 func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
10470 type NoMethod GoogleCloudApigeeV1TargetServer
10471 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10472 }
10473
10474 type GoogleCloudApigeeV1TargetServerConfig struct {
10475
10476
10477 Enabled bool `json:"enabled,omitempty"`
10478
10479 Host string `json:"host,omitempty"`
10480
10481
10482
10483 Name string `json:"name,omitempty"`
10484
10485 Port int64 `json:"port,omitempty"`
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499 Protocol string `json:"protocol,omitempty"`
10500
10501 TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
10502
10503
10504
10505
10506
10507 ForceSendFields []string `json:"-"`
10508
10509
10510
10511
10512 NullFields []string `json:"-"`
10513 }
10514
10515 func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
10516 type NoMethod GoogleCloudApigeeV1TargetServerConfig
10517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10518 }
10519
10520
10521 type GoogleCloudApigeeV1TestDatastoreResponse struct {
10522
10523 Error string `json:"error,omitempty"`
10524
10525 State string `json:"state,omitempty"`
10526
10527
10528 googleapi.ServerResponse `json:"-"`
10529
10530
10531
10532
10533
10534 ForceSendFields []string `json:"-"`
10535
10536
10537
10538
10539 NullFields []string `json:"-"`
10540 }
10541
10542 func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) {
10543 type NoMethod GoogleCloudApigeeV1TestDatastoreResponse
10544 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10545 }
10546
10547
10548
10549 type GoogleCloudApigeeV1TlsInfo struct {
10550
10551
10552
10553
10554
10555
10556
10557 Ciphers []string `json:"ciphers,omitempty"`
10558
10559 ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
10560
10561 CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
10562
10563
10564 Enabled bool `json:"enabled,omitempty"`
10565
10566 Enforce bool `json:"enforce,omitempty"`
10567
10568
10569
10570
10571
10572
10573 IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
10574
10575
10576 KeyAlias string `json:"keyAlias,omitempty"`
10577
10578
10579 KeyStore string `json:"keyStore,omitempty"`
10580
10581 Protocols []string `json:"protocols,omitempty"`
10582
10583 TrustStore string `json:"trustStore,omitempty"`
10584
10585
10586
10587
10588
10589 ForceSendFields []string `json:"-"`
10590
10591
10592
10593
10594 NullFields []string `json:"-"`
10595 }
10596
10597 func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
10598 type NoMethod GoogleCloudApigeeV1TlsInfo
10599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10600 }
10601
10602 type GoogleCloudApigeeV1TlsInfoCommonName struct {
10603
10604 Value string `json:"value,omitempty"`
10605
10606
10607 WildcardMatch bool `json:"wildcardMatch,omitempty"`
10608
10609
10610
10611
10612
10613 ForceSendFields []string `json:"-"`
10614
10615
10616
10617
10618 NullFields []string `json:"-"`
10619 }
10620
10621 func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
10622 type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
10623 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10624 }
10625
10626 type GoogleCloudApigeeV1TlsInfoConfig struct {
10627
10628 Ciphers []string `json:"ciphers,omitempty"`
10629
10630
10631 ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
10632
10633 CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
10634
10635
10636 Enabled bool `json:"enabled,omitempty"`
10637
10638 Enforce bool `json:"enforce,omitempty"`
10639
10640
10641 IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
10642
10643
10644
10645 KeyAlias string `json:"keyAlias,omitempty"`
10646
10647
10648 KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
10649
10650 Protocols []string `json:"protocols,omitempty"`
10651
10652
10653
10654
10655 TrustStore string `json:"trustStore,omitempty"`
10656
10657
10658
10659
10660
10661 ForceSendFields []string `json:"-"`
10662
10663
10664
10665
10666 NullFields []string `json:"-"`
10667 }
10668
10669 func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
10670 type NoMethod GoogleCloudApigeeV1TlsInfoConfig
10671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10672 }
10673
10674
10675
10676 type GoogleCloudApigeeV1TraceConfig struct {
10677
10678 Endpoint string `json:"endpoint,omitempty"`
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688 Exporter string `json:"exporter,omitempty"`
10689
10690
10691
10692 SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
10693
10694
10695 googleapi.ServerResponse `json:"-"`
10696
10697
10698
10699
10700
10701 ForceSendFields []string `json:"-"`
10702
10703
10704
10705
10706 NullFields []string `json:"-"`
10707 }
10708
10709 func (s *GoogleCloudApigeeV1TraceConfig) MarshalJSON() ([]byte, error) {
10710 type NoMethod GoogleCloudApigeeV1TraceConfig
10711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10712 }
10713
10714
10715
10716 type GoogleCloudApigeeV1TraceConfigOverride struct {
10717
10718
10719 ApiProxy string `json:"apiProxy,omitempty"`
10720
10721
10722 Name string `json:"name,omitempty"`
10723
10724 SamplingConfig *GoogleCloudApigeeV1TraceSamplingConfig `json:"samplingConfig,omitempty"`
10725
10726
10727 googleapi.ServerResponse `json:"-"`
10728
10729
10730
10731
10732
10733 ForceSendFields []string `json:"-"`
10734
10735
10736
10737
10738 NullFields []string `json:"-"`
10739 }
10740
10741 func (s *GoogleCloudApigeeV1TraceConfigOverride) MarshalJSON() ([]byte, error) {
10742 type NoMethod GoogleCloudApigeeV1TraceConfigOverride
10743 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10744 }
10745
10746
10747
10748
10749
10750 type GoogleCloudApigeeV1TraceSamplingConfig struct {
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 Sampler string `json:"sampler,omitempty"`
10761
10762
10763 SamplingRate float64 `json:"samplingRate,omitempty"`
10764
10765
10766
10767
10768
10769 ForceSendFields []string `json:"-"`
10770
10771
10772
10773
10774 NullFields []string `json:"-"`
10775 }
10776
10777 func (s *GoogleCloudApigeeV1TraceSamplingConfig) MarshalJSON() ([]byte, error) {
10778 type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
10779 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10780 }
10781
10782 func (s *GoogleCloudApigeeV1TraceSamplingConfig) UnmarshalJSON(data []byte) error {
10783 type NoMethod GoogleCloudApigeeV1TraceSamplingConfig
10784 var s1 struct {
10785 SamplingRate gensupport.JSONFloat64 `json:"samplingRate"`
10786 *NoMethod
10787 }
10788 s1.NoMethod = (*NoMethod)(s)
10789 if err := json.Unmarshal(data, &s1); err != nil {
10790 return err
10791 }
10792 s.SamplingRate = float64(s1.SamplingRate)
10793 return nil
10794 }
10795
10796
10797
10798 type GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest struct {
10799
10800
10801
10802 Action string `json:"action,omitempty"`
10803
10804
10805
10806 ApiProducts []string `json:"apiProducts,omitempty"`
10807
10808
10809 AppGroupAppKey *GoogleCloudApigeeV1AppGroupAppKey `json:"appGroupAppKey,omitempty"`
10810
10811
10812
10813
10814
10815 ForceSendFields []string `json:"-"`
10816
10817
10818
10819
10820 NullFields []string `json:"-"`
10821 }
10822
10823 func (s *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest) MarshalJSON() ([]byte, error) {
10824 type NoMethod GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest
10825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10826 }
10827
10828
10829
10830 type GoogleCloudApigeeV1UpdateError struct {
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912 Code string `json:"code,omitempty"`
10913
10914 Message string `json:"message,omitempty"`
10915
10916
10917
10918 Resource string `json:"resource,omitempty"`
10919
10920
10921 Type string `json:"type,omitempty"`
10922
10923
10924
10925
10926
10927 ForceSendFields []string `json:"-"`
10928
10929
10930
10931
10932 NullFields []string `json:"-"`
10933 }
10934
10935 func (s *GoogleCloudApigeeV1UpdateError) MarshalJSON() ([]byte, error) {
10936 type NoMethod GoogleCloudApigeeV1UpdateError
10937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10938 }
10939
10940
10941
10942 type GoogleCloudApigeeV1UpdateSecurityIncidentRequest struct {
10943
10944
10945 SecurityIncident *GoogleCloudApigeeV1SecurityIncident `json:"securityIncident,omitempty"`
10946
10947
10948
10949 UpdateMask string `json:"updateMask,omitempty"`
10950
10951
10952
10953
10954
10955 ForceSendFields []string `json:"-"`
10956
10957
10958
10959
10960 NullFields []string `json:"-"`
10961 }
10962
10963 func (s *GoogleCloudApigeeV1UpdateSecurityIncidentRequest) MarshalJSON() ([]byte, error) {
10964 type NoMethod GoogleCloudApigeeV1UpdateSecurityIncidentRequest
10965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10966 }
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984 type GoogleIamV1AuditConfig struct {
10985
10986 AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
10987
10988
10989
10990 Service string `json:"service,omitempty"`
10991
10992
10993
10994
10995
10996 ForceSendFields []string `json:"-"`
10997
10998
10999
11000
11001 NullFields []string `json:"-"`
11002 }
11003
11004 func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
11005 type NoMethod GoogleIamV1AuditConfig
11006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11007 }
11008
11009
11010
11011
11012
11013
11014 type GoogleIamV1AuditLogConfig struct {
11015
11016
11017 ExemptedMembers []string `json:"exemptedMembers,omitempty"`
11018
11019
11020
11021
11022
11023
11024
11025 LogType string `json:"logType,omitempty"`
11026
11027
11028
11029
11030
11031 ForceSendFields []string `json:"-"`
11032
11033
11034
11035
11036 NullFields []string `json:"-"`
11037 }
11038
11039 func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
11040 type NoMethod GoogleIamV1AuditLogConfig
11041 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11042 }
11043
11044
11045 type GoogleIamV1Binding struct {
11046
11047
11048
11049
11050
11051
11052
11053
11054 Condition *GoogleTypeExpr `json:"condition,omitempty"`
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117 Members []string `json:"members,omitempty"`
11118
11119
11120
11121
11122
11123
11124 Role string `json:"role,omitempty"`
11125
11126
11127
11128
11129
11130 ForceSendFields []string `json:"-"`
11131
11132
11133
11134
11135 NullFields []string `json:"-"`
11136 }
11137
11138 func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
11139 type NoMethod GoogleIamV1Binding
11140 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11141 }
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 type GoogleIamV1Policy struct {
11174
11175 AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185 Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197 Etag string `json:"etag,omitempty"`
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213 Version int64 `json:"version,omitempty"`
11214
11215
11216 googleapi.ServerResponse `json:"-"`
11217
11218
11219
11220
11221
11222 ForceSendFields []string `json:"-"`
11223
11224
11225
11226
11227 NullFields []string `json:"-"`
11228 }
11229
11230 func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
11231 type NoMethod GoogleIamV1Policy
11232 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11233 }
11234
11235
11236 type GoogleIamV1SetIamPolicyRequest struct {
11237
11238
11239
11240
11241 Policy *GoogleIamV1Policy `json:"policy,omitempty"`
11242
11243
11244
11245 UpdateMask string `json:"updateMask,omitempty"`
11246
11247
11248
11249
11250
11251 ForceSendFields []string `json:"-"`
11252
11253
11254
11255
11256 NullFields []string `json:"-"`
11257 }
11258
11259 func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
11260 type NoMethod GoogleIamV1SetIamPolicyRequest
11261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11262 }
11263
11264
11265
11266 type GoogleIamV1TestIamPermissionsRequest struct {
11267
11268
11269
11270
11271 Permissions []string `json:"permissions,omitempty"`
11272
11273
11274
11275
11276
11277 ForceSendFields []string `json:"-"`
11278
11279
11280
11281
11282 NullFields []string `json:"-"`
11283 }
11284
11285 func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
11286 type NoMethod GoogleIamV1TestIamPermissionsRequest
11287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11288 }
11289
11290
11291
11292 type GoogleIamV1TestIamPermissionsResponse struct {
11293
11294
11295 Permissions []string `json:"permissions,omitempty"`
11296
11297
11298 googleapi.ServerResponse `json:"-"`
11299
11300
11301
11302
11303
11304 ForceSendFields []string `json:"-"`
11305
11306
11307
11308
11309 NullFields []string `json:"-"`
11310 }
11311
11312 func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
11313 type NoMethod GoogleIamV1TestIamPermissionsResponse
11314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11315 }
11316
11317
11318
11319 type GoogleLongrunningListOperationsResponse struct {
11320
11321 NextPageToken string `json:"nextPageToken,omitempty"`
11322
11323
11324 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
11325
11326
11327 googleapi.ServerResponse `json:"-"`
11328
11329
11330
11331
11332
11333 ForceSendFields []string `json:"-"`
11334
11335
11336
11337
11338 NullFields []string `json:"-"`
11339 }
11340
11341 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
11342 type NoMethod GoogleLongrunningListOperationsResponse
11343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11344 }
11345
11346
11347
11348 type GoogleLongrunningOperation struct {
11349
11350
11351
11352 Done bool `json:"done,omitempty"`
11353
11354 Error *GoogleRpcStatus `json:"error,omitempty"`
11355
11356
11357
11358
11359 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
11360
11361
11362
11363 Name string `json:"name,omitempty"`
11364
11365
11366
11367
11368
11369
11370
11371 Response googleapi.RawMessage `json:"response,omitempty"`
11372
11373
11374 googleapi.ServerResponse `json:"-"`
11375
11376
11377
11378
11379
11380 ForceSendFields []string `json:"-"`
11381
11382
11383
11384
11385 NullFields []string `json:"-"`
11386 }
11387
11388 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
11389 type NoMethod GoogleLongrunningOperation
11390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11391 }
11392
11393
11394
11395
11396
11397
11398 type GoogleProtobufEmpty struct {
11399
11400 googleapi.ServerResponse `json:"-"`
11401 }
11402
11403
11404
11405
11406
11407 type GoogleRpcPreconditionFailure struct {
11408
11409 Violations []*GoogleRpcPreconditionFailureViolation `json:"violations,omitempty"`
11410
11411
11412
11413
11414
11415 ForceSendFields []string `json:"-"`
11416
11417
11418
11419
11420 NullFields []string `json:"-"`
11421 }
11422
11423 func (s *GoogleRpcPreconditionFailure) MarshalJSON() ([]byte, error) {
11424 type NoMethod GoogleRpcPreconditionFailure
11425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11426 }
11427
11428
11429
11430 type GoogleRpcPreconditionFailureViolation struct {
11431
11432
11433
11434 Description string `json:"description,omitempty"`
11435
11436
11437
11438 Subject string `json:"subject,omitempty"`
11439
11440
11441
11442 Type string `json:"type,omitempty"`
11443
11444
11445
11446
11447
11448 ForceSendFields []string `json:"-"`
11449
11450
11451
11452
11453 NullFields []string `json:"-"`
11454 }
11455
11456 func (s *GoogleRpcPreconditionFailureViolation) MarshalJSON() ([]byte, error) {
11457 type NoMethod GoogleRpcPreconditionFailureViolation
11458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11459 }
11460
11461
11462
11463
11464
11465
11466
11467 type GoogleRpcStatus struct {
11468
11469 Code int64 `json:"code,omitempty"`
11470
11471
11472 Details []googleapi.RawMessage `json:"details,omitempty"`
11473
11474
11475
11476 Message string `json:"message,omitempty"`
11477
11478
11479
11480
11481
11482 ForceSendFields []string `json:"-"`
11483
11484
11485
11486
11487 NullFields []string `json:"-"`
11488 }
11489
11490 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
11491 type NoMethod GoogleRpcStatus
11492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11493 }
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511 type GoogleTypeExpr struct {
11512
11513
11514 Description string `json:"description,omitempty"`
11515
11516
11517 Expression string `json:"expression,omitempty"`
11518
11519
11520 Location string `json:"location,omitempty"`
11521
11522
11523
11524 Title string `json:"title,omitempty"`
11525
11526
11527
11528
11529
11530 ForceSendFields []string `json:"-"`
11531
11532
11533
11534
11535 NullFields []string `json:"-"`
11536 }
11537
11538 func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
11539 type NoMethod GoogleTypeExpr
11540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11541 }
11542
11543
11544
11545
11546
11547
11548 type GoogleTypeInterval struct {
11549
11550
11551 EndTime string `json:"endTime,omitempty"`
11552
11553
11554
11555 StartTime string `json:"startTime,omitempty"`
11556
11557
11558
11559
11560
11561 ForceSendFields []string `json:"-"`
11562
11563
11564
11565
11566 NullFields []string `json:"-"`
11567 }
11568
11569 func (s *GoogleTypeInterval) MarshalJSON() ([]byte, error) {
11570 type NoMethod GoogleTypeInterval
11571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11572 }
11573
11574
11575 type GoogleTypeMoney struct {
11576
11577 CurrencyCode string `json:"currencyCode,omitempty"`
11578
11579
11580
11581
11582
11583 Nanos int64 `json:"nanos,omitempty"`
11584
11585
11586 Units int64 `json:"units,omitempty,string"`
11587
11588
11589
11590
11591
11592 ForceSendFields []string `json:"-"`
11593
11594
11595
11596
11597 NullFields []string `json:"-"`
11598 }
11599
11600 func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) {
11601 type NoMethod GoogleTypeMoney
11602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11603 }
11604
11605 type HybridIssuersListCall struct {
11606 s *Service
11607 name string
11608 urlParams_ gensupport.URLParams
11609 ifNoneMatch_ string
11610 ctx_ context.Context
11611 header_ http.Header
11612 }
11613
11614
11615
11616
11617
11618
11619
11620 func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
11621 c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11622 c.name = name
11623 return c
11624 }
11625
11626
11627
11628
11629 func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
11630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11631 return c
11632 }
11633
11634
11635
11636
11637 func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
11638 c.ifNoneMatch_ = entityTag
11639 return c
11640 }
11641
11642
11643 func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
11644 c.ctx_ = ctx
11645 return c
11646 }
11647
11648
11649
11650 func (c *HybridIssuersListCall) Header() http.Header {
11651 if c.header_ == nil {
11652 c.header_ = make(http.Header)
11653 }
11654 return c.header_
11655 }
11656
11657 func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
11658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11659 if c.ifNoneMatch_ != "" {
11660 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11661 }
11662 var body io.Reader = nil
11663 c.urlParams_.Set("alt", alt)
11664 c.urlParams_.Set("prettyPrint", "false")
11665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11666 urls += "?" + c.urlParams_.Encode()
11667 req, err := http.NewRequest("GET", urls, body)
11668 if err != nil {
11669 return nil, err
11670 }
11671 req.Header = reqHeaders
11672 googleapi.Expand(req.URL, map[string]string{
11673 "name": c.name,
11674 })
11675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11676 }
11677
11678
11679
11680
11681
11682
11683
11684 func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
11685 gensupport.SetOptions(c.urlParams_, opts...)
11686 res, err := c.doRequest("json")
11687 if res != nil && res.StatusCode == http.StatusNotModified {
11688 if res.Body != nil {
11689 res.Body.Close()
11690 }
11691 return nil, gensupport.WrapError(&googleapi.Error{
11692 Code: res.StatusCode,
11693 Header: res.Header,
11694 })
11695 }
11696 if err != nil {
11697 return nil, err
11698 }
11699 defer googleapi.CloseBody(res)
11700 if err := googleapi.CheckResponse(res); err != nil {
11701 return nil, gensupport.WrapError(err)
11702 }
11703 ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
11704 ServerResponse: googleapi.ServerResponse{
11705 Header: res.Header,
11706 HTTPStatusCode: res.StatusCode,
11707 },
11708 }
11709 target := &ret
11710 if err := gensupport.DecodeResponse(target, res); err != nil {
11711 return nil, err
11712 }
11713 return ret, nil
11714 }
11715
11716 type OrganizationsCreateCall struct {
11717 s *Service
11718 googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
11719 urlParams_ gensupport.URLParams
11720 ctx_ context.Context
11721 header_ http.Header
11722 }
11723
11724
11725
11726 func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
11727 c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11728 c.googlecloudapigeev1organization = googlecloudapigeev1organization
11729 return c
11730 }
11731
11732
11733
11734
11735
11736 func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
11737 c.urlParams_.Set("parent", parent)
11738 return c
11739 }
11740
11741
11742
11743
11744 func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
11745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11746 return c
11747 }
11748
11749
11750 func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
11751 c.ctx_ = ctx
11752 return c
11753 }
11754
11755
11756
11757 func (c *OrganizationsCreateCall) Header() http.Header {
11758 if c.header_ == nil {
11759 c.header_ = make(http.Header)
11760 }
11761 return c.header_
11762 }
11763
11764 func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
11765 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11766 var body io.Reader = nil
11767 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
11768 if err != nil {
11769 return nil, err
11770 }
11771 c.urlParams_.Set("alt", alt)
11772 c.urlParams_.Set("prettyPrint", "false")
11773 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
11774 urls += "?" + c.urlParams_.Encode()
11775 req, err := http.NewRequest("POST", urls, body)
11776 if err != nil {
11777 return nil, err
11778 }
11779 req.Header = reqHeaders
11780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11781 }
11782
11783
11784
11785
11786
11787
11788
11789 func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11790 gensupport.SetOptions(c.urlParams_, opts...)
11791 res, err := c.doRequest("json")
11792 if res != nil && res.StatusCode == http.StatusNotModified {
11793 if res.Body != nil {
11794 res.Body.Close()
11795 }
11796 return nil, gensupport.WrapError(&googleapi.Error{
11797 Code: res.StatusCode,
11798 Header: res.Header,
11799 })
11800 }
11801 if err != nil {
11802 return nil, err
11803 }
11804 defer googleapi.CloseBody(res)
11805 if err := googleapi.CheckResponse(res); err != nil {
11806 return nil, gensupport.WrapError(err)
11807 }
11808 ret := &GoogleLongrunningOperation{
11809 ServerResponse: googleapi.ServerResponse{
11810 Header: res.Header,
11811 HTTPStatusCode: res.StatusCode,
11812 },
11813 }
11814 target := &ret
11815 if err := gensupport.DecodeResponse(target, res); err != nil {
11816 return nil, err
11817 }
11818 return ret, nil
11819 }
11820
11821 type OrganizationsDeleteCall struct {
11822 s *Service
11823 name string
11824 urlParams_ gensupport.URLParams
11825 ctx_ context.Context
11826 header_ http.Header
11827 }
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842 func (r *OrganizationsService) Delete(name string) *OrganizationsDeleteCall {
11843 c := &OrganizationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11844 c.name = name
11845 return c
11846 }
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866 func (c *OrganizationsDeleteCall) Retention(retention string) *OrganizationsDeleteCall {
11867 c.urlParams_.Set("retention", retention)
11868 return c
11869 }
11870
11871
11872
11873
11874 func (c *OrganizationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeleteCall {
11875 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11876 return c
11877 }
11878
11879
11880 func (c *OrganizationsDeleteCall) Context(ctx context.Context) *OrganizationsDeleteCall {
11881 c.ctx_ = ctx
11882 return c
11883 }
11884
11885
11886
11887 func (c *OrganizationsDeleteCall) Header() http.Header {
11888 if c.header_ == nil {
11889 c.header_ = make(http.Header)
11890 }
11891 return c.header_
11892 }
11893
11894 func (c *OrganizationsDeleteCall) doRequest(alt string) (*http.Response, error) {
11895 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11896 var body io.Reader = nil
11897 c.urlParams_.Set("alt", alt)
11898 c.urlParams_.Set("prettyPrint", "false")
11899 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11900 urls += "?" + c.urlParams_.Encode()
11901 req, err := http.NewRequest("DELETE", urls, body)
11902 if err != nil {
11903 return nil, err
11904 }
11905 req.Header = reqHeaders
11906 googleapi.Expand(req.URL, map[string]string{
11907 "name": c.name,
11908 })
11909 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11910 }
11911
11912
11913
11914
11915
11916
11917
11918 func (c *OrganizationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11919 gensupport.SetOptions(c.urlParams_, opts...)
11920 res, err := c.doRequest("json")
11921 if res != nil && res.StatusCode == http.StatusNotModified {
11922 if res.Body != nil {
11923 res.Body.Close()
11924 }
11925 return nil, gensupport.WrapError(&googleapi.Error{
11926 Code: res.StatusCode,
11927 Header: res.Header,
11928 })
11929 }
11930 if err != nil {
11931 return nil, err
11932 }
11933 defer googleapi.CloseBody(res)
11934 if err := googleapi.CheckResponse(res); err != nil {
11935 return nil, gensupport.WrapError(err)
11936 }
11937 ret := &GoogleLongrunningOperation{
11938 ServerResponse: googleapi.ServerResponse{
11939 Header: res.Header,
11940 HTTPStatusCode: res.StatusCode,
11941 },
11942 }
11943 target := &ret
11944 if err := gensupport.DecodeResponse(target, res); err != nil {
11945 return nil, err
11946 }
11947 return ret, nil
11948 }
11949
11950 type OrganizationsGetCall struct {
11951 s *Service
11952 name string
11953 urlParams_ gensupport.URLParams
11954 ifNoneMatch_ string
11955 ctx_ context.Context
11956 header_ http.Header
11957 }
11958
11959
11960
11961
11962
11963
11964
11965 func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
11966 c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11967 c.name = name
11968 return c
11969 }
11970
11971
11972
11973
11974 func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
11975 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11976 return c
11977 }
11978
11979
11980
11981
11982 func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
11983 c.ifNoneMatch_ = entityTag
11984 return c
11985 }
11986
11987
11988 func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
11989 c.ctx_ = ctx
11990 return c
11991 }
11992
11993
11994
11995 func (c *OrganizationsGetCall) Header() http.Header {
11996 if c.header_ == nil {
11997 c.header_ = make(http.Header)
11998 }
11999 return c.header_
12000 }
12001
12002 func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
12003 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12004 if c.ifNoneMatch_ != "" {
12005 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12006 }
12007 var body io.Reader = nil
12008 c.urlParams_.Set("alt", alt)
12009 c.urlParams_.Set("prettyPrint", "false")
12010 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12011 urls += "?" + c.urlParams_.Encode()
12012 req, err := http.NewRequest("GET", urls, body)
12013 if err != nil {
12014 return nil, err
12015 }
12016 req.Header = reqHeaders
12017 googleapi.Expand(req.URL, map[string]string{
12018 "name": c.name,
12019 })
12020 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12021 }
12022
12023
12024
12025
12026
12027
12028
12029 func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
12030 gensupport.SetOptions(c.urlParams_, opts...)
12031 res, err := c.doRequest("json")
12032 if res != nil && res.StatusCode == http.StatusNotModified {
12033 if res.Body != nil {
12034 res.Body.Close()
12035 }
12036 return nil, gensupport.WrapError(&googleapi.Error{
12037 Code: res.StatusCode,
12038 Header: res.Header,
12039 })
12040 }
12041 if err != nil {
12042 return nil, err
12043 }
12044 defer googleapi.CloseBody(res)
12045 if err := googleapi.CheckResponse(res); err != nil {
12046 return nil, gensupport.WrapError(err)
12047 }
12048 ret := &GoogleCloudApigeeV1Organization{
12049 ServerResponse: googleapi.ServerResponse{
12050 Header: res.Header,
12051 HTTPStatusCode: res.StatusCode,
12052 },
12053 }
12054 target := &ret
12055 if err := gensupport.DecodeResponse(target, res); err != nil {
12056 return nil, err
12057 }
12058 return ret, nil
12059 }
12060
12061 type OrganizationsGetDeployedIngressConfigCall struct {
12062 s *Service
12063 name string
12064 urlParams_ gensupport.URLParams
12065 ifNoneMatch_ string
12066 ctx_ context.Context
12067 header_ http.Header
12068 }
12069
12070
12071
12072
12073
12074
12075 func (r *OrganizationsService) GetDeployedIngressConfig(name string) *OrganizationsGetDeployedIngressConfigCall {
12076 c := &OrganizationsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12077 c.name = name
12078 return c
12079 }
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100 func (c *OrganizationsGetDeployedIngressConfigCall) View(view string) *OrganizationsGetDeployedIngressConfigCall {
12101 c.urlParams_.Set("view", view)
12102 return c
12103 }
12104
12105
12106
12107
12108 func (c *OrganizationsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetDeployedIngressConfigCall {
12109 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12110 return c
12111 }
12112
12113
12114
12115
12116 func (c *OrganizationsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetDeployedIngressConfigCall {
12117 c.ifNoneMatch_ = entityTag
12118 return c
12119 }
12120
12121
12122 func (c *OrganizationsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsGetDeployedIngressConfigCall {
12123 c.ctx_ = ctx
12124 return c
12125 }
12126
12127
12128
12129 func (c *OrganizationsGetDeployedIngressConfigCall) Header() http.Header {
12130 if c.header_ == nil {
12131 c.header_ = make(http.Header)
12132 }
12133 return c.header_
12134 }
12135
12136 func (c *OrganizationsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
12137 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12138 if c.ifNoneMatch_ != "" {
12139 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12140 }
12141 var body io.Reader = nil
12142 c.urlParams_.Set("alt", alt)
12143 c.urlParams_.Set("prettyPrint", "false")
12144 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12145 urls += "?" + c.urlParams_.Encode()
12146 req, err := http.NewRequest("GET", urls, body)
12147 if err != nil {
12148 return nil, err
12149 }
12150 req.Header = reqHeaders
12151 googleapi.Expand(req.URL, map[string]string{
12152 "name": c.name,
12153 })
12154 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12155 }
12156
12157
12158
12159
12160
12161
12162
12163 func (c *OrganizationsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1IngressConfig, error) {
12164 gensupport.SetOptions(c.urlParams_, opts...)
12165 res, err := c.doRequest("json")
12166 if res != nil && res.StatusCode == http.StatusNotModified {
12167 if res.Body != nil {
12168 res.Body.Close()
12169 }
12170 return nil, gensupport.WrapError(&googleapi.Error{
12171 Code: res.StatusCode,
12172 Header: res.Header,
12173 })
12174 }
12175 if err != nil {
12176 return nil, err
12177 }
12178 defer googleapi.CloseBody(res)
12179 if err := googleapi.CheckResponse(res); err != nil {
12180 return nil, gensupport.WrapError(err)
12181 }
12182 ret := &GoogleCloudApigeeV1IngressConfig{
12183 ServerResponse: googleapi.ServerResponse{
12184 Header: res.Header,
12185 HTTPStatusCode: res.StatusCode,
12186 },
12187 }
12188 target := &ret
12189 if err := gensupport.DecodeResponse(target, res); err != nil {
12190 return nil, err
12191 }
12192 return ret, nil
12193 }
12194
12195 type OrganizationsGetProjectMappingCall struct {
12196 s *Service
12197 name string
12198 urlParams_ gensupport.URLParams
12199 ifNoneMatch_ string
12200 ctx_ context.Context
12201 header_ http.Header
12202 }
12203
12204
12205
12206
12207
12208
12209 func (r *OrganizationsService) GetProjectMapping(name string) *OrganizationsGetProjectMappingCall {
12210 c := &OrganizationsGetProjectMappingCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12211 c.name = name
12212 return c
12213 }
12214
12215
12216
12217
12218 func (c *OrganizationsGetProjectMappingCall) Fields(s ...googleapi.Field) *OrganizationsGetProjectMappingCall {
12219 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12220 return c
12221 }
12222
12223
12224
12225
12226 func (c *OrganizationsGetProjectMappingCall) IfNoneMatch(entityTag string) *OrganizationsGetProjectMappingCall {
12227 c.ifNoneMatch_ = entityTag
12228 return c
12229 }
12230
12231
12232 func (c *OrganizationsGetProjectMappingCall) Context(ctx context.Context) *OrganizationsGetProjectMappingCall {
12233 c.ctx_ = ctx
12234 return c
12235 }
12236
12237
12238
12239 func (c *OrganizationsGetProjectMappingCall) Header() http.Header {
12240 if c.header_ == nil {
12241 c.header_ = make(http.Header)
12242 }
12243 return c.header_
12244 }
12245
12246 func (c *OrganizationsGetProjectMappingCall) doRequest(alt string) (*http.Response, error) {
12247 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12248 if c.ifNoneMatch_ != "" {
12249 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12250 }
12251 var body io.Reader = nil
12252 c.urlParams_.Set("alt", alt)
12253 c.urlParams_.Set("prettyPrint", "false")
12254 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getProjectMapping")
12255 urls += "?" + c.urlParams_.Encode()
12256 req, err := http.NewRequest("GET", urls, body)
12257 if err != nil {
12258 return nil, err
12259 }
12260 req.Header = reqHeaders
12261 googleapi.Expand(req.URL, map[string]string{
12262 "name": c.name,
12263 })
12264 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12265 }
12266
12267
12268
12269
12270
12271
12272
12273 func (c *OrganizationsGetProjectMappingCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OrganizationProjectMapping, error) {
12274 gensupport.SetOptions(c.urlParams_, opts...)
12275 res, err := c.doRequest("json")
12276 if res != nil && res.StatusCode == http.StatusNotModified {
12277 if res.Body != nil {
12278 res.Body.Close()
12279 }
12280 return nil, gensupport.WrapError(&googleapi.Error{
12281 Code: res.StatusCode,
12282 Header: res.Header,
12283 })
12284 }
12285 if err != nil {
12286 return nil, err
12287 }
12288 defer googleapi.CloseBody(res)
12289 if err := googleapi.CheckResponse(res); err != nil {
12290 return nil, gensupport.WrapError(err)
12291 }
12292 ret := &GoogleCloudApigeeV1OrganizationProjectMapping{
12293 ServerResponse: googleapi.ServerResponse{
12294 Header: res.Header,
12295 HTTPStatusCode: res.StatusCode,
12296 },
12297 }
12298 target := &ret
12299 if err := gensupport.DecodeResponse(target, res); err != nil {
12300 return nil, err
12301 }
12302 return ret, nil
12303 }
12304
12305 type OrganizationsGetRuntimeConfigCall struct {
12306 s *Service
12307 name string
12308 urlParams_ gensupport.URLParams
12309 ifNoneMatch_ string
12310 ctx_ context.Context
12311 header_ http.Header
12312 }
12313
12314
12315
12316
12317
12318 func (r *OrganizationsService) GetRuntimeConfig(name string) *OrganizationsGetRuntimeConfigCall {
12319 c := &OrganizationsGetRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12320 c.name = name
12321 return c
12322 }
12323
12324
12325
12326
12327 func (c *OrganizationsGetRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsGetRuntimeConfigCall {
12328 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12329 return c
12330 }
12331
12332
12333
12334
12335 func (c *OrganizationsGetRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsGetRuntimeConfigCall {
12336 c.ifNoneMatch_ = entityTag
12337 return c
12338 }
12339
12340
12341 func (c *OrganizationsGetRuntimeConfigCall) Context(ctx context.Context) *OrganizationsGetRuntimeConfigCall {
12342 c.ctx_ = ctx
12343 return c
12344 }
12345
12346
12347
12348 func (c *OrganizationsGetRuntimeConfigCall) Header() http.Header {
12349 if c.header_ == nil {
12350 c.header_ = make(http.Header)
12351 }
12352 return c.header_
12353 }
12354
12355 func (c *OrganizationsGetRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
12356 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12357 if c.ifNoneMatch_ != "" {
12358 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12359 }
12360 var body io.Reader = nil
12361 c.urlParams_.Set("alt", alt)
12362 c.urlParams_.Set("prettyPrint", "false")
12363 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12364 urls += "?" + c.urlParams_.Encode()
12365 req, err := http.NewRequest("GET", urls, body)
12366 if err != nil {
12367 return nil, err
12368 }
12369 req.Header = reqHeaders
12370 googleapi.Expand(req.URL, map[string]string{
12371 "name": c.name,
12372 })
12373 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12374 }
12375
12376
12377
12378
12379
12380
12381
12382 func (c *OrganizationsGetRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RuntimeConfig, error) {
12383 gensupport.SetOptions(c.urlParams_, opts...)
12384 res, err := c.doRequest("json")
12385 if res != nil && res.StatusCode == http.StatusNotModified {
12386 if res.Body != nil {
12387 res.Body.Close()
12388 }
12389 return nil, gensupport.WrapError(&googleapi.Error{
12390 Code: res.StatusCode,
12391 Header: res.Header,
12392 })
12393 }
12394 if err != nil {
12395 return nil, err
12396 }
12397 defer googleapi.CloseBody(res)
12398 if err := googleapi.CheckResponse(res); err != nil {
12399 return nil, gensupport.WrapError(err)
12400 }
12401 ret := &GoogleCloudApigeeV1RuntimeConfig{
12402 ServerResponse: googleapi.ServerResponse{
12403 Header: res.Header,
12404 HTTPStatusCode: res.StatusCode,
12405 },
12406 }
12407 target := &ret
12408 if err := gensupport.DecodeResponse(target, res); err != nil {
12409 return nil, err
12410 }
12411 return ret, nil
12412 }
12413
12414 type OrganizationsGetSecuritySettingsCall struct {
12415 s *Service
12416 name string
12417 urlParams_ gensupport.URLParams
12418 ifNoneMatch_ string
12419 ctx_ context.Context
12420 header_ http.Header
12421 }
12422
12423
12424
12425
12426
12427
12428 func (r *OrganizationsService) GetSecuritySettings(name string) *OrganizationsGetSecuritySettingsCall {
12429 c := &OrganizationsGetSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12430 c.name = name
12431 return c
12432 }
12433
12434
12435
12436
12437 func (c *OrganizationsGetSecuritySettingsCall) Fields(s ...googleapi.Field) *OrganizationsGetSecuritySettingsCall {
12438 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12439 return c
12440 }
12441
12442
12443
12444
12445 func (c *OrganizationsGetSecuritySettingsCall) IfNoneMatch(entityTag string) *OrganizationsGetSecuritySettingsCall {
12446 c.ifNoneMatch_ = entityTag
12447 return c
12448 }
12449
12450
12451 func (c *OrganizationsGetSecuritySettingsCall) Context(ctx context.Context) *OrganizationsGetSecuritySettingsCall {
12452 c.ctx_ = ctx
12453 return c
12454 }
12455
12456
12457
12458 func (c *OrganizationsGetSecuritySettingsCall) Header() http.Header {
12459 if c.header_ == nil {
12460 c.header_ = make(http.Header)
12461 }
12462 return c.header_
12463 }
12464
12465 func (c *OrganizationsGetSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
12466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12467 if c.ifNoneMatch_ != "" {
12468 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12469 }
12470 var body io.Reader = nil
12471 c.urlParams_.Set("alt", alt)
12472 c.urlParams_.Set("prettyPrint", "false")
12473 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12474 urls += "?" + c.urlParams_.Encode()
12475 req, err := http.NewRequest("GET", urls, body)
12476 if err != nil {
12477 return nil, err
12478 }
12479 req.Header = reqHeaders
12480 googleapi.Expand(req.URL, map[string]string{
12481 "name": c.name,
12482 })
12483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12484 }
12485
12486
12487
12488
12489
12490
12491
12492 func (c *OrganizationsGetSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecuritySettings, error) {
12493 gensupport.SetOptions(c.urlParams_, opts...)
12494 res, err := c.doRequest("json")
12495 if res != nil && res.StatusCode == http.StatusNotModified {
12496 if res.Body != nil {
12497 res.Body.Close()
12498 }
12499 return nil, gensupport.WrapError(&googleapi.Error{
12500 Code: res.StatusCode,
12501 Header: res.Header,
12502 })
12503 }
12504 if err != nil {
12505 return nil, err
12506 }
12507 defer googleapi.CloseBody(res)
12508 if err := googleapi.CheckResponse(res); err != nil {
12509 return nil, gensupport.WrapError(err)
12510 }
12511 ret := &GoogleCloudApigeeV1SecuritySettings{
12512 ServerResponse: googleapi.ServerResponse{
12513 Header: res.Header,
12514 HTTPStatusCode: res.StatusCode,
12515 },
12516 }
12517 target := &ret
12518 if err := gensupport.DecodeResponse(target, res); err != nil {
12519 return nil, err
12520 }
12521 return ret, nil
12522 }
12523
12524 type OrganizationsGetSyncAuthorizationCall struct {
12525 s *Service
12526 name string
12527 googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
12528 urlParams_ gensupport.URLParams
12529 ctx_ context.Context
12530 header_ http.Header
12531 }
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
12547 c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12548 c.name = name
12549 c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
12550 return c
12551 }
12552
12553
12554
12555
12556 func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
12557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12558 return c
12559 }
12560
12561
12562 func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
12563 c.ctx_ = ctx
12564 return c
12565 }
12566
12567
12568
12569 func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
12570 if c.header_ == nil {
12571 c.header_ = make(http.Header)
12572 }
12573 return c.header_
12574 }
12575
12576 func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
12577 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12578 var body io.Reader = nil
12579 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
12580 if err != nil {
12581 return nil, err
12582 }
12583 c.urlParams_.Set("alt", alt)
12584 c.urlParams_.Set("prettyPrint", "false")
12585 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
12586 urls += "?" + c.urlParams_.Encode()
12587 req, err := http.NewRequest("POST", urls, body)
12588 if err != nil {
12589 return nil, err
12590 }
12591 req.Header = reqHeaders
12592 googleapi.Expand(req.URL, map[string]string{
12593 "name": c.name,
12594 })
12595 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12596 }
12597
12598
12599
12600
12601
12602
12603
12604 func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
12605 gensupport.SetOptions(c.urlParams_, opts...)
12606 res, err := c.doRequest("json")
12607 if res != nil && res.StatusCode == http.StatusNotModified {
12608 if res.Body != nil {
12609 res.Body.Close()
12610 }
12611 return nil, gensupport.WrapError(&googleapi.Error{
12612 Code: res.StatusCode,
12613 Header: res.Header,
12614 })
12615 }
12616 if err != nil {
12617 return nil, err
12618 }
12619 defer googleapi.CloseBody(res)
12620 if err := googleapi.CheckResponse(res); err != nil {
12621 return nil, gensupport.WrapError(err)
12622 }
12623 ret := &GoogleCloudApigeeV1SyncAuthorization{
12624 ServerResponse: googleapi.ServerResponse{
12625 Header: res.Header,
12626 HTTPStatusCode: res.StatusCode,
12627 },
12628 }
12629 target := &ret
12630 if err := gensupport.DecodeResponse(target, res); err != nil {
12631 return nil, err
12632 }
12633 return ret, nil
12634 }
12635
12636 type OrganizationsListCall struct {
12637 s *Service
12638 parent string
12639 urlParams_ gensupport.URLParams
12640 ifNoneMatch_ string
12641 ctx_ context.Context
12642 header_ http.Header
12643 }
12644
12645
12646
12647
12648
12649
12650 func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
12651 c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12652 c.parent = parent
12653 return c
12654 }
12655
12656
12657
12658
12659 func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
12660 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12661 return c
12662 }
12663
12664
12665
12666
12667 func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
12668 c.ifNoneMatch_ = entityTag
12669 return c
12670 }
12671
12672
12673 func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
12674 c.ctx_ = ctx
12675 return c
12676 }
12677
12678
12679
12680 func (c *OrganizationsListCall) Header() http.Header {
12681 if c.header_ == nil {
12682 c.header_ = make(http.Header)
12683 }
12684 return c.header_
12685 }
12686
12687 func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
12688 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12689 if c.ifNoneMatch_ != "" {
12690 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12691 }
12692 var body io.Reader = nil
12693 c.urlParams_.Set("alt", alt)
12694 c.urlParams_.Set("prettyPrint", "false")
12695 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
12696 urls += "?" + c.urlParams_.Encode()
12697 req, err := http.NewRequest("GET", urls, body)
12698 if err != nil {
12699 return nil, err
12700 }
12701 req.Header = reqHeaders
12702 googleapi.Expand(req.URL, map[string]string{
12703 "parent": c.parent,
12704 })
12705 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12706 }
12707
12708
12709
12710
12711
12712
12713
12714 func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
12715 gensupport.SetOptions(c.urlParams_, opts...)
12716 res, err := c.doRequest("json")
12717 if res != nil && res.StatusCode == http.StatusNotModified {
12718 if res.Body != nil {
12719 res.Body.Close()
12720 }
12721 return nil, gensupport.WrapError(&googleapi.Error{
12722 Code: res.StatusCode,
12723 Header: res.Header,
12724 })
12725 }
12726 if err != nil {
12727 return nil, err
12728 }
12729 defer googleapi.CloseBody(res)
12730 if err := googleapi.CheckResponse(res); err != nil {
12731 return nil, gensupport.WrapError(err)
12732 }
12733 ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
12734 ServerResponse: googleapi.ServerResponse{
12735 Header: res.Header,
12736 HTTPStatusCode: res.StatusCode,
12737 },
12738 }
12739 target := &ret
12740 if err := gensupport.DecodeResponse(target, res); err != nil {
12741 return nil, err
12742 }
12743 return ret, nil
12744 }
12745
12746 type OrganizationsSetAddonsCall struct {
12747 s *Service
12748 org string
12749 googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest
12750 urlParams_ gensupport.URLParams
12751 ctx_ context.Context
12752 header_ http.Header
12753 }
12754
12755
12756
12757
12758
12759
12760 func (r *OrganizationsService) SetAddons(org string, googlecloudapigeev1setaddonsrequest *GoogleCloudApigeeV1SetAddonsRequest) *OrganizationsSetAddonsCall {
12761 c := &OrganizationsSetAddonsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12762 c.org = org
12763 c.googlecloudapigeev1setaddonsrequest = googlecloudapigeev1setaddonsrequest
12764 return c
12765 }
12766
12767
12768
12769
12770 func (c *OrganizationsSetAddonsCall) Fields(s ...googleapi.Field) *OrganizationsSetAddonsCall {
12771 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12772 return c
12773 }
12774
12775
12776 func (c *OrganizationsSetAddonsCall) Context(ctx context.Context) *OrganizationsSetAddonsCall {
12777 c.ctx_ = ctx
12778 return c
12779 }
12780
12781
12782
12783 func (c *OrganizationsSetAddonsCall) Header() http.Header {
12784 if c.header_ == nil {
12785 c.header_ = make(http.Header)
12786 }
12787 return c.header_
12788 }
12789
12790 func (c *OrganizationsSetAddonsCall) doRequest(alt string) (*http.Response, error) {
12791 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12792 var body io.Reader = nil
12793 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonsrequest)
12794 if err != nil {
12795 return nil, err
12796 }
12797 c.urlParams_.Set("alt", alt)
12798 c.urlParams_.Set("prettyPrint", "false")
12799 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+org}:setAddons")
12800 urls += "?" + c.urlParams_.Encode()
12801 req, err := http.NewRequest("POST", urls, body)
12802 if err != nil {
12803 return nil, err
12804 }
12805 req.Header = reqHeaders
12806 googleapi.Expand(req.URL, map[string]string{
12807 "org": c.org,
12808 })
12809 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12810 }
12811
12812
12813
12814
12815
12816
12817
12818 func (c *OrganizationsSetAddonsCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12819 gensupport.SetOptions(c.urlParams_, opts...)
12820 res, err := c.doRequest("json")
12821 if res != nil && res.StatusCode == http.StatusNotModified {
12822 if res.Body != nil {
12823 res.Body.Close()
12824 }
12825 return nil, gensupport.WrapError(&googleapi.Error{
12826 Code: res.StatusCode,
12827 Header: res.Header,
12828 })
12829 }
12830 if err != nil {
12831 return nil, err
12832 }
12833 defer googleapi.CloseBody(res)
12834 if err := googleapi.CheckResponse(res); err != nil {
12835 return nil, gensupport.WrapError(err)
12836 }
12837 ret := &GoogleLongrunningOperation{
12838 ServerResponse: googleapi.ServerResponse{
12839 Header: res.Header,
12840 HTTPStatusCode: res.StatusCode,
12841 },
12842 }
12843 target := &ret
12844 if err := gensupport.DecodeResponse(target, res); err != nil {
12845 return nil, err
12846 }
12847 return ret, nil
12848 }
12849
12850 type OrganizationsSetSyncAuthorizationCall struct {
12851 s *Service
12852 name string
12853 googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
12854 urlParams_ gensupport.URLParams
12855 ctx_ context.Context
12856 header_ http.Header
12857 }
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872 func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
12873 c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12874 c.name = name
12875 c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
12876 return c
12877 }
12878
12879
12880
12881
12882 func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
12883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12884 return c
12885 }
12886
12887
12888 func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
12889 c.ctx_ = ctx
12890 return c
12891 }
12892
12893
12894
12895 func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
12896 if c.header_ == nil {
12897 c.header_ = make(http.Header)
12898 }
12899 return c.header_
12900 }
12901
12902 func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
12903 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12904 var body io.Reader = nil
12905 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
12906 if err != nil {
12907 return nil, err
12908 }
12909 c.urlParams_.Set("alt", alt)
12910 c.urlParams_.Set("prettyPrint", "false")
12911 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
12912 urls += "?" + c.urlParams_.Encode()
12913 req, err := http.NewRequest("POST", urls, body)
12914 if err != nil {
12915 return nil, err
12916 }
12917 req.Header = reqHeaders
12918 googleapi.Expand(req.URL, map[string]string{
12919 "name": c.name,
12920 })
12921 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12922 }
12923
12924
12925
12926
12927
12928
12929
12930 func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
12931 gensupport.SetOptions(c.urlParams_, opts...)
12932 res, err := c.doRequest("json")
12933 if res != nil && res.StatusCode == http.StatusNotModified {
12934 if res.Body != nil {
12935 res.Body.Close()
12936 }
12937 return nil, gensupport.WrapError(&googleapi.Error{
12938 Code: res.StatusCode,
12939 Header: res.Header,
12940 })
12941 }
12942 if err != nil {
12943 return nil, err
12944 }
12945 defer googleapi.CloseBody(res)
12946 if err := googleapi.CheckResponse(res); err != nil {
12947 return nil, gensupport.WrapError(err)
12948 }
12949 ret := &GoogleCloudApigeeV1SyncAuthorization{
12950 ServerResponse: googleapi.ServerResponse{
12951 Header: res.Header,
12952 HTTPStatusCode: res.StatusCode,
12953 },
12954 }
12955 target := &ret
12956 if err := gensupport.DecodeResponse(target, res); err != nil {
12957 return nil, err
12958 }
12959 return ret, nil
12960 }
12961
12962 type OrganizationsUpdateCall struct {
12963 s *Service
12964 name string
12965 googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
12966 urlParams_ gensupport.URLParams
12967 ctx_ context.Context
12968 header_ http.Header
12969 }
12970
12971
12972
12973
12974
12975
12976 func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
12977 c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12978 c.name = name
12979 c.googlecloudapigeev1organization = googlecloudapigeev1organization
12980 return c
12981 }
12982
12983
12984
12985
12986 func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
12987 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12988 return c
12989 }
12990
12991
12992 func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
12993 c.ctx_ = ctx
12994 return c
12995 }
12996
12997
12998
12999 func (c *OrganizationsUpdateCall) Header() http.Header {
13000 if c.header_ == nil {
13001 c.header_ = make(http.Header)
13002 }
13003 return c.header_
13004 }
13005
13006 func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
13007 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13008 var body io.Reader = nil
13009 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
13010 if err != nil {
13011 return nil, err
13012 }
13013 c.urlParams_.Set("alt", alt)
13014 c.urlParams_.Set("prettyPrint", "false")
13015 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13016 urls += "?" + c.urlParams_.Encode()
13017 req, err := http.NewRequest("PUT", urls, body)
13018 if err != nil {
13019 return nil, err
13020 }
13021 req.Header = reqHeaders
13022 googleapi.Expand(req.URL, map[string]string{
13023 "name": c.name,
13024 })
13025 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13026 }
13027
13028
13029
13030
13031
13032
13033
13034 func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
13035 gensupport.SetOptions(c.urlParams_, opts...)
13036 res, err := c.doRequest("json")
13037 if res != nil && res.StatusCode == http.StatusNotModified {
13038 if res.Body != nil {
13039 res.Body.Close()
13040 }
13041 return nil, gensupport.WrapError(&googleapi.Error{
13042 Code: res.StatusCode,
13043 Header: res.Header,
13044 })
13045 }
13046 if err != nil {
13047 return nil, err
13048 }
13049 defer googleapi.CloseBody(res)
13050 if err := googleapi.CheckResponse(res); err != nil {
13051 return nil, gensupport.WrapError(err)
13052 }
13053 ret := &GoogleCloudApigeeV1Organization{
13054 ServerResponse: googleapi.ServerResponse{
13055 Header: res.Header,
13056 HTTPStatusCode: res.StatusCode,
13057 },
13058 }
13059 target := &ret
13060 if err := gensupport.DecodeResponse(target, res); err != nil {
13061 return nil, err
13062 }
13063 return ret, nil
13064 }
13065
13066 type OrganizationsUpdateSecuritySettingsCall struct {
13067 s *Service
13068 name string
13069 googlecloudapigeev1securitysettings *GoogleCloudApigeeV1SecuritySettings
13070 urlParams_ gensupport.URLParams
13071 ctx_ context.Context
13072 header_ http.Header
13073 }
13074
13075
13076
13077
13078
13079
13080 func (r *OrganizationsService) UpdateSecuritySettings(name string, googlecloudapigeev1securitysettings *GoogleCloudApigeeV1SecuritySettings) *OrganizationsUpdateSecuritySettingsCall {
13081 c := &OrganizationsUpdateSecuritySettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13082 c.name = name
13083 c.googlecloudapigeev1securitysettings = googlecloudapigeev1securitysettings
13084 return c
13085 }
13086
13087
13088
13089 func (c *OrganizationsUpdateSecuritySettingsCall) UpdateMask(updateMask string) *OrganizationsUpdateSecuritySettingsCall {
13090 c.urlParams_.Set("updateMask", updateMask)
13091 return c
13092 }
13093
13094
13095
13096
13097 func (c *OrganizationsUpdateSecuritySettingsCall) Fields(s ...googleapi.Field) *OrganizationsUpdateSecuritySettingsCall {
13098 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13099 return c
13100 }
13101
13102
13103 func (c *OrganizationsUpdateSecuritySettingsCall) Context(ctx context.Context) *OrganizationsUpdateSecuritySettingsCall {
13104 c.ctx_ = ctx
13105 return c
13106 }
13107
13108
13109
13110 func (c *OrganizationsUpdateSecuritySettingsCall) Header() http.Header {
13111 if c.header_ == nil {
13112 c.header_ = make(http.Header)
13113 }
13114 return c.header_
13115 }
13116
13117 func (c *OrganizationsUpdateSecuritySettingsCall) doRequest(alt string) (*http.Response, error) {
13118 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13119 var body io.Reader = nil
13120 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securitysettings)
13121 if err != nil {
13122 return nil, err
13123 }
13124 c.urlParams_.Set("alt", alt)
13125 c.urlParams_.Set("prettyPrint", "false")
13126 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13127 urls += "?" + c.urlParams_.Encode()
13128 req, err := http.NewRequest("PATCH", urls, body)
13129 if err != nil {
13130 return nil, err
13131 }
13132 req.Header = reqHeaders
13133 googleapi.Expand(req.URL, map[string]string{
13134 "name": c.name,
13135 })
13136 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13137 }
13138
13139
13140
13141
13142
13143
13144
13145 func (c *OrganizationsUpdateSecuritySettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecuritySettings, error) {
13146 gensupport.SetOptions(c.urlParams_, opts...)
13147 res, err := c.doRequest("json")
13148 if res != nil && res.StatusCode == http.StatusNotModified {
13149 if res.Body != nil {
13150 res.Body.Close()
13151 }
13152 return nil, gensupport.WrapError(&googleapi.Error{
13153 Code: res.StatusCode,
13154 Header: res.Header,
13155 })
13156 }
13157 if err != nil {
13158 return nil, err
13159 }
13160 defer googleapi.CloseBody(res)
13161 if err := googleapi.CheckResponse(res); err != nil {
13162 return nil, gensupport.WrapError(err)
13163 }
13164 ret := &GoogleCloudApigeeV1SecuritySettings{
13165 ServerResponse: googleapi.ServerResponse{
13166 Header: res.Header,
13167 HTTPStatusCode: res.StatusCode,
13168 },
13169 }
13170 target := &ret
13171 if err := gensupport.DecodeResponse(target, res); err != nil {
13172 return nil, err
13173 }
13174 return ret, nil
13175 }
13176
13177 type OrganizationsAnalyticsDatastoresCreateCall struct {
13178 s *Service
13179 parent string
13180 googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
13181 urlParams_ gensupport.URLParams
13182 ctx_ context.Context
13183 header_ http.Header
13184 }
13185
13186
13187
13188
13189
13190 func (r *OrganizationsAnalyticsDatastoresService) Create(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresCreateCall {
13191 c := &OrganizationsAnalyticsDatastoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13192 c.parent = parent
13193 c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
13194 return c
13195 }
13196
13197
13198
13199
13200 func (c *OrganizationsAnalyticsDatastoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresCreateCall {
13201 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13202 return c
13203 }
13204
13205
13206 func (c *OrganizationsAnalyticsDatastoresCreateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresCreateCall {
13207 c.ctx_ = ctx
13208 return c
13209 }
13210
13211
13212
13213 func (c *OrganizationsAnalyticsDatastoresCreateCall) Header() http.Header {
13214 if c.header_ == nil {
13215 c.header_ = make(http.Header)
13216 }
13217 return c.header_
13218 }
13219
13220 func (c *OrganizationsAnalyticsDatastoresCreateCall) doRequest(alt string) (*http.Response, error) {
13221 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13222 var body io.Reader = nil
13223 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
13224 if err != nil {
13225 return nil, err
13226 }
13227 c.urlParams_.Set("alt", alt)
13228 c.urlParams_.Set("prettyPrint", "false")
13229 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
13230 urls += "?" + c.urlParams_.Encode()
13231 req, err := http.NewRequest("POST", urls, body)
13232 if err != nil {
13233 return nil, err
13234 }
13235 req.Header = reqHeaders
13236 googleapi.Expand(req.URL, map[string]string{
13237 "parent": c.parent,
13238 })
13239 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13240 }
13241
13242
13243
13244
13245
13246
13247
13248 func (c *OrganizationsAnalyticsDatastoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
13249 gensupport.SetOptions(c.urlParams_, opts...)
13250 res, err := c.doRequest("json")
13251 if res != nil && res.StatusCode == http.StatusNotModified {
13252 if res.Body != nil {
13253 res.Body.Close()
13254 }
13255 return nil, gensupport.WrapError(&googleapi.Error{
13256 Code: res.StatusCode,
13257 Header: res.Header,
13258 })
13259 }
13260 if err != nil {
13261 return nil, err
13262 }
13263 defer googleapi.CloseBody(res)
13264 if err := googleapi.CheckResponse(res); err != nil {
13265 return nil, gensupport.WrapError(err)
13266 }
13267 ret := &GoogleCloudApigeeV1Datastore{
13268 ServerResponse: googleapi.ServerResponse{
13269 Header: res.Header,
13270 HTTPStatusCode: res.StatusCode,
13271 },
13272 }
13273 target := &ret
13274 if err := gensupport.DecodeResponse(target, res); err != nil {
13275 return nil, err
13276 }
13277 return ret, nil
13278 }
13279
13280 type OrganizationsAnalyticsDatastoresDeleteCall struct {
13281 s *Service
13282 name string
13283 urlParams_ gensupport.URLParams
13284 ctx_ context.Context
13285 header_ http.Header
13286 }
13287
13288
13289
13290
13291
13292 func (r *OrganizationsAnalyticsDatastoresService) Delete(name string) *OrganizationsAnalyticsDatastoresDeleteCall {
13293 c := &OrganizationsAnalyticsDatastoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13294 c.name = name
13295 return c
13296 }
13297
13298
13299
13300
13301 func (c *OrganizationsAnalyticsDatastoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresDeleteCall {
13302 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13303 return c
13304 }
13305
13306
13307 func (c *OrganizationsAnalyticsDatastoresDeleteCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresDeleteCall {
13308 c.ctx_ = ctx
13309 return c
13310 }
13311
13312
13313
13314 func (c *OrganizationsAnalyticsDatastoresDeleteCall) Header() http.Header {
13315 if c.header_ == nil {
13316 c.header_ = make(http.Header)
13317 }
13318 return c.header_
13319 }
13320
13321 func (c *OrganizationsAnalyticsDatastoresDeleteCall) doRequest(alt string) (*http.Response, error) {
13322 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13323 var body io.Reader = nil
13324 c.urlParams_.Set("alt", alt)
13325 c.urlParams_.Set("prettyPrint", "false")
13326 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13327 urls += "?" + c.urlParams_.Encode()
13328 req, err := http.NewRequest("DELETE", urls, body)
13329 if err != nil {
13330 return nil, err
13331 }
13332 req.Header = reqHeaders
13333 googleapi.Expand(req.URL, map[string]string{
13334 "name": c.name,
13335 })
13336 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13337 }
13338
13339
13340
13341
13342
13343
13344
13345 func (c *OrganizationsAnalyticsDatastoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
13346 gensupport.SetOptions(c.urlParams_, opts...)
13347 res, err := c.doRequest("json")
13348 if res != nil && res.StatusCode == http.StatusNotModified {
13349 if res.Body != nil {
13350 res.Body.Close()
13351 }
13352 return nil, gensupport.WrapError(&googleapi.Error{
13353 Code: res.StatusCode,
13354 Header: res.Header,
13355 })
13356 }
13357 if err != nil {
13358 return nil, err
13359 }
13360 defer googleapi.CloseBody(res)
13361 if err := googleapi.CheckResponse(res); err != nil {
13362 return nil, gensupport.WrapError(err)
13363 }
13364 ret := &GoogleProtobufEmpty{
13365 ServerResponse: googleapi.ServerResponse{
13366 Header: res.Header,
13367 HTTPStatusCode: res.StatusCode,
13368 },
13369 }
13370 target := &ret
13371 if err := gensupport.DecodeResponse(target, res); err != nil {
13372 return nil, err
13373 }
13374 return ret, nil
13375 }
13376
13377 type OrganizationsAnalyticsDatastoresGetCall struct {
13378 s *Service
13379 name string
13380 urlParams_ gensupport.URLParams
13381 ifNoneMatch_ string
13382 ctx_ context.Context
13383 header_ http.Header
13384 }
13385
13386
13387
13388
13389
13390 func (r *OrganizationsAnalyticsDatastoresService) Get(name string) *OrganizationsAnalyticsDatastoresGetCall {
13391 c := &OrganizationsAnalyticsDatastoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13392 c.name = name
13393 return c
13394 }
13395
13396
13397
13398
13399 func (c *OrganizationsAnalyticsDatastoresGetCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresGetCall {
13400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13401 return c
13402 }
13403
13404
13405
13406
13407 func (c *OrganizationsAnalyticsDatastoresGetCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresGetCall {
13408 c.ifNoneMatch_ = entityTag
13409 return c
13410 }
13411
13412
13413 func (c *OrganizationsAnalyticsDatastoresGetCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresGetCall {
13414 c.ctx_ = ctx
13415 return c
13416 }
13417
13418
13419
13420 func (c *OrganizationsAnalyticsDatastoresGetCall) Header() http.Header {
13421 if c.header_ == nil {
13422 c.header_ = make(http.Header)
13423 }
13424 return c.header_
13425 }
13426
13427 func (c *OrganizationsAnalyticsDatastoresGetCall) doRequest(alt string) (*http.Response, error) {
13428 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13429 if c.ifNoneMatch_ != "" {
13430 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13431 }
13432 var body io.Reader = nil
13433 c.urlParams_.Set("alt", alt)
13434 c.urlParams_.Set("prettyPrint", "false")
13435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13436 urls += "?" + c.urlParams_.Encode()
13437 req, err := http.NewRequest("GET", urls, body)
13438 if err != nil {
13439 return nil, err
13440 }
13441 req.Header = reqHeaders
13442 googleapi.Expand(req.URL, map[string]string{
13443 "name": c.name,
13444 })
13445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13446 }
13447
13448
13449
13450
13451
13452
13453
13454 func (c *OrganizationsAnalyticsDatastoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
13455 gensupport.SetOptions(c.urlParams_, opts...)
13456 res, err := c.doRequest("json")
13457 if res != nil && res.StatusCode == http.StatusNotModified {
13458 if res.Body != nil {
13459 res.Body.Close()
13460 }
13461 return nil, gensupport.WrapError(&googleapi.Error{
13462 Code: res.StatusCode,
13463 Header: res.Header,
13464 })
13465 }
13466 if err != nil {
13467 return nil, err
13468 }
13469 defer googleapi.CloseBody(res)
13470 if err := googleapi.CheckResponse(res); err != nil {
13471 return nil, gensupport.WrapError(err)
13472 }
13473 ret := &GoogleCloudApigeeV1Datastore{
13474 ServerResponse: googleapi.ServerResponse{
13475 Header: res.Header,
13476 HTTPStatusCode: res.StatusCode,
13477 },
13478 }
13479 target := &ret
13480 if err := gensupport.DecodeResponse(target, res); err != nil {
13481 return nil, err
13482 }
13483 return ret, nil
13484 }
13485
13486 type OrganizationsAnalyticsDatastoresListCall struct {
13487 s *Service
13488 parent string
13489 urlParams_ gensupport.URLParams
13490 ifNoneMatch_ string
13491 ctx_ context.Context
13492 header_ http.Header
13493 }
13494
13495
13496
13497
13498
13499 func (r *OrganizationsAnalyticsDatastoresService) List(parent string) *OrganizationsAnalyticsDatastoresListCall {
13500 c := &OrganizationsAnalyticsDatastoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13501 c.parent = parent
13502 return c
13503 }
13504
13505
13506
13507 func (c *OrganizationsAnalyticsDatastoresListCall) TargetType(targetType string) *OrganizationsAnalyticsDatastoresListCall {
13508 c.urlParams_.Set("targetType", targetType)
13509 return c
13510 }
13511
13512
13513
13514
13515 func (c *OrganizationsAnalyticsDatastoresListCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresListCall {
13516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13517 return c
13518 }
13519
13520
13521
13522
13523 func (c *OrganizationsAnalyticsDatastoresListCall) IfNoneMatch(entityTag string) *OrganizationsAnalyticsDatastoresListCall {
13524 c.ifNoneMatch_ = entityTag
13525 return c
13526 }
13527
13528
13529 func (c *OrganizationsAnalyticsDatastoresListCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresListCall {
13530 c.ctx_ = ctx
13531 return c
13532 }
13533
13534
13535
13536 func (c *OrganizationsAnalyticsDatastoresListCall) Header() http.Header {
13537 if c.header_ == nil {
13538 c.header_ = make(http.Header)
13539 }
13540 return c.header_
13541 }
13542
13543 func (c *OrganizationsAnalyticsDatastoresListCall) doRequest(alt string) (*http.Response, error) {
13544 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13545 if c.ifNoneMatch_ != "" {
13546 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13547 }
13548 var body io.Reader = nil
13549 c.urlParams_.Set("alt", alt)
13550 c.urlParams_.Set("prettyPrint", "false")
13551 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores")
13552 urls += "?" + c.urlParams_.Encode()
13553 req, err := http.NewRequest("GET", urls, body)
13554 if err != nil {
13555 return nil, err
13556 }
13557 req.Header = reqHeaders
13558 googleapi.Expand(req.URL, map[string]string{
13559 "parent": c.parent,
13560 })
13561 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13562 }
13563
13564
13565
13566
13567
13568
13569
13570 func (c *OrganizationsAnalyticsDatastoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDatastoresResponse, error) {
13571 gensupport.SetOptions(c.urlParams_, opts...)
13572 res, err := c.doRequest("json")
13573 if res != nil && res.StatusCode == http.StatusNotModified {
13574 if res.Body != nil {
13575 res.Body.Close()
13576 }
13577 return nil, gensupport.WrapError(&googleapi.Error{
13578 Code: res.StatusCode,
13579 Header: res.Header,
13580 })
13581 }
13582 if err != nil {
13583 return nil, err
13584 }
13585 defer googleapi.CloseBody(res)
13586 if err := googleapi.CheckResponse(res); err != nil {
13587 return nil, gensupport.WrapError(err)
13588 }
13589 ret := &GoogleCloudApigeeV1ListDatastoresResponse{
13590 ServerResponse: googleapi.ServerResponse{
13591 Header: res.Header,
13592 HTTPStatusCode: res.StatusCode,
13593 },
13594 }
13595 target := &ret
13596 if err := gensupport.DecodeResponse(target, res); err != nil {
13597 return nil, err
13598 }
13599 return ret, nil
13600 }
13601
13602 type OrganizationsAnalyticsDatastoresTestCall struct {
13603 s *Service
13604 parent string
13605 googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
13606 urlParams_ gensupport.URLParams
13607 ctx_ context.Context
13608 header_ http.Header
13609 }
13610
13611
13612
13613
13614
13615
13616
13617 func (r *OrganizationsAnalyticsDatastoresService) Test(parent string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresTestCall {
13618 c := &OrganizationsAnalyticsDatastoresTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13619 c.parent = parent
13620 c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
13621 return c
13622 }
13623
13624
13625
13626
13627 func (c *OrganizationsAnalyticsDatastoresTestCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresTestCall {
13628 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13629 return c
13630 }
13631
13632
13633 func (c *OrganizationsAnalyticsDatastoresTestCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresTestCall {
13634 c.ctx_ = ctx
13635 return c
13636 }
13637
13638
13639
13640 func (c *OrganizationsAnalyticsDatastoresTestCall) Header() http.Header {
13641 if c.header_ == nil {
13642 c.header_ = make(http.Header)
13643 }
13644 return c.header_
13645 }
13646
13647 func (c *OrganizationsAnalyticsDatastoresTestCall) doRequest(alt string) (*http.Response, error) {
13648 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13649 var body io.Reader = nil
13650 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
13651 if err != nil {
13652 return nil, err
13653 }
13654 c.urlParams_.Set("alt", alt)
13655 c.urlParams_.Set("prettyPrint", "false")
13656 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/datastores:test")
13657 urls += "?" + c.urlParams_.Encode()
13658 req, err := http.NewRequest("POST", urls, body)
13659 if err != nil {
13660 return nil, err
13661 }
13662 req.Header = reqHeaders
13663 googleapi.Expand(req.URL, map[string]string{
13664 "parent": c.parent,
13665 })
13666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13667 }
13668
13669
13670
13671
13672
13673
13674
13675 func (c *OrganizationsAnalyticsDatastoresTestCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TestDatastoreResponse, error) {
13676 gensupport.SetOptions(c.urlParams_, opts...)
13677 res, err := c.doRequest("json")
13678 if res != nil && res.StatusCode == http.StatusNotModified {
13679 if res.Body != nil {
13680 res.Body.Close()
13681 }
13682 return nil, gensupport.WrapError(&googleapi.Error{
13683 Code: res.StatusCode,
13684 Header: res.Header,
13685 })
13686 }
13687 if err != nil {
13688 return nil, err
13689 }
13690 defer googleapi.CloseBody(res)
13691 if err := googleapi.CheckResponse(res); err != nil {
13692 return nil, gensupport.WrapError(err)
13693 }
13694 ret := &GoogleCloudApigeeV1TestDatastoreResponse{
13695 ServerResponse: googleapi.ServerResponse{
13696 Header: res.Header,
13697 HTTPStatusCode: res.StatusCode,
13698 },
13699 }
13700 target := &ret
13701 if err := gensupport.DecodeResponse(target, res); err != nil {
13702 return nil, err
13703 }
13704 return ret, nil
13705 }
13706
13707 type OrganizationsAnalyticsDatastoresUpdateCall struct {
13708 s *Service
13709 name string
13710 googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore
13711 urlParams_ gensupport.URLParams
13712 ctx_ context.Context
13713 header_ http.Header
13714 }
13715
13716
13717
13718
13719
13720 func (r *OrganizationsAnalyticsDatastoresService) Update(name string, googlecloudapigeev1datastore *GoogleCloudApigeeV1Datastore) *OrganizationsAnalyticsDatastoresUpdateCall {
13721 c := &OrganizationsAnalyticsDatastoresUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13722 c.name = name
13723 c.googlecloudapigeev1datastore = googlecloudapigeev1datastore
13724 return c
13725 }
13726
13727
13728
13729
13730 func (c *OrganizationsAnalyticsDatastoresUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAnalyticsDatastoresUpdateCall {
13731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13732 return c
13733 }
13734
13735
13736 func (c *OrganizationsAnalyticsDatastoresUpdateCall) Context(ctx context.Context) *OrganizationsAnalyticsDatastoresUpdateCall {
13737 c.ctx_ = ctx
13738 return c
13739 }
13740
13741
13742
13743 func (c *OrganizationsAnalyticsDatastoresUpdateCall) Header() http.Header {
13744 if c.header_ == nil {
13745 c.header_ = make(http.Header)
13746 }
13747 return c.header_
13748 }
13749
13750 func (c *OrganizationsAnalyticsDatastoresUpdateCall) doRequest(alt string) (*http.Response, error) {
13751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13752 var body io.Reader = nil
13753 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datastore)
13754 if err != nil {
13755 return nil, err
13756 }
13757 c.urlParams_.Set("alt", alt)
13758 c.urlParams_.Set("prettyPrint", "false")
13759 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13760 urls += "?" + c.urlParams_.Encode()
13761 req, err := http.NewRequest("PUT", urls, body)
13762 if err != nil {
13763 return nil, err
13764 }
13765 req.Header = reqHeaders
13766 googleapi.Expand(req.URL, map[string]string{
13767 "name": c.name,
13768 })
13769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13770 }
13771
13772
13773
13774
13775
13776
13777
13778 func (c *OrganizationsAnalyticsDatastoresUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Datastore, error) {
13779 gensupport.SetOptions(c.urlParams_, opts...)
13780 res, err := c.doRequest("json")
13781 if res != nil && res.StatusCode == http.StatusNotModified {
13782 if res.Body != nil {
13783 res.Body.Close()
13784 }
13785 return nil, gensupport.WrapError(&googleapi.Error{
13786 Code: res.StatusCode,
13787 Header: res.Header,
13788 })
13789 }
13790 if err != nil {
13791 return nil, err
13792 }
13793 defer googleapi.CloseBody(res)
13794 if err := googleapi.CheckResponse(res); err != nil {
13795 return nil, gensupport.WrapError(err)
13796 }
13797 ret := &GoogleCloudApigeeV1Datastore{
13798 ServerResponse: googleapi.ServerResponse{
13799 Header: res.Header,
13800 HTTPStatusCode: res.StatusCode,
13801 },
13802 }
13803 target := &ret
13804 if err := gensupport.DecodeResponse(target, res); err != nil {
13805 return nil, err
13806 }
13807 return ret, nil
13808 }
13809
13810 type OrganizationsApiproductsAttributesCall struct {
13811 s *Service
13812 name string
13813 googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
13814 urlParams_ gensupport.URLParams
13815 ctx_ context.Context
13816 header_ http.Header
13817 }
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832 func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
13833 c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13834 c.name = name
13835 c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
13836 return c
13837 }
13838
13839
13840
13841
13842 func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
13843 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13844 return c
13845 }
13846
13847
13848 func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
13849 c.ctx_ = ctx
13850 return c
13851 }
13852
13853
13854
13855 func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
13856 if c.header_ == nil {
13857 c.header_ = make(http.Header)
13858 }
13859 return c.header_
13860 }
13861
13862 func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
13863 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13864 var body io.Reader = nil
13865 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
13866 if err != nil {
13867 return nil, err
13868 }
13869 c.urlParams_.Set("alt", alt)
13870 c.urlParams_.Set("prettyPrint", "false")
13871 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
13872 urls += "?" + c.urlParams_.Encode()
13873 req, err := http.NewRequest("POST", urls, body)
13874 if err != nil {
13875 return nil, err
13876 }
13877 req.Header = reqHeaders
13878 googleapi.Expand(req.URL, map[string]string{
13879 "name": c.name,
13880 })
13881 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13882 }
13883
13884
13885
13886
13887
13888
13889
13890 func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13891 gensupport.SetOptions(c.urlParams_, opts...)
13892 res, err := c.doRequest("json")
13893 if res != nil && res.StatusCode == http.StatusNotModified {
13894 if res.Body != nil {
13895 res.Body.Close()
13896 }
13897 return nil, gensupport.WrapError(&googleapi.Error{
13898 Code: res.StatusCode,
13899 Header: res.Header,
13900 })
13901 }
13902 if err != nil {
13903 return nil, err
13904 }
13905 defer googleapi.CloseBody(res)
13906 if err := googleapi.CheckResponse(res); err != nil {
13907 return nil, gensupport.WrapError(err)
13908 }
13909 ret := &GoogleCloudApigeeV1Attributes{
13910 ServerResponse: googleapi.ServerResponse{
13911 Header: res.Header,
13912 HTTPStatusCode: res.StatusCode,
13913 },
13914 }
13915 target := &ret
13916 if err := gensupport.DecodeResponse(target, res); err != nil {
13917 return nil, err
13918 }
13919 return ret, nil
13920 }
13921
13922 type OrganizationsApiproductsCreateCall struct {
13923 s *Service
13924 parent string
13925 googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
13926 urlParams_ gensupport.URLParams
13927 ctx_ context.Context
13928 header_ http.Header
13929 }
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951 func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
13952 c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13953 c.parent = parent
13954 c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
13955 return c
13956 }
13957
13958
13959
13960
13961 func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
13962 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13963 return c
13964 }
13965
13966
13967 func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
13968 c.ctx_ = ctx
13969 return c
13970 }
13971
13972
13973
13974 func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
13975 if c.header_ == nil {
13976 c.header_ = make(http.Header)
13977 }
13978 return c.header_
13979 }
13980
13981 func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
13982 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13983 var body io.Reader = nil
13984 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
13985 if err != nil {
13986 return nil, err
13987 }
13988 c.urlParams_.Set("alt", alt)
13989 c.urlParams_.Set("prettyPrint", "false")
13990 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
13991 urls += "?" + c.urlParams_.Encode()
13992 req, err := http.NewRequest("POST", urls, body)
13993 if err != nil {
13994 return nil, err
13995 }
13996 req.Header = reqHeaders
13997 googleapi.Expand(req.URL, map[string]string{
13998 "parent": c.parent,
13999 })
14000 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14001 }
14002
14003
14004
14005
14006
14007
14008
14009 func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
14010 gensupport.SetOptions(c.urlParams_, opts...)
14011 res, err := c.doRequest("json")
14012 if res != nil && res.StatusCode == http.StatusNotModified {
14013 if res.Body != nil {
14014 res.Body.Close()
14015 }
14016 return nil, gensupport.WrapError(&googleapi.Error{
14017 Code: res.StatusCode,
14018 Header: res.Header,
14019 })
14020 }
14021 if err != nil {
14022 return nil, err
14023 }
14024 defer googleapi.CloseBody(res)
14025 if err := googleapi.CheckResponse(res); err != nil {
14026 return nil, gensupport.WrapError(err)
14027 }
14028 ret := &GoogleCloudApigeeV1ApiProduct{
14029 ServerResponse: googleapi.ServerResponse{
14030 Header: res.Header,
14031 HTTPStatusCode: res.StatusCode,
14032 },
14033 }
14034 target := &ret
14035 if err := gensupport.DecodeResponse(target, res); err != nil {
14036 return nil, err
14037 }
14038 return ret, nil
14039 }
14040
14041 type OrganizationsApiproductsDeleteCall struct {
14042 s *Service
14043 name string
14044 urlParams_ gensupport.URLParams
14045 ctx_ context.Context
14046 header_ http.Header
14047 }
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060 func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
14061 c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14062 c.name = name
14063 return c
14064 }
14065
14066
14067
14068
14069 func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
14070 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14071 return c
14072 }
14073
14074
14075 func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
14076 c.ctx_ = ctx
14077 return c
14078 }
14079
14080
14081
14082 func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
14083 if c.header_ == nil {
14084 c.header_ = make(http.Header)
14085 }
14086 return c.header_
14087 }
14088
14089 func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
14090 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14091 var body io.Reader = nil
14092 c.urlParams_.Set("alt", alt)
14093 c.urlParams_.Set("prettyPrint", "false")
14094 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14095 urls += "?" + c.urlParams_.Encode()
14096 req, err := http.NewRequest("DELETE", urls, body)
14097 if err != nil {
14098 return nil, err
14099 }
14100 req.Header = reqHeaders
14101 googleapi.Expand(req.URL, map[string]string{
14102 "name": c.name,
14103 })
14104 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14105 }
14106
14107
14108
14109
14110
14111
14112
14113 func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
14114 gensupport.SetOptions(c.urlParams_, opts...)
14115 res, err := c.doRequest("json")
14116 if res != nil && res.StatusCode == http.StatusNotModified {
14117 if res.Body != nil {
14118 res.Body.Close()
14119 }
14120 return nil, gensupport.WrapError(&googleapi.Error{
14121 Code: res.StatusCode,
14122 Header: res.Header,
14123 })
14124 }
14125 if err != nil {
14126 return nil, err
14127 }
14128 defer googleapi.CloseBody(res)
14129 if err := googleapi.CheckResponse(res); err != nil {
14130 return nil, gensupport.WrapError(err)
14131 }
14132 ret := &GoogleCloudApigeeV1ApiProduct{
14133 ServerResponse: googleapi.ServerResponse{
14134 Header: res.Header,
14135 HTTPStatusCode: res.StatusCode,
14136 },
14137 }
14138 target := &ret
14139 if err := gensupport.DecodeResponse(target, res); err != nil {
14140 return nil, err
14141 }
14142 return ret, nil
14143 }
14144
14145 type OrganizationsApiproductsGetCall struct {
14146 s *Service
14147 name string
14148 urlParams_ gensupport.URLParams
14149 ifNoneMatch_ string
14150 ctx_ context.Context
14151 header_ http.Header
14152 }
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162 func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
14163 c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14164 c.name = name
14165 return c
14166 }
14167
14168
14169
14170
14171 func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
14172 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14173 return c
14174 }
14175
14176
14177
14178
14179 func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
14180 c.ifNoneMatch_ = entityTag
14181 return c
14182 }
14183
14184
14185 func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
14186 c.ctx_ = ctx
14187 return c
14188 }
14189
14190
14191
14192 func (c *OrganizationsApiproductsGetCall) Header() http.Header {
14193 if c.header_ == nil {
14194 c.header_ = make(http.Header)
14195 }
14196 return c.header_
14197 }
14198
14199 func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
14200 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14201 if c.ifNoneMatch_ != "" {
14202 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14203 }
14204 var body io.Reader = nil
14205 c.urlParams_.Set("alt", alt)
14206 c.urlParams_.Set("prettyPrint", "false")
14207 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14208 urls += "?" + c.urlParams_.Encode()
14209 req, err := http.NewRequest("GET", urls, body)
14210 if err != nil {
14211 return nil, err
14212 }
14213 req.Header = reqHeaders
14214 googleapi.Expand(req.URL, map[string]string{
14215 "name": c.name,
14216 })
14217 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14218 }
14219
14220
14221
14222
14223
14224
14225
14226 func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
14227 gensupport.SetOptions(c.urlParams_, opts...)
14228 res, err := c.doRequest("json")
14229 if res != nil && res.StatusCode == http.StatusNotModified {
14230 if res.Body != nil {
14231 res.Body.Close()
14232 }
14233 return nil, gensupport.WrapError(&googleapi.Error{
14234 Code: res.StatusCode,
14235 Header: res.Header,
14236 })
14237 }
14238 if err != nil {
14239 return nil, err
14240 }
14241 defer googleapi.CloseBody(res)
14242 if err := googleapi.CheckResponse(res); err != nil {
14243 return nil, gensupport.WrapError(err)
14244 }
14245 ret := &GoogleCloudApigeeV1ApiProduct{
14246 ServerResponse: googleapi.ServerResponse{
14247 Header: res.Header,
14248 HTTPStatusCode: res.StatusCode,
14249 },
14250 }
14251 target := &ret
14252 if err := gensupport.DecodeResponse(target, res); err != nil {
14253 return nil, err
14254 }
14255 return ret, nil
14256 }
14257
14258 type OrganizationsApiproductsListCall struct {
14259 s *Service
14260 parent string
14261 urlParams_ gensupport.URLParams
14262 ifNoneMatch_ string
14263 ctx_ context.Context
14264 header_ http.Header
14265 }
14266
14267
14268
14269
14270
14271
14272
14273
14274 func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
14275 c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14276 c.parent = parent
14277 return c
14278 }
14279
14280
14281
14282 func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
14283 c.urlParams_.Set("attributename", attributename)
14284 return c
14285 }
14286
14287
14288
14289 func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
14290 c.urlParams_.Set("attributevalue", attributevalue)
14291 return c
14292 }
14293
14294
14295
14296 func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
14297 c.urlParams_.Set("count", fmt.Sprint(count))
14298 return c
14299 }
14300
14301
14302
14303 func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
14304 c.urlParams_.Set("expand", fmt.Sprint(expand))
14305 return c
14306 }
14307
14308
14309
14310
14311
14312
14313 func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
14314 c.urlParams_.Set("startKey", startKey)
14315 return c
14316 }
14317
14318
14319
14320
14321 func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
14322 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14323 return c
14324 }
14325
14326
14327
14328
14329 func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
14330 c.ifNoneMatch_ = entityTag
14331 return c
14332 }
14333
14334
14335 func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
14336 c.ctx_ = ctx
14337 return c
14338 }
14339
14340
14341
14342 func (c *OrganizationsApiproductsListCall) Header() http.Header {
14343 if c.header_ == nil {
14344 c.header_ = make(http.Header)
14345 }
14346 return c.header_
14347 }
14348
14349 func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
14350 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14351 if c.ifNoneMatch_ != "" {
14352 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14353 }
14354 var body io.Reader = nil
14355 c.urlParams_.Set("alt", alt)
14356 c.urlParams_.Set("prettyPrint", "false")
14357 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
14358 urls += "?" + c.urlParams_.Encode()
14359 req, err := http.NewRequest("GET", urls, body)
14360 if err != nil {
14361 return nil, err
14362 }
14363 req.Header = reqHeaders
14364 googleapi.Expand(req.URL, map[string]string{
14365 "parent": c.parent,
14366 })
14367 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14368 }
14369
14370
14371
14372
14373
14374
14375
14376 func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
14377 gensupport.SetOptions(c.urlParams_, opts...)
14378 res, err := c.doRequest("json")
14379 if res != nil && res.StatusCode == http.StatusNotModified {
14380 if res.Body != nil {
14381 res.Body.Close()
14382 }
14383 return nil, gensupport.WrapError(&googleapi.Error{
14384 Code: res.StatusCode,
14385 Header: res.Header,
14386 })
14387 }
14388 if err != nil {
14389 return nil, err
14390 }
14391 defer googleapi.CloseBody(res)
14392 if err := googleapi.CheckResponse(res); err != nil {
14393 return nil, gensupport.WrapError(err)
14394 }
14395 ret := &GoogleCloudApigeeV1ListApiProductsResponse{
14396 ServerResponse: googleapi.ServerResponse{
14397 Header: res.Header,
14398 HTTPStatusCode: res.StatusCode,
14399 },
14400 }
14401 target := &ret
14402 if err := gensupport.DecodeResponse(target, res); err != nil {
14403 return nil, err
14404 }
14405 return ret, nil
14406 }
14407
14408 type OrganizationsApiproductsUpdateCall struct {
14409 s *Service
14410 name string
14411 googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
14412 urlParams_ gensupport.URLParams
14413 ctx_ context.Context
14414 header_ http.Header
14415 }
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426 func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
14427 c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14428 c.name = name
14429 c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
14430 return c
14431 }
14432
14433
14434
14435
14436 func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
14437 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14438 return c
14439 }
14440
14441
14442 func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
14443 c.ctx_ = ctx
14444 return c
14445 }
14446
14447
14448
14449 func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
14450 if c.header_ == nil {
14451 c.header_ = make(http.Header)
14452 }
14453 return c.header_
14454 }
14455
14456 func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
14457 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14458 var body io.Reader = nil
14459 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
14460 if err != nil {
14461 return nil, err
14462 }
14463 c.urlParams_.Set("alt", alt)
14464 c.urlParams_.Set("prettyPrint", "false")
14465 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14466 urls += "?" + c.urlParams_.Encode()
14467 req, err := http.NewRequest("PUT", urls, body)
14468 if err != nil {
14469 return nil, err
14470 }
14471 req.Header = reqHeaders
14472 googleapi.Expand(req.URL, map[string]string{
14473 "name": c.name,
14474 })
14475 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14476 }
14477
14478
14479
14480
14481
14482
14483
14484 func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
14485 gensupport.SetOptions(c.urlParams_, opts...)
14486 res, err := c.doRequest("json")
14487 if res != nil && res.StatusCode == http.StatusNotModified {
14488 if res.Body != nil {
14489 res.Body.Close()
14490 }
14491 return nil, gensupport.WrapError(&googleapi.Error{
14492 Code: res.StatusCode,
14493 Header: res.Header,
14494 })
14495 }
14496 if err != nil {
14497 return nil, err
14498 }
14499 defer googleapi.CloseBody(res)
14500 if err := googleapi.CheckResponse(res); err != nil {
14501 return nil, gensupport.WrapError(err)
14502 }
14503 ret := &GoogleCloudApigeeV1ApiProduct{
14504 ServerResponse: googleapi.ServerResponse{
14505 Header: res.Header,
14506 HTTPStatusCode: res.StatusCode,
14507 },
14508 }
14509 target := &ret
14510 if err := gensupport.DecodeResponse(target, res); err != nil {
14511 return nil, err
14512 }
14513 return ret, nil
14514 }
14515
14516 type OrganizationsApiproductsAttributesDeleteCall struct {
14517 s *Service
14518 name string
14519 urlParams_ gensupport.URLParams
14520 ctx_ context.Context
14521 header_ http.Header
14522 }
14523
14524
14525
14526
14527
14528
14529 func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
14530 c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14531 c.name = name
14532 return c
14533 }
14534
14535
14536
14537
14538 func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
14539 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14540 return c
14541 }
14542
14543
14544 func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
14545 c.ctx_ = ctx
14546 return c
14547 }
14548
14549
14550
14551 func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
14552 if c.header_ == nil {
14553 c.header_ = make(http.Header)
14554 }
14555 return c.header_
14556 }
14557
14558 func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
14559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14560 var body io.Reader = nil
14561 c.urlParams_.Set("alt", alt)
14562 c.urlParams_.Set("prettyPrint", "false")
14563 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14564 urls += "?" + c.urlParams_.Encode()
14565 req, err := http.NewRequest("DELETE", urls, body)
14566 if err != nil {
14567 return nil, err
14568 }
14569 req.Header = reqHeaders
14570 googleapi.Expand(req.URL, map[string]string{
14571 "name": c.name,
14572 })
14573 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14574 }
14575
14576
14577
14578
14579
14580
14581
14582 func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
14583 gensupport.SetOptions(c.urlParams_, opts...)
14584 res, err := c.doRequest("json")
14585 if res != nil && res.StatusCode == http.StatusNotModified {
14586 if res.Body != nil {
14587 res.Body.Close()
14588 }
14589 return nil, gensupport.WrapError(&googleapi.Error{
14590 Code: res.StatusCode,
14591 Header: res.Header,
14592 })
14593 }
14594 if err != nil {
14595 return nil, err
14596 }
14597 defer googleapi.CloseBody(res)
14598 if err := googleapi.CheckResponse(res); err != nil {
14599 return nil, gensupport.WrapError(err)
14600 }
14601 ret := &GoogleCloudApigeeV1Attribute{
14602 ServerResponse: googleapi.ServerResponse{
14603 Header: res.Header,
14604 HTTPStatusCode: res.StatusCode,
14605 },
14606 }
14607 target := &ret
14608 if err := gensupport.DecodeResponse(target, res); err != nil {
14609 return nil, err
14610 }
14611 return ret, nil
14612 }
14613
14614 type OrganizationsApiproductsAttributesGetCall struct {
14615 s *Service
14616 name string
14617 urlParams_ gensupport.URLParams
14618 ifNoneMatch_ string
14619 ctx_ context.Context
14620 header_ http.Header
14621 }
14622
14623
14624
14625
14626
14627
14628 func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
14629 c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14630 c.name = name
14631 return c
14632 }
14633
14634
14635
14636
14637 func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
14638 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14639 return c
14640 }
14641
14642
14643
14644
14645 func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
14646 c.ifNoneMatch_ = entityTag
14647 return c
14648 }
14649
14650
14651 func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
14652 c.ctx_ = ctx
14653 return c
14654 }
14655
14656
14657
14658 func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
14659 if c.header_ == nil {
14660 c.header_ = make(http.Header)
14661 }
14662 return c.header_
14663 }
14664
14665 func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
14666 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14667 if c.ifNoneMatch_ != "" {
14668 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14669 }
14670 var body io.Reader = nil
14671 c.urlParams_.Set("alt", alt)
14672 c.urlParams_.Set("prettyPrint", "false")
14673 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14674 urls += "?" + c.urlParams_.Encode()
14675 req, err := http.NewRequest("GET", urls, body)
14676 if err != nil {
14677 return nil, err
14678 }
14679 req.Header = reqHeaders
14680 googleapi.Expand(req.URL, map[string]string{
14681 "name": c.name,
14682 })
14683 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14684 }
14685
14686
14687
14688
14689
14690
14691
14692 func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
14693 gensupport.SetOptions(c.urlParams_, opts...)
14694 res, err := c.doRequest("json")
14695 if res != nil && res.StatusCode == http.StatusNotModified {
14696 if res.Body != nil {
14697 res.Body.Close()
14698 }
14699 return nil, gensupport.WrapError(&googleapi.Error{
14700 Code: res.StatusCode,
14701 Header: res.Header,
14702 })
14703 }
14704 if err != nil {
14705 return nil, err
14706 }
14707 defer googleapi.CloseBody(res)
14708 if err := googleapi.CheckResponse(res); err != nil {
14709 return nil, gensupport.WrapError(err)
14710 }
14711 ret := &GoogleCloudApigeeV1Attribute{
14712 ServerResponse: googleapi.ServerResponse{
14713 Header: res.Header,
14714 HTTPStatusCode: res.StatusCode,
14715 },
14716 }
14717 target := &ret
14718 if err := gensupport.DecodeResponse(target, res); err != nil {
14719 return nil, err
14720 }
14721 return ret, nil
14722 }
14723
14724 type OrganizationsApiproductsAttributesListCall struct {
14725 s *Service
14726 parent string
14727 urlParams_ gensupport.URLParams
14728 ifNoneMatch_ string
14729 ctx_ context.Context
14730 header_ http.Header
14731 }
14732
14733
14734
14735
14736
14737 func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
14738 c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14739 c.parent = parent
14740 return c
14741 }
14742
14743
14744
14745
14746 func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
14747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14748 return c
14749 }
14750
14751
14752
14753
14754 func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
14755 c.ifNoneMatch_ = entityTag
14756 return c
14757 }
14758
14759
14760 func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
14761 c.ctx_ = ctx
14762 return c
14763 }
14764
14765
14766
14767 func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
14768 if c.header_ == nil {
14769 c.header_ = make(http.Header)
14770 }
14771 return c.header_
14772 }
14773
14774 func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
14775 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14776 if c.ifNoneMatch_ != "" {
14777 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14778 }
14779 var body io.Reader = nil
14780 c.urlParams_.Set("alt", alt)
14781 c.urlParams_.Set("prettyPrint", "false")
14782 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
14783 urls += "?" + c.urlParams_.Encode()
14784 req, err := http.NewRequest("GET", urls, body)
14785 if err != nil {
14786 return nil, err
14787 }
14788 req.Header = reqHeaders
14789 googleapi.Expand(req.URL, map[string]string{
14790 "parent": c.parent,
14791 })
14792 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14793 }
14794
14795
14796
14797
14798
14799
14800
14801 func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
14802 gensupport.SetOptions(c.urlParams_, opts...)
14803 res, err := c.doRequest("json")
14804 if res != nil && res.StatusCode == http.StatusNotModified {
14805 if res.Body != nil {
14806 res.Body.Close()
14807 }
14808 return nil, gensupport.WrapError(&googleapi.Error{
14809 Code: res.StatusCode,
14810 Header: res.Header,
14811 })
14812 }
14813 if err != nil {
14814 return nil, err
14815 }
14816 defer googleapi.CloseBody(res)
14817 if err := googleapi.CheckResponse(res); err != nil {
14818 return nil, gensupport.WrapError(err)
14819 }
14820 ret := &GoogleCloudApigeeV1Attributes{
14821 ServerResponse: googleapi.ServerResponse{
14822 Header: res.Header,
14823 HTTPStatusCode: res.StatusCode,
14824 },
14825 }
14826 target := &ret
14827 if err := gensupport.DecodeResponse(target, res); err != nil {
14828 return nil, err
14829 }
14830 return ret, nil
14831 }
14832
14833 type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
14834 s *Service
14835 name string
14836 googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
14837 urlParams_ gensupport.URLParams
14838 ctx_ context.Context
14839 header_ http.Header
14840 }
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852 func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
14853 c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14854 c.name = name
14855 c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
14856 return c
14857 }
14858
14859
14860
14861
14862 func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
14863 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14864 return c
14865 }
14866
14867
14868 func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
14869 c.ctx_ = ctx
14870 return c
14871 }
14872
14873
14874
14875 func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
14876 if c.header_ == nil {
14877 c.header_ = make(http.Header)
14878 }
14879 return c.header_
14880 }
14881
14882 func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
14883 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14884 var body io.Reader = nil
14885 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
14886 if err != nil {
14887 return nil, err
14888 }
14889 c.urlParams_.Set("alt", alt)
14890 c.urlParams_.Set("prettyPrint", "false")
14891 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14892 urls += "?" + c.urlParams_.Encode()
14893 req, err := http.NewRequest("POST", urls, body)
14894 if err != nil {
14895 return nil, err
14896 }
14897 req.Header = reqHeaders
14898 googleapi.Expand(req.URL, map[string]string{
14899 "name": c.name,
14900 })
14901 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14902 }
14903
14904
14905
14906
14907
14908
14909
14910 func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
14911 gensupport.SetOptions(c.urlParams_, opts...)
14912 res, err := c.doRequest("json")
14913 if res != nil && res.StatusCode == http.StatusNotModified {
14914 if res.Body != nil {
14915 res.Body.Close()
14916 }
14917 return nil, gensupport.WrapError(&googleapi.Error{
14918 Code: res.StatusCode,
14919 Header: res.Header,
14920 })
14921 }
14922 if err != nil {
14923 return nil, err
14924 }
14925 defer googleapi.CloseBody(res)
14926 if err := googleapi.CheckResponse(res); err != nil {
14927 return nil, gensupport.WrapError(err)
14928 }
14929 ret := &GoogleCloudApigeeV1Attribute{
14930 ServerResponse: googleapi.ServerResponse{
14931 Header: res.Header,
14932 HTTPStatusCode: res.StatusCode,
14933 },
14934 }
14935 target := &ret
14936 if err := gensupport.DecodeResponse(target, res); err != nil {
14937 return nil, err
14938 }
14939 return ret, nil
14940 }
14941
14942 type OrganizationsApiproductsRateplansCreateCall struct {
14943 s *Service
14944 parent string
14945 googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
14946 urlParams_ gensupport.URLParams
14947 ctx_ context.Context
14948 header_ http.Header
14949 }
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 func (r *OrganizationsApiproductsRateplansService) Create(parent string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansCreateCall {
14965 c := &OrganizationsApiproductsRateplansCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14966 c.parent = parent
14967 c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
14968 return c
14969 }
14970
14971
14972
14973
14974 func (c *OrganizationsApiproductsRateplansCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansCreateCall {
14975 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14976 return c
14977 }
14978
14979
14980 func (c *OrganizationsApiproductsRateplansCreateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansCreateCall {
14981 c.ctx_ = ctx
14982 return c
14983 }
14984
14985
14986
14987 func (c *OrganizationsApiproductsRateplansCreateCall) Header() http.Header {
14988 if c.header_ == nil {
14989 c.header_ = make(http.Header)
14990 }
14991 return c.header_
14992 }
14993
14994 func (c *OrganizationsApiproductsRateplansCreateCall) doRequest(alt string) (*http.Response, error) {
14995 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14996 var body io.Reader = nil
14997 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
14998 if err != nil {
14999 return nil, err
15000 }
15001 c.urlParams_.Set("alt", alt)
15002 c.urlParams_.Set("prettyPrint", "false")
15003 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
15004 urls += "?" + c.urlParams_.Encode()
15005 req, err := http.NewRequest("POST", urls, body)
15006 if err != nil {
15007 return nil, err
15008 }
15009 req.Header = reqHeaders
15010 googleapi.Expand(req.URL, map[string]string{
15011 "parent": c.parent,
15012 })
15013 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15014 }
15015
15016
15017
15018
15019
15020
15021
15022 func (c *OrganizationsApiproductsRateplansCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
15023 gensupport.SetOptions(c.urlParams_, opts...)
15024 res, err := c.doRequest("json")
15025 if res != nil && res.StatusCode == http.StatusNotModified {
15026 if res.Body != nil {
15027 res.Body.Close()
15028 }
15029 return nil, gensupport.WrapError(&googleapi.Error{
15030 Code: res.StatusCode,
15031 Header: res.Header,
15032 })
15033 }
15034 if err != nil {
15035 return nil, err
15036 }
15037 defer googleapi.CloseBody(res)
15038 if err := googleapi.CheckResponse(res); err != nil {
15039 return nil, gensupport.WrapError(err)
15040 }
15041 ret := &GoogleCloudApigeeV1RatePlan{
15042 ServerResponse: googleapi.ServerResponse{
15043 Header: res.Header,
15044 HTTPStatusCode: res.StatusCode,
15045 },
15046 }
15047 target := &ret
15048 if err := gensupport.DecodeResponse(target, res); err != nil {
15049 return nil, err
15050 }
15051 return ret, nil
15052 }
15053
15054 type OrganizationsApiproductsRateplansDeleteCall struct {
15055 s *Service
15056 name string
15057 urlParams_ gensupport.URLParams
15058 ctx_ context.Context
15059 header_ http.Header
15060 }
15061
15062
15063
15064
15065
15066 func (r *OrganizationsApiproductsRateplansService) Delete(name string) *OrganizationsApiproductsRateplansDeleteCall {
15067 c := &OrganizationsApiproductsRateplansDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15068 c.name = name
15069 return c
15070 }
15071
15072
15073
15074
15075 func (c *OrganizationsApiproductsRateplansDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansDeleteCall {
15076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15077 return c
15078 }
15079
15080
15081 func (c *OrganizationsApiproductsRateplansDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansDeleteCall {
15082 c.ctx_ = ctx
15083 return c
15084 }
15085
15086
15087
15088 func (c *OrganizationsApiproductsRateplansDeleteCall) Header() http.Header {
15089 if c.header_ == nil {
15090 c.header_ = make(http.Header)
15091 }
15092 return c.header_
15093 }
15094
15095 func (c *OrganizationsApiproductsRateplansDeleteCall) doRequest(alt string) (*http.Response, error) {
15096 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15097 var body io.Reader = nil
15098 c.urlParams_.Set("alt", alt)
15099 c.urlParams_.Set("prettyPrint", "false")
15100 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15101 urls += "?" + c.urlParams_.Encode()
15102 req, err := http.NewRequest("DELETE", urls, body)
15103 if err != nil {
15104 return nil, err
15105 }
15106 req.Header = reqHeaders
15107 googleapi.Expand(req.URL, map[string]string{
15108 "name": c.name,
15109 })
15110 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15111 }
15112
15113
15114
15115
15116
15117
15118
15119 func (c *OrganizationsApiproductsRateplansDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
15120 gensupport.SetOptions(c.urlParams_, opts...)
15121 res, err := c.doRequest("json")
15122 if res != nil && res.StatusCode == http.StatusNotModified {
15123 if res.Body != nil {
15124 res.Body.Close()
15125 }
15126 return nil, gensupport.WrapError(&googleapi.Error{
15127 Code: res.StatusCode,
15128 Header: res.Header,
15129 })
15130 }
15131 if err != nil {
15132 return nil, err
15133 }
15134 defer googleapi.CloseBody(res)
15135 if err := googleapi.CheckResponse(res); err != nil {
15136 return nil, gensupport.WrapError(err)
15137 }
15138 ret := &GoogleCloudApigeeV1RatePlan{
15139 ServerResponse: googleapi.ServerResponse{
15140 Header: res.Header,
15141 HTTPStatusCode: res.StatusCode,
15142 },
15143 }
15144 target := &ret
15145 if err := gensupport.DecodeResponse(target, res); err != nil {
15146 return nil, err
15147 }
15148 return ret, nil
15149 }
15150
15151 type OrganizationsApiproductsRateplansGetCall struct {
15152 s *Service
15153 name string
15154 urlParams_ gensupport.URLParams
15155 ifNoneMatch_ string
15156 ctx_ context.Context
15157 header_ http.Header
15158 }
15159
15160
15161
15162
15163
15164 func (r *OrganizationsApiproductsRateplansService) Get(name string) *OrganizationsApiproductsRateplansGetCall {
15165 c := &OrganizationsApiproductsRateplansGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15166 c.name = name
15167 return c
15168 }
15169
15170
15171
15172
15173 func (c *OrganizationsApiproductsRateplansGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansGetCall {
15174 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15175 return c
15176 }
15177
15178
15179
15180
15181 func (c *OrganizationsApiproductsRateplansGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansGetCall {
15182 c.ifNoneMatch_ = entityTag
15183 return c
15184 }
15185
15186
15187 func (c *OrganizationsApiproductsRateplansGetCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansGetCall {
15188 c.ctx_ = ctx
15189 return c
15190 }
15191
15192
15193
15194 func (c *OrganizationsApiproductsRateplansGetCall) Header() http.Header {
15195 if c.header_ == nil {
15196 c.header_ = make(http.Header)
15197 }
15198 return c.header_
15199 }
15200
15201 func (c *OrganizationsApiproductsRateplansGetCall) doRequest(alt string) (*http.Response, error) {
15202 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15203 if c.ifNoneMatch_ != "" {
15204 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15205 }
15206 var body io.Reader = nil
15207 c.urlParams_.Set("alt", alt)
15208 c.urlParams_.Set("prettyPrint", "false")
15209 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15210 urls += "?" + c.urlParams_.Encode()
15211 req, err := http.NewRequest("GET", urls, body)
15212 if err != nil {
15213 return nil, err
15214 }
15215 req.Header = reqHeaders
15216 googleapi.Expand(req.URL, map[string]string{
15217 "name": c.name,
15218 })
15219 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15220 }
15221
15222
15223
15224
15225
15226
15227
15228 func (c *OrganizationsApiproductsRateplansGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
15229 gensupport.SetOptions(c.urlParams_, opts...)
15230 res, err := c.doRequest("json")
15231 if res != nil && res.StatusCode == http.StatusNotModified {
15232 if res.Body != nil {
15233 res.Body.Close()
15234 }
15235 return nil, gensupport.WrapError(&googleapi.Error{
15236 Code: res.StatusCode,
15237 Header: res.Header,
15238 })
15239 }
15240 if err != nil {
15241 return nil, err
15242 }
15243 defer googleapi.CloseBody(res)
15244 if err := googleapi.CheckResponse(res); err != nil {
15245 return nil, gensupport.WrapError(err)
15246 }
15247 ret := &GoogleCloudApigeeV1RatePlan{
15248 ServerResponse: googleapi.ServerResponse{
15249 Header: res.Header,
15250 HTTPStatusCode: res.StatusCode,
15251 },
15252 }
15253 target := &ret
15254 if err := gensupport.DecodeResponse(target, res); err != nil {
15255 return nil, err
15256 }
15257 return ret, nil
15258 }
15259
15260 type OrganizationsApiproductsRateplansListCall struct {
15261 s *Service
15262 parent string
15263 urlParams_ gensupport.URLParams
15264 ifNoneMatch_ string
15265 ctx_ context.Context
15266 header_ http.Header
15267 }
15268
15269
15270
15271
15272
15273
15274
15275 func (r *OrganizationsApiproductsRateplansService) List(parent string) *OrganizationsApiproductsRateplansListCall {
15276 c := &OrganizationsApiproductsRateplansListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15277 c.parent = parent
15278 return c
15279 }
15280
15281
15282
15283
15284 func (c *OrganizationsApiproductsRateplansListCall) Count(count int64) *OrganizationsApiproductsRateplansListCall {
15285 c.urlParams_.Set("count", fmt.Sprint(count))
15286 return c
15287 }
15288
15289
15290
15291
15292 func (c *OrganizationsApiproductsRateplansListCall) Expand(expand bool) *OrganizationsApiproductsRateplansListCall {
15293 c.urlParams_.Set("expand", fmt.Sprint(expand))
15294 return c
15295 }
15296
15297
15298
15299
15300
15301
15302 func (c *OrganizationsApiproductsRateplansListCall) OrderBy(orderBy string) *OrganizationsApiproductsRateplansListCall {
15303 c.urlParams_.Set("orderBy", orderBy)
15304 return c
15305 }
15306
15307
15308
15309
15310
15311
15312 func (c *OrganizationsApiproductsRateplansListCall) StartKey(startKey string) *OrganizationsApiproductsRateplansListCall {
15313 c.urlParams_.Set("startKey", startKey)
15314 return c
15315 }
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327 func (c *OrganizationsApiproductsRateplansListCall) State(state string) *OrganizationsApiproductsRateplansListCall {
15328 c.urlParams_.Set("state", state)
15329 return c
15330 }
15331
15332
15333
15334
15335 func (c *OrganizationsApiproductsRateplansListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansListCall {
15336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15337 return c
15338 }
15339
15340
15341
15342
15343 func (c *OrganizationsApiproductsRateplansListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsRateplansListCall {
15344 c.ifNoneMatch_ = entityTag
15345 return c
15346 }
15347
15348
15349 func (c *OrganizationsApiproductsRateplansListCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansListCall {
15350 c.ctx_ = ctx
15351 return c
15352 }
15353
15354
15355
15356 func (c *OrganizationsApiproductsRateplansListCall) Header() http.Header {
15357 if c.header_ == nil {
15358 c.header_ = make(http.Header)
15359 }
15360 return c.header_
15361 }
15362
15363 func (c *OrganizationsApiproductsRateplansListCall) doRequest(alt string) (*http.Response, error) {
15364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15365 if c.ifNoneMatch_ != "" {
15366 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15367 }
15368 var body io.Reader = nil
15369 c.urlParams_.Set("alt", alt)
15370 c.urlParams_.Set("prettyPrint", "false")
15371 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/rateplans")
15372 urls += "?" + c.urlParams_.Encode()
15373 req, err := http.NewRequest("GET", urls, body)
15374 if err != nil {
15375 return nil, err
15376 }
15377 req.Header = reqHeaders
15378 googleapi.Expand(req.URL, map[string]string{
15379 "parent": c.parent,
15380 })
15381 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15382 }
15383
15384
15385
15386
15387
15388
15389
15390 func (c *OrganizationsApiproductsRateplansListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListRatePlansResponse, error) {
15391 gensupport.SetOptions(c.urlParams_, opts...)
15392 res, err := c.doRequest("json")
15393 if res != nil && res.StatusCode == http.StatusNotModified {
15394 if res.Body != nil {
15395 res.Body.Close()
15396 }
15397 return nil, gensupport.WrapError(&googleapi.Error{
15398 Code: res.StatusCode,
15399 Header: res.Header,
15400 })
15401 }
15402 if err != nil {
15403 return nil, err
15404 }
15405 defer googleapi.CloseBody(res)
15406 if err := googleapi.CheckResponse(res); err != nil {
15407 return nil, gensupport.WrapError(err)
15408 }
15409 ret := &GoogleCloudApigeeV1ListRatePlansResponse{
15410 ServerResponse: googleapi.ServerResponse{
15411 Header: res.Header,
15412 HTTPStatusCode: res.StatusCode,
15413 },
15414 }
15415 target := &ret
15416 if err := gensupport.DecodeResponse(target, res); err != nil {
15417 return nil, err
15418 }
15419 return ret, nil
15420 }
15421
15422 type OrganizationsApiproductsRateplansUpdateCall struct {
15423 s *Service
15424 name string
15425 googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan
15426 urlParams_ gensupport.URLParams
15427 ctx_ context.Context
15428 header_ http.Header
15429 }
15430
15431
15432
15433
15434
15435 func (r *OrganizationsApiproductsRateplansService) Update(name string, googlecloudapigeev1rateplan *GoogleCloudApigeeV1RatePlan) *OrganizationsApiproductsRateplansUpdateCall {
15436 c := &OrganizationsApiproductsRateplansUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15437 c.name = name
15438 c.googlecloudapigeev1rateplan = googlecloudapigeev1rateplan
15439 return c
15440 }
15441
15442
15443
15444
15445 func (c *OrganizationsApiproductsRateplansUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsRateplansUpdateCall {
15446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15447 return c
15448 }
15449
15450
15451 func (c *OrganizationsApiproductsRateplansUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsRateplansUpdateCall {
15452 c.ctx_ = ctx
15453 return c
15454 }
15455
15456
15457
15458 func (c *OrganizationsApiproductsRateplansUpdateCall) Header() http.Header {
15459 if c.header_ == nil {
15460 c.header_ = make(http.Header)
15461 }
15462 return c.header_
15463 }
15464
15465 func (c *OrganizationsApiproductsRateplansUpdateCall) doRequest(alt string) (*http.Response, error) {
15466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15467 var body io.Reader = nil
15468 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1rateplan)
15469 if err != nil {
15470 return nil, err
15471 }
15472 c.urlParams_.Set("alt", alt)
15473 c.urlParams_.Set("prettyPrint", "false")
15474 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15475 urls += "?" + c.urlParams_.Encode()
15476 req, err := http.NewRequest("PUT", urls, body)
15477 if err != nil {
15478 return nil, err
15479 }
15480 req.Header = reqHeaders
15481 googleapi.Expand(req.URL, map[string]string{
15482 "name": c.name,
15483 })
15484 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15485 }
15486
15487
15488
15489
15490
15491
15492
15493 func (c *OrganizationsApiproductsRateplansUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1RatePlan, error) {
15494 gensupport.SetOptions(c.urlParams_, opts...)
15495 res, err := c.doRequest("json")
15496 if res != nil && res.StatusCode == http.StatusNotModified {
15497 if res.Body != nil {
15498 res.Body.Close()
15499 }
15500 return nil, gensupport.WrapError(&googleapi.Error{
15501 Code: res.StatusCode,
15502 Header: res.Header,
15503 })
15504 }
15505 if err != nil {
15506 return nil, err
15507 }
15508 defer googleapi.CloseBody(res)
15509 if err := googleapi.CheckResponse(res); err != nil {
15510 return nil, gensupport.WrapError(err)
15511 }
15512 ret := &GoogleCloudApigeeV1RatePlan{
15513 ServerResponse: googleapi.ServerResponse{
15514 Header: res.Header,
15515 HTTPStatusCode: res.StatusCode,
15516 },
15517 }
15518 target := &ret
15519 if err := gensupport.DecodeResponse(target, res); err != nil {
15520 return nil, err
15521 }
15522 return ret, nil
15523 }
15524
15525 type OrganizationsApisCreateCall struct {
15526 s *Service
15527 parent string
15528 googleapihttpbody *GoogleApiHttpBody
15529 urlParams_ gensupport.URLParams
15530 ctx_ context.Context
15531 header_ http.Header
15532 }
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552 func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
15553 c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15554 c.parent = parent
15555 c.googleapihttpbody = googleapihttpbody
15556 return c
15557 }
15558
15559
15560
15561
15562
15563
15564 func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
15565 c.urlParams_.Set("action", action)
15566 return c
15567 }
15568
15569
15570
15571 func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
15572 c.urlParams_.Set("name", name)
15573 return c
15574 }
15575
15576
15577
15578
15579 func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
15580 c.urlParams_.Set("validate", fmt.Sprint(validate))
15581 return c
15582 }
15583
15584
15585
15586
15587 func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
15588 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15589 return c
15590 }
15591
15592
15593 func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
15594 c.ctx_ = ctx
15595 return c
15596 }
15597
15598
15599
15600 func (c *OrganizationsApisCreateCall) Header() http.Header {
15601 if c.header_ == nil {
15602 c.header_ = make(http.Header)
15603 }
15604 return c.header_
15605 }
15606
15607 func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
15608 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15609 var body io.Reader = nil
15610 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
15611 if err != nil {
15612 return nil, err
15613 }
15614 c.urlParams_.Set("alt", alt)
15615 c.urlParams_.Set("prettyPrint", "false")
15616 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
15617 urls += "?" + c.urlParams_.Encode()
15618 req, err := http.NewRequest("POST", urls, body)
15619 if err != nil {
15620 return nil, err
15621 }
15622 req.Header = reqHeaders
15623 googleapi.Expand(req.URL, map[string]string{
15624 "parent": c.parent,
15625 })
15626 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15627 }
15628
15629
15630
15631
15632
15633
15634
15635 func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
15636 gensupport.SetOptions(c.urlParams_, opts...)
15637 res, err := c.doRequest("json")
15638 if res != nil && res.StatusCode == http.StatusNotModified {
15639 if res.Body != nil {
15640 res.Body.Close()
15641 }
15642 return nil, gensupport.WrapError(&googleapi.Error{
15643 Code: res.StatusCode,
15644 Header: res.Header,
15645 })
15646 }
15647 if err != nil {
15648 return nil, err
15649 }
15650 defer googleapi.CloseBody(res)
15651 if err := googleapi.CheckResponse(res); err != nil {
15652 return nil, gensupport.WrapError(err)
15653 }
15654 ret := &GoogleCloudApigeeV1ApiProxyRevision{
15655 ServerResponse: googleapi.ServerResponse{
15656 Header: res.Header,
15657 HTTPStatusCode: res.StatusCode,
15658 },
15659 }
15660 target := &ret
15661 if err := gensupport.DecodeResponse(target, res); err != nil {
15662 return nil, err
15663 }
15664 return ret, nil
15665 }
15666
15667 type OrganizationsApisDeleteCall struct {
15668 s *Service
15669 name string
15670 urlParams_ gensupport.URLParams
15671 ctx_ context.Context
15672 header_ http.Header
15673 }
15674
15675
15676
15677
15678
15679
15680
15681 func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
15682 c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15683 c.name = name
15684 return c
15685 }
15686
15687
15688
15689
15690 func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
15691 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15692 return c
15693 }
15694
15695
15696 func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
15697 c.ctx_ = ctx
15698 return c
15699 }
15700
15701
15702
15703 func (c *OrganizationsApisDeleteCall) Header() http.Header {
15704 if c.header_ == nil {
15705 c.header_ = make(http.Header)
15706 }
15707 return c.header_
15708 }
15709
15710 func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
15711 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15712 var body io.Reader = nil
15713 c.urlParams_.Set("alt", alt)
15714 c.urlParams_.Set("prettyPrint", "false")
15715 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15716 urls += "?" + c.urlParams_.Encode()
15717 req, err := http.NewRequest("DELETE", urls, body)
15718 if err != nil {
15719 return nil, err
15720 }
15721 req.Header = reqHeaders
15722 googleapi.Expand(req.URL, map[string]string{
15723 "name": c.name,
15724 })
15725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15726 }
15727
15728
15729
15730
15731
15732
15733
15734 func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15735 gensupport.SetOptions(c.urlParams_, opts...)
15736 res, err := c.doRequest("json")
15737 if res != nil && res.StatusCode == http.StatusNotModified {
15738 if res.Body != nil {
15739 res.Body.Close()
15740 }
15741 return nil, gensupport.WrapError(&googleapi.Error{
15742 Code: res.StatusCode,
15743 Header: res.Header,
15744 })
15745 }
15746 if err != nil {
15747 return nil, err
15748 }
15749 defer googleapi.CloseBody(res)
15750 if err := googleapi.CheckResponse(res); err != nil {
15751 return nil, gensupport.WrapError(err)
15752 }
15753 ret := &GoogleCloudApigeeV1ApiProxy{
15754 ServerResponse: googleapi.ServerResponse{
15755 Header: res.Header,
15756 HTTPStatusCode: res.StatusCode,
15757 },
15758 }
15759 target := &ret
15760 if err := gensupport.DecodeResponse(target, res); err != nil {
15761 return nil, err
15762 }
15763 return ret, nil
15764 }
15765
15766 type OrganizationsApisGetCall struct {
15767 s *Service
15768 name string
15769 urlParams_ gensupport.URLParams
15770 ifNoneMatch_ string
15771 ctx_ context.Context
15772 header_ http.Header
15773 }
15774
15775
15776
15777
15778
15779 func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
15780 c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15781 c.name = name
15782 return c
15783 }
15784
15785
15786
15787
15788 func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
15789 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15790 return c
15791 }
15792
15793
15794
15795
15796 func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
15797 c.ifNoneMatch_ = entityTag
15798 return c
15799 }
15800
15801
15802 func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
15803 c.ctx_ = ctx
15804 return c
15805 }
15806
15807
15808
15809 func (c *OrganizationsApisGetCall) Header() http.Header {
15810 if c.header_ == nil {
15811 c.header_ = make(http.Header)
15812 }
15813 return c.header_
15814 }
15815
15816 func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
15817 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15818 if c.ifNoneMatch_ != "" {
15819 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15820 }
15821 var body io.Reader = nil
15822 c.urlParams_.Set("alt", alt)
15823 c.urlParams_.Set("prettyPrint", "false")
15824 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15825 urls += "?" + c.urlParams_.Encode()
15826 req, err := http.NewRequest("GET", urls, body)
15827 if err != nil {
15828 return nil, err
15829 }
15830 req.Header = reqHeaders
15831 googleapi.Expand(req.URL, map[string]string{
15832 "name": c.name,
15833 })
15834 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15835 }
15836
15837
15838
15839
15840
15841
15842
15843 func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
15844 gensupport.SetOptions(c.urlParams_, opts...)
15845 res, err := c.doRequest("json")
15846 if res != nil && res.StatusCode == http.StatusNotModified {
15847 if res.Body != nil {
15848 res.Body.Close()
15849 }
15850 return nil, gensupport.WrapError(&googleapi.Error{
15851 Code: res.StatusCode,
15852 Header: res.Header,
15853 })
15854 }
15855 if err != nil {
15856 return nil, err
15857 }
15858 defer googleapi.CloseBody(res)
15859 if err := googleapi.CheckResponse(res); err != nil {
15860 return nil, gensupport.WrapError(err)
15861 }
15862 ret := &GoogleCloudApigeeV1ApiProxy{
15863 ServerResponse: googleapi.ServerResponse{
15864 Header: res.Header,
15865 HTTPStatusCode: res.StatusCode,
15866 },
15867 }
15868 target := &ret
15869 if err := gensupport.DecodeResponse(target, res); err != nil {
15870 return nil, err
15871 }
15872 return ret, nil
15873 }
15874
15875 type OrganizationsApisListCall struct {
15876 s *Service
15877 parent string
15878 urlParams_ gensupport.URLParams
15879 ifNoneMatch_ string
15880 ctx_ context.Context
15881 header_ http.Header
15882 }
15883
15884
15885
15886
15887
15888
15889
15890 func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
15891 c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15892 c.parent = parent
15893 return c
15894 }
15895
15896
15897
15898 func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
15899 c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
15900 return c
15901 }
15902
15903
15904
15905 func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
15906 c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
15907 return c
15908 }
15909
15910
15911
15912
15913 func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
15914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15915 return c
15916 }
15917
15918
15919
15920
15921 func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
15922 c.ifNoneMatch_ = entityTag
15923 return c
15924 }
15925
15926
15927 func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
15928 c.ctx_ = ctx
15929 return c
15930 }
15931
15932
15933
15934 func (c *OrganizationsApisListCall) Header() http.Header {
15935 if c.header_ == nil {
15936 c.header_ = make(http.Header)
15937 }
15938 return c.header_
15939 }
15940
15941 func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
15942 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15943 if c.ifNoneMatch_ != "" {
15944 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15945 }
15946 var body io.Reader = nil
15947 c.urlParams_.Set("alt", alt)
15948 c.urlParams_.Set("prettyPrint", "false")
15949 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
15950 urls += "?" + c.urlParams_.Encode()
15951 req, err := http.NewRequest("GET", urls, body)
15952 if err != nil {
15953 return nil, err
15954 }
15955 req.Header = reqHeaders
15956 googleapi.Expand(req.URL, map[string]string{
15957 "parent": c.parent,
15958 })
15959 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15960 }
15961
15962
15963
15964
15965
15966
15967
15968 func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
15969 gensupport.SetOptions(c.urlParams_, opts...)
15970 res, err := c.doRequest("json")
15971 if res != nil && res.StatusCode == http.StatusNotModified {
15972 if res.Body != nil {
15973 res.Body.Close()
15974 }
15975 return nil, gensupport.WrapError(&googleapi.Error{
15976 Code: res.StatusCode,
15977 Header: res.Header,
15978 })
15979 }
15980 if err != nil {
15981 return nil, err
15982 }
15983 defer googleapi.CloseBody(res)
15984 if err := googleapi.CheckResponse(res); err != nil {
15985 return nil, gensupport.WrapError(err)
15986 }
15987 ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
15988 ServerResponse: googleapi.ServerResponse{
15989 Header: res.Header,
15990 HTTPStatusCode: res.StatusCode,
15991 },
15992 }
15993 target := &ret
15994 if err := gensupport.DecodeResponse(target, res); err != nil {
15995 return nil, err
15996 }
15997 return ret, nil
15998 }
15999
16000 type OrganizationsApisPatchCall struct {
16001 s *Service
16002 name string
16003 googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy
16004 urlParams_ gensupport.URLParams
16005 ctx_ context.Context
16006 header_ http.Header
16007 }
16008
16009
16010
16011
16012
16013 func (r *OrganizationsApisService) Patch(name string, googlecloudapigeev1apiproxy *GoogleCloudApigeeV1ApiProxy) *OrganizationsApisPatchCall {
16014 c := &OrganizationsApisPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16015 c.name = name
16016 c.googlecloudapigeev1apiproxy = googlecloudapigeev1apiproxy
16017 return c
16018 }
16019
16020
16021
16022 func (c *OrganizationsApisPatchCall) UpdateMask(updateMask string) *OrganizationsApisPatchCall {
16023 c.urlParams_.Set("updateMask", updateMask)
16024 return c
16025 }
16026
16027
16028
16029
16030 func (c *OrganizationsApisPatchCall) Fields(s ...googleapi.Field) *OrganizationsApisPatchCall {
16031 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16032 return c
16033 }
16034
16035
16036 func (c *OrganizationsApisPatchCall) Context(ctx context.Context) *OrganizationsApisPatchCall {
16037 c.ctx_ = ctx
16038 return c
16039 }
16040
16041
16042
16043 func (c *OrganizationsApisPatchCall) Header() http.Header {
16044 if c.header_ == nil {
16045 c.header_ = make(http.Header)
16046 }
16047 return c.header_
16048 }
16049
16050 func (c *OrganizationsApisPatchCall) doRequest(alt string) (*http.Response, error) {
16051 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16052 var body io.Reader = nil
16053 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproxy)
16054 if err != nil {
16055 return nil, err
16056 }
16057 c.urlParams_.Set("alt", alt)
16058 c.urlParams_.Set("prettyPrint", "false")
16059 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16060 urls += "?" + c.urlParams_.Encode()
16061 req, err := http.NewRequest("PATCH", urls, body)
16062 if err != nil {
16063 return nil, err
16064 }
16065 req.Header = reqHeaders
16066 googleapi.Expand(req.URL, map[string]string{
16067 "name": c.name,
16068 })
16069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16070 }
16071
16072
16073
16074
16075
16076
16077
16078 func (c *OrganizationsApisPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
16079 gensupport.SetOptions(c.urlParams_, opts...)
16080 res, err := c.doRequest("json")
16081 if res != nil && res.StatusCode == http.StatusNotModified {
16082 if res.Body != nil {
16083 res.Body.Close()
16084 }
16085 return nil, gensupport.WrapError(&googleapi.Error{
16086 Code: res.StatusCode,
16087 Header: res.Header,
16088 })
16089 }
16090 if err != nil {
16091 return nil, err
16092 }
16093 defer googleapi.CloseBody(res)
16094 if err := googleapi.CheckResponse(res); err != nil {
16095 return nil, gensupport.WrapError(err)
16096 }
16097 ret := &GoogleCloudApigeeV1ApiProxy{
16098 ServerResponse: googleapi.ServerResponse{
16099 Header: res.Header,
16100 HTTPStatusCode: res.StatusCode,
16101 },
16102 }
16103 target := &ret
16104 if err := gensupport.DecodeResponse(target, res); err != nil {
16105 return nil, err
16106 }
16107 return ret, nil
16108 }
16109
16110 type OrganizationsApisDeploymentsListCall struct {
16111 s *Service
16112 parent string
16113 urlParams_ gensupport.URLParams
16114 ifNoneMatch_ string
16115 ctx_ context.Context
16116 header_ http.Header
16117 }
16118
16119
16120
16121
16122
16123 func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
16124 c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16125 c.parent = parent
16126 return c
16127 }
16128
16129
16130
16131
16132 func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
16133 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16134 return c
16135 }
16136
16137
16138
16139
16140 func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
16141 c.ifNoneMatch_ = entityTag
16142 return c
16143 }
16144
16145
16146 func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
16147 c.ctx_ = ctx
16148 return c
16149 }
16150
16151
16152
16153 func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
16154 if c.header_ == nil {
16155 c.header_ = make(http.Header)
16156 }
16157 return c.header_
16158 }
16159
16160 func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
16161 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16162 if c.ifNoneMatch_ != "" {
16163 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16164 }
16165 var body io.Reader = nil
16166 c.urlParams_.Set("alt", alt)
16167 c.urlParams_.Set("prettyPrint", "false")
16168 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
16169 urls += "?" + c.urlParams_.Encode()
16170 req, err := http.NewRequest("GET", urls, body)
16171 if err != nil {
16172 return nil, err
16173 }
16174 req.Header = reqHeaders
16175 googleapi.Expand(req.URL, map[string]string{
16176 "parent": c.parent,
16177 })
16178 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16179 }
16180
16181
16182
16183
16184
16185
16186
16187 func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
16188 gensupport.SetOptions(c.urlParams_, opts...)
16189 res, err := c.doRequest("json")
16190 if res != nil && res.StatusCode == http.StatusNotModified {
16191 if res.Body != nil {
16192 res.Body.Close()
16193 }
16194 return nil, gensupport.WrapError(&googleapi.Error{
16195 Code: res.StatusCode,
16196 Header: res.Header,
16197 })
16198 }
16199 if err != nil {
16200 return nil, err
16201 }
16202 defer googleapi.CloseBody(res)
16203 if err := googleapi.CheckResponse(res); err != nil {
16204 return nil, gensupport.WrapError(err)
16205 }
16206 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
16207 ServerResponse: googleapi.ServerResponse{
16208 Header: res.Header,
16209 HTTPStatusCode: res.StatusCode,
16210 },
16211 }
16212 target := &ret
16213 if err := gensupport.DecodeResponse(target, res); err != nil {
16214 return nil, err
16215 }
16216 return ret, nil
16217 }
16218
16219 type OrganizationsApisKeyvaluemapsCreateCall struct {
16220 s *Service
16221 parent string
16222 googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
16223 urlParams_ gensupport.URLParams
16224 ctx_ context.Context
16225 header_ http.Header
16226 }
16227
16228
16229
16230
16231
16232 func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
16233 c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16234 c.parent = parent
16235 c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
16236 return c
16237 }
16238
16239
16240
16241
16242 func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
16243 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16244 return c
16245 }
16246
16247
16248 func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
16249 c.ctx_ = ctx
16250 return c
16251 }
16252
16253
16254
16255 func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
16256 if c.header_ == nil {
16257 c.header_ = make(http.Header)
16258 }
16259 return c.header_
16260 }
16261
16262 func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
16263 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16264 var body io.Reader = nil
16265 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
16266 if err != nil {
16267 return nil, err
16268 }
16269 c.urlParams_.Set("alt", alt)
16270 c.urlParams_.Set("prettyPrint", "false")
16271 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
16272 urls += "?" + c.urlParams_.Encode()
16273 req, err := http.NewRequest("POST", urls, body)
16274 if err != nil {
16275 return nil, err
16276 }
16277 req.Header = reqHeaders
16278 googleapi.Expand(req.URL, map[string]string{
16279 "parent": c.parent,
16280 })
16281 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16282 }
16283
16284
16285
16286
16287
16288
16289
16290 func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
16291 gensupport.SetOptions(c.urlParams_, opts...)
16292 res, err := c.doRequest("json")
16293 if res != nil && res.StatusCode == http.StatusNotModified {
16294 if res.Body != nil {
16295 res.Body.Close()
16296 }
16297 return nil, gensupport.WrapError(&googleapi.Error{
16298 Code: res.StatusCode,
16299 Header: res.Header,
16300 })
16301 }
16302 if err != nil {
16303 return nil, err
16304 }
16305 defer googleapi.CloseBody(res)
16306 if err := googleapi.CheckResponse(res); err != nil {
16307 return nil, gensupport.WrapError(err)
16308 }
16309 ret := &GoogleCloudApigeeV1KeyValueMap{
16310 ServerResponse: googleapi.ServerResponse{
16311 Header: res.Header,
16312 HTTPStatusCode: res.StatusCode,
16313 },
16314 }
16315 target := &ret
16316 if err := gensupport.DecodeResponse(target, res); err != nil {
16317 return nil, err
16318 }
16319 return ret, nil
16320 }
16321
16322 type OrganizationsApisKeyvaluemapsDeleteCall struct {
16323 s *Service
16324 name string
16325 urlParams_ gensupport.URLParams
16326 ctx_ context.Context
16327 header_ http.Header
16328 }
16329
16330
16331
16332
16333
16334 func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
16335 c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16336 c.name = name
16337 return c
16338 }
16339
16340
16341
16342
16343 func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
16344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16345 return c
16346 }
16347
16348
16349 func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
16350 c.ctx_ = ctx
16351 return c
16352 }
16353
16354
16355
16356 func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
16357 if c.header_ == nil {
16358 c.header_ = make(http.Header)
16359 }
16360 return c.header_
16361 }
16362
16363 func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
16364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16365 var body io.Reader = nil
16366 c.urlParams_.Set("alt", alt)
16367 c.urlParams_.Set("prettyPrint", "false")
16368 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16369 urls += "?" + c.urlParams_.Encode()
16370 req, err := http.NewRequest("DELETE", urls, body)
16371 if err != nil {
16372 return nil, err
16373 }
16374 req.Header = reqHeaders
16375 googleapi.Expand(req.URL, map[string]string{
16376 "name": c.name,
16377 })
16378 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16379 }
16380
16381
16382
16383
16384
16385
16386
16387 func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
16388 gensupport.SetOptions(c.urlParams_, opts...)
16389 res, err := c.doRequest("json")
16390 if res != nil && res.StatusCode == http.StatusNotModified {
16391 if res.Body != nil {
16392 res.Body.Close()
16393 }
16394 return nil, gensupport.WrapError(&googleapi.Error{
16395 Code: res.StatusCode,
16396 Header: res.Header,
16397 })
16398 }
16399 if err != nil {
16400 return nil, err
16401 }
16402 defer googleapi.CloseBody(res)
16403 if err := googleapi.CheckResponse(res); err != nil {
16404 return nil, gensupport.WrapError(err)
16405 }
16406 ret := &GoogleCloudApigeeV1KeyValueMap{
16407 ServerResponse: googleapi.ServerResponse{
16408 Header: res.Header,
16409 HTTPStatusCode: res.StatusCode,
16410 },
16411 }
16412 target := &ret
16413 if err := gensupport.DecodeResponse(target, res); err != nil {
16414 return nil, err
16415 }
16416 return ret, nil
16417 }
16418
16419 type OrganizationsApisKeyvaluemapsEntriesCreateCall struct {
16420 s *Service
16421 parent string
16422 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
16423 urlParams_ gensupport.URLParams
16424 ctx_ context.Context
16425 header_ http.Header
16426 }
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437 func (r *OrganizationsApisKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
16438 c := &OrganizationsApisKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16439 c.parent = parent
16440 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
16441 return c
16442 }
16443
16444
16445
16446
16447 func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
16448 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16449 return c
16450 }
16451
16452
16453 func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesCreateCall {
16454 c.ctx_ = ctx
16455 return c
16456 }
16457
16458
16459
16460 func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Header() http.Header {
16461 if c.header_ == nil {
16462 c.header_ = make(http.Header)
16463 }
16464 return c.header_
16465 }
16466
16467 func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
16468 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16469 var body io.Reader = nil
16470 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
16471 if err != nil {
16472 return nil, err
16473 }
16474 c.urlParams_.Set("alt", alt)
16475 c.urlParams_.Set("prettyPrint", "false")
16476 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
16477 urls += "?" + c.urlParams_.Encode()
16478 req, err := http.NewRequest("POST", urls, body)
16479 if err != nil {
16480 return nil, err
16481 }
16482 req.Header = reqHeaders
16483 googleapi.Expand(req.URL, map[string]string{
16484 "parent": c.parent,
16485 })
16486 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16487 }
16488
16489
16490
16491
16492
16493
16494
16495 func (c *OrganizationsApisKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
16496 gensupport.SetOptions(c.urlParams_, opts...)
16497 res, err := c.doRequest("json")
16498 if res != nil && res.StatusCode == http.StatusNotModified {
16499 if res.Body != nil {
16500 res.Body.Close()
16501 }
16502 return nil, gensupport.WrapError(&googleapi.Error{
16503 Code: res.StatusCode,
16504 Header: res.Header,
16505 })
16506 }
16507 if err != nil {
16508 return nil, err
16509 }
16510 defer googleapi.CloseBody(res)
16511 if err := googleapi.CheckResponse(res); err != nil {
16512 return nil, gensupport.WrapError(err)
16513 }
16514 ret := &GoogleCloudApigeeV1KeyValueEntry{
16515 ServerResponse: googleapi.ServerResponse{
16516 Header: res.Header,
16517 HTTPStatusCode: res.StatusCode,
16518 },
16519 }
16520 target := &ret
16521 if err := gensupport.DecodeResponse(target, res); err != nil {
16522 return nil, err
16523 }
16524 return ret, nil
16525 }
16526
16527 type OrganizationsApisKeyvaluemapsEntriesDeleteCall struct {
16528 s *Service
16529 name string
16530 urlParams_ gensupport.URLParams
16531 ctx_ context.Context
16532 header_ http.Header
16533 }
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548 func (r *OrganizationsApisKeyvaluemapsEntriesService) Delete(name string) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
16549 c := &OrganizationsApisKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16550 c.name = name
16551 return c
16552 }
16553
16554
16555
16556
16557 func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
16558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16559 return c
16560 }
16561
16562
16563 func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesDeleteCall {
16564 c.ctx_ = ctx
16565 return c
16566 }
16567
16568
16569
16570 func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Header() http.Header {
16571 if c.header_ == nil {
16572 c.header_ = make(http.Header)
16573 }
16574 return c.header_
16575 }
16576
16577 func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
16578 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16579 var body io.Reader = nil
16580 c.urlParams_.Set("alt", alt)
16581 c.urlParams_.Set("prettyPrint", "false")
16582 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16583 urls += "?" + c.urlParams_.Encode()
16584 req, err := http.NewRequest("DELETE", urls, body)
16585 if err != nil {
16586 return nil, err
16587 }
16588 req.Header = reqHeaders
16589 googleapi.Expand(req.URL, map[string]string{
16590 "name": c.name,
16591 })
16592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16593 }
16594
16595
16596
16597
16598
16599
16600
16601 func (c *OrganizationsApisKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
16602 gensupport.SetOptions(c.urlParams_, opts...)
16603 res, err := c.doRequest("json")
16604 if res != nil && res.StatusCode == http.StatusNotModified {
16605 if res.Body != nil {
16606 res.Body.Close()
16607 }
16608 return nil, gensupport.WrapError(&googleapi.Error{
16609 Code: res.StatusCode,
16610 Header: res.Header,
16611 })
16612 }
16613 if err != nil {
16614 return nil, err
16615 }
16616 defer googleapi.CloseBody(res)
16617 if err := googleapi.CheckResponse(res); err != nil {
16618 return nil, gensupport.WrapError(err)
16619 }
16620 ret := &GoogleCloudApigeeV1KeyValueEntry{
16621 ServerResponse: googleapi.ServerResponse{
16622 Header: res.Header,
16623 HTTPStatusCode: res.StatusCode,
16624 },
16625 }
16626 target := &ret
16627 if err := gensupport.DecodeResponse(target, res); err != nil {
16628 return nil, err
16629 }
16630 return ret, nil
16631 }
16632
16633 type OrganizationsApisKeyvaluemapsEntriesGetCall struct {
16634 s *Service
16635 name string
16636 urlParams_ gensupport.URLParams
16637 ifNoneMatch_ string
16638 ctx_ context.Context
16639 header_ http.Header
16640 }
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653 func (r *OrganizationsApisKeyvaluemapsEntriesService) Get(name string) *OrganizationsApisKeyvaluemapsEntriesGetCall {
16654 c := &OrganizationsApisKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16655 c.name = name
16656 return c
16657 }
16658
16659
16660
16661
16662 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesGetCall {
16663 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16664 return c
16665 }
16666
16667
16668
16669
16670 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsApisKeyvaluemapsEntriesGetCall {
16671 c.ifNoneMatch_ = entityTag
16672 return c
16673 }
16674
16675
16676 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesGetCall {
16677 c.ctx_ = ctx
16678 return c
16679 }
16680
16681
16682
16683 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Header() http.Header {
16684 if c.header_ == nil {
16685 c.header_ = make(http.Header)
16686 }
16687 return c.header_
16688 }
16689
16690 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
16691 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16692 if c.ifNoneMatch_ != "" {
16693 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16694 }
16695 var body io.Reader = nil
16696 c.urlParams_.Set("alt", alt)
16697 c.urlParams_.Set("prettyPrint", "false")
16698 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16699 urls += "?" + c.urlParams_.Encode()
16700 req, err := http.NewRequest("GET", urls, body)
16701 if err != nil {
16702 return nil, err
16703 }
16704 req.Header = reqHeaders
16705 googleapi.Expand(req.URL, map[string]string{
16706 "name": c.name,
16707 })
16708 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16709 }
16710
16711
16712
16713
16714
16715
16716
16717 func (c *OrganizationsApisKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
16718 gensupport.SetOptions(c.urlParams_, opts...)
16719 res, err := c.doRequest("json")
16720 if res != nil && res.StatusCode == http.StatusNotModified {
16721 if res.Body != nil {
16722 res.Body.Close()
16723 }
16724 return nil, gensupport.WrapError(&googleapi.Error{
16725 Code: res.StatusCode,
16726 Header: res.Header,
16727 })
16728 }
16729 if err != nil {
16730 return nil, err
16731 }
16732 defer googleapi.CloseBody(res)
16733 if err := googleapi.CheckResponse(res); err != nil {
16734 return nil, gensupport.WrapError(err)
16735 }
16736 ret := &GoogleCloudApigeeV1KeyValueEntry{
16737 ServerResponse: googleapi.ServerResponse{
16738 Header: res.Header,
16739 HTTPStatusCode: res.StatusCode,
16740 },
16741 }
16742 target := &ret
16743 if err := gensupport.DecodeResponse(target, res); err != nil {
16744 return nil, err
16745 }
16746 return ret, nil
16747 }
16748
16749 type OrganizationsApisKeyvaluemapsEntriesListCall struct {
16750 s *Service
16751 parent string
16752 urlParams_ gensupport.URLParams
16753 ifNoneMatch_ string
16754 ctx_ context.Context
16755 header_ http.Header
16756 }
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767 func (r *OrganizationsApisKeyvaluemapsEntriesService) List(parent string) *OrganizationsApisKeyvaluemapsEntriesListCall {
16768 c := &OrganizationsApisKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16769 c.parent = parent
16770 return c
16771 }
16772
16773
16774
16775 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsApisKeyvaluemapsEntriesListCall {
16776 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16777 return c
16778 }
16779
16780
16781
16782
16783 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsApisKeyvaluemapsEntriesListCall {
16784 c.urlParams_.Set("pageToken", pageToken)
16785 return c
16786 }
16787
16788
16789
16790
16791 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesListCall {
16792 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16793 return c
16794 }
16795
16796
16797
16798
16799 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsApisKeyvaluemapsEntriesListCall {
16800 c.ifNoneMatch_ = entityTag
16801 return c
16802 }
16803
16804
16805 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesListCall {
16806 c.ctx_ = ctx
16807 return c
16808 }
16809
16810
16811
16812 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Header() http.Header {
16813 if c.header_ == nil {
16814 c.header_ = make(http.Header)
16815 }
16816 return c.header_
16817 }
16818
16819 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
16820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16821 if c.ifNoneMatch_ != "" {
16822 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16823 }
16824 var body io.Reader = nil
16825 c.urlParams_.Set("alt", alt)
16826 c.urlParams_.Set("prettyPrint", "false")
16827 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
16828 urls += "?" + c.urlParams_.Encode()
16829 req, err := http.NewRequest("GET", urls, body)
16830 if err != nil {
16831 return nil, err
16832 }
16833 req.Header = reqHeaders
16834 googleapi.Expand(req.URL, map[string]string{
16835 "parent": c.parent,
16836 })
16837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16838 }
16839
16840
16841
16842
16843
16844
16845
16846 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
16847 gensupport.SetOptions(c.urlParams_, opts...)
16848 res, err := c.doRequest("json")
16849 if res != nil && res.StatusCode == http.StatusNotModified {
16850 if res.Body != nil {
16851 res.Body.Close()
16852 }
16853 return nil, gensupport.WrapError(&googleapi.Error{
16854 Code: res.StatusCode,
16855 Header: res.Header,
16856 })
16857 }
16858 if err != nil {
16859 return nil, err
16860 }
16861 defer googleapi.CloseBody(res)
16862 if err := googleapi.CheckResponse(res); err != nil {
16863 return nil, gensupport.WrapError(err)
16864 }
16865 ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
16866 ServerResponse: googleapi.ServerResponse{
16867 Header: res.Header,
16868 HTTPStatusCode: res.StatusCode,
16869 },
16870 }
16871 target := &ret
16872 if err := gensupport.DecodeResponse(target, res); err != nil {
16873 return nil, err
16874 }
16875 return ret, nil
16876 }
16877
16878
16879
16880
16881 func (c *OrganizationsApisKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
16882 c.ctx_ = ctx
16883 defer c.PageToken(c.urlParams_.Get("pageToken"))
16884 for {
16885 x, err := c.Do()
16886 if err != nil {
16887 return err
16888 }
16889 if err := f(x); err != nil {
16890 return err
16891 }
16892 if x.NextPageToken == "" {
16893 return nil
16894 }
16895 c.PageToken(x.NextPageToken)
16896 }
16897 }
16898
16899 type OrganizationsApisKeyvaluemapsEntriesUpdateCall struct {
16900 s *Service
16901 name string
16902 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
16903 urlParams_ gensupport.URLParams
16904 ctx_ context.Context
16905 header_ http.Header
16906 }
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916 func (r *OrganizationsApisKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
16917 c := &OrganizationsApisKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16918 c.name = name
16919 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
16920 return c
16921 }
16922
16923
16924
16925
16926 func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
16927 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16928 return c
16929 }
16930
16931
16932 func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsEntriesUpdateCall {
16933 c.ctx_ = ctx
16934 return c
16935 }
16936
16937
16938
16939 func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Header() http.Header {
16940 if c.header_ == nil {
16941 c.header_ = make(http.Header)
16942 }
16943 return c.header_
16944 }
16945
16946 func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
16947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16948 var body io.Reader = nil
16949 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
16950 if err != nil {
16951 return nil, err
16952 }
16953 c.urlParams_.Set("alt", alt)
16954 c.urlParams_.Set("prettyPrint", "false")
16955 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16956 urls += "?" + c.urlParams_.Encode()
16957 req, err := http.NewRequest("PUT", urls, body)
16958 if err != nil {
16959 return nil, err
16960 }
16961 req.Header = reqHeaders
16962 googleapi.Expand(req.URL, map[string]string{
16963 "name": c.name,
16964 })
16965 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16966 }
16967
16968
16969
16970
16971
16972
16973
16974 func (c *OrganizationsApisKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
16975 gensupport.SetOptions(c.urlParams_, opts...)
16976 res, err := c.doRequest("json")
16977 if res != nil && res.StatusCode == http.StatusNotModified {
16978 if res.Body != nil {
16979 res.Body.Close()
16980 }
16981 return nil, gensupport.WrapError(&googleapi.Error{
16982 Code: res.StatusCode,
16983 Header: res.Header,
16984 })
16985 }
16986 if err != nil {
16987 return nil, err
16988 }
16989 defer googleapi.CloseBody(res)
16990 if err := googleapi.CheckResponse(res); err != nil {
16991 return nil, gensupport.WrapError(err)
16992 }
16993 ret := &GoogleCloudApigeeV1KeyValueEntry{
16994 ServerResponse: googleapi.ServerResponse{
16995 Header: res.Header,
16996 HTTPStatusCode: res.StatusCode,
16997 },
16998 }
16999 target := &ret
17000 if err := gensupport.DecodeResponse(target, res); err != nil {
17001 return nil, err
17002 }
17003 return ret, nil
17004 }
17005
17006 type OrganizationsApisRevisionsDeleteCall struct {
17007 s *Service
17008 name string
17009 urlParams_ gensupport.URLParams
17010 ctx_ context.Context
17011 header_ http.Header
17012 }
17013
17014
17015
17016
17017
17018
17019
17020 func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
17021 c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17022 c.name = name
17023 return c
17024 }
17025
17026
17027
17028
17029 func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
17030 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17031 return c
17032 }
17033
17034
17035 func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
17036 c.ctx_ = ctx
17037 return c
17038 }
17039
17040
17041
17042 func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
17043 if c.header_ == nil {
17044 c.header_ = make(http.Header)
17045 }
17046 return c.header_
17047 }
17048
17049 func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
17050 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17051 var body io.Reader = nil
17052 c.urlParams_.Set("alt", alt)
17053 c.urlParams_.Set("prettyPrint", "false")
17054 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17055 urls += "?" + c.urlParams_.Encode()
17056 req, err := http.NewRequest("DELETE", urls, body)
17057 if err != nil {
17058 return nil, err
17059 }
17060 req.Header = reqHeaders
17061 googleapi.Expand(req.URL, map[string]string{
17062 "name": c.name,
17063 })
17064 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17065 }
17066
17067
17068
17069
17070
17071
17072
17073 func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
17074 gensupport.SetOptions(c.urlParams_, opts...)
17075 res, err := c.doRequest("json")
17076 if res != nil && res.StatusCode == http.StatusNotModified {
17077 if res.Body != nil {
17078 res.Body.Close()
17079 }
17080 return nil, gensupport.WrapError(&googleapi.Error{
17081 Code: res.StatusCode,
17082 Header: res.Header,
17083 })
17084 }
17085 if err != nil {
17086 return nil, err
17087 }
17088 defer googleapi.CloseBody(res)
17089 if err := googleapi.CheckResponse(res); err != nil {
17090 return nil, gensupport.WrapError(err)
17091 }
17092 ret := &GoogleCloudApigeeV1ApiProxyRevision{
17093 ServerResponse: googleapi.ServerResponse{
17094 Header: res.Header,
17095 HTTPStatusCode: res.StatusCode,
17096 },
17097 }
17098 target := &ret
17099 if err := gensupport.DecodeResponse(target, res); err != nil {
17100 return nil, err
17101 }
17102 return ret, nil
17103 }
17104
17105 type OrganizationsApisRevisionsGetCall struct {
17106 s *Service
17107 name string
17108 urlParams_ gensupport.URLParams
17109 ifNoneMatch_ string
17110 ctx_ context.Context
17111 header_ http.Header
17112 }
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124 func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
17125 c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17126 c.name = name
17127 return c
17128 }
17129
17130
17131
17132
17133 func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
17134 c.urlParams_.Set("format", format)
17135 return c
17136 }
17137
17138
17139
17140
17141 func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
17142 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17143 return c
17144 }
17145
17146
17147
17148
17149 func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
17150 c.ifNoneMatch_ = entityTag
17151 return c
17152 }
17153
17154
17155 func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
17156 c.ctx_ = ctx
17157 return c
17158 }
17159
17160
17161
17162 func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
17163 if c.header_ == nil {
17164 c.header_ = make(http.Header)
17165 }
17166 return c.header_
17167 }
17168
17169 func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
17170 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17171 if c.ifNoneMatch_ != "" {
17172 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17173 }
17174 var body io.Reader = nil
17175 c.urlParams_.Set("alt", alt)
17176 c.urlParams_.Set("prettyPrint", "false")
17177 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17178 urls += "?" + c.urlParams_.Encode()
17179 req, err := http.NewRequest("GET", urls, body)
17180 if err != nil {
17181 return nil, err
17182 }
17183 req.Header = reqHeaders
17184 googleapi.Expand(req.URL, map[string]string{
17185 "name": c.name,
17186 })
17187 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17188 }
17189
17190
17191
17192
17193
17194
17195
17196 func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
17197 gensupport.SetOptions(c.urlParams_, opts...)
17198 res, err := c.doRequest("json")
17199 if res != nil && res.StatusCode == http.StatusNotModified {
17200 if res.Body != nil {
17201 res.Body.Close()
17202 }
17203 return nil, gensupport.WrapError(&googleapi.Error{
17204 Code: res.StatusCode,
17205 Header: res.Header,
17206 })
17207 }
17208 if err != nil {
17209 return nil, err
17210 }
17211 defer googleapi.CloseBody(res)
17212 if err := googleapi.CheckResponse(res); err != nil {
17213 return nil, gensupport.WrapError(err)
17214 }
17215 ret := &GoogleApiHttpBody{
17216 ServerResponse: googleapi.ServerResponse{
17217 Header: res.Header,
17218 HTTPStatusCode: res.StatusCode,
17219 },
17220 }
17221 target := &ret
17222 if err := gensupport.DecodeResponse(target, res); err != nil {
17223 return nil, err
17224 }
17225 return ret, nil
17226 }
17227
17228 type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
17229 s *Service
17230 name string
17231 googleapihttpbody *GoogleApiHttpBody
17232 urlParams_ gensupport.URLParams
17233 ctx_ context.Context
17234 header_ http.Header
17235 }
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246 func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
17247 c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17248 c.name = name
17249 c.googleapihttpbody = googleapihttpbody
17250 return c
17251 }
17252
17253
17254
17255
17256 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
17257 c.urlParams_.Set("validate", fmt.Sprint(validate))
17258 return c
17259 }
17260
17261
17262
17263
17264 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
17265 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17266 return c
17267 }
17268
17269
17270 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
17271 c.ctx_ = ctx
17272 return c
17273 }
17274
17275
17276
17277 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
17278 if c.header_ == nil {
17279 c.header_ = make(http.Header)
17280 }
17281 return c.header_
17282 }
17283
17284 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
17285 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17286 var body io.Reader = nil
17287 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
17288 if err != nil {
17289 return nil, err
17290 }
17291 c.urlParams_.Set("alt", alt)
17292 c.urlParams_.Set("prettyPrint", "false")
17293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17294 urls += "?" + c.urlParams_.Encode()
17295 req, err := http.NewRequest("POST", urls, body)
17296 if err != nil {
17297 return nil, err
17298 }
17299 req.Header = reqHeaders
17300 googleapi.Expand(req.URL, map[string]string{
17301 "name": c.name,
17302 })
17303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17304 }
17305
17306
17307
17308
17309
17310
17311
17312 func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
17313 gensupport.SetOptions(c.urlParams_, opts...)
17314 res, err := c.doRequest("json")
17315 if res != nil && res.StatusCode == http.StatusNotModified {
17316 if res.Body != nil {
17317 res.Body.Close()
17318 }
17319 return nil, gensupport.WrapError(&googleapi.Error{
17320 Code: res.StatusCode,
17321 Header: res.Header,
17322 })
17323 }
17324 if err != nil {
17325 return nil, err
17326 }
17327 defer googleapi.CloseBody(res)
17328 if err := googleapi.CheckResponse(res); err != nil {
17329 return nil, gensupport.WrapError(err)
17330 }
17331 ret := &GoogleCloudApigeeV1ApiProxyRevision{
17332 ServerResponse: googleapi.ServerResponse{
17333 Header: res.Header,
17334 HTTPStatusCode: res.StatusCode,
17335 },
17336 }
17337 target := &ret
17338 if err := gensupport.DecodeResponse(target, res); err != nil {
17339 return nil, err
17340 }
17341 return ret, nil
17342 }
17343
17344 type OrganizationsApisRevisionsDeploymentsListCall struct {
17345 s *Service
17346 parent string
17347 urlParams_ gensupport.URLParams
17348 ifNoneMatch_ string
17349 ctx_ context.Context
17350 header_ http.Header
17351 }
17352
17353
17354
17355
17356
17357
17358 func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
17359 c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17360 c.parent = parent
17361 return c
17362 }
17363
17364
17365
17366
17367 func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
17368 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17369 return c
17370 }
17371
17372
17373
17374
17375 func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
17376 c.ifNoneMatch_ = entityTag
17377 return c
17378 }
17379
17380
17381 func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
17382 c.ctx_ = ctx
17383 return c
17384 }
17385
17386
17387
17388 func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
17389 if c.header_ == nil {
17390 c.header_ = make(http.Header)
17391 }
17392 return c.header_
17393 }
17394
17395 func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
17396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17397 if c.ifNoneMatch_ != "" {
17398 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17399 }
17400 var body io.Reader = nil
17401 c.urlParams_.Set("alt", alt)
17402 c.urlParams_.Set("prettyPrint", "false")
17403 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
17404 urls += "?" + c.urlParams_.Encode()
17405 req, err := http.NewRequest("GET", urls, body)
17406 if err != nil {
17407 return nil, err
17408 }
17409 req.Header = reqHeaders
17410 googleapi.Expand(req.URL, map[string]string{
17411 "parent": c.parent,
17412 })
17413 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17414 }
17415
17416
17417
17418
17419
17420
17421
17422 func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
17423 gensupport.SetOptions(c.urlParams_, opts...)
17424 res, err := c.doRequest("json")
17425 if res != nil && res.StatusCode == http.StatusNotModified {
17426 if res.Body != nil {
17427 res.Body.Close()
17428 }
17429 return nil, gensupport.WrapError(&googleapi.Error{
17430 Code: res.StatusCode,
17431 Header: res.Header,
17432 })
17433 }
17434 if err != nil {
17435 return nil, err
17436 }
17437 defer googleapi.CloseBody(res)
17438 if err := googleapi.CheckResponse(res); err != nil {
17439 return nil, gensupport.WrapError(err)
17440 }
17441 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
17442 ServerResponse: googleapi.ServerResponse{
17443 Header: res.Header,
17444 HTTPStatusCode: res.StatusCode,
17445 },
17446 }
17447 target := &ret
17448 if err := gensupport.DecodeResponse(target, res); err != nil {
17449 return nil, err
17450 }
17451 return ret, nil
17452 }
17453
17454 type OrganizationsAppgroupsCreateCall struct {
17455 s *Service
17456 parent string
17457 googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup
17458 urlParams_ gensupport.URLParams
17459 ctx_ context.Context
17460 header_ http.Header
17461 }
17462
17463
17464
17465
17466
17467
17468
17469 func (r *OrganizationsAppgroupsService) Create(parent string, googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup) *OrganizationsAppgroupsCreateCall {
17470 c := &OrganizationsAppgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17471 c.parent = parent
17472 c.googlecloudapigeev1appgroup = googlecloudapigeev1appgroup
17473 return c
17474 }
17475
17476
17477
17478
17479 func (c *OrganizationsAppgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsCreateCall {
17480 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17481 return c
17482 }
17483
17484
17485 func (c *OrganizationsAppgroupsCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsCreateCall {
17486 c.ctx_ = ctx
17487 return c
17488 }
17489
17490
17491
17492 func (c *OrganizationsAppgroupsCreateCall) Header() http.Header {
17493 if c.header_ == nil {
17494 c.header_ = make(http.Header)
17495 }
17496 return c.header_
17497 }
17498
17499 func (c *OrganizationsAppgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
17500 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17501 var body io.Reader = nil
17502 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroup)
17503 if err != nil {
17504 return nil, err
17505 }
17506 c.urlParams_.Set("alt", alt)
17507 c.urlParams_.Set("prettyPrint", "false")
17508 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appgroups")
17509 urls += "?" + c.urlParams_.Encode()
17510 req, err := http.NewRequest("POST", urls, body)
17511 if err != nil {
17512 return nil, err
17513 }
17514 req.Header = reqHeaders
17515 googleapi.Expand(req.URL, map[string]string{
17516 "parent": c.parent,
17517 })
17518 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17519 }
17520
17521
17522
17523
17524
17525
17526
17527 func (c *OrganizationsAppgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
17528 gensupport.SetOptions(c.urlParams_, opts...)
17529 res, err := c.doRequest("json")
17530 if res != nil && res.StatusCode == http.StatusNotModified {
17531 if res.Body != nil {
17532 res.Body.Close()
17533 }
17534 return nil, gensupport.WrapError(&googleapi.Error{
17535 Code: res.StatusCode,
17536 Header: res.Header,
17537 })
17538 }
17539 if err != nil {
17540 return nil, err
17541 }
17542 defer googleapi.CloseBody(res)
17543 if err := googleapi.CheckResponse(res); err != nil {
17544 return nil, gensupport.WrapError(err)
17545 }
17546 ret := &GoogleCloudApigeeV1AppGroup{
17547 ServerResponse: googleapi.ServerResponse{
17548 Header: res.Header,
17549 HTTPStatusCode: res.StatusCode,
17550 },
17551 }
17552 target := &ret
17553 if err := gensupport.DecodeResponse(target, res); err != nil {
17554 return nil, err
17555 }
17556 return ret, nil
17557 }
17558
17559 type OrganizationsAppgroupsDeleteCall struct {
17560 s *Service
17561 name string
17562 urlParams_ gensupport.URLParams
17563 ctx_ context.Context
17564 header_ http.Header
17565 }
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576 func (r *OrganizationsAppgroupsService) Delete(name string) *OrganizationsAppgroupsDeleteCall {
17577 c := &OrganizationsAppgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17578 c.name = name
17579 return c
17580 }
17581
17582
17583
17584
17585 func (c *OrganizationsAppgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsDeleteCall {
17586 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17587 return c
17588 }
17589
17590
17591 func (c *OrganizationsAppgroupsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsDeleteCall {
17592 c.ctx_ = ctx
17593 return c
17594 }
17595
17596
17597
17598 func (c *OrganizationsAppgroupsDeleteCall) Header() http.Header {
17599 if c.header_ == nil {
17600 c.header_ = make(http.Header)
17601 }
17602 return c.header_
17603 }
17604
17605 func (c *OrganizationsAppgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
17606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17607 var body io.Reader = nil
17608 c.urlParams_.Set("alt", alt)
17609 c.urlParams_.Set("prettyPrint", "false")
17610 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17611 urls += "?" + c.urlParams_.Encode()
17612 req, err := http.NewRequest("DELETE", urls, body)
17613 if err != nil {
17614 return nil, err
17615 }
17616 req.Header = reqHeaders
17617 googleapi.Expand(req.URL, map[string]string{
17618 "name": c.name,
17619 })
17620 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17621 }
17622
17623
17624
17625
17626
17627
17628
17629 func (c *OrganizationsAppgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
17630 gensupport.SetOptions(c.urlParams_, opts...)
17631 res, err := c.doRequest("json")
17632 if res != nil && res.StatusCode == http.StatusNotModified {
17633 if res.Body != nil {
17634 res.Body.Close()
17635 }
17636 return nil, gensupport.WrapError(&googleapi.Error{
17637 Code: res.StatusCode,
17638 Header: res.Header,
17639 })
17640 }
17641 if err != nil {
17642 return nil, err
17643 }
17644 defer googleapi.CloseBody(res)
17645 if err := googleapi.CheckResponse(res); err != nil {
17646 return nil, gensupport.WrapError(err)
17647 }
17648 ret := &GoogleCloudApigeeV1AppGroup{
17649 ServerResponse: googleapi.ServerResponse{
17650 Header: res.Header,
17651 HTTPStatusCode: res.StatusCode,
17652 },
17653 }
17654 target := &ret
17655 if err := gensupport.DecodeResponse(target, res); err != nil {
17656 return nil, err
17657 }
17658 return ret, nil
17659 }
17660
17661 type OrganizationsAppgroupsGetCall struct {
17662 s *Service
17663 name string
17664 urlParams_ gensupport.URLParams
17665 ifNoneMatch_ string
17666 ctx_ context.Context
17667 header_ http.Header
17668 }
17669
17670
17671
17672
17673
17674
17675 func (r *OrganizationsAppgroupsService) Get(name string) *OrganizationsAppgroupsGetCall {
17676 c := &OrganizationsAppgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17677 c.name = name
17678 return c
17679 }
17680
17681
17682
17683
17684 func (c *OrganizationsAppgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsGetCall {
17685 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17686 return c
17687 }
17688
17689
17690
17691
17692 func (c *OrganizationsAppgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsGetCall {
17693 c.ifNoneMatch_ = entityTag
17694 return c
17695 }
17696
17697
17698 func (c *OrganizationsAppgroupsGetCall) Context(ctx context.Context) *OrganizationsAppgroupsGetCall {
17699 c.ctx_ = ctx
17700 return c
17701 }
17702
17703
17704
17705 func (c *OrganizationsAppgroupsGetCall) Header() http.Header {
17706 if c.header_ == nil {
17707 c.header_ = make(http.Header)
17708 }
17709 return c.header_
17710 }
17711
17712 func (c *OrganizationsAppgroupsGetCall) doRequest(alt string) (*http.Response, error) {
17713 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17714 if c.ifNoneMatch_ != "" {
17715 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17716 }
17717 var body io.Reader = nil
17718 c.urlParams_.Set("alt", alt)
17719 c.urlParams_.Set("prettyPrint", "false")
17720 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17721 urls += "?" + c.urlParams_.Encode()
17722 req, err := http.NewRequest("GET", urls, body)
17723 if err != nil {
17724 return nil, err
17725 }
17726 req.Header = reqHeaders
17727 googleapi.Expand(req.URL, map[string]string{
17728 "name": c.name,
17729 })
17730 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17731 }
17732
17733
17734
17735
17736
17737
17738
17739 func (c *OrganizationsAppgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
17740 gensupport.SetOptions(c.urlParams_, opts...)
17741 res, err := c.doRequest("json")
17742 if res != nil && res.StatusCode == http.StatusNotModified {
17743 if res.Body != nil {
17744 res.Body.Close()
17745 }
17746 return nil, gensupport.WrapError(&googleapi.Error{
17747 Code: res.StatusCode,
17748 Header: res.Header,
17749 })
17750 }
17751 if err != nil {
17752 return nil, err
17753 }
17754 defer googleapi.CloseBody(res)
17755 if err := googleapi.CheckResponse(res); err != nil {
17756 return nil, gensupport.WrapError(err)
17757 }
17758 ret := &GoogleCloudApigeeV1AppGroup{
17759 ServerResponse: googleapi.ServerResponse{
17760 Header: res.Header,
17761 HTTPStatusCode: res.StatusCode,
17762 },
17763 }
17764 target := &ret
17765 if err := gensupport.DecodeResponse(target, res); err != nil {
17766 return nil, err
17767 }
17768 return ret, nil
17769 }
17770
17771 type OrganizationsAppgroupsListCall struct {
17772 s *Service
17773 parent string
17774 urlParams_ gensupport.URLParams
17775 ifNoneMatch_ string
17776 ctx_ context.Context
17777 header_ http.Header
17778 }
17779
17780
17781
17782
17783
17784
17785
17786 func (r *OrganizationsAppgroupsService) List(parent string) *OrganizationsAppgroupsListCall {
17787 c := &OrganizationsAppgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17788 c.parent = parent
17789 return c
17790 }
17791
17792
17793
17794
17795
17796 func (c *OrganizationsAppgroupsListCall) Filter(filter string) *OrganizationsAppgroupsListCall {
17797 c.urlParams_.Set("filter", filter)
17798 return c
17799 }
17800
17801
17802
17803
17804
17805 func (c *OrganizationsAppgroupsListCall) PageSize(pageSize int64) *OrganizationsAppgroupsListCall {
17806 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17807 return c
17808 }
17809
17810
17811
17812 func (c *OrganizationsAppgroupsListCall) PageToken(pageToken string) *OrganizationsAppgroupsListCall {
17813 c.urlParams_.Set("pageToken", pageToken)
17814 return c
17815 }
17816
17817
17818
17819
17820 func (c *OrganizationsAppgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsListCall {
17821 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17822 return c
17823 }
17824
17825
17826
17827
17828 func (c *OrganizationsAppgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsListCall {
17829 c.ifNoneMatch_ = entityTag
17830 return c
17831 }
17832
17833
17834 func (c *OrganizationsAppgroupsListCall) Context(ctx context.Context) *OrganizationsAppgroupsListCall {
17835 c.ctx_ = ctx
17836 return c
17837 }
17838
17839
17840
17841 func (c *OrganizationsAppgroupsListCall) Header() http.Header {
17842 if c.header_ == nil {
17843 c.header_ = make(http.Header)
17844 }
17845 return c.header_
17846 }
17847
17848 func (c *OrganizationsAppgroupsListCall) doRequest(alt string) (*http.Response, error) {
17849 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17850 if c.ifNoneMatch_ != "" {
17851 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17852 }
17853 var body io.Reader = nil
17854 c.urlParams_.Set("alt", alt)
17855 c.urlParams_.Set("prettyPrint", "false")
17856 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/appgroups")
17857 urls += "?" + c.urlParams_.Encode()
17858 req, err := http.NewRequest("GET", urls, body)
17859 if err != nil {
17860 return nil, err
17861 }
17862 req.Header = reqHeaders
17863 googleapi.Expand(req.URL, map[string]string{
17864 "parent": c.parent,
17865 })
17866 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17867 }
17868
17869
17870
17871
17872
17873
17874
17875 func (c *OrganizationsAppgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppGroupsResponse, error) {
17876 gensupport.SetOptions(c.urlParams_, opts...)
17877 res, err := c.doRequest("json")
17878 if res != nil && res.StatusCode == http.StatusNotModified {
17879 if res.Body != nil {
17880 res.Body.Close()
17881 }
17882 return nil, gensupport.WrapError(&googleapi.Error{
17883 Code: res.StatusCode,
17884 Header: res.Header,
17885 })
17886 }
17887 if err != nil {
17888 return nil, err
17889 }
17890 defer googleapi.CloseBody(res)
17891 if err := googleapi.CheckResponse(res); err != nil {
17892 return nil, gensupport.WrapError(err)
17893 }
17894 ret := &GoogleCloudApigeeV1ListAppGroupsResponse{
17895 ServerResponse: googleapi.ServerResponse{
17896 Header: res.Header,
17897 HTTPStatusCode: res.StatusCode,
17898 },
17899 }
17900 target := &ret
17901 if err := gensupport.DecodeResponse(target, res); err != nil {
17902 return nil, err
17903 }
17904 return ret, nil
17905 }
17906
17907
17908
17909
17910 func (c *OrganizationsAppgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppGroupsResponse) error) error {
17911 c.ctx_ = ctx
17912 defer c.PageToken(c.urlParams_.Get("pageToken"))
17913 for {
17914 x, err := c.Do()
17915 if err != nil {
17916 return err
17917 }
17918 if err := f(x); err != nil {
17919 return err
17920 }
17921 if x.NextPageToken == "" {
17922 return nil
17923 }
17924 c.PageToken(x.NextPageToken)
17925 }
17926 }
17927
17928 type OrganizationsAppgroupsUpdateCall struct {
17929 s *Service
17930 name string
17931 googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup
17932 urlParams_ gensupport.URLParams
17933 ctx_ context.Context
17934 header_ http.Header
17935 }
17936
17937
17938
17939
17940
17941
17942
17943
17944 func (r *OrganizationsAppgroupsService) Update(name string, googlecloudapigeev1appgroup *GoogleCloudApigeeV1AppGroup) *OrganizationsAppgroupsUpdateCall {
17945 c := &OrganizationsAppgroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17946 c.name = name
17947 c.googlecloudapigeev1appgroup = googlecloudapigeev1appgroup
17948 return c
17949 }
17950
17951
17952
17953
17954 func (c *OrganizationsAppgroupsUpdateCall) Action(action string) *OrganizationsAppgroupsUpdateCall {
17955 c.urlParams_.Set("action", action)
17956 return c
17957 }
17958
17959
17960
17961
17962 func (c *OrganizationsAppgroupsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsUpdateCall {
17963 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17964 return c
17965 }
17966
17967
17968 func (c *OrganizationsAppgroupsUpdateCall) Context(ctx context.Context) *OrganizationsAppgroupsUpdateCall {
17969 c.ctx_ = ctx
17970 return c
17971 }
17972
17973
17974
17975 func (c *OrganizationsAppgroupsUpdateCall) Header() http.Header {
17976 if c.header_ == nil {
17977 c.header_ = make(http.Header)
17978 }
17979 return c.header_
17980 }
17981
17982 func (c *OrganizationsAppgroupsUpdateCall) doRequest(alt string) (*http.Response, error) {
17983 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17984 var body io.Reader = nil
17985 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroup)
17986 if err != nil {
17987 return nil, err
17988 }
17989 c.urlParams_.Set("alt", alt)
17990 c.urlParams_.Set("prettyPrint", "false")
17991 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17992 urls += "?" + c.urlParams_.Encode()
17993 req, err := http.NewRequest("PUT", urls, body)
17994 if err != nil {
17995 return nil, err
17996 }
17997 req.Header = reqHeaders
17998 googleapi.Expand(req.URL, map[string]string{
17999 "name": c.name,
18000 })
18001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18002 }
18003
18004
18005
18006
18007
18008
18009
18010 func (c *OrganizationsAppgroupsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroup, error) {
18011 gensupport.SetOptions(c.urlParams_, opts...)
18012 res, err := c.doRequest("json")
18013 if res != nil && res.StatusCode == http.StatusNotModified {
18014 if res.Body != nil {
18015 res.Body.Close()
18016 }
18017 return nil, gensupport.WrapError(&googleapi.Error{
18018 Code: res.StatusCode,
18019 Header: res.Header,
18020 })
18021 }
18022 if err != nil {
18023 return nil, err
18024 }
18025 defer googleapi.CloseBody(res)
18026 if err := googleapi.CheckResponse(res); err != nil {
18027 return nil, gensupport.WrapError(err)
18028 }
18029 ret := &GoogleCloudApigeeV1AppGroup{
18030 ServerResponse: googleapi.ServerResponse{
18031 Header: res.Header,
18032 HTTPStatusCode: res.StatusCode,
18033 },
18034 }
18035 target := &ret
18036 if err := gensupport.DecodeResponse(target, res); err != nil {
18037 return nil, err
18038 }
18039 return ret, nil
18040 }
18041
18042 type OrganizationsAppgroupsAppsCreateCall struct {
18043 s *Service
18044 parent string
18045 googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp
18046 urlParams_ gensupport.URLParams
18047 ctx_ context.Context
18048 header_ http.Header
18049 }
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059 func (r *OrganizationsAppgroupsAppsService) Create(parent string, googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp) *OrganizationsAppgroupsAppsCreateCall {
18060 c := &OrganizationsAppgroupsAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18061 c.parent = parent
18062 c.googlecloudapigeev1appgroupapp = googlecloudapigeev1appgroupapp
18063 return c
18064 }
18065
18066
18067
18068
18069 func (c *OrganizationsAppgroupsAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsCreateCall {
18070 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18071 return c
18072 }
18073
18074
18075 func (c *OrganizationsAppgroupsAppsCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsCreateCall {
18076 c.ctx_ = ctx
18077 return c
18078 }
18079
18080
18081
18082 func (c *OrganizationsAppgroupsAppsCreateCall) Header() http.Header {
18083 if c.header_ == nil {
18084 c.header_ = make(http.Header)
18085 }
18086 return c.header_
18087 }
18088
18089 func (c *OrganizationsAppgroupsAppsCreateCall) doRequest(alt string) (*http.Response, error) {
18090 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18091 var body io.Reader = nil
18092 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupapp)
18093 if err != nil {
18094 return nil, err
18095 }
18096 c.urlParams_.Set("alt", alt)
18097 c.urlParams_.Set("prettyPrint", "false")
18098 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
18099 urls += "?" + c.urlParams_.Encode()
18100 req, err := http.NewRequest("POST", urls, body)
18101 if err != nil {
18102 return nil, err
18103 }
18104 req.Header = reqHeaders
18105 googleapi.Expand(req.URL, map[string]string{
18106 "parent": c.parent,
18107 })
18108 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18109 }
18110
18111
18112
18113
18114
18115
18116
18117 func (c *OrganizationsAppgroupsAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
18118 gensupport.SetOptions(c.urlParams_, opts...)
18119 res, err := c.doRequest("json")
18120 if res != nil && res.StatusCode == http.StatusNotModified {
18121 if res.Body != nil {
18122 res.Body.Close()
18123 }
18124 return nil, gensupport.WrapError(&googleapi.Error{
18125 Code: res.StatusCode,
18126 Header: res.Header,
18127 })
18128 }
18129 if err != nil {
18130 return nil, err
18131 }
18132 defer googleapi.CloseBody(res)
18133 if err := googleapi.CheckResponse(res); err != nil {
18134 return nil, gensupport.WrapError(err)
18135 }
18136 ret := &GoogleCloudApigeeV1AppGroupApp{
18137 ServerResponse: googleapi.ServerResponse{
18138 Header: res.Header,
18139 HTTPStatusCode: res.StatusCode,
18140 },
18141 }
18142 target := &ret
18143 if err := gensupport.DecodeResponse(target, res); err != nil {
18144 return nil, err
18145 }
18146 return ret, nil
18147 }
18148
18149 type OrganizationsAppgroupsAppsDeleteCall struct {
18150 s *Service
18151 name string
18152 urlParams_ gensupport.URLParams
18153 ctx_ context.Context
18154 header_ http.Header
18155 }
18156
18157
18158
18159
18160
18161
18162
18163
18164 func (r *OrganizationsAppgroupsAppsService) Delete(name string) *OrganizationsAppgroupsAppsDeleteCall {
18165 c := &OrganizationsAppgroupsAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18166 c.name = name
18167 return c
18168 }
18169
18170
18171
18172
18173 func (c *OrganizationsAppgroupsAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsDeleteCall {
18174 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18175 return c
18176 }
18177
18178
18179 func (c *OrganizationsAppgroupsAppsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsDeleteCall {
18180 c.ctx_ = ctx
18181 return c
18182 }
18183
18184
18185
18186 func (c *OrganizationsAppgroupsAppsDeleteCall) Header() http.Header {
18187 if c.header_ == nil {
18188 c.header_ = make(http.Header)
18189 }
18190 return c.header_
18191 }
18192
18193 func (c *OrganizationsAppgroupsAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
18194 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18195 var body io.Reader = nil
18196 c.urlParams_.Set("alt", alt)
18197 c.urlParams_.Set("prettyPrint", "false")
18198 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18199 urls += "?" + c.urlParams_.Encode()
18200 req, err := http.NewRequest("DELETE", urls, body)
18201 if err != nil {
18202 return nil, err
18203 }
18204 req.Header = reqHeaders
18205 googleapi.Expand(req.URL, map[string]string{
18206 "name": c.name,
18207 })
18208 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18209 }
18210
18211
18212
18213
18214
18215
18216
18217 func (c *OrganizationsAppgroupsAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
18218 gensupport.SetOptions(c.urlParams_, opts...)
18219 res, err := c.doRequest("json")
18220 if res != nil && res.StatusCode == http.StatusNotModified {
18221 if res.Body != nil {
18222 res.Body.Close()
18223 }
18224 return nil, gensupport.WrapError(&googleapi.Error{
18225 Code: res.StatusCode,
18226 Header: res.Header,
18227 })
18228 }
18229 if err != nil {
18230 return nil, err
18231 }
18232 defer googleapi.CloseBody(res)
18233 if err := googleapi.CheckResponse(res); err != nil {
18234 return nil, gensupport.WrapError(err)
18235 }
18236 ret := &GoogleCloudApigeeV1AppGroupApp{
18237 ServerResponse: googleapi.ServerResponse{
18238 Header: res.Header,
18239 HTTPStatusCode: res.StatusCode,
18240 },
18241 }
18242 target := &ret
18243 if err := gensupport.DecodeResponse(target, res); err != nil {
18244 return nil, err
18245 }
18246 return ret, nil
18247 }
18248
18249 type OrganizationsAppgroupsAppsGetCall struct {
18250 s *Service
18251 name string
18252 urlParams_ gensupport.URLParams
18253 ifNoneMatch_ string
18254 ctx_ context.Context
18255 header_ http.Header
18256 }
18257
18258
18259
18260
18261
18262 func (r *OrganizationsAppgroupsAppsService) Get(name string) *OrganizationsAppgroupsAppsGetCall {
18263 c := &OrganizationsAppgroupsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18264 c.name = name
18265 return c
18266 }
18267
18268
18269
18270
18271 func (c *OrganizationsAppgroupsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsGetCall {
18272 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18273 return c
18274 }
18275
18276
18277
18278
18279 func (c *OrganizationsAppgroupsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsGetCall {
18280 c.ifNoneMatch_ = entityTag
18281 return c
18282 }
18283
18284
18285 func (c *OrganizationsAppgroupsAppsGetCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsGetCall {
18286 c.ctx_ = ctx
18287 return c
18288 }
18289
18290
18291
18292 func (c *OrganizationsAppgroupsAppsGetCall) Header() http.Header {
18293 if c.header_ == nil {
18294 c.header_ = make(http.Header)
18295 }
18296 return c.header_
18297 }
18298
18299 func (c *OrganizationsAppgroupsAppsGetCall) doRequest(alt string) (*http.Response, error) {
18300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18301 if c.ifNoneMatch_ != "" {
18302 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18303 }
18304 var body io.Reader = nil
18305 c.urlParams_.Set("alt", alt)
18306 c.urlParams_.Set("prettyPrint", "false")
18307 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18308 urls += "?" + c.urlParams_.Encode()
18309 req, err := http.NewRequest("GET", urls, body)
18310 if err != nil {
18311 return nil, err
18312 }
18313 req.Header = reqHeaders
18314 googleapi.Expand(req.URL, map[string]string{
18315 "name": c.name,
18316 })
18317 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18318 }
18319
18320
18321
18322
18323
18324
18325
18326 func (c *OrganizationsAppgroupsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
18327 gensupport.SetOptions(c.urlParams_, opts...)
18328 res, err := c.doRequest("json")
18329 if res != nil && res.StatusCode == http.StatusNotModified {
18330 if res.Body != nil {
18331 res.Body.Close()
18332 }
18333 return nil, gensupport.WrapError(&googleapi.Error{
18334 Code: res.StatusCode,
18335 Header: res.Header,
18336 })
18337 }
18338 if err != nil {
18339 return nil, err
18340 }
18341 defer googleapi.CloseBody(res)
18342 if err := googleapi.CheckResponse(res); err != nil {
18343 return nil, gensupport.WrapError(err)
18344 }
18345 ret := &GoogleCloudApigeeV1AppGroupApp{
18346 ServerResponse: googleapi.ServerResponse{
18347 Header: res.Header,
18348 HTTPStatusCode: res.StatusCode,
18349 },
18350 }
18351 target := &ret
18352 if err := gensupport.DecodeResponse(target, res); err != nil {
18353 return nil, err
18354 }
18355 return ret, nil
18356 }
18357
18358 type OrganizationsAppgroupsAppsListCall struct {
18359 s *Service
18360 parent string
18361 urlParams_ gensupport.URLParams
18362 ifNoneMatch_ string
18363 ctx_ context.Context
18364 header_ http.Header
18365 }
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375 func (r *OrganizationsAppgroupsAppsService) List(parent string) *OrganizationsAppgroupsAppsListCall {
18376 c := &OrganizationsAppgroupsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18377 c.parent = parent
18378 return c
18379 }
18380
18381
18382
18383 func (c *OrganizationsAppgroupsAppsListCall) PageSize(pageSize int64) *OrganizationsAppgroupsAppsListCall {
18384 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18385 return c
18386 }
18387
18388
18389
18390
18391 func (c *OrganizationsAppgroupsAppsListCall) PageToken(pageToken string) *OrganizationsAppgroupsAppsListCall {
18392 c.urlParams_.Set("pageToken", pageToken)
18393 return c
18394 }
18395
18396
18397
18398
18399 func (c *OrganizationsAppgroupsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsListCall {
18400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18401 return c
18402 }
18403
18404
18405
18406
18407 func (c *OrganizationsAppgroupsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsListCall {
18408 c.ifNoneMatch_ = entityTag
18409 return c
18410 }
18411
18412
18413 func (c *OrganizationsAppgroupsAppsListCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsListCall {
18414 c.ctx_ = ctx
18415 return c
18416 }
18417
18418
18419
18420 func (c *OrganizationsAppgroupsAppsListCall) Header() http.Header {
18421 if c.header_ == nil {
18422 c.header_ = make(http.Header)
18423 }
18424 return c.header_
18425 }
18426
18427 func (c *OrganizationsAppgroupsAppsListCall) doRequest(alt string) (*http.Response, error) {
18428 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18429 if c.ifNoneMatch_ != "" {
18430 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18431 }
18432 var body io.Reader = nil
18433 c.urlParams_.Set("alt", alt)
18434 c.urlParams_.Set("prettyPrint", "false")
18435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
18436 urls += "?" + c.urlParams_.Encode()
18437 req, err := http.NewRequest("GET", urls, body)
18438 if err != nil {
18439 return nil, err
18440 }
18441 req.Header = reqHeaders
18442 googleapi.Expand(req.URL, map[string]string{
18443 "parent": c.parent,
18444 })
18445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18446 }
18447
18448
18449
18450
18451
18452
18453
18454 func (c *OrganizationsAppgroupsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppGroupAppsResponse, error) {
18455 gensupport.SetOptions(c.urlParams_, opts...)
18456 res, err := c.doRequest("json")
18457 if res != nil && res.StatusCode == http.StatusNotModified {
18458 if res.Body != nil {
18459 res.Body.Close()
18460 }
18461 return nil, gensupport.WrapError(&googleapi.Error{
18462 Code: res.StatusCode,
18463 Header: res.Header,
18464 })
18465 }
18466 if err != nil {
18467 return nil, err
18468 }
18469 defer googleapi.CloseBody(res)
18470 if err := googleapi.CheckResponse(res); err != nil {
18471 return nil, gensupport.WrapError(err)
18472 }
18473 ret := &GoogleCloudApigeeV1ListAppGroupAppsResponse{
18474 ServerResponse: googleapi.ServerResponse{
18475 Header: res.Header,
18476 HTTPStatusCode: res.StatusCode,
18477 },
18478 }
18479 target := &ret
18480 if err := gensupport.DecodeResponse(target, res); err != nil {
18481 return nil, err
18482 }
18483 return ret, nil
18484 }
18485
18486
18487
18488
18489 func (c *OrganizationsAppgroupsAppsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppGroupAppsResponse) error) error {
18490 c.ctx_ = ctx
18491 defer c.PageToken(c.urlParams_.Get("pageToken"))
18492 for {
18493 x, err := c.Do()
18494 if err != nil {
18495 return err
18496 }
18497 if err := f(x); err != nil {
18498 return err
18499 }
18500 if x.NextPageToken == "" {
18501 return nil
18502 }
18503 c.PageToken(x.NextPageToken)
18504 }
18505 }
18506
18507 type OrganizationsAppgroupsAppsUpdateCall struct {
18508 s *Service
18509 name string
18510 googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp
18511 urlParams_ gensupport.URLParams
18512 ctx_ context.Context
18513 header_ http.Header
18514 }
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528 func (r *OrganizationsAppgroupsAppsService) Update(name string, googlecloudapigeev1appgroupapp *GoogleCloudApigeeV1AppGroupApp) *OrganizationsAppgroupsAppsUpdateCall {
18529 c := &OrganizationsAppgroupsAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18530 c.name = name
18531 c.googlecloudapigeev1appgroupapp = googlecloudapigeev1appgroupapp
18532 return c
18533 }
18534
18535
18536
18537
18538 func (c *OrganizationsAppgroupsAppsUpdateCall) Action(action string) *OrganizationsAppgroupsAppsUpdateCall {
18539 c.urlParams_.Set("action", action)
18540 return c
18541 }
18542
18543
18544
18545
18546 func (c *OrganizationsAppgroupsAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsUpdateCall {
18547 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18548 return c
18549 }
18550
18551
18552 func (c *OrganizationsAppgroupsAppsUpdateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsUpdateCall {
18553 c.ctx_ = ctx
18554 return c
18555 }
18556
18557
18558
18559 func (c *OrganizationsAppgroupsAppsUpdateCall) Header() http.Header {
18560 if c.header_ == nil {
18561 c.header_ = make(http.Header)
18562 }
18563 return c.header_
18564 }
18565
18566 func (c *OrganizationsAppgroupsAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
18567 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18568 var body io.Reader = nil
18569 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupapp)
18570 if err != nil {
18571 return nil, err
18572 }
18573 c.urlParams_.Set("alt", alt)
18574 c.urlParams_.Set("prettyPrint", "false")
18575 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18576 urls += "?" + c.urlParams_.Encode()
18577 req, err := http.NewRequest("PUT", urls, body)
18578 if err != nil {
18579 return nil, err
18580 }
18581 req.Header = reqHeaders
18582 googleapi.Expand(req.URL, map[string]string{
18583 "name": c.name,
18584 })
18585 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18586 }
18587
18588
18589
18590
18591
18592
18593
18594 func (c *OrganizationsAppgroupsAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupApp, error) {
18595 gensupport.SetOptions(c.urlParams_, opts...)
18596 res, err := c.doRequest("json")
18597 if res != nil && res.StatusCode == http.StatusNotModified {
18598 if res.Body != nil {
18599 res.Body.Close()
18600 }
18601 return nil, gensupport.WrapError(&googleapi.Error{
18602 Code: res.StatusCode,
18603 Header: res.Header,
18604 })
18605 }
18606 if err != nil {
18607 return nil, err
18608 }
18609 defer googleapi.CloseBody(res)
18610 if err := googleapi.CheckResponse(res); err != nil {
18611 return nil, gensupport.WrapError(err)
18612 }
18613 ret := &GoogleCloudApigeeV1AppGroupApp{
18614 ServerResponse: googleapi.ServerResponse{
18615 Header: res.Header,
18616 HTTPStatusCode: res.StatusCode,
18617 },
18618 }
18619 target := &ret
18620 if err := gensupport.DecodeResponse(target, res); err != nil {
18621 return nil, err
18622 }
18623 return ret, nil
18624 }
18625
18626 type OrganizationsAppgroupsAppsKeysCreateCall struct {
18627 s *Service
18628 parent string
18629 googlecloudapigeev1appgroupappkey *GoogleCloudApigeeV1AppGroupAppKey
18630 urlParams_ gensupport.URLParams
18631 ctx_ context.Context
18632 header_ http.Header
18633 }
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650 func (r *OrganizationsAppgroupsAppsKeysService) Create(parent string, googlecloudapigeev1appgroupappkey *GoogleCloudApigeeV1AppGroupAppKey) *OrganizationsAppgroupsAppsKeysCreateCall {
18651 c := &OrganizationsAppgroupsAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18652 c.parent = parent
18653 c.googlecloudapigeev1appgroupappkey = googlecloudapigeev1appgroupappkey
18654 return c
18655 }
18656
18657
18658
18659
18660 func (c *OrganizationsAppgroupsAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysCreateCall {
18661 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18662 return c
18663 }
18664
18665
18666 func (c *OrganizationsAppgroupsAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysCreateCall {
18667 c.ctx_ = ctx
18668 return c
18669 }
18670
18671
18672
18673 func (c *OrganizationsAppgroupsAppsKeysCreateCall) Header() http.Header {
18674 if c.header_ == nil {
18675 c.header_ = make(http.Header)
18676 }
18677 return c.header_
18678 }
18679
18680 func (c *OrganizationsAppgroupsAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
18681 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18682 var body io.Reader = nil
18683 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1appgroupappkey)
18684 if err != nil {
18685 return nil, err
18686 }
18687 c.urlParams_.Set("alt", alt)
18688 c.urlParams_.Set("prettyPrint", "false")
18689 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
18690 urls += "?" + c.urlParams_.Encode()
18691 req, err := http.NewRequest("POST", urls, body)
18692 if err != nil {
18693 return nil, err
18694 }
18695 req.Header = reqHeaders
18696 googleapi.Expand(req.URL, map[string]string{
18697 "parent": c.parent,
18698 })
18699 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18700 }
18701
18702
18703
18704
18705
18706
18707
18708 func (c *OrganizationsAppgroupsAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
18709 gensupport.SetOptions(c.urlParams_, opts...)
18710 res, err := c.doRequest("json")
18711 if res != nil && res.StatusCode == http.StatusNotModified {
18712 if res.Body != nil {
18713 res.Body.Close()
18714 }
18715 return nil, gensupport.WrapError(&googleapi.Error{
18716 Code: res.StatusCode,
18717 Header: res.Header,
18718 })
18719 }
18720 if err != nil {
18721 return nil, err
18722 }
18723 defer googleapi.CloseBody(res)
18724 if err := googleapi.CheckResponse(res); err != nil {
18725 return nil, gensupport.WrapError(err)
18726 }
18727 ret := &GoogleCloudApigeeV1AppGroupAppKey{
18728 ServerResponse: googleapi.ServerResponse{
18729 Header: res.Header,
18730 HTTPStatusCode: res.StatusCode,
18731 },
18732 }
18733 target := &ret
18734 if err := gensupport.DecodeResponse(target, res); err != nil {
18735 return nil, err
18736 }
18737 return ret, nil
18738 }
18739
18740 type OrganizationsAppgroupsAppsKeysDeleteCall struct {
18741 s *Service
18742 name string
18743 urlParams_ gensupport.URLParams
18744 ctx_ context.Context
18745 header_ http.Header
18746 }
18747
18748
18749
18750
18751
18752
18753
18754
18755 func (r *OrganizationsAppgroupsAppsKeysService) Delete(name string) *OrganizationsAppgroupsAppsKeysDeleteCall {
18756 c := &OrganizationsAppgroupsAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18757 c.name = name
18758 return c
18759 }
18760
18761
18762
18763
18764 func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysDeleteCall {
18765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18766 return c
18767 }
18768
18769
18770 func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysDeleteCall {
18771 c.ctx_ = ctx
18772 return c
18773 }
18774
18775
18776
18777 func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Header() http.Header {
18778 if c.header_ == nil {
18779 c.header_ = make(http.Header)
18780 }
18781 return c.header_
18782 }
18783
18784 func (c *OrganizationsAppgroupsAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
18785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18786 var body io.Reader = nil
18787 c.urlParams_.Set("alt", alt)
18788 c.urlParams_.Set("prettyPrint", "false")
18789 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18790 urls += "?" + c.urlParams_.Encode()
18791 req, err := http.NewRequest("DELETE", urls, body)
18792 if err != nil {
18793 return nil, err
18794 }
18795 req.Header = reqHeaders
18796 googleapi.Expand(req.URL, map[string]string{
18797 "name": c.name,
18798 })
18799 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18800 }
18801
18802
18803
18804
18805
18806
18807
18808 func (c *OrganizationsAppgroupsAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
18809 gensupport.SetOptions(c.urlParams_, opts...)
18810 res, err := c.doRequest("json")
18811 if res != nil && res.StatusCode == http.StatusNotModified {
18812 if res.Body != nil {
18813 res.Body.Close()
18814 }
18815 return nil, gensupport.WrapError(&googleapi.Error{
18816 Code: res.StatusCode,
18817 Header: res.Header,
18818 })
18819 }
18820 if err != nil {
18821 return nil, err
18822 }
18823 defer googleapi.CloseBody(res)
18824 if err := googleapi.CheckResponse(res); err != nil {
18825 return nil, gensupport.WrapError(err)
18826 }
18827 ret := &GoogleCloudApigeeV1AppGroupAppKey{
18828 ServerResponse: googleapi.ServerResponse{
18829 Header: res.Header,
18830 HTTPStatusCode: res.StatusCode,
18831 },
18832 }
18833 target := &ret
18834 if err := gensupport.DecodeResponse(target, res); err != nil {
18835 return nil, err
18836 }
18837 return ret, nil
18838 }
18839
18840 type OrganizationsAppgroupsAppsKeysGetCall struct {
18841 s *Service
18842 name string
18843 urlParams_ gensupport.URLParams
18844 ifNoneMatch_ string
18845 ctx_ context.Context
18846 header_ http.Header
18847 }
18848
18849
18850
18851
18852
18853
18854
18855 func (r *OrganizationsAppgroupsAppsKeysService) Get(name string) *OrganizationsAppgroupsAppsKeysGetCall {
18856 c := &OrganizationsAppgroupsAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18857 c.name = name
18858 return c
18859 }
18860
18861
18862
18863
18864 func (c *OrganizationsAppgroupsAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysGetCall {
18865 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18866 return c
18867 }
18868
18869
18870
18871
18872 func (c *OrganizationsAppgroupsAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsAppgroupsAppsKeysGetCall {
18873 c.ifNoneMatch_ = entityTag
18874 return c
18875 }
18876
18877
18878 func (c *OrganizationsAppgroupsAppsKeysGetCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysGetCall {
18879 c.ctx_ = ctx
18880 return c
18881 }
18882
18883
18884
18885 func (c *OrganizationsAppgroupsAppsKeysGetCall) Header() http.Header {
18886 if c.header_ == nil {
18887 c.header_ = make(http.Header)
18888 }
18889 return c.header_
18890 }
18891
18892 func (c *OrganizationsAppgroupsAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
18893 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18894 if c.ifNoneMatch_ != "" {
18895 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18896 }
18897 var body io.Reader = nil
18898 c.urlParams_.Set("alt", alt)
18899 c.urlParams_.Set("prettyPrint", "false")
18900 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18901 urls += "?" + c.urlParams_.Encode()
18902 req, err := http.NewRequest("GET", urls, body)
18903 if err != nil {
18904 return nil, err
18905 }
18906 req.Header = reqHeaders
18907 googleapi.Expand(req.URL, map[string]string{
18908 "name": c.name,
18909 })
18910 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18911 }
18912
18913
18914
18915
18916
18917
18918
18919 func (c *OrganizationsAppgroupsAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
18920 gensupport.SetOptions(c.urlParams_, opts...)
18921 res, err := c.doRequest("json")
18922 if res != nil && res.StatusCode == http.StatusNotModified {
18923 if res.Body != nil {
18924 res.Body.Close()
18925 }
18926 return nil, gensupport.WrapError(&googleapi.Error{
18927 Code: res.StatusCode,
18928 Header: res.Header,
18929 })
18930 }
18931 if err != nil {
18932 return nil, err
18933 }
18934 defer googleapi.CloseBody(res)
18935 if err := googleapi.CheckResponse(res); err != nil {
18936 return nil, gensupport.WrapError(err)
18937 }
18938 ret := &GoogleCloudApigeeV1AppGroupAppKey{
18939 ServerResponse: googleapi.ServerResponse{
18940 Header: res.Header,
18941 HTTPStatusCode: res.StatusCode,
18942 },
18943 }
18944 target := &ret
18945 if err := gensupport.DecodeResponse(target, res); err != nil {
18946 return nil, err
18947 }
18948 return ret, nil
18949 }
18950
18951 type OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall struct {
18952 s *Service
18953 name string
18954 googlecloudapigeev1updateappgroupappkeyrequest *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest
18955 urlParams_ gensupport.URLParams
18956 ctx_ context.Context
18957 header_ http.Header
18958 }
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971 func (r *OrganizationsAppgroupsAppsKeysService) UpdateAppGroupAppKey(name string, googlecloudapigeev1updateappgroupappkeyrequest *GoogleCloudApigeeV1UpdateAppGroupAppKeyRequest) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
18972 c := &OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18973 c.name = name
18974 c.googlecloudapigeev1updateappgroupappkeyrequest = googlecloudapigeev1updateappgroupappkeyrequest
18975 return c
18976 }
18977
18978
18979
18980
18981 func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
18982 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18983 return c
18984 }
18985
18986
18987 func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall {
18988 c.ctx_ = ctx
18989 return c
18990 }
18991
18992
18993
18994 func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Header() http.Header {
18995 if c.header_ == nil {
18996 c.header_ = make(http.Header)
18997 }
18998 return c.header_
18999 }
19000
19001 func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) doRequest(alt string) (*http.Response, error) {
19002 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19003 var body io.Reader = nil
19004 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1updateappgroupappkeyrequest)
19005 if err != nil {
19006 return nil, err
19007 }
19008 c.urlParams_.Set("alt", alt)
19009 c.urlParams_.Set("prettyPrint", "false")
19010 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19011 urls += "?" + c.urlParams_.Encode()
19012 req, err := http.NewRequest("POST", urls, body)
19013 if err != nil {
19014 return nil, err
19015 }
19016 req.Header = reqHeaders
19017 googleapi.Expand(req.URL, map[string]string{
19018 "name": c.name,
19019 })
19020 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19021 }
19022
19023
19024
19025
19026
19027
19028
19029 func (c *OrganizationsAppgroupsAppsKeysUpdateAppGroupAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
19030 gensupport.SetOptions(c.urlParams_, opts...)
19031 res, err := c.doRequest("json")
19032 if res != nil && res.StatusCode == http.StatusNotModified {
19033 if res.Body != nil {
19034 res.Body.Close()
19035 }
19036 return nil, gensupport.WrapError(&googleapi.Error{
19037 Code: res.StatusCode,
19038 Header: res.Header,
19039 })
19040 }
19041 if err != nil {
19042 return nil, err
19043 }
19044 defer googleapi.CloseBody(res)
19045 if err := googleapi.CheckResponse(res); err != nil {
19046 return nil, gensupport.WrapError(err)
19047 }
19048 ret := &GoogleCloudApigeeV1AppGroupAppKey{
19049 ServerResponse: googleapi.ServerResponse{
19050 Header: res.Header,
19051 HTTPStatusCode: res.StatusCode,
19052 },
19053 }
19054 target := &ret
19055 if err := gensupport.DecodeResponse(target, res); err != nil {
19056 return nil, err
19057 }
19058 return ret, nil
19059 }
19060
19061 type OrganizationsAppgroupsAppsKeysApiproductsDeleteCall struct {
19062 s *Service
19063 name string
19064 urlParams_ gensupport.URLParams
19065 ctx_ context.Context
19066 header_ http.Header
19067 }
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078 func (r *OrganizationsAppgroupsAppsKeysApiproductsService) Delete(name string) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
19079 c := &OrganizationsAppgroupsAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19080 c.name = name
19081 return c
19082 }
19083
19084
19085
19086
19087 func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
19088 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19089 return c
19090 }
19091
19092
19093 func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall {
19094 c.ctx_ = ctx
19095 return c
19096 }
19097
19098
19099
19100 func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Header() http.Header {
19101 if c.header_ == nil {
19102 c.header_ = make(http.Header)
19103 }
19104 return c.header_
19105 }
19106
19107 func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
19108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19109 var body io.Reader = nil
19110 c.urlParams_.Set("alt", alt)
19111 c.urlParams_.Set("prettyPrint", "false")
19112 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19113 urls += "?" + c.urlParams_.Encode()
19114 req, err := http.NewRequest("DELETE", urls, body)
19115 if err != nil {
19116 return nil, err
19117 }
19118 req.Header = reqHeaders
19119 googleapi.Expand(req.URL, map[string]string{
19120 "name": c.name,
19121 })
19122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19123 }
19124
19125
19126
19127
19128
19129
19130
19131 func (c *OrganizationsAppgroupsAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AppGroupAppKey, error) {
19132 gensupport.SetOptions(c.urlParams_, opts...)
19133 res, err := c.doRequest("json")
19134 if res != nil && res.StatusCode == http.StatusNotModified {
19135 if res.Body != nil {
19136 res.Body.Close()
19137 }
19138 return nil, gensupport.WrapError(&googleapi.Error{
19139 Code: res.StatusCode,
19140 Header: res.Header,
19141 })
19142 }
19143 if err != nil {
19144 return nil, err
19145 }
19146 defer googleapi.CloseBody(res)
19147 if err := googleapi.CheckResponse(res); err != nil {
19148 return nil, gensupport.WrapError(err)
19149 }
19150 ret := &GoogleCloudApigeeV1AppGroupAppKey{
19151 ServerResponse: googleapi.ServerResponse{
19152 Header: res.Header,
19153 HTTPStatusCode: res.StatusCode,
19154 },
19155 }
19156 target := &ret
19157 if err := gensupport.DecodeResponse(target, res); err != nil {
19158 return nil, err
19159 }
19160 return ret, nil
19161 }
19162
19163 type OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall struct {
19164 s *Service
19165 name string
19166 urlParams_ gensupport.URLParams
19167 ctx_ context.Context
19168 header_ http.Header
19169 }
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182 func (r *OrganizationsAppgroupsAppsKeysApiproductsService) UpdateAppGroupAppKeyApiProduct(name string) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
19183 c := &OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19184 c.name = name
19185 return c
19186 }
19187
19188
19189
19190
19191
19192 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Action(action string) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
19193 c.urlParams_.Set("action", action)
19194 return c
19195 }
19196
19197
19198
19199
19200 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
19201 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19202 return c
19203 }
19204
19205
19206 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall {
19207 c.ctx_ = ctx
19208 return c
19209 }
19210
19211
19212
19213 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Header() http.Header {
19214 if c.header_ == nil {
19215 c.header_ = make(http.Header)
19216 }
19217 return c.header_
19218 }
19219
19220 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
19221 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19222 var body io.Reader = nil
19223 c.urlParams_.Set("alt", alt)
19224 c.urlParams_.Set("prettyPrint", "false")
19225 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19226 urls += "?" + c.urlParams_.Encode()
19227 req, err := http.NewRequest("POST", urls, body)
19228 if err != nil {
19229 return nil, err
19230 }
19231 req.Header = reqHeaders
19232 googleapi.Expand(req.URL, map[string]string{
19233 "name": c.name,
19234 })
19235 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19236 }
19237
19238
19239
19240
19241
19242
19243
19244 func (c *OrganizationsAppgroupsAppsKeysApiproductsUpdateAppGroupAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19245 gensupport.SetOptions(c.urlParams_, opts...)
19246 res, err := c.doRequest("json")
19247 if res != nil && res.StatusCode == http.StatusNotModified {
19248 if res.Body != nil {
19249 res.Body.Close()
19250 }
19251 return nil, gensupport.WrapError(&googleapi.Error{
19252 Code: res.StatusCode,
19253 Header: res.Header,
19254 })
19255 }
19256 if err != nil {
19257 return nil, err
19258 }
19259 defer googleapi.CloseBody(res)
19260 if err := googleapi.CheckResponse(res); err != nil {
19261 return nil, gensupport.WrapError(err)
19262 }
19263 ret := &GoogleProtobufEmpty{
19264 ServerResponse: googleapi.ServerResponse{
19265 Header: res.Header,
19266 HTTPStatusCode: res.StatusCode,
19267 },
19268 }
19269 target := &ret
19270 if err := gensupport.DecodeResponse(target, res); err != nil {
19271 return nil, err
19272 }
19273 return ret, nil
19274 }
19275
19276 type OrganizationsAppsGetCall struct {
19277 s *Service
19278 name string
19279 urlParams_ gensupport.URLParams
19280 ifNoneMatch_ string
19281 ctx_ context.Context
19282 header_ http.Header
19283 }
19284
19285
19286
19287
19288 func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
19289 c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19290 c.name = name
19291 return c
19292 }
19293
19294
19295
19296
19297 func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
19298 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19299 return c
19300 }
19301
19302
19303
19304
19305 func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
19306 c.ifNoneMatch_ = entityTag
19307 return c
19308 }
19309
19310
19311 func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
19312 c.ctx_ = ctx
19313 return c
19314 }
19315
19316
19317
19318 func (c *OrganizationsAppsGetCall) Header() http.Header {
19319 if c.header_ == nil {
19320 c.header_ = make(http.Header)
19321 }
19322 return c.header_
19323 }
19324
19325 func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
19326 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19327 if c.ifNoneMatch_ != "" {
19328 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19329 }
19330 var body io.Reader = nil
19331 c.urlParams_.Set("alt", alt)
19332 c.urlParams_.Set("prettyPrint", "false")
19333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19334 urls += "?" + c.urlParams_.Encode()
19335 req, err := http.NewRequest("GET", urls, body)
19336 if err != nil {
19337 return nil, err
19338 }
19339 req.Header = reqHeaders
19340 googleapi.Expand(req.URL, map[string]string{
19341 "name": c.name,
19342 })
19343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19344 }
19345
19346
19347
19348
19349
19350
19351
19352 func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
19353 gensupport.SetOptions(c.urlParams_, opts...)
19354 res, err := c.doRequest("json")
19355 if res != nil && res.StatusCode == http.StatusNotModified {
19356 if res.Body != nil {
19357 res.Body.Close()
19358 }
19359 return nil, gensupport.WrapError(&googleapi.Error{
19360 Code: res.StatusCode,
19361 Header: res.Header,
19362 })
19363 }
19364 if err != nil {
19365 return nil, err
19366 }
19367 defer googleapi.CloseBody(res)
19368 if err := googleapi.CheckResponse(res); err != nil {
19369 return nil, gensupport.WrapError(err)
19370 }
19371 ret := &GoogleCloudApigeeV1App{
19372 ServerResponse: googleapi.ServerResponse{
19373 Header: res.Header,
19374 HTTPStatusCode: res.StatusCode,
19375 },
19376 }
19377 target := &ret
19378 if err := gensupport.DecodeResponse(target, res); err != nil {
19379 return nil, err
19380 }
19381 return ret, nil
19382 }
19383
19384 type OrganizationsAppsListCall struct {
19385 s *Service
19386 parent string
19387 urlParams_ gensupport.URLParams
19388 ifNoneMatch_ string
19389 ctx_ context.Context
19390 header_ http.Header
19391 }
19392
19393
19394
19395
19396
19397
19398
19399 func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
19400 c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19401 c.parent = parent
19402 return c
19403 }
19404
19405
19406 func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
19407 c.urlParams_.Set("apiProduct", apiProduct)
19408 return c
19409 }
19410
19411
19412
19413 func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
19414 c.urlParams_.Set("apptype", apptype)
19415 return c
19416 }
19417
19418
19419
19420 func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
19421 c.urlParams_.Set("expand", fmt.Sprint(expand))
19422 return c
19423 }
19424
19425
19426
19427
19428
19429
19430 func (c *OrganizationsAppsListCall) Filter(filter string) *OrganizationsAppsListCall {
19431 c.urlParams_.Set("filter", filter)
19432 return c
19433 }
19434
19435
19436
19437 func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
19438 c.urlParams_.Set("ids", ids)
19439 return c
19440 }
19441
19442
19443
19444 func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
19445 c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
19446 return c
19447 }
19448
19449
19450
19451 func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
19452 c.urlParams_.Set("keyStatus", keyStatus)
19453 return c
19454 }
19455
19456
19457
19458
19459
19460 func (c *OrganizationsAppsListCall) PageSize(pageSize int64) *OrganizationsAppsListCall {
19461 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19462 return c
19463 }
19464
19465
19466
19467
19468 func (c *OrganizationsAppsListCall) PageToken(pageToken string) *OrganizationsAppsListCall {
19469 c.urlParams_.Set("pageToken", pageToken)
19470 return c
19471 }
19472
19473
19474
19475 func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
19476 c.urlParams_.Set("rows", fmt.Sprint(rows))
19477 return c
19478 }
19479
19480
19481
19482 func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
19483 c.urlParams_.Set("startKey", startKey)
19484 return c
19485 }
19486
19487
19488
19489 func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
19490 c.urlParams_.Set("status", status)
19491 return c
19492 }
19493
19494
19495
19496
19497 func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
19498 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19499 return c
19500 }
19501
19502
19503
19504
19505 func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
19506 c.ifNoneMatch_ = entityTag
19507 return c
19508 }
19509
19510
19511 func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
19512 c.ctx_ = ctx
19513 return c
19514 }
19515
19516
19517
19518 func (c *OrganizationsAppsListCall) Header() http.Header {
19519 if c.header_ == nil {
19520 c.header_ = make(http.Header)
19521 }
19522 return c.header_
19523 }
19524
19525 func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
19526 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19527 if c.ifNoneMatch_ != "" {
19528 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19529 }
19530 var body io.Reader = nil
19531 c.urlParams_.Set("alt", alt)
19532 c.urlParams_.Set("prettyPrint", "false")
19533 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
19534 urls += "?" + c.urlParams_.Encode()
19535 req, err := http.NewRequest("GET", urls, body)
19536 if err != nil {
19537 return nil, err
19538 }
19539 req.Header = reqHeaders
19540 googleapi.Expand(req.URL, map[string]string{
19541 "parent": c.parent,
19542 })
19543 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19544 }
19545
19546
19547
19548
19549
19550
19551
19552 func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
19553 gensupport.SetOptions(c.urlParams_, opts...)
19554 res, err := c.doRequest("json")
19555 if res != nil && res.StatusCode == http.StatusNotModified {
19556 if res.Body != nil {
19557 res.Body.Close()
19558 }
19559 return nil, gensupport.WrapError(&googleapi.Error{
19560 Code: res.StatusCode,
19561 Header: res.Header,
19562 })
19563 }
19564 if err != nil {
19565 return nil, err
19566 }
19567 defer googleapi.CloseBody(res)
19568 if err := googleapi.CheckResponse(res); err != nil {
19569 return nil, gensupport.WrapError(err)
19570 }
19571 ret := &GoogleCloudApigeeV1ListAppsResponse{
19572 ServerResponse: googleapi.ServerResponse{
19573 Header: res.Header,
19574 HTTPStatusCode: res.StatusCode,
19575 },
19576 }
19577 target := &ret
19578 if err := gensupport.DecodeResponse(target, res); err != nil {
19579 return nil, err
19580 }
19581 return ret, nil
19582 }
19583
19584
19585
19586
19587 func (c *OrganizationsAppsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListAppsResponse) error) error {
19588 c.ctx_ = ctx
19589 defer c.PageToken(c.urlParams_.Get("pageToken"))
19590 for {
19591 x, err := c.Do()
19592 if err != nil {
19593 return err
19594 }
19595 if err := f(x); err != nil {
19596 return err
19597 }
19598 if x.NextPageToken == "" {
19599 return nil
19600 }
19601 c.PageToken(x.NextPageToken)
19602 }
19603 }
19604
19605 type OrganizationsDatacollectorsCreateCall struct {
19606 s *Service
19607 parent string
19608 googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
19609 urlParams_ gensupport.URLParams
19610 ctx_ context.Context
19611 header_ http.Header
19612 }
19613
19614
19615
19616
19617
19618 func (r *OrganizationsDatacollectorsService) Create(parent string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsCreateCall {
19619 c := &OrganizationsDatacollectorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19620 c.parent = parent
19621 c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
19622 return c
19623 }
19624
19625
19626
19627
19628
19629 func (c *OrganizationsDatacollectorsCreateCall) DataCollectorId(dataCollectorId string) *OrganizationsDatacollectorsCreateCall {
19630 c.urlParams_.Set("dataCollectorId", dataCollectorId)
19631 return c
19632 }
19633
19634
19635
19636
19637 func (c *OrganizationsDatacollectorsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsCreateCall {
19638 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19639 return c
19640 }
19641
19642
19643 func (c *OrganizationsDatacollectorsCreateCall) Context(ctx context.Context) *OrganizationsDatacollectorsCreateCall {
19644 c.ctx_ = ctx
19645 return c
19646 }
19647
19648
19649
19650 func (c *OrganizationsDatacollectorsCreateCall) Header() http.Header {
19651 if c.header_ == nil {
19652 c.header_ = make(http.Header)
19653 }
19654 return c.header_
19655 }
19656
19657 func (c *OrganizationsDatacollectorsCreateCall) doRequest(alt string) (*http.Response, error) {
19658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19659 var body io.Reader = nil
19660 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
19661 if err != nil {
19662 return nil, err
19663 }
19664 c.urlParams_.Set("alt", alt)
19665 c.urlParams_.Set("prettyPrint", "false")
19666 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
19667 urls += "?" + c.urlParams_.Encode()
19668 req, err := http.NewRequest("POST", urls, body)
19669 if err != nil {
19670 return nil, err
19671 }
19672 req.Header = reqHeaders
19673 googleapi.Expand(req.URL, map[string]string{
19674 "parent": c.parent,
19675 })
19676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19677 }
19678
19679
19680
19681
19682
19683
19684
19685 func (c *OrganizationsDatacollectorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
19686 gensupport.SetOptions(c.urlParams_, opts...)
19687 res, err := c.doRequest("json")
19688 if res != nil && res.StatusCode == http.StatusNotModified {
19689 if res.Body != nil {
19690 res.Body.Close()
19691 }
19692 return nil, gensupport.WrapError(&googleapi.Error{
19693 Code: res.StatusCode,
19694 Header: res.Header,
19695 })
19696 }
19697 if err != nil {
19698 return nil, err
19699 }
19700 defer googleapi.CloseBody(res)
19701 if err := googleapi.CheckResponse(res); err != nil {
19702 return nil, gensupport.WrapError(err)
19703 }
19704 ret := &GoogleCloudApigeeV1DataCollector{
19705 ServerResponse: googleapi.ServerResponse{
19706 Header: res.Header,
19707 HTTPStatusCode: res.StatusCode,
19708 },
19709 }
19710 target := &ret
19711 if err := gensupport.DecodeResponse(target, res); err != nil {
19712 return nil, err
19713 }
19714 return ret, nil
19715 }
19716
19717 type OrganizationsDatacollectorsDeleteCall struct {
19718 s *Service
19719 name string
19720 urlParams_ gensupport.URLParams
19721 ctx_ context.Context
19722 header_ http.Header
19723 }
19724
19725
19726
19727
19728
19729 func (r *OrganizationsDatacollectorsService) Delete(name string) *OrganizationsDatacollectorsDeleteCall {
19730 c := &OrganizationsDatacollectorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19731 c.name = name
19732 return c
19733 }
19734
19735
19736
19737
19738 func (c *OrganizationsDatacollectorsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsDeleteCall {
19739 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19740 return c
19741 }
19742
19743
19744 func (c *OrganizationsDatacollectorsDeleteCall) Context(ctx context.Context) *OrganizationsDatacollectorsDeleteCall {
19745 c.ctx_ = ctx
19746 return c
19747 }
19748
19749
19750
19751 func (c *OrganizationsDatacollectorsDeleteCall) Header() http.Header {
19752 if c.header_ == nil {
19753 c.header_ = make(http.Header)
19754 }
19755 return c.header_
19756 }
19757
19758 func (c *OrganizationsDatacollectorsDeleteCall) doRequest(alt string) (*http.Response, error) {
19759 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19760 var body io.Reader = nil
19761 c.urlParams_.Set("alt", alt)
19762 c.urlParams_.Set("prettyPrint", "false")
19763 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19764 urls += "?" + c.urlParams_.Encode()
19765 req, err := http.NewRequest("DELETE", urls, body)
19766 if err != nil {
19767 return nil, err
19768 }
19769 req.Header = reqHeaders
19770 googleapi.Expand(req.URL, map[string]string{
19771 "name": c.name,
19772 })
19773 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19774 }
19775
19776
19777
19778
19779
19780
19781
19782 func (c *OrganizationsDatacollectorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19783 gensupport.SetOptions(c.urlParams_, opts...)
19784 res, err := c.doRequest("json")
19785 if res != nil && res.StatusCode == http.StatusNotModified {
19786 if res.Body != nil {
19787 res.Body.Close()
19788 }
19789 return nil, gensupport.WrapError(&googleapi.Error{
19790 Code: res.StatusCode,
19791 Header: res.Header,
19792 })
19793 }
19794 if err != nil {
19795 return nil, err
19796 }
19797 defer googleapi.CloseBody(res)
19798 if err := googleapi.CheckResponse(res); err != nil {
19799 return nil, gensupport.WrapError(err)
19800 }
19801 ret := &GoogleProtobufEmpty{
19802 ServerResponse: googleapi.ServerResponse{
19803 Header: res.Header,
19804 HTTPStatusCode: res.StatusCode,
19805 },
19806 }
19807 target := &ret
19808 if err := gensupport.DecodeResponse(target, res); err != nil {
19809 return nil, err
19810 }
19811 return ret, nil
19812 }
19813
19814 type OrganizationsDatacollectorsGetCall struct {
19815 s *Service
19816 name string
19817 urlParams_ gensupport.URLParams
19818 ifNoneMatch_ string
19819 ctx_ context.Context
19820 header_ http.Header
19821 }
19822
19823
19824
19825
19826
19827 func (r *OrganizationsDatacollectorsService) Get(name string) *OrganizationsDatacollectorsGetCall {
19828 c := &OrganizationsDatacollectorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19829 c.name = name
19830 return c
19831 }
19832
19833
19834
19835
19836 func (c *OrganizationsDatacollectorsGetCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsGetCall {
19837 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19838 return c
19839 }
19840
19841
19842
19843
19844 func (c *OrganizationsDatacollectorsGetCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsGetCall {
19845 c.ifNoneMatch_ = entityTag
19846 return c
19847 }
19848
19849
19850 func (c *OrganizationsDatacollectorsGetCall) Context(ctx context.Context) *OrganizationsDatacollectorsGetCall {
19851 c.ctx_ = ctx
19852 return c
19853 }
19854
19855
19856
19857 func (c *OrganizationsDatacollectorsGetCall) Header() http.Header {
19858 if c.header_ == nil {
19859 c.header_ = make(http.Header)
19860 }
19861 return c.header_
19862 }
19863
19864 func (c *OrganizationsDatacollectorsGetCall) doRequest(alt string) (*http.Response, error) {
19865 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19866 if c.ifNoneMatch_ != "" {
19867 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19868 }
19869 var body io.Reader = nil
19870 c.urlParams_.Set("alt", alt)
19871 c.urlParams_.Set("prettyPrint", "false")
19872 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19873 urls += "?" + c.urlParams_.Encode()
19874 req, err := http.NewRequest("GET", urls, body)
19875 if err != nil {
19876 return nil, err
19877 }
19878 req.Header = reqHeaders
19879 googleapi.Expand(req.URL, map[string]string{
19880 "name": c.name,
19881 })
19882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19883 }
19884
19885
19886
19887
19888
19889
19890
19891 func (c *OrganizationsDatacollectorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
19892 gensupport.SetOptions(c.urlParams_, opts...)
19893 res, err := c.doRequest("json")
19894 if res != nil && res.StatusCode == http.StatusNotModified {
19895 if res.Body != nil {
19896 res.Body.Close()
19897 }
19898 return nil, gensupport.WrapError(&googleapi.Error{
19899 Code: res.StatusCode,
19900 Header: res.Header,
19901 })
19902 }
19903 if err != nil {
19904 return nil, err
19905 }
19906 defer googleapi.CloseBody(res)
19907 if err := googleapi.CheckResponse(res); err != nil {
19908 return nil, gensupport.WrapError(err)
19909 }
19910 ret := &GoogleCloudApigeeV1DataCollector{
19911 ServerResponse: googleapi.ServerResponse{
19912 Header: res.Header,
19913 HTTPStatusCode: res.StatusCode,
19914 },
19915 }
19916 target := &ret
19917 if err := gensupport.DecodeResponse(target, res); err != nil {
19918 return nil, err
19919 }
19920 return ret, nil
19921 }
19922
19923 type OrganizationsDatacollectorsListCall struct {
19924 s *Service
19925 parent string
19926 urlParams_ gensupport.URLParams
19927 ifNoneMatch_ string
19928 ctx_ context.Context
19929 header_ http.Header
19930 }
19931
19932
19933
19934
19935
19936 func (r *OrganizationsDatacollectorsService) List(parent string) *OrganizationsDatacollectorsListCall {
19937 c := &OrganizationsDatacollectorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19938 c.parent = parent
19939 return c
19940 }
19941
19942
19943
19944 func (c *OrganizationsDatacollectorsListCall) PageSize(pageSize int64) *OrganizationsDatacollectorsListCall {
19945 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19946 return c
19947 }
19948
19949
19950
19951
19952 func (c *OrganizationsDatacollectorsListCall) PageToken(pageToken string) *OrganizationsDatacollectorsListCall {
19953 c.urlParams_.Set("pageToken", pageToken)
19954 return c
19955 }
19956
19957
19958
19959
19960 func (c *OrganizationsDatacollectorsListCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsListCall {
19961 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19962 return c
19963 }
19964
19965
19966
19967
19968 func (c *OrganizationsDatacollectorsListCall) IfNoneMatch(entityTag string) *OrganizationsDatacollectorsListCall {
19969 c.ifNoneMatch_ = entityTag
19970 return c
19971 }
19972
19973
19974 func (c *OrganizationsDatacollectorsListCall) Context(ctx context.Context) *OrganizationsDatacollectorsListCall {
19975 c.ctx_ = ctx
19976 return c
19977 }
19978
19979
19980
19981 func (c *OrganizationsDatacollectorsListCall) Header() http.Header {
19982 if c.header_ == nil {
19983 c.header_ = make(http.Header)
19984 }
19985 return c.header_
19986 }
19987
19988 func (c *OrganizationsDatacollectorsListCall) doRequest(alt string) (*http.Response, error) {
19989 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19990 if c.ifNoneMatch_ != "" {
19991 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19992 }
19993 var body io.Reader = nil
19994 c.urlParams_.Set("alt", alt)
19995 c.urlParams_.Set("prettyPrint", "false")
19996 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datacollectors")
19997 urls += "?" + c.urlParams_.Encode()
19998 req, err := http.NewRequest("GET", urls, body)
19999 if err != nil {
20000 return nil, err
20001 }
20002 req.Header = reqHeaders
20003 googleapi.Expand(req.URL, map[string]string{
20004 "parent": c.parent,
20005 })
20006 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20007 }
20008
20009
20010
20011
20012
20013
20014
20015 func (c *OrganizationsDatacollectorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDataCollectorsResponse, error) {
20016 gensupport.SetOptions(c.urlParams_, opts...)
20017 res, err := c.doRequest("json")
20018 if res != nil && res.StatusCode == http.StatusNotModified {
20019 if res.Body != nil {
20020 res.Body.Close()
20021 }
20022 return nil, gensupport.WrapError(&googleapi.Error{
20023 Code: res.StatusCode,
20024 Header: res.Header,
20025 })
20026 }
20027 if err != nil {
20028 return nil, err
20029 }
20030 defer googleapi.CloseBody(res)
20031 if err := googleapi.CheckResponse(res); err != nil {
20032 return nil, gensupport.WrapError(err)
20033 }
20034 ret := &GoogleCloudApigeeV1ListDataCollectorsResponse{
20035 ServerResponse: googleapi.ServerResponse{
20036 Header: res.Header,
20037 HTTPStatusCode: res.StatusCode,
20038 },
20039 }
20040 target := &ret
20041 if err := gensupport.DecodeResponse(target, res); err != nil {
20042 return nil, err
20043 }
20044 return ret, nil
20045 }
20046
20047
20048
20049
20050 func (c *OrganizationsDatacollectorsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDataCollectorsResponse) error) error {
20051 c.ctx_ = ctx
20052 defer c.PageToken(c.urlParams_.Get("pageToken"))
20053 for {
20054 x, err := c.Do()
20055 if err != nil {
20056 return err
20057 }
20058 if err := f(x); err != nil {
20059 return err
20060 }
20061 if x.NextPageToken == "" {
20062 return nil
20063 }
20064 c.PageToken(x.NextPageToken)
20065 }
20066 }
20067
20068 type OrganizationsDatacollectorsPatchCall struct {
20069 s *Service
20070 name string
20071 googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector
20072 urlParams_ gensupport.URLParams
20073 ctx_ context.Context
20074 header_ http.Header
20075 }
20076
20077
20078
20079
20080
20081 func (r *OrganizationsDatacollectorsService) Patch(name string, googlecloudapigeev1datacollector *GoogleCloudApigeeV1DataCollector) *OrganizationsDatacollectorsPatchCall {
20082 c := &OrganizationsDatacollectorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20083 c.name = name
20084 c.googlecloudapigeev1datacollector = googlecloudapigeev1datacollector
20085 return c
20086 }
20087
20088
20089
20090 func (c *OrganizationsDatacollectorsPatchCall) UpdateMask(updateMask string) *OrganizationsDatacollectorsPatchCall {
20091 c.urlParams_.Set("updateMask", updateMask)
20092 return c
20093 }
20094
20095
20096
20097
20098 func (c *OrganizationsDatacollectorsPatchCall) Fields(s ...googleapi.Field) *OrganizationsDatacollectorsPatchCall {
20099 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20100 return c
20101 }
20102
20103
20104 func (c *OrganizationsDatacollectorsPatchCall) Context(ctx context.Context) *OrganizationsDatacollectorsPatchCall {
20105 c.ctx_ = ctx
20106 return c
20107 }
20108
20109
20110
20111 func (c *OrganizationsDatacollectorsPatchCall) Header() http.Header {
20112 if c.header_ == nil {
20113 c.header_ = make(http.Header)
20114 }
20115 return c.header_
20116 }
20117
20118 func (c *OrganizationsDatacollectorsPatchCall) doRequest(alt string) (*http.Response, error) {
20119 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20120 var body io.Reader = nil
20121 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1datacollector)
20122 if err != nil {
20123 return nil, err
20124 }
20125 c.urlParams_.Set("alt", alt)
20126 c.urlParams_.Set("prettyPrint", "false")
20127 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20128 urls += "?" + c.urlParams_.Encode()
20129 req, err := http.NewRequest("PATCH", urls, body)
20130 if err != nil {
20131 return nil, err
20132 }
20133 req.Header = reqHeaders
20134 googleapi.Expand(req.URL, map[string]string{
20135 "name": c.name,
20136 })
20137 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20138 }
20139
20140
20141
20142
20143
20144
20145
20146 func (c *OrganizationsDatacollectorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataCollector, error) {
20147 gensupport.SetOptions(c.urlParams_, opts...)
20148 res, err := c.doRequest("json")
20149 if res != nil && res.StatusCode == http.StatusNotModified {
20150 if res.Body != nil {
20151 res.Body.Close()
20152 }
20153 return nil, gensupport.WrapError(&googleapi.Error{
20154 Code: res.StatusCode,
20155 Header: res.Header,
20156 })
20157 }
20158 if err != nil {
20159 return nil, err
20160 }
20161 defer googleapi.CloseBody(res)
20162 if err := googleapi.CheckResponse(res); err != nil {
20163 return nil, gensupport.WrapError(err)
20164 }
20165 ret := &GoogleCloudApigeeV1DataCollector{
20166 ServerResponse: googleapi.ServerResponse{
20167 Header: res.Header,
20168 HTTPStatusCode: res.StatusCode,
20169 },
20170 }
20171 target := &ret
20172 if err := gensupport.DecodeResponse(target, res); err != nil {
20173 return nil, err
20174 }
20175 return ret, nil
20176 }
20177
20178 type OrganizationsDeploymentsListCall struct {
20179 s *Service
20180 parent string
20181 urlParams_ gensupport.URLParams
20182 ifNoneMatch_ string
20183 ctx_ context.Context
20184 header_ http.Header
20185 }
20186
20187
20188
20189
20190
20191 func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
20192 c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20193 c.parent = parent
20194 return c
20195 }
20196
20197
20198
20199
20200
20201 func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
20202 c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
20203 return c
20204 }
20205
20206
20207
20208
20209 func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
20210 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20211 return c
20212 }
20213
20214
20215
20216
20217 func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
20218 c.ifNoneMatch_ = entityTag
20219 return c
20220 }
20221
20222
20223 func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
20224 c.ctx_ = ctx
20225 return c
20226 }
20227
20228
20229
20230 func (c *OrganizationsDeploymentsListCall) Header() http.Header {
20231 if c.header_ == nil {
20232 c.header_ = make(http.Header)
20233 }
20234 return c.header_
20235 }
20236
20237 func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
20238 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20239 if c.ifNoneMatch_ != "" {
20240 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20241 }
20242 var body io.Reader = nil
20243 c.urlParams_.Set("alt", alt)
20244 c.urlParams_.Set("prettyPrint", "false")
20245 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
20246 urls += "?" + c.urlParams_.Encode()
20247 req, err := http.NewRequest("GET", urls, body)
20248 if err != nil {
20249 return nil, err
20250 }
20251 req.Header = reqHeaders
20252 googleapi.Expand(req.URL, map[string]string{
20253 "parent": c.parent,
20254 })
20255 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20256 }
20257
20258
20259
20260
20261
20262
20263
20264 func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
20265 gensupport.SetOptions(c.urlParams_, opts...)
20266 res, err := c.doRequest("json")
20267 if res != nil && res.StatusCode == http.StatusNotModified {
20268 if res.Body != nil {
20269 res.Body.Close()
20270 }
20271 return nil, gensupport.WrapError(&googleapi.Error{
20272 Code: res.StatusCode,
20273 Header: res.Header,
20274 })
20275 }
20276 if err != nil {
20277 return nil, err
20278 }
20279 defer googleapi.CloseBody(res)
20280 if err := googleapi.CheckResponse(res); err != nil {
20281 return nil, gensupport.WrapError(err)
20282 }
20283 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
20284 ServerResponse: googleapi.ServerResponse{
20285 Header: res.Header,
20286 HTTPStatusCode: res.StatusCode,
20287 },
20288 }
20289 target := &ret
20290 if err := gensupport.DecodeResponse(target, res); err != nil {
20291 return nil, err
20292 }
20293 return ret, nil
20294 }
20295
20296 type OrganizationsDevelopersAttributesCall struct {
20297 s *Service
20298 parent string
20299 googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
20300 urlParams_ gensupport.URLParams
20301 ctx_ context.Context
20302 header_ http.Header
20303 }
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319 func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
20320 c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20321 c.parent = parent
20322 c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
20323 return c
20324 }
20325
20326
20327
20328
20329 func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
20330 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20331 return c
20332 }
20333
20334
20335 func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
20336 c.ctx_ = ctx
20337 return c
20338 }
20339
20340
20341
20342 func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
20343 if c.header_ == nil {
20344 c.header_ = make(http.Header)
20345 }
20346 return c.header_
20347 }
20348
20349 func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
20350 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20351 var body io.Reader = nil
20352 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
20353 if err != nil {
20354 return nil, err
20355 }
20356 c.urlParams_.Set("alt", alt)
20357 c.urlParams_.Set("prettyPrint", "false")
20358 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
20359 urls += "?" + c.urlParams_.Encode()
20360 req, err := http.NewRequest("POST", urls, body)
20361 if err != nil {
20362 return nil, err
20363 }
20364 req.Header = reqHeaders
20365 googleapi.Expand(req.URL, map[string]string{
20366 "parent": c.parent,
20367 })
20368 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20369 }
20370
20371
20372
20373
20374
20375
20376
20377 func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
20378 gensupport.SetOptions(c.urlParams_, opts...)
20379 res, err := c.doRequest("json")
20380 if res != nil && res.StatusCode == http.StatusNotModified {
20381 if res.Body != nil {
20382 res.Body.Close()
20383 }
20384 return nil, gensupport.WrapError(&googleapi.Error{
20385 Code: res.StatusCode,
20386 Header: res.Header,
20387 })
20388 }
20389 if err != nil {
20390 return nil, err
20391 }
20392 defer googleapi.CloseBody(res)
20393 if err := googleapi.CheckResponse(res); err != nil {
20394 return nil, gensupport.WrapError(err)
20395 }
20396 ret := &GoogleCloudApigeeV1Attributes{
20397 ServerResponse: googleapi.ServerResponse{
20398 Header: res.Header,
20399 HTTPStatusCode: res.StatusCode,
20400 },
20401 }
20402 target := &ret
20403 if err := gensupport.DecodeResponse(target, res); err != nil {
20404 return nil, err
20405 }
20406 return ret, nil
20407 }
20408
20409 type OrganizationsDevelopersCreateCall struct {
20410 s *Service
20411 parent string
20412 googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
20413 urlParams_ gensupport.URLParams
20414 ctx_ context.Context
20415 header_ http.Header
20416 }
20417
20418
20419
20420
20421
20422
20423
20424 func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
20425 c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20426 c.parent = parent
20427 c.googlecloudapigeev1developer = googlecloudapigeev1developer
20428 return c
20429 }
20430
20431
20432
20433
20434 func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
20435 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20436 return c
20437 }
20438
20439
20440 func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
20441 c.ctx_ = ctx
20442 return c
20443 }
20444
20445
20446
20447 func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
20448 if c.header_ == nil {
20449 c.header_ = make(http.Header)
20450 }
20451 return c.header_
20452 }
20453
20454 func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
20455 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20456 var body io.Reader = nil
20457 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
20458 if err != nil {
20459 return nil, err
20460 }
20461 c.urlParams_.Set("alt", alt)
20462 c.urlParams_.Set("prettyPrint", "false")
20463 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
20464 urls += "?" + c.urlParams_.Encode()
20465 req, err := http.NewRequest("POST", urls, body)
20466 if err != nil {
20467 return nil, err
20468 }
20469 req.Header = reqHeaders
20470 googleapi.Expand(req.URL, map[string]string{
20471 "parent": c.parent,
20472 })
20473 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20474 }
20475
20476
20477
20478
20479
20480
20481
20482 func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
20483 gensupport.SetOptions(c.urlParams_, opts...)
20484 res, err := c.doRequest("json")
20485 if res != nil && res.StatusCode == http.StatusNotModified {
20486 if res.Body != nil {
20487 res.Body.Close()
20488 }
20489 return nil, gensupport.WrapError(&googleapi.Error{
20490 Code: res.StatusCode,
20491 Header: res.Header,
20492 })
20493 }
20494 if err != nil {
20495 return nil, err
20496 }
20497 defer googleapi.CloseBody(res)
20498 if err := googleapi.CheckResponse(res); err != nil {
20499 return nil, gensupport.WrapError(err)
20500 }
20501 ret := &GoogleCloudApigeeV1Developer{
20502 ServerResponse: googleapi.ServerResponse{
20503 Header: res.Header,
20504 HTTPStatusCode: res.StatusCode,
20505 },
20506 }
20507 target := &ret
20508 if err := gensupport.DecodeResponse(target, res); err != nil {
20509 return nil, err
20510 }
20511 return ret, nil
20512 }
20513
20514 type OrganizationsDevelopersDeleteCall struct {
20515 s *Service
20516 name string
20517 urlParams_ gensupport.URLParams
20518 ctx_ context.Context
20519 header_ http.Header
20520 }
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533 func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
20534 c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20535 c.name = name
20536 return c
20537 }
20538
20539
20540
20541
20542 func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
20543 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20544 return c
20545 }
20546
20547
20548 func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
20549 c.ctx_ = ctx
20550 return c
20551 }
20552
20553
20554
20555 func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
20556 if c.header_ == nil {
20557 c.header_ = make(http.Header)
20558 }
20559 return c.header_
20560 }
20561
20562 func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
20563 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20564 var body io.Reader = nil
20565 c.urlParams_.Set("alt", alt)
20566 c.urlParams_.Set("prettyPrint", "false")
20567 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20568 urls += "?" + c.urlParams_.Encode()
20569 req, err := http.NewRequest("DELETE", urls, body)
20570 if err != nil {
20571 return nil, err
20572 }
20573 req.Header = reqHeaders
20574 googleapi.Expand(req.URL, map[string]string{
20575 "name": c.name,
20576 })
20577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20578 }
20579
20580
20581
20582
20583
20584
20585
20586 func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
20587 gensupport.SetOptions(c.urlParams_, opts...)
20588 res, err := c.doRequest("json")
20589 if res != nil && res.StatusCode == http.StatusNotModified {
20590 if res.Body != nil {
20591 res.Body.Close()
20592 }
20593 return nil, gensupport.WrapError(&googleapi.Error{
20594 Code: res.StatusCode,
20595 Header: res.Header,
20596 })
20597 }
20598 if err != nil {
20599 return nil, err
20600 }
20601 defer googleapi.CloseBody(res)
20602 if err := googleapi.CheckResponse(res); err != nil {
20603 return nil, gensupport.WrapError(err)
20604 }
20605 ret := &GoogleCloudApigeeV1Developer{
20606 ServerResponse: googleapi.ServerResponse{
20607 Header: res.Header,
20608 HTTPStatusCode: res.StatusCode,
20609 },
20610 }
20611 target := &ret
20612 if err := gensupport.DecodeResponse(target, res); err != nil {
20613 return nil, err
20614 }
20615 return ret, nil
20616 }
20617
20618 type OrganizationsDevelopersGetCall struct {
20619 s *Service
20620 name string
20621 urlParams_ gensupport.URLParams
20622 ifNoneMatch_ string
20623 ctx_ context.Context
20624 header_ http.Header
20625 }
20626
20627
20628
20629
20630
20631
20632
20633 func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
20634 c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20635 c.name = name
20636 return c
20637 }
20638
20639
20640
20641 func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
20642 c.urlParams_.Set("action", action)
20643 return c
20644 }
20645
20646
20647
20648
20649 func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
20650 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20651 return c
20652 }
20653
20654
20655
20656
20657 func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
20658 c.ifNoneMatch_ = entityTag
20659 return c
20660 }
20661
20662
20663 func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
20664 c.ctx_ = ctx
20665 return c
20666 }
20667
20668
20669
20670 func (c *OrganizationsDevelopersGetCall) Header() http.Header {
20671 if c.header_ == nil {
20672 c.header_ = make(http.Header)
20673 }
20674 return c.header_
20675 }
20676
20677 func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
20678 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20679 if c.ifNoneMatch_ != "" {
20680 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20681 }
20682 var body io.Reader = nil
20683 c.urlParams_.Set("alt", alt)
20684 c.urlParams_.Set("prettyPrint", "false")
20685 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20686 urls += "?" + c.urlParams_.Encode()
20687 req, err := http.NewRequest("GET", urls, body)
20688 if err != nil {
20689 return nil, err
20690 }
20691 req.Header = reqHeaders
20692 googleapi.Expand(req.URL, map[string]string{
20693 "name": c.name,
20694 })
20695 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20696 }
20697
20698
20699
20700
20701
20702
20703
20704 func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
20705 gensupport.SetOptions(c.urlParams_, opts...)
20706 res, err := c.doRequest("json")
20707 if res != nil && res.StatusCode == http.StatusNotModified {
20708 if res.Body != nil {
20709 res.Body.Close()
20710 }
20711 return nil, gensupport.WrapError(&googleapi.Error{
20712 Code: res.StatusCode,
20713 Header: res.Header,
20714 })
20715 }
20716 if err != nil {
20717 return nil, err
20718 }
20719 defer googleapi.CloseBody(res)
20720 if err := googleapi.CheckResponse(res); err != nil {
20721 return nil, gensupport.WrapError(err)
20722 }
20723 ret := &GoogleCloudApigeeV1Developer{
20724 ServerResponse: googleapi.ServerResponse{
20725 Header: res.Header,
20726 HTTPStatusCode: res.StatusCode,
20727 },
20728 }
20729 target := &ret
20730 if err := gensupport.DecodeResponse(target, res); err != nil {
20731 return nil, err
20732 }
20733 return ret, nil
20734 }
20735
20736 type OrganizationsDevelopersGetBalanceCall struct {
20737 s *Service
20738 name string
20739 urlParams_ gensupport.URLParams
20740 ifNoneMatch_ string
20741 ctx_ context.Context
20742 header_ http.Header
20743 }
20744
20745
20746
20747
20748
20749 func (r *OrganizationsDevelopersService) GetBalance(name string) *OrganizationsDevelopersGetBalanceCall {
20750 c := &OrganizationsDevelopersGetBalanceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20751 c.name = name
20752 return c
20753 }
20754
20755
20756
20757
20758 func (c *OrganizationsDevelopersGetBalanceCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetBalanceCall {
20759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20760 return c
20761 }
20762
20763
20764
20765
20766 func (c *OrganizationsDevelopersGetBalanceCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetBalanceCall {
20767 c.ifNoneMatch_ = entityTag
20768 return c
20769 }
20770
20771
20772 func (c *OrganizationsDevelopersGetBalanceCall) Context(ctx context.Context) *OrganizationsDevelopersGetBalanceCall {
20773 c.ctx_ = ctx
20774 return c
20775 }
20776
20777
20778
20779 func (c *OrganizationsDevelopersGetBalanceCall) Header() http.Header {
20780 if c.header_ == nil {
20781 c.header_ = make(http.Header)
20782 }
20783 return c.header_
20784 }
20785
20786 func (c *OrganizationsDevelopersGetBalanceCall) doRequest(alt string) (*http.Response, error) {
20787 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20788 if c.ifNoneMatch_ != "" {
20789 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20790 }
20791 var body io.Reader = nil
20792 c.urlParams_.Set("alt", alt)
20793 c.urlParams_.Set("prettyPrint", "false")
20794 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20795 urls += "?" + c.urlParams_.Encode()
20796 req, err := http.NewRequest("GET", urls, body)
20797 if err != nil {
20798 return nil, err
20799 }
20800 req.Header = reqHeaders
20801 googleapi.Expand(req.URL, map[string]string{
20802 "name": c.name,
20803 })
20804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20805 }
20806
20807
20808
20809
20810
20811
20812
20813 func (c *OrganizationsDevelopersGetBalanceCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
20814 gensupport.SetOptions(c.urlParams_, opts...)
20815 res, err := c.doRequest("json")
20816 if res != nil && res.StatusCode == http.StatusNotModified {
20817 if res.Body != nil {
20818 res.Body.Close()
20819 }
20820 return nil, gensupport.WrapError(&googleapi.Error{
20821 Code: res.StatusCode,
20822 Header: res.Header,
20823 })
20824 }
20825 if err != nil {
20826 return nil, err
20827 }
20828 defer googleapi.CloseBody(res)
20829 if err := googleapi.CheckResponse(res); err != nil {
20830 return nil, gensupport.WrapError(err)
20831 }
20832 ret := &GoogleCloudApigeeV1DeveloperBalance{
20833 ServerResponse: googleapi.ServerResponse{
20834 Header: res.Header,
20835 HTTPStatusCode: res.StatusCode,
20836 },
20837 }
20838 target := &ret
20839 if err := gensupport.DecodeResponse(target, res); err != nil {
20840 return nil, err
20841 }
20842 return ret, nil
20843 }
20844
20845 type OrganizationsDevelopersGetMonetizationConfigCall struct {
20846 s *Service
20847 name string
20848 urlParams_ gensupport.URLParams
20849 ifNoneMatch_ string
20850 ctx_ context.Context
20851 header_ http.Header
20852 }
20853
20854
20855
20856
20857
20858
20859
20860 func (r *OrganizationsDevelopersService) GetMonetizationConfig(name string) *OrganizationsDevelopersGetMonetizationConfigCall {
20861 c := &OrganizationsDevelopersGetMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20862 c.name = name
20863 return c
20864 }
20865
20866
20867
20868
20869 func (c *OrganizationsDevelopersGetMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetMonetizationConfigCall {
20870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20871 return c
20872 }
20873
20874
20875
20876
20877 func (c *OrganizationsDevelopersGetMonetizationConfigCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetMonetizationConfigCall {
20878 c.ifNoneMatch_ = entityTag
20879 return c
20880 }
20881
20882
20883 func (c *OrganizationsDevelopersGetMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersGetMonetizationConfigCall {
20884 c.ctx_ = ctx
20885 return c
20886 }
20887
20888
20889
20890 func (c *OrganizationsDevelopersGetMonetizationConfigCall) Header() http.Header {
20891 if c.header_ == nil {
20892 c.header_ = make(http.Header)
20893 }
20894 return c.header_
20895 }
20896
20897 func (c *OrganizationsDevelopersGetMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
20898 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20899 if c.ifNoneMatch_ != "" {
20900 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20901 }
20902 var body io.Reader = nil
20903 c.urlParams_.Set("alt", alt)
20904 c.urlParams_.Set("prettyPrint", "false")
20905 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20906 urls += "?" + c.urlParams_.Encode()
20907 req, err := http.NewRequest("GET", urls, body)
20908 if err != nil {
20909 return nil, err
20910 }
20911 req.Header = reqHeaders
20912 googleapi.Expand(req.URL, map[string]string{
20913 "name": c.name,
20914 })
20915 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20916 }
20917
20918
20919
20920
20921
20922
20923
20924 func (c *OrganizationsDevelopersGetMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
20925 gensupport.SetOptions(c.urlParams_, opts...)
20926 res, err := c.doRequest("json")
20927 if res != nil && res.StatusCode == http.StatusNotModified {
20928 if res.Body != nil {
20929 res.Body.Close()
20930 }
20931 return nil, gensupport.WrapError(&googleapi.Error{
20932 Code: res.StatusCode,
20933 Header: res.Header,
20934 })
20935 }
20936 if err != nil {
20937 return nil, err
20938 }
20939 defer googleapi.CloseBody(res)
20940 if err := googleapi.CheckResponse(res); err != nil {
20941 return nil, gensupport.WrapError(err)
20942 }
20943 ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
20944 ServerResponse: googleapi.ServerResponse{
20945 Header: res.Header,
20946 HTTPStatusCode: res.StatusCode,
20947 },
20948 }
20949 target := &ret
20950 if err := gensupport.DecodeResponse(target, res); err != nil {
20951 return nil, err
20952 }
20953 return ret, nil
20954 }
20955
20956 type OrganizationsDevelopersListCall struct {
20957 s *Service
20958 parent string
20959 urlParams_ gensupport.URLParams
20960 ifNoneMatch_ string
20961 ctx_ context.Context
20962 header_ http.Header
20963 }
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973 func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
20974 c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20975 c.parent = parent
20976 return c
20977 }
20978
20979
20980
20981
20982 func (c *OrganizationsDevelopersListCall) App(app string) *OrganizationsDevelopersListCall {
20983 c.urlParams_.Set("app", app)
20984 return c
20985 }
20986
20987
20988
20989
20990 func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
20991 c.urlParams_.Set("count", fmt.Sprint(count))
20992 return c
20993 }
20994
20995
20996
20997
20998 func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
20999 c.urlParams_.Set("expand", fmt.Sprint(expand))
21000 return c
21001 }
21002
21003
21004
21005 func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
21006 c.urlParams_.Set("ids", ids)
21007 return c
21008 }
21009
21010
21011
21012 func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
21013 c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
21014 return c
21015 }
21016
21017
21018
21019
21020
21021
21022
21023 func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
21024 c.urlParams_.Set("startKey", startKey)
21025 return c
21026 }
21027
21028
21029
21030
21031 func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
21032 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21033 return c
21034 }
21035
21036
21037
21038
21039 func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
21040 c.ifNoneMatch_ = entityTag
21041 return c
21042 }
21043
21044
21045 func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
21046 c.ctx_ = ctx
21047 return c
21048 }
21049
21050
21051
21052 func (c *OrganizationsDevelopersListCall) Header() http.Header {
21053 if c.header_ == nil {
21054 c.header_ = make(http.Header)
21055 }
21056 return c.header_
21057 }
21058
21059 func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
21060 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21061 if c.ifNoneMatch_ != "" {
21062 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21063 }
21064 var body io.Reader = nil
21065 c.urlParams_.Set("alt", alt)
21066 c.urlParams_.Set("prettyPrint", "false")
21067 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
21068 urls += "?" + c.urlParams_.Encode()
21069 req, err := http.NewRequest("GET", urls, body)
21070 if err != nil {
21071 return nil, err
21072 }
21073 req.Header = reqHeaders
21074 googleapi.Expand(req.URL, map[string]string{
21075 "parent": c.parent,
21076 })
21077 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21078 }
21079
21080
21081
21082
21083
21084
21085
21086 func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
21087 gensupport.SetOptions(c.urlParams_, opts...)
21088 res, err := c.doRequest("json")
21089 if res != nil && res.StatusCode == http.StatusNotModified {
21090 if res.Body != nil {
21091 res.Body.Close()
21092 }
21093 return nil, gensupport.WrapError(&googleapi.Error{
21094 Code: res.StatusCode,
21095 Header: res.Header,
21096 })
21097 }
21098 if err != nil {
21099 return nil, err
21100 }
21101 defer googleapi.CloseBody(res)
21102 if err := googleapi.CheckResponse(res); err != nil {
21103 return nil, gensupport.WrapError(err)
21104 }
21105 ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
21106 ServerResponse: googleapi.ServerResponse{
21107 Header: res.Header,
21108 HTTPStatusCode: res.StatusCode,
21109 },
21110 }
21111 target := &ret
21112 if err := gensupport.DecodeResponse(target, res); err != nil {
21113 return nil, err
21114 }
21115 return ret, nil
21116 }
21117
21118 type OrganizationsDevelopersSetDeveloperStatusCall struct {
21119 s *Service
21120 name string
21121 urlParams_ gensupport.URLParams
21122 ctx_ context.Context
21123 header_ http.Header
21124 }
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138 func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
21139 c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21140 c.name = name
21141 return c
21142 }
21143
21144
21145
21146 func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
21147 c.urlParams_.Set("action", action)
21148 return c
21149 }
21150
21151
21152
21153
21154 func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
21155 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21156 return c
21157 }
21158
21159
21160 func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
21161 c.ctx_ = ctx
21162 return c
21163 }
21164
21165
21166
21167 func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
21168 if c.header_ == nil {
21169 c.header_ = make(http.Header)
21170 }
21171 return c.header_
21172 }
21173
21174 func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
21175 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21176 var body io.Reader = nil
21177 c.urlParams_.Set("alt", alt)
21178 c.urlParams_.Set("prettyPrint", "false")
21179 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21180 urls += "?" + c.urlParams_.Encode()
21181 req, err := http.NewRequest("POST", urls, body)
21182 if err != nil {
21183 return nil, err
21184 }
21185 req.Header = reqHeaders
21186 googleapi.Expand(req.URL, map[string]string{
21187 "name": c.name,
21188 })
21189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21190 }
21191
21192
21193
21194
21195
21196
21197
21198 func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21199 gensupport.SetOptions(c.urlParams_, opts...)
21200 res, err := c.doRequest("json")
21201 if res != nil && res.StatusCode == http.StatusNotModified {
21202 if res.Body != nil {
21203 res.Body.Close()
21204 }
21205 return nil, gensupport.WrapError(&googleapi.Error{
21206 Code: res.StatusCode,
21207 Header: res.Header,
21208 })
21209 }
21210 if err != nil {
21211 return nil, err
21212 }
21213 defer googleapi.CloseBody(res)
21214 if err := googleapi.CheckResponse(res); err != nil {
21215 return nil, gensupport.WrapError(err)
21216 }
21217 ret := &GoogleProtobufEmpty{
21218 ServerResponse: googleapi.ServerResponse{
21219 Header: res.Header,
21220 HTTPStatusCode: res.StatusCode,
21221 },
21222 }
21223 target := &ret
21224 if err := gensupport.DecodeResponse(target, res); err != nil {
21225 return nil, err
21226 }
21227 return ret, nil
21228 }
21229
21230 type OrganizationsDevelopersUpdateCall struct {
21231 s *Service
21232 name string
21233 googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
21234 urlParams_ gensupport.URLParams
21235 ctx_ context.Context
21236 header_ http.Header
21237 }
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251 func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
21252 c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21253 c.name = name
21254 c.googlecloudapigeev1developer = googlecloudapigeev1developer
21255 return c
21256 }
21257
21258
21259
21260
21261 func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
21262 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21263 return c
21264 }
21265
21266
21267 func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
21268 c.ctx_ = ctx
21269 return c
21270 }
21271
21272
21273
21274 func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
21275 if c.header_ == nil {
21276 c.header_ = make(http.Header)
21277 }
21278 return c.header_
21279 }
21280
21281 func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
21282 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21283 var body io.Reader = nil
21284 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
21285 if err != nil {
21286 return nil, err
21287 }
21288 c.urlParams_.Set("alt", alt)
21289 c.urlParams_.Set("prettyPrint", "false")
21290 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21291 urls += "?" + c.urlParams_.Encode()
21292 req, err := http.NewRequest("PUT", urls, body)
21293 if err != nil {
21294 return nil, err
21295 }
21296 req.Header = reqHeaders
21297 googleapi.Expand(req.URL, map[string]string{
21298 "name": c.name,
21299 })
21300 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21301 }
21302
21303
21304
21305
21306
21307
21308
21309 func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
21310 gensupport.SetOptions(c.urlParams_, opts...)
21311 res, err := c.doRequest("json")
21312 if res != nil && res.StatusCode == http.StatusNotModified {
21313 if res.Body != nil {
21314 res.Body.Close()
21315 }
21316 return nil, gensupport.WrapError(&googleapi.Error{
21317 Code: res.StatusCode,
21318 Header: res.Header,
21319 })
21320 }
21321 if err != nil {
21322 return nil, err
21323 }
21324 defer googleapi.CloseBody(res)
21325 if err := googleapi.CheckResponse(res); err != nil {
21326 return nil, gensupport.WrapError(err)
21327 }
21328 ret := &GoogleCloudApigeeV1Developer{
21329 ServerResponse: googleapi.ServerResponse{
21330 Header: res.Header,
21331 HTTPStatusCode: res.StatusCode,
21332 },
21333 }
21334 target := &ret
21335 if err := gensupport.DecodeResponse(target, res); err != nil {
21336 return nil, err
21337 }
21338 return ret, nil
21339 }
21340
21341 type OrganizationsDevelopersUpdateMonetizationConfigCall struct {
21342 s *Service
21343 name string
21344 googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig
21345 urlParams_ gensupport.URLParams
21346 ctx_ context.Context
21347 header_ http.Header
21348 }
21349
21350
21351
21352
21353
21354
21355
21356 func (r *OrganizationsDevelopersService) UpdateMonetizationConfig(name string, googlecloudapigeev1developermonetizationconfig *GoogleCloudApigeeV1DeveloperMonetizationConfig) *OrganizationsDevelopersUpdateMonetizationConfigCall {
21357 c := &OrganizationsDevelopersUpdateMonetizationConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21358 c.name = name
21359 c.googlecloudapigeev1developermonetizationconfig = googlecloudapigeev1developermonetizationconfig
21360 return c
21361 }
21362
21363
21364
21365
21366 func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateMonetizationConfigCall {
21367 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21368 return c
21369 }
21370
21371
21372 func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateMonetizationConfigCall {
21373 c.ctx_ = ctx
21374 return c
21375 }
21376
21377
21378
21379 func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Header() http.Header {
21380 if c.header_ == nil {
21381 c.header_ = make(http.Header)
21382 }
21383 return c.header_
21384 }
21385
21386 func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) doRequest(alt string) (*http.Response, error) {
21387 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21388 var body io.Reader = nil
21389 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developermonetizationconfig)
21390 if err != nil {
21391 return nil, err
21392 }
21393 c.urlParams_.Set("alt", alt)
21394 c.urlParams_.Set("prettyPrint", "false")
21395 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21396 urls += "?" + c.urlParams_.Encode()
21397 req, err := http.NewRequest("PUT", urls, body)
21398 if err != nil {
21399 return nil, err
21400 }
21401 req.Header = reqHeaders
21402 googleapi.Expand(req.URL, map[string]string{
21403 "name": c.name,
21404 })
21405 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21406 }
21407
21408
21409
21410
21411
21412
21413
21414 func (c *OrganizationsDevelopersUpdateMonetizationConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperMonetizationConfig, error) {
21415 gensupport.SetOptions(c.urlParams_, opts...)
21416 res, err := c.doRequest("json")
21417 if res != nil && res.StatusCode == http.StatusNotModified {
21418 if res.Body != nil {
21419 res.Body.Close()
21420 }
21421 return nil, gensupport.WrapError(&googleapi.Error{
21422 Code: res.StatusCode,
21423 Header: res.Header,
21424 })
21425 }
21426 if err != nil {
21427 return nil, err
21428 }
21429 defer googleapi.CloseBody(res)
21430 if err := googleapi.CheckResponse(res); err != nil {
21431 return nil, gensupport.WrapError(err)
21432 }
21433 ret := &GoogleCloudApigeeV1DeveloperMonetizationConfig{
21434 ServerResponse: googleapi.ServerResponse{
21435 Header: res.Header,
21436 HTTPStatusCode: res.StatusCode,
21437 },
21438 }
21439 target := &ret
21440 if err := gensupport.DecodeResponse(target, res); err != nil {
21441 return nil, err
21442 }
21443 return ret, nil
21444 }
21445
21446 type OrganizationsDevelopersAppsAttributesCall struct {
21447 s *Service
21448 name string
21449 googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
21450 urlParams_ gensupport.URLParams
21451 ctx_ context.Context
21452 header_ http.Header
21453 }
21454
21455
21456
21457
21458
21459
21460 func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
21461 c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21462 c.name = name
21463 c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
21464 return c
21465 }
21466
21467
21468
21469
21470 func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
21471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21472 return c
21473 }
21474
21475
21476 func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
21477 c.ctx_ = ctx
21478 return c
21479 }
21480
21481
21482
21483 func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
21484 if c.header_ == nil {
21485 c.header_ = make(http.Header)
21486 }
21487 return c.header_
21488 }
21489
21490 func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
21491 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21492 var body io.Reader = nil
21493 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
21494 if err != nil {
21495 return nil, err
21496 }
21497 c.urlParams_.Set("alt", alt)
21498 c.urlParams_.Set("prettyPrint", "false")
21499 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
21500 urls += "?" + c.urlParams_.Encode()
21501 req, err := http.NewRequest("POST", urls, body)
21502 if err != nil {
21503 return nil, err
21504 }
21505 req.Header = reqHeaders
21506 googleapi.Expand(req.URL, map[string]string{
21507 "name": c.name,
21508 })
21509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21510 }
21511
21512
21513
21514
21515
21516
21517
21518 func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
21519 gensupport.SetOptions(c.urlParams_, opts...)
21520 res, err := c.doRequest("json")
21521 if res != nil && res.StatusCode == http.StatusNotModified {
21522 if res.Body != nil {
21523 res.Body.Close()
21524 }
21525 return nil, gensupport.WrapError(&googleapi.Error{
21526 Code: res.StatusCode,
21527 Header: res.Header,
21528 })
21529 }
21530 if err != nil {
21531 return nil, err
21532 }
21533 defer googleapi.CloseBody(res)
21534 if err := googleapi.CheckResponse(res); err != nil {
21535 return nil, gensupport.WrapError(err)
21536 }
21537 ret := &GoogleCloudApigeeV1Attributes{
21538 ServerResponse: googleapi.ServerResponse{
21539 Header: res.Header,
21540 HTTPStatusCode: res.StatusCode,
21541 },
21542 }
21543 target := &ret
21544 if err := gensupport.DecodeResponse(target, res); err != nil {
21545 return nil, err
21546 }
21547 return ret, nil
21548 }
21549
21550 type OrganizationsDevelopersAppsCreateCall struct {
21551 s *Service
21552 parent string
21553 googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
21554 urlParams_ gensupport.URLParams
21555 ctx_ context.Context
21556 header_ http.Header
21557 }
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568 func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
21569 c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21570 c.parent = parent
21571 c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
21572 return c
21573 }
21574
21575
21576
21577
21578 func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
21579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21580 return c
21581 }
21582
21583
21584 func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
21585 c.ctx_ = ctx
21586 return c
21587 }
21588
21589
21590
21591 func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
21592 if c.header_ == nil {
21593 c.header_ = make(http.Header)
21594 }
21595 return c.header_
21596 }
21597
21598 func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
21599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21600 var body io.Reader = nil
21601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
21602 if err != nil {
21603 return nil, err
21604 }
21605 c.urlParams_.Set("alt", alt)
21606 c.urlParams_.Set("prettyPrint", "false")
21607 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
21608 urls += "?" + c.urlParams_.Encode()
21609 req, err := http.NewRequest("POST", urls, body)
21610 if err != nil {
21611 return nil, err
21612 }
21613 req.Header = reqHeaders
21614 googleapi.Expand(req.URL, map[string]string{
21615 "parent": c.parent,
21616 })
21617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21618 }
21619
21620
21621
21622
21623
21624
21625
21626 func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
21627 gensupport.SetOptions(c.urlParams_, opts...)
21628 res, err := c.doRequest("json")
21629 if res != nil && res.StatusCode == http.StatusNotModified {
21630 if res.Body != nil {
21631 res.Body.Close()
21632 }
21633 return nil, gensupport.WrapError(&googleapi.Error{
21634 Code: res.StatusCode,
21635 Header: res.Header,
21636 })
21637 }
21638 if err != nil {
21639 return nil, err
21640 }
21641 defer googleapi.CloseBody(res)
21642 if err := googleapi.CheckResponse(res); err != nil {
21643 return nil, gensupport.WrapError(err)
21644 }
21645 ret := &GoogleCloudApigeeV1DeveloperApp{
21646 ServerResponse: googleapi.ServerResponse{
21647 Header: res.Header,
21648 HTTPStatusCode: res.StatusCode,
21649 },
21650 }
21651 target := &ret
21652 if err := gensupport.DecodeResponse(target, res); err != nil {
21653 return nil, err
21654 }
21655 return ret, nil
21656 }
21657
21658 type OrganizationsDevelopersAppsDeleteCall struct {
21659 s *Service
21660 name string
21661 urlParams_ gensupport.URLParams
21662 ctx_ context.Context
21663 header_ http.Header
21664 }
21665
21666
21667
21668
21669
21670
21671
21672
21673 func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
21674 c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21675 c.name = name
21676 return c
21677 }
21678
21679
21680
21681
21682 func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
21683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21684 return c
21685 }
21686
21687
21688 func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
21689 c.ctx_ = ctx
21690 return c
21691 }
21692
21693
21694
21695 func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
21696 if c.header_ == nil {
21697 c.header_ = make(http.Header)
21698 }
21699 return c.header_
21700 }
21701
21702 func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
21703 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21704 var body io.Reader = nil
21705 c.urlParams_.Set("alt", alt)
21706 c.urlParams_.Set("prettyPrint", "false")
21707 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21708 urls += "?" + c.urlParams_.Encode()
21709 req, err := http.NewRequest("DELETE", urls, body)
21710 if err != nil {
21711 return nil, err
21712 }
21713 req.Header = reqHeaders
21714 googleapi.Expand(req.URL, map[string]string{
21715 "name": c.name,
21716 })
21717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21718 }
21719
21720
21721
21722
21723
21724
21725
21726 func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
21727 gensupport.SetOptions(c.urlParams_, opts...)
21728 res, err := c.doRequest("json")
21729 if res != nil && res.StatusCode == http.StatusNotModified {
21730 if res.Body != nil {
21731 res.Body.Close()
21732 }
21733 return nil, gensupport.WrapError(&googleapi.Error{
21734 Code: res.StatusCode,
21735 Header: res.Header,
21736 })
21737 }
21738 if err != nil {
21739 return nil, err
21740 }
21741 defer googleapi.CloseBody(res)
21742 if err := googleapi.CheckResponse(res); err != nil {
21743 return nil, gensupport.WrapError(err)
21744 }
21745 ret := &GoogleCloudApigeeV1DeveloperApp{
21746 ServerResponse: googleapi.ServerResponse{
21747 Header: res.Header,
21748 HTTPStatusCode: res.StatusCode,
21749 },
21750 }
21751 target := &ret
21752 if err := gensupport.DecodeResponse(target, res); err != nil {
21753 return nil, err
21754 }
21755 return ret, nil
21756 }
21757
21758 type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
21759 s *Service
21760 name string
21761 googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
21762 urlParams_ gensupport.URLParams
21763 ctx_ context.Context
21764 header_ http.Header
21765 }
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794 func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
21795 c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21796 c.name = name
21797 c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
21798 return c
21799 }
21800
21801
21802
21803 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
21804 c.urlParams_.Set("action", action)
21805 return c
21806 }
21807
21808
21809
21810
21811 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
21812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21813 return c
21814 }
21815
21816
21817 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
21818 c.ctx_ = ctx
21819 return c
21820 }
21821
21822
21823
21824 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
21825 if c.header_ == nil {
21826 c.header_ = make(http.Header)
21827 }
21828 return c.header_
21829 }
21830
21831 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
21832 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21833 var body io.Reader = nil
21834 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
21835 if err != nil {
21836 return nil, err
21837 }
21838 c.urlParams_.Set("alt", alt)
21839 c.urlParams_.Set("prettyPrint", "false")
21840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21841 urls += "?" + c.urlParams_.Encode()
21842 req, err := http.NewRequest("POST", urls, body)
21843 if err != nil {
21844 return nil, err
21845 }
21846 req.Header = reqHeaders
21847 googleapi.Expand(req.URL, map[string]string{
21848 "name": c.name,
21849 })
21850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21851 }
21852
21853
21854
21855
21856
21857
21858
21859 func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
21860 gensupport.SetOptions(c.urlParams_, opts...)
21861 res, err := c.doRequest("json")
21862 if res != nil && res.StatusCode == http.StatusNotModified {
21863 if res.Body != nil {
21864 res.Body.Close()
21865 }
21866 return nil, gensupport.WrapError(&googleapi.Error{
21867 Code: res.StatusCode,
21868 Header: res.Header,
21869 })
21870 }
21871 if err != nil {
21872 return nil, err
21873 }
21874 defer googleapi.CloseBody(res)
21875 if err := googleapi.CheckResponse(res); err != nil {
21876 return nil, gensupport.WrapError(err)
21877 }
21878 ret := &GoogleCloudApigeeV1DeveloperApp{
21879 ServerResponse: googleapi.ServerResponse{
21880 Header: res.Header,
21881 HTTPStatusCode: res.StatusCode,
21882 },
21883 }
21884 target := &ret
21885 if err := gensupport.DecodeResponse(target, res); err != nil {
21886 return nil, err
21887 }
21888 return ret, nil
21889 }
21890
21891 type OrganizationsDevelopersAppsGetCall struct {
21892 s *Service
21893 name string
21894 urlParams_ gensupport.URLParams
21895 ifNoneMatch_ string
21896 ctx_ context.Context
21897 header_ http.Header
21898 }
21899
21900
21901
21902
21903
21904 func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
21905 c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21906 c.name = name
21907 return c
21908 }
21909
21910
21911
21912
21913
21914 func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
21915 c.urlParams_.Set("entity", entity)
21916 return c
21917 }
21918
21919
21920
21921
21922
21923 func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
21924 c.urlParams_.Set("query", query)
21925 return c
21926 }
21927
21928
21929
21930
21931 func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
21932 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21933 return c
21934 }
21935
21936
21937
21938
21939 func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
21940 c.ifNoneMatch_ = entityTag
21941 return c
21942 }
21943
21944
21945 func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
21946 c.ctx_ = ctx
21947 return c
21948 }
21949
21950
21951
21952 func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
21953 if c.header_ == nil {
21954 c.header_ = make(http.Header)
21955 }
21956 return c.header_
21957 }
21958
21959 func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
21960 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21961 if c.ifNoneMatch_ != "" {
21962 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21963 }
21964 var body io.Reader = nil
21965 c.urlParams_.Set("alt", alt)
21966 c.urlParams_.Set("prettyPrint", "false")
21967 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21968 urls += "?" + c.urlParams_.Encode()
21969 req, err := http.NewRequest("GET", urls, body)
21970 if err != nil {
21971 return nil, err
21972 }
21973 req.Header = reqHeaders
21974 googleapi.Expand(req.URL, map[string]string{
21975 "name": c.name,
21976 })
21977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21978 }
21979
21980
21981
21982
21983
21984
21985
21986 func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
21987 gensupport.SetOptions(c.urlParams_, opts...)
21988 res, err := c.doRequest("json")
21989 if res != nil && res.StatusCode == http.StatusNotModified {
21990 if res.Body != nil {
21991 res.Body.Close()
21992 }
21993 return nil, gensupport.WrapError(&googleapi.Error{
21994 Code: res.StatusCode,
21995 Header: res.Header,
21996 })
21997 }
21998 if err != nil {
21999 return nil, err
22000 }
22001 defer googleapi.CloseBody(res)
22002 if err := googleapi.CheckResponse(res); err != nil {
22003 return nil, gensupport.WrapError(err)
22004 }
22005 ret := &GoogleCloudApigeeV1DeveloperApp{
22006 ServerResponse: googleapi.ServerResponse{
22007 Header: res.Header,
22008 HTTPStatusCode: res.StatusCode,
22009 },
22010 }
22011 target := &ret
22012 if err := gensupport.DecodeResponse(target, res); err != nil {
22013 return nil, err
22014 }
22015 return ret, nil
22016 }
22017
22018 type OrganizationsDevelopersAppsListCall struct {
22019 s *Service
22020 parent string
22021 urlParams_ gensupport.URLParams
22022 ifNoneMatch_ string
22023 ctx_ context.Context
22024 header_ http.Header
22025 }
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035 func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
22036 c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22037 c.parent = parent
22038 return c
22039 }
22040
22041
22042
22043
22044 func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
22045 c.urlParams_.Set("count", fmt.Sprint(count))
22046 return c
22047 }
22048
22049
22050
22051
22052 func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
22053 c.urlParams_.Set("expand", fmt.Sprint(expand))
22054 return c
22055 }
22056
22057
22058
22059
22060 func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
22061 c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
22062 return c
22063 }
22064
22065
22066
22067
22068
22069
22070
22071 func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
22072 c.urlParams_.Set("startKey", startKey)
22073 return c
22074 }
22075
22076
22077
22078
22079 func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
22080 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22081 return c
22082 }
22083
22084
22085
22086
22087 func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
22088 c.ifNoneMatch_ = entityTag
22089 return c
22090 }
22091
22092
22093 func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
22094 c.ctx_ = ctx
22095 return c
22096 }
22097
22098
22099
22100 func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
22101 if c.header_ == nil {
22102 c.header_ = make(http.Header)
22103 }
22104 return c.header_
22105 }
22106
22107 func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
22108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22109 if c.ifNoneMatch_ != "" {
22110 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22111 }
22112 var body io.Reader = nil
22113 c.urlParams_.Set("alt", alt)
22114 c.urlParams_.Set("prettyPrint", "false")
22115 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
22116 urls += "?" + c.urlParams_.Encode()
22117 req, err := http.NewRequest("GET", urls, body)
22118 if err != nil {
22119 return nil, err
22120 }
22121 req.Header = reqHeaders
22122 googleapi.Expand(req.URL, map[string]string{
22123 "parent": c.parent,
22124 })
22125 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22126 }
22127
22128
22129
22130
22131
22132
22133
22134 func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
22135 gensupport.SetOptions(c.urlParams_, opts...)
22136 res, err := c.doRequest("json")
22137 if res != nil && res.StatusCode == http.StatusNotModified {
22138 if res.Body != nil {
22139 res.Body.Close()
22140 }
22141 return nil, gensupport.WrapError(&googleapi.Error{
22142 Code: res.StatusCode,
22143 Header: res.Header,
22144 })
22145 }
22146 if err != nil {
22147 return nil, err
22148 }
22149 defer googleapi.CloseBody(res)
22150 if err := googleapi.CheckResponse(res); err != nil {
22151 return nil, gensupport.WrapError(err)
22152 }
22153 ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
22154 ServerResponse: googleapi.ServerResponse{
22155 Header: res.Header,
22156 HTTPStatusCode: res.StatusCode,
22157 },
22158 }
22159 target := &ret
22160 if err := gensupport.DecodeResponse(target, res); err != nil {
22161 return nil, err
22162 }
22163 return ret, nil
22164 }
22165
22166 type OrganizationsDevelopersAppsUpdateCall struct {
22167 s *Service
22168 name string
22169 googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
22170 urlParams_ gensupport.URLParams
22171 ctx_ context.Context
22172 header_ http.Header
22173 }
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188 func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
22189 c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22190 c.name = name
22191 c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
22192 return c
22193 }
22194
22195
22196
22197
22198 func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
22199 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22200 return c
22201 }
22202
22203
22204 func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
22205 c.ctx_ = ctx
22206 return c
22207 }
22208
22209
22210
22211 func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
22212 if c.header_ == nil {
22213 c.header_ = make(http.Header)
22214 }
22215 return c.header_
22216 }
22217
22218 func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
22219 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22220 var body io.Reader = nil
22221 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
22222 if err != nil {
22223 return nil, err
22224 }
22225 c.urlParams_.Set("alt", alt)
22226 c.urlParams_.Set("prettyPrint", "false")
22227 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22228 urls += "?" + c.urlParams_.Encode()
22229 req, err := http.NewRequest("PUT", urls, body)
22230 if err != nil {
22231 return nil, err
22232 }
22233 req.Header = reqHeaders
22234 googleapi.Expand(req.URL, map[string]string{
22235 "name": c.name,
22236 })
22237 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22238 }
22239
22240
22241
22242
22243
22244
22245
22246 func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
22247 gensupport.SetOptions(c.urlParams_, opts...)
22248 res, err := c.doRequest("json")
22249 if res != nil && res.StatusCode == http.StatusNotModified {
22250 if res.Body != nil {
22251 res.Body.Close()
22252 }
22253 return nil, gensupport.WrapError(&googleapi.Error{
22254 Code: res.StatusCode,
22255 Header: res.Header,
22256 })
22257 }
22258 if err != nil {
22259 return nil, err
22260 }
22261 defer googleapi.CloseBody(res)
22262 if err := googleapi.CheckResponse(res); err != nil {
22263 return nil, gensupport.WrapError(err)
22264 }
22265 ret := &GoogleCloudApigeeV1DeveloperApp{
22266 ServerResponse: googleapi.ServerResponse{
22267 Header: res.Header,
22268 HTTPStatusCode: res.StatusCode,
22269 },
22270 }
22271 target := &ret
22272 if err := gensupport.DecodeResponse(target, res); err != nil {
22273 return nil, err
22274 }
22275 return ret, nil
22276 }
22277
22278 type OrganizationsDevelopersAppsAttributesDeleteCall struct {
22279 s *Service
22280 name string
22281 urlParams_ gensupport.URLParams
22282 ctx_ context.Context
22283 header_ http.Header
22284 }
22285
22286
22287
22288
22289
22290
22291
22292 func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
22293 c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22294 c.name = name
22295 return c
22296 }
22297
22298
22299
22300
22301 func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
22302 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22303 return c
22304 }
22305
22306
22307 func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
22308 c.ctx_ = ctx
22309 return c
22310 }
22311
22312
22313
22314 func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
22315 if c.header_ == nil {
22316 c.header_ = make(http.Header)
22317 }
22318 return c.header_
22319 }
22320
22321 func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
22322 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22323 var body io.Reader = nil
22324 c.urlParams_.Set("alt", alt)
22325 c.urlParams_.Set("prettyPrint", "false")
22326 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22327 urls += "?" + c.urlParams_.Encode()
22328 req, err := http.NewRequest("DELETE", urls, body)
22329 if err != nil {
22330 return nil, err
22331 }
22332 req.Header = reqHeaders
22333 googleapi.Expand(req.URL, map[string]string{
22334 "name": c.name,
22335 })
22336 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22337 }
22338
22339
22340
22341
22342
22343
22344
22345 func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22346 gensupport.SetOptions(c.urlParams_, opts...)
22347 res, err := c.doRequest("json")
22348 if res != nil && res.StatusCode == http.StatusNotModified {
22349 if res.Body != nil {
22350 res.Body.Close()
22351 }
22352 return nil, gensupport.WrapError(&googleapi.Error{
22353 Code: res.StatusCode,
22354 Header: res.Header,
22355 })
22356 }
22357 if err != nil {
22358 return nil, err
22359 }
22360 defer googleapi.CloseBody(res)
22361 if err := googleapi.CheckResponse(res); err != nil {
22362 return nil, gensupport.WrapError(err)
22363 }
22364 ret := &GoogleCloudApigeeV1Attribute{
22365 ServerResponse: googleapi.ServerResponse{
22366 Header: res.Header,
22367 HTTPStatusCode: res.StatusCode,
22368 },
22369 }
22370 target := &ret
22371 if err := gensupport.DecodeResponse(target, res); err != nil {
22372 return nil, err
22373 }
22374 return ret, nil
22375 }
22376
22377 type OrganizationsDevelopersAppsAttributesGetCall struct {
22378 s *Service
22379 name string
22380 urlParams_ gensupport.URLParams
22381 ifNoneMatch_ string
22382 ctx_ context.Context
22383 header_ http.Header
22384 }
22385
22386
22387
22388
22389
22390
22391
22392 func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
22393 c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22394 c.name = name
22395 return c
22396 }
22397
22398
22399
22400
22401 func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
22402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22403 return c
22404 }
22405
22406
22407
22408
22409 func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
22410 c.ifNoneMatch_ = entityTag
22411 return c
22412 }
22413
22414
22415 func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
22416 c.ctx_ = ctx
22417 return c
22418 }
22419
22420
22421
22422 func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
22423 if c.header_ == nil {
22424 c.header_ = make(http.Header)
22425 }
22426 return c.header_
22427 }
22428
22429 func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
22430 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22431 if c.ifNoneMatch_ != "" {
22432 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22433 }
22434 var body io.Reader = nil
22435 c.urlParams_.Set("alt", alt)
22436 c.urlParams_.Set("prettyPrint", "false")
22437 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22438 urls += "?" + c.urlParams_.Encode()
22439 req, err := http.NewRequest("GET", urls, body)
22440 if err != nil {
22441 return nil, err
22442 }
22443 req.Header = reqHeaders
22444 googleapi.Expand(req.URL, map[string]string{
22445 "name": c.name,
22446 })
22447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22448 }
22449
22450
22451
22452
22453
22454
22455
22456 func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22457 gensupport.SetOptions(c.urlParams_, opts...)
22458 res, err := c.doRequest("json")
22459 if res != nil && res.StatusCode == http.StatusNotModified {
22460 if res.Body != nil {
22461 res.Body.Close()
22462 }
22463 return nil, gensupport.WrapError(&googleapi.Error{
22464 Code: res.StatusCode,
22465 Header: res.Header,
22466 })
22467 }
22468 if err != nil {
22469 return nil, err
22470 }
22471 defer googleapi.CloseBody(res)
22472 if err := googleapi.CheckResponse(res); err != nil {
22473 return nil, gensupport.WrapError(err)
22474 }
22475 ret := &GoogleCloudApigeeV1Attribute{
22476 ServerResponse: googleapi.ServerResponse{
22477 Header: res.Header,
22478 HTTPStatusCode: res.StatusCode,
22479 },
22480 }
22481 target := &ret
22482 if err := gensupport.DecodeResponse(target, res); err != nil {
22483 return nil, err
22484 }
22485 return ret, nil
22486 }
22487
22488 type OrganizationsDevelopersAppsAttributesListCall struct {
22489 s *Service
22490 parent string
22491 urlParams_ gensupport.URLParams
22492 ifNoneMatch_ string
22493 ctx_ context.Context
22494 header_ http.Header
22495 }
22496
22497
22498
22499
22500
22501 func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
22502 c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22503 c.parent = parent
22504 return c
22505 }
22506
22507
22508
22509
22510 func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
22511 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22512 return c
22513 }
22514
22515
22516
22517
22518 func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
22519 c.ifNoneMatch_ = entityTag
22520 return c
22521 }
22522
22523
22524 func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
22525 c.ctx_ = ctx
22526 return c
22527 }
22528
22529
22530
22531 func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
22532 if c.header_ == nil {
22533 c.header_ = make(http.Header)
22534 }
22535 return c.header_
22536 }
22537
22538 func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
22539 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22540 if c.ifNoneMatch_ != "" {
22541 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22542 }
22543 var body io.Reader = nil
22544 c.urlParams_.Set("alt", alt)
22545 c.urlParams_.Set("prettyPrint", "false")
22546 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
22547 urls += "?" + c.urlParams_.Encode()
22548 req, err := http.NewRequest("GET", urls, body)
22549 if err != nil {
22550 return nil, err
22551 }
22552 req.Header = reqHeaders
22553 googleapi.Expand(req.URL, map[string]string{
22554 "parent": c.parent,
22555 })
22556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22557 }
22558
22559
22560
22561
22562
22563
22564
22565 func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
22566 gensupport.SetOptions(c.urlParams_, opts...)
22567 res, err := c.doRequest("json")
22568 if res != nil && res.StatusCode == http.StatusNotModified {
22569 if res.Body != nil {
22570 res.Body.Close()
22571 }
22572 return nil, gensupport.WrapError(&googleapi.Error{
22573 Code: res.StatusCode,
22574 Header: res.Header,
22575 })
22576 }
22577 if err != nil {
22578 return nil, err
22579 }
22580 defer googleapi.CloseBody(res)
22581 if err := googleapi.CheckResponse(res); err != nil {
22582 return nil, gensupport.WrapError(err)
22583 }
22584 ret := &GoogleCloudApigeeV1Attributes{
22585 ServerResponse: googleapi.ServerResponse{
22586 Header: res.Header,
22587 HTTPStatusCode: res.StatusCode,
22588 },
22589 }
22590 target := &ret
22591 if err := gensupport.DecodeResponse(target, res); err != nil {
22592 return nil, err
22593 }
22594 return ret, nil
22595 }
22596
22597 type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
22598 s *Service
22599 name string
22600 googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
22601 urlParams_ gensupport.URLParams
22602 ctx_ context.Context
22603 header_ http.Header
22604 }
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618 func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
22619 c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22620 c.name = name
22621 c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
22622 return c
22623 }
22624
22625
22626
22627
22628 func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
22629 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22630 return c
22631 }
22632
22633
22634 func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
22635 c.ctx_ = ctx
22636 return c
22637 }
22638
22639
22640
22641 func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
22642 if c.header_ == nil {
22643 c.header_ = make(http.Header)
22644 }
22645 return c.header_
22646 }
22647
22648 func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
22649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22650 var body io.Reader = nil
22651 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
22652 if err != nil {
22653 return nil, err
22654 }
22655 c.urlParams_.Set("alt", alt)
22656 c.urlParams_.Set("prettyPrint", "false")
22657 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22658 urls += "?" + c.urlParams_.Encode()
22659 req, err := http.NewRequest("POST", urls, body)
22660 if err != nil {
22661 return nil, err
22662 }
22663 req.Header = reqHeaders
22664 googleapi.Expand(req.URL, map[string]string{
22665 "name": c.name,
22666 })
22667 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22668 }
22669
22670
22671
22672
22673
22674
22675
22676 func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
22677 gensupport.SetOptions(c.urlParams_, opts...)
22678 res, err := c.doRequest("json")
22679 if res != nil && res.StatusCode == http.StatusNotModified {
22680 if res.Body != nil {
22681 res.Body.Close()
22682 }
22683 return nil, gensupport.WrapError(&googleapi.Error{
22684 Code: res.StatusCode,
22685 Header: res.Header,
22686 })
22687 }
22688 if err != nil {
22689 return nil, err
22690 }
22691 defer googleapi.CloseBody(res)
22692 if err := googleapi.CheckResponse(res); err != nil {
22693 return nil, gensupport.WrapError(err)
22694 }
22695 ret := &GoogleCloudApigeeV1Attribute{
22696 ServerResponse: googleapi.ServerResponse{
22697 Header: res.Header,
22698 HTTPStatusCode: res.StatusCode,
22699 },
22700 }
22701 target := &ret
22702 if err := gensupport.DecodeResponse(target, res); err != nil {
22703 return nil, err
22704 }
22705 return ret, nil
22706 }
22707
22708 type OrganizationsDevelopersAppsKeysCreateCall struct {
22709 s *Service
22710 parent string
22711 googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
22712 urlParams_ gensupport.URLParams
22713 ctx_ context.Context
22714 header_ http.Header
22715 }
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734 func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
22735 c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22736 c.parent = parent
22737 c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
22738 return c
22739 }
22740
22741
22742
22743
22744 func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
22745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22746 return c
22747 }
22748
22749
22750 func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
22751 c.ctx_ = ctx
22752 return c
22753 }
22754
22755
22756
22757 func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
22758 if c.header_ == nil {
22759 c.header_ = make(http.Header)
22760 }
22761 return c.header_
22762 }
22763
22764 func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
22765 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22766 var body io.Reader = nil
22767 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
22768 if err != nil {
22769 return nil, err
22770 }
22771 c.urlParams_.Set("alt", alt)
22772 c.urlParams_.Set("prettyPrint", "false")
22773 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
22774 urls += "?" + c.urlParams_.Encode()
22775 req, err := http.NewRequest("POST", urls, body)
22776 if err != nil {
22777 return nil, err
22778 }
22779 req.Header = reqHeaders
22780 googleapi.Expand(req.URL, map[string]string{
22781 "parent": c.parent,
22782 })
22783 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22784 }
22785
22786
22787
22788
22789
22790
22791
22792 func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
22793 gensupport.SetOptions(c.urlParams_, opts...)
22794 res, err := c.doRequest("json")
22795 if res != nil && res.StatusCode == http.StatusNotModified {
22796 if res.Body != nil {
22797 res.Body.Close()
22798 }
22799 return nil, gensupport.WrapError(&googleapi.Error{
22800 Code: res.StatusCode,
22801 Header: res.Header,
22802 })
22803 }
22804 if err != nil {
22805 return nil, err
22806 }
22807 defer googleapi.CloseBody(res)
22808 if err := googleapi.CheckResponse(res); err != nil {
22809 return nil, gensupport.WrapError(err)
22810 }
22811 ret := &GoogleCloudApigeeV1DeveloperAppKey{
22812 ServerResponse: googleapi.ServerResponse{
22813 Header: res.Header,
22814 HTTPStatusCode: res.StatusCode,
22815 },
22816 }
22817 target := &ret
22818 if err := gensupport.DecodeResponse(target, res); err != nil {
22819 return nil, err
22820 }
22821 return ret, nil
22822 }
22823
22824 type OrganizationsDevelopersAppsKeysDeleteCall struct {
22825 s *Service
22826 name string
22827 urlParams_ gensupport.URLParams
22828 ctx_ context.Context
22829 header_ http.Header
22830 }
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843 func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
22844 c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22845 c.name = name
22846 return c
22847 }
22848
22849
22850
22851
22852 func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
22853 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22854 return c
22855 }
22856
22857
22858 func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
22859 c.ctx_ = ctx
22860 return c
22861 }
22862
22863
22864
22865 func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
22866 if c.header_ == nil {
22867 c.header_ = make(http.Header)
22868 }
22869 return c.header_
22870 }
22871
22872 func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
22873 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22874 var body io.Reader = nil
22875 c.urlParams_.Set("alt", alt)
22876 c.urlParams_.Set("prettyPrint", "false")
22877 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22878 urls += "?" + c.urlParams_.Encode()
22879 req, err := http.NewRequest("DELETE", urls, body)
22880 if err != nil {
22881 return nil, err
22882 }
22883 req.Header = reqHeaders
22884 googleapi.Expand(req.URL, map[string]string{
22885 "name": c.name,
22886 })
22887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22888 }
22889
22890
22891
22892
22893
22894
22895
22896 func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
22897 gensupport.SetOptions(c.urlParams_, opts...)
22898 res, err := c.doRequest("json")
22899 if res != nil && res.StatusCode == http.StatusNotModified {
22900 if res.Body != nil {
22901 res.Body.Close()
22902 }
22903 return nil, gensupport.WrapError(&googleapi.Error{
22904 Code: res.StatusCode,
22905 Header: res.Header,
22906 })
22907 }
22908 if err != nil {
22909 return nil, err
22910 }
22911 defer googleapi.CloseBody(res)
22912 if err := googleapi.CheckResponse(res); err != nil {
22913 return nil, gensupport.WrapError(err)
22914 }
22915 ret := &GoogleCloudApigeeV1DeveloperAppKey{
22916 ServerResponse: googleapi.ServerResponse{
22917 Header: res.Header,
22918 HTTPStatusCode: res.StatusCode,
22919 },
22920 }
22921 target := &ret
22922 if err := gensupport.DecodeResponse(target, res); err != nil {
22923 return nil, err
22924 }
22925 return ret, nil
22926 }
22927
22928 type OrganizationsDevelopersAppsKeysGetCall struct {
22929 s *Service
22930 name string
22931 urlParams_ gensupport.URLParams
22932 ifNoneMatch_ string
22933 ctx_ context.Context
22934 header_ http.Header
22935 }
22936
22937
22938
22939
22940
22941
22942
22943 func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
22944 c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22945 c.name = name
22946 return c
22947 }
22948
22949
22950
22951
22952 func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
22953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22954 return c
22955 }
22956
22957
22958
22959
22960 func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
22961 c.ifNoneMatch_ = entityTag
22962 return c
22963 }
22964
22965
22966 func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
22967 c.ctx_ = ctx
22968 return c
22969 }
22970
22971
22972
22973 func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
22974 if c.header_ == nil {
22975 c.header_ = make(http.Header)
22976 }
22977 return c.header_
22978 }
22979
22980 func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
22981 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22982 if c.ifNoneMatch_ != "" {
22983 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22984 }
22985 var body io.Reader = nil
22986 c.urlParams_.Set("alt", alt)
22987 c.urlParams_.Set("prettyPrint", "false")
22988 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22989 urls += "?" + c.urlParams_.Encode()
22990 req, err := http.NewRequest("GET", urls, body)
22991 if err != nil {
22992 return nil, err
22993 }
22994 req.Header = reqHeaders
22995 googleapi.Expand(req.URL, map[string]string{
22996 "name": c.name,
22997 })
22998 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22999 }
23000
23001
23002
23003
23004
23005
23006
23007 func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
23008 gensupport.SetOptions(c.urlParams_, opts...)
23009 res, err := c.doRequest("json")
23010 if res != nil && res.StatusCode == http.StatusNotModified {
23011 if res.Body != nil {
23012 res.Body.Close()
23013 }
23014 return nil, gensupport.WrapError(&googleapi.Error{
23015 Code: res.StatusCode,
23016 Header: res.Header,
23017 })
23018 }
23019 if err != nil {
23020 return nil, err
23021 }
23022 defer googleapi.CloseBody(res)
23023 if err := googleapi.CheckResponse(res); err != nil {
23024 return nil, gensupport.WrapError(err)
23025 }
23026 ret := &GoogleCloudApigeeV1DeveloperAppKey{
23027 ServerResponse: googleapi.ServerResponse{
23028 Header: res.Header,
23029 HTTPStatusCode: res.StatusCode,
23030 },
23031 }
23032 target := &ret
23033 if err := gensupport.DecodeResponse(target, res); err != nil {
23034 return nil, err
23035 }
23036 return ret, nil
23037 }
23038
23039 type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
23040 s *Service
23041 name string
23042 googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
23043 urlParams_ gensupport.URLParams
23044 ctx_ context.Context
23045 header_ http.Header
23046 }
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058 func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
23059 c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23060 c.name = name
23061 c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
23062 return c
23063 }
23064
23065
23066
23067
23068 func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
23069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23070 return c
23071 }
23072
23073
23074 func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
23075 c.ctx_ = ctx
23076 return c
23077 }
23078
23079
23080
23081 func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
23082 if c.header_ == nil {
23083 c.header_ = make(http.Header)
23084 }
23085 return c.header_
23086 }
23087
23088 func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
23089 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23090 var body io.Reader = nil
23091 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
23092 if err != nil {
23093 return nil, err
23094 }
23095 c.urlParams_.Set("alt", alt)
23096 c.urlParams_.Set("prettyPrint", "false")
23097 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23098 urls += "?" + c.urlParams_.Encode()
23099 req, err := http.NewRequest("PUT", urls, body)
23100 if err != nil {
23101 return nil, err
23102 }
23103 req.Header = reqHeaders
23104 googleapi.Expand(req.URL, map[string]string{
23105 "name": c.name,
23106 })
23107 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23108 }
23109
23110
23111
23112
23113
23114
23115
23116 func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
23117 gensupport.SetOptions(c.urlParams_, opts...)
23118 res, err := c.doRequest("json")
23119 if res != nil && res.StatusCode == http.StatusNotModified {
23120 if res.Body != nil {
23121 res.Body.Close()
23122 }
23123 return nil, gensupport.WrapError(&googleapi.Error{
23124 Code: res.StatusCode,
23125 Header: res.Header,
23126 })
23127 }
23128 if err != nil {
23129 return nil, err
23130 }
23131 defer googleapi.CloseBody(res)
23132 if err := googleapi.CheckResponse(res); err != nil {
23133 return nil, gensupport.WrapError(err)
23134 }
23135 ret := &GoogleCloudApigeeV1DeveloperAppKey{
23136 ServerResponse: googleapi.ServerResponse{
23137 Header: res.Header,
23138 HTTPStatusCode: res.StatusCode,
23139 },
23140 }
23141 target := &ret
23142 if err := gensupport.DecodeResponse(target, res); err != nil {
23143 return nil, err
23144 }
23145 return ret, nil
23146 }
23147
23148 type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
23149 s *Service
23150 name string
23151 googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
23152 urlParams_ gensupport.URLParams
23153 ctx_ context.Context
23154 header_ http.Header
23155 }
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168 func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
23169 c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23170 c.name = name
23171 c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
23172 return c
23173 }
23174
23175
23176
23177
23178 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
23179 c.urlParams_.Set("action", action)
23180 return c
23181 }
23182
23183
23184
23185
23186 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
23187 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23188 return c
23189 }
23190
23191
23192 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
23193 c.ctx_ = ctx
23194 return c
23195 }
23196
23197
23198
23199 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
23200 if c.header_ == nil {
23201 c.header_ = make(http.Header)
23202 }
23203 return c.header_
23204 }
23205
23206 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
23207 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23208 var body io.Reader = nil
23209 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
23210 if err != nil {
23211 return nil, err
23212 }
23213 c.urlParams_.Set("alt", alt)
23214 c.urlParams_.Set("prettyPrint", "false")
23215 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23216 urls += "?" + c.urlParams_.Encode()
23217 req, err := http.NewRequest("POST", urls, body)
23218 if err != nil {
23219 return nil, err
23220 }
23221 req.Header = reqHeaders
23222 googleapi.Expand(req.URL, map[string]string{
23223 "name": c.name,
23224 })
23225 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23226 }
23227
23228
23229
23230
23231
23232
23233
23234 func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
23235 gensupport.SetOptions(c.urlParams_, opts...)
23236 res, err := c.doRequest("json")
23237 if res != nil && res.StatusCode == http.StatusNotModified {
23238 if res.Body != nil {
23239 res.Body.Close()
23240 }
23241 return nil, gensupport.WrapError(&googleapi.Error{
23242 Code: res.StatusCode,
23243 Header: res.Header,
23244 })
23245 }
23246 if err != nil {
23247 return nil, err
23248 }
23249 defer googleapi.CloseBody(res)
23250 if err := googleapi.CheckResponse(res); err != nil {
23251 return nil, gensupport.WrapError(err)
23252 }
23253 ret := &GoogleCloudApigeeV1DeveloperAppKey{
23254 ServerResponse: googleapi.ServerResponse{
23255 Header: res.Header,
23256 HTTPStatusCode: res.StatusCode,
23257 },
23258 }
23259 target := &ret
23260 if err := gensupport.DecodeResponse(target, res); err != nil {
23261 return nil, err
23262 }
23263 return ret, nil
23264 }
23265
23266 type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
23267 s *Service
23268 name string
23269 urlParams_ gensupport.URLParams
23270 ctx_ context.Context
23271 header_ http.Header
23272 }
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283 func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
23284 c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23285 c.name = name
23286 return c
23287 }
23288
23289
23290
23291
23292 func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
23293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23294 return c
23295 }
23296
23297
23298 func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
23299 c.ctx_ = ctx
23300 return c
23301 }
23302
23303
23304
23305 func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
23306 if c.header_ == nil {
23307 c.header_ = make(http.Header)
23308 }
23309 return c.header_
23310 }
23311
23312 func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
23313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23314 var body io.Reader = nil
23315 c.urlParams_.Set("alt", alt)
23316 c.urlParams_.Set("prettyPrint", "false")
23317 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23318 urls += "?" + c.urlParams_.Encode()
23319 req, err := http.NewRequest("DELETE", urls, body)
23320 if err != nil {
23321 return nil, err
23322 }
23323 req.Header = reqHeaders
23324 googleapi.Expand(req.URL, map[string]string{
23325 "name": c.name,
23326 })
23327 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23328 }
23329
23330
23331
23332
23333
23334
23335
23336 func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
23337 gensupport.SetOptions(c.urlParams_, opts...)
23338 res, err := c.doRequest("json")
23339 if res != nil && res.StatusCode == http.StatusNotModified {
23340 if res.Body != nil {
23341 res.Body.Close()
23342 }
23343 return nil, gensupport.WrapError(&googleapi.Error{
23344 Code: res.StatusCode,
23345 Header: res.Header,
23346 })
23347 }
23348 if err != nil {
23349 return nil, err
23350 }
23351 defer googleapi.CloseBody(res)
23352 if err := googleapi.CheckResponse(res); err != nil {
23353 return nil, gensupport.WrapError(err)
23354 }
23355 ret := &GoogleCloudApigeeV1DeveloperAppKey{
23356 ServerResponse: googleapi.ServerResponse{
23357 Header: res.Header,
23358 HTTPStatusCode: res.StatusCode,
23359 },
23360 }
23361 target := &ret
23362 if err := gensupport.DecodeResponse(target, res); err != nil {
23363 return nil, err
23364 }
23365 return ret, nil
23366 }
23367
23368 type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
23369 s *Service
23370 name string
23371 urlParams_ gensupport.URLParams
23372 ctx_ context.Context
23373 header_ http.Header
23374 }
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387 func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
23388 c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23389 c.name = name
23390 return c
23391 }
23392
23393
23394
23395 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
23396 c.urlParams_.Set("action", action)
23397 return c
23398 }
23399
23400
23401
23402
23403 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
23404 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23405 return c
23406 }
23407
23408
23409 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
23410 c.ctx_ = ctx
23411 return c
23412 }
23413
23414
23415
23416 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
23417 if c.header_ == nil {
23418 c.header_ = make(http.Header)
23419 }
23420 return c.header_
23421 }
23422
23423 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
23424 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23425 var body io.Reader = nil
23426 c.urlParams_.Set("alt", alt)
23427 c.urlParams_.Set("prettyPrint", "false")
23428 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23429 urls += "?" + c.urlParams_.Encode()
23430 req, err := http.NewRequest("POST", urls, body)
23431 if err != nil {
23432 return nil, err
23433 }
23434 req.Header = reqHeaders
23435 googleapi.Expand(req.URL, map[string]string{
23436 "name": c.name,
23437 })
23438 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23439 }
23440
23441
23442
23443
23444
23445
23446
23447 func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23448 gensupport.SetOptions(c.urlParams_, opts...)
23449 res, err := c.doRequest("json")
23450 if res != nil && res.StatusCode == http.StatusNotModified {
23451 if res.Body != nil {
23452 res.Body.Close()
23453 }
23454 return nil, gensupport.WrapError(&googleapi.Error{
23455 Code: res.StatusCode,
23456 Header: res.Header,
23457 })
23458 }
23459 if err != nil {
23460 return nil, err
23461 }
23462 defer googleapi.CloseBody(res)
23463 if err := googleapi.CheckResponse(res); err != nil {
23464 return nil, gensupport.WrapError(err)
23465 }
23466 ret := &GoogleProtobufEmpty{
23467 ServerResponse: googleapi.ServerResponse{
23468 Header: res.Header,
23469 HTTPStatusCode: res.StatusCode,
23470 },
23471 }
23472 target := &ret
23473 if err := gensupport.DecodeResponse(target, res); err != nil {
23474 return nil, err
23475 }
23476 return ret, nil
23477 }
23478
23479 type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
23480 s *Service
23481 parent string
23482 googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
23483 urlParams_ gensupport.URLParams
23484 ctx_ context.Context
23485 header_ http.Header
23486 }
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505 func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
23506 c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23507 c.parent = parent
23508 c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
23509 return c
23510 }
23511
23512
23513
23514
23515 func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
23516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23517 return c
23518 }
23519
23520
23521 func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
23522 c.ctx_ = ctx
23523 return c
23524 }
23525
23526
23527
23528 func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
23529 if c.header_ == nil {
23530 c.header_ = make(http.Header)
23531 }
23532 return c.header_
23533 }
23534
23535 func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
23536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23537 var body io.Reader = nil
23538 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
23539 if err != nil {
23540 return nil, err
23541 }
23542 c.urlParams_.Set("alt", alt)
23543 c.urlParams_.Set("prettyPrint", "false")
23544 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
23545 urls += "?" + c.urlParams_.Encode()
23546 req, err := http.NewRequest("POST", urls, body)
23547 if err != nil {
23548 return nil, err
23549 }
23550 req.Header = reqHeaders
23551 googleapi.Expand(req.URL, map[string]string{
23552 "parent": c.parent,
23553 })
23554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23555 }
23556
23557
23558
23559
23560
23561
23562
23563 func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
23564 gensupport.SetOptions(c.urlParams_, opts...)
23565 res, err := c.doRequest("json")
23566 if res != nil && res.StatusCode == http.StatusNotModified {
23567 if res.Body != nil {
23568 res.Body.Close()
23569 }
23570 return nil, gensupport.WrapError(&googleapi.Error{
23571 Code: res.StatusCode,
23572 Header: res.Header,
23573 })
23574 }
23575 if err != nil {
23576 return nil, err
23577 }
23578 defer googleapi.CloseBody(res)
23579 if err := googleapi.CheckResponse(res); err != nil {
23580 return nil, gensupport.WrapError(err)
23581 }
23582 ret := &GoogleCloudApigeeV1DeveloperAppKey{
23583 ServerResponse: googleapi.ServerResponse{
23584 Header: res.Header,
23585 HTTPStatusCode: res.StatusCode,
23586 },
23587 }
23588 target := &ret
23589 if err := gensupport.DecodeResponse(target, res); err != nil {
23590 return nil, err
23591 }
23592 return ret, nil
23593 }
23594
23595 type OrganizationsDevelopersAttributesDeleteCall struct {
23596 s *Service
23597 name string
23598 urlParams_ gensupport.URLParams
23599 ctx_ context.Context
23600 header_ http.Header
23601 }
23602
23603
23604
23605
23606
23607
23608 func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
23609 c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23610 c.name = name
23611 return c
23612 }
23613
23614
23615
23616
23617 func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
23618 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23619 return c
23620 }
23621
23622
23623 func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
23624 c.ctx_ = ctx
23625 return c
23626 }
23627
23628
23629
23630 func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
23631 if c.header_ == nil {
23632 c.header_ = make(http.Header)
23633 }
23634 return c.header_
23635 }
23636
23637 func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
23638 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23639 var body io.Reader = nil
23640 c.urlParams_.Set("alt", alt)
23641 c.urlParams_.Set("prettyPrint", "false")
23642 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23643 urls += "?" + c.urlParams_.Encode()
23644 req, err := http.NewRequest("DELETE", urls, body)
23645 if err != nil {
23646 return nil, err
23647 }
23648 req.Header = reqHeaders
23649 googleapi.Expand(req.URL, map[string]string{
23650 "name": c.name,
23651 })
23652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23653 }
23654
23655
23656
23657
23658
23659
23660
23661 func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
23662 gensupport.SetOptions(c.urlParams_, opts...)
23663 res, err := c.doRequest("json")
23664 if res != nil && res.StatusCode == http.StatusNotModified {
23665 if res.Body != nil {
23666 res.Body.Close()
23667 }
23668 return nil, gensupport.WrapError(&googleapi.Error{
23669 Code: res.StatusCode,
23670 Header: res.Header,
23671 })
23672 }
23673 if err != nil {
23674 return nil, err
23675 }
23676 defer googleapi.CloseBody(res)
23677 if err := googleapi.CheckResponse(res); err != nil {
23678 return nil, gensupport.WrapError(err)
23679 }
23680 ret := &GoogleCloudApigeeV1Attribute{
23681 ServerResponse: googleapi.ServerResponse{
23682 Header: res.Header,
23683 HTTPStatusCode: res.StatusCode,
23684 },
23685 }
23686 target := &ret
23687 if err := gensupport.DecodeResponse(target, res); err != nil {
23688 return nil, err
23689 }
23690 return ret, nil
23691 }
23692
23693 type OrganizationsDevelopersAttributesGetCall struct {
23694 s *Service
23695 name string
23696 urlParams_ gensupport.URLParams
23697 ifNoneMatch_ string
23698 ctx_ context.Context
23699 header_ http.Header
23700 }
23701
23702
23703
23704
23705
23706
23707 func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
23708 c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23709 c.name = name
23710 return c
23711 }
23712
23713
23714
23715
23716 func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
23717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23718 return c
23719 }
23720
23721
23722
23723
23724 func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
23725 c.ifNoneMatch_ = entityTag
23726 return c
23727 }
23728
23729
23730 func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
23731 c.ctx_ = ctx
23732 return c
23733 }
23734
23735
23736
23737 func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
23738 if c.header_ == nil {
23739 c.header_ = make(http.Header)
23740 }
23741 return c.header_
23742 }
23743
23744 func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
23745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23746 if c.ifNoneMatch_ != "" {
23747 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23748 }
23749 var body io.Reader = nil
23750 c.urlParams_.Set("alt", alt)
23751 c.urlParams_.Set("prettyPrint", "false")
23752 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23753 urls += "?" + c.urlParams_.Encode()
23754 req, err := http.NewRequest("GET", urls, body)
23755 if err != nil {
23756 return nil, err
23757 }
23758 req.Header = reqHeaders
23759 googleapi.Expand(req.URL, map[string]string{
23760 "name": c.name,
23761 })
23762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23763 }
23764
23765
23766
23767
23768
23769
23770
23771 func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
23772 gensupport.SetOptions(c.urlParams_, opts...)
23773 res, err := c.doRequest("json")
23774 if res != nil && res.StatusCode == http.StatusNotModified {
23775 if res.Body != nil {
23776 res.Body.Close()
23777 }
23778 return nil, gensupport.WrapError(&googleapi.Error{
23779 Code: res.StatusCode,
23780 Header: res.Header,
23781 })
23782 }
23783 if err != nil {
23784 return nil, err
23785 }
23786 defer googleapi.CloseBody(res)
23787 if err := googleapi.CheckResponse(res); err != nil {
23788 return nil, gensupport.WrapError(err)
23789 }
23790 ret := &GoogleCloudApigeeV1Attribute{
23791 ServerResponse: googleapi.ServerResponse{
23792 Header: res.Header,
23793 HTTPStatusCode: res.StatusCode,
23794 },
23795 }
23796 target := &ret
23797 if err := gensupport.DecodeResponse(target, res); err != nil {
23798 return nil, err
23799 }
23800 return ret, nil
23801 }
23802
23803 type OrganizationsDevelopersAttributesListCall struct {
23804 s *Service
23805 parent string
23806 urlParams_ gensupport.URLParams
23807 ifNoneMatch_ string
23808 ctx_ context.Context
23809 header_ http.Header
23810 }
23811
23812
23813
23814
23815
23816
23817 func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
23818 c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23819 c.parent = parent
23820 return c
23821 }
23822
23823
23824
23825
23826 func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
23827 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23828 return c
23829 }
23830
23831
23832
23833
23834 func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
23835 c.ifNoneMatch_ = entityTag
23836 return c
23837 }
23838
23839
23840 func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
23841 c.ctx_ = ctx
23842 return c
23843 }
23844
23845
23846
23847 func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
23848 if c.header_ == nil {
23849 c.header_ = make(http.Header)
23850 }
23851 return c.header_
23852 }
23853
23854 func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
23855 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23856 if c.ifNoneMatch_ != "" {
23857 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23858 }
23859 var body io.Reader = nil
23860 c.urlParams_.Set("alt", alt)
23861 c.urlParams_.Set("prettyPrint", "false")
23862 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
23863 urls += "?" + c.urlParams_.Encode()
23864 req, err := http.NewRequest("GET", urls, body)
23865 if err != nil {
23866 return nil, err
23867 }
23868 req.Header = reqHeaders
23869 googleapi.Expand(req.URL, map[string]string{
23870 "parent": c.parent,
23871 })
23872 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23873 }
23874
23875
23876
23877
23878
23879
23880
23881 func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
23882 gensupport.SetOptions(c.urlParams_, opts...)
23883 res, err := c.doRequest("json")
23884 if res != nil && res.StatusCode == http.StatusNotModified {
23885 if res.Body != nil {
23886 res.Body.Close()
23887 }
23888 return nil, gensupport.WrapError(&googleapi.Error{
23889 Code: res.StatusCode,
23890 Header: res.Header,
23891 })
23892 }
23893 if err != nil {
23894 return nil, err
23895 }
23896 defer googleapi.CloseBody(res)
23897 if err := googleapi.CheckResponse(res); err != nil {
23898 return nil, gensupport.WrapError(err)
23899 }
23900 ret := &GoogleCloudApigeeV1Attributes{
23901 ServerResponse: googleapi.ServerResponse{
23902 Header: res.Header,
23903 HTTPStatusCode: res.StatusCode,
23904 },
23905 }
23906 target := &ret
23907 if err := gensupport.DecodeResponse(target, res); err != nil {
23908 return nil, err
23909 }
23910 return ret, nil
23911 }
23912
23913 type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
23914 s *Service
23915 name string
23916 googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
23917 urlParams_ gensupport.URLParams
23918 ctx_ context.Context
23919 header_ http.Header
23920 }
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933 func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
23934 c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23935 c.name = name
23936 c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
23937 return c
23938 }
23939
23940
23941
23942
23943 func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
23944 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23945 return c
23946 }
23947
23948
23949 func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
23950 c.ctx_ = ctx
23951 return c
23952 }
23953
23954
23955
23956 func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
23957 if c.header_ == nil {
23958 c.header_ = make(http.Header)
23959 }
23960 return c.header_
23961 }
23962
23963 func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
23964 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23965 var body io.Reader = nil
23966 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
23967 if err != nil {
23968 return nil, err
23969 }
23970 c.urlParams_.Set("alt", alt)
23971 c.urlParams_.Set("prettyPrint", "false")
23972 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23973 urls += "?" + c.urlParams_.Encode()
23974 req, err := http.NewRequest("POST", urls, body)
23975 if err != nil {
23976 return nil, err
23977 }
23978 req.Header = reqHeaders
23979 googleapi.Expand(req.URL, map[string]string{
23980 "name": c.name,
23981 })
23982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23983 }
23984
23985
23986
23987
23988
23989
23990
23991 func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
23992 gensupport.SetOptions(c.urlParams_, opts...)
23993 res, err := c.doRequest("json")
23994 if res != nil && res.StatusCode == http.StatusNotModified {
23995 if res.Body != nil {
23996 res.Body.Close()
23997 }
23998 return nil, gensupport.WrapError(&googleapi.Error{
23999 Code: res.StatusCode,
24000 Header: res.Header,
24001 })
24002 }
24003 if err != nil {
24004 return nil, err
24005 }
24006 defer googleapi.CloseBody(res)
24007 if err := googleapi.CheckResponse(res); err != nil {
24008 return nil, gensupport.WrapError(err)
24009 }
24010 ret := &GoogleCloudApigeeV1Attribute{
24011 ServerResponse: googleapi.ServerResponse{
24012 Header: res.Header,
24013 HTTPStatusCode: res.StatusCode,
24014 },
24015 }
24016 target := &ret
24017 if err := gensupport.DecodeResponse(target, res); err != nil {
24018 return nil, err
24019 }
24020 return ret, nil
24021 }
24022
24023 type OrganizationsDevelopersBalanceAdjustCall struct {
24024 s *Service
24025 name string
24026 googlecloudapigeev1adjustdeveloperbalancerequest *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest
24027 urlParams_ gensupport.URLParams
24028 ctx_ context.Context
24029 header_ http.Header
24030 }
24031
24032
24033
24034
24035
24036
24037 func (r *OrganizationsDevelopersBalanceService) Adjust(name string, googlecloudapigeev1adjustdeveloperbalancerequest *GoogleCloudApigeeV1AdjustDeveloperBalanceRequest) *OrganizationsDevelopersBalanceAdjustCall {
24038 c := &OrganizationsDevelopersBalanceAdjustCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24039 c.name = name
24040 c.googlecloudapigeev1adjustdeveloperbalancerequest = googlecloudapigeev1adjustdeveloperbalancerequest
24041 return c
24042 }
24043
24044
24045
24046
24047 func (c *OrganizationsDevelopersBalanceAdjustCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersBalanceAdjustCall {
24048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24049 return c
24050 }
24051
24052
24053 func (c *OrganizationsDevelopersBalanceAdjustCall) Context(ctx context.Context) *OrganizationsDevelopersBalanceAdjustCall {
24054 c.ctx_ = ctx
24055 return c
24056 }
24057
24058
24059
24060 func (c *OrganizationsDevelopersBalanceAdjustCall) Header() http.Header {
24061 if c.header_ == nil {
24062 c.header_ = make(http.Header)
24063 }
24064 return c.header_
24065 }
24066
24067 func (c *OrganizationsDevelopersBalanceAdjustCall) doRequest(alt string) (*http.Response, error) {
24068 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24069 var body io.Reader = nil
24070 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1adjustdeveloperbalancerequest)
24071 if err != nil {
24072 return nil, err
24073 }
24074 c.urlParams_.Set("alt", alt)
24075 c.urlParams_.Set("prettyPrint", "false")
24076 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:adjust")
24077 urls += "?" + c.urlParams_.Encode()
24078 req, err := http.NewRequest("POST", urls, body)
24079 if err != nil {
24080 return nil, err
24081 }
24082 req.Header = reqHeaders
24083 googleapi.Expand(req.URL, map[string]string{
24084 "name": c.name,
24085 })
24086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24087 }
24088
24089
24090
24091
24092
24093
24094
24095 func (c *OrganizationsDevelopersBalanceAdjustCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
24096 gensupport.SetOptions(c.urlParams_, opts...)
24097 res, err := c.doRequest("json")
24098 if res != nil && res.StatusCode == http.StatusNotModified {
24099 if res.Body != nil {
24100 res.Body.Close()
24101 }
24102 return nil, gensupport.WrapError(&googleapi.Error{
24103 Code: res.StatusCode,
24104 Header: res.Header,
24105 })
24106 }
24107 if err != nil {
24108 return nil, err
24109 }
24110 defer googleapi.CloseBody(res)
24111 if err := googleapi.CheckResponse(res); err != nil {
24112 return nil, gensupport.WrapError(err)
24113 }
24114 ret := &GoogleCloudApigeeV1DeveloperBalance{
24115 ServerResponse: googleapi.ServerResponse{
24116 Header: res.Header,
24117 HTTPStatusCode: res.StatusCode,
24118 },
24119 }
24120 target := &ret
24121 if err := gensupport.DecodeResponse(target, res); err != nil {
24122 return nil, err
24123 }
24124 return ret, nil
24125 }
24126
24127 type OrganizationsDevelopersBalanceCreditCall struct {
24128 s *Service
24129 name string
24130 googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest
24131 urlParams_ gensupport.URLParams
24132 ctx_ context.Context
24133 header_ http.Header
24134 }
24135
24136
24137
24138
24139
24140 func (r *OrganizationsDevelopersBalanceService) Credit(name string, googlecloudapigeev1creditdeveloperbalancerequest *GoogleCloudApigeeV1CreditDeveloperBalanceRequest) *OrganizationsDevelopersBalanceCreditCall {
24141 c := &OrganizationsDevelopersBalanceCreditCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24142 c.name = name
24143 c.googlecloudapigeev1creditdeveloperbalancerequest = googlecloudapigeev1creditdeveloperbalancerequest
24144 return c
24145 }
24146
24147
24148
24149
24150 func (c *OrganizationsDevelopersBalanceCreditCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersBalanceCreditCall {
24151 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24152 return c
24153 }
24154
24155
24156 func (c *OrganizationsDevelopersBalanceCreditCall) Context(ctx context.Context) *OrganizationsDevelopersBalanceCreditCall {
24157 c.ctx_ = ctx
24158 return c
24159 }
24160
24161
24162
24163 func (c *OrganizationsDevelopersBalanceCreditCall) Header() http.Header {
24164 if c.header_ == nil {
24165 c.header_ = make(http.Header)
24166 }
24167 return c.header_
24168 }
24169
24170 func (c *OrganizationsDevelopersBalanceCreditCall) doRequest(alt string) (*http.Response, error) {
24171 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24172 var body io.Reader = nil
24173 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1creditdeveloperbalancerequest)
24174 if err != nil {
24175 return nil, err
24176 }
24177 c.urlParams_.Set("alt", alt)
24178 c.urlParams_.Set("prettyPrint", "false")
24179 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:credit")
24180 urls += "?" + c.urlParams_.Encode()
24181 req, err := http.NewRequest("POST", urls, body)
24182 if err != nil {
24183 return nil, err
24184 }
24185 req.Header = reqHeaders
24186 googleapi.Expand(req.URL, map[string]string{
24187 "name": c.name,
24188 })
24189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24190 }
24191
24192
24193
24194
24195
24196
24197
24198 func (c *OrganizationsDevelopersBalanceCreditCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperBalance, error) {
24199 gensupport.SetOptions(c.urlParams_, opts...)
24200 res, err := c.doRequest("json")
24201 if res != nil && res.StatusCode == http.StatusNotModified {
24202 if res.Body != nil {
24203 res.Body.Close()
24204 }
24205 return nil, gensupport.WrapError(&googleapi.Error{
24206 Code: res.StatusCode,
24207 Header: res.Header,
24208 })
24209 }
24210 if err != nil {
24211 return nil, err
24212 }
24213 defer googleapi.CloseBody(res)
24214 if err := googleapi.CheckResponse(res); err != nil {
24215 return nil, gensupport.WrapError(err)
24216 }
24217 ret := &GoogleCloudApigeeV1DeveloperBalance{
24218 ServerResponse: googleapi.ServerResponse{
24219 Header: res.Header,
24220 HTTPStatusCode: res.StatusCode,
24221 },
24222 }
24223 target := &ret
24224 if err := gensupport.DecodeResponse(target, res); err != nil {
24225 return nil, err
24226 }
24227 return ret, nil
24228 }
24229
24230 type OrganizationsDevelopersSubscriptionsCreateCall struct {
24231 s *Service
24232 parent string
24233 googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription
24234 urlParams_ gensupport.URLParams
24235 ctx_ context.Context
24236 header_ http.Header
24237 }
24238
24239
24240
24241
24242
24243
24244 func (r *OrganizationsDevelopersSubscriptionsService) Create(parent string, googlecloudapigeev1developersubscription *GoogleCloudApigeeV1DeveloperSubscription) *OrganizationsDevelopersSubscriptionsCreateCall {
24245 c := &OrganizationsDevelopersSubscriptionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24246 c.parent = parent
24247 c.googlecloudapigeev1developersubscription = googlecloudapigeev1developersubscription
24248 return c
24249 }
24250
24251
24252
24253
24254 func (c *OrganizationsDevelopersSubscriptionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsCreateCall {
24255 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24256 return c
24257 }
24258
24259
24260 func (c *OrganizationsDevelopersSubscriptionsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsCreateCall {
24261 c.ctx_ = ctx
24262 return c
24263 }
24264
24265
24266
24267 func (c *OrganizationsDevelopersSubscriptionsCreateCall) Header() http.Header {
24268 if c.header_ == nil {
24269 c.header_ = make(http.Header)
24270 }
24271 return c.header_
24272 }
24273
24274 func (c *OrganizationsDevelopersSubscriptionsCreateCall) doRequest(alt string) (*http.Response, error) {
24275 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24276 var body io.Reader = nil
24277 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developersubscription)
24278 if err != nil {
24279 return nil, err
24280 }
24281 c.urlParams_.Set("alt", alt)
24282 c.urlParams_.Set("prettyPrint", "false")
24283 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
24284 urls += "?" + c.urlParams_.Encode()
24285 req, err := http.NewRequest("POST", urls, body)
24286 if err != nil {
24287 return nil, err
24288 }
24289 req.Header = reqHeaders
24290 googleapi.Expand(req.URL, map[string]string{
24291 "parent": c.parent,
24292 })
24293 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24294 }
24295
24296
24297
24298
24299
24300
24301
24302 func (c *OrganizationsDevelopersSubscriptionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
24303 gensupport.SetOptions(c.urlParams_, opts...)
24304 res, err := c.doRequest("json")
24305 if res != nil && res.StatusCode == http.StatusNotModified {
24306 if res.Body != nil {
24307 res.Body.Close()
24308 }
24309 return nil, gensupport.WrapError(&googleapi.Error{
24310 Code: res.StatusCode,
24311 Header: res.Header,
24312 })
24313 }
24314 if err != nil {
24315 return nil, err
24316 }
24317 defer googleapi.CloseBody(res)
24318 if err := googleapi.CheckResponse(res); err != nil {
24319 return nil, gensupport.WrapError(err)
24320 }
24321 ret := &GoogleCloudApigeeV1DeveloperSubscription{
24322 ServerResponse: googleapi.ServerResponse{
24323 Header: res.Header,
24324 HTTPStatusCode: res.StatusCode,
24325 },
24326 }
24327 target := &ret
24328 if err := gensupport.DecodeResponse(target, res); err != nil {
24329 return nil, err
24330 }
24331 return ret, nil
24332 }
24333
24334 type OrganizationsDevelopersSubscriptionsExpireCall struct {
24335 s *Service
24336 name string
24337 googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest
24338 urlParams_ gensupport.URLParams
24339 ctx_ context.Context
24340 header_ http.Header
24341 }
24342
24343
24344
24345
24346
24347
24348
24349 func (r *OrganizationsDevelopersSubscriptionsService) Expire(name string, googlecloudapigeev1expiredevelopersubscriptionrequest *GoogleCloudApigeeV1ExpireDeveloperSubscriptionRequest) *OrganizationsDevelopersSubscriptionsExpireCall {
24350 c := &OrganizationsDevelopersSubscriptionsExpireCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24351 c.name = name
24352 c.googlecloudapigeev1expiredevelopersubscriptionrequest = googlecloudapigeev1expiredevelopersubscriptionrequest
24353 return c
24354 }
24355
24356
24357
24358
24359 func (c *OrganizationsDevelopersSubscriptionsExpireCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsExpireCall {
24360 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24361 return c
24362 }
24363
24364
24365 func (c *OrganizationsDevelopersSubscriptionsExpireCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsExpireCall {
24366 c.ctx_ = ctx
24367 return c
24368 }
24369
24370
24371
24372 func (c *OrganizationsDevelopersSubscriptionsExpireCall) Header() http.Header {
24373 if c.header_ == nil {
24374 c.header_ = make(http.Header)
24375 }
24376 return c.header_
24377 }
24378
24379 func (c *OrganizationsDevelopersSubscriptionsExpireCall) doRequest(alt string) (*http.Response, error) {
24380 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24381 var body io.Reader = nil
24382 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1expiredevelopersubscriptionrequest)
24383 if err != nil {
24384 return nil, err
24385 }
24386 c.urlParams_.Set("alt", alt)
24387 c.urlParams_.Set("prettyPrint", "false")
24388 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:expire")
24389 urls += "?" + c.urlParams_.Encode()
24390 req, err := http.NewRequest("POST", urls, body)
24391 if err != nil {
24392 return nil, err
24393 }
24394 req.Header = reqHeaders
24395 googleapi.Expand(req.URL, map[string]string{
24396 "name": c.name,
24397 })
24398 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24399 }
24400
24401
24402
24403
24404
24405
24406
24407 func (c *OrganizationsDevelopersSubscriptionsExpireCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
24408 gensupport.SetOptions(c.urlParams_, opts...)
24409 res, err := c.doRequest("json")
24410 if res != nil && res.StatusCode == http.StatusNotModified {
24411 if res.Body != nil {
24412 res.Body.Close()
24413 }
24414 return nil, gensupport.WrapError(&googleapi.Error{
24415 Code: res.StatusCode,
24416 Header: res.Header,
24417 })
24418 }
24419 if err != nil {
24420 return nil, err
24421 }
24422 defer googleapi.CloseBody(res)
24423 if err := googleapi.CheckResponse(res); err != nil {
24424 return nil, gensupport.WrapError(err)
24425 }
24426 ret := &GoogleCloudApigeeV1DeveloperSubscription{
24427 ServerResponse: googleapi.ServerResponse{
24428 Header: res.Header,
24429 HTTPStatusCode: res.StatusCode,
24430 },
24431 }
24432 target := &ret
24433 if err := gensupport.DecodeResponse(target, res); err != nil {
24434 return nil, err
24435 }
24436 return ret, nil
24437 }
24438
24439 type OrganizationsDevelopersSubscriptionsGetCall struct {
24440 s *Service
24441 name string
24442 urlParams_ gensupport.URLParams
24443 ifNoneMatch_ string
24444 ctx_ context.Context
24445 header_ http.Header
24446 }
24447
24448
24449
24450
24451
24452
24453
24454 func (r *OrganizationsDevelopersSubscriptionsService) Get(name string) *OrganizationsDevelopersSubscriptionsGetCall {
24455 c := &OrganizationsDevelopersSubscriptionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24456 c.name = name
24457 return c
24458 }
24459
24460
24461
24462
24463 func (c *OrganizationsDevelopersSubscriptionsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsGetCall {
24464 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24465 return c
24466 }
24467
24468
24469
24470
24471 func (c *OrganizationsDevelopersSubscriptionsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsGetCall {
24472 c.ifNoneMatch_ = entityTag
24473 return c
24474 }
24475
24476
24477 func (c *OrganizationsDevelopersSubscriptionsGetCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsGetCall {
24478 c.ctx_ = ctx
24479 return c
24480 }
24481
24482
24483
24484 func (c *OrganizationsDevelopersSubscriptionsGetCall) Header() http.Header {
24485 if c.header_ == nil {
24486 c.header_ = make(http.Header)
24487 }
24488 return c.header_
24489 }
24490
24491 func (c *OrganizationsDevelopersSubscriptionsGetCall) doRequest(alt string) (*http.Response, error) {
24492 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24493 if c.ifNoneMatch_ != "" {
24494 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24495 }
24496 var body io.Reader = nil
24497 c.urlParams_.Set("alt", alt)
24498 c.urlParams_.Set("prettyPrint", "false")
24499 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24500 urls += "?" + c.urlParams_.Encode()
24501 req, err := http.NewRequest("GET", urls, body)
24502 if err != nil {
24503 return nil, err
24504 }
24505 req.Header = reqHeaders
24506 googleapi.Expand(req.URL, map[string]string{
24507 "name": c.name,
24508 })
24509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24510 }
24511
24512
24513
24514
24515
24516
24517
24518 func (c *OrganizationsDevelopersSubscriptionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperSubscription, error) {
24519 gensupport.SetOptions(c.urlParams_, opts...)
24520 res, err := c.doRequest("json")
24521 if res != nil && res.StatusCode == http.StatusNotModified {
24522 if res.Body != nil {
24523 res.Body.Close()
24524 }
24525 return nil, gensupport.WrapError(&googleapi.Error{
24526 Code: res.StatusCode,
24527 Header: res.Header,
24528 })
24529 }
24530 if err != nil {
24531 return nil, err
24532 }
24533 defer googleapi.CloseBody(res)
24534 if err := googleapi.CheckResponse(res); err != nil {
24535 return nil, gensupport.WrapError(err)
24536 }
24537 ret := &GoogleCloudApigeeV1DeveloperSubscription{
24538 ServerResponse: googleapi.ServerResponse{
24539 Header: res.Header,
24540 HTTPStatusCode: res.StatusCode,
24541 },
24542 }
24543 target := &ret
24544 if err := gensupport.DecodeResponse(target, res); err != nil {
24545 return nil, err
24546 }
24547 return ret, nil
24548 }
24549
24550 type OrganizationsDevelopersSubscriptionsListCall struct {
24551 s *Service
24552 parent string
24553 urlParams_ gensupport.URLParams
24554 ifNoneMatch_ string
24555 ctx_ context.Context
24556 header_ http.Header
24557 }
24558
24559
24560
24561
24562
24563 func (r *OrganizationsDevelopersSubscriptionsService) List(parent string) *OrganizationsDevelopersSubscriptionsListCall {
24564 c := &OrganizationsDevelopersSubscriptionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24565 c.parent = parent
24566 return c
24567 }
24568
24569
24570
24571
24572 func (c *OrganizationsDevelopersSubscriptionsListCall) Count(count int64) *OrganizationsDevelopersSubscriptionsListCall {
24573 c.urlParams_.Set("count", fmt.Sprint(count))
24574 return c
24575 }
24576
24577
24578
24579
24580
24581
24582 func (c *OrganizationsDevelopersSubscriptionsListCall) StartKey(startKey string) *OrganizationsDevelopersSubscriptionsListCall {
24583 c.urlParams_.Set("startKey", startKey)
24584 return c
24585 }
24586
24587
24588
24589
24590 func (c *OrganizationsDevelopersSubscriptionsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSubscriptionsListCall {
24591 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24592 return c
24593 }
24594
24595
24596
24597
24598 func (c *OrganizationsDevelopersSubscriptionsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersSubscriptionsListCall {
24599 c.ifNoneMatch_ = entityTag
24600 return c
24601 }
24602
24603
24604 func (c *OrganizationsDevelopersSubscriptionsListCall) Context(ctx context.Context) *OrganizationsDevelopersSubscriptionsListCall {
24605 c.ctx_ = ctx
24606 return c
24607 }
24608
24609
24610
24611 func (c *OrganizationsDevelopersSubscriptionsListCall) Header() http.Header {
24612 if c.header_ == nil {
24613 c.header_ = make(http.Header)
24614 }
24615 return c.header_
24616 }
24617
24618 func (c *OrganizationsDevelopersSubscriptionsListCall) doRequest(alt string) (*http.Response, error) {
24619 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24620 if c.ifNoneMatch_ != "" {
24621 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24622 }
24623 var body io.Reader = nil
24624 c.urlParams_.Set("alt", alt)
24625 c.urlParams_.Set("prettyPrint", "false")
24626 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/subscriptions")
24627 urls += "?" + c.urlParams_.Encode()
24628 req, err := http.NewRequest("GET", urls, body)
24629 if err != nil {
24630 return nil, err
24631 }
24632 req.Header = reqHeaders
24633 googleapi.Expand(req.URL, map[string]string{
24634 "parent": c.parent,
24635 })
24636 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24637 }
24638
24639
24640
24641
24642
24643
24644
24645 func (c *OrganizationsDevelopersSubscriptionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse, error) {
24646 gensupport.SetOptions(c.urlParams_, opts...)
24647 res, err := c.doRequest("json")
24648 if res != nil && res.StatusCode == http.StatusNotModified {
24649 if res.Body != nil {
24650 res.Body.Close()
24651 }
24652 return nil, gensupport.WrapError(&googleapi.Error{
24653 Code: res.StatusCode,
24654 Header: res.Header,
24655 })
24656 }
24657 if err != nil {
24658 return nil, err
24659 }
24660 defer googleapi.CloseBody(res)
24661 if err := googleapi.CheckResponse(res); err != nil {
24662 return nil, gensupport.WrapError(err)
24663 }
24664 ret := &GoogleCloudApigeeV1ListDeveloperSubscriptionsResponse{
24665 ServerResponse: googleapi.ServerResponse{
24666 Header: res.Header,
24667 HTTPStatusCode: res.StatusCode,
24668 },
24669 }
24670 target := &ret
24671 if err := gensupport.DecodeResponse(target, res); err != nil {
24672 return nil, err
24673 }
24674 return ret, nil
24675 }
24676
24677 type OrganizationsEndpointAttachmentsCreateCall struct {
24678 s *Service
24679 parent string
24680 googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment
24681 urlParams_ gensupport.URLParams
24682 ctx_ context.Context
24683 header_ http.Header
24684 }
24685
24686
24687
24688
24689
24690 func (r *OrganizationsEndpointAttachmentsService) Create(parent string, googlecloudapigeev1endpointattachment *GoogleCloudApigeeV1EndpointAttachment) *OrganizationsEndpointAttachmentsCreateCall {
24691 c := &OrganizationsEndpointAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24692 c.parent = parent
24693 c.googlecloudapigeev1endpointattachment = googlecloudapigeev1endpointattachment
24694 return c
24695 }
24696
24697
24698
24699
24700
24701 func (c *OrganizationsEndpointAttachmentsCreateCall) EndpointAttachmentId(endpointAttachmentId string) *OrganizationsEndpointAttachmentsCreateCall {
24702 c.urlParams_.Set("endpointAttachmentId", endpointAttachmentId)
24703 return c
24704 }
24705
24706
24707
24708
24709 func (c *OrganizationsEndpointAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsCreateCall {
24710 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24711 return c
24712 }
24713
24714
24715 func (c *OrganizationsEndpointAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsCreateCall {
24716 c.ctx_ = ctx
24717 return c
24718 }
24719
24720
24721
24722 func (c *OrganizationsEndpointAttachmentsCreateCall) Header() http.Header {
24723 if c.header_ == nil {
24724 c.header_ = make(http.Header)
24725 }
24726 return c.header_
24727 }
24728
24729 func (c *OrganizationsEndpointAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
24730 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24731 var body io.Reader = nil
24732 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1endpointattachment)
24733 if err != nil {
24734 return nil, err
24735 }
24736 c.urlParams_.Set("alt", alt)
24737 c.urlParams_.Set("prettyPrint", "false")
24738 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
24739 urls += "?" + c.urlParams_.Encode()
24740 req, err := http.NewRequest("POST", urls, body)
24741 if err != nil {
24742 return nil, err
24743 }
24744 req.Header = reqHeaders
24745 googleapi.Expand(req.URL, map[string]string{
24746 "parent": c.parent,
24747 })
24748 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24749 }
24750
24751
24752
24753
24754
24755
24756
24757 func (c *OrganizationsEndpointAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24758 gensupport.SetOptions(c.urlParams_, opts...)
24759 res, err := c.doRequest("json")
24760 if res != nil && res.StatusCode == http.StatusNotModified {
24761 if res.Body != nil {
24762 res.Body.Close()
24763 }
24764 return nil, gensupport.WrapError(&googleapi.Error{
24765 Code: res.StatusCode,
24766 Header: res.Header,
24767 })
24768 }
24769 if err != nil {
24770 return nil, err
24771 }
24772 defer googleapi.CloseBody(res)
24773 if err := googleapi.CheckResponse(res); err != nil {
24774 return nil, gensupport.WrapError(err)
24775 }
24776 ret := &GoogleLongrunningOperation{
24777 ServerResponse: googleapi.ServerResponse{
24778 Header: res.Header,
24779 HTTPStatusCode: res.StatusCode,
24780 },
24781 }
24782 target := &ret
24783 if err := gensupport.DecodeResponse(target, res); err != nil {
24784 return nil, err
24785 }
24786 return ret, nil
24787 }
24788
24789 type OrganizationsEndpointAttachmentsDeleteCall struct {
24790 s *Service
24791 name string
24792 urlParams_ gensupport.URLParams
24793 ctx_ context.Context
24794 header_ http.Header
24795 }
24796
24797
24798
24799
24800
24801 func (r *OrganizationsEndpointAttachmentsService) Delete(name string) *OrganizationsEndpointAttachmentsDeleteCall {
24802 c := &OrganizationsEndpointAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24803 c.name = name
24804 return c
24805 }
24806
24807
24808
24809
24810 func (c *OrganizationsEndpointAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsDeleteCall {
24811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24812 return c
24813 }
24814
24815
24816 func (c *OrganizationsEndpointAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsDeleteCall {
24817 c.ctx_ = ctx
24818 return c
24819 }
24820
24821
24822
24823 func (c *OrganizationsEndpointAttachmentsDeleteCall) Header() http.Header {
24824 if c.header_ == nil {
24825 c.header_ = make(http.Header)
24826 }
24827 return c.header_
24828 }
24829
24830 func (c *OrganizationsEndpointAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24832 var body io.Reader = nil
24833 c.urlParams_.Set("alt", alt)
24834 c.urlParams_.Set("prettyPrint", "false")
24835 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24836 urls += "?" + c.urlParams_.Encode()
24837 req, err := http.NewRequest("DELETE", urls, body)
24838 if err != nil {
24839 return nil, err
24840 }
24841 req.Header = reqHeaders
24842 googleapi.Expand(req.URL, map[string]string{
24843 "name": c.name,
24844 })
24845 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24846 }
24847
24848
24849
24850
24851
24852
24853
24854 func (c *OrganizationsEndpointAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24855 gensupport.SetOptions(c.urlParams_, opts...)
24856 res, err := c.doRequest("json")
24857 if res != nil && res.StatusCode == http.StatusNotModified {
24858 if res.Body != nil {
24859 res.Body.Close()
24860 }
24861 return nil, gensupport.WrapError(&googleapi.Error{
24862 Code: res.StatusCode,
24863 Header: res.Header,
24864 })
24865 }
24866 if err != nil {
24867 return nil, err
24868 }
24869 defer googleapi.CloseBody(res)
24870 if err := googleapi.CheckResponse(res); err != nil {
24871 return nil, gensupport.WrapError(err)
24872 }
24873 ret := &GoogleLongrunningOperation{
24874 ServerResponse: googleapi.ServerResponse{
24875 Header: res.Header,
24876 HTTPStatusCode: res.StatusCode,
24877 },
24878 }
24879 target := &ret
24880 if err := gensupport.DecodeResponse(target, res); err != nil {
24881 return nil, err
24882 }
24883 return ret, nil
24884 }
24885
24886 type OrganizationsEndpointAttachmentsGetCall struct {
24887 s *Service
24888 name string
24889 urlParams_ gensupport.URLParams
24890 ifNoneMatch_ string
24891 ctx_ context.Context
24892 header_ http.Header
24893 }
24894
24895
24896
24897
24898
24899 func (r *OrganizationsEndpointAttachmentsService) Get(name string) *OrganizationsEndpointAttachmentsGetCall {
24900 c := &OrganizationsEndpointAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24901 c.name = name
24902 return c
24903 }
24904
24905
24906
24907
24908 func (c *OrganizationsEndpointAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsGetCall {
24909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24910 return c
24911 }
24912
24913
24914
24915
24916 func (c *OrganizationsEndpointAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsGetCall {
24917 c.ifNoneMatch_ = entityTag
24918 return c
24919 }
24920
24921
24922 func (c *OrganizationsEndpointAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsGetCall {
24923 c.ctx_ = ctx
24924 return c
24925 }
24926
24927
24928
24929 func (c *OrganizationsEndpointAttachmentsGetCall) Header() http.Header {
24930 if c.header_ == nil {
24931 c.header_ = make(http.Header)
24932 }
24933 return c.header_
24934 }
24935
24936 func (c *OrganizationsEndpointAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
24937 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24938 if c.ifNoneMatch_ != "" {
24939 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24940 }
24941 var body io.Reader = nil
24942 c.urlParams_.Set("alt", alt)
24943 c.urlParams_.Set("prettyPrint", "false")
24944 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24945 urls += "?" + c.urlParams_.Encode()
24946 req, err := http.NewRequest("GET", urls, body)
24947 if err != nil {
24948 return nil, err
24949 }
24950 req.Header = reqHeaders
24951 googleapi.Expand(req.URL, map[string]string{
24952 "name": c.name,
24953 })
24954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24955 }
24956
24957
24958
24959
24960
24961
24962
24963 func (c *OrganizationsEndpointAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EndpointAttachment, error) {
24964 gensupport.SetOptions(c.urlParams_, opts...)
24965 res, err := c.doRequest("json")
24966 if res != nil && res.StatusCode == http.StatusNotModified {
24967 if res.Body != nil {
24968 res.Body.Close()
24969 }
24970 return nil, gensupport.WrapError(&googleapi.Error{
24971 Code: res.StatusCode,
24972 Header: res.Header,
24973 })
24974 }
24975 if err != nil {
24976 return nil, err
24977 }
24978 defer googleapi.CloseBody(res)
24979 if err := googleapi.CheckResponse(res); err != nil {
24980 return nil, gensupport.WrapError(err)
24981 }
24982 ret := &GoogleCloudApigeeV1EndpointAttachment{
24983 ServerResponse: googleapi.ServerResponse{
24984 Header: res.Header,
24985 HTTPStatusCode: res.StatusCode,
24986 },
24987 }
24988 target := &ret
24989 if err := gensupport.DecodeResponse(target, res); err != nil {
24990 return nil, err
24991 }
24992 return ret, nil
24993 }
24994
24995 type OrganizationsEndpointAttachmentsListCall struct {
24996 s *Service
24997 parent string
24998 urlParams_ gensupport.URLParams
24999 ifNoneMatch_ string
25000 ctx_ context.Context
25001 header_ http.Header
25002 }
25003
25004
25005
25006
25007
25008 func (r *OrganizationsEndpointAttachmentsService) List(parent string) *OrganizationsEndpointAttachmentsListCall {
25009 c := &OrganizationsEndpointAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25010 c.parent = parent
25011 return c
25012 }
25013
25014
25015
25016
25017 func (c *OrganizationsEndpointAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEndpointAttachmentsListCall {
25018 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25019 return c
25020 }
25021
25022
25023
25024
25025 func (c *OrganizationsEndpointAttachmentsListCall) PageToken(pageToken string) *OrganizationsEndpointAttachmentsListCall {
25026 c.urlParams_.Set("pageToken", pageToken)
25027 return c
25028 }
25029
25030
25031
25032
25033 func (c *OrganizationsEndpointAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEndpointAttachmentsListCall {
25034 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25035 return c
25036 }
25037
25038
25039
25040
25041 func (c *OrganizationsEndpointAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEndpointAttachmentsListCall {
25042 c.ifNoneMatch_ = entityTag
25043 return c
25044 }
25045
25046
25047 func (c *OrganizationsEndpointAttachmentsListCall) Context(ctx context.Context) *OrganizationsEndpointAttachmentsListCall {
25048 c.ctx_ = ctx
25049 return c
25050 }
25051
25052
25053
25054 func (c *OrganizationsEndpointAttachmentsListCall) Header() http.Header {
25055 if c.header_ == nil {
25056 c.header_ = make(http.Header)
25057 }
25058 return c.header_
25059 }
25060
25061 func (c *OrganizationsEndpointAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
25062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25063 if c.ifNoneMatch_ != "" {
25064 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25065 }
25066 var body io.Reader = nil
25067 c.urlParams_.Set("alt", alt)
25068 c.urlParams_.Set("prettyPrint", "false")
25069 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpointAttachments")
25070 urls += "?" + c.urlParams_.Encode()
25071 req, err := http.NewRequest("GET", urls, body)
25072 if err != nil {
25073 return nil, err
25074 }
25075 req.Header = reqHeaders
25076 googleapi.Expand(req.URL, map[string]string{
25077 "parent": c.parent,
25078 })
25079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25080 }
25081
25082
25083
25084
25085
25086
25087
25088 func (c *OrganizationsEndpointAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEndpointAttachmentsResponse, error) {
25089 gensupport.SetOptions(c.urlParams_, opts...)
25090 res, err := c.doRequest("json")
25091 if res != nil && res.StatusCode == http.StatusNotModified {
25092 if res.Body != nil {
25093 res.Body.Close()
25094 }
25095 return nil, gensupport.WrapError(&googleapi.Error{
25096 Code: res.StatusCode,
25097 Header: res.Header,
25098 })
25099 }
25100 if err != nil {
25101 return nil, err
25102 }
25103 defer googleapi.CloseBody(res)
25104 if err := googleapi.CheckResponse(res); err != nil {
25105 return nil, gensupport.WrapError(err)
25106 }
25107 ret := &GoogleCloudApigeeV1ListEndpointAttachmentsResponse{
25108 ServerResponse: googleapi.ServerResponse{
25109 Header: res.Header,
25110 HTTPStatusCode: res.StatusCode,
25111 },
25112 }
25113 target := &ret
25114 if err := gensupport.DecodeResponse(target, res); err != nil {
25115 return nil, err
25116 }
25117 return ret, nil
25118 }
25119
25120
25121
25122
25123 func (c *OrganizationsEndpointAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEndpointAttachmentsResponse) error) error {
25124 c.ctx_ = ctx
25125 defer c.PageToken(c.urlParams_.Get("pageToken"))
25126 for {
25127 x, err := c.Do()
25128 if err != nil {
25129 return err
25130 }
25131 if err := f(x); err != nil {
25132 return err
25133 }
25134 if x.NextPageToken == "" {
25135 return nil
25136 }
25137 c.PageToken(x.NextPageToken)
25138 }
25139 }
25140
25141 type OrganizationsEnvgroupsCreateCall struct {
25142 s *Service
25143 parent string
25144 googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
25145 urlParams_ gensupport.URLParams
25146 ctx_ context.Context
25147 header_ http.Header
25148 }
25149
25150
25151
25152
25153
25154 func (r *OrganizationsEnvgroupsService) Create(parent string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsCreateCall {
25155 c := &OrganizationsEnvgroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25156 c.parent = parent
25157 c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
25158 return c
25159 }
25160
25161
25162
25163 func (c *OrganizationsEnvgroupsCreateCall) Name(name string) *OrganizationsEnvgroupsCreateCall {
25164 c.urlParams_.Set("name", name)
25165 return c
25166 }
25167
25168
25169
25170
25171 func (c *OrganizationsEnvgroupsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsCreateCall {
25172 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25173 return c
25174 }
25175
25176
25177 func (c *OrganizationsEnvgroupsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsCreateCall {
25178 c.ctx_ = ctx
25179 return c
25180 }
25181
25182
25183
25184 func (c *OrganizationsEnvgroupsCreateCall) Header() http.Header {
25185 if c.header_ == nil {
25186 c.header_ = make(http.Header)
25187 }
25188 return c.header_
25189 }
25190
25191 func (c *OrganizationsEnvgroupsCreateCall) doRequest(alt string) (*http.Response, error) {
25192 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25193 var body io.Reader = nil
25194 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
25195 if err != nil {
25196 return nil, err
25197 }
25198 c.urlParams_.Set("alt", alt)
25199 c.urlParams_.Set("prettyPrint", "false")
25200 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
25201 urls += "?" + c.urlParams_.Encode()
25202 req, err := http.NewRequest("POST", urls, body)
25203 if err != nil {
25204 return nil, err
25205 }
25206 req.Header = reqHeaders
25207 googleapi.Expand(req.URL, map[string]string{
25208 "parent": c.parent,
25209 })
25210 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25211 }
25212
25213
25214
25215
25216
25217
25218
25219 func (c *OrganizationsEnvgroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25220 gensupport.SetOptions(c.urlParams_, opts...)
25221 res, err := c.doRequest("json")
25222 if res != nil && res.StatusCode == http.StatusNotModified {
25223 if res.Body != nil {
25224 res.Body.Close()
25225 }
25226 return nil, gensupport.WrapError(&googleapi.Error{
25227 Code: res.StatusCode,
25228 Header: res.Header,
25229 })
25230 }
25231 if err != nil {
25232 return nil, err
25233 }
25234 defer googleapi.CloseBody(res)
25235 if err := googleapi.CheckResponse(res); err != nil {
25236 return nil, gensupport.WrapError(err)
25237 }
25238 ret := &GoogleLongrunningOperation{
25239 ServerResponse: googleapi.ServerResponse{
25240 Header: res.Header,
25241 HTTPStatusCode: res.StatusCode,
25242 },
25243 }
25244 target := &ret
25245 if err := gensupport.DecodeResponse(target, res); err != nil {
25246 return nil, err
25247 }
25248 return ret, nil
25249 }
25250
25251 type OrganizationsEnvgroupsDeleteCall struct {
25252 s *Service
25253 name string
25254 urlParams_ gensupport.URLParams
25255 ctx_ context.Context
25256 header_ http.Header
25257 }
25258
25259
25260
25261
25262
25263 func (r *OrganizationsEnvgroupsService) Delete(name string) *OrganizationsEnvgroupsDeleteCall {
25264 c := &OrganizationsEnvgroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25265 c.name = name
25266 return c
25267 }
25268
25269
25270
25271
25272 func (c *OrganizationsEnvgroupsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsDeleteCall {
25273 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25274 return c
25275 }
25276
25277
25278 func (c *OrganizationsEnvgroupsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsDeleteCall {
25279 c.ctx_ = ctx
25280 return c
25281 }
25282
25283
25284
25285 func (c *OrganizationsEnvgroupsDeleteCall) Header() http.Header {
25286 if c.header_ == nil {
25287 c.header_ = make(http.Header)
25288 }
25289 return c.header_
25290 }
25291
25292 func (c *OrganizationsEnvgroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
25293 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25294 var body io.Reader = nil
25295 c.urlParams_.Set("alt", alt)
25296 c.urlParams_.Set("prettyPrint", "false")
25297 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25298 urls += "?" + c.urlParams_.Encode()
25299 req, err := http.NewRequest("DELETE", urls, body)
25300 if err != nil {
25301 return nil, err
25302 }
25303 req.Header = reqHeaders
25304 googleapi.Expand(req.URL, map[string]string{
25305 "name": c.name,
25306 })
25307 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25308 }
25309
25310
25311
25312
25313
25314
25315
25316 func (c *OrganizationsEnvgroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25317 gensupport.SetOptions(c.urlParams_, opts...)
25318 res, err := c.doRequest("json")
25319 if res != nil && res.StatusCode == http.StatusNotModified {
25320 if res.Body != nil {
25321 res.Body.Close()
25322 }
25323 return nil, gensupport.WrapError(&googleapi.Error{
25324 Code: res.StatusCode,
25325 Header: res.Header,
25326 })
25327 }
25328 if err != nil {
25329 return nil, err
25330 }
25331 defer googleapi.CloseBody(res)
25332 if err := googleapi.CheckResponse(res); err != nil {
25333 return nil, gensupport.WrapError(err)
25334 }
25335 ret := &GoogleLongrunningOperation{
25336 ServerResponse: googleapi.ServerResponse{
25337 Header: res.Header,
25338 HTTPStatusCode: res.StatusCode,
25339 },
25340 }
25341 target := &ret
25342 if err := gensupport.DecodeResponse(target, res); err != nil {
25343 return nil, err
25344 }
25345 return ret, nil
25346 }
25347
25348 type OrganizationsEnvgroupsGetCall struct {
25349 s *Service
25350 name string
25351 urlParams_ gensupport.URLParams
25352 ifNoneMatch_ string
25353 ctx_ context.Context
25354 header_ http.Header
25355 }
25356
25357
25358
25359
25360
25361 func (r *OrganizationsEnvgroupsService) Get(name string) *OrganizationsEnvgroupsGetCall {
25362 c := &OrganizationsEnvgroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25363 c.name = name
25364 return c
25365 }
25366
25367
25368
25369
25370 func (c *OrganizationsEnvgroupsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetCall {
25371 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25372 return c
25373 }
25374
25375
25376
25377
25378 func (c *OrganizationsEnvgroupsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetCall {
25379 c.ifNoneMatch_ = entityTag
25380 return c
25381 }
25382
25383
25384 func (c *OrganizationsEnvgroupsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetCall {
25385 c.ctx_ = ctx
25386 return c
25387 }
25388
25389
25390
25391 func (c *OrganizationsEnvgroupsGetCall) Header() http.Header {
25392 if c.header_ == nil {
25393 c.header_ = make(http.Header)
25394 }
25395 return c.header_
25396 }
25397
25398 func (c *OrganizationsEnvgroupsGetCall) doRequest(alt string) (*http.Response, error) {
25399 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25400 if c.ifNoneMatch_ != "" {
25401 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25402 }
25403 var body io.Reader = nil
25404 c.urlParams_.Set("alt", alt)
25405 c.urlParams_.Set("prettyPrint", "false")
25406 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25407 urls += "?" + c.urlParams_.Encode()
25408 req, err := http.NewRequest("GET", urls, body)
25409 if err != nil {
25410 return nil, err
25411 }
25412 req.Header = reqHeaders
25413 googleapi.Expand(req.URL, map[string]string{
25414 "name": c.name,
25415 })
25416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25417 }
25418
25419
25420
25421
25422
25423
25424
25425 func (c *OrganizationsEnvgroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroup, error) {
25426 gensupport.SetOptions(c.urlParams_, opts...)
25427 res, err := c.doRequest("json")
25428 if res != nil && res.StatusCode == http.StatusNotModified {
25429 if res.Body != nil {
25430 res.Body.Close()
25431 }
25432 return nil, gensupport.WrapError(&googleapi.Error{
25433 Code: res.StatusCode,
25434 Header: res.Header,
25435 })
25436 }
25437 if err != nil {
25438 return nil, err
25439 }
25440 defer googleapi.CloseBody(res)
25441 if err := googleapi.CheckResponse(res); err != nil {
25442 return nil, gensupport.WrapError(err)
25443 }
25444 ret := &GoogleCloudApigeeV1EnvironmentGroup{
25445 ServerResponse: googleapi.ServerResponse{
25446 Header: res.Header,
25447 HTTPStatusCode: res.StatusCode,
25448 },
25449 }
25450 target := &ret
25451 if err := gensupport.DecodeResponse(target, res); err != nil {
25452 return nil, err
25453 }
25454 return ret, nil
25455 }
25456
25457 type OrganizationsEnvgroupsGetDeployedIngressConfigCall struct {
25458 s *Service
25459 name string
25460 urlParams_ gensupport.URLParams
25461 ifNoneMatch_ string
25462 ctx_ context.Context
25463 header_ http.Header
25464 }
25465
25466
25467
25468
25469
25470
25471
25472 func (r *OrganizationsEnvgroupsService) GetDeployedIngressConfig(name string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
25473 c := &OrganizationsEnvgroupsGetDeployedIngressConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25474 c.name = name
25475 return c
25476 }
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) View(view string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
25498 c.urlParams_.Set("view", view)
25499 return c
25500 }
25501
25502
25503
25504
25505 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
25506 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25507 return c
25508 }
25509
25510
25511
25512
25513 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
25514 c.ifNoneMatch_ = entityTag
25515 return c
25516 }
25517
25518
25519 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Context(ctx context.Context) *OrganizationsEnvgroupsGetDeployedIngressConfigCall {
25520 c.ctx_ = ctx
25521 return c
25522 }
25523
25524
25525
25526 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Header() http.Header {
25527 if c.header_ == nil {
25528 c.header_ = make(http.Header)
25529 }
25530 return c.header_
25531 }
25532
25533 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) doRequest(alt string) (*http.Response, error) {
25534 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25535 if c.ifNoneMatch_ != "" {
25536 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25537 }
25538 var body io.Reader = nil
25539 c.urlParams_.Set("alt", alt)
25540 c.urlParams_.Set("prettyPrint", "false")
25541 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25542 urls += "?" + c.urlParams_.Encode()
25543 req, err := http.NewRequest("GET", urls, body)
25544 if err != nil {
25545 return nil, err
25546 }
25547 req.Header = reqHeaders
25548 googleapi.Expand(req.URL, map[string]string{
25549 "name": c.name,
25550 })
25551 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25552 }
25553
25554
25555
25556
25557
25558
25559
25560 func (c *OrganizationsEnvgroupsGetDeployedIngressConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupConfig, error) {
25561 gensupport.SetOptions(c.urlParams_, opts...)
25562 res, err := c.doRequest("json")
25563 if res != nil && res.StatusCode == http.StatusNotModified {
25564 if res.Body != nil {
25565 res.Body.Close()
25566 }
25567 return nil, gensupport.WrapError(&googleapi.Error{
25568 Code: res.StatusCode,
25569 Header: res.Header,
25570 })
25571 }
25572 if err != nil {
25573 return nil, err
25574 }
25575 defer googleapi.CloseBody(res)
25576 if err := googleapi.CheckResponse(res); err != nil {
25577 return nil, gensupport.WrapError(err)
25578 }
25579 ret := &GoogleCloudApigeeV1EnvironmentGroupConfig{
25580 ServerResponse: googleapi.ServerResponse{
25581 Header: res.Header,
25582 HTTPStatusCode: res.StatusCode,
25583 },
25584 }
25585 target := &ret
25586 if err := gensupport.DecodeResponse(target, res); err != nil {
25587 return nil, err
25588 }
25589 return ret, nil
25590 }
25591
25592 type OrganizationsEnvgroupsListCall struct {
25593 s *Service
25594 parent string
25595 urlParams_ gensupport.URLParams
25596 ifNoneMatch_ string
25597 ctx_ context.Context
25598 header_ http.Header
25599 }
25600
25601
25602
25603
25604
25605 func (r *OrganizationsEnvgroupsService) List(parent string) *OrganizationsEnvgroupsListCall {
25606 c := &OrganizationsEnvgroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25607 c.parent = parent
25608 return c
25609 }
25610
25611
25612
25613 func (c *OrganizationsEnvgroupsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsListCall {
25614 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25615 return c
25616 }
25617
25618
25619
25620
25621 func (c *OrganizationsEnvgroupsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsListCall {
25622 c.urlParams_.Set("pageToken", pageToken)
25623 return c
25624 }
25625
25626
25627
25628
25629 func (c *OrganizationsEnvgroupsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsListCall {
25630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25631 return c
25632 }
25633
25634
25635
25636
25637 func (c *OrganizationsEnvgroupsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsListCall {
25638 c.ifNoneMatch_ = entityTag
25639 return c
25640 }
25641
25642
25643 func (c *OrganizationsEnvgroupsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsListCall {
25644 c.ctx_ = ctx
25645 return c
25646 }
25647
25648
25649
25650 func (c *OrganizationsEnvgroupsListCall) Header() http.Header {
25651 if c.header_ == nil {
25652 c.header_ = make(http.Header)
25653 }
25654 return c.header_
25655 }
25656
25657 func (c *OrganizationsEnvgroupsListCall) doRequest(alt string) (*http.Response, error) {
25658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25659 if c.ifNoneMatch_ != "" {
25660 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25661 }
25662 var body io.Reader = nil
25663 c.urlParams_.Set("alt", alt)
25664 c.urlParams_.Set("prettyPrint", "false")
25665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/envgroups")
25666 urls += "?" + c.urlParams_.Encode()
25667 req, err := http.NewRequest("GET", urls, body)
25668 if err != nil {
25669 return nil, err
25670 }
25671 req.Header = reqHeaders
25672 googleapi.Expand(req.URL, map[string]string{
25673 "parent": c.parent,
25674 })
25675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25676 }
25677
25678
25679
25680
25681
25682
25683
25684 func (c *OrganizationsEnvgroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupsResponse, error) {
25685 gensupport.SetOptions(c.urlParams_, opts...)
25686 res, err := c.doRequest("json")
25687 if res != nil && res.StatusCode == http.StatusNotModified {
25688 if res.Body != nil {
25689 res.Body.Close()
25690 }
25691 return nil, gensupport.WrapError(&googleapi.Error{
25692 Code: res.StatusCode,
25693 Header: res.Header,
25694 })
25695 }
25696 if err != nil {
25697 return nil, err
25698 }
25699 defer googleapi.CloseBody(res)
25700 if err := googleapi.CheckResponse(res); err != nil {
25701 return nil, gensupport.WrapError(err)
25702 }
25703 ret := &GoogleCloudApigeeV1ListEnvironmentGroupsResponse{
25704 ServerResponse: googleapi.ServerResponse{
25705 Header: res.Header,
25706 HTTPStatusCode: res.StatusCode,
25707 },
25708 }
25709 target := &ret
25710 if err := gensupport.DecodeResponse(target, res); err != nil {
25711 return nil, err
25712 }
25713 return ret, nil
25714 }
25715
25716
25717
25718
25719 func (c *OrganizationsEnvgroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupsResponse) error) error {
25720 c.ctx_ = ctx
25721 defer c.PageToken(c.urlParams_.Get("pageToken"))
25722 for {
25723 x, err := c.Do()
25724 if err != nil {
25725 return err
25726 }
25727 if err := f(x); err != nil {
25728 return err
25729 }
25730 if x.NextPageToken == "" {
25731 return nil
25732 }
25733 c.PageToken(x.NextPageToken)
25734 }
25735 }
25736
25737 type OrganizationsEnvgroupsPatchCall struct {
25738 s *Service
25739 name string
25740 googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup
25741 urlParams_ gensupport.URLParams
25742 ctx_ context.Context
25743 header_ http.Header
25744 }
25745
25746
25747
25748
25749
25750 func (r *OrganizationsEnvgroupsService) Patch(name string, googlecloudapigeev1environmentgroup *GoogleCloudApigeeV1EnvironmentGroup) *OrganizationsEnvgroupsPatchCall {
25751 c := &OrganizationsEnvgroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25752 c.name = name
25753 c.googlecloudapigeev1environmentgroup = googlecloudapigeev1environmentgroup
25754 return c
25755 }
25756
25757
25758
25759 func (c *OrganizationsEnvgroupsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvgroupsPatchCall {
25760 c.urlParams_.Set("updateMask", updateMask)
25761 return c
25762 }
25763
25764
25765
25766
25767 func (c *OrganizationsEnvgroupsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsPatchCall {
25768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25769 return c
25770 }
25771
25772
25773 func (c *OrganizationsEnvgroupsPatchCall) Context(ctx context.Context) *OrganizationsEnvgroupsPatchCall {
25774 c.ctx_ = ctx
25775 return c
25776 }
25777
25778
25779
25780 func (c *OrganizationsEnvgroupsPatchCall) Header() http.Header {
25781 if c.header_ == nil {
25782 c.header_ = make(http.Header)
25783 }
25784 return c.header_
25785 }
25786
25787 func (c *OrganizationsEnvgroupsPatchCall) doRequest(alt string) (*http.Response, error) {
25788 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25789 var body io.Reader = nil
25790 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroup)
25791 if err != nil {
25792 return nil, err
25793 }
25794 c.urlParams_.Set("alt", alt)
25795 c.urlParams_.Set("prettyPrint", "false")
25796 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25797 urls += "?" + c.urlParams_.Encode()
25798 req, err := http.NewRequest("PATCH", urls, body)
25799 if err != nil {
25800 return nil, err
25801 }
25802 req.Header = reqHeaders
25803 googleapi.Expand(req.URL, map[string]string{
25804 "name": c.name,
25805 })
25806 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25807 }
25808
25809
25810
25811
25812
25813
25814
25815 func (c *OrganizationsEnvgroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25816 gensupport.SetOptions(c.urlParams_, opts...)
25817 res, err := c.doRequest("json")
25818 if res != nil && res.StatusCode == http.StatusNotModified {
25819 if res.Body != nil {
25820 res.Body.Close()
25821 }
25822 return nil, gensupport.WrapError(&googleapi.Error{
25823 Code: res.StatusCode,
25824 Header: res.Header,
25825 })
25826 }
25827 if err != nil {
25828 return nil, err
25829 }
25830 defer googleapi.CloseBody(res)
25831 if err := googleapi.CheckResponse(res); err != nil {
25832 return nil, gensupport.WrapError(err)
25833 }
25834 ret := &GoogleLongrunningOperation{
25835 ServerResponse: googleapi.ServerResponse{
25836 Header: res.Header,
25837 HTTPStatusCode: res.StatusCode,
25838 },
25839 }
25840 target := &ret
25841 if err := gensupport.DecodeResponse(target, res); err != nil {
25842 return nil, err
25843 }
25844 return ret, nil
25845 }
25846
25847 type OrganizationsEnvgroupsAttachmentsCreateCall struct {
25848 s *Service
25849 parent string
25850 googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment
25851 urlParams_ gensupport.URLParams
25852 ctx_ context.Context
25853 header_ http.Header
25854 }
25855
25856
25857
25858
25859
25860 func (r *OrganizationsEnvgroupsAttachmentsService) Create(parent string, googlecloudapigeev1environmentgroupattachment *GoogleCloudApigeeV1EnvironmentGroupAttachment) *OrganizationsEnvgroupsAttachmentsCreateCall {
25861 c := &OrganizationsEnvgroupsAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25862 c.parent = parent
25863 c.googlecloudapigeev1environmentgroupattachment = googlecloudapigeev1environmentgroupattachment
25864 return c
25865 }
25866
25867
25868
25869
25870 func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsCreateCall {
25871 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25872 return c
25873 }
25874
25875
25876 func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsCreateCall {
25877 c.ctx_ = ctx
25878 return c
25879 }
25880
25881
25882
25883 func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Header() http.Header {
25884 if c.header_ == nil {
25885 c.header_ = make(http.Header)
25886 }
25887 return c.header_
25888 }
25889
25890 func (c *OrganizationsEnvgroupsAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
25891 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25892 var body io.Reader = nil
25893 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environmentgroupattachment)
25894 if err != nil {
25895 return nil, err
25896 }
25897 c.urlParams_.Set("alt", alt)
25898 c.urlParams_.Set("prettyPrint", "false")
25899 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
25900 urls += "?" + c.urlParams_.Encode()
25901 req, err := http.NewRequest("POST", urls, body)
25902 if err != nil {
25903 return nil, err
25904 }
25905 req.Header = reqHeaders
25906 googleapi.Expand(req.URL, map[string]string{
25907 "parent": c.parent,
25908 })
25909 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25910 }
25911
25912
25913
25914
25915
25916
25917
25918 func (c *OrganizationsEnvgroupsAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25919 gensupport.SetOptions(c.urlParams_, opts...)
25920 res, err := c.doRequest("json")
25921 if res != nil && res.StatusCode == http.StatusNotModified {
25922 if res.Body != nil {
25923 res.Body.Close()
25924 }
25925 return nil, gensupport.WrapError(&googleapi.Error{
25926 Code: res.StatusCode,
25927 Header: res.Header,
25928 })
25929 }
25930 if err != nil {
25931 return nil, err
25932 }
25933 defer googleapi.CloseBody(res)
25934 if err := googleapi.CheckResponse(res); err != nil {
25935 return nil, gensupport.WrapError(err)
25936 }
25937 ret := &GoogleLongrunningOperation{
25938 ServerResponse: googleapi.ServerResponse{
25939 Header: res.Header,
25940 HTTPStatusCode: res.StatusCode,
25941 },
25942 }
25943 target := &ret
25944 if err := gensupport.DecodeResponse(target, res); err != nil {
25945 return nil, err
25946 }
25947 return ret, nil
25948 }
25949
25950 type OrganizationsEnvgroupsAttachmentsDeleteCall struct {
25951 s *Service
25952 name string
25953 urlParams_ gensupport.URLParams
25954 ctx_ context.Context
25955 header_ http.Header
25956 }
25957
25958
25959
25960
25961
25962
25963 func (r *OrganizationsEnvgroupsAttachmentsService) Delete(name string) *OrganizationsEnvgroupsAttachmentsDeleteCall {
25964 c := &OrganizationsEnvgroupsAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25965 c.name = name
25966 return c
25967 }
25968
25969
25970
25971
25972 func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsDeleteCall {
25973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25974 return c
25975 }
25976
25977
25978 func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsDeleteCall {
25979 c.ctx_ = ctx
25980 return c
25981 }
25982
25983
25984
25985 func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Header() http.Header {
25986 if c.header_ == nil {
25987 c.header_ = make(http.Header)
25988 }
25989 return c.header_
25990 }
25991
25992 func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25993 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25994 var body io.Reader = nil
25995 c.urlParams_.Set("alt", alt)
25996 c.urlParams_.Set("prettyPrint", "false")
25997 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25998 urls += "?" + c.urlParams_.Encode()
25999 req, err := http.NewRequest("DELETE", urls, body)
26000 if err != nil {
26001 return nil, err
26002 }
26003 req.Header = reqHeaders
26004 googleapi.Expand(req.URL, map[string]string{
26005 "name": c.name,
26006 })
26007 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26008 }
26009
26010
26011
26012
26013
26014
26015
26016 func (c *OrganizationsEnvgroupsAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26017 gensupport.SetOptions(c.urlParams_, opts...)
26018 res, err := c.doRequest("json")
26019 if res != nil && res.StatusCode == http.StatusNotModified {
26020 if res.Body != nil {
26021 res.Body.Close()
26022 }
26023 return nil, gensupport.WrapError(&googleapi.Error{
26024 Code: res.StatusCode,
26025 Header: res.Header,
26026 })
26027 }
26028 if err != nil {
26029 return nil, err
26030 }
26031 defer googleapi.CloseBody(res)
26032 if err := googleapi.CheckResponse(res); err != nil {
26033 return nil, gensupport.WrapError(err)
26034 }
26035 ret := &GoogleLongrunningOperation{
26036 ServerResponse: googleapi.ServerResponse{
26037 Header: res.Header,
26038 HTTPStatusCode: res.StatusCode,
26039 },
26040 }
26041 target := &ret
26042 if err := gensupport.DecodeResponse(target, res); err != nil {
26043 return nil, err
26044 }
26045 return ret, nil
26046 }
26047
26048 type OrganizationsEnvgroupsAttachmentsGetCall struct {
26049 s *Service
26050 name string
26051 urlParams_ gensupport.URLParams
26052 ifNoneMatch_ string
26053 ctx_ context.Context
26054 header_ http.Header
26055 }
26056
26057
26058
26059
26060
26061 func (r *OrganizationsEnvgroupsAttachmentsService) Get(name string) *OrganizationsEnvgroupsAttachmentsGetCall {
26062 c := &OrganizationsEnvgroupsAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26063 c.name = name
26064 return c
26065 }
26066
26067
26068
26069
26070 func (c *OrganizationsEnvgroupsAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsGetCall {
26071 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26072 return c
26073 }
26074
26075
26076
26077
26078 func (c *OrganizationsEnvgroupsAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsGetCall {
26079 c.ifNoneMatch_ = entityTag
26080 return c
26081 }
26082
26083
26084 func (c *OrganizationsEnvgroupsAttachmentsGetCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsGetCall {
26085 c.ctx_ = ctx
26086 return c
26087 }
26088
26089
26090
26091 func (c *OrganizationsEnvgroupsAttachmentsGetCall) Header() http.Header {
26092 if c.header_ == nil {
26093 c.header_ = make(http.Header)
26094 }
26095 return c.header_
26096 }
26097
26098 func (c *OrganizationsEnvgroupsAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
26099 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26100 if c.ifNoneMatch_ != "" {
26101 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26102 }
26103 var body io.Reader = nil
26104 c.urlParams_.Set("alt", alt)
26105 c.urlParams_.Set("prettyPrint", "false")
26106 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26107 urls += "?" + c.urlParams_.Encode()
26108 req, err := http.NewRequest("GET", urls, body)
26109 if err != nil {
26110 return nil, err
26111 }
26112 req.Header = reqHeaders
26113 googleapi.Expand(req.URL, map[string]string{
26114 "name": c.name,
26115 })
26116 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26117 }
26118
26119
26120
26121
26122
26123
26124
26125 func (c *OrganizationsEnvgroupsAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentGroupAttachment, error) {
26126 gensupport.SetOptions(c.urlParams_, opts...)
26127 res, err := c.doRequest("json")
26128 if res != nil && res.StatusCode == http.StatusNotModified {
26129 if res.Body != nil {
26130 res.Body.Close()
26131 }
26132 return nil, gensupport.WrapError(&googleapi.Error{
26133 Code: res.StatusCode,
26134 Header: res.Header,
26135 })
26136 }
26137 if err != nil {
26138 return nil, err
26139 }
26140 defer googleapi.CloseBody(res)
26141 if err := googleapi.CheckResponse(res); err != nil {
26142 return nil, gensupport.WrapError(err)
26143 }
26144 ret := &GoogleCloudApigeeV1EnvironmentGroupAttachment{
26145 ServerResponse: googleapi.ServerResponse{
26146 Header: res.Header,
26147 HTTPStatusCode: res.StatusCode,
26148 },
26149 }
26150 target := &ret
26151 if err := gensupport.DecodeResponse(target, res); err != nil {
26152 return nil, err
26153 }
26154 return ret, nil
26155 }
26156
26157 type OrganizationsEnvgroupsAttachmentsListCall struct {
26158 s *Service
26159 parent string
26160 urlParams_ gensupport.URLParams
26161 ifNoneMatch_ string
26162 ctx_ context.Context
26163 header_ http.Header
26164 }
26165
26166
26167
26168
26169
26170 func (r *OrganizationsEnvgroupsAttachmentsService) List(parent string) *OrganizationsEnvgroupsAttachmentsListCall {
26171 c := &OrganizationsEnvgroupsAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26172 c.parent = parent
26173 return c
26174 }
26175
26176
26177
26178 func (c *OrganizationsEnvgroupsAttachmentsListCall) PageSize(pageSize int64) *OrganizationsEnvgroupsAttachmentsListCall {
26179 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26180 return c
26181 }
26182
26183
26184
26185
26186 func (c *OrganizationsEnvgroupsAttachmentsListCall) PageToken(pageToken string) *OrganizationsEnvgroupsAttachmentsListCall {
26187 c.urlParams_.Set("pageToken", pageToken)
26188 return c
26189 }
26190
26191
26192
26193
26194 func (c *OrganizationsEnvgroupsAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvgroupsAttachmentsListCall {
26195 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26196 return c
26197 }
26198
26199
26200
26201
26202 func (c *OrganizationsEnvgroupsAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvgroupsAttachmentsListCall {
26203 c.ifNoneMatch_ = entityTag
26204 return c
26205 }
26206
26207
26208 func (c *OrganizationsEnvgroupsAttachmentsListCall) Context(ctx context.Context) *OrganizationsEnvgroupsAttachmentsListCall {
26209 c.ctx_ = ctx
26210 return c
26211 }
26212
26213
26214
26215 func (c *OrganizationsEnvgroupsAttachmentsListCall) Header() http.Header {
26216 if c.header_ == nil {
26217 c.header_ = make(http.Header)
26218 }
26219 return c.header_
26220 }
26221
26222 func (c *OrganizationsEnvgroupsAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
26223 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26224 if c.ifNoneMatch_ != "" {
26225 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26226 }
26227 var body io.Reader = nil
26228 c.urlParams_.Set("alt", alt)
26229 c.urlParams_.Set("prettyPrint", "false")
26230 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
26231 urls += "?" + c.urlParams_.Encode()
26232 req, err := http.NewRequest("GET", urls, body)
26233 if err != nil {
26234 return nil, err
26235 }
26236 req.Header = reqHeaders
26237 googleapi.Expand(req.URL, map[string]string{
26238 "parent": c.parent,
26239 })
26240 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26241 }
26242
26243
26244
26245
26246
26247
26248
26249 func (c *OrganizationsEnvgroupsAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse, error) {
26250 gensupport.SetOptions(c.urlParams_, opts...)
26251 res, err := c.doRequest("json")
26252 if res != nil && res.StatusCode == http.StatusNotModified {
26253 if res.Body != nil {
26254 res.Body.Close()
26255 }
26256 return nil, gensupport.WrapError(&googleapi.Error{
26257 Code: res.StatusCode,
26258 Header: res.Header,
26259 })
26260 }
26261 if err != nil {
26262 return nil, err
26263 }
26264 defer googleapi.CloseBody(res)
26265 if err := googleapi.CheckResponse(res); err != nil {
26266 return nil, gensupport.WrapError(err)
26267 }
26268 ret := &GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse{
26269 ServerResponse: googleapi.ServerResponse{
26270 Header: res.Header,
26271 HTTPStatusCode: res.StatusCode,
26272 },
26273 }
26274 target := &ret
26275 if err := gensupport.DecodeResponse(target, res); err != nil {
26276 return nil, err
26277 }
26278 return ret, nil
26279 }
26280
26281
26282
26283
26284 func (c *OrganizationsEnvgroupsAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse) error) error {
26285 c.ctx_ = ctx
26286 defer c.PageToken(c.urlParams_.Get("pageToken"))
26287 for {
26288 x, err := c.Do()
26289 if err != nil {
26290 return err
26291 }
26292 if err := f(x); err != nil {
26293 return err
26294 }
26295 if x.NextPageToken == "" {
26296 return nil
26297 }
26298 c.PageToken(x.NextPageToken)
26299 }
26300 }
26301
26302 type OrganizationsEnvironmentsCreateCall struct {
26303 s *Service
26304 parent string
26305 googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
26306 urlParams_ gensupport.URLParams
26307 ctx_ context.Context
26308 header_ http.Header
26309 }
26310
26311
26312
26313
26314
26315 func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
26316 c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26317 c.parent = parent
26318 c.googlecloudapigeev1environment = googlecloudapigeev1environment
26319 return c
26320 }
26321
26322
26323 func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
26324 c.urlParams_.Set("name", name)
26325 return c
26326 }
26327
26328
26329
26330
26331 func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
26332 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26333 return c
26334 }
26335
26336
26337 func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
26338 c.ctx_ = ctx
26339 return c
26340 }
26341
26342
26343
26344 func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
26345 if c.header_ == nil {
26346 c.header_ = make(http.Header)
26347 }
26348 return c.header_
26349 }
26350
26351 func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
26352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26353 var body io.Reader = nil
26354 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
26355 if err != nil {
26356 return nil, err
26357 }
26358 c.urlParams_.Set("alt", alt)
26359 c.urlParams_.Set("prettyPrint", "false")
26360 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
26361 urls += "?" + c.urlParams_.Encode()
26362 req, err := http.NewRequest("POST", urls, body)
26363 if err != nil {
26364 return nil, err
26365 }
26366 req.Header = reqHeaders
26367 googleapi.Expand(req.URL, map[string]string{
26368 "parent": c.parent,
26369 })
26370 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26371 }
26372
26373
26374
26375
26376
26377
26378
26379 func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26380 gensupport.SetOptions(c.urlParams_, opts...)
26381 res, err := c.doRequest("json")
26382 if res != nil && res.StatusCode == http.StatusNotModified {
26383 if res.Body != nil {
26384 res.Body.Close()
26385 }
26386 return nil, gensupport.WrapError(&googleapi.Error{
26387 Code: res.StatusCode,
26388 Header: res.Header,
26389 })
26390 }
26391 if err != nil {
26392 return nil, err
26393 }
26394 defer googleapi.CloseBody(res)
26395 if err := googleapi.CheckResponse(res); err != nil {
26396 return nil, gensupport.WrapError(err)
26397 }
26398 ret := &GoogleLongrunningOperation{
26399 ServerResponse: googleapi.ServerResponse{
26400 Header: res.Header,
26401 HTTPStatusCode: res.StatusCode,
26402 },
26403 }
26404 target := &ret
26405 if err := gensupport.DecodeResponse(target, res); err != nil {
26406 return nil, err
26407 }
26408 return ret, nil
26409 }
26410
26411 type OrganizationsEnvironmentsDeleteCall struct {
26412 s *Service
26413 name string
26414 urlParams_ gensupport.URLParams
26415 ctx_ context.Context
26416 header_ http.Header
26417 }
26418
26419
26420
26421
26422
26423
26424
26425
26426 func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
26427 c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26428 c.name = name
26429 return c
26430 }
26431
26432
26433
26434
26435 func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
26436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26437 return c
26438 }
26439
26440
26441 func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
26442 c.ctx_ = ctx
26443 return c
26444 }
26445
26446
26447
26448 func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
26449 if c.header_ == nil {
26450 c.header_ = make(http.Header)
26451 }
26452 return c.header_
26453 }
26454
26455 func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
26456 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26457 var body io.Reader = nil
26458 c.urlParams_.Set("alt", alt)
26459 c.urlParams_.Set("prettyPrint", "false")
26460 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26461 urls += "?" + c.urlParams_.Encode()
26462 req, err := http.NewRequest("DELETE", urls, body)
26463 if err != nil {
26464 return nil, err
26465 }
26466 req.Header = reqHeaders
26467 googleapi.Expand(req.URL, map[string]string{
26468 "name": c.name,
26469 })
26470 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26471 }
26472
26473
26474
26475
26476
26477
26478
26479 func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26480 gensupport.SetOptions(c.urlParams_, opts...)
26481 res, err := c.doRequest("json")
26482 if res != nil && res.StatusCode == http.StatusNotModified {
26483 if res.Body != nil {
26484 res.Body.Close()
26485 }
26486 return nil, gensupport.WrapError(&googleapi.Error{
26487 Code: res.StatusCode,
26488 Header: res.Header,
26489 })
26490 }
26491 if err != nil {
26492 return nil, err
26493 }
26494 defer googleapi.CloseBody(res)
26495 if err := googleapi.CheckResponse(res); err != nil {
26496 return nil, gensupport.WrapError(err)
26497 }
26498 ret := &GoogleLongrunningOperation{
26499 ServerResponse: googleapi.ServerResponse{
26500 Header: res.Header,
26501 HTTPStatusCode: res.StatusCode,
26502 },
26503 }
26504 target := &ret
26505 if err := gensupport.DecodeResponse(target, res); err != nil {
26506 return nil, err
26507 }
26508 return ret, nil
26509 }
26510
26511 type OrganizationsEnvironmentsGetCall struct {
26512 s *Service
26513 name string
26514 urlParams_ gensupport.URLParams
26515 ifNoneMatch_ string
26516 ctx_ context.Context
26517 header_ http.Header
26518 }
26519
26520
26521
26522
26523
26524 func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
26525 c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26526 c.name = name
26527 return c
26528 }
26529
26530
26531
26532
26533 func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
26534 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26535 return c
26536 }
26537
26538
26539
26540
26541 func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
26542 c.ifNoneMatch_ = entityTag
26543 return c
26544 }
26545
26546
26547 func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
26548 c.ctx_ = ctx
26549 return c
26550 }
26551
26552
26553
26554 func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
26555 if c.header_ == nil {
26556 c.header_ = make(http.Header)
26557 }
26558 return c.header_
26559 }
26560
26561 func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
26562 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26563 if c.ifNoneMatch_ != "" {
26564 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26565 }
26566 var body io.Reader = nil
26567 c.urlParams_.Set("alt", alt)
26568 c.urlParams_.Set("prettyPrint", "false")
26569 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26570 urls += "?" + c.urlParams_.Encode()
26571 req, err := http.NewRequest("GET", urls, body)
26572 if err != nil {
26573 return nil, err
26574 }
26575 req.Header = reqHeaders
26576 googleapi.Expand(req.URL, map[string]string{
26577 "name": c.name,
26578 })
26579 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26580 }
26581
26582
26583
26584
26585
26586
26587
26588 func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
26589 gensupport.SetOptions(c.urlParams_, opts...)
26590 res, err := c.doRequest("json")
26591 if res != nil && res.StatusCode == http.StatusNotModified {
26592 if res.Body != nil {
26593 res.Body.Close()
26594 }
26595 return nil, gensupport.WrapError(&googleapi.Error{
26596 Code: res.StatusCode,
26597 Header: res.Header,
26598 })
26599 }
26600 if err != nil {
26601 return nil, err
26602 }
26603 defer googleapi.CloseBody(res)
26604 if err := googleapi.CheckResponse(res); err != nil {
26605 return nil, gensupport.WrapError(err)
26606 }
26607 ret := &GoogleCloudApigeeV1Environment{
26608 ServerResponse: googleapi.ServerResponse{
26609 Header: res.Header,
26610 HTTPStatusCode: res.StatusCode,
26611 },
26612 }
26613 target := &ret
26614 if err := gensupport.DecodeResponse(target, res); err != nil {
26615 return nil, err
26616 }
26617 return ret, nil
26618 }
26619
26620 type OrganizationsEnvironmentsGetAddonsConfigCall struct {
26621 s *Service
26622 name string
26623 urlParams_ gensupport.URLParams
26624 ifNoneMatch_ string
26625 ctx_ context.Context
26626 header_ http.Header
26627 }
26628
26629
26630
26631
26632
26633 func (r *OrganizationsEnvironmentsService) GetAddonsConfig(name string) *OrganizationsEnvironmentsGetAddonsConfigCall {
26634 c := &OrganizationsEnvironmentsGetAddonsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26635 c.name = name
26636 return c
26637 }
26638
26639
26640
26641
26642 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetAddonsConfigCall {
26643 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26644 return c
26645 }
26646
26647
26648
26649
26650 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetAddonsConfigCall {
26651 c.ifNoneMatch_ = entityTag
26652 return c
26653 }
26654
26655
26656 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetAddonsConfigCall {
26657 c.ctx_ = ctx
26658 return c
26659 }
26660
26661
26662
26663 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Header() http.Header {
26664 if c.header_ == nil {
26665 c.header_ = make(http.Header)
26666 }
26667 return c.header_
26668 }
26669
26670 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) doRequest(alt string) (*http.Response, error) {
26671 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26672 if c.ifNoneMatch_ != "" {
26673 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26674 }
26675 var body io.Reader = nil
26676 c.urlParams_.Set("alt", alt)
26677 c.urlParams_.Set("prettyPrint", "false")
26678 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26679 urls += "?" + c.urlParams_.Encode()
26680 req, err := http.NewRequest("GET", urls, body)
26681 if err != nil {
26682 return nil, err
26683 }
26684 req.Header = reqHeaders
26685 googleapi.Expand(req.URL, map[string]string{
26686 "name": c.name,
26687 })
26688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26689 }
26690
26691
26692
26693
26694
26695
26696
26697 func (c *OrganizationsEnvironmentsGetAddonsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AddonsConfig, error) {
26698 gensupport.SetOptions(c.urlParams_, opts...)
26699 res, err := c.doRequest("json")
26700 if res != nil && res.StatusCode == http.StatusNotModified {
26701 if res.Body != nil {
26702 res.Body.Close()
26703 }
26704 return nil, gensupport.WrapError(&googleapi.Error{
26705 Code: res.StatusCode,
26706 Header: res.Header,
26707 })
26708 }
26709 if err != nil {
26710 return nil, err
26711 }
26712 defer googleapi.CloseBody(res)
26713 if err := googleapi.CheckResponse(res); err != nil {
26714 return nil, gensupport.WrapError(err)
26715 }
26716 ret := &GoogleCloudApigeeV1AddonsConfig{
26717 ServerResponse: googleapi.ServerResponse{
26718 Header: res.Header,
26719 HTTPStatusCode: res.StatusCode,
26720 },
26721 }
26722 target := &ret
26723 if err := gensupport.DecodeResponse(target, res); err != nil {
26724 return nil, err
26725 }
26726 return ret, nil
26727 }
26728
26729 type OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall struct {
26730 s *Service
26731 name string
26732 urlParams_ gensupport.URLParams
26733 ifNoneMatch_ string
26734 ctx_ context.Context
26735 header_ http.Header
26736 }
26737
26738
26739
26740
26741
26742
26743
26744
26745 func (r *OrganizationsEnvironmentsService) GetApiSecurityRuntimeConfig(name string) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
26746 c := &OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26747 c.name = name
26748 return c
26749 }
26750
26751
26752
26753
26754 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
26755 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26756 return c
26757 }
26758
26759
26760
26761
26762 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
26763 c.ifNoneMatch_ = entityTag
26764 return c
26765 }
26766
26767
26768 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall {
26769 c.ctx_ = ctx
26770 return c
26771 }
26772
26773
26774
26775 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Header() http.Header {
26776 if c.header_ == nil {
26777 c.header_ = make(http.Header)
26778 }
26779 return c.header_
26780 }
26781
26782 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) doRequest(alt string) (*http.Response, error) {
26783 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26784 if c.ifNoneMatch_ != "" {
26785 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26786 }
26787 var body io.Reader = nil
26788 c.urlParams_.Set("alt", alt)
26789 c.urlParams_.Set("prettyPrint", "false")
26790 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26791 urls += "?" + c.urlParams_.Encode()
26792 req, err := http.NewRequest("GET", urls, body)
26793 if err != nil {
26794 return nil, err
26795 }
26796 req.Header = reqHeaders
26797 googleapi.Expand(req.URL, map[string]string{
26798 "name": c.name,
26799 })
26800 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26801 }
26802
26803
26804
26805
26806
26807
26808
26809 func (c *OrganizationsEnvironmentsGetApiSecurityRuntimeConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiSecurityRuntimeConfig, error) {
26810 gensupport.SetOptions(c.urlParams_, opts...)
26811 res, err := c.doRequest("json")
26812 if res != nil && res.StatusCode == http.StatusNotModified {
26813 if res.Body != nil {
26814 res.Body.Close()
26815 }
26816 return nil, gensupport.WrapError(&googleapi.Error{
26817 Code: res.StatusCode,
26818 Header: res.Header,
26819 })
26820 }
26821 if err != nil {
26822 return nil, err
26823 }
26824 defer googleapi.CloseBody(res)
26825 if err := googleapi.CheckResponse(res); err != nil {
26826 return nil, gensupport.WrapError(err)
26827 }
26828 ret := &GoogleCloudApigeeV1ApiSecurityRuntimeConfig{
26829 ServerResponse: googleapi.ServerResponse{
26830 Header: res.Header,
26831 HTTPStatusCode: res.StatusCode,
26832 },
26833 }
26834 target := &ret
26835 if err := gensupport.DecodeResponse(target, res); err != nil {
26836 return nil, err
26837 }
26838 return ret, nil
26839 }
26840
26841 type OrganizationsEnvironmentsGetDebugmaskCall struct {
26842 s *Service
26843 name string
26844 urlParams_ gensupport.URLParams
26845 ifNoneMatch_ string
26846 ctx_ context.Context
26847 header_ http.Header
26848 }
26849
26850
26851
26852
26853
26854 func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
26855 c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26856 c.name = name
26857 return c
26858 }
26859
26860
26861
26862
26863 func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
26864 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26865 return c
26866 }
26867
26868
26869
26870
26871 func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
26872 c.ifNoneMatch_ = entityTag
26873 return c
26874 }
26875
26876
26877 func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
26878 c.ctx_ = ctx
26879 return c
26880 }
26881
26882
26883
26884 func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
26885 if c.header_ == nil {
26886 c.header_ = make(http.Header)
26887 }
26888 return c.header_
26889 }
26890
26891 func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
26892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26893 if c.ifNoneMatch_ != "" {
26894 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26895 }
26896 var body io.Reader = nil
26897 c.urlParams_.Set("alt", alt)
26898 c.urlParams_.Set("prettyPrint", "false")
26899 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26900 urls += "?" + c.urlParams_.Encode()
26901 req, err := http.NewRequest("GET", urls, body)
26902 if err != nil {
26903 return nil, err
26904 }
26905 req.Header = reqHeaders
26906 googleapi.Expand(req.URL, map[string]string{
26907 "name": c.name,
26908 })
26909 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26910 }
26911
26912
26913
26914
26915
26916
26917
26918 func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
26919 gensupport.SetOptions(c.urlParams_, opts...)
26920 res, err := c.doRequest("json")
26921 if res != nil && res.StatusCode == http.StatusNotModified {
26922 if res.Body != nil {
26923 res.Body.Close()
26924 }
26925 return nil, gensupport.WrapError(&googleapi.Error{
26926 Code: res.StatusCode,
26927 Header: res.Header,
26928 })
26929 }
26930 if err != nil {
26931 return nil, err
26932 }
26933 defer googleapi.CloseBody(res)
26934 if err := googleapi.CheckResponse(res); err != nil {
26935 return nil, gensupport.WrapError(err)
26936 }
26937 ret := &GoogleCloudApigeeV1DebugMask{
26938 ServerResponse: googleapi.ServerResponse{
26939 Header: res.Header,
26940 HTTPStatusCode: res.StatusCode,
26941 },
26942 }
26943 target := &ret
26944 if err := gensupport.DecodeResponse(target, res); err != nil {
26945 return nil, err
26946 }
26947 return ret, nil
26948 }
26949
26950 type OrganizationsEnvironmentsGetDeployedConfigCall struct {
26951 s *Service
26952 name string
26953 urlParams_ gensupport.URLParams
26954 ifNoneMatch_ string
26955 ctx_ context.Context
26956 header_ http.Header
26957 }
26958
26959
26960
26961
26962
26963
26964 func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
26965 c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26966 c.name = name
26967 return c
26968 }
26969
26970
26971
26972
26973 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
26974 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26975 return c
26976 }
26977
26978
26979
26980
26981 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
26982 c.ifNoneMatch_ = entityTag
26983 return c
26984 }
26985
26986
26987 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
26988 c.ctx_ = ctx
26989 return c
26990 }
26991
26992
26993
26994 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
26995 if c.header_ == nil {
26996 c.header_ = make(http.Header)
26997 }
26998 return c.header_
26999 }
27000
27001 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
27002 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27003 if c.ifNoneMatch_ != "" {
27004 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27005 }
27006 var body io.Reader = nil
27007 c.urlParams_.Set("alt", alt)
27008 c.urlParams_.Set("prettyPrint", "false")
27009 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27010 urls += "?" + c.urlParams_.Encode()
27011 req, err := http.NewRequest("GET", urls, body)
27012 if err != nil {
27013 return nil, err
27014 }
27015 req.Header = reqHeaders
27016 googleapi.Expand(req.URL, map[string]string{
27017 "name": c.name,
27018 })
27019 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27020 }
27021
27022
27023
27024
27025
27026
27027
27028 func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
27029 gensupport.SetOptions(c.urlParams_, opts...)
27030 res, err := c.doRequest("json")
27031 if res != nil && res.StatusCode == http.StatusNotModified {
27032 if res.Body != nil {
27033 res.Body.Close()
27034 }
27035 return nil, gensupport.WrapError(&googleapi.Error{
27036 Code: res.StatusCode,
27037 Header: res.Header,
27038 })
27039 }
27040 if err != nil {
27041 return nil, err
27042 }
27043 defer googleapi.CloseBody(res)
27044 if err := googleapi.CheckResponse(res); err != nil {
27045 return nil, gensupport.WrapError(err)
27046 }
27047 ret := &GoogleCloudApigeeV1EnvironmentConfig{
27048 ServerResponse: googleapi.ServerResponse{
27049 Header: res.Header,
27050 HTTPStatusCode: res.StatusCode,
27051 },
27052 }
27053 target := &ret
27054 if err := gensupport.DecodeResponse(target, res); err != nil {
27055 return nil, err
27056 }
27057 return ret, nil
27058 }
27059
27060 type OrganizationsEnvironmentsGetIamPolicyCall struct {
27061 s *Service
27062 resource string
27063 urlParams_ gensupport.URLParams
27064 ifNoneMatch_ string
27065 ctx_ context.Context
27066 header_ http.Header
27067 }
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078 func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
27079 c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27080 c.resource = resource
27081 return c
27082 }
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096 func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
27097 c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
27098 return c
27099 }
27100
27101
27102
27103
27104 func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
27105 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27106 return c
27107 }
27108
27109
27110
27111
27112 func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
27113 c.ifNoneMatch_ = entityTag
27114 return c
27115 }
27116
27117
27118 func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
27119 c.ctx_ = ctx
27120 return c
27121 }
27122
27123
27124
27125 func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
27126 if c.header_ == nil {
27127 c.header_ = make(http.Header)
27128 }
27129 return c.header_
27130 }
27131
27132 func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
27133 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27134 if c.ifNoneMatch_ != "" {
27135 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27136 }
27137 var body io.Reader = nil
27138 c.urlParams_.Set("alt", alt)
27139 c.urlParams_.Set("prettyPrint", "false")
27140 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
27141 urls += "?" + c.urlParams_.Encode()
27142 req, err := http.NewRequest("GET", urls, body)
27143 if err != nil {
27144 return nil, err
27145 }
27146 req.Header = reqHeaders
27147 googleapi.Expand(req.URL, map[string]string{
27148 "resource": c.resource,
27149 })
27150 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27151 }
27152
27153
27154
27155
27156
27157
27158
27159 func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
27160 gensupport.SetOptions(c.urlParams_, opts...)
27161 res, err := c.doRequest("json")
27162 if res != nil && res.StatusCode == http.StatusNotModified {
27163 if res.Body != nil {
27164 res.Body.Close()
27165 }
27166 return nil, gensupport.WrapError(&googleapi.Error{
27167 Code: res.StatusCode,
27168 Header: res.Header,
27169 })
27170 }
27171 if err != nil {
27172 return nil, err
27173 }
27174 defer googleapi.CloseBody(res)
27175 if err := googleapi.CheckResponse(res); err != nil {
27176 return nil, gensupport.WrapError(err)
27177 }
27178 ret := &GoogleIamV1Policy{
27179 ServerResponse: googleapi.ServerResponse{
27180 Header: res.Header,
27181 HTTPStatusCode: res.StatusCode,
27182 },
27183 }
27184 target := &ret
27185 if err := gensupport.DecodeResponse(target, res); err != nil {
27186 return nil, err
27187 }
27188 return ret, nil
27189 }
27190
27191 type OrganizationsEnvironmentsGetSecurityActionsConfigCall struct {
27192 s *Service
27193 name string
27194 urlParams_ gensupport.URLParams
27195 ifNoneMatch_ string
27196 ctx_ context.Context
27197 header_ http.Header
27198 }
27199
27200
27201
27202
27203
27204
27205 func (r *OrganizationsEnvironmentsService) GetSecurityActionsConfig(name string) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
27206 c := &OrganizationsEnvironmentsGetSecurityActionsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27207 c.name = name
27208 return c
27209 }
27210
27211
27212
27213
27214 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
27215 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27216 return c
27217 }
27218
27219
27220
27221
27222 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
27223 c.ifNoneMatch_ = entityTag
27224 return c
27225 }
27226
27227
27228 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetSecurityActionsConfigCall {
27229 c.ctx_ = ctx
27230 return c
27231 }
27232
27233
27234
27235 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Header() http.Header {
27236 if c.header_ == nil {
27237 c.header_ = make(http.Header)
27238 }
27239 return c.header_
27240 }
27241
27242 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) doRequest(alt string) (*http.Response, error) {
27243 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27244 if c.ifNoneMatch_ != "" {
27245 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27246 }
27247 var body io.Reader = nil
27248 c.urlParams_.Set("alt", alt)
27249 c.urlParams_.Set("prettyPrint", "false")
27250 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27251 urls += "?" + c.urlParams_.Encode()
27252 req, err := http.NewRequest("GET", urls, body)
27253 if err != nil {
27254 return nil, err
27255 }
27256 req.Header = reqHeaders
27257 googleapi.Expand(req.URL, map[string]string{
27258 "name": c.name,
27259 })
27260 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27261 }
27262
27263
27264
27265
27266
27267
27268
27269 func (c *OrganizationsEnvironmentsGetSecurityActionsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityActionsConfig, error) {
27270 gensupport.SetOptions(c.urlParams_, opts...)
27271 res, err := c.doRequest("json")
27272 if res != nil && res.StatusCode == http.StatusNotModified {
27273 if res.Body != nil {
27274 res.Body.Close()
27275 }
27276 return nil, gensupport.WrapError(&googleapi.Error{
27277 Code: res.StatusCode,
27278 Header: res.Header,
27279 })
27280 }
27281 if err != nil {
27282 return nil, err
27283 }
27284 defer googleapi.CloseBody(res)
27285 if err := googleapi.CheckResponse(res); err != nil {
27286 return nil, gensupport.WrapError(err)
27287 }
27288 ret := &GoogleCloudApigeeV1SecurityActionsConfig{
27289 ServerResponse: googleapi.ServerResponse{
27290 Header: res.Header,
27291 HTTPStatusCode: res.StatusCode,
27292 },
27293 }
27294 target := &ret
27295 if err := gensupport.DecodeResponse(target, res); err != nil {
27296 return nil, err
27297 }
27298 return ret, nil
27299 }
27300
27301 type OrganizationsEnvironmentsGetTraceConfigCall struct {
27302 s *Service
27303 name string
27304 urlParams_ gensupport.URLParams
27305 ifNoneMatch_ string
27306 ctx_ context.Context
27307 header_ http.Header
27308 }
27309
27310
27311
27312
27313
27314 func (r *OrganizationsEnvironmentsService) GetTraceConfig(name string) *OrganizationsEnvironmentsGetTraceConfigCall {
27315 c := &OrganizationsEnvironmentsGetTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27316 c.name = name
27317 return c
27318 }
27319
27320
27321
27322
27323 func (c *OrganizationsEnvironmentsGetTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetTraceConfigCall {
27324 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27325 return c
27326 }
27327
27328
27329
27330
27331 func (c *OrganizationsEnvironmentsGetTraceConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetTraceConfigCall {
27332 c.ifNoneMatch_ = entityTag
27333 return c
27334 }
27335
27336
27337 func (c *OrganizationsEnvironmentsGetTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetTraceConfigCall {
27338 c.ctx_ = ctx
27339 return c
27340 }
27341
27342
27343
27344 func (c *OrganizationsEnvironmentsGetTraceConfigCall) Header() http.Header {
27345 if c.header_ == nil {
27346 c.header_ = make(http.Header)
27347 }
27348 return c.header_
27349 }
27350
27351 func (c *OrganizationsEnvironmentsGetTraceConfigCall) doRequest(alt string) (*http.Response, error) {
27352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27353 if c.ifNoneMatch_ != "" {
27354 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27355 }
27356 var body io.Reader = nil
27357 c.urlParams_.Set("alt", alt)
27358 c.urlParams_.Set("prettyPrint", "false")
27359 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27360 urls += "?" + c.urlParams_.Encode()
27361 req, err := http.NewRequest("GET", urls, body)
27362 if err != nil {
27363 return nil, err
27364 }
27365 req.Header = reqHeaders
27366 googleapi.Expand(req.URL, map[string]string{
27367 "name": c.name,
27368 })
27369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27370 }
27371
27372
27373
27374
27375
27376
27377
27378 func (c *OrganizationsEnvironmentsGetTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
27379 gensupport.SetOptions(c.urlParams_, opts...)
27380 res, err := c.doRequest("json")
27381 if res != nil && res.StatusCode == http.StatusNotModified {
27382 if res.Body != nil {
27383 res.Body.Close()
27384 }
27385 return nil, gensupport.WrapError(&googleapi.Error{
27386 Code: res.StatusCode,
27387 Header: res.Header,
27388 })
27389 }
27390 if err != nil {
27391 return nil, err
27392 }
27393 defer googleapi.CloseBody(res)
27394 if err := googleapi.CheckResponse(res); err != nil {
27395 return nil, gensupport.WrapError(err)
27396 }
27397 ret := &GoogleCloudApigeeV1TraceConfig{
27398 ServerResponse: googleapi.ServerResponse{
27399 Header: res.Header,
27400 HTTPStatusCode: res.StatusCode,
27401 },
27402 }
27403 target := &ret
27404 if err := gensupport.DecodeResponse(target, res); err != nil {
27405 return nil, err
27406 }
27407 return ret, nil
27408 }
27409
27410 type OrganizationsEnvironmentsModifyEnvironmentCall struct {
27411 s *Service
27412 name string
27413 googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
27414 urlParams_ gensupport.URLParams
27415 ctx_ context.Context
27416 header_ http.Header
27417 }
27418
27419
27420
27421
27422
27423
27424 func (r *OrganizationsEnvironmentsService) ModifyEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsModifyEnvironmentCall {
27425 c := &OrganizationsEnvironmentsModifyEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27426 c.name = name
27427 c.googlecloudapigeev1environment = googlecloudapigeev1environment
27428 return c
27429 }
27430
27431
27432
27433 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsModifyEnvironmentCall {
27434 c.urlParams_.Set("updateMask", updateMask)
27435 return c
27436 }
27437
27438
27439
27440
27441 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsModifyEnvironmentCall {
27442 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27443 return c
27444 }
27445
27446
27447 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsModifyEnvironmentCall {
27448 c.ctx_ = ctx
27449 return c
27450 }
27451
27452
27453
27454 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Header() http.Header {
27455 if c.header_ == nil {
27456 c.header_ = make(http.Header)
27457 }
27458 return c.header_
27459 }
27460
27461 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) doRequest(alt string) (*http.Response, error) {
27462 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27463 var body io.Reader = nil
27464 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
27465 if err != nil {
27466 return nil, err
27467 }
27468 c.urlParams_.Set("alt", alt)
27469 c.urlParams_.Set("prettyPrint", "false")
27470 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27471 urls += "?" + c.urlParams_.Encode()
27472 req, err := http.NewRequest("PATCH", urls, body)
27473 if err != nil {
27474 return nil, err
27475 }
27476 req.Header = reqHeaders
27477 googleapi.Expand(req.URL, map[string]string{
27478 "name": c.name,
27479 })
27480 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27481 }
27482
27483
27484
27485
27486
27487
27488
27489 func (c *OrganizationsEnvironmentsModifyEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27490 gensupport.SetOptions(c.urlParams_, opts...)
27491 res, err := c.doRequest("json")
27492 if res != nil && res.StatusCode == http.StatusNotModified {
27493 if res.Body != nil {
27494 res.Body.Close()
27495 }
27496 return nil, gensupport.WrapError(&googleapi.Error{
27497 Code: res.StatusCode,
27498 Header: res.Header,
27499 })
27500 }
27501 if err != nil {
27502 return nil, err
27503 }
27504 defer googleapi.CloseBody(res)
27505 if err := googleapi.CheckResponse(res); err != nil {
27506 return nil, gensupport.WrapError(err)
27507 }
27508 ret := &GoogleLongrunningOperation{
27509 ServerResponse: googleapi.ServerResponse{
27510 Header: res.Header,
27511 HTTPStatusCode: res.StatusCode,
27512 },
27513 }
27514 target := &ret
27515 if err := gensupport.DecodeResponse(target, res); err != nil {
27516 return nil, err
27517 }
27518 return ret, nil
27519 }
27520
27521 type OrganizationsEnvironmentsSetIamPolicyCall struct {
27522 s *Service
27523 resource string
27524 googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
27525 urlParams_ gensupport.URLParams
27526 ctx_ context.Context
27527 header_ http.Header
27528 }
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540 func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
27541 c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27542 c.resource = resource
27543 c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
27544 return c
27545 }
27546
27547
27548
27549
27550 func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
27551 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27552 return c
27553 }
27554
27555
27556 func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
27557 c.ctx_ = ctx
27558 return c
27559 }
27560
27561
27562
27563 func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
27564 if c.header_ == nil {
27565 c.header_ = make(http.Header)
27566 }
27567 return c.header_
27568 }
27569
27570 func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
27571 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27572 var body io.Reader = nil
27573 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
27574 if err != nil {
27575 return nil, err
27576 }
27577 c.urlParams_.Set("alt", alt)
27578 c.urlParams_.Set("prettyPrint", "false")
27579 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
27580 urls += "?" + c.urlParams_.Encode()
27581 req, err := http.NewRequest("POST", urls, body)
27582 if err != nil {
27583 return nil, err
27584 }
27585 req.Header = reqHeaders
27586 googleapi.Expand(req.URL, map[string]string{
27587 "resource": c.resource,
27588 })
27589 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27590 }
27591
27592
27593
27594
27595
27596
27597
27598 func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
27599 gensupport.SetOptions(c.urlParams_, opts...)
27600 res, err := c.doRequest("json")
27601 if res != nil && res.StatusCode == http.StatusNotModified {
27602 if res.Body != nil {
27603 res.Body.Close()
27604 }
27605 return nil, gensupport.WrapError(&googleapi.Error{
27606 Code: res.StatusCode,
27607 Header: res.Header,
27608 })
27609 }
27610 if err != nil {
27611 return nil, err
27612 }
27613 defer googleapi.CloseBody(res)
27614 if err := googleapi.CheckResponse(res); err != nil {
27615 return nil, gensupport.WrapError(err)
27616 }
27617 ret := &GoogleIamV1Policy{
27618 ServerResponse: googleapi.ServerResponse{
27619 Header: res.Header,
27620 HTTPStatusCode: res.StatusCode,
27621 },
27622 }
27623 target := &ret
27624 if err := gensupport.DecodeResponse(target, res); err != nil {
27625 return nil, err
27626 }
27627 return ret, nil
27628 }
27629
27630 type OrganizationsEnvironmentsSubscribeCall struct {
27631 s *Service
27632 parent string
27633 urlParams_ gensupport.URLParams
27634 ctx_ context.Context
27635 header_ http.Header
27636 }
27637
27638
27639
27640
27641
27642
27643
27644 func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
27645 c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27646 c.parent = parent
27647 return c
27648 }
27649
27650
27651
27652
27653 func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
27654 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27655 return c
27656 }
27657
27658
27659 func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
27660 c.ctx_ = ctx
27661 return c
27662 }
27663
27664
27665
27666 func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
27667 if c.header_ == nil {
27668 c.header_ = make(http.Header)
27669 }
27670 return c.header_
27671 }
27672
27673 func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
27674 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27675 var body io.Reader = nil
27676 c.urlParams_.Set("alt", alt)
27677 c.urlParams_.Set("prettyPrint", "false")
27678 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
27679 urls += "?" + c.urlParams_.Encode()
27680 req, err := http.NewRequest("POST", urls, body)
27681 if err != nil {
27682 return nil, err
27683 }
27684 req.Header = reqHeaders
27685 googleapi.Expand(req.URL, map[string]string{
27686 "parent": c.parent,
27687 })
27688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27689 }
27690
27691
27692
27693
27694
27695
27696
27697 func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
27698 gensupport.SetOptions(c.urlParams_, opts...)
27699 res, err := c.doRequest("json")
27700 if res != nil && res.StatusCode == http.StatusNotModified {
27701 if res.Body != nil {
27702 res.Body.Close()
27703 }
27704 return nil, gensupport.WrapError(&googleapi.Error{
27705 Code: res.StatusCode,
27706 Header: res.Header,
27707 })
27708 }
27709 if err != nil {
27710 return nil, err
27711 }
27712 defer googleapi.CloseBody(res)
27713 if err := googleapi.CheckResponse(res); err != nil {
27714 return nil, gensupport.WrapError(err)
27715 }
27716 ret := &GoogleCloudApigeeV1Subscription{
27717 ServerResponse: googleapi.ServerResponse{
27718 Header: res.Header,
27719 HTTPStatusCode: res.StatusCode,
27720 },
27721 }
27722 target := &ret
27723 if err := gensupport.DecodeResponse(target, res); err != nil {
27724 return nil, err
27725 }
27726 return ret, nil
27727 }
27728
27729 type OrganizationsEnvironmentsTestIamPermissionsCall struct {
27730 s *Service
27731 resource string
27732 googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
27733 urlParams_ gensupport.URLParams
27734 ctx_ context.Context
27735 header_ http.Header
27736 }
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747 func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
27748 c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27749 c.resource = resource
27750 c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
27751 return c
27752 }
27753
27754
27755
27756
27757 func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
27758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27759 return c
27760 }
27761
27762
27763 func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
27764 c.ctx_ = ctx
27765 return c
27766 }
27767
27768
27769
27770 func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
27771 if c.header_ == nil {
27772 c.header_ = make(http.Header)
27773 }
27774 return c.header_
27775 }
27776
27777 func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
27778 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27779 var body io.Reader = nil
27780 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
27781 if err != nil {
27782 return nil, err
27783 }
27784 c.urlParams_.Set("alt", alt)
27785 c.urlParams_.Set("prettyPrint", "false")
27786 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
27787 urls += "?" + c.urlParams_.Encode()
27788 req, err := http.NewRequest("POST", urls, body)
27789 if err != nil {
27790 return nil, err
27791 }
27792 req.Header = reqHeaders
27793 googleapi.Expand(req.URL, map[string]string{
27794 "resource": c.resource,
27795 })
27796 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27797 }
27798
27799
27800
27801
27802
27803
27804
27805 func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
27806 gensupport.SetOptions(c.urlParams_, opts...)
27807 res, err := c.doRequest("json")
27808 if res != nil && res.StatusCode == http.StatusNotModified {
27809 if res.Body != nil {
27810 res.Body.Close()
27811 }
27812 return nil, gensupport.WrapError(&googleapi.Error{
27813 Code: res.StatusCode,
27814 Header: res.Header,
27815 })
27816 }
27817 if err != nil {
27818 return nil, err
27819 }
27820 defer googleapi.CloseBody(res)
27821 if err := googleapi.CheckResponse(res); err != nil {
27822 return nil, gensupport.WrapError(err)
27823 }
27824 ret := &GoogleIamV1TestIamPermissionsResponse{
27825 ServerResponse: googleapi.ServerResponse{
27826 Header: res.Header,
27827 HTTPStatusCode: res.StatusCode,
27828 },
27829 }
27830 target := &ret
27831 if err := gensupport.DecodeResponse(target, res); err != nil {
27832 return nil, err
27833 }
27834 return ret, nil
27835 }
27836
27837 type OrganizationsEnvironmentsUnsubscribeCall struct {
27838 s *Service
27839 parent string
27840 googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
27841 urlParams_ gensupport.URLParams
27842 ctx_ context.Context
27843 header_ http.Header
27844 }
27845
27846
27847
27848
27849
27850 func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
27851 c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27852 c.parent = parent
27853 c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
27854 return c
27855 }
27856
27857
27858
27859
27860 func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
27861 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27862 return c
27863 }
27864
27865
27866 func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
27867 c.ctx_ = ctx
27868 return c
27869 }
27870
27871
27872
27873 func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
27874 if c.header_ == nil {
27875 c.header_ = make(http.Header)
27876 }
27877 return c.header_
27878 }
27879
27880 func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
27881 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27882 var body io.Reader = nil
27883 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
27884 if err != nil {
27885 return nil, err
27886 }
27887 c.urlParams_.Set("alt", alt)
27888 c.urlParams_.Set("prettyPrint", "false")
27889 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
27890 urls += "?" + c.urlParams_.Encode()
27891 req, err := http.NewRequest("POST", urls, body)
27892 if err != nil {
27893 return nil, err
27894 }
27895 req.Header = reqHeaders
27896 googleapi.Expand(req.URL, map[string]string{
27897 "parent": c.parent,
27898 })
27899 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27900 }
27901
27902
27903
27904
27905
27906
27907
27908 func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27909 gensupport.SetOptions(c.urlParams_, opts...)
27910 res, err := c.doRequest("json")
27911 if res != nil && res.StatusCode == http.StatusNotModified {
27912 if res.Body != nil {
27913 res.Body.Close()
27914 }
27915 return nil, gensupport.WrapError(&googleapi.Error{
27916 Code: res.StatusCode,
27917 Header: res.Header,
27918 })
27919 }
27920 if err != nil {
27921 return nil, err
27922 }
27923 defer googleapi.CloseBody(res)
27924 if err := googleapi.CheckResponse(res); err != nil {
27925 return nil, gensupport.WrapError(err)
27926 }
27927 ret := &GoogleProtobufEmpty{
27928 ServerResponse: googleapi.ServerResponse{
27929 Header: res.Header,
27930 HTTPStatusCode: res.StatusCode,
27931 },
27932 }
27933 target := &ret
27934 if err := gensupport.DecodeResponse(target, res); err != nil {
27935 return nil, err
27936 }
27937 return ret, nil
27938 }
27939
27940 type OrganizationsEnvironmentsUpdateCall struct {
27941 s *Service
27942 name string
27943 googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
27944 urlParams_ gensupport.URLParams
27945 ctx_ context.Context
27946 header_ http.Header
27947 }
27948
27949
27950
27951
27952
27953
27954
27955
27956
27957
27958 func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
27959 c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27960 c.name = name
27961 c.googlecloudapigeev1environment = googlecloudapigeev1environment
27962 return c
27963 }
27964
27965
27966
27967
27968 func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
27969 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27970 return c
27971 }
27972
27973
27974 func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
27975 c.ctx_ = ctx
27976 return c
27977 }
27978
27979
27980
27981 func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
27982 if c.header_ == nil {
27983 c.header_ = make(http.Header)
27984 }
27985 return c.header_
27986 }
27987
27988 func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
27989 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27990 var body io.Reader = nil
27991 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
27992 if err != nil {
27993 return nil, err
27994 }
27995 c.urlParams_.Set("alt", alt)
27996 c.urlParams_.Set("prettyPrint", "false")
27997 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
27998 urls += "?" + c.urlParams_.Encode()
27999 req, err := http.NewRequest("PUT", urls, body)
28000 if err != nil {
28001 return nil, err
28002 }
28003 req.Header = reqHeaders
28004 googleapi.Expand(req.URL, map[string]string{
28005 "name": c.name,
28006 })
28007 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28008 }
28009
28010
28011
28012
28013
28014
28015
28016 func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
28017 gensupport.SetOptions(c.urlParams_, opts...)
28018 res, err := c.doRequest("json")
28019 if res != nil && res.StatusCode == http.StatusNotModified {
28020 if res.Body != nil {
28021 res.Body.Close()
28022 }
28023 return nil, gensupport.WrapError(&googleapi.Error{
28024 Code: res.StatusCode,
28025 Header: res.Header,
28026 })
28027 }
28028 if err != nil {
28029 return nil, err
28030 }
28031 defer googleapi.CloseBody(res)
28032 if err := googleapi.CheckResponse(res); err != nil {
28033 return nil, gensupport.WrapError(err)
28034 }
28035 ret := &GoogleCloudApigeeV1Environment{
28036 ServerResponse: googleapi.ServerResponse{
28037 Header: res.Header,
28038 HTTPStatusCode: res.StatusCode,
28039 },
28040 }
28041 target := &ret
28042 if err := gensupport.DecodeResponse(target, res); err != nil {
28043 return nil, err
28044 }
28045 return ret, nil
28046 }
28047
28048 type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
28049 s *Service
28050 name string
28051 googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
28052 urlParams_ gensupport.URLParams
28053 ctx_ context.Context
28054 header_ http.Header
28055 }
28056
28057
28058
28059
28060
28061 func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
28062 c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28063 c.name = name
28064 c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
28065 return c
28066 }
28067
28068
28069
28070
28071
28072 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
28073 c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
28074 return c
28075 }
28076
28077
28078
28079 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
28080 c.urlParams_.Set("updateMask", updateMask)
28081 return c
28082 }
28083
28084
28085
28086
28087 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
28088 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28089 return c
28090 }
28091
28092
28093 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
28094 c.ctx_ = ctx
28095 return c
28096 }
28097
28098
28099
28100 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
28101 if c.header_ == nil {
28102 c.header_ = make(http.Header)
28103 }
28104 return c.header_
28105 }
28106
28107 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
28108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28109 var body io.Reader = nil
28110 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
28111 if err != nil {
28112 return nil, err
28113 }
28114 c.urlParams_.Set("alt", alt)
28115 c.urlParams_.Set("prettyPrint", "false")
28116 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28117 urls += "?" + c.urlParams_.Encode()
28118 req, err := http.NewRequest("PATCH", urls, body)
28119 if err != nil {
28120 return nil, err
28121 }
28122 req.Header = reqHeaders
28123 googleapi.Expand(req.URL, map[string]string{
28124 "name": c.name,
28125 })
28126 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28127 }
28128
28129
28130
28131
28132
28133
28134
28135 func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
28136 gensupport.SetOptions(c.urlParams_, opts...)
28137 res, err := c.doRequest("json")
28138 if res != nil && res.StatusCode == http.StatusNotModified {
28139 if res.Body != nil {
28140 res.Body.Close()
28141 }
28142 return nil, gensupport.WrapError(&googleapi.Error{
28143 Code: res.StatusCode,
28144 Header: res.Header,
28145 })
28146 }
28147 if err != nil {
28148 return nil, err
28149 }
28150 defer googleapi.CloseBody(res)
28151 if err := googleapi.CheckResponse(res); err != nil {
28152 return nil, gensupport.WrapError(err)
28153 }
28154 ret := &GoogleCloudApigeeV1DebugMask{
28155 ServerResponse: googleapi.ServerResponse{
28156 Header: res.Header,
28157 HTTPStatusCode: res.StatusCode,
28158 },
28159 }
28160 target := &ret
28161 if err := gensupport.DecodeResponse(target, res); err != nil {
28162 return nil, err
28163 }
28164 return ret, nil
28165 }
28166
28167 type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
28168 s *Service
28169 name string
28170 googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
28171 urlParams_ gensupport.URLParams
28172 ctx_ context.Context
28173 header_ http.Header
28174 }
28175
28176
28177
28178
28179
28180
28181
28182
28183
28184
28185 func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
28186 c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28187 c.name = name
28188 c.googlecloudapigeev1environment = googlecloudapigeev1environment
28189 return c
28190 }
28191
28192
28193
28194
28195 func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
28196 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28197 return c
28198 }
28199
28200
28201 func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
28202 c.ctx_ = ctx
28203 return c
28204 }
28205
28206
28207
28208 func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
28209 if c.header_ == nil {
28210 c.header_ = make(http.Header)
28211 }
28212 return c.header_
28213 }
28214
28215 func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
28216 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28217 var body io.Reader = nil
28218 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
28219 if err != nil {
28220 return nil, err
28221 }
28222 c.urlParams_.Set("alt", alt)
28223 c.urlParams_.Set("prettyPrint", "false")
28224 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28225 urls += "?" + c.urlParams_.Encode()
28226 req, err := http.NewRequest("POST", urls, body)
28227 if err != nil {
28228 return nil, err
28229 }
28230 req.Header = reqHeaders
28231 googleapi.Expand(req.URL, map[string]string{
28232 "name": c.name,
28233 })
28234 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28235 }
28236
28237
28238
28239
28240
28241
28242
28243 func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
28244 gensupport.SetOptions(c.urlParams_, opts...)
28245 res, err := c.doRequest("json")
28246 if res != nil && res.StatusCode == http.StatusNotModified {
28247 if res.Body != nil {
28248 res.Body.Close()
28249 }
28250 return nil, gensupport.WrapError(&googleapi.Error{
28251 Code: res.StatusCode,
28252 Header: res.Header,
28253 })
28254 }
28255 if err != nil {
28256 return nil, err
28257 }
28258 defer googleapi.CloseBody(res)
28259 if err := googleapi.CheckResponse(res); err != nil {
28260 return nil, gensupport.WrapError(err)
28261 }
28262 ret := &GoogleCloudApigeeV1Environment{
28263 ServerResponse: googleapi.ServerResponse{
28264 Header: res.Header,
28265 HTTPStatusCode: res.StatusCode,
28266 },
28267 }
28268 target := &ret
28269 if err := gensupport.DecodeResponse(target, res); err != nil {
28270 return nil, err
28271 }
28272 return ret, nil
28273 }
28274
28275 type OrganizationsEnvironmentsUpdateSecurityActionsConfigCall struct {
28276 s *Service
28277 name string
28278 googlecloudapigeev1securityactionsconfig *GoogleCloudApigeeV1SecurityActionsConfig
28279 urlParams_ gensupport.URLParams
28280 ctx_ context.Context
28281 header_ http.Header
28282 }
28283
28284
28285
28286
28287
28288
28289
28290
28291 func (r *OrganizationsEnvironmentsService) UpdateSecurityActionsConfig(name string, googlecloudapigeev1securityactionsconfig *GoogleCloudApigeeV1SecurityActionsConfig) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
28292 c := &OrganizationsEnvironmentsUpdateSecurityActionsConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28293 c.name = name
28294 c.googlecloudapigeev1securityactionsconfig = googlecloudapigeev1securityactionsconfig
28295 return c
28296 }
28297
28298
28299
28300 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
28301 c.urlParams_.Set("updateMask", updateMask)
28302 return c
28303 }
28304
28305
28306
28307
28308 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
28309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28310 return c
28311 }
28312
28313
28314 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall {
28315 c.ctx_ = ctx
28316 return c
28317 }
28318
28319
28320
28321 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Header() http.Header {
28322 if c.header_ == nil {
28323 c.header_ = make(http.Header)
28324 }
28325 return c.header_
28326 }
28327
28328 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) doRequest(alt string) (*http.Response, error) {
28329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28330 var body io.Reader = nil
28331 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityactionsconfig)
28332 if err != nil {
28333 return nil, err
28334 }
28335 c.urlParams_.Set("alt", alt)
28336 c.urlParams_.Set("prettyPrint", "false")
28337 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28338 urls += "?" + c.urlParams_.Encode()
28339 req, err := http.NewRequest("PATCH", urls, body)
28340 if err != nil {
28341 return nil, err
28342 }
28343 req.Header = reqHeaders
28344 googleapi.Expand(req.URL, map[string]string{
28345 "name": c.name,
28346 })
28347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28348 }
28349
28350
28351
28352
28353
28354
28355
28356 func (c *OrganizationsEnvironmentsUpdateSecurityActionsConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityActionsConfig, error) {
28357 gensupport.SetOptions(c.urlParams_, opts...)
28358 res, err := c.doRequest("json")
28359 if res != nil && res.StatusCode == http.StatusNotModified {
28360 if res.Body != nil {
28361 res.Body.Close()
28362 }
28363 return nil, gensupport.WrapError(&googleapi.Error{
28364 Code: res.StatusCode,
28365 Header: res.Header,
28366 })
28367 }
28368 if err != nil {
28369 return nil, err
28370 }
28371 defer googleapi.CloseBody(res)
28372 if err := googleapi.CheckResponse(res); err != nil {
28373 return nil, gensupport.WrapError(err)
28374 }
28375 ret := &GoogleCloudApigeeV1SecurityActionsConfig{
28376 ServerResponse: googleapi.ServerResponse{
28377 Header: res.Header,
28378 HTTPStatusCode: res.StatusCode,
28379 },
28380 }
28381 target := &ret
28382 if err := gensupport.DecodeResponse(target, res); err != nil {
28383 return nil, err
28384 }
28385 return ret, nil
28386 }
28387
28388 type OrganizationsEnvironmentsUpdateTraceConfigCall struct {
28389 s *Service
28390 name string
28391 googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig
28392 urlParams_ gensupport.URLParams
28393 ctx_ context.Context
28394 header_ http.Header
28395 }
28396
28397
28398
28399
28400
28401
28402
28403
28404 func (r *OrganizationsEnvironmentsService) UpdateTraceConfig(name string, googlecloudapigeev1traceconfig *GoogleCloudApigeeV1TraceConfig) *OrganizationsEnvironmentsUpdateTraceConfigCall {
28405 c := &OrganizationsEnvironmentsUpdateTraceConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28406 c.name = name
28407 c.googlecloudapigeev1traceconfig = googlecloudapigeev1traceconfig
28408 return c
28409 }
28410
28411
28412
28413 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateTraceConfigCall {
28414 c.urlParams_.Set("updateMask", updateMask)
28415 return c
28416 }
28417
28418
28419
28420
28421 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateTraceConfigCall {
28422 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28423 return c
28424 }
28425
28426
28427 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateTraceConfigCall {
28428 c.ctx_ = ctx
28429 return c
28430 }
28431
28432
28433
28434 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Header() http.Header {
28435 if c.header_ == nil {
28436 c.header_ = make(http.Header)
28437 }
28438 return c.header_
28439 }
28440
28441 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) doRequest(alt string) (*http.Response, error) {
28442 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28443 var body io.Reader = nil
28444 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfig)
28445 if err != nil {
28446 return nil, err
28447 }
28448 c.urlParams_.Set("alt", alt)
28449 c.urlParams_.Set("prettyPrint", "false")
28450 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28451 urls += "?" + c.urlParams_.Encode()
28452 req, err := http.NewRequest("PATCH", urls, body)
28453 if err != nil {
28454 return nil, err
28455 }
28456 req.Header = reqHeaders
28457 googleapi.Expand(req.URL, map[string]string{
28458 "name": c.name,
28459 })
28460 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28461 }
28462
28463
28464
28465
28466
28467
28468
28469 func (c *OrganizationsEnvironmentsUpdateTraceConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfig, error) {
28470 gensupport.SetOptions(c.urlParams_, opts...)
28471 res, err := c.doRequest("json")
28472 if res != nil && res.StatusCode == http.StatusNotModified {
28473 if res.Body != nil {
28474 res.Body.Close()
28475 }
28476 return nil, gensupport.WrapError(&googleapi.Error{
28477 Code: res.StatusCode,
28478 Header: res.Header,
28479 })
28480 }
28481 if err != nil {
28482 return nil, err
28483 }
28484 defer googleapi.CloseBody(res)
28485 if err := googleapi.CheckResponse(res); err != nil {
28486 return nil, gensupport.WrapError(err)
28487 }
28488 ret := &GoogleCloudApigeeV1TraceConfig{
28489 ServerResponse: googleapi.ServerResponse{
28490 Header: res.Header,
28491 HTTPStatusCode: res.StatusCode,
28492 },
28493 }
28494 target := &ret
28495 if err := gensupport.DecodeResponse(target, res); err != nil {
28496 return nil, err
28497 }
28498 return ret, nil
28499 }
28500
28501 type OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall struct {
28502 s *Service
28503 name string
28504 googlecloudapigeev1setaddonenablementrequest *GoogleCloudApigeeV1SetAddonEnablementRequest
28505 urlParams_ gensupport.URLParams
28506 ctx_ context.Context
28507 header_ http.Header
28508 }
28509
28510
28511
28512
28513
28514 func (r *OrganizationsEnvironmentsAddonsConfigService) SetAddonEnablement(name string, googlecloudapigeev1setaddonenablementrequest *GoogleCloudApigeeV1SetAddonEnablementRequest) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
28515 c := &OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28516 c.name = name
28517 c.googlecloudapigeev1setaddonenablementrequest = googlecloudapigeev1setaddonenablementrequest
28518 return c
28519 }
28520
28521
28522
28523
28524 func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
28525 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28526 return c
28527 }
28528
28529
28530 func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Context(ctx context.Context) *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall {
28531 c.ctx_ = ctx
28532 return c
28533 }
28534
28535
28536
28537 func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Header() http.Header {
28538 if c.header_ == nil {
28539 c.header_ = make(http.Header)
28540 }
28541 return c.header_
28542 }
28543
28544 func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) doRequest(alt string) (*http.Response, error) {
28545 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28546 var body io.Reader = nil
28547 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1setaddonenablementrequest)
28548 if err != nil {
28549 return nil, err
28550 }
28551 c.urlParams_.Set("alt", alt)
28552 c.urlParams_.Set("prettyPrint", "false")
28553 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setAddonEnablement")
28554 urls += "?" + c.urlParams_.Encode()
28555 req, err := http.NewRequest("POST", urls, body)
28556 if err != nil {
28557 return nil, err
28558 }
28559 req.Header = reqHeaders
28560 googleapi.Expand(req.URL, map[string]string{
28561 "name": c.name,
28562 })
28563 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28564 }
28565
28566
28567
28568
28569
28570
28571
28572 func (c *OrganizationsEnvironmentsAddonsConfigSetAddonEnablementCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28573 gensupport.SetOptions(c.urlParams_, opts...)
28574 res, err := c.doRequest("json")
28575 if res != nil && res.StatusCode == http.StatusNotModified {
28576 if res.Body != nil {
28577 res.Body.Close()
28578 }
28579 return nil, gensupport.WrapError(&googleapi.Error{
28580 Code: res.StatusCode,
28581 Header: res.Header,
28582 })
28583 }
28584 if err != nil {
28585 return nil, err
28586 }
28587 defer googleapi.CloseBody(res)
28588 if err := googleapi.CheckResponse(res); err != nil {
28589 return nil, gensupport.WrapError(err)
28590 }
28591 ret := &GoogleLongrunningOperation{
28592 ServerResponse: googleapi.ServerResponse{
28593 Header: res.Header,
28594 HTTPStatusCode: res.StatusCode,
28595 },
28596 }
28597 target := &ret
28598 if err := gensupport.DecodeResponse(target, res); err != nil {
28599 return nil, err
28600 }
28601 return ret, nil
28602 }
28603
28604 type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
28605 s *Service
28606 name string
28607 urlParams_ gensupport.URLParams
28608 ifNoneMatch_ string
28609 ctx_ context.Context
28610 header_ http.Header
28611 }
28612
28613
28614
28615
28616
28617
28618
28619
28620 func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28621 c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
28622 c.name = name
28623 return c
28624 }
28625
28626
28627
28628
28629 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) DisableCache(disableCache bool) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28630 c.urlParams_.Set("disableCache", fmt.Sprint(disableCache))
28631 return c
28632 }
28633
28634
28635
28636 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28637 c.urlParams_.Set("type", type_)
28638 return c
28639 }
28640
28641
28642
28643
28644 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28645 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28646 return c
28647 }
28648
28649
28650
28651
28652 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28653 c.ifNoneMatch_ = entityTag
28654 return c
28655 }
28656
28657
28658 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
28659 c.ctx_ = ctx
28660 return c
28661 }
28662
28663
28664
28665 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
28666 if c.header_ == nil {
28667 c.header_ = make(http.Header)
28668 }
28669 return c.header_
28670 }
28671
28672 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
28673 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28674 if c.ifNoneMatch_ != "" {
28675 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28676 }
28677 var body io.Reader = nil
28678 c.urlParams_.Set("alt", alt)
28679 c.urlParams_.Set("prettyPrint", "false")
28680 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28681 urls += "?" + c.urlParams_.Encode()
28682 req, err := http.NewRequest("GET", urls, body)
28683 if err != nil {
28684 return nil, err
28685 }
28686 req.Header = reqHeaders
28687 googleapi.Expand(req.URL, map[string]string{
28688 "name": c.name,
28689 })
28690 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28691 }
28692
28693
28694
28695
28696
28697
28698
28699 func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
28700 gensupport.SetOptions(c.urlParams_, opts...)
28701 res, err := c.doRequest("json")
28702 if res != nil && res.StatusCode == http.StatusNotModified {
28703 if res.Body != nil {
28704 res.Body.Close()
28705 }
28706 return nil, gensupport.WrapError(&googleapi.Error{
28707 Code: res.StatusCode,
28708 Header: res.Header,
28709 })
28710 }
28711 if err != nil {
28712 return nil, err
28713 }
28714 defer googleapi.CloseBody(res)
28715 if err := googleapi.CheckResponse(res); err != nil {
28716 return nil, gensupport.WrapError(err)
28717 }
28718 ret := &GoogleCloudApigeeV1Schema{
28719 ServerResponse: googleapi.ServerResponse{
28720 Header: res.Header,
28721 HTTPStatusCode: res.StatusCode,
28722 },
28723 }
28724 target := &ret
28725 if err := gensupport.DecodeResponse(target, res); err != nil {
28726 return nil, err
28727 }
28728 return ret, nil
28729 }
28730
28731 type OrganizationsEnvironmentsAnalyticsExportsCreateCall struct {
28732 s *Service
28733 parent string
28734 googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest
28735 urlParams_ gensupport.URLParams
28736 ctx_ context.Context
28737 header_ http.Header
28738 }
28739
28740
28741
28742
28743
28744
28745
28746
28747 func (r *OrganizationsEnvironmentsAnalyticsExportsService) Create(parent string, googlecloudapigeev1exportrequest *GoogleCloudApigeeV1ExportRequest) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
28748 c := &OrganizationsEnvironmentsAnalyticsExportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28749 c.parent = parent
28750 c.googlecloudapigeev1exportrequest = googlecloudapigeev1exportrequest
28751 return c
28752 }
28753
28754
28755
28756
28757 func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
28758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28759 return c
28760 }
28761
28762
28763 func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsCreateCall {
28764 c.ctx_ = ctx
28765 return c
28766 }
28767
28768
28769
28770 func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Header() http.Header {
28771 if c.header_ == nil {
28772 c.header_ = make(http.Header)
28773 }
28774 return c.header_
28775 }
28776
28777 func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) doRequest(alt string) (*http.Response, error) {
28778 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28779 var body io.Reader = nil
28780 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1exportrequest)
28781 if err != nil {
28782 return nil, err
28783 }
28784 c.urlParams_.Set("alt", alt)
28785 c.urlParams_.Set("prettyPrint", "false")
28786 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
28787 urls += "?" + c.urlParams_.Encode()
28788 req, err := http.NewRequest("POST", urls, body)
28789 if err != nil {
28790 return nil, err
28791 }
28792 req.Header = reqHeaders
28793 googleapi.Expand(req.URL, map[string]string{
28794 "parent": c.parent,
28795 })
28796 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28797 }
28798
28799
28800
28801
28802
28803
28804
28805 func (c *OrganizationsEnvironmentsAnalyticsExportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
28806 gensupport.SetOptions(c.urlParams_, opts...)
28807 res, err := c.doRequest("json")
28808 if res != nil && res.StatusCode == http.StatusNotModified {
28809 if res.Body != nil {
28810 res.Body.Close()
28811 }
28812 return nil, gensupport.WrapError(&googleapi.Error{
28813 Code: res.StatusCode,
28814 Header: res.Header,
28815 })
28816 }
28817 if err != nil {
28818 return nil, err
28819 }
28820 defer googleapi.CloseBody(res)
28821 if err := googleapi.CheckResponse(res); err != nil {
28822 return nil, gensupport.WrapError(err)
28823 }
28824 ret := &GoogleCloudApigeeV1Export{
28825 ServerResponse: googleapi.ServerResponse{
28826 Header: res.Header,
28827 HTTPStatusCode: res.StatusCode,
28828 },
28829 }
28830 target := &ret
28831 if err := gensupport.DecodeResponse(target, res); err != nil {
28832 return nil, err
28833 }
28834 return ret, nil
28835 }
28836
28837 type OrganizationsEnvironmentsAnalyticsExportsGetCall struct {
28838 s *Service
28839 name string
28840 urlParams_ gensupport.URLParams
28841 ifNoneMatch_ string
28842 ctx_ context.Context
28843 header_ http.Header
28844 }
28845
28846
28847
28848
28849
28850
28851
28852 func (r *OrganizationsEnvironmentsAnalyticsExportsService) Get(name string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
28853 c := &OrganizationsEnvironmentsAnalyticsExportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28854 c.name = name
28855 return c
28856 }
28857
28858
28859
28860
28861 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
28862 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28863 return c
28864 }
28865
28866
28867
28868
28869 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
28870 c.ifNoneMatch_ = entityTag
28871 return c
28872 }
28873
28874
28875 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsGetCall {
28876 c.ctx_ = ctx
28877 return c
28878 }
28879
28880
28881
28882 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Header() http.Header {
28883 if c.header_ == nil {
28884 c.header_ = make(http.Header)
28885 }
28886 return c.header_
28887 }
28888
28889 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) doRequest(alt string) (*http.Response, error) {
28890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28891 if c.ifNoneMatch_ != "" {
28892 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28893 }
28894 var body io.Reader = nil
28895 c.urlParams_.Set("alt", alt)
28896 c.urlParams_.Set("prettyPrint", "false")
28897 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28898 urls += "?" + c.urlParams_.Encode()
28899 req, err := http.NewRequest("GET", urls, body)
28900 if err != nil {
28901 return nil, err
28902 }
28903 req.Header = reqHeaders
28904 googleapi.Expand(req.URL, map[string]string{
28905 "name": c.name,
28906 })
28907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28908 }
28909
28910
28911
28912
28913
28914
28915
28916 func (c *OrganizationsEnvironmentsAnalyticsExportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Export, error) {
28917 gensupport.SetOptions(c.urlParams_, opts...)
28918 res, err := c.doRequest("json")
28919 if res != nil && res.StatusCode == http.StatusNotModified {
28920 if res.Body != nil {
28921 res.Body.Close()
28922 }
28923 return nil, gensupport.WrapError(&googleapi.Error{
28924 Code: res.StatusCode,
28925 Header: res.Header,
28926 })
28927 }
28928 if err != nil {
28929 return nil, err
28930 }
28931 defer googleapi.CloseBody(res)
28932 if err := googleapi.CheckResponse(res); err != nil {
28933 return nil, gensupport.WrapError(err)
28934 }
28935 ret := &GoogleCloudApigeeV1Export{
28936 ServerResponse: googleapi.ServerResponse{
28937 Header: res.Header,
28938 HTTPStatusCode: res.StatusCode,
28939 },
28940 }
28941 target := &ret
28942 if err := gensupport.DecodeResponse(target, res); err != nil {
28943 return nil, err
28944 }
28945 return ret, nil
28946 }
28947
28948 type OrganizationsEnvironmentsAnalyticsExportsListCall struct {
28949 s *Service
28950 parent string
28951 urlParams_ gensupport.URLParams
28952 ifNoneMatch_ string
28953 ctx_ context.Context
28954 header_ http.Header
28955 }
28956
28957
28958
28959
28960
28961
28962 func (r *OrganizationsEnvironmentsAnalyticsExportsService) List(parent string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28963 c := &OrganizationsEnvironmentsAnalyticsExportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28964 c.parent = parent
28965 return c
28966 }
28967
28968
28969
28970
28971 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28972 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28973 return c
28974 }
28975
28976
28977
28978
28979 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28980 c.ifNoneMatch_ = entityTag
28981 return c
28982 }
28983
28984
28985 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsExportsListCall {
28986 c.ctx_ = ctx
28987 return c
28988 }
28989
28990
28991
28992 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Header() http.Header {
28993 if c.header_ == nil {
28994 c.header_ = make(http.Header)
28995 }
28996 return c.header_
28997 }
28998
28999 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) doRequest(alt string) (*http.Response, error) {
29000 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29001 if c.ifNoneMatch_ != "" {
29002 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29003 }
29004 var body io.Reader = nil
29005 c.urlParams_.Set("alt", alt)
29006 c.urlParams_.Set("prettyPrint", "false")
29007 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analytics/exports")
29008 urls += "?" + c.urlParams_.Encode()
29009 req, err := http.NewRequest("GET", urls, body)
29010 if err != nil {
29011 return nil, err
29012 }
29013 req.Header = reqHeaders
29014 googleapi.Expand(req.URL, map[string]string{
29015 "parent": c.parent,
29016 })
29017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29018 }
29019
29020
29021
29022
29023
29024
29025
29026 func (c *OrganizationsEnvironmentsAnalyticsExportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListExportsResponse, error) {
29027 gensupport.SetOptions(c.urlParams_, opts...)
29028 res, err := c.doRequest("json")
29029 if res != nil && res.StatusCode == http.StatusNotModified {
29030 if res.Body != nil {
29031 res.Body.Close()
29032 }
29033 return nil, gensupport.WrapError(&googleapi.Error{
29034 Code: res.StatusCode,
29035 Header: res.Header,
29036 })
29037 }
29038 if err != nil {
29039 return nil, err
29040 }
29041 defer googleapi.CloseBody(res)
29042 if err := googleapi.CheckResponse(res); err != nil {
29043 return nil, gensupport.WrapError(err)
29044 }
29045 ret := &GoogleCloudApigeeV1ListExportsResponse{
29046 ServerResponse: googleapi.ServerResponse{
29047 Header: res.Header,
29048 HTTPStatusCode: res.StatusCode,
29049 },
29050 }
29051 target := &ret
29052 if err := gensupport.DecodeResponse(target, res); err != nil {
29053 return nil, err
29054 }
29055 return ret, nil
29056 }
29057
29058 type OrganizationsEnvironmentsApisDeploymentsListCall struct {
29059 s *Service
29060 parent string
29061 urlParams_ gensupport.URLParams
29062 ifNoneMatch_ string
29063 ctx_ context.Context
29064 header_ http.Header
29065 }
29066
29067
29068
29069
29070
29071 func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
29072 c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29073 c.parent = parent
29074 return c
29075 }
29076
29077
29078
29079
29080 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
29081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29082 return c
29083 }
29084
29085
29086
29087
29088 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
29089 c.ifNoneMatch_ = entityTag
29090 return c
29091 }
29092
29093
29094 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
29095 c.ctx_ = ctx
29096 return c
29097 }
29098
29099
29100
29101 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
29102 if c.header_ == nil {
29103 c.header_ = make(http.Header)
29104 }
29105 return c.header_
29106 }
29107
29108 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
29109 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29110 if c.ifNoneMatch_ != "" {
29111 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29112 }
29113 var body io.Reader = nil
29114 c.urlParams_.Set("alt", alt)
29115 c.urlParams_.Set("prettyPrint", "false")
29116 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
29117 urls += "?" + c.urlParams_.Encode()
29118 req, err := http.NewRequest("GET", urls, body)
29119 if err != nil {
29120 return nil, err
29121 }
29122 req.Header = reqHeaders
29123 googleapi.Expand(req.URL, map[string]string{
29124 "parent": c.parent,
29125 })
29126 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29127 }
29128
29129
29130
29131
29132
29133
29134
29135 func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
29136 gensupport.SetOptions(c.urlParams_, opts...)
29137 res, err := c.doRequest("json")
29138 if res != nil && res.StatusCode == http.StatusNotModified {
29139 if res.Body != nil {
29140 res.Body.Close()
29141 }
29142 return nil, gensupport.WrapError(&googleapi.Error{
29143 Code: res.StatusCode,
29144 Header: res.Header,
29145 })
29146 }
29147 if err != nil {
29148 return nil, err
29149 }
29150 defer googleapi.CloseBody(res)
29151 if err := googleapi.CheckResponse(res); err != nil {
29152 return nil, gensupport.WrapError(err)
29153 }
29154 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
29155 ServerResponse: googleapi.ServerResponse{
29156 Header: res.Header,
29157 HTTPStatusCode: res.StatusCode,
29158 },
29159 }
29160 target := &ret
29161 if err := gensupport.DecodeResponse(target, res); err != nil {
29162 return nil, err
29163 }
29164 return ret, nil
29165 }
29166
29167 type OrganizationsEnvironmentsApisRevisionsDeployCall struct {
29168 s *Service
29169 name string
29170 urlParams_ gensupport.URLParams
29171 ctx_ context.Context
29172 header_ http.Header
29173 }
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189 func (r *OrganizationsEnvironmentsApisRevisionsService) Deploy(name string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29190 c := &OrganizationsEnvironmentsApisRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29191 c.name = name
29192 return c
29193 }
29194
29195
29196
29197
29198
29199
29200 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29201 c.urlParams_.Set("override", fmt.Sprint(override))
29202 return c
29203 }
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213
29214
29215
29216
29217 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29218 c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
29219 return c
29220 }
29221
29222
29223
29224
29225
29226 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29227 c.urlParams_.Set("serviceAccount", serviceAccount)
29228 return c
29229 }
29230
29231
29232
29233
29234 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29235 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29236 return c
29237 }
29238
29239
29240 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeployCall {
29241 c.ctx_ = ctx
29242 return c
29243 }
29244
29245
29246
29247 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Header() http.Header {
29248 if c.header_ == nil {
29249 c.header_ = make(http.Header)
29250 }
29251 return c.header_
29252 }
29253
29254 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
29255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29256 var body io.Reader = nil
29257 c.urlParams_.Set("alt", alt)
29258 c.urlParams_.Set("prettyPrint", "false")
29259 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
29260 urls += "?" + c.urlParams_.Encode()
29261 req, err := http.NewRequest("POST", urls, body)
29262 if err != nil {
29263 return nil, err
29264 }
29265 req.Header = reqHeaders
29266 googleapi.Expand(req.URL, map[string]string{
29267 "name": c.name,
29268 })
29269 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29270 }
29271
29272
29273
29274
29275
29276
29277
29278 func (c *OrganizationsEnvironmentsApisRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
29279 gensupport.SetOptions(c.urlParams_, opts...)
29280 res, err := c.doRequest("json")
29281 if res != nil && res.StatusCode == http.StatusNotModified {
29282 if res.Body != nil {
29283 res.Body.Close()
29284 }
29285 return nil, gensupport.WrapError(&googleapi.Error{
29286 Code: res.StatusCode,
29287 Header: res.Header,
29288 })
29289 }
29290 if err != nil {
29291 return nil, err
29292 }
29293 defer googleapi.CloseBody(res)
29294 if err := googleapi.CheckResponse(res); err != nil {
29295 return nil, gensupport.WrapError(err)
29296 }
29297 ret := &GoogleCloudApigeeV1Deployment{
29298 ServerResponse: googleapi.ServerResponse{
29299 Header: res.Header,
29300 HTTPStatusCode: res.StatusCode,
29301 },
29302 }
29303 target := &ret
29304 if err := gensupport.DecodeResponse(target, res); err != nil {
29305 return nil, err
29306 }
29307 return ret, nil
29308 }
29309
29310 type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
29311 s *Service
29312 name string
29313 urlParams_ gensupport.URLParams
29314 ifNoneMatch_ string
29315 ctx_ context.Context
29316 header_ http.Header
29317 }
29318
29319
29320
29321
29322
29323
29324
29325 func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
29326 c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29327 c.name = name
29328 return c
29329 }
29330
29331
29332
29333
29334 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
29335 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29336 return c
29337 }
29338
29339
29340
29341
29342 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
29343 c.ifNoneMatch_ = entityTag
29344 return c
29345 }
29346
29347
29348 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
29349 c.ctx_ = ctx
29350 return c
29351 }
29352
29353
29354
29355 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
29356 if c.header_ == nil {
29357 c.header_ = make(http.Header)
29358 }
29359 return c.header_
29360 }
29361
29362 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
29363 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29364 if c.ifNoneMatch_ != "" {
29365 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29366 }
29367 var body io.Reader = nil
29368 c.urlParams_.Set("alt", alt)
29369 c.urlParams_.Set("prettyPrint", "false")
29370 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
29371 urls += "?" + c.urlParams_.Encode()
29372 req, err := http.NewRequest("GET", urls, body)
29373 if err != nil {
29374 return nil, err
29375 }
29376 req.Header = reqHeaders
29377 googleapi.Expand(req.URL, map[string]string{
29378 "name": c.name,
29379 })
29380 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29381 }
29382
29383
29384
29385
29386
29387
29388
29389 func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
29390 gensupport.SetOptions(c.urlParams_, opts...)
29391 res, err := c.doRequest("json")
29392 if res != nil && res.StatusCode == http.StatusNotModified {
29393 if res.Body != nil {
29394 res.Body.Close()
29395 }
29396 return nil, gensupport.WrapError(&googleapi.Error{
29397 Code: res.StatusCode,
29398 Header: res.Header,
29399 })
29400 }
29401 if err != nil {
29402 return nil, err
29403 }
29404 defer googleapi.CloseBody(res)
29405 if err := googleapi.CheckResponse(res); err != nil {
29406 return nil, gensupport.WrapError(err)
29407 }
29408 ret := &GoogleCloudApigeeV1Deployment{
29409 ServerResponse: googleapi.ServerResponse{
29410 Header: res.Header,
29411 HTTPStatusCode: res.StatusCode,
29412 },
29413 }
29414 target := &ret
29415 if err := gensupport.DecodeResponse(target, res); err != nil {
29416 return nil, err
29417 }
29418 return ret, nil
29419 }
29420
29421 type OrganizationsEnvironmentsApisRevisionsUndeployCall struct {
29422 s *Service
29423 name string
29424 urlParams_ gensupport.URLParams
29425 ctx_ context.Context
29426 header_ http.Header
29427 }
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439 func (r *OrganizationsEnvironmentsApisRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
29440 c := &OrganizationsEnvironmentsApisRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29441 c.name = name
29442 return c
29443 }
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) SequencedRollout(sequencedRollout bool) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
29456 c.urlParams_.Set("sequencedRollout", fmt.Sprint(sequencedRollout))
29457 return c
29458 }
29459
29460
29461
29462
29463 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
29464 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29465 return c
29466 }
29467
29468
29469 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsUndeployCall {
29470 c.ctx_ = ctx
29471 return c
29472 }
29473
29474
29475
29476 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Header() http.Header {
29477 if c.header_ == nil {
29478 c.header_ = make(http.Header)
29479 }
29480 return c.header_
29481 }
29482
29483 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
29484 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29485 var body io.Reader = nil
29486 c.urlParams_.Set("alt", alt)
29487 c.urlParams_.Set("prettyPrint", "false")
29488 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
29489 urls += "?" + c.urlParams_.Encode()
29490 req, err := http.NewRequest("DELETE", urls, body)
29491 if err != nil {
29492 return nil, err
29493 }
29494 req.Header = reqHeaders
29495 googleapi.Expand(req.URL, map[string]string{
29496 "name": c.name,
29497 })
29498 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29499 }
29500
29501
29502
29503
29504
29505
29506
29507 func (c *OrganizationsEnvironmentsApisRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29508 gensupport.SetOptions(c.urlParams_, opts...)
29509 res, err := c.doRequest("json")
29510 if res != nil && res.StatusCode == http.StatusNotModified {
29511 if res.Body != nil {
29512 res.Body.Close()
29513 }
29514 return nil, gensupport.WrapError(&googleapi.Error{
29515 Code: res.StatusCode,
29516 Header: res.Header,
29517 })
29518 }
29519 if err != nil {
29520 return nil, err
29521 }
29522 defer googleapi.CloseBody(res)
29523 if err := googleapi.CheckResponse(res); err != nil {
29524 return nil, gensupport.WrapError(err)
29525 }
29526 ret := &GoogleProtobufEmpty{
29527 ServerResponse: googleapi.ServerResponse{
29528 Header: res.Header,
29529 HTTPStatusCode: res.StatusCode,
29530 },
29531 }
29532 target := &ret
29533 if err := gensupport.DecodeResponse(target, res); err != nil {
29534 return nil, err
29535 }
29536 return ret, nil
29537 }
29538
29539 type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
29540 s *Service
29541 parent string
29542 googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
29543 urlParams_ gensupport.URLParams
29544 ctx_ context.Context
29545 header_ http.Header
29546 }
29547
29548
29549
29550
29551
29552
29553
29554 func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
29555 c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29556 c.parent = parent
29557 c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
29558 return c
29559 }
29560
29561
29562
29563
29564 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
29565 c.urlParams_.Set("timeout", fmt.Sprint(timeout))
29566 return c
29567 }
29568
29569
29570
29571
29572 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
29573 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29574 return c
29575 }
29576
29577
29578 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
29579 c.ctx_ = ctx
29580 return c
29581 }
29582
29583
29584
29585 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
29586 if c.header_ == nil {
29587 c.header_ = make(http.Header)
29588 }
29589 return c.header_
29590 }
29591
29592 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
29593 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29594 var body io.Reader = nil
29595 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
29596 if err != nil {
29597 return nil, err
29598 }
29599 c.urlParams_.Set("alt", alt)
29600 c.urlParams_.Set("prettyPrint", "false")
29601 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
29602 urls += "?" + c.urlParams_.Encode()
29603 req, err := http.NewRequest("POST", urls, body)
29604 if err != nil {
29605 return nil, err
29606 }
29607 req.Header = reqHeaders
29608 googleapi.Expand(req.URL, map[string]string{
29609 "parent": c.parent,
29610 })
29611 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29612 }
29613
29614
29615
29616
29617
29618
29619
29620 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
29621 gensupport.SetOptions(c.urlParams_, opts...)
29622 res, err := c.doRequest("json")
29623 if res != nil && res.StatusCode == http.StatusNotModified {
29624 if res.Body != nil {
29625 res.Body.Close()
29626 }
29627 return nil, gensupport.WrapError(&googleapi.Error{
29628 Code: res.StatusCode,
29629 Header: res.Header,
29630 })
29631 }
29632 if err != nil {
29633 return nil, err
29634 }
29635 defer googleapi.CloseBody(res)
29636 if err := googleapi.CheckResponse(res); err != nil {
29637 return nil, gensupport.WrapError(err)
29638 }
29639 ret := &GoogleCloudApigeeV1DebugSession{
29640 ServerResponse: googleapi.ServerResponse{
29641 Header: res.Header,
29642 HTTPStatusCode: res.StatusCode,
29643 },
29644 }
29645 target := &ret
29646 if err := gensupport.DecodeResponse(target, res); err != nil {
29647 return nil, err
29648 }
29649 return ret, nil
29650 }
29651
29652 type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
29653 s *Service
29654 name string
29655 urlParams_ gensupport.URLParams
29656 ctx_ context.Context
29657 header_ http.Header
29658 }
29659
29660
29661
29662
29663
29664
29665
29666
29667 func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29668 c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29669 c.name = name
29670 return c
29671 }
29672
29673
29674
29675
29676 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29677 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29678 return c
29679 }
29680
29681
29682 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
29683 c.ctx_ = ctx
29684 return c
29685 }
29686
29687
29688
29689 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
29690 if c.header_ == nil {
29691 c.header_ = make(http.Header)
29692 }
29693 return c.header_
29694 }
29695
29696 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
29697 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29698 var body io.Reader = nil
29699 c.urlParams_.Set("alt", alt)
29700 c.urlParams_.Set("prettyPrint", "false")
29701 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
29702 urls += "?" + c.urlParams_.Encode()
29703 req, err := http.NewRequest("DELETE", urls, body)
29704 if err != nil {
29705 return nil, err
29706 }
29707 req.Header = reqHeaders
29708 googleapi.Expand(req.URL, map[string]string{
29709 "name": c.name,
29710 })
29711 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29712 }
29713
29714
29715
29716
29717
29718
29719
29720 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29721 gensupport.SetOptions(c.urlParams_, opts...)
29722 res, err := c.doRequest("json")
29723 if res != nil && res.StatusCode == http.StatusNotModified {
29724 if res.Body != nil {
29725 res.Body.Close()
29726 }
29727 return nil, gensupport.WrapError(&googleapi.Error{
29728 Code: res.StatusCode,
29729 Header: res.Header,
29730 })
29731 }
29732 if err != nil {
29733 return nil, err
29734 }
29735 defer googleapi.CloseBody(res)
29736 if err := googleapi.CheckResponse(res); err != nil {
29737 return nil, gensupport.WrapError(err)
29738 }
29739 ret := &GoogleProtobufEmpty{
29740 ServerResponse: googleapi.ServerResponse{
29741 Header: res.Header,
29742 HTTPStatusCode: res.StatusCode,
29743 },
29744 }
29745 target := &ret
29746 if err := gensupport.DecodeResponse(target, res); err != nil {
29747 return nil, err
29748 }
29749 return ret, nil
29750 }
29751
29752 type OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall struct {
29753 s *Service
29754 name string
29755 urlParams_ gensupport.URLParams
29756 ifNoneMatch_ string
29757 ctx_ context.Context
29758 header_ http.Header
29759 }
29760
29761
29762
29763
29764
29765
29766 func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29767 c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29768 c.name = name
29769 return c
29770 }
29771
29772
29773
29774
29775 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29776 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29777 return c
29778 }
29779
29780
29781
29782
29783 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29784 c.ifNoneMatch_ = entityTag
29785 return c
29786 }
29787
29788
29789 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall {
29790 c.ctx_ = ctx
29791 return c
29792 }
29793
29794
29795
29796 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Header() http.Header {
29797 if c.header_ == nil {
29798 c.header_ = make(http.Header)
29799 }
29800 return c.header_
29801 }
29802
29803 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) doRequest(alt string) (*http.Response, error) {
29804 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29805 if c.ifNoneMatch_ != "" {
29806 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29807 }
29808 var body io.Reader = nil
29809 c.urlParams_.Set("alt", alt)
29810 c.urlParams_.Set("prettyPrint", "false")
29811 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29812 urls += "?" + c.urlParams_.Encode()
29813 req, err := http.NewRequest("GET", urls, body)
29814 if err != nil {
29815 return nil, err
29816 }
29817 req.Header = reqHeaders
29818 googleapi.Expand(req.URL, map[string]string{
29819 "name": c.name,
29820 })
29821 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29822 }
29823
29824
29825
29826
29827
29828
29829
29830 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
29831 gensupport.SetOptions(c.urlParams_, opts...)
29832 res, err := c.doRequest("json")
29833 if res != nil && res.StatusCode == http.StatusNotModified {
29834 if res.Body != nil {
29835 res.Body.Close()
29836 }
29837 return nil, gensupport.WrapError(&googleapi.Error{
29838 Code: res.StatusCode,
29839 Header: res.Header,
29840 })
29841 }
29842 if err != nil {
29843 return nil, err
29844 }
29845 defer googleapi.CloseBody(res)
29846 if err := googleapi.CheckResponse(res); err != nil {
29847 return nil, gensupport.WrapError(err)
29848 }
29849 ret := &GoogleCloudApigeeV1DebugSession{
29850 ServerResponse: googleapi.ServerResponse{
29851 Header: res.Header,
29852 HTTPStatusCode: res.StatusCode,
29853 },
29854 }
29855 target := &ret
29856 if err := gensupport.DecodeResponse(target, res); err != nil {
29857 return nil, err
29858 }
29859 return ret, nil
29860 }
29861
29862 type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
29863 s *Service
29864 parent string
29865 urlParams_ gensupport.URLParams
29866 ifNoneMatch_ string
29867 ctx_ context.Context
29868 header_ http.Header
29869 }
29870
29871
29872
29873
29874
29875
29876
29877
29878 func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29879 c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29880 c.parent = parent
29881 return c
29882 }
29883
29884
29885
29886 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29887 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29888 return c
29889 }
29890
29891
29892
29893
29894 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29895 c.urlParams_.Set("pageToken", pageToken)
29896 return c
29897 }
29898
29899
29900
29901
29902 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29903 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29904 return c
29905 }
29906
29907
29908
29909
29910 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29911 c.ifNoneMatch_ = entityTag
29912 return c
29913 }
29914
29915
29916 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
29917 c.ctx_ = ctx
29918 return c
29919 }
29920
29921
29922
29923 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
29924 if c.header_ == nil {
29925 c.header_ = make(http.Header)
29926 }
29927 return c.header_
29928 }
29929
29930 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
29931 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29932 if c.ifNoneMatch_ != "" {
29933 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29934 }
29935 var body io.Reader = nil
29936 c.urlParams_.Set("alt", alt)
29937 c.urlParams_.Set("prettyPrint", "false")
29938 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
29939 urls += "?" + c.urlParams_.Encode()
29940 req, err := http.NewRequest("GET", urls, body)
29941 if err != nil {
29942 return nil, err
29943 }
29944 req.Header = reqHeaders
29945 googleapi.Expand(req.URL, map[string]string{
29946 "parent": c.parent,
29947 })
29948 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29949 }
29950
29951
29952
29953
29954
29955
29956
29957 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
29958 gensupport.SetOptions(c.urlParams_, opts...)
29959 res, err := c.doRequest("json")
29960 if res != nil && res.StatusCode == http.StatusNotModified {
29961 if res.Body != nil {
29962 res.Body.Close()
29963 }
29964 return nil, gensupport.WrapError(&googleapi.Error{
29965 Code: res.StatusCode,
29966 Header: res.Header,
29967 })
29968 }
29969 if err != nil {
29970 return nil, err
29971 }
29972 defer googleapi.CloseBody(res)
29973 if err := googleapi.CheckResponse(res); err != nil {
29974 return nil, gensupport.WrapError(err)
29975 }
29976 ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
29977 ServerResponse: googleapi.ServerResponse{
29978 Header: res.Header,
29979 HTTPStatusCode: res.StatusCode,
29980 },
29981 }
29982 target := &ret
29983 if err := gensupport.DecodeResponse(target, res); err != nil {
29984 return nil, err
29985 }
29986 return ret, nil
29987 }
29988
29989
29990
29991
29992 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListDebugSessionsResponse) error) error {
29993 c.ctx_ = ctx
29994 defer c.PageToken(c.urlParams_.Get("pageToken"))
29995 for {
29996 x, err := c.Do()
29997 if err != nil {
29998 return err
29999 }
30000 if err := f(x); err != nil {
30001 return err
30002 }
30003 if x.NextPageToken == "" {
30004 return nil
30005 }
30006 c.PageToken(x.NextPageToken)
30007 }
30008 }
30009
30010 type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
30011 s *Service
30012 name string
30013 urlParams_ gensupport.URLParams
30014 ifNoneMatch_ string
30015 ctx_ context.Context
30016 header_ http.Header
30017 }
30018
30019
30020
30021
30022
30023
30024 func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
30025 c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30026 c.name = name
30027 return c
30028 }
30029
30030
30031
30032
30033 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
30034 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30035 return c
30036 }
30037
30038
30039
30040
30041 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
30042 c.ifNoneMatch_ = entityTag
30043 return c
30044 }
30045
30046
30047 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
30048 c.ctx_ = ctx
30049 return c
30050 }
30051
30052
30053
30054 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
30055 if c.header_ == nil {
30056 c.header_ = make(http.Header)
30057 }
30058 return c.header_
30059 }
30060
30061 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
30062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30063 if c.ifNoneMatch_ != "" {
30064 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30065 }
30066 var body io.Reader = nil
30067 c.urlParams_.Set("alt", alt)
30068 c.urlParams_.Set("prettyPrint", "false")
30069 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30070 urls += "?" + c.urlParams_.Encode()
30071 req, err := http.NewRequest("GET", urls, body)
30072 if err != nil {
30073 return nil, err
30074 }
30075 req.Header = reqHeaders
30076 googleapi.Expand(req.URL, map[string]string{
30077 "name": c.name,
30078 })
30079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30080 }
30081
30082
30083
30084
30085
30086
30087
30088 func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
30089 gensupport.SetOptions(c.urlParams_, opts...)
30090 res, err := c.doRequest("json")
30091 if res != nil && res.StatusCode == http.StatusNotModified {
30092 if res.Body != nil {
30093 res.Body.Close()
30094 }
30095 return nil, gensupport.WrapError(&googleapi.Error{
30096 Code: res.StatusCode,
30097 Header: res.Header,
30098 })
30099 }
30100 if err != nil {
30101 return nil, err
30102 }
30103 defer googleapi.CloseBody(res)
30104 if err := googleapi.CheckResponse(res); err != nil {
30105 return nil, gensupport.WrapError(err)
30106 }
30107 ret := &GoogleCloudApigeeV1DebugSessionTransaction{
30108 ServerResponse: googleapi.ServerResponse{
30109 Header: res.Header,
30110 HTTPStatusCode: res.StatusCode,
30111 },
30112 }
30113 target := &ret
30114 if err := gensupport.DecodeResponse(target, res); err != nil {
30115 return nil, err
30116 }
30117 return ret, nil
30118 }
30119
30120 type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall struct {
30121 s *Service
30122 name string
30123 urlParams_ gensupport.URLParams
30124 ctx_ context.Context
30125 header_ http.Header
30126 }
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140
30141
30142
30143 func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateDeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
30144 c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30145 c.name = name
30146 return c
30147 }
30148
30149
30150
30151
30152 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Override(override bool) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
30153 c.urlParams_.Set("override", fmt.Sprint(override))
30154 return c
30155 }
30156
30157
30158
30159
30160 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
30161 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30162 return c
30163 }
30164
30165
30166 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall {
30167 c.ctx_ = ctx
30168 return c
30169 }
30170
30171
30172
30173 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Header() http.Header {
30174 if c.header_ == nil {
30175 c.header_ = make(http.Header)
30176 }
30177 return c.header_
30178 }
30179
30180 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
30181 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30182 var body io.Reader = nil
30183 c.urlParams_.Set("alt", alt)
30184 c.urlParams_.Set("prettyPrint", "false")
30185 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateDeployChangeReport")
30186 urls += "?" + c.urlParams_.Encode()
30187 req, err := http.NewRequest("POST", urls, body)
30188 if err != nil {
30189 return nil, err
30190 }
30191 req.Header = reqHeaders
30192 googleapi.Expand(req.URL, map[string]string{
30193 "name": c.name,
30194 })
30195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30196 }
30197
30198
30199
30200
30201
30202
30203
30204 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateDeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
30205 gensupport.SetOptions(c.urlParams_, opts...)
30206 res, err := c.doRequest("json")
30207 if res != nil && res.StatusCode == http.StatusNotModified {
30208 if res.Body != nil {
30209 res.Body.Close()
30210 }
30211 return nil, gensupport.WrapError(&googleapi.Error{
30212 Code: res.StatusCode,
30213 Header: res.Header,
30214 })
30215 }
30216 if err != nil {
30217 return nil, err
30218 }
30219 defer googleapi.CloseBody(res)
30220 if err := googleapi.CheckResponse(res); err != nil {
30221 return nil, gensupport.WrapError(err)
30222 }
30223 ret := &GoogleCloudApigeeV1DeploymentChangeReport{
30224 ServerResponse: googleapi.ServerResponse{
30225 Header: res.Header,
30226 HTTPStatusCode: res.StatusCode,
30227 },
30228 }
30229 target := &ret
30230 if err := gensupport.DecodeResponse(target, res); err != nil {
30231 return nil, err
30232 }
30233 return ret, nil
30234 }
30235
30236 type OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall struct {
30237 s *Service
30238 name string
30239 urlParams_ gensupport.URLParams
30240 ctx_ context.Context
30241 header_ http.Header
30242 }
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259 func (r *OrganizationsEnvironmentsApisRevisionsDeploymentsService) GenerateUndeployChangeReport(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
30260 c := &OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30261 c.name = name
30262 return c
30263 }
30264
30265
30266
30267
30268 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
30269 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30270 return c
30271 }
30272
30273
30274 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall {
30275 c.ctx_ = ctx
30276 return c
30277 }
30278
30279
30280
30281 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Header() http.Header {
30282 if c.header_ == nil {
30283 c.header_ = make(http.Header)
30284 }
30285 return c.header_
30286 }
30287
30288 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) doRequest(alt string) (*http.Response, error) {
30289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30290 var body io.Reader = nil
30291 c.urlParams_.Set("alt", alt)
30292 c.urlParams_.Set("prettyPrint", "false")
30293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments:generateUndeployChangeReport")
30294 urls += "?" + c.urlParams_.Encode()
30295 req, err := http.NewRequest("POST", urls, body)
30296 if err != nil {
30297 return nil, err
30298 }
30299 req.Header = reqHeaders
30300 googleapi.Expand(req.URL, map[string]string{
30301 "name": c.name,
30302 })
30303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30304 }
30305
30306
30307
30308
30309
30310
30311
30312 func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsGenerateUndeployChangeReportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeploymentChangeReport, error) {
30313 gensupport.SetOptions(c.urlParams_, opts...)
30314 res, err := c.doRequest("json")
30315 if res != nil && res.StatusCode == http.StatusNotModified {
30316 if res.Body != nil {
30317 res.Body.Close()
30318 }
30319 return nil, gensupport.WrapError(&googleapi.Error{
30320 Code: res.StatusCode,
30321 Header: res.Header,
30322 })
30323 }
30324 if err != nil {
30325 return nil, err
30326 }
30327 defer googleapi.CloseBody(res)
30328 if err := googleapi.CheckResponse(res); err != nil {
30329 return nil, gensupport.WrapError(err)
30330 }
30331 ret := &GoogleCloudApigeeV1DeploymentChangeReport{
30332 ServerResponse: googleapi.ServerResponse{
30333 Header: res.Header,
30334 HTTPStatusCode: res.StatusCode,
30335 },
30336 }
30337 target := &ret
30338 if err := gensupport.DecodeResponse(target, res); err != nil {
30339 return nil, err
30340 }
30341 return ret, nil
30342 }
30343
30344 type OrganizationsEnvironmentsArchiveDeploymentsCreateCall struct {
30345 s *Service
30346 parent string
30347 googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
30348 urlParams_ gensupport.URLParams
30349 ctx_ context.Context
30350 header_ http.Header
30351 }
30352
30353
30354
30355
30356 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Create(parent string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
30357 c := &OrganizationsEnvironmentsArchiveDeploymentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30358 c.parent = parent
30359 c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
30360 return c
30361 }
30362
30363
30364
30365
30366 func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
30367 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30368 return c
30369 }
30370
30371
30372 func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsCreateCall {
30373 c.ctx_ = ctx
30374 return c
30375 }
30376
30377
30378
30379 func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Header() http.Header {
30380 if c.header_ == nil {
30381 c.header_ = make(http.Header)
30382 }
30383 return c.header_
30384 }
30385
30386 func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) doRequest(alt string) (*http.Response, error) {
30387 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30388 var body io.Reader = nil
30389 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
30390 if err != nil {
30391 return nil, err
30392 }
30393 c.urlParams_.Set("alt", alt)
30394 c.urlParams_.Set("prettyPrint", "false")
30395 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
30396 urls += "?" + c.urlParams_.Encode()
30397 req, err := http.NewRequest("POST", urls, body)
30398 if err != nil {
30399 return nil, err
30400 }
30401 req.Header = reqHeaders
30402 googleapi.Expand(req.URL, map[string]string{
30403 "parent": c.parent,
30404 })
30405 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30406 }
30407
30408
30409
30410
30411
30412
30413
30414 func (c *OrganizationsEnvironmentsArchiveDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30415 gensupport.SetOptions(c.urlParams_, opts...)
30416 res, err := c.doRequest("json")
30417 if res != nil && res.StatusCode == http.StatusNotModified {
30418 if res.Body != nil {
30419 res.Body.Close()
30420 }
30421 return nil, gensupport.WrapError(&googleapi.Error{
30422 Code: res.StatusCode,
30423 Header: res.Header,
30424 })
30425 }
30426 if err != nil {
30427 return nil, err
30428 }
30429 defer googleapi.CloseBody(res)
30430 if err := googleapi.CheckResponse(res); err != nil {
30431 return nil, gensupport.WrapError(err)
30432 }
30433 ret := &GoogleLongrunningOperation{
30434 ServerResponse: googleapi.ServerResponse{
30435 Header: res.Header,
30436 HTTPStatusCode: res.StatusCode,
30437 },
30438 }
30439 target := &ret
30440 if err := gensupport.DecodeResponse(target, res); err != nil {
30441 return nil, err
30442 }
30443 return ret, nil
30444 }
30445
30446 type OrganizationsEnvironmentsArchiveDeploymentsDeleteCall struct {
30447 s *Service
30448 name string
30449 urlParams_ gensupport.URLParams
30450 ctx_ context.Context
30451 header_ http.Header
30452 }
30453
30454
30455
30456
30457
30458 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Delete(name string) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30459 c := &OrganizationsEnvironmentsArchiveDeploymentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30460 c.name = name
30461 return c
30462 }
30463
30464
30465
30466
30467 func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30469 return c
30470 }
30471
30472
30473 func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall {
30474 c.ctx_ = ctx
30475 return c
30476 }
30477
30478
30479
30480 func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Header() http.Header {
30481 if c.header_ == nil {
30482 c.header_ = make(http.Header)
30483 }
30484 return c.header_
30485 }
30486
30487 func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) doRequest(alt string) (*http.Response, error) {
30488 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30489 var body io.Reader = nil
30490 c.urlParams_.Set("alt", alt)
30491 c.urlParams_.Set("prettyPrint", "false")
30492 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30493 urls += "?" + c.urlParams_.Encode()
30494 req, err := http.NewRequest("DELETE", urls, body)
30495 if err != nil {
30496 return nil, err
30497 }
30498 req.Header = reqHeaders
30499 googleapi.Expand(req.URL, map[string]string{
30500 "name": c.name,
30501 })
30502 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30503 }
30504
30505
30506
30507
30508
30509
30510
30511 func (c *OrganizationsEnvironmentsArchiveDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30512 gensupport.SetOptions(c.urlParams_, opts...)
30513 res, err := c.doRequest("json")
30514 if res != nil && res.StatusCode == http.StatusNotModified {
30515 if res.Body != nil {
30516 res.Body.Close()
30517 }
30518 return nil, gensupport.WrapError(&googleapi.Error{
30519 Code: res.StatusCode,
30520 Header: res.Header,
30521 })
30522 }
30523 if err != nil {
30524 return nil, err
30525 }
30526 defer googleapi.CloseBody(res)
30527 if err := googleapi.CheckResponse(res); err != nil {
30528 return nil, gensupport.WrapError(err)
30529 }
30530 ret := &GoogleProtobufEmpty{
30531 ServerResponse: googleapi.ServerResponse{
30532 Header: res.Header,
30533 HTTPStatusCode: res.StatusCode,
30534 },
30535 }
30536 target := &ret
30537 if err := gensupport.DecodeResponse(target, res); err != nil {
30538 return nil, err
30539 }
30540 return ret, nil
30541 }
30542
30543 type OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall struct {
30544 s *Service
30545 name string
30546 googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest
30547 urlParams_ gensupport.URLParams
30548 ctx_ context.Context
30549 header_ http.Header
30550 }
30551
30552
30553
30554
30555
30556
30557
30558 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateDownloadUrl(name string, googlecloudapigeev1generatedownloadurlrequest *GoogleCloudApigeeV1GenerateDownloadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30559 c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30560 c.name = name
30561 c.googlecloudapigeev1generatedownloadurlrequest = googlecloudapigeev1generatedownloadurlrequest
30562 return c
30563 }
30564
30565
30566
30567
30568 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30570 return c
30571 }
30572
30573
30574 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall {
30575 c.ctx_ = ctx
30576 return c
30577 }
30578
30579
30580
30581 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Header() http.Header {
30582 if c.header_ == nil {
30583 c.header_ = make(http.Header)
30584 }
30585 return c.header_
30586 }
30587
30588 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) doRequest(alt string) (*http.Response, error) {
30589 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30590 var body io.Reader = nil
30591 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generatedownloadurlrequest)
30592 if err != nil {
30593 return nil, err
30594 }
30595 c.urlParams_.Set("alt", alt)
30596 c.urlParams_.Set("prettyPrint", "false")
30597 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:generateDownloadUrl")
30598 urls += "?" + c.urlParams_.Encode()
30599 req, err := http.NewRequest("POST", urls, body)
30600 if err != nil {
30601 return nil, err
30602 }
30603 req.Header = reqHeaders
30604 googleapi.Expand(req.URL, map[string]string{
30605 "name": c.name,
30606 })
30607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30608 }
30609
30610
30611
30612
30613
30614
30615
30616 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateDownloadUrlResponse, error) {
30617 gensupport.SetOptions(c.urlParams_, opts...)
30618 res, err := c.doRequest("json")
30619 if res != nil && res.StatusCode == http.StatusNotModified {
30620 if res.Body != nil {
30621 res.Body.Close()
30622 }
30623 return nil, gensupport.WrapError(&googleapi.Error{
30624 Code: res.StatusCode,
30625 Header: res.Header,
30626 })
30627 }
30628 if err != nil {
30629 return nil, err
30630 }
30631 defer googleapi.CloseBody(res)
30632 if err := googleapi.CheckResponse(res); err != nil {
30633 return nil, gensupport.WrapError(err)
30634 }
30635 ret := &GoogleCloudApigeeV1GenerateDownloadUrlResponse{
30636 ServerResponse: googleapi.ServerResponse{
30637 Header: res.Header,
30638 HTTPStatusCode: res.StatusCode,
30639 },
30640 }
30641 target := &ret
30642 if err := gensupport.DecodeResponse(target, res); err != nil {
30643 return nil, err
30644 }
30645 return ret, nil
30646 }
30647
30648 type OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall struct {
30649 s *Service
30650 parent string
30651 googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest
30652 urlParams_ gensupport.URLParams
30653 ctx_ context.Context
30654 header_ http.Header
30655 }
30656
30657
30658
30659
30660
30661
30662
30663
30664
30665
30666
30667
30668
30669
30670
30671 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) GenerateUploadUrl(parent string, googlecloudapigeev1generateuploadurlrequest *GoogleCloudApigeeV1GenerateUploadUrlRequest) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30672 c := &OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30673 c.parent = parent
30674 c.googlecloudapigeev1generateuploadurlrequest = googlecloudapigeev1generateuploadurlrequest
30675 return c
30676 }
30677
30678
30679
30680
30681 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30682 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30683 return c
30684 }
30685
30686
30687 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall {
30688 c.ctx_ = ctx
30689 return c
30690 }
30691
30692
30693
30694 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Header() http.Header {
30695 if c.header_ == nil {
30696 c.header_ = make(http.Header)
30697 }
30698 return c.header_
30699 }
30700
30701 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) doRequest(alt string) (*http.Response, error) {
30702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30703 var body io.Reader = nil
30704 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1generateuploadurlrequest)
30705 if err != nil {
30706 return nil, err
30707 }
30708 c.urlParams_.Set("alt", alt)
30709 c.urlParams_.Set("prettyPrint", "false")
30710 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments:generateUploadUrl")
30711 urls += "?" + c.urlParams_.Encode()
30712 req, err := http.NewRequest("POST", urls, body)
30713 if err != nil {
30714 return nil, err
30715 }
30716 req.Header = reqHeaders
30717 googleapi.Expand(req.URL, map[string]string{
30718 "parent": c.parent,
30719 })
30720 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30721 }
30722
30723
30724
30725
30726
30727
30728
30729 func (c *OrganizationsEnvironmentsArchiveDeploymentsGenerateUploadUrlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GenerateUploadUrlResponse, error) {
30730 gensupport.SetOptions(c.urlParams_, opts...)
30731 res, err := c.doRequest("json")
30732 if res != nil && res.StatusCode == http.StatusNotModified {
30733 if res.Body != nil {
30734 res.Body.Close()
30735 }
30736 return nil, gensupport.WrapError(&googleapi.Error{
30737 Code: res.StatusCode,
30738 Header: res.Header,
30739 })
30740 }
30741 if err != nil {
30742 return nil, err
30743 }
30744 defer googleapi.CloseBody(res)
30745 if err := googleapi.CheckResponse(res); err != nil {
30746 return nil, gensupport.WrapError(err)
30747 }
30748 ret := &GoogleCloudApigeeV1GenerateUploadUrlResponse{
30749 ServerResponse: googleapi.ServerResponse{
30750 Header: res.Header,
30751 HTTPStatusCode: res.StatusCode,
30752 },
30753 }
30754 target := &ret
30755 if err := gensupport.DecodeResponse(target, res); err != nil {
30756 return nil, err
30757 }
30758 return ret, nil
30759 }
30760
30761 type OrganizationsEnvironmentsArchiveDeploymentsGetCall struct {
30762 s *Service
30763 name string
30764 urlParams_ gensupport.URLParams
30765 ifNoneMatch_ string
30766 ctx_ context.Context
30767 header_ http.Header
30768 }
30769
30770
30771
30772
30773
30774 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Get(name string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30775 c := &OrganizationsEnvironmentsArchiveDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30776 c.name = name
30777 return c
30778 }
30779
30780
30781
30782
30783 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30784 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30785 return c
30786 }
30787
30788
30789
30790
30791 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30792 c.ifNoneMatch_ = entityTag
30793 return c
30794 }
30795
30796
30797 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsGetCall {
30798 c.ctx_ = ctx
30799 return c
30800 }
30801
30802
30803
30804 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Header() http.Header {
30805 if c.header_ == nil {
30806 c.header_ = make(http.Header)
30807 }
30808 return c.header_
30809 }
30810
30811 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
30812 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30813 if c.ifNoneMatch_ != "" {
30814 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30815 }
30816 var body io.Reader = nil
30817 c.urlParams_.Set("alt", alt)
30818 c.urlParams_.Set("prettyPrint", "false")
30819 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30820 urls += "?" + c.urlParams_.Encode()
30821 req, err := http.NewRequest("GET", urls, body)
30822 if err != nil {
30823 return nil, err
30824 }
30825 req.Header = reqHeaders
30826 googleapi.Expand(req.URL, map[string]string{
30827 "name": c.name,
30828 })
30829 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30830 }
30831
30832
30833
30834
30835
30836
30837
30838 func (c *OrganizationsEnvironmentsArchiveDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
30839 gensupport.SetOptions(c.urlParams_, opts...)
30840 res, err := c.doRequest("json")
30841 if res != nil && res.StatusCode == http.StatusNotModified {
30842 if res.Body != nil {
30843 res.Body.Close()
30844 }
30845 return nil, gensupport.WrapError(&googleapi.Error{
30846 Code: res.StatusCode,
30847 Header: res.Header,
30848 })
30849 }
30850 if err != nil {
30851 return nil, err
30852 }
30853 defer googleapi.CloseBody(res)
30854 if err := googleapi.CheckResponse(res); err != nil {
30855 return nil, gensupport.WrapError(err)
30856 }
30857 ret := &GoogleCloudApigeeV1ArchiveDeployment{
30858 ServerResponse: googleapi.ServerResponse{
30859 Header: res.Header,
30860 HTTPStatusCode: res.StatusCode,
30861 },
30862 }
30863 target := &ret
30864 if err := gensupport.DecodeResponse(target, res); err != nil {
30865 return nil, err
30866 }
30867 return ret, nil
30868 }
30869
30870 type OrganizationsEnvironmentsArchiveDeploymentsListCall struct {
30871 s *Service
30872 parent string
30873 urlParams_ gensupport.URLParams
30874 ifNoneMatch_ string
30875 ctx_ context.Context
30876 header_ http.Header
30877 }
30878
30879
30880
30881
30882
30883 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) List(parent string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30884 c := &OrganizationsEnvironmentsArchiveDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30885 c.parent = parent
30886 return c
30887 }
30888
30889
30890
30891
30892 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Filter(filter string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30893 c.urlParams_.Set("filter", filter)
30894 return c
30895 }
30896
30897
30898
30899
30900 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30901 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30902 return c
30903 }
30904
30905
30906
30907
30908 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30909 c.urlParams_.Set("pageToken", pageToken)
30910 return c
30911 }
30912
30913
30914
30915
30916 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30917 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30918 return c
30919 }
30920
30921
30922
30923
30924 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30925 c.ifNoneMatch_ = entityTag
30926 return c
30927 }
30928
30929
30930 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsListCall {
30931 c.ctx_ = ctx
30932 return c
30933 }
30934
30935
30936
30937 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Header() http.Header {
30938 if c.header_ == nil {
30939 c.header_ = make(http.Header)
30940 }
30941 return c.header_
30942 }
30943
30944 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
30945 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30946 if c.ifNoneMatch_ != "" {
30947 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30948 }
30949 var body io.Reader = nil
30950 c.urlParams_.Set("alt", alt)
30951 c.urlParams_.Set("prettyPrint", "false")
30952 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/archiveDeployments")
30953 urls += "?" + c.urlParams_.Encode()
30954 req, err := http.NewRequest("GET", urls, body)
30955 if err != nil {
30956 return nil, err
30957 }
30958 req.Header = reqHeaders
30959 googleapi.Expand(req.URL, map[string]string{
30960 "parent": c.parent,
30961 })
30962 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30963 }
30964
30965
30966
30967
30968
30969
30970
30971 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListArchiveDeploymentsResponse, error) {
30972 gensupport.SetOptions(c.urlParams_, opts...)
30973 res, err := c.doRequest("json")
30974 if res != nil && res.StatusCode == http.StatusNotModified {
30975 if res.Body != nil {
30976 res.Body.Close()
30977 }
30978 return nil, gensupport.WrapError(&googleapi.Error{
30979 Code: res.StatusCode,
30980 Header: res.Header,
30981 })
30982 }
30983 if err != nil {
30984 return nil, err
30985 }
30986 defer googleapi.CloseBody(res)
30987 if err := googleapi.CheckResponse(res); err != nil {
30988 return nil, gensupport.WrapError(err)
30989 }
30990 ret := &GoogleCloudApigeeV1ListArchiveDeploymentsResponse{
30991 ServerResponse: googleapi.ServerResponse{
30992 Header: res.Header,
30993 HTTPStatusCode: res.StatusCode,
30994 },
30995 }
30996 target := &ret
30997 if err := gensupport.DecodeResponse(target, res); err != nil {
30998 return nil, err
30999 }
31000 return ret, nil
31001 }
31002
31003
31004
31005
31006 func (c *OrganizationsEnvironmentsArchiveDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListArchiveDeploymentsResponse) error) error {
31007 c.ctx_ = ctx
31008 defer c.PageToken(c.urlParams_.Get("pageToken"))
31009 for {
31010 x, err := c.Do()
31011 if err != nil {
31012 return err
31013 }
31014 if err := f(x); err != nil {
31015 return err
31016 }
31017 if x.NextPageToken == "" {
31018 return nil
31019 }
31020 c.PageToken(x.NextPageToken)
31021 }
31022 }
31023
31024 type OrganizationsEnvironmentsArchiveDeploymentsPatchCall struct {
31025 s *Service
31026 name string
31027 googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment
31028 urlParams_ gensupport.URLParams
31029 ctx_ context.Context
31030 header_ http.Header
31031 }
31032
31033
31034
31035
31036
31037
31038 func (r *OrganizationsEnvironmentsArchiveDeploymentsService) Patch(name string, googlecloudapigeev1archivedeployment *GoogleCloudApigeeV1ArchiveDeployment) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
31039 c := &OrganizationsEnvironmentsArchiveDeploymentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31040 c.name = name
31041 c.googlecloudapigeev1archivedeployment = googlecloudapigeev1archivedeployment
31042 return c
31043 }
31044
31045
31046
31047 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
31048 c.urlParams_.Set("updateMask", updateMask)
31049 return c
31050 }
31051
31052
31053
31054
31055 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
31056 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31057 return c
31058 }
31059
31060
31061 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsArchiveDeploymentsPatchCall {
31062 c.ctx_ = ctx
31063 return c
31064 }
31065
31066
31067
31068 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Header() http.Header {
31069 if c.header_ == nil {
31070 c.header_ = make(http.Header)
31071 }
31072 return c.header_
31073 }
31074
31075 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) doRequest(alt string) (*http.Response, error) {
31076 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31077 var body io.Reader = nil
31078 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1archivedeployment)
31079 if err != nil {
31080 return nil, err
31081 }
31082 c.urlParams_.Set("alt", alt)
31083 c.urlParams_.Set("prettyPrint", "false")
31084 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31085 urls += "?" + c.urlParams_.Encode()
31086 req, err := http.NewRequest("PATCH", urls, body)
31087 if err != nil {
31088 return nil, err
31089 }
31090 req.Header = reqHeaders
31091 googleapi.Expand(req.URL, map[string]string{
31092 "name": c.name,
31093 })
31094 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31095 }
31096
31097
31098
31099
31100
31101
31102
31103 func (c *OrganizationsEnvironmentsArchiveDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ArchiveDeployment, error) {
31104 gensupport.SetOptions(c.urlParams_, opts...)
31105 res, err := c.doRequest("json")
31106 if res != nil && res.StatusCode == http.StatusNotModified {
31107 if res.Body != nil {
31108 res.Body.Close()
31109 }
31110 return nil, gensupport.WrapError(&googleapi.Error{
31111 Code: res.StatusCode,
31112 Header: res.Header,
31113 })
31114 }
31115 if err != nil {
31116 return nil, err
31117 }
31118 defer googleapi.CloseBody(res)
31119 if err := googleapi.CheckResponse(res); err != nil {
31120 return nil, gensupport.WrapError(err)
31121 }
31122 ret := &GoogleCloudApigeeV1ArchiveDeployment{
31123 ServerResponse: googleapi.ServerResponse{
31124 Header: res.Header,
31125 HTTPStatusCode: res.StatusCode,
31126 },
31127 }
31128 target := &ret
31129 if err := gensupport.DecodeResponse(target, res); err != nil {
31130 return nil, err
31131 }
31132 return ret, nil
31133 }
31134
31135 type OrganizationsEnvironmentsCachesDeleteCall struct {
31136 s *Service
31137 name string
31138 urlParams_ gensupport.URLParams
31139 ctx_ context.Context
31140 header_ http.Header
31141 }
31142
31143
31144
31145
31146
31147
31148 func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
31149 c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31150 c.name = name
31151 return c
31152 }
31153
31154
31155
31156
31157 func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
31158 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31159 return c
31160 }
31161
31162
31163 func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
31164 c.ctx_ = ctx
31165 return c
31166 }
31167
31168
31169
31170 func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
31171 if c.header_ == nil {
31172 c.header_ = make(http.Header)
31173 }
31174 return c.header_
31175 }
31176
31177 func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
31178 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31179 var body io.Reader = nil
31180 c.urlParams_.Set("alt", alt)
31181 c.urlParams_.Set("prettyPrint", "false")
31182 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31183 urls += "?" + c.urlParams_.Encode()
31184 req, err := http.NewRequest("DELETE", urls, body)
31185 if err != nil {
31186 return nil, err
31187 }
31188 req.Header = reqHeaders
31189 googleapi.Expand(req.URL, map[string]string{
31190 "name": c.name,
31191 })
31192 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31193 }
31194
31195
31196
31197
31198
31199
31200
31201 func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31202 gensupport.SetOptions(c.urlParams_, opts...)
31203 res, err := c.doRequest("json")
31204 if res != nil && res.StatusCode == http.StatusNotModified {
31205 if res.Body != nil {
31206 res.Body.Close()
31207 }
31208 return nil, gensupport.WrapError(&googleapi.Error{
31209 Code: res.StatusCode,
31210 Header: res.Header,
31211 })
31212 }
31213 if err != nil {
31214 return nil, err
31215 }
31216 defer googleapi.CloseBody(res)
31217 if err := googleapi.CheckResponse(res); err != nil {
31218 return nil, gensupport.WrapError(err)
31219 }
31220 ret := &GoogleProtobufEmpty{
31221 ServerResponse: googleapi.ServerResponse{
31222 Header: res.Header,
31223 HTTPStatusCode: res.StatusCode,
31224 },
31225 }
31226 target := &ret
31227 if err := gensupport.DecodeResponse(target, res); err != nil {
31228 return nil, err
31229 }
31230 return ret, nil
31231 }
31232
31233 type OrganizationsEnvironmentsDeploymentsListCall struct {
31234 s *Service
31235 parent string
31236 urlParams_ gensupport.URLParams
31237 ifNoneMatch_ string
31238 ctx_ context.Context
31239 header_ http.Header
31240 }
31241
31242
31243
31244
31245
31246
31247 func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
31248 c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31249 c.parent = parent
31250 return c
31251 }
31252
31253
31254
31255
31256
31257 func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
31258 c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
31259 return c
31260 }
31261
31262
31263
31264
31265 func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
31266 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31267 return c
31268 }
31269
31270
31271
31272
31273 func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
31274 c.ifNoneMatch_ = entityTag
31275 return c
31276 }
31277
31278
31279 func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
31280 c.ctx_ = ctx
31281 return c
31282 }
31283
31284
31285
31286 func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
31287 if c.header_ == nil {
31288 c.header_ = make(http.Header)
31289 }
31290 return c.header_
31291 }
31292
31293 func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
31294 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31295 if c.ifNoneMatch_ != "" {
31296 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31297 }
31298 var body io.Reader = nil
31299 c.urlParams_.Set("alt", alt)
31300 c.urlParams_.Set("prettyPrint", "false")
31301 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
31302 urls += "?" + c.urlParams_.Encode()
31303 req, err := http.NewRequest("GET", urls, body)
31304 if err != nil {
31305 return nil, err
31306 }
31307 req.Header = reqHeaders
31308 googleapi.Expand(req.URL, map[string]string{
31309 "parent": c.parent,
31310 })
31311 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31312 }
31313
31314
31315
31316
31317
31318
31319
31320 func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
31321 gensupport.SetOptions(c.urlParams_, opts...)
31322 res, err := c.doRequest("json")
31323 if res != nil && res.StatusCode == http.StatusNotModified {
31324 if res.Body != nil {
31325 res.Body.Close()
31326 }
31327 return nil, gensupport.WrapError(&googleapi.Error{
31328 Code: res.StatusCode,
31329 Header: res.Header,
31330 })
31331 }
31332 if err != nil {
31333 return nil, err
31334 }
31335 defer googleapi.CloseBody(res)
31336 if err := googleapi.CheckResponse(res); err != nil {
31337 return nil, gensupport.WrapError(err)
31338 }
31339 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
31340 ServerResponse: googleapi.ServerResponse{
31341 Header: res.Header,
31342 HTTPStatusCode: res.StatusCode,
31343 },
31344 }
31345 target := &ret
31346 if err := gensupport.DecodeResponse(target, res); err != nil {
31347 return nil, err
31348 }
31349 return ret, nil
31350 }
31351
31352 type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
31353 s *Service
31354 name string
31355 googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
31356 urlParams_ gensupport.URLParams
31357 ctx_ context.Context
31358 header_ http.Header
31359 }
31360
31361
31362
31363
31364
31365
31366 func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31367 c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31368 c.name = name
31369 c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
31370 return c
31371 }
31372
31373
31374
31375
31376 func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31377 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31378 return c
31379 }
31380
31381
31382 func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
31383 c.ctx_ = ctx
31384 return c
31385 }
31386
31387
31388
31389 func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
31390 if c.header_ == nil {
31391 c.header_ = make(http.Header)
31392 }
31393 return c.header_
31394 }
31395
31396 func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
31397 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31398 var body io.Reader = nil
31399 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
31400 if err != nil {
31401 return nil, err
31402 }
31403 c.urlParams_.Set("alt", alt)
31404 c.urlParams_.Set("prettyPrint", "false")
31405 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31406 urls += "?" + c.urlParams_.Encode()
31407 req, err := http.NewRequest("PUT", urls, body)
31408 if err != nil {
31409 return nil, err
31410 }
31411 req.Header = reqHeaders
31412 googleapi.Expand(req.URL, map[string]string{
31413 "name": c.name,
31414 })
31415 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31416 }
31417
31418
31419
31420
31421
31422
31423
31424 func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31425 gensupport.SetOptions(c.urlParams_, opts...)
31426 res, err := c.doRequest("json")
31427 if res != nil && res.StatusCode == http.StatusNotModified {
31428 if res.Body != nil {
31429 res.Body.Close()
31430 }
31431 return nil, gensupport.WrapError(&googleapi.Error{
31432 Code: res.StatusCode,
31433 Header: res.Header,
31434 })
31435 }
31436 if err != nil {
31437 return nil, err
31438 }
31439 defer googleapi.CloseBody(res)
31440 if err := googleapi.CheckResponse(res); err != nil {
31441 return nil, gensupport.WrapError(err)
31442 }
31443 ret := &GoogleCloudApigeeV1FlowHook{
31444 ServerResponse: googleapi.ServerResponse{
31445 Header: res.Header,
31446 HTTPStatusCode: res.StatusCode,
31447 },
31448 }
31449 target := &ret
31450 if err := gensupport.DecodeResponse(target, res); err != nil {
31451 return nil, err
31452 }
31453 return ret, nil
31454 }
31455
31456 type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
31457 s *Service
31458 name string
31459 urlParams_ gensupport.URLParams
31460 ctx_ context.Context
31461 header_ http.Header
31462 }
31463
31464
31465
31466
31467
31468 func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31469 c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31470 c.name = name
31471 return c
31472 }
31473
31474
31475
31476
31477 func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31478 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31479 return c
31480 }
31481
31482
31483 func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
31484 c.ctx_ = ctx
31485 return c
31486 }
31487
31488
31489
31490 func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
31491 if c.header_ == nil {
31492 c.header_ = make(http.Header)
31493 }
31494 return c.header_
31495 }
31496
31497 func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
31498 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31499 var body io.Reader = nil
31500 c.urlParams_.Set("alt", alt)
31501 c.urlParams_.Set("prettyPrint", "false")
31502 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31503 urls += "?" + c.urlParams_.Encode()
31504 req, err := http.NewRequest("DELETE", urls, body)
31505 if err != nil {
31506 return nil, err
31507 }
31508 req.Header = reqHeaders
31509 googleapi.Expand(req.URL, map[string]string{
31510 "name": c.name,
31511 })
31512 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31513 }
31514
31515
31516
31517
31518
31519
31520
31521 func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31522 gensupport.SetOptions(c.urlParams_, opts...)
31523 res, err := c.doRequest("json")
31524 if res != nil && res.StatusCode == http.StatusNotModified {
31525 if res.Body != nil {
31526 res.Body.Close()
31527 }
31528 return nil, gensupport.WrapError(&googleapi.Error{
31529 Code: res.StatusCode,
31530 Header: res.Header,
31531 })
31532 }
31533 if err != nil {
31534 return nil, err
31535 }
31536 defer googleapi.CloseBody(res)
31537 if err := googleapi.CheckResponse(res); err != nil {
31538 return nil, gensupport.WrapError(err)
31539 }
31540 ret := &GoogleCloudApigeeV1FlowHook{
31541 ServerResponse: googleapi.ServerResponse{
31542 Header: res.Header,
31543 HTTPStatusCode: res.StatusCode,
31544 },
31545 }
31546 target := &ret
31547 if err := gensupport.DecodeResponse(target, res); err != nil {
31548 return nil, err
31549 }
31550 return ret, nil
31551 }
31552
31553 type OrganizationsEnvironmentsFlowhooksGetCall struct {
31554 s *Service
31555 name string
31556 urlParams_ gensupport.URLParams
31557 ifNoneMatch_ string
31558 ctx_ context.Context
31559 header_ http.Header
31560 }
31561
31562
31563
31564
31565
31566
31567
31568 func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
31569 c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31570 c.name = name
31571 return c
31572 }
31573
31574
31575
31576
31577 func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
31578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31579 return c
31580 }
31581
31582
31583
31584
31585 func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
31586 c.ifNoneMatch_ = entityTag
31587 return c
31588 }
31589
31590
31591 func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
31592 c.ctx_ = ctx
31593 return c
31594 }
31595
31596
31597
31598 func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
31599 if c.header_ == nil {
31600 c.header_ = make(http.Header)
31601 }
31602 return c.header_
31603 }
31604
31605 func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
31606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31607 if c.ifNoneMatch_ != "" {
31608 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31609 }
31610 var body io.Reader = nil
31611 c.urlParams_.Set("alt", alt)
31612 c.urlParams_.Set("prettyPrint", "false")
31613 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31614 urls += "?" + c.urlParams_.Encode()
31615 req, err := http.NewRequest("GET", urls, body)
31616 if err != nil {
31617 return nil, err
31618 }
31619 req.Header = reqHeaders
31620 googleapi.Expand(req.URL, map[string]string{
31621 "name": c.name,
31622 })
31623 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31624 }
31625
31626
31627
31628
31629
31630
31631
31632 func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
31633 gensupport.SetOptions(c.urlParams_, opts...)
31634 res, err := c.doRequest("json")
31635 if res != nil && res.StatusCode == http.StatusNotModified {
31636 if res.Body != nil {
31637 res.Body.Close()
31638 }
31639 return nil, gensupport.WrapError(&googleapi.Error{
31640 Code: res.StatusCode,
31641 Header: res.Header,
31642 })
31643 }
31644 if err != nil {
31645 return nil, err
31646 }
31647 defer googleapi.CloseBody(res)
31648 if err := googleapi.CheckResponse(res); err != nil {
31649 return nil, gensupport.WrapError(err)
31650 }
31651 ret := &GoogleCloudApigeeV1FlowHook{
31652 ServerResponse: googleapi.ServerResponse{
31653 Header: res.Header,
31654 HTTPStatusCode: res.StatusCode,
31655 },
31656 }
31657 target := &ret
31658 if err := gensupport.DecodeResponse(target, res); err != nil {
31659 return nil, err
31660 }
31661 return ret, nil
31662 }
31663
31664 type OrganizationsEnvironmentsKeystoresCreateCall struct {
31665 s *Service
31666 parent string
31667 googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
31668 urlParams_ gensupport.URLParams
31669 ctx_ context.Context
31670 header_ http.Header
31671 }
31672
31673
31674
31675
31676
31677
31678
31679
31680
31681 func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
31682 c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31683 c.parent = parent
31684 c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
31685 return c
31686 }
31687
31688
31689
31690 func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
31691 c.urlParams_.Set("name", name)
31692 return c
31693 }
31694
31695
31696
31697
31698 func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
31699 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31700 return c
31701 }
31702
31703
31704 func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
31705 c.ctx_ = ctx
31706 return c
31707 }
31708
31709
31710
31711 func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
31712 if c.header_ == nil {
31713 c.header_ = make(http.Header)
31714 }
31715 return c.header_
31716 }
31717
31718 func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
31719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31720 var body io.Reader = nil
31721 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
31722 if err != nil {
31723 return nil, err
31724 }
31725 c.urlParams_.Set("alt", alt)
31726 c.urlParams_.Set("prettyPrint", "false")
31727 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
31728 urls += "?" + c.urlParams_.Encode()
31729 req, err := http.NewRequest("POST", urls, body)
31730 if err != nil {
31731 return nil, err
31732 }
31733 req.Header = reqHeaders
31734 googleapi.Expand(req.URL, map[string]string{
31735 "parent": c.parent,
31736 })
31737 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31738 }
31739
31740
31741
31742
31743
31744
31745
31746 func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31747 gensupport.SetOptions(c.urlParams_, opts...)
31748 res, err := c.doRequest("json")
31749 if res != nil && res.StatusCode == http.StatusNotModified {
31750 if res.Body != nil {
31751 res.Body.Close()
31752 }
31753 return nil, gensupport.WrapError(&googleapi.Error{
31754 Code: res.StatusCode,
31755 Header: res.Header,
31756 })
31757 }
31758 if err != nil {
31759 return nil, err
31760 }
31761 defer googleapi.CloseBody(res)
31762 if err := googleapi.CheckResponse(res); err != nil {
31763 return nil, gensupport.WrapError(err)
31764 }
31765 ret := &GoogleCloudApigeeV1Keystore{
31766 ServerResponse: googleapi.ServerResponse{
31767 Header: res.Header,
31768 HTTPStatusCode: res.StatusCode,
31769 },
31770 }
31771 target := &ret
31772 if err := gensupport.DecodeResponse(target, res); err != nil {
31773 return nil, err
31774 }
31775 return ret, nil
31776 }
31777
31778 type OrganizationsEnvironmentsKeystoresDeleteCall struct {
31779 s *Service
31780 name string
31781 urlParams_ gensupport.URLParams
31782 ctx_ context.Context
31783 header_ http.Header
31784 }
31785
31786
31787
31788
31789
31790 func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
31791 c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31792 c.name = name
31793 return c
31794 }
31795
31796
31797
31798
31799 func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
31800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31801 return c
31802 }
31803
31804
31805 func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
31806 c.ctx_ = ctx
31807 return c
31808 }
31809
31810
31811
31812 func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
31813 if c.header_ == nil {
31814 c.header_ = make(http.Header)
31815 }
31816 return c.header_
31817 }
31818
31819 func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
31820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31821 var body io.Reader = nil
31822 c.urlParams_.Set("alt", alt)
31823 c.urlParams_.Set("prettyPrint", "false")
31824 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31825 urls += "?" + c.urlParams_.Encode()
31826 req, err := http.NewRequest("DELETE", urls, body)
31827 if err != nil {
31828 return nil, err
31829 }
31830 req.Header = reqHeaders
31831 googleapi.Expand(req.URL, map[string]string{
31832 "name": c.name,
31833 })
31834 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31835 }
31836
31837
31838
31839
31840
31841
31842
31843 func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31844 gensupport.SetOptions(c.urlParams_, opts...)
31845 res, err := c.doRequest("json")
31846 if res != nil && res.StatusCode == http.StatusNotModified {
31847 if res.Body != nil {
31848 res.Body.Close()
31849 }
31850 return nil, gensupport.WrapError(&googleapi.Error{
31851 Code: res.StatusCode,
31852 Header: res.Header,
31853 })
31854 }
31855 if err != nil {
31856 return nil, err
31857 }
31858 defer googleapi.CloseBody(res)
31859 if err := googleapi.CheckResponse(res); err != nil {
31860 return nil, gensupport.WrapError(err)
31861 }
31862 ret := &GoogleCloudApigeeV1Keystore{
31863 ServerResponse: googleapi.ServerResponse{
31864 Header: res.Header,
31865 HTTPStatusCode: res.StatusCode,
31866 },
31867 }
31868 target := &ret
31869 if err := gensupport.DecodeResponse(target, res); err != nil {
31870 return nil, err
31871 }
31872 return ret, nil
31873 }
31874
31875 type OrganizationsEnvironmentsKeystoresGetCall struct {
31876 s *Service
31877 name string
31878 urlParams_ gensupport.URLParams
31879 ifNoneMatch_ string
31880 ctx_ context.Context
31881 header_ http.Header
31882 }
31883
31884
31885
31886
31887
31888 func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
31889 c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31890 c.name = name
31891 return c
31892 }
31893
31894
31895
31896
31897 func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
31898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31899 return c
31900 }
31901
31902
31903
31904
31905 func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
31906 c.ifNoneMatch_ = entityTag
31907 return c
31908 }
31909
31910
31911 func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
31912 c.ctx_ = ctx
31913 return c
31914 }
31915
31916
31917
31918 func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
31919 if c.header_ == nil {
31920 c.header_ = make(http.Header)
31921 }
31922 return c.header_
31923 }
31924
31925 func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
31926 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31927 if c.ifNoneMatch_ != "" {
31928 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31929 }
31930 var body io.Reader = nil
31931 c.urlParams_.Set("alt", alt)
31932 c.urlParams_.Set("prettyPrint", "false")
31933 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31934 urls += "?" + c.urlParams_.Encode()
31935 req, err := http.NewRequest("GET", urls, body)
31936 if err != nil {
31937 return nil, err
31938 }
31939 req.Header = reqHeaders
31940 googleapi.Expand(req.URL, map[string]string{
31941 "name": c.name,
31942 })
31943 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31944 }
31945
31946
31947
31948
31949
31950
31951
31952 func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
31953 gensupport.SetOptions(c.urlParams_, opts...)
31954 res, err := c.doRequest("json")
31955 if res != nil && res.StatusCode == http.StatusNotModified {
31956 if res.Body != nil {
31957 res.Body.Close()
31958 }
31959 return nil, gensupport.WrapError(&googleapi.Error{
31960 Code: res.StatusCode,
31961 Header: res.Header,
31962 })
31963 }
31964 if err != nil {
31965 return nil, err
31966 }
31967 defer googleapi.CloseBody(res)
31968 if err := googleapi.CheckResponse(res); err != nil {
31969 return nil, gensupport.WrapError(err)
31970 }
31971 ret := &GoogleCloudApigeeV1Keystore{
31972 ServerResponse: googleapi.ServerResponse{
31973 Header: res.Header,
31974 HTTPStatusCode: res.StatusCode,
31975 },
31976 }
31977 target := &ret
31978 if err := gensupport.DecodeResponse(target, res); err != nil {
31979 return nil, err
31980 }
31981 return ret, nil
31982 }
31983
31984 type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
31985 s *Service
31986 parent string
31987 googleapihttpbody *GoogleApiHttpBody
31988 urlParams_ gensupport.URLParams
31989 ctx_ context.Context
31990 header_ http.Header
31991 }
31992
31993
31994
31995
31996
31997
31998
31999
32000
32001
32002
32003
32004
32005
32006
32007 func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32008 c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32009 c.parent = parent
32010 c.googleapihttpbody = googleapihttpbody
32011 return c
32012 }
32013
32014
32015
32016
32017
32018
32019 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32020 c.urlParams_.Set("_password", Password)
32021 return c
32022 }
32023
32024
32025
32026
32027
32028 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32029 c.urlParams_.Set("alias", alias)
32030 return c
32031 }
32032
32033
32034
32035 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32036 c.urlParams_.Set("format", format)
32037 return c
32038 }
32039
32040
32041
32042
32043 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32044 c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
32045 return c
32046 }
32047
32048
32049
32050
32051
32052
32053 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32054 c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
32055 return c
32056 }
32057
32058
32059
32060
32061 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32062 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32063 return c
32064 }
32065
32066
32067 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
32068 c.ctx_ = ctx
32069 return c
32070 }
32071
32072
32073
32074 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
32075 if c.header_ == nil {
32076 c.header_ = make(http.Header)
32077 }
32078 return c.header_
32079 }
32080
32081 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
32082 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32083 var body io.Reader = nil
32084 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32085 if err != nil {
32086 return nil, err
32087 }
32088 c.urlParams_.Set("alt", alt)
32089 c.urlParams_.Set("prettyPrint", "false")
32090 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
32091 urls += "?" + c.urlParams_.Encode()
32092 req, err := http.NewRequest("POST", urls, body)
32093 if err != nil {
32094 return nil, err
32095 }
32096 req.Header = reqHeaders
32097 googleapi.Expand(req.URL, map[string]string{
32098 "parent": c.parent,
32099 })
32100 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32101 }
32102
32103
32104
32105
32106
32107
32108
32109 func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32110 gensupport.SetOptions(c.urlParams_, opts...)
32111 res, err := c.doRequest("json")
32112 if res != nil && res.StatusCode == http.StatusNotModified {
32113 if res.Body != nil {
32114 res.Body.Close()
32115 }
32116 return nil, gensupport.WrapError(&googleapi.Error{
32117 Code: res.StatusCode,
32118 Header: res.Header,
32119 })
32120 }
32121 if err != nil {
32122 return nil, err
32123 }
32124 defer googleapi.CloseBody(res)
32125 if err := googleapi.CheckResponse(res); err != nil {
32126 return nil, gensupport.WrapError(err)
32127 }
32128 ret := &GoogleCloudApigeeV1Alias{
32129 ServerResponse: googleapi.ServerResponse{
32130 Header: res.Header,
32131 HTTPStatusCode: res.StatusCode,
32132 },
32133 }
32134 target := &ret
32135 if err := gensupport.DecodeResponse(target, res); err != nil {
32136 return nil, err
32137 }
32138 return ret, nil
32139 }
32140
32141 type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
32142 s *Service
32143 name string
32144 urlParams_ gensupport.URLParams
32145 ifNoneMatch_ string
32146 ctx_ context.Context
32147 header_ http.Header
32148 }
32149
32150
32151
32152
32153
32154
32155
32156 func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32157 c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32158 c.name = name
32159 return c
32160 }
32161
32162
32163
32164
32165 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32166 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32167 return c
32168 }
32169
32170
32171
32172
32173 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32174 c.ifNoneMatch_ = entityTag
32175 return c
32176 }
32177
32178
32179 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
32180 c.ctx_ = ctx
32181 return c
32182 }
32183
32184
32185
32186 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
32187 if c.header_ == nil {
32188 c.header_ = make(http.Header)
32189 }
32190 return c.header_
32191 }
32192
32193 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
32194 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32195 if c.ifNoneMatch_ != "" {
32196 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32197 }
32198 var body io.Reader = nil
32199 c.urlParams_.Set("alt", alt)
32200 c.urlParams_.Set("prettyPrint", "false")
32201 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
32202 urls += "?" + c.urlParams_.Encode()
32203 req, err := http.NewRequest("GET", urls, body)
32204 if err != nil {
32205 return nil, err
32206 }
32207 req.Header = reqHeaders
32208 googleapi.Expand(req.URL, map[string]string{
32209 "name": c.name,
32210 })
32211 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32212 }
32213
32214
32215
32216
32217
32218
32219
32220 func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32221 gensupport.SetOptions(c.urlParams_, opts...)
32222 res, err := c.doRequest("json")
32223 if res != nil && res.StatusCode == http.StatusNotModified {
32224 if res.Body != nil {
32225 res.Body.Close()
32226 }
32227 return nil, gensupport.WrapError(&googleapi.Error{
32228 Code: res.StatusCode,
32229 Header: res.Header,
32230 })
32231 }
32232 if err != nil {
32233 return nil, err
32234 }
32235 defer googleapi.CloseBody(res)
32236 if err := googleapi.CheckResponse(res); err != nil {
32237 return nil, gensupport.WrapError(err)
32238 }
32239 ret := &GoogleApiHttpBody{
32240 ServerResponse: googleapi.ServerResponse{
32241 Header: res.Header,
32242 HTTPStatusCode: res.StatusCode,
32243 },
32244 }
32245 target := &ret
32246 if err := gensupport.DecodeResponse(target, res); err != nil {
32247 return nil, err
32248 }
32249 return ret, nil
32250 }
32251
32252 type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
32253 s *Service
32254 name string
32255 urlParams_ gensupport.URLParams
32256 ctx_ context.Context
32257 header_ http.Header
32258 }
32259
32260
32261
32262
32263
32264
32265 func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32266 c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32267 c.name = name
32268 return c
32269 }
32270
32271
32272
32273
32274 func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32276 return c
32277 }
32278
32279
32280 func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
32281 c.ctx_ = ctx
32282 return c
32283 }
32284
32285
32286
32287 func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
32288 if c.header_ == nil {
32289 c.header_ = make(http.Header)
32290 }
32291 return c.header_
32292 }
32293
32294 func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
32295 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32296 var body io.Reader = nil
32297 c.urlParams_.Set("alt", alt)
32298 c.urlParams_.Set("prettyPrint", "false")
32299 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32300 urls += "?" + c.urlParams_.Encode()
32301 req, err := http.NewRequest("DELETE", urls, body)
32302 if err != nil {
32303 return nil, err
32304 }
32305 req.Header = reqHeaders
32306 googleapi.Expand(req.URL, map[string]string{
32307 "name": c.name,
32308 })
32309 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32310 }
32311
32312
32313
32314
32315
32316
32317
32318 func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32319 gensupport.SetOptions(c.urlParams_, opts...)
32320 res, err := c.doRequest("json")
32321 if res != nil && res.StatusCode == http.StatusNotModified {
32322 if res.Body != nil {
32323 res.Body.Close()
32324 }
32325 return nil, gensupport.WrapError(&googleapi.Error{
32326 Code: res.StatusCode,
32327 Header: res.Header,
32328 })
32329 }
32330 if err != nil {
32331 return nil, err
32332 }
32333 defer googleapi.CloseBody(res)
32334 if err := googleapi.CheckResponse(res); err != nil {
32335 return nil, gensupport.WrapError(err)
32336 }
32337 ret := &GoogleCloudApigeeV1Alias{
32338 ServerResponse: googleapi.ServerResponse{
32339 Header: res.Header,
32340 HTTPStatusCode: res.StatusCode,
32341 },
32342 }
32343 target := &ret
32344 if err := gensupport.DecodeResponse(target, res); err != nil {
32345 return nil, err
32346 }
32347 return ret, nil
32348 }
32349
32350 type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
32351 s *Service
32352 name string
32353 urlParams_ gensupport.URLParams
32354 ifNoneMatch_ string
32355 ctx_ context.Context
32356 header_ http.Header
32357 }
32358
32359
32360
32361
32362
32363
32364 func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32365 c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32366 c.name = name
32367 return c
32368 }
32369
32370
32371
32372
32373 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32374 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32375 return c
32376 }
32377
32378
32379
32380
32381 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32382 c.ifNoneMatch_ = entityTag
32383 return c
32384 }
32385
32386
32387 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
32388 c.ctx_ = ctx
32389 return c
32390 }
32391
32392
32393
32394 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
32395 if c.header_ == nil {
32396 c.header_ = make(http.Header)
32397 }
32398 return c.header_
32399 }
32400
32401 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
32402 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32403 if c.ifNoneMatch_ != "" {
32404 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32405 }
32406 var body io.Reader = nil
32407 c.urlParams_.Set("alt", alt)
32408 c.urlParams_.Set("prettyPrint", "false")
32409 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32410 urls += "?" + c.urlParams_.Encode()
32411 req, err := http.NewRequest("GET", urls, body)
32412 if err != nil {
32413 return nil, err
32414 }
32415 req.Header = reqHeaders
32416 googleapi.Expand(req.URL, map[string]string{
32417 "name": c.name,
32418 })
32419 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32420 }
32421
32422
32423
32424
32425
32426
32427
32428 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32429 gensupport.SetOptions(c.urlParams_, opts...)
32430 res, err := c.doRequest("json")
32431 if res != nil && res.StatusCode == http.StatusNotModified {
32432 if res.Body != nil {
32433 res.Body.Close()
32434 }
32435 return nil, gensupport.WrapError(&googleapi.Error{
32436 Code: res.StatusCode,
32437 Header: res.Header,
32438 })
32439 }
32440 if err != nil {
32441 return nil, err
32442 }
32443 defer googleapi.CloseBody(res)
32444 if err := googleapi.CheckResponse(res); err != nil {
32445 return nil, gensupport.WrapError(err)
32446 }
32447 ret := &GoogleCloudApigeeV1Alias{
32448 ServerResponse: googleapi.ServerResponse{
32449 Header: res.Header,
32450 HTTPStatusCode: res.StatusCode,
32451 },
32452 }
32453 target := &ret
32454 if err := gensupport.DecodeResponse(target, res); err != nil {
32455 return nil, err
32456 }
32457 return ret, nil
32458 }
32459
32460 type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
32461 s *Service
32462 name string
32463 urlParams_ gensupport.URLParams
32464 ifNoneMatch_ string
32465 ctx_ context.Context
32466 header_ http.Header
32467 }
32468
32469
32470
32471
32472
32473
32474 func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32475 c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32476 c.name = name
32477 return c
32478 }
32479
32480
32481
32482
32483 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32484 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32485 return c
32486 }
32487
32488
32489
32490
32491 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32492 c.ifNoneMatch_ = entityTag
32493 return c
32494 }
32495
32496
32497 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
32498 c.ctx_ = ctx
32499 return c
32500 }
32501
32502
32503
32504 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
32505 if c.header_ == nil {
32506 c.header_ = make(http.Header)
32507 }
32508 return c.header_
32509 }
32510
32511 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
32512 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32513 if c.ifNoneMatch_ != "" {
32514 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32515 }
32516 var body io.Reader = nil
32517 c.urlParams_.Set("alt", alt)
32518 c.urlParams_.Set("prettyPrint", "false")
32519 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
32520 urls += "?" + c.urlParams_.Encode()
32521 req, err := http.NewRequest("GET", urls, body)
32522 if err != nil {
32523 return nil, err
32524 }
32525 req.Header = reqHeaders
32526 googleapi.Expand(req.URL, map[string]string{
32527 "name": c.name,
32528 })
32529 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32530 }
32531
32532
32533
32534
32535
32536
32537
32538 func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
32539 gensupport.SetOptions(c.urlParams_, opts...)
32540 res, err := c.doRequest("json")
32541 if res != nil && res.StatusCode == http.StatusNotModified {
32542 if res.Body != nil {
32543 res.Body.Close()
32544 }
32545 return nil, gensupport.WrapError(&googleapi.Error{
32546 Code: res.StatusCode,
32547 Header: res.Header,
32548 })
32549 }
32550 if err != nil {
32551 return nil, err
32552 }
32553 defer googleapi.CloseBody(res)
32554 if err := googleapi.CheckResponse(res); err != nil {
32555 return nil, gensupport.WrapError(err)
32556 }
32557 ret := &GoogleApiHttpBody{
32558 ServerResponse: googleapi.ServerResponse{
32559 Header: res.Header,
32560 HTTPStatusCode: res.StatusCode,
32561 },
32562 }
32563 target := &ret
32564 if err := gensupport.DecodeResponse(target, res); err != nil {
32565 return nil, err
32566 }
32567 return ret, nil
32568 }
32569
32570 type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
32571 s *Service
32572 name string
32573 googleapihttpbody *GoogleApiHttpBody
32574 urlParams_ gensupport.URLParams
32575 ctx_ context.Context
32576 header_ http.Header
32577 }
32578
32579
32580
32581
32582
32583
32584 func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32585 c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32586 c.name = name
32587 c.googleapihttpbody = googleapihttpbody
32588 return c
32589 }
32590
32591
32592
32593
32594 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32595 c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
32596 return c
32597 }
32598
32599
32600
32601
32602
32603
32604 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32605 c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
32606 return c
32607 }
32608
32609
32610
32611
32612 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32613 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32614 return c
32615 }
32616
32617
32618 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
32619 c.ctx_ = ctx
32620 return c
32621 }
32622
32623
32624
32625 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
32626 if c.header_ == nil {
32627 c.header_ = make(http.Header)
32628 }
32629 return c.header_
32630 }
32631
32632 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
32633 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32634 var body io.Reader = nil
32635 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32636 if err != nil {
32637 return nil, err
32638 }
32639 c.urlParams_.Set("alt", alt)
32640 c.urlParams_.Set("prettyPrint", "false")
32641 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32642 urls += "?" + c.urlParams_.Encode()
32643 req, err := http.NewRequest("PUT", urls, body)
32644 if err != nil {
32645 return nil, err
32646 }
32647 req.Header = reqHeaders
32648 googleapi.Expand(req.URL, map[string]string{
32649 "name": c.name,
32650 })
32651 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32652 }
32653
32654
32655
32656
32657
32658
32659
32660 func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
32661 gensupport.SetOptions(c.urlParams_, opts...)
32662 res, err := c.doRequest("json")
32663 if res != nil && res.StatusCode == http.StatusNotModified {
32664 if res.Body != nil {
32665 res.Body.Close()
32666 }
32667 return nil, gensupport.WrapError(&googleapi.Error{
32668 Code: res.StatusCode,
32669 Header: res.Header,
32670 })
32671 }
32672 if err != nil {
32673 return nil, err
32674 }
32675 defer googleapi.CloseBody(res)
32676 if err := googleapi.CheckResponse(res); err != nil {
32677 return nil, gensupport.WrapError(err)
32678 }
32679 ret := &GoogleCloudApigeeV1Alias{
32680 ServerResponse: googleapi.ServerResponse{
32681 Header: res.Header,
32682 HTTPStatusCode: res.StatusCode,
32683 },
32684 }
32685 target := &ret
32686 if err := gensupport.DecodeResponse(target, res); err != nil {
32687 return nil, err
32688 }
32689 return ret, nil
32690 }
32691
32692 type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
32693 s *Service
32694 parent string
32695 googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
32696 urlParams_ gensupport.URLParams
32697 ctx_ context.Context
32698 header_ http.Header
32699 }
32700
32701
32702
32703
32704
32705
32706 func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32707 c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32708 c.parent = parent
32709 c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
32710 return c
32711 }
32712
32713
32714
32715
32716 func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32718 return c
32719 }
32720
32721
32722 func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
32723 c.ctx_ = ctx
32724 return c
32725 }
32726
32727
32728
32729 func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
32730 if c.header_ == nil {
32731 c.header_ = make(http.Header)
32732 }
32733 return c.header_
32734 }
32735
32736 func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
32737 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32738 var body io.Reader = nil
32739 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
32740 if err != nil {
32741 return nil, err
32742 }
32743 c.urlParams_.Set("alt", alt)
32744 c.urlParams_.Set("prettyPrint", "false")
32745 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
32746 urls += "?" + c.urlParams_.Encode()
32747 req, err := http.NewRequest("POST", urls, body)
32748 if err != nil {
32749 return nil, err
32750 }
32751 req.Header = reqHeaders
32752 googleapi.Expand(req.URL, map[string]string{
32753 "parent": c.parent,
32754 })
32755 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32756 }
32757
32758
32759
32760
32761
32762
32763
32764 func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
32765 gensupport.SetOptions(c.urlParams_, opts...)
32766 res, err := c.doRequest("json")
32767 if res != nil && res.StatusCode == http.StatusNotModified {
32768 if res.Body != nil {
32769 res.Body.Close()
32770 }
32771 return nil, gensupport.WrapError(&googleapi.Error{
32772 Code: res.StatusCode,
32773 Header: res.Header,
32774 })
32775 }
32776 if err != nil {
32777 return nil, err
32778 }
32779 defer googleapi.CloseBody(res)
32780 if err := googleapi.CheckResponse(res); err != nil {
32781 return nil, gensupport.WrapError(err)
32782 }
32783 ret := &GoogleCloudApigeeV1KeyValueMap{
32784 ServerResponse: googleapi.ServerResponse{
32785 Header: res.Header,
32786 HTTPStatusCode: res.StatusCode,
32787 },
32788 }
32789 target := &ret
32790 if err := gensupport.DecodeResponse(target, res); err != nil {
32791 return nil, err
32792 }
32793 return ret, nil
32794 }
32795
32796 type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
32797 s *Service
32798 name string
32799 urlParams_ gensupport.URLParams
32800 ctx_ context.Context
32801 header_ http.Header
32802 }
32803
32804
32805
32806
32807
32808
32809 func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32810 c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32811 c.name = name
32812 return c
32813 }
32814
32815
32816
32817
32818 func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32819 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32820 return c
32821 }
32822
32823
32824 func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
32825 c.ctx_ = ctx
32826 return c
32827 }
32828
32829
32830
32831 func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
32832 if c.header_ == nil {
32833 c.header_ = make(http.Header)
32834 }
32835 return c.header_
32836 }
32837
32838 func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
32839 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32840 var body io.Reader = nil
32841 c.urlParams_.Set("alt", alt)
32842 c.urlParams_.Set("prettyPrint", "false")
32843 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32844 urls += "?" + c.urlParams_.Encode()
32845 req, err := http.NewRequest("DELETE", urls, body)
32846 if err != nil {
32847 return nil, err
32848 }
32849 req.Header = reqHeaders
32850 googleapi.Expand(req.URL, map[string]string{
32851 "name": c.name,
32852 })
32853 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32854 }
32855
32856
32857
32858
32859
32860
32861
32862 func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
32863 gensupport.SetOptions(c.urlParams_, opts...)
32864 res, err := c.doRequest("json")
32865 if res != nil && res.StatusCode == http.StatusNotModified {
32866 if res.Body != nil {
32867 res.Body.Close()
32868 }
32869 return nil, gensupport.WrapError(&googleapi.Error{
32870 Code: res.StatusCode,
32871 Header: res.Header,
32872 })
32873 }
32874 if err != nil {
32875 return nil, err
32876 }
32877 defer googleapi.CloseBody(res)
32878 if err := googleapi.CheckResponse(res); err != nil {
32879 return nil, gensupport.WrapError(err)
32880 }
32881 ret := &GoogleCloudApigeeV1KeyValueMap{
32882 ServerResponse: googleapi.ServerResponse{
32883 Header: res.Header,
32884 HTTPStatusCode: res.StatusCode,
32885 },
32886 }
32887 target := &ret
32888 if err := gensupport.DecodeResponse(target, res); err != nil {
32889 return nil, err
32890 }
32891 return ret, nil
32892 }
32893
32894 type OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall struct {
32895 s *Service
32896 parent string
32897 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
32898 urlParams_ gensupport.URLParams
32899 ctx_ context.Context
32900 header_ http.Header
32901 }
32902
32903
32904
32905
32906
32907
32908
32909
32910
32911
32912 func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
32913 c := &OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32914 c.parent = parent
32915 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
32916 return c
32917 }
32918
32919
32920
32921
32922 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
32923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32924 return c
32925 }
32926
32927
32928 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall {
32929 c.ctx_ = ctx
32930 return c
32931 }
32932
32933
32934
32935 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Header() http.Header {
32936 if c.header_ == nil {
32937 c.header_ = make(http.Header)
32938 }
32939 return c.header_
32940 }
32941
32942 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
32943 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32944 var body io.Reader = nil
32945 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
32946 if err != nil {
32947 return nil, err
32948 }
32949 c.urlParams_.Set("alt", alt)
32950 c.urlParams_.Set("prettyPrint", "false")
32951 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
32952 urls += "?" + c.urlParams_.Encode()
32953 req, err := http.NewRequest("POST", urls, body)
32954 if err != nil {
32955 return nil, err
32956 }
32957 req.Header = reqHeaders
32958 googleapi.Expand(req.URL, map[string]string{
32959 "parent": c.parent,
32960 })
32961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32962 }
32963
32964
32965
32966
32967
32968
32969
32970 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
32971 gensupport.SetOptions(c.urlParams_, opts...)
32972 res, err := c.doRequest("json")
32973 if res != nil && res.StatusCode == http.StatusNotModified {
32974 if res.Body != nil {
32975 res.Body.Close()
32976 }
32977 return nil, gensupport.WrapError(&googleapi.Error{
32978 Code: res.StatusCode,
32979 Header: res.Header,
32980 })
32981 }
32982 if err != nil {
32983 return nil, err
32984 }
32985 defer googleapi.CloseBody(res)
32986 if err := googleapi.CheckResponse(res); err != nil {
32987 return nil, gensupport.WrapError(err)
32988 }
32989 ret := &GoogleCloudApigeeV1KeyValueEntry{
32990 ServerResponse: googleapi.ServerResponse{
32991 Header: res.Header,
32992 HTTPStatusCode: res.StatusCode,
32993 },
32994 }
32995 target := &ret
32996 if err := gensupport.DecodeResponse(target, res); err != nil {
32997 return nil, err
32998 }
32999 return ret, nil
33000 }
33001
33002 type OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall struct {
33003 s *Service
33004 name string
33005 urlParams_ gensupport.URLParams
33006 ctx_ context.Context
33007 header_ http.Header
33008 }
33009
33010
33011
33012
33013
33014
33015
33016
33017
33018
33019
33020
33021
33022
33023 func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
33024 c := &OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33025 c.name = name
33026 return c
33027 }
33028
33029
33030
33031
33032 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
33033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33034 return c
33035 }
33036
33037
33038 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall {
33039 c.ctx_ = ctx
33040 return c
33041 }
33042
33043
33044
33045 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Header() http.Header {
33046 if c.header_ == nil {
33047 c.header_ = make(http.Header)
33048 }
33049 return c.header_
33050 }
33051
33052 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
33053 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33054 var body io.Reader = nil
33055 c.urlParams_.Set("alt", alt)
33056 c.urlParams_.Set("prettyPrint", "false")
33057 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33058 urls += "?" + c.urlParams_.Encode()
33059 req, err := http.NewRequest("DELETE", urls, body)
33060 if err != nil {
33061 return nil, err
33062 }
33063 req.Header = reqHeaders
33064 googleapi.Expand(req.URL, map[string]string{
33065 "name": c.name,
33066 })
33067 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33068 }
33069
33070
33071
33072
33073
33074
33075
33076 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
33077 gensupport.SetOptions(c.urlParams_, opts...)
33078 res, err := c.doRequest("json")
33079 if res != nil && res.StatusCode == http.StatusNotModified {
33080 if res.Body != nil {
33081 res.Body.Close()
33082 }
33083 return nil, gensupport.WrapError(&googleapi.Error{
33084 Code: res.StatusCode,
33085 Header: res.Header,
33086 })
33087 }
33088 if err != nil {
33089 return nil, err
33090 }
33091 defer googleapi.CloseBody(res)
33092 if err := googleapi.CheckResponse(res); err != nil {
33093 return nil, gensupport.WrapError(err)
33094 }
33095 ret := &GoogleCloudApigeeV1KeyValueEntry{
33096 ServerResponse: googleapi.ServerResponse{
33097 Header: res.Header,
33098 HTTPStatusCode: res.StatusCode,
33099 },
33100 }
33101 target := &ret
33102 if err := gensupport.DecodeResponse(target, res); err != nil {
33103 return nil, err
33104 }
33105 return ret, nil
33106 }
33107
33108 type OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall struct {
33109 s *Service
33110 name string
33111 urlParams_ gensupport.URLParams
33112 ifNoneMatch_ string
33113 ctx_ context.Context
33114 header_ http.Header
33115 }
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128 func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Get(name string) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
33129 c := &OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33130 c.name = name
33131 return c
33132 }
33133
33134
33135
33136
33137 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
33138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33139 return c
33140 }
33141
33142
33143
33144
33145 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
33146 c.ifNoneMatch_ = entityTag
33147 return c
33148 }
33149
33150
33151 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall {
33152 c.ctx_ = ctx
33153 return c
33154 }
33155
33156
33157
33158 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Header() http.Header {
33159 if c.header_ == nil {
33160 c.header_ = make(http.Header)
33161 }
33162 return c.header_
33163 }
33164
33165 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
33166 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33167 if c.ifNoneMatch_ != "" {
33168 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33169 }
33170 var body io.Reader = nil
33171 c.urlParams_.Set("alt", alt)
33172 c.urlParams_.Set("prettyPrint", "false")
33173 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33174 urls += "?" + c.urlParams_.Encode()
33175 req, err := http.NewRequest("GET", urls, body)
33176 if err != nil {
33177 return nil, err
33178 }
33179 req.Header = reqHeaders
33180 googleapi.Expand(req.URL, map[string]string{
33181 "name": c.name,
33182 })
33183 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33184 }
33185
33186
33187
33188
33189
33190
33191
33192 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
33193 gensupport.SetOptions(c.urlParams_, opts...)
33194 res, err := c.doRequest("json")
33195 if res != nil && res.StatusCode == http.StatusNotModified {
33196 if res.Body != nil {
33197 res.Body.Close()
33198 }
33199 return nil, gensupport.WrapError(&googleapi.Error{
33200 Code: res.StatusCode,
33201 Header: res.Header,
33202 })
33203 }
33204 if err != nil {
33205 return nil, err
33206 }
33207 defer googleapi.CloseBody(res)
33208 if err := googleapi.CheckResponse(res); err != nil {
33209 return nil, gensupport.WrapError(err)
33210 }
33211 ret := &GoogleCloudApigeeV1KeyValueEntry{
33212 ServerResponse: googleapi.ServerResponse{
33213 Header: res.Header,
33214 HTTPStatusCode: res.StatusCode,
33215 },
33216 }
33217 target := &ret
33218 if err := gensupport.DecodeResponse(target, res); err != nil {
33219 return nil, err
33220 }
33221 return ret, nil
33222 }
33223
33224 type OrganizationsEnvironmentsKeyvaluemapsEntriesListCall struct {
33225 s *Service
33226 parent string
33227 urlParams_ gensupport.URLParams
33228 ifNoneMatch_ string
33229 ctx_ context.Context
33230 header_ http.Header
33231 }
33232
33233
33234
33235
33236
33237
33238
33239
33240
33241
33242 func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) List(parent string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33243 c := &OrganizationsEnvironmentsKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33244 c.parent = parent
33245 return c
33246 }
33247
33248
33249
33250 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33251 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33252 return c
33253 }
33254
33255
33256
33257
33258 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33259 c.urlParams_.Set("pageToken", pageToken)
33260 return c
33261 }
33262
33263
33264
33265
33266 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33267 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33268 return c
33269 }
33270
33271
33272
33273
33274 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33275 c.ifNoneMatch_ = entityTag
33276 return c
33277 }
33278
33279
33280 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall {
33281 c.ctx_ = ctx
33282 return c
33283 }
33284
33285
33286
33287 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Header() http.Header {
33288 if c.header_ == nil {
33289 c.header_ = make(http.Header)
33290 }
33291 return c.header_
33292 }
33293
33294 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
33295 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33296 if c.ifNoneMatch_ != "" {
33297 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33298 }
33299 var body io.Reader = nil
33300 c.urlParams_.Set("alt", alt)
33301 c.urlParams_.Set("prettyPrint", "false")
33302 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
33303 urls += "?" + c.urlParams_.Encode()
33304 req, err := http.NewRequest("GET", urls, body)
33305 if err != nil {
33306 return nil, err
33307 }
33308 req.Header = reqHeaders
33309 googleapi.Expand(req.URL, map[string]string{
33310 "parent": c.parent,
33311 })
33312 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33313 }
33314
33315
33316
33317
33318
33319
33320
33321 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
33322 gensupport.SetOptions(c.urlParams_, opts...)
33323 res, err := c.doRequest("json")
33324 if res != nil && res.StatusCode == http.StatusNotModified {
33325 if res.Body != nil {
33326 res.Body.Close()
33327 }
33328 return nil, gensupport.WrapError(&googleapi.Error{
33329 Code: res.StatusCode,
33330 Header: res.Header,
33331 })
33332 }
33333 if err != nil {
33334 return nil, err
33335 }
33336 defer googleapi.CloseBody(res)
33337 if err := googleapi.CheckResponse(res); err != nil {
33338 return nil, gensupport.WrapError(err)
33339 }
33340 ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
33341 ServerResponse: googleapi.ServerResponse{
33342 Header: res.Header,
33343 HTTPStatusCode: res.StatusCode,
33344 },
33345 }
33346 target := &ret
33347 if err := gensupport.DecodeResponse(target, res); err != nil {
33348 return nil, err
33349 }
33350 return ret, nil
33351 }
33352
33353
33354
33355
33356 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
33357 c.ctx_ = ctx
33358 defer c.PageToken(c.urlParams_.Get("pageToken"))
33359 for {
33360 x, err := c.Do()
33361 if err != nil {
33362 return err
33363 }
33364 if err := f(x); err != nil {
33365 return err
33366 }
33367 if x.NextPageToken == "" {
33368 return nil
33369 }
33370 c.PageToken(x.NextPageToken)
33371 }
33372 }
33373
33374 type OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall struct {
33375 s *Service
33376 name string
33377 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
33378 urlParams_ gensupport.URLParams
33379 ctx_ context.Context
33380 header_ http.Header
33381 }
33382
33383
33384
33385
33386
33387
33388
33389
33390
33391 func (r *OrganizationsEnvironmentsKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
33392 c := &OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33393 c.name = name
33394 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
33395 return c
33396 }
33397
33398
33399
33400
33401 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
33402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33403 return c
33404 }
33405
33406
33407 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall {
33408 c.ctx_ = ctx
33409 return c
33410 }
33411
33412
33413
33414 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Header() http.Header {
33415 if c.header_ == nil {
33416 c.header_ = make(http.Header)
33417 }
33418 return c.header_
33419 }
33420
33421 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
33422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33423 var body io.Reader = nil
33424 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
33425 if err != nil {
33426 return nil, err
33427 }
33428 c.urlParams_.Set("alt", alt)
33429 c.urlParams_.Set("prettyPrint", "false")
33430 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33431 urls += "?" + c.urlParams_.Encode()
33432 req, err := http.NewRequest("PUT", urls, body)
33433 if err != nil {
33434 return nil, err
33435 }
33436 req.Header = reqHeaders
33437 googleapi.Expand(req.URL, map[string]string{
33438 "name": c.name,
33439 })
33440 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33441 }
33442
33443
33444
33445
33446
33447
33448
33449 func (c *OrganizationsEnvironmentsKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
33450 gensupport.SetOptions(c.urlParams_, opts...)
33451 res, err := c.doRequest("json")
33452 if res != nil && res.StatusCode == http.StatusNotModified {
33453 if res.Body != nil {
33454 res.Body.Close()
33455 }
33456 return nil, gensupport.WrapError(&googleapi.Error{
33457 Code: res.StatusCode,
33458 Header: res.Header,
33459 })
33460 }
33461 if err != nil {
33462 return nil, err
33463 }
33464 defer googleapi.CloseBody(res)
33465 if err := googleapi.CheckResponse(res); err != nil {
33466 return nil, gensupport.WrapError(err)
33467 }
33468 ret := &GoogleCloudApigeeV1KeyValueEntry{
33469 ServerResponse: googleapi.ServerResponse{
33470 Header: res.Header,
33471 HTTPStatusCode: res.StatusCode,
33472 },
33473 }
33474 target := &ret
33475 if err := gensupport.DecodeResponse(target, res); err != nil {
33476 return nil, err
33477 }
33478 return ret, nil
33479 }
33480
33481 type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
33482 s *Service
33483 name string
33484 urlParams_ gensupport.URLParams
33485 ifNoneMatch_ string
33486 ctx_ context.Context
33487 header_ http.Header
33488 }
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500 func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33501 c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33502 c.name = name
33503 return c
33504 }
33505
33506
33507
33508 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33509 c.urlParams_.Set("accuracy", accuracy)
33510 return c
33511 }
33512
33513
33514
33515
33516 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33517 c.urlParams_.Set("aggTable", aggTable)
33518 return c
33519 }
33520
33521
33522
33523 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33524 c.urlParams_.Set("filter", filter)
33525 return c
33526 }
33527
33528
33529
33530 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33531 c.urlParams_.Set("limit", limit)
33532 return c
33533 }
33534
33535
33536
33537
33538 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33539 c.urlParams_.Set("offset", offset)
33540 return c
33541 }
33542
33543
33544
33545 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33546 c.urlParams_.Set("realtime", fmt.Sprint(realtime))
33547 return c
33548 }
33549
33550
33551
33552 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33553 c.urlParams_.Set("select", select_)
33554 return c
33555 }
33556
33557
33558
33559 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33560 c.urlParams_.Set("sonar", fmt.Sprint(sonar))
33561 return c
33562 }
33563
33564
33565
33566
33567 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33568 c.urlParams_.Set("sort", sort)
33569 return c
33570 }
33571
33572
33573
33574 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33575 c.urlParams_.Set("sortby", sortby)
33576 return c
33577 }
33578
33579
33580
33581
33582 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33583 c.urlParams_.Set("timeRange", timeRange)
33584 return c
33585 }
33586
33587
33588
33589
33590 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33591 c.urlParams_.Set("timeUnit", timeUnit)
33592 return c
33593 }
33594
33595
33596
33597 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33598 c.urlParams_.Set("topk", topk)
33599 return c
33600 }
33601
33602
33603
33604
33605
33606 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33607 c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
33608 return c
33609 }
33610
33611
33612 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33613 c.urlParams_.Set("tzo", tzo)
33614 return c
33615 }
33616
33617
33618
33619
33620 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33622 return c
33623 }
33624
33625
33626
33627
33628 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33629 c.ifNoneMatch_ = entityTag
33630 return c
33631 }
33632
33633
33634 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
33635 c.ctx_ = ctx
33636 return c
33637 }
33638
33639
33640
33641 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
33642 if c.header_ == nil {
33643 c.header_ = make(http.Header)
33644 }
33645 return c.header_
33646 }
33647
33648 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
33649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33650 if c.ifNoneMatch_ != "" {
33651 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33652 }
33653 var body io.Reader = nil
33654 c.urlParams_.Set("alt", alt)
33655 c.urlParams_.Set("prettyPrint", "false")
33656 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33657 urls += "?" + c.urlParams_.Encode()
33658 req, err := http.NewRequest("GET", urls, body)
33659 if err != nil {
33660 return nil, err
33661 }
33662 req.Header = reqHeaders
33663 googleapi.Expand(req.URL, map[string]string{
33664 "name": c.name,
33665 })
33666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33667 }
33668
33669
33670
33671
33672
33673
33674
33675 func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
33676 gensupport.SetOptions(c.urlParams_, opts...)
33677 res, err := c.doRequest("json")
33678 if res != nil && res.StatusCode == http.StatusNotModified {
33679 if res.Body != nil {
33680 res.Body.Close()
33681 }
33682 return nil, gensupport.WrapError(&googleapi.Error{
33683 Code: res.StatusCode,
33684 Header: res.Header,
33685 })
33686 }
33687 if err != nil {
33688 return nil, err
33689 }
33690 defer googleapi.CloseBody(res)
33691 if err := googleapi.CheckResponse(res); err != nil {
33692 return nil, gensupport.WrapError(err)
33693 }
33694 ret := &GoogleCloudApigeeV1OptimizedStats{
33695 ServerResponse: googleapi.ServerResponse{
33696 Header: res.Header,
33697 HTTPStatusCode: res.StatusCode,
33698 },
33699 }
33700 target := &ret
33701 if err := gensupport.DecodeResponse(target, res); err != nil {
33702 return nil, err
33703 }
33704 return ret, nil
33705 }
33706
33707 type OrganizationsEnvironmentsQueriesCreateCall struct {
33708 s *Service
33709 parent string
33710 googlecloudapigeev1query *GoogleCloudApigeeV1Query
33711 urlParams_ gensupport.URLParams
33712 ctx_ context.Context
33713 header_ http.Header
33714 }
33715
33716
33717
33718
33719
33720
33721
33722
33723 func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
33724 c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33725 c.parent = parent
33726 c.googlecloudapigeev1query = googlecloudapigeev1query
33727 return c
33728 }
33729
33730
33731
33732
33733 func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
33734 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33735 return c
33736 }
33737
33738
33739 func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
33740 c.ctx_ = ctx
33741 return c
33742 }
33743
33744
33745
33746 func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
33747 if c.header_ == nil {
33748 c.header_ = make(http.Header)
33749 }
33750 return c.header_
33751 }
33752
33753 func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
33754 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33755 var body io.Reader = nil
33756 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
33757 if err != nil {
33758 return nil, err
33759 }
33760 c.urlParams_.Set("alt", alt)
33761 c.urlParams_.Set("prettyPrint", "false")
33762 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
33763 urls += "?" + c.urlParams_.Encode()
33764 req, err := http.NewRequest("POST", urls, body)
33765 if err != nil {
33766 return nil, err
33767 }
33768 req.Header = reqHeaders
33769 googleapi.Expand(req.URL, map[string]string{
33770 "parent": c.parent,
33771 })
33772 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33773 }
33774
33775
33776
33777
33778
33779
33780
33781 func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33782 gensupport.SetOptions(c.urlParams_, opts...)
33783 res, err := c.doRequest("json")
33784 if res != nil && res.StatusCode == http.StatusNotModified {
33785 if res.Body != nil {
33786 res.Body.Close()
33787 }
33788 return nil, gensupport.WrapError(&googleapi.Error{
33789 Code: res.StatusCode,
33790 Header: res.Header,
33791 })
33792 }
33793 if err != nil {
33794 return nil, err
33795 }
33796 defer googleapi.CloseBody(res)
33797 if err := googleapi.CheckResponse(res); err != nil {
33798 return nil, gensupport.WrapError(err)
33799 }
33800 ret := &GoogleCloudApigeeV1AsyncQuery{
33801 ServerResponse: googleapi.ServerResponse{
33802 Header: res.Header,
33803 HTTPStatusCode: res.StatusCode,
33804 },
33805 }
33806 target := &ret
33807 if err := gensupport.DecodeResponse(target, res); err != nil {
33808 return nil, err
33809 }
33810 return ret, nil
33811 }
33812
33813 type OrganizationsEnvironmentsQueriesGetCall struct {
33814 s *Service
33815 name string
33816 urlParams_ gensupport.URLParams
33817 ifNoneMatch_ string
33818 ctx_ context.Context
33819 header_ http.Header
33820 }
33821
33822
33823
33824
33825
33826
33827
33828 func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
33829 c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33830 c.name = name
33831 return c
33832 }
33833
33834
33835
33836
33837 func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
33838 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33839 return c
33840 }
33841
33842
33843
33844
33845 func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
33846 c.ifNoneMatch_ = entityTag
33847 return c
33848 }
33849
33850
33851 func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
33852 c.ctx_ = ctx
33853 return c
33854 }
33855
33856
33857
33858 func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
33859 if c.header_ == nil {
33860 c.header_ = make(http.Header)
33861 }
33862 return c.header_
33863 }
33864
33865 func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
33866 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33867 if c.ifNoneMatch_ != "" {
33868 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33869 }
33870 var body io.Reader = nil
33871 c.urlParams_.Set("alt", alt)
33872 c.urlParams_.Set("prettyPrint", "false")
33873 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33874 urls += "?" + c.urlParams_.Encode()
33875 req, err := http.NewRequest("GET", urls, body)
33876 if err != nil {
33877 return nil, err
33878 }
33879 req.Header = reqHeaders
33880 googleapi.Expand(req.URL, map[string]string{
33881 "name": c.name,
33882 })
33883 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33884 }
33885
33886
33887
33888
33889
33890
33891
33892 func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
33893 gensupport.SetOptions(c.urlParams_, opts...)
33894 res, err := c.doRequest("json")
33895 if res != nil && res.StatusCode == http.StatusNotModified {
33896 if res.Body != nil {
33897 res.Body.Close()
33898 }
33899 return nil, gensupport.WrapError(&googleapi.Error{
33900 Code: res.StatusCode,
33901 Header: res.Header,
33902 })
33903 }
33904 if err != nil {
33905 return nil, err
33906 }
33907 defer googleapi.CloseBody(res)
33908 if err := googleapi.CheckResponse(res); err != nil {
33909 return nil, gensupport.WrapError(err)
33910 }
33911 ret := &GoogleCloudApigeeV1AsyncQuery{
33912 ServerResponse: googleapi.ServerResponse{
33913 Header: res.Header,
33914 HTTPStatusCode: res.StatusCode,
33915 },
33916 }
33917 target := &ret
33918 if err := gensupport.DecodeResponse(target, res); err != nil {
33919 return nil, err
33920 }
33921 return ret, nil
33922 }
33923
33924 type OrganizationsEnvironmentsQueriesGetResultCall struct {
33925 s *Service
33926 name string
33927 urlParams_ gensupport.URLParams
33928 ifNoneMatch_ string
33929 ctx_ context.Context
33930 header_ http.Header
33931 }
33932
33933
33934
33935
33936
33937
33938
33939
33940
33941 func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
33942 c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33943 c.name = name
33944 return c
33945 }
33946
33947
33948
33949
33950 func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
33951 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33952 return c
33953 }
33954
33955
33956
33957
33958 func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
33959 c.ifNoneMatch_ = entityTag
33960 return c
33961 }
33962
33963
33964 func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
33965 c.ctx_ = ctx
33966 return c
33967 }
33968
33969
33970
33971 func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
33972 if c.header_ == nil {
33973 c.header_ = make(http.Header)
33974 }
33975 return c.header_
33976 }
33977
33978 func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
33979 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33980 if c.ifNoneMatch_ != "" {
33981 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33982 }
33983 var body io.Reader = nil
33984 c.urlParams_.Set("alt", alt)
33985 c.urlParams_.Set("prettyPrint", "false")
33986 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
33987 urls += "?" + c.urlParams_.Encode()
33988 req, err := http.NewRequest("GET", urls, body)
33989 if err != nil {
33990 return nil, err
33991 }
33992 req.Header = reqHeaders
33993 googleapi.Expand(req.URL, map[string]string{
33994 "name": c.name,
33995 })
33996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33997 }
33998
33999
34000
34001
34002
34003
34004
34005 func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
34006 gensupport.SetOptions(c.urlParams_, opts...)
34007 res, err := c.doRequest("json")
34008 if res != nil && res.StatusCode == http.StatusNotModified {
34009 if res.Body != nil {
34010 res.Body.Close()
34011 }
34012 return nil, gensupport.WrapError(&googleapi.Error{
34013 Code: res.StatusCode,
34014 Header: res.Header,
34015 })
34016 }
34017 if err != nil {
34018 return nil, err
34019 }
34020 defer googleapi.CloseBody(res)
34021 if err := googleapi.CheckResponse(res); err != nil {
34022 return nil, gensupport.WrapError(err)
34023 }
34024 ret := &GoogleApiHttpBody{
34025 ServerResponse: googleapi.ServerResponse{
34026 Header: res.Header,
34027 HTTPStatusCode: res.StatusCode,
34028 },
34029 }
34030 target := &ret
34031 if err := gensupport.DecodeResponse(target, res); err != nil {
34032 return nil, err
34033 }
34034 return ret, nil
34035 }
34036
34037 type OrganizationsEnvironmentsQueriesGetResulturlCall struct {
34038 s *Service
34039 name string
34040 urlParams_ gensupport.URLParams
34041 ifNoneMatch_ string
34042 ctx_ context.Context
34043 header_ http.Header
34044 }
34045
34046
34047
34048
34049
34050
34051
34052 func (r *OrganizationsEnvironmentsQueriesService) GetResulturl(name string) *OrganizationsEnvironmentsQueriesGetResulturlCall {
34053 c := &OrganizationsEnvironmentsQueriesGetResulturlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34054 c.name = name
34055 return c
34056 }
34057
34058
34059
34060
34061 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResulturlCall {
34062 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34063 return c
34064 }
34065
34066
34067
34068
34069 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResulturlCall {
34070 c.ifNoneMatch_ = entityTag
34071 return c
34072 }
34073
34074
34075 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResulturlCall {
34076 c.ctx_ = ctx
34077 return c
34078 }
34079
34080
34081
34082 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Header() http.Header {
34083 if c.header_ == nil {
34084 c.header_ = make(http.Header)
34085 }
34086 return c.header_
34087 }
34088
34089 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) doRequest(alt string) (*http.Response, error) {
34090 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34091 if c.ifNoneMatch_ != "" {
34092 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34093 }
34094 var body io.Reader = nil
34095 c.urlParams_.Set("alt", alt)
34096 c.urlParams_.Set("prettyPrint", "false")
34097 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34098 urls += "?" + c.urlParams_.Encode()
34099 req, err := http.NewRequest("GET", urls, body)
34100 if err != nil {
34101 return nil, err
34102 }
34103 req.Header = reqHeaders
34104 googleapi.Expand(req.URL, map[string]string{
34105 "name": c.name,
34106 })
34107 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34108 }
34109
34110
34111
34112
34113
34114
34115
34116 func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse, error) {
34117 gensupport.SetOptions(c.urlParams_, opts...)
34118 res, err := c.doRequest("json")
34119 if res != nil && res.StatusCode == http.StatusNotModified {
34120 if res.Body != nil {
34121 res.Body.Close()
34122 }
34123 return nil, gensupport.WrapError(&googleapi.Error{
34124 Code: res.StatusCode,
34125 Header: res.Header,
34126 })
34127 }
34128 if err != nil {
34129 return nil, err
34130 }
34131 defer googleapi.CloseBody(res)
34132 if err := googleapi.CheckResponse(res); err != nil {
34133 return nil, gensupport.WrapError(err)
34134 }
34135 ret := &GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse{
34136 ServerResponse: googleapi.ServerResponse{
34137 Header: res.Header,
34138 HTTPStatusCode: res.StatusCode,
34139 },
34140 }
34141 target := &ret
34142 if err := gensupport.DecodeResponse(target, res); err != nil {
34143 return nil, err
34144 }
34145 return ret, nil
34146 }
34147
34148 type OrganizationsEnvironmentsQueriesListCall struct {
34149 s *Service
34150 parent string
34151 urlParams_ gensupport.URLParams
34152 ifNoneMatch_ string
34153 ctx_ context.Context
34154 header_ http.Header
34155 }
34156
34157
34158
34159
34160
34161 func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
34162 c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34163 c.parent = parent
34164 return c
34165 }
34166
34167
34168
34169 func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
34170 c.urlParams_.Set("dataset", dataset)
34171 return c
34172 }
34173
34174
34175
34176
34177 func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
34178 c.urlParams_.Set("from", from)
34179 return c
34180 }
34181
34182
34183
34184
34185 func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
34186 c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
34187 return c
34188 }
34189
34190
34191
34192 func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
34193 c.urlParams_.Set("status", status)
34194 return c
34195 }
34196
34197
34198
34199 func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
34200 c.urlParams_.Set("submittedBy", submittedBy)
34201 return c
34202 }
34203
34204
34205
34206
34207 func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
34208 c.urlParams_.Set("to", to)
34209 return c
34210 }
34211
34212
34213
34214
34215 func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
34216 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34217 return c
34218 }
34219
34220
34221
34222
34223 func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
34224 c.ifNoneMatch_ = entityTag
34225 return c
34226 }
34227
34228
34229 func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
34230 c.ctx_ = ctx
34231 return c
34232 }
34233
34234
34235
34236 func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
34237 if c.header_ == nil {
34238 c.header_ = make(http.Header)
34239 }
34240 return c.header_
34241 }
34242
34243 func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
34244 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34245 if c.ifNoneMatch_ != "" {
34246 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34247 }
34248 var body io.Reader = nil
34249 c.urlParams_.Set("alt", alt)
34250 c.urlParams_.Set("prettyPrint", "false")
34251 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
34252 urls += "?" + c.urlParams_.Encode()
34253 req, err := http.NewRequest("GET", urls, body)
34254 if err != nil {
34255 return nil, err
34256 }
34257 req.Header = reqHeaders
34258 googleapi.Expand(req.URL, map[string]string{
34259 "parent": c.parent,
34260 })
34261 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34262 }
34263
34264
34265
34266
34267
34268
34269
34270 func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
34271 gensupport.SetOptions(c.urlParams_, opts...)
34272 res, err := c.doRequest("json")
34273 if res != nil && res.StatusCode == http.StatusNotModified {
34274 if res.Body != nil {
34275 res.Body.Close()
34276 }
34277 return nil, gensupport.WrapError(&googleapi.Error{
34278 Code: res.StatusCode,
34279 Header: res.Header,
34280 })
34281 }
34282 if err != nil {
34283 return nil, err
34284 }
34285 defer googleapi.CloseBody(res)
34286 if err := googleapi.CheckResponse(res); err != nil {
34287 return nil, gensupport.WrapError(err)
34288 }
34289 ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
34290 ServerResponse: googleapi.ServerResponse{
34291 Header: res.Header,
34292 HTTPStatusCode: res.StatusCode,
34293 },
34294 }
34295 target := &ret
34296 if err := gensupport.DecodeResponse(target, res); err != nil {
34297 return nil, err
34298 }
34299 return ret, nil
34300 }
34301
34302 type OrganizationsEnvironmentsReferencesCreateCall struct {
34303 s *Service
34304 parent string
34305 googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
34306 urlParams_ gensupport.URLParams
34307 ctx_ context.Context
34308 header_ http.Header
34309 }
34310
34311
34312
34313
34314
34315 func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
34316 c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34317 c.parent = parent
34318 c.googlecloudapigeev1reference = googlecloudapigeev1reference
34319 return c
34320 }
34321
34322
34323
34324
34325 func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
34326 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34327 return c
34328 }
34329
34330
34331 func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
34332 c.ctx_ = ctx
34333 return c
34334 }
34335
34336
34337
34338 func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
34339 if c.header_ == nil {
34340 c.header_ = make(http.Header)
34341 }
34342 return c.header_
34343 }
34344
34345 func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
34346 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34347 var body io.Reader = nil
34348 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
34349 if err != nil {
34350 return nil, err
34351 }
34352 c.urlParams_.Set("alt", alt)
34353 c.urlParams_.Set("prettyPrint", "false")
34354 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
34355 urls += "?" + c.urlParams_.Encode()
34356 req, err := http.NewRequest("POST", urls, body)
34357 if err != nil {
34358 return nil, err
34359 }
34360 req.Header = reqHeaders
34361 googleapi.Expand(req.URL, map[string]string{
34362 "parent": c.parent,
34363 })
34364 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34365 }
34366
34367
34368
34369
34370
34371
34372
34373 func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34374 gensupport.SetOptions(c.urlParams_, opts...)
34375 res, err := c.doRequest("json")
34376 if res != nil && res.StatusCode == http.StatusNotModified {
34377 if res.Body != nil {
34378 res.Body.Close()
34379 }
34380 return nil, gensupport.WrapError(&googleapi.Error{
34381 Code: res.StatusCode,
34382 Header: res.Header,
34383 })
34384 }
34385 if err != nil {
34386 return nil, err
34387 }
34388 defer googleapi.CloseBody(res)
34389 if err := googleapi.CheckResponse(res); err != nil {
34390 return nil, gensupport.WrapError(err)
34391 }
34392 ret := &GoogleCloudApigeeV1Reference{
34393 ServerResponse: googleapi.ServerResponse{
34394 Header: res.Header,
34395 HTTPStatusCode: res.StatusCode,
34396 },
34397 }
34398 target := &ret
34399 if err := gensupport.DecodeResponse(target, res); err != nil {
34400 return nil, err
34401 }
34402 return ret, nil
34403 }
34404
34405 type OrganizationsEnvironmentsReferencesDeleteCall struct {
34406 s *Service
34407 name string
34408 urlParams_ gensupport.URLParams
34409 ctx_ context.Context
34410 header_ http.Header
34411 }
34412
34413
34414
34415
34416
34417
34418 func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
34419 c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34420 c.name = name
34421 return c
34422 }
34423
34424
34425
34426
34427 func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
34428 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34429 return c
34430 }
34431
34432
34433 func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
34434 c.ctx_ = ctx
34435 return c
34436 }
34437
34438
34439
34440 func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
34441 if c.header_ == nil {
34442 c.header_ = make(http.Header)
34443 }
34444 return c.header_
34445 }
34446
34447 func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
34448 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34449 var body io.Reader = nil
34450 c.urlParams_.Set("alt", alt)
34451 c.urlParams_.Set("prettyPrint", "false")
34452 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34453 urls += "?" + c.urlParams_.Encode()
34454 req, err := http.NewRequest("DELETE", urls, body)
34455 if err != nil {
34456 return nil, err
34457 }
34458 req.Header = reqHeaders
34459 googleapi.Expand(req.URL, map[string]string{
34460 "name": c.name,
34461 })
34462 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34463 }
34464
34465
34466
34467
34468
34469
34470
34471 func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34472 gensupport.SetOptions(c.urlParams_, opts...)
34473 res, err := c.doRequest("json")
34474 if res != nil && res.StatusCode == http.StatusNotModified {
34475 if res.Body != nil {
34476 res.Body.Close()
34477 }
34478 return nil, gensupport.WrapError(&googleapi.Error{
34479 Code: res.StatusCode,
34480 Header: res.Header,
34481 })
34482 }
34483 if err != nil {
34484 return nil, err
34485 }
34486 defer googleapi.CloseBody(res)
34487 if err := googleapi.CheckResponse(res); err != nil {
34488 return nil, gensupport.WrapError(err)
34489 }
34490 ret := &GoogleCloudApigeeV1Reference{
34491 ServerResponse: googleapi.ServerResponse{
34492 Header: res.Header,
34493 HTTPStatusCode: res.StatusCode,
34494 },
34495 }
34496 target := &ret
34497 if err := gensupport.DecodeResponse(target, res); err != nil {
34498 return nil, err
34499 }
34500 return ret, nil
34501 }
34502
34503 type OrganizationsEnvironmentsReferencesGetCall struct {
34504 s *Service
34505 name string
34506 urlParams_ gensupport.URLParams
34507 ifNoneMatch_ string
34508 ctx_ context.Context
34509 header_ http.Header
34510 }
34511
34512
34513
34514
34515
34516 func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
34517 c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34518 c.name = name
34519 return c
34520 }
34521
34522
34523
34524
34525 func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
34526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34527 return c
34528 }
34529
34530
34531
34532
34533 func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
34534 c.ifNoneMatch_ = entityTag
34535 return c
34536 }
34537
34538
34539 func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
34540 c.ctx_ = ctx
34541 return c
34542 }
34543
34544
34545
34546 func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
34547 if c.header_ == nil {
34548 c.header_ = make(http.Header)
34549 }
34550 return c.header_
34551 }
34552
34553 func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
34554 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34555 if c.ifNoneMatch_ != "" {
34556 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34557 }
34558 var body io.Reader = nil
34559 c.urlParams_.Set("alt", alt)
34560 c.urlParams_.Set("prettyPrint", "false")
34561 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34562 urls += "?" + c.urlParams_.Encode()
34563 req, err := http.NewRequest("GET", urls, body)
34564 if err != nil {
34565 return nil, err
34566 }
34567 req.Header = reqHeaders
34568 googleapi.Expand(req.URL, map[string]string{
34569 "name": c.name,
34570 })
34571 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34572 }
34573
34574
34575
34576
34577
34578
34579
34580 func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34581 gensupport.SetOptions(c.urlParams_, opts...)
34582 res, err := c.doRequest("json")
34583 if res != nil && res.StatusCode == http.StatusNotModified {
34584 if res.Body != nil {
34585 res.Body.Close()
34586 }
34587 return nil, gensupport.WrapError(&googleapi.Error{
34588 Code: res.StatusCode,
34589 Header: res.Header,
34590 })
34591 }
34592 if err != nil {
34593 return nil, err
34594 }
34595 defer googleapi.CloseBody(res)
34596 if err := googleapi.CheckResponse(res); err != nil {
34597 return nil, gensupport.WrapError(err)
34598 }
34599 ret := &GoogleCloudApigeeV1Reference{
34600 ServerResponse: googleapi.ServerResponse{
34601 Header: res.Header,
34602 HTTPStatusCode: res.StatusCode,
34603 },
34604 }
34605 target := &ret
34606 if err := gensupport.DecodeResponse(target, res); err != nil {
34607 return nil, err
34608 }
34609 return ret, nil
34610 }
34611
34612 type OrganizationsEnvironmentsReferencesUpdateCall struct {
34613 s *Service
34614 name string
34615 googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
34616 urlParams_ gensupport.URLParams
34617 ctx_ context.Context
34618 header_ http.Header
34619 }
34620
34621
34622
34623
34624
34625
34626
34627 func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
34628 c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34629 c.name = name
34630 c.googlecloudapigeev1reference = googlecloudapigeev1reference
34631 return c
34632 }
34633
34634
34635
34636
34637 func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
34638 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34639 return c
34640 }
34641
34642
34643 func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
34644 c.ctx_ = ctx
34645 return c
34646 }
34647
34648
34649
34650 func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
34651 if c.header_ == nil {
34652 c.header_ = make(http.Header)
34653 }
34654 return c.header_
34655 }
34656
34657 func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
34658 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34659 var body io.Reader = nil
34660 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
34661 if err != nil {
34662 return nil, err
34663 }
34664 c.urlParams_.Set("alt", alt)
34665 c.urlParams_.Set("prettyPrint", "false")
34666 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
34667 urls += "?" + c.urlParams_.Encode()
34668 req, err := http.NewRequest("PUT", urls, body)
34669 if err != nil {
34670 return nil, err
34671 }
34672 req.Header = reqHeaders
34673 googleapi.Expand(req.URL, map[string]string{
34674 "name": c.name,
34675 })
34676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34677 }
34678
34679
34680
34681
34682
34683
34684
34685 func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
34686 gensupport.SetOptions(c.urlParams_, opts...)
34687 res, err := c.doRequest("json")
34688 if res != nil && res.StatusCode == http.StatusNotModified {
34689 if res.Body != nil {
34690 res.Body.Close()
34691 }
34692 return nil, gensupport.WrapError(&googleapi.Error{
34693 Code: res.StatusCode,
34694 Header: res.Header,
34695 })
34696 }
34697 if err != nil {
34698 return nil, err
34699 }
34700 defer googleapi.CloseBody(res)
34701 if err := googleapi.CheckResponse(res); err != nil {
34702 return nil, gensupport.WrapError(err)
34703 }
34704 ret := &GoogleCloudApigeeV1Reference{
34705 ServerResponse: googleapi.ServerResponse{
34706 Header: res.Header,
34707 HTTPStatusCode: res.StatusCode,
34708 },
34709 }
34710 target := &ret
34711 if err := gensupport.DecodeResponse(target, res); err != nil {
34712 return nil, err
34713 }
34714 return ret, nil
34715 }
34716
34717 type OrganizationsEnvironmentsResourcefilesCreateCall struct {
34718 s *Service
34719 parent string
34720 googleapihttpbody *GoogleApiHttpBody
34721 urlParams_ gensupport.URLParams
34722 ctx_ context.Context
34723 header_ http.Header
34724 }
34725
34726
34727
34728
34729
34730
34731
34732
34733 func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
34734 c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34735 c.parent = parent
34736 c.googleapihttpbody = googleapihttpbody
34737 return c
34738 }
34739
34740
34741
34742
34743 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
34744 c.urlParams_.Set("name", name)
34745 return c
34746 }
34747
34748
34749
34750 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
34751 c.urlParams_.Set("type", type_)
34752 return c
34753 }
34754
34755
34756
34757
34758 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
34759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34760 return c
34761 }
34762
34763
34764 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
34765 c.ctx_ = ctx
34766 return c
34767 }
34768
34769
34770
34771 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
34772 if c.header_ == nil {
34773 c.header_ = make(http.Header)
34774 }
34775 return c.header_
34776 }
34777
34778 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
34779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34780 var body io.Reader = nil
34781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
34782 if err != nil {
34783 return nil, err
34784 }
34785 c.urlParams_.Set("alt", alt)
34786 c.urlParams_.Set("prettyPrint", "false")
34787 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
34788 urls += "?" + c.urlParams_.Encode()
34789 req, err := http.NewRequest("POST", urls, body)
34790 if err != nil {
34791 return nil, err
34792 }
34793 req.Header = reqHeaders
34794 googleapi.Expand(req.URL, map[string]string{
34795 "parent": c.parent,
34796 })
34797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34798 }
34799
34800
34801
34802
34803
34804
34805
34806 func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
34807 gensupport.SetOptions(c.urlParams_, opts...)
34808 res, err := c.doRequest("json")
34809 if res != nil && res.StatusCode == http.StatusNotModified {
34810 if res.Body != nil {
34811 res.Body.Close()
34812 }
34813 return nil, gensupport.WrapError(&googleapi.Error{
34814 Code: res.StatusCode,
34815 Header: res.Header,
34816 })
34817 }
34818 if err != nil {
34819 return nil, err
34820 }
34821 defer googleapi.CloseBody(res)
34822 if err := googleapi.CheckResponse(res); err != nil {
34823 return nil, gensupport.WrapError(err)
34824 }
34825 ret := &GoogleCloudApigeeV1ResourceFile{
34826 ServerResponse: googleapi.ServerResponse{
34827 Header: res.Header,
34828 HTTPStatusCode: res.StatusCode,
34829 },
34830 }
34831 target := &ret
34832 if err := gensupport.DecodeResponse(target, res); err != nil {
34833 return nil, err
34834 }
34835 return ret, nil
34836 }
34837
34838 type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
34839 s *Service
34840 parent string
34841 type_ string
34842 name string
34843 urlParams_ gensupport.URLParams
34844 ctx_ context.Context
34845 header_ http.Header
34846 }
34847
34848
34849
34850
34851
34852
34853
34854
34855
34856
34857 func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34858 c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34859 c.parent = parent
34860 c.type_ = type_
34861 c.name = name
34862 return c
34863 }
34864
34865
34866
34867
34868 func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34870 return c
34871 }
34872
34873
34874 func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
34875 c.ctx_ = ctx
34876 return c
34877 }
34878
34879
34880
34881 func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
34882 if c.header_ == nil {
34883 c.header_ = make(http.Header)
34884 }
34885 return c.header_
34886 }
34887
34888 func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
34889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34890 var body io.Reader = nil
34891 c.urlParams_.Set("alt", alt)
34892 c.urlParams_.Set("prettyPrint", "false")
34893 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
34894 urls += "?" + c.urlParams_.Encode()
34895 req, err := http.NewRequest("DELETE", urls, body)
34896 if err != nil {
34897 return nil, err
34898 }
34899 req.Header = reqHeaders
34900 googleapi.Expand(req.URL, map[string]string{
34901 "parent": c.parent,
34902 "type": c.type_,
34903 "name": c.name,
34904 })
34905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34906 }
34907
34908
34909
34910
34911
34912
34913
34914 func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
34915 gensupport.SetOptions(c.urlParams_, opts...)
34916 res, err := c.doRequest("json")
34917 if res != nil && res.StatusCode == http.StatusNotModified {
34918 if res.Body != nil {
34919 res.Body.Close()
34920 }
34921 return nil, gensupport.WrapError(&googleapi.Error{
34922 Code: res.StatusCode,
34923 Header: res.Header,
34924 })
34925 }
34926 if err != nil {
34927 return nil, err
34928 }
34929 defer googleapi.CloseBody(res)
34930 if err := googleapi.CheckResponse(res); err != nil {
34931 return nil, gensupport.WrapError(err)
34932 }
34933 ret := &GoogleCloudApigeeV1ResourceFile{
34934 ServerResponse: googleapi.ServerResponse{
34935 Header: res.Header,
34936 HTTPStatusCode: res.StatusCode,
34937 },
34938 }
34939 target := &ret
34940 if err := gensupport.DecodeResponse(target, res); err != nil {
34941 return nil, err
34942 }
34943 return ret, nil
34944 }
34945
34946 type OrganizationsEnvironmentsResourcefilesGetCall struct {
34947 s *Service
34948 parent string
34949 type_ string
34950 name string
34951 urlParams_ gensupport.URLParams
34952 ifNoneMatch_ string
34953 ctx_ context.Context
34954 header_ http.Header
34955 }
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966 func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, name string) *OrganizationsEnvironmentsResourcefilesGetCall {
34967 c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34968 c.parent = parent
34969 c.type_ = type_
34970 c.name = name
34971 return c
34972 }
34973
34974
34975
34976
34977 func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
34978 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34979 return c
34980 }
34981
34982
34983
34984
34985 func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
34986 c.ifNoneMatch_ = entityTag
34987 return c
34988 }
34989
34990
34991 func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
34992 c.ctx_ = ctx
34993 return c
34994 }
34995
34996
34997
34998 func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
34999 if c.header_ == nil {
35000 c.header_ = make(http.Header)
35001 }
35002 return c.header_
35003 }
35004
35005 func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
35006 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35007 if c.ifNoneMatch_ != "" {
35008 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35009 }
35010 var body io.Reader = nil
35011 c.urlParams_.Set("alt", alt)
35012 c.urlParams_.Set("prettyPrint", "false")
35013 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35014 urls += "?" + c.urlParams_.Encode()
35015 req, err := http.NewRequest("GET", urls, body)
35016 if err != nil {
35017 return nil, err
35018 }
35019 req.Header = reqHeaders
35020 googleapi.Expand(req.URL, map[string]string{
35021 "parent": c.parent,
35022 "type": c.type_,
35023 "name": c.name,
35024 })
35025 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35026 }
35027
35028
35029
35030
35031
35032
35033
35034 func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
35035 gensupport.SetOptions(c.urlParams_, opts...)
35036 res, err := c.doRequest("json")
35037 if res != nil && res.StatusCode == http.StatusNotModified {
35038 if res.Body != nil {
35039 res.Body.Close()
35040 }
35041 return nil, gensupport.WrapError(&googleapi.Error{
35042 Code: res.StatusCode,
35043 Header: res.Header,
35044 })
35045 }
35046 if err != nil {
35047 return nil, err
35048 }
35049 defer googleapi.CloseBody(res)
35050 if err := googleapi.CheckResponse(res); err != nil {
35051 return nil, gensupport.WrapError(err)
35052 }
35053 ret := &GoogleApiHttpBody{
35054 ServerResponse: googleapi.ServerResponse{
35055 Header: res.Header,
35056 HTTPStatusCode: res.StatusCode,
35057 },
35058 }
35059 target := &ret
35060 if err := gensupport.DecodeResponse(target, res); err != nil {
35061 return nil, err
35062 }
35063 return ret, nil
35064 }
35065
35066 type OrganizationsEnvironmentsResourcefilesListCall struct {
35067 s *Service
35068 parent string
35069 urlParams_ gensupport.URLParams
35070 ifNoneMatch_ string
35071 ctx_ context.Context
35072 header_ http.Header
35073 }
35074
35075
35076
35077
35078
35079
35080
35081 func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
35082 c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35083 c.parent = parent
35084 return c
35085 }
35086
35087
35088
35089 func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
35090 c.urlParams_.Set("type", type_)
35091 return c
35092 }
35093
35094
35095
35096
35097 func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
35098 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35099 return c
35100 }
35101
35102
35103
35104
35105 func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
35106 c.ifNoneMatch_ = entityTag
35107 return c
35108 }
35109
35110
35111 func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
35112 c.ctx_ = ctx
35113 return c
35114 }
35115
35116
35117
35118 func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
35119 if c.header_ == nil {
35120 c.header_ = make(http.Header)
35121 }
35122 return c.header_
35123 }
35124
35125 func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
35126 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35127 if c.ifNoneMatch_ != "" {
35128 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35129 }
35130 var body io.Reader = nil
35131 c.urlParams_.Set("alt", alt)
35132 c.urlParams_.Set("prettyPrint", "false")
35133 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
35134 urls += "?" + c.urlParams_.Encode()
35135 req, err := http.NewRequest("GET", urls, body)
35136 if err != nil {
35137 return nil, err
35138 }
35139 req.Header = reqHeaders
35140 googleapi.Expand(req.URL, map[string]string{
35141 "parent": c.parent,
35142 })
35143 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35144 }
35145
35146
35147
35148
35149
35150
35151
35152 func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
35153 gensupport.SetOptions(c.urlParams_, opts...)
35154 res, err := c.doRequest("json")
35155 if res != nil && res.StatusCode == http.StatusNotModified {
35156 if res.Body != nil {
35157 res.Body.Close()
35158 }
35159 return nil, gensupport.WrapError(&googleapi.Error{
35160 Code: res.StatusCode,
35161 Header: res.Header,
35162 })
35163 }
35164 if err != nil {
35165 return nil, err
35166 }
35167 defer googleapi.CloseBody(res)
35168 if err := googleapi.CheckResponse(res); err != nil {
35169 return nil, gensupport.WrapError(err)
35170 }
35171 ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
35172 ServerResponse: googleapi.ServerResponse{
35173 Header: res.Header,
35174 HTTPStatusCode: res.StatusCode,
35175 },
35176 }
35177 target := &ret
35178 if err := gensupport.DecodeResponse(target, res); err != nil {
35179 return nil, err
35180 }
35181 return ret, nil
35182 }
35183
35184 type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
35185 s *Service
35186 parent string
35187 type_ string
35188 urlParams_ gensupport.URLParams
35189 ifNoneMatch_ string
35190 ctx_ context.Context
35191 header_ http.Header
35192 }
35193
35194
35195
35196
35197
35198
35199
35200
35201 func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35202 c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35203 c.parent = parent
35204 c.type_ = type_
35205 return c
35206 }
35207
35208
35209
35210
35211 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35212 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35213 return c
35214 }
35215
35216
35217
35218
35219 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35220 c.ifNoneMatch_ = entityTag
35221 return c
35222 }
35223
35224
35225 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
35226 c.ctx_ = ctx
35227 return c
35228 }
35229
35230
35231
35232 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
35233 if c.header_ == nil {
35234 c.header_ = make(http.Header)
35235 }
35236 return c.header_
35237 }
35238
35239 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
35240 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35241 if c.ifNoneMatch_ != "" {
35242 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35243 }
35244 var body io.Reader = nil
35245 c.urlParams_.Set("alt", alt)
35246 c.urlParams_.Set("prettyPrint", "false")
35247 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
35248 urls += "?" + c.urlParams_.Encode()
35249 req, err := http.NewRequest("GET", urls, body)
35250 if err != nil {
35251 return nil, err
35252 }
35253 req.Header = reqHeaders
35254 googleapi.Expand(req.URL, map[string]string{
35255 "parent": c.parent,
35256 "type": c.type_,
35257 })
35258 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35259 }
35260
35261
35262
35263
35264
35265
35266
35267 func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
35268 gensupport.SetOptions(c.urlParams_, opts...)
35269 res, err := c.doRequest("json")
35270 if res != nil && res.StatusCode == http.StatusNotModified {
35271 if res.Body != nil {
35272 res.Body.Close()
35273 }
35274 return nil, gensupport.WrapError(&googleapi.Error{
35275 Code: res.StatusCode,
35276 Header: res.Header,
35277 })
35278 }
35279 if err != nil {
35280 return nil, err
35281 }
35282 defer googleapi.CloseBody(res)
35283 if err := googleapi.CheckResponse(res); err != nil {
35284 return nil, gensupport.WrapError(err)
35285 }
35286 ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
35287 ServerResponse: googleapi.ServerResponse{
35288 Header: res.Header,
35289 HTTPStatusCode: res.StatusCode,
35290 },
35291 }
35292 target := &ret
35293 if err := gensupport.DecodeResponse(target, res); err != nil {
35294 return nil, err
35295 }
35296 return ret, nil
35297 }
35298
35299 type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
35300 s *Service
35301 parent string
35302 type_ string
35303 name string
35304 googleapihttpbody *GoogleApiHttpBody
35305 urlParams_ gensupport.URLParams
35306 ctx_ context.Context
35307 header_ http.Header
35308 }
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318
35319
35320 func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35321 c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35322 c.parent = parent
35323 c.type_ = type_
35324 c.name = name
35325 c.googleapihttpbody = googleapihttpbody
35326 return c
35327 }
35328
35329
35330
35331
35332 func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35333 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35334 return c
35335 }
35336
35337
35338 func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
35339 c.ctx_ = ctx
35340 return c
35341 }
35342
35343
35344
35345 func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
35346 if c.header_ == nil {
35347 c.header_ = make(http.Header)
35348 }
35349 return c.header_
35350 }
35351
35352 func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
35353 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35354 var body io.Reader = nil
35355 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
35356 if err != nil {
35357 return nil, err
35358 }
35359 c.urlParams_.Set("alt", alt)
35360 c.urlParams_.Set("prettyPrint", "false")
35361 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{name}")
35362 urls += "?" + c.urlParams_.Encode()
35363 req, err := http.NewRequest("PUT", urls, body)
35364 if err != nil {
35365 return nil, err
35366 }
35367 req.Header = reqHeaders
35368 googleapi.Expand(req.URL, map[string]string{
35369 "parent": c.parent,
35370 "type": c.type_,
35371 "name": c.name,
35372 })
35373 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35374 }
35375
35376
35377
35378
35379
35380
35381
35382 func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
35383 gensupport.SetOptions(c.urlParams_, opts...)
35384 res, err := c.doRequest("json")
35385 if res != nil && res.StatusCode == http.StatusNotModified {
35386 if res.Body != nil {
35387 res.Body.Close()
35388 }
35389 return nil, gensupport.WrapError(&googleapi.Error{
35390 Code: res.StatusCode,
35391 Header: res.Header,
35392 })
35393 }
35394 if err != nil {
35395 return nil, err
35396 }
35397 defer googleapi.CloseBody(res)
35398 if err := googleapi.CheckResponse(res); err != nil {
35399 return nil, gensupport.WrapError(err)
35400 }
35401 ret := &GoogleCloudApigeeV1ResourceFile{
35402 ServerResponse: googleapi.ServerResponse{
35403 Header: res.Header,
35404 HTTPStatusCode: res.StatusCode,
35405 },
35406 }
35407 target := &ret
35408 if err := gensupport.DecodeResponse(target, res); err != nil {
35409 return nil, err
35410 }
35411 return ret, nil
35412 }
35413
35414 type OrganizationsEnvironmentsSecurityActionsCreateCall struct {
35415 s *Service
35416 parent string
35417 googlecloudapigeev1securityaction *GoogleCloudApigeeV1SecurityAction
35418 urlParams_ gensupport.URLParams
35419 ctx_ context.Context
35420 header_ http.Header
35421 }
35422
35423
35424
35425
35426
35427 func (r *OrganizationsEnvironmentsSecurityActionsService) Create(parent string, googlecloudapigeev1securityaction *GoogleCloudApigeeV1SecurityAction) *OrganizationsEnvironmentsSecurityActionsCreateCall {
35428 c := &OrganizationsEnvironmentsSecurityActionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35429 c.parent = parent
35430 c.googlecloudapigeev1securityaction = googlecloudapigeev1securityaction
35431 return c
35432 }
35433
35434
35435
35436
35437
35438 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) SecurityActionId(securityActionId string) *OrganizationsEnvironmentsSecurityActionsCreateCall {
35439 c.urlParams_.Set("securityActionId", securityActionId)
35440 return c
35441 }
35442
35443
35444
35445
35446 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsCreateCall {
35447 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35448 return c
35449 }
35450
35451
35452 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsCreateCall {
35453 c.ctx_ = ctx
35454 return c
35455 }
35456
35457
35458
35459 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Header() http.Header {
35460 if c.header_ == nil {
35461 c.header_ = make(http.Header)
35462 }
35463 return c.header_
35464 }
35465
35466 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) doRequest(alt string) (*http.Response, error) {
35467 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35468 var body io.Reader = nil
35469 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityaction)
35470 if err != nil {
35471 return nil, err
35472 }
35473 c.urlParams_.Set("alt", alt)
35474 c.urlParams_.Set("prettyPrint", "false")
35475 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityActions")
35476 urls += "?" + c.urlParams_.Encode()
35477 req, err := http.NewRequest("POST", urls, body)
35478 if err != nil {
35479 return nil, err
35480 }
35481 req.Header = reqHeaders
35482 googleapi.Expand(req.URL, map[string]string{
35483 "parent": c.parent,
35484 })
35485 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35486 }
35487
35488
35489
35490
35491
35492
35493
35494 func (c *OrganizationsEnvironmentsSecurityActionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
35495 gensupport.SetOptions(c.urlParams_, opts...)
35496 res, err := c.doRequest("json")
35497 if res != nil && res.StatusCode == http.StatusNotModified {
35498 if res.Body != nil {
35499 res.Body.Close()
35500 }
35501 return nil, gensupport.WrapError(&googleapi.Error{
35502 Code: res.StatusCode,
35503 Header: res.Header,
35504 })
35505 }
35506 if err != nil {
35507 return nil, err
35508 }
35509 defer googleapi.CloseBody(res)
35510 if err := googleapi.CheckResponse(res); err != nil {
35511 return nil, gensupport.WrapError(err)
35512 }
35513 ret := &GoogleCloudApigeeV1SecurityAction{
35514 ServerResponse: googleapi.ServerResponse{
35515 Header: res.Header,
35516 HTTPStatusCode: res.StatusCode,
35517 },
35518 }
35519 target := &ret
35520 if err := gensupport.DecodeResponse(target, res); err != nil {
35521 return nil, err
35522 }
35523 return ret, nil
35524 }
35525
35526 type OrganizationsEnvironmentsSecurityActionsDisableCall struct {
35527 s *Service
35528 name string
35529 googlecloudapigeev1disablesecurityactionrequest *GoogleCloudApigeeV1DisableSecurityActionRequest
35530 urlParams_ gensupport.URLParams
35531 ctx_ context.Context
35532 header_ http.Header
35533 }
35534
35535
35536
35537
35538
35539
35540
35541
35542 func (r *OrganizationsEnvironmentsSecurityActionsService) Disable(name string, googlecloudapigeev1disablesecurityactionrequest *GoogleCloudApigeeV1DisableSecurityActionRequest) *OrganizationsEnvironmentsSecurityActionsDisableCall {
35543 c := &OrganizationsEnvironmentsSecurityActionsDisableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35544 c.name = name
35545 c.googlecloudapigeev1disablesecurityactionrequest = googlecloudapigeev1disablesecurityactionrequest
35546 return c
35547 }
35548
35549
35550
35551
35552 func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsDisableCall {
35553 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35554 return c
35555 }
35556
35557
35558 func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsDisableCall {
35559 c.ctx_ = ctx
35560 return c
35561 }
35562
35563
35564
35565 func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Header() http.Header {
35566 if c.header_ == nil {
35567 c.header_ = make(http.Header)
35568 }
35569 return c.header_
35570 }
35571
35572 func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) doRequest(alt string) (*http.Response, error) {
35573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35574 var body io.Reader = nil
35575 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1disablesecurityactionrequest)
35576 if err != nil {
35577 return nil, err
35578 }
35579 c.urlParams_.Set("alt", alt)
35580 c.urlParams_.Set("prettyPrint", "false")
35581 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:disable")
35582 urls += "?" + c.urlParams_.Encode()
35583 req, err := http.NewRequest("POST", urls, body)
35584 if err != nil {
35585 return nil, err
35586 }
35587 req.Header = reqHeaders
35588 googleapi.Expand(req.URL, map[string]string{
35589 "name": c.name,
35590 })
35591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35592 }
35593
35594
35595
35596
35597
35598
35599
35600 func (c *OrganizationsEnvironmentsSecurityActionsDisableCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
35601 gensupport.SetOptions(c.urlParams_, opts...)
35602 res, err := c.doRequest("json")
35603 if res != nil && res.StatusCode == http.StatusNotModified {
35604 if res.Body != nil {
35605 res.Body.Close()
35606 }
35607 return nil, gensupport.WrapError(&googleapi.Error{
35608 Code: res.StatusCode,
35609 Header: res.Header,
35610 })
35611 }
35612 if err != nil {
35613 return nil, err
35614 }
35615 defer googleapi.CloseBody(res)
35616 if err := googleapi.CheckResponse(res); err != nil {
35617 return nil, gensupport.WrapError(err)
35618 }
35619 ret := &GoogleCloudApigeeV1SecurityAction{
35620 ServerResponse: googleapi.ServerResponse{
35621 Header: res.Header,
35622 HTTPStatusCode: res.StatusCode,
35623 },
35624 }
35625 target := &ret
35626 if err := gensupport.DecodeResponse(target, res); err != nil {
35627 return nil, err
35628 }
35629 return ret, nil
35630 }
35631
35632 type OrganizationsEnvironmentsSecurityActionsEnableCall struct {
35633 s *Service
35634 name string
35635 googlecloudapigeev1enablesecurityactionrequest *GoogleCloudApigeeV1EnableSecurityActionRequest
35636 urlParams_ gensupport.URLParams
35637 ctx_ context.Context
35638 header_ http.Header
35639 }
35640
35641
35642
35643
35644
35645
35646
35647
35648 func (r *OrganizationsEnvironmentsSecurityActionsService) Enable(name string, googlecloudapigeev1enablesecurityactionrequest *GoogleCloudApigeeV1EnableSecurityActionRequest) *OrganizationsEnvironmentsSecurityActionsEnableCall {
35649 c := &OrganizationsEnvironmentsSecurityActionsEnableCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35650 c.name = name
35651 c.googlecloudapigeev1enablesecurityactionrequest = googlecloudapigeev1enablesecurityactionrequest
35652 return c
35653 }
35654
35655
35656
35657
35658 func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsEnableCall {
35659 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35660 return c
35661 }
35662
35663
35664 func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsEnableCall {
35665 c.ctx_ = ctx
35666 return c
35667 }
35668
35669
35670
35671 func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Header() http.Header {
35672 if c.header_ == nil {
35673 c.header_ = make(http.Header)
35674 }
35675 return c.header_
35676 }
35677
35678 func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) doRequest(alt string) (*http.Response, error) {
35679 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35680 var body io.Reader = nil
35681 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1enablesecurityactionrequest)
35682 if err != nil {
35683 return nil, err
35684 }
35685 c.urlParams_.Set("alt", alt)
35686 c.urlParams_.Set("prettyPrint", "false")
35687 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:enable")
35688 urls += "?" + c.urlParams_.Encode()
35689 req, err := http.NewRequest("POST", urls, body)
35690 if err != nil {
35691 return nil, err
35692 }
35693 req.Header = reqHeaders
35694 googleapi.Expand(req.URL, map[string]string{
35695 "name": c.name,
35696 })
35697 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35698 }
35699
35700
35701
35702
35703
35704
35705
35706 func (c *OrganizationsEnvironmentsSecurityActionsEnableCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
35707 gensupport.SetOptions(c.urlParams_, opts...)
35708 res, err := c.doRequest("json")
35709 if res != nil && res.StatusCode == http.StatusNotModified {
35710 if res.Body != nil {
35711 res.Body.Close()
35712 }
35713 return nil, gensupport.WrapError(&googleapi.Error{
35714 Code: res.StatusCode,
35715 Header: res.Header,
35716 })
35717 }
35718 if err != nil {
35719 return nil, err
35720 }
35721 defer googleapi.CloseBody(res)
35722 if err := googleapi.CheckResponse(res); err != nil {
35723 return nil, gensupport.WrapError(err)
35724 }
35725 ret := &GoogleCloudApigeeV1SecurityAction{
35726 ServerResponse: googleapi.ServerResponse{
35727 Header: res.Header,
35728 HTTPStatusCode: res.StatusCode,
35729 },
35730 }
35731 target := &ret
35732 if err := gensupport.DecodeResponse(target, res); err != nil {
35733 return nil, err
35734 }
35735 return ret, nil
35736 }
35737
35738 type OrganizationsEnvironmentsSecurityActionsGetCall struct {
35739 s *Service
35740 name string
35741 urlParams_ gensupport.URLParams
35742 ifNoneMatch_ string
35743 ctx_ context.Context
35744 header_ http.Header
35745 }
35746
35747
35748
35749
35750
35751 func (r *OrganizationsEnvironmentsSecurityActionsService) Get(name string) *OrganizationsEnvironmentsSecurityActionsGetCall {
35752 c := &OrganizationsEnvironmentsSecurityActionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35753 c.name = name
35754 return c
35755 }
35756
35757
35758
35759
35760 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsGetCall {
35761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35762 return c
35763 }
35764
35765
35766
35767
35768 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityActionsGetCall {
35769 c.ifNoneMatch_ = entityTag
35770 return c
35771 }
35772
35773
35774 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsGetCall {
35775 c.ctx_ = ctx
35776 return c
35777 }
35778
35779
35780
35781 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Header() http.Header {
35782 if c.header_ == nil {
35783 c.header_ = make(http.Header)
35784 }
35785 return c.header_
35786 }
35787
35788 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) doRequest(alt string) (*http.Response, error) {
35789 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35790 if c.ifNoneMatch_ != "" {
35791 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35792 }
35793 var body io.Reader = nil
35794 c.urlParams_.Set("alt", alt)
35795 c.urlParams_.Set("prettyPrint", "false")
35796 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
35797 urls += "?" + c.urlParams_.Encode()
35798 req, err := http.NewRequest("GET", urls, body)
35799 if err != nil {
35800 return nil, err
35801 }
35802 req.Header = reqHeaders
35803 googleapi.Expand(req.URL, map[string]string{
35804 "name": c.name,
35805 })
35806 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35807 }
35808
35809
35810
35811
35812
35813
35814
35815 func (c *OrganizationsEnvironmentsSecurityActionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityAction, error) {
35816 gensupport.SetOptions(c.urlParams_, opts...)
35817 res, err := c.doRequest("json")
35818 if res != nil && res.StatusCode == http.StatusNotModified {
35819 if res.Body != nil {
35820 res.Body.Close()
35821 }
35822 return nil, gensupport.WrapError(&googleapi.Error{
35823 Code: res.StatusCode,
35824 Header: res.Header,
35825 })
35826 }
35827 if err != nil {
35828 return nil, err
35829 }
35830 defer googleapi.CloseBody(res)
35831 if err := googleapi.CheckResponse(res); err != nil {
35832 return nil, gensupport.WrapError(err)
35833 }
35834 ret := &GoogleCloudApigeeV1SecurityAction{
35835 ServerResponse: googleapi.ServerResponse{
35836 Header: res.Header,
35837 HTTPStatusCode: res.StatusCode,
35838 },
35839 }
35840 target := &ret
35841 if err := gensupport.DecodeResponse(target, res); err != nil {
35842 return nil, err
35843 }
35844 return ret, nil
35845 }
35846
35847 type OrganizationsEnvironmentsSecurityActionsListCall struct {
35848 s *Service
35849 parent string
35850 urlParams_ gensupport.URLParams
35851 ifNoneMatch_ string
35852 ctx_ context.Context
35853 header_ http.Header
35854 }
35855
35856
35857
35858
35859
35860
35861 func (r *OrganizationsEnvironmentsSecurityActionsService) List(parent string) *OrganizationsEnvironmentsSecurityActionsListCall {
35862 c := &OrganizationsEnvironmentsSecurityActionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35863 c.parent = parent
35864 return c
35865 }
35866
35867
35868
35869
35870
35871 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Filter(filter string) *OrganizationsEnvironmentsSecurityActionsListCall {
35872 c.urlParams_.Set("filter", filter)
35873 return c
35874 }
35875
35876
35877
35878
35879
35880 func (c *OrganizationsEnvironmentsSecurityActionsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityActionsListCall {
35881 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35882 return c
35883 }
35884
35885
35886
35887
35888
35889 func (c *OrganizationsEnvironmentsSecurityActionsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityActionsListCall {
35890 c.urlParams_.Set("pageToken", pageToken)
35891 return c
35892 }
35893
35894
35895
35896
35897 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityActionsListCall {
35898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35899 return c
35900 }
35901
35902
35903
35904
35905 func (c *OrganizationsEnvironmentsSecurityActionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityActionsListCall {
35906 c.ifNoneMatch_ = entityTag
35907 return c
35908 }
35909
35910
35911 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityActionsListCall {
35912 c.ctx_ = ctx
35913 return c
35914 }
35915
35916
35917
35918 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Header() http.Header {
35919 if c.header_ == nil {
35920 c.header_ = make(http.Header)
35921 }
35922 return c.header_
35923 }
35924
35925 func (c *OrganizationsEnvironmentsSecurityActionsListCall) doRequest(alt string) (*http.Response, error) {
35926 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35927 if c.ifNoneMatch_ != "" {
35928 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35929 }
35930 var body io.Reader = nil
35931 c.urlParams_.Set("alt", alt)
35932 c.urlParams_.Set("prettyPrint", "false")
35933 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityActions")
35934 urls += "?" + c.urlParams_.Encode()
35935 req, err := http.NewRequest("GET", urls, body)
35936 if err != nil {
35937 return nil, err
35938 }
35939 req.Header = reqHeaders
35940 googleapi.Expand(req.URL, map[string]string{
35941 "parent": c.parent,
35942 })
35943 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35944 }
35945
35946
35947
35948
35949
35950
35951
35952 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityActionsResponse, error) {
35953 gensupport.SetOptions(c.urlParams_, opts...)
35954 res, err := c.doRequest("json")
35955 if res != nil && res.StatusCode == http.StatusNotModified {
35956 if res.Body != nil {
35957 res.Body.Close()
35958 }
35959 return nil, gensupport.WrapError(&googleapi.Error{
35960 Code: res.StatusCode,
35961 Header: res.Header,
35962 })
35963 }
35964 if err != nil {
35965 return nil, err
35966 }
35967 defer googleapi.CloseBody(res)
35968 if err := googleapi.CheckResponse(res); err != nil {
35969 return nil, gensupport.WrapError(err)
35970 }
35971 ret := &GoogleCloudApigeeV1ListSecurityActionsResponse{
35972 ServerResponse: googleapi.ServerResponse{
35973 Header: res.Header,
35974 HTTPStatusCode: res.StatusCode,
35975 },
35976 }
35977 target := &ret
35978 if err := gensupport.DecodeResponse(target, res); err != nil {
35979 return nil, err
35980 }
35981 return ret, nil
35982 }
35983
35984
35985
35986
35987 func (c *OrganizationsEnvironmentsSecurityActionsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityActionsResponse) error) error {
35988 c.ctx_ = ctx
35989 defer c.PageToken(c.urlParams_.Get("pageToken"))
35990 for {
35991 x, err := c.Do()
35992 if err != nil {
35993 return err
35994 }
35995 if err := f(x); err != nil {
35996 return err
35997 }
35998 if x.NextPageToken == "" {
35999 return nil
36000 }
36001 c.PageToken(x.NextPageToken)
36002 }
36003 }
36004
36005 type OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall struct {
36006 s *Service
36007 parent string
36008 googlecloudapigeev1batchupdatesecurityincidentsrequest *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest
36009 urlParams_ gensupport.URLParams
36010 ctx_ context.Context
36011 header_ http.Header
36012 }
36013
36014
36015
36016
36017
36018
36019
36020
36021 func (r *OrganizationsEnvironmentsSecurityIncidentsService) BatchUpdate(parent string, googlecloudapigeev1batchupdatesecurityincidentsrequest *GoogleCloudApigeeV1BatchUpdateSecurityIncidentsRequest) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
36022 c := &OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36023 c.parent = parent
36024 c.googlecloudapigeev1batchupdatesecurityincidentsrequest = googlecloudapigeev1batchupdatesecurityincidentsrequest
36025 return c
36026 }
36027
36028
36029
36030
36031 func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
36032 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36033 return c
36034 }
36035
36036
36037 func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall {
36038 c.ctx_ = ctx
36039 return c
36040 }
36041
36042
36043
36044 func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Header() http.Header {
36045 if c.header_ == nil {
36046 c.header_ = make(http.Header)
36047 }
36048 return c.header_
36049 }
36050
36051 func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
36052 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36053 var body io.Reader = nil
36054 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1batchupdatesecurityincidentsrequest)
36055 if err != nil {
36056 return nil, err
36057 }
36058 c.urlParams_.Set("alt", alt)
36059 c.urlParams_.Set("prettyPrint", "false")
36060 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityIncidents:batchUpdate")
36061 urls += "?" + c.urlParams_.Encode()
36062 req, err := http.NewRequest("POST", urls, body)
36063 if err != nil {
36064 return nil, err
36065 }
36066 req.Header = reqHeaders
36067 googleapi.Expand(req.URL, map[string]string{
36068 "parent": c.parent,
36069 })
36070 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36071 }
36072
36073
36074
36075
36076
36077
36078
36079 func (c *OrganizationsEnvironmentsSecurityIncidentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse, error) {
36080 gensupport.SetOptions(c.urlParams_, opts...)
36081 res, err := c.doRequest("json")
36082 if res != nil && res.StatusCode == http.StatusNotModified {
36083 if res.Body != nil {
36084 res.Body.Close()
36085 }
36086 return nil, gensupport.WrapError(&googleapi.Error{
36087 Code: res.StatusCode,
36088 Header: res.Header,
36089 })
36090 }
36091 if err != nil {
36092 return nil, err
36093 }
36094 defer googleapi.CloseBody(res)
36095 if err := googleapi.CheckResponse(res); err != nil {
36096 return nil, gensupport.WrapError(err)
36097 }
36098 ret := &GoogleCloudApigeeV1BatchUpdateSecurityIncidentsResponse{
36099 ServerResponse: googleapi.ServerResponse{
36100 Header: res.Header,
36101 HTTPStatusCode: res.StatusCode,
36102 },
36103 }
36104 target := &ret
36105 if err := gensupport.DecodeResponse(target, res); err != nil {
36106 return nil, err
36107 }
36108 return ret, nil
36109 }
36110
36111 type OrganizationsEnvironmentsSecurityIncidentsGetCall struct {
36112 s *Service
36113 name string
36114 urlParams_ gensupport.URLParams
36115 ifNoneMatch_ string
36116 ctx_ context.Context
36117 header_ http.Header
36118 }
36119
36120
36121
36122
36123
36124
36125
36126
36127
36128
36129 func (r *OrganizationsEnvironmentsSecurityIncidentsService) Get(name string) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
36130 c := &OrganizationsEnvironmentsSecurityIncidentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36131 c.name = name
36132 return c
36133 }
36134
36135
36136
36137
36138 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
36139 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36140 return c
36141 }
36142
36143
36144
36145
36146 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
36147 c.ifNoneMatch_ = entityTag
36148 return c
36149 }
36150
36151
36152 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsGetCall {
36153 c.ctx_ = ctx
36154 return c
36155 }
36156
36157
36158
36159 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Header() http.Header {
36160 if c.header_ == nil {
36161 c.header_ = make(http.Header)
36162 }
36163 return c.header_
36164 }
36165
36166 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) doRequest(alt string) (*http.Response, error) {
36167 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36168 if c.ifNoneMatch_ != "" {
36169 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36170 }
36171 var body io.Reader = nil
36172 c.urlParams_.Set("alt", alt)
36173 c.urlParams_.Set("prettyPrint", "false")
36174 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36175 urls += "?" + c.urlParams_.Encode()
36176 req, err := http.NewRequest("GET", urls, body)
36177 if err != nil {
36178 return nil, err
36179 }
36180 req.Header = reqHeaders
36181 googleapi.Expand(req.URL, map[string]string{
36182 "name": c.name,
36183 })
36184 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36185 }
36186
36187
36188
36189
36190
36191
36192
36193 func (c *OrganizationsEnvironmentsSecurityIncidentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityIncident, error) {
36194 gensupport.SetOptions(c.urlParams_, opts...)
36195 res, err := c.doRequest("json")
36196 if res != nil && res.StatusCode == http.StatusNotModified {
36197 if res.Body != nil {
36198 res.Body.Close()
36199 }
36200 return nil, gensupport.WrapError(&googleapi.Error{
36201 Code: res.StatusCode,
36202 Header: res.Header,
36203 })
36204 }
36205 if err != nil {
36206 return nil, err
36207 }
36208 defer googleapi.CloseBody(res)
36209 if err := googleapi.CheckResponse(res); err != nil {
36210 return nil, gensupport.WrapError(err)
36211 }
36212 ret := &GoogleCloudApigeeV1SecurityIncident{
36213 ServerResponse: googleapi.ServerResponse{
36214 Header: res.Header,
36215 HTTPStatusCode: res.StatusCode,
36216 },
36217 }
36218 target := &ret
36219 if err := gensupport.DecodeResponse(target, res); err != nil {
36220 return nil, err
36221 }
36222 return ret, nil
36223 }
36224
36225 type OrganizationsEnvironmentsSecurityIncidentsListCall struct {
36226 s *Service
36227 parent string
36228 urlParams_ gensupport.URLParams
36229 ifNoneMatch_ string
36230 ctx_ context.Context
36231 header_ http.Header
36232 }
36233
36234
36235
36236
36237
36238
36239 func (r *OrganizationsEnvironmentsSecurityIncidentsService) List(parent string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36240 c := &OrganizationsEnvironmentsSecurityIncidentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36241 c.parent = parent
36242 return c
36243 }
36244
36245
36246
36247
36248
36249 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Filter(filter string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36250 c.urlParams_.Set("filter", filter)
36251 return c
36252 }
36253
36254
36255
36256
36257 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36258 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36259 return c
36260 }
36261
36262
36263
36264
36265 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36266 c.urlParams_.Set("pageToken", pageToken)
36267 return c
36268 }
36269
36270
36271
36272
36273 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36274 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36275 return c
36276 }
36277
36278
36279
36280
36281 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36282 c.ifNoneMatch_ = entityTag
36283 return c
36284 }
36285
36286
36287 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsListCall {
36288 c.ctx_ = ctx
36289 return c
36290 }
36291
36292
36293
36294 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Header() http.Header {
36295 if c.header_ == nil {
36296 c.header_ = make(http.Header)
36297 }
36298 return c.header_
36299 }
36300
36301 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) doRequest(alt string) (*http.Response, error) {
36302 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36303 if c.ifNoneMatch_ != "" {
36304 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36305 }
36306 var body io.Reader = nil
36307 c.urlParams_.Set("alt", alt)
36308 c.urlParams_.Set("prettyPrint", "false")
36309 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityIncidents")
36310 urls += "?" + c.urlParams_.Encode()
36311 req, err := http.NewRequest("GET", urls, body)
36312 if err != nil {
36313 return nil, err
36314 }
36315 req.Header = reqHeaders
36316 googleapi.Expand(req.URL, map[string]string{
36317 "parent": c.parent,
36318 })
36319 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36320 }
36321
36322
36323
36324
36325
36326
36327
36328 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityIncidentsResponse, error) {
36329 gensupport.SetOptions(c.urlParams_, opts...)
36330 res, err := c.doRequest("json")
36331 if res != nil && res.StatusCode == http.StatusNotModified {
36332 if res.Body != nil {
36333 res.Body.Close()
36334 }
36335 return nil, gensupport.WrapError(&googleapi.Error{
36336 Code: res.StatusCode,
36337 Header: res.Header,
36338 })
36339 }
36340 if err != nil {
36341 return nil, err
36342 }
36343 defer googleapi.CloseBody(res)
36344 if err := googleapi.CheckResponse(res); err != nil {
36345 return nil, gensupport.WrapError(err)
36346 }
36347 ret := &GoogleCloudApigeeV1ListSecurityIncidentsResponse{
36348 ServerResponse: googleapi.ServerResponse{
36349 Header: res.Header,
36350 HTTPStatusCode: res.StatusCode,
36351 },
36352 }
36353 target := &ret
36354 if err := gensupport.DecodeResponse(target, res); err != nil {
36355 return nil, err
36356 }
36357 return ret, nil
36358 }
36359
36360
36361
36362
36363 func (c *OrganizationsEnvironmentsSecurityIncidentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityIncidentsResponse) error) error {
36364 c.ctx_ = ctx
36365 defer c.PageToken(c.urlParams_.Get("pageToken"))
36366 for {
36367 x, err := c.Do()
36368 if err != nil {
36369 return err
36370 }
36371 if err := f(x); err != nil {
36372 return err
36373 }
36374 if x.NextPageToken == "" {
36375 return nil
36376 }
36377 c.PageToken(x.NextPageToken)
36378 }
36379 }
36380
36381 type OrganizationsEnvironmentsSecurityIncidentsPatchCall struct {
36382 s *Service
36383 name string
36384 googlecloudapigeev1securityincident *GoogleCloudApigeeV1SecurityIncident
36385 urlParams_ gensupport.URLParams
36386 ctx_ context.Context
36387 header_ http.Header
36388 }
36389
36390
36391
36392
36393
36394
36395
36396
36397 func (r *OrganizationsEnvironmentsSecurityIncidentsService) Patch(name string, googlecloudapigeev1securityincident *GoogleCloudApigeeV1SecurityIncident) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
36398 c := &OrganizationsEnvironmentsSecurityIncidentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36399 c.name = name
36400 c.googlecloudapigeev1securityincident = googlecloudapigeev1securityincident
36401 return c
36402 }
36403
36404
36405
36406
36407
36408 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
36409 c.urlParams_.Set("updateMask", updateMask)
36410 return c
36411 }
36412
36413
36414
36415
36416 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
36417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36418 return c
36419 }
36420
36421
36422 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityIncidentsPatchCall {
36423 c.ctx_ = ctx
36424 return c
36425 }
36426
36427
36428
36429 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Header() http.Header {
36430 if c.header_ == nil {
36431 c.header_ = make(http.Header)
36432 }
36433 return c.header_
36434 }
36435
36436 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) doRequest(alt string) (*http.Response, error) {
36437 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36438 var body io.Reader = nil
36439 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityincident)
36440 if err != nil {
36441 return nil, err
36442 }
36443 c.urlParams_.Set("alt", alt)
36444 c.urlParams_.Set("prettyPrint", "false")
36445 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36446 urls += "?" + c.urlParams_.Encode()
36447 req, err := http.NewRequest("PATCH", urls, body)
36448 if err != nil {
36449 return nil, err
36450 }
36451 req.Header = reqHeaders
36452 googleapi.Expand(req.URL, map[string]string{
36453 "name": c.name,
36454 })
36455 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36456 }
36457
36458
36459
36460
36461
36462
36463
36464 func (c *OrganizationsEnvironmentsSecurityIncidentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityIncident, error) {
36465 gensupport.SetOptions(c.urlParams_, opts...)
36466 res, err := c.doRequest("json")
36467 if res != nil && res.StatusCode == http.StatusNotModified {
36468 if res.Body != nil {
36469 res.Body.Close()
36470 }
36471 return nil, gensupport.WrapError(&googleapi.Error{
36472 Code: res.StatusCode,
36473 Header: res.Header,
36474 })
36475 }
36476 if err != nil {
36477 return nil, err
36478 }
36479 defer googleapi.CloseBody(res)
36480 if err := googleapi.CheckResponse(res); err != nil {
36481 return nil, gensupport.WrapError(err)
36482 }
36483 ret := &GoogleCloudApigeeV1SecurityIncident{
36484 ServerResponse: googleapi.ServerResponse{
36485 Header: res.Header,
36486 HTTPStatusCode: res.StatusCode,
36487 },
36488 }
36489 target := &ret
36490 if err := gensupport.DecodeResponse(target, res); err != nil {
36491 return nil, err
36492 }
36493 return ret, nil
36494 }
36495
36496 type OrganizationsEnvironmentsSecurityReportsCreateCall struct {
36497 s *Service
36498 parent string
36499 googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery
36500 urlParams_ gensupport.URLParams
36501 ctx_ context.Context
36502 header_ http.Header
36503 }
36504
36505
36506
36507
36508
36509
36510
36511
36512 func (r *OrganizationsEnvironmentsSecurityReportsService) Create(parent string, googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery) *OrganizationsEnvironmentsSecurityReportsCreateCall {
36513 c := &OrganizationsEnvironmentsSecurityReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36514 c.parent = parent
36515 c.googlecloudapigeev1securityreportquery = googlecloudapigeev1securityreportquery
36516 return c
36517 }
36518
36519
36520
36521
36522 func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsCreateCall {
36523 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36524 return c
36525 }
36526
36527
36528 func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsCreateCall {
36529 c.ctx_ = ctx
36530 return c
36531 }
36532
36533
36534
36535 func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Header() http.Header {
36536 if c.header_ == nil {
36537 c.header_ = make(http.Header)
36538 }
36539 return c.header_
36540 }
36541
36542 func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) doRequest(alt string) (*http.Response, error) {
36543 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36544 var body io.Reader = nil
36545 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityreportquery)
36546 if err != nil {
36547 return nil, err
36548 }
36549 c.urlParams_.Set("alt", alt)
36550 c.urlParams_.Set("prettyPrint", "false")
36551 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityReports")
36552 urls += "?" + c.urlParams_.Encode()
36553 req, err := http.NewRequest("POST", urls, body)
36554 if err != nil {
36555 return nil, err
36556 }
36557 req.Header = reqHeaders
36558 googleapi.Expand(req.URL, map[string]string{
36559 "parent": c.parent,
36560 })
36561 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36562 }
36563
36564
36565
36566
36567
36568
36569
36570 func (c *OrganizationsEnvironmentsSecurityReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
36571 gensupport.SetOptions(c.urlParams_, opts...)
36572 res, err := c.doRequest("json")
36573 if res != nil && res.StatusCode == http.StatusNotModified {
36574 if res.Body != nil {
36575 res.Body.Close()
36576 }
36577 return nil, gensupport.WrapError(&googleapi.Error{
36578 Code: res.StatusCode,
36579 Header: res.Header,
36580 })
36581 }
36582 if err != nil {
36583 return nil, err
36584 }
36585 defer googleapi.CloseBody(res)
36586 if err := googleapi.CheckResponse(res); err != nil {
36587 return nil, gensupport.WrapError(err)
36588 }
36589 ret := &GoogleCloudApigeeV1SecurityReport{
36590 ServerResponse: googleapi.ServerResponse{
36591 Header: res.Header,
36592 HTTPStatusCode: res.StatusCode,
36593 },
36594 }
36595 target := &ret
36596 if err := gensupport.DecodeResponse(target, res); err != nil {
36597 return nil, err
36598 }
36599 return ret, nil
36600 }
36601
36602 type OrganizationsEnvironmentsSecurityReportsGetCall struct {
36603 s *Service
36604 name string
36605 urlParams_ gensupport.URLParams
36606 ifNoneMatch_ string
36607 ctx_ context.Context
36608 header_ http.Header
36609 }
36610
36611
36612
36613
36614
36615
36616
36617 func (r *OrganizationsEnvironmentsSecurityReportsService) Get(name string) *OrganizationsEnvironmentsSecurityReportsGetCall {
36618 c := &OrganizationsEnvironmentsSecurityReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36619 c.name = name
36620 return c
36621 }
36622
36623
36624
36625
36626 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetCall {
36627 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36628 return c
36629 }
36630
36631
36632
36633
36634 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetCall {
36635 c.ifNoneMatch_ = entityTag
36636 return c
36637 }
36638
36639
36640 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetCall {
36641 c.ctx_ = ctx
36642 return c
36643 }
36644
36645
36646
36647 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Header() http.Header {
36648 if c.header_ == nil {
36649 c.header_ = make(http.Header)
36650 }
36651 return c.header_
36652 }
36653
36654 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) doRequest(alt string) (*http.Response, error) {
36655 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36656 if c.ifNoneMatch_ != "" {
36657 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36658 }
36659 var body io.Reader = nil
36660 c.urlParams_.Set("alt", alt)
36661 c.urlParams_.Set("prettyPrint", "false")
36662 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36663 urls += "?" + c.urlParams_.Encode()
36664 req, err := http.NewRequest("GET", urls, body)
36665 if err != nil {
36666 return nil, err
36667 }
36668 req.Header = reqHeaders
36669 googleapi.Expand(req.URL, map[string]string{
36670 "name": c.name,
36671 })
36672 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36673 }
36674
36675
36676
36677
36678
36679
36680
36681 func (c *OrganizationsEnvironmentsSecurityReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
36682 gensupport.SetOptions(c.urlParams_, opts...)
36683 res, err := c.doRequest("json")
36684 if res != nil && res.StatusCode == http.StatusNotModified {
36685 if res.Body != nil {
36686 res.Body.Close()
36687 }
36688 return nil, gensupport.WrapError(&googleapi.Error{
36689 Code: res.StatusCode,
36690 Header: res.Header,
36691 })
36692 }
36693 if err != nil {
36694 return nil, err
36695 }
36696 defer googleapi.CloseBody(res)
36697 if err := googleapi.CheckResponse(res); err != nil {
36698 return nil, gensupport.WrapError(err)
36699 }
36700 ret := &GoogleCloudApigeeV1SecurityReport{
36701 ServerResponse: googleapi.ServerResponse{
36702 Header: res.Header,
36703 HTTPStatusCode: res.StatusCode,
36704 },
36705 }
36706 target := &ret
36707 if err := gensupport.DecodeResponse(target, res); err != nil {
36708 return nil, err
36709 }
36710 return ret, nil
36711 }
36712
36713 type OrganizationsEnvironmentsSecurityReportsGetResultCall struct {
36714 s *Service
36715 name string
36716 urlParams_ gensupport.URLParams
36717 ifNoneMatch_ string
36718 ctx_ context.Context
36719 header_ http.Header
36720 }
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730 func (r *OrganizationsEnvironmentsSecurityReportsService) GetResult(name string) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
36731 c := &OrganizationsEnvironmentsSecurityReportsGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36732 c.name = name
36733 return c
36734 }
36735
36736
36737
36738
36739 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
36740 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36741 return c
36742 }
36743
36744
36745
36746
36747 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
36748 c.ifNoneMatch_ = entityTag
36749 return c
36750 }
36751
36752
36753 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetResultCall {
36754 c.ctx_ = ctx
36755 return c
36756 }
36757
36758
36759
36760 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Header() http.Header {
36761 if c.header_ == nil {
36762 c.header_ = make(http.Header)
36763 }
36764 return c.header_
36765 }
36766
36767 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) doRequest(alt string) (*http.Response, error) {
36768 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36769 if c.ifNoneMatch_ != "" {
36770 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36771 }
36772 var body io.Reader = nil
36773 c.urlParams_.Set("alt", alt)
36774 c.urlParams_.Set("prettyPrint", "false")
36775 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36776 urls += "?" + c.urlParams_.Encode()
36777 req, err := http.NewRequest("GET", urls, body)
36778 if err != nil {
36779 return nil, err
36780 }
36781 req.Header = reqHeaders
36782 googleapi.Expand(req.URL, map[string]string{
36783 "name": c.name,
36784 })
36785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36786 }
36787
36788
36789
36790
36791
36792
36793
36794 func (c *OrganizationsEnvironmentsSecurityReportsGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
36795 gensupport.SetOptions(c.urlParams_, opts...)
36796 res, err := c.doRequest("json")
36797 if res != nil && res.StatusCode == http.StatusNotModified {
36798 if res.Body != nil {
36799 res.Body.Close()
36800 }
36801 return nil, gensupport.WrapError(&googleapi.Error{
36802 Code: res.StatusCode,
36803 Header: res.Header,
36804 })
36805 }
36806 if err != nil {
36807 return nil, err
36808 }
36809 defer googleapi.CloseBody(res)
36810 if err := googleapi.CheckResponse(res); err != nil {
36811 return nil, gensupport.WrapError(err)
36812 }
36813 ret := &GoogleApiHttpBody{
36814 ServerResponse: googleapi.ServerResponse{
36815 Header: res.Header,
36816 HTTPStatusCode: res.StatusCode,
36817 },
36818 }
36819 target := &ret
36820 if err := gensupport.DecodeResponse(target, res); err != nil {
36821 return nil, err
36822 }
36823 return ret, nil
36824 }
36825
36826 type OrganizationsEnvironmentsSecurityReportsGetResultViewCall struct {
36827 s *Service
36828 name string
36829 urlParams_ gensupport.URLParams
36830 ifNoneMatch_ string
36831 ctx_ context.Context
36832 header_ http.Header
36833 }
36834
36835
36836
36837
36838
36839
36840
36841 func (r *OrganizationsEnvironmentsSecurityReportsService) GetResultView(name string) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
36842 c := &OrganizationsEnvironmentsSecurityReportsGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36843 c.name = name
36844 return c
36845 }
36846
36847
36848
36849
36850 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
36851 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36852 return c
36853 }
36854
36855
36856
36857
36858 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
36859 c.ifNoneMatch_ = entityTag
36860 return c
36861 }
36862
36863
36864 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsGetResultViewCall {
36865 c.ctx_ = ctx
36866 return c
36867 }
36868
36869
36870
36871 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Header() http.Header {
36872 if c.header_ == nil {
36873 c.header_ = make(http.Header)
36874 }
36875 return c.header_
36876 }
36877
36878 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) doRequest(alt string) (*http.Response, error) {
36879 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36880 if c.ifNoneMatch_ != "" {
36881 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36882 }
36883 var body io.Reader = nil
36884 c.urlParams_.Set("alt", alt)
36885 c.urlParams_.Set("prettyPrint", "false")
36886 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
36887 urls += "?" + c.urlParams_.Encode()
36888 req, err := http.NewRequest("GET", urls, body)
36889 if err != nil {
36890 return nil, err
36891 }
36892 req.Header = reqHeaders
36893 googleapi.Expand(req.URL, map[string]string{
36894 "name": c.name,
36895 })
36896 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36897 }
36898
36899
36900
36901
36902
36903
36904
36905 func (c *OrganizationsEnvironmentsSecurityReportsGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReportResultView, error) {
36906 gensupport.SetOptions(c.urlParams_, opts...)
36907 res, err := c.doRequest("json")
36908 if res != nil && res.StatusCode == http.StatusNotModified {
36909 if res.Body != nil {
36910 res.Body.Close()
36911 }
36912 return nil, gensupport.WrapError(&googleapi.Error{
36913 Code: res.StatusCode,
36914 Header: res.Header,
36915 })
36916 }
36917 if err != nil {
36918 return nil, err
36919 }
36920 defer googleapi.CloseBody(res)
36921 if err := googleapi.CheckResponse(res); err != nil {
36922 return nil, gensupport.WrapError(err)
36923 }
36924 ret := &GoogleCloudApigeeV1SecurityReportResultView{
36925 ServerResponse: googleapi.ServerResponse{
36926 Header: res.Header,
36927 HTTPStatusCode: res.StatusCode,
36928 },
36929 }
36930 target := &ret
36931 if err := gensupport.DecodeResponse(target, res); err != nil {
36932 return nil, err
36933 }
36934 return ret, nil
36935 }
36936
36937 type OrganizationsEnvironmentsSecurityReportsListCall struct {
36938 s *Service
36939 parent string
36940 urlParams_ gensupport.URLParams
36941 ifNoneMatch_ string
36942 ctx_ context.Context
36943 header_ http.Header
36944 }
36945
36946
36947
36948
36949
36950 func (r *OrganizationsEnvironmentsSecurityReportsService) List(parent string) *OrganizationsEnvironmentsSecurityReportsListCall {
36951 c := &OrganizationsEnvironmentsSecurityReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36952 c.parent = parent
36953 return c
36954 }
36955
36956
36957
36958 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Dataset(dataset string) *OrganizationsEnvironmentsSecurityReportsListCall {
36959 c.urlParams_.Set("dataset", dataset)
36960 return c
36961 }
36962
36963
36964
36965
36966 func (c *OrganizationsEnvironmentsSecurityReportsListCall) From(from string) *OrganizationsEnvironmentsSecurityReportsListCall {
36967 c.urlParams_.Set("from", from)
36968 return c
36969 }
36970
36971
36972
36973 func (c *OrganizationsEnvironmentsSecurityReportsListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsSecurityReportsListCall {
36974 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36975 return c
36976 }
36977
36978
36979
36980 func (c *OrganizationsEnvironmentsSecurityReportsListCall) PageToken(pageToken string) *OrganizationsEnvironmentsSecurityReportsListCall {
36981 c.urlParams_.Set("pageToken", pageToken)
36982 return c
36983 }
36984
36985
36986
36987 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Status(status string) *OrganizationsEnvironmentsSecurityReportsListCall {
36988 c.urlParams_.Set("status", status)
36989 return c
36990 }
36991
36992
36993
36994 func (c *OrganizationsEnvironmentsSecurityReportsListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsSecurityReportsListCall {
36995 c.urlParams_.Set("submittedBy", submittedBy)
36996 return c
36997 }
36998
36999
37000
37001
37002 func (c *OrganizationsEnvironmentsSecurityReportsListCall) To(to string) *OrganizationsEnvironmentsSecurityReportsListCall {
37003 c.urlParams_.Set("to", to)
37004 return c
37005 }
37006
37007
37008
37009
37010 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityReportsListCall {
37011 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37012 return c
37013 }
37014
37015
37016
37017
37018 func (c *OrganizationsEnvironmentsSecurityReportsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSecurityReportsListCall {
37019 c.ifNoneMatch_ = entityTag
37020 return c
37021 }
37022
37023
37024 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityReportsListCall {
37025 c.ctx_ = ctx
37026 return c
37027 }
37028
37029
37030
37031 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Header() http.Header {
37032 if c.header_ == nil {
37033 c.header_ = make(http.Header)
37034 }
37035 return c.header_
37036 }
37037
37038 func (c *OrganizationsEnvironmentsSecurityReportsListCall) doRequest(alt string) (*http.Response, error) {
37039 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37040 if c.ifNoneMatch_ != "" {
37041 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37042 }
37043 var body io.Reader = nil
37044 c.urlParams_.Set("alt", alt)
37045 c.urlParams_.Set("prettyPrint", "false")
37046 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityReports")
37047 urls += "?" + c.urlParams_.Encode()
37048 req, err := http.NewRequest("GET", urls, body)
37049 if err != nil {
37050 return nil, err
37051 }
37052 req.Header = reqHeaders
37053 googleapi.Expand(req.URL, map[string]string{
37054 "parent": c.parent,
37055 })
37056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37057 }
37058
37059
37060
37061
37062
37063
37064
37065 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityReportsResponse, error) {
37066 gensupport.SetOptions(c.urlParams_, opts...)
37067 res, err := c.doRequest("json")
37068 if res != nil && res.StatusCode == http.StatusNotModified {
37069 if res.Body != nil {
37070 res.Body.Close()
37071 }
37072 return nil, gensupport.WrapError(&googleapi.Error{
37073 Code: res.StatusCode,
37074 Header: res.Header,
37075 })
37076 }
37077 if err != nil {
37078 return nil, err
37079 }
37080 defer googleapi.CloseBody(res)
37081 if err := googleapi.CheckResponse(res); err != nil {
37082 return nil, gensupport.WrapError(err)
37083 }
37084 ret := &GoogleCloudApigeeV1ListSecurityReportsResponse{
37085 ServerResponse: googleapi.ServerResponse{
37086 Header: res.Header,
37087 HTTPStatusCode: res.StatusCode,
37088 },
37089 }
37090 target := &ret
37091 if err := gensupport.DecodeResponse(target, res); err != nil {
37092 return nil, err
37093 }
37094 return ret, nil
37095 }
37096
37097
37098
37099
37100 func (c *OrganizationsEnvironmentsSecurityReportsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityReportsResponse) error) error {
37101 c.ctx_ = ctx
37102 defer c.PageToken(c.urlParams_.Get("pageToken"))
37103 for {
37104 x, err := c.Do()
37105 if err != nil {
37106 return err
37107 }
37108 if err := f(x); err != nil {
37109 return err
37110 }
37111 if x.NextPageToken == "" {
37112 return nil
37113 }
37114 c.PageToken(x.NextPageToken)
37115 }
37116 }
37117
37118 type OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall struct {
37119 s *Service
37120 orgenv string
37121 googlecloudapigeev1querytabularstatsrequest *GoogleCloudApigeeV1QueryTabularStatsRequest
37122 urlParams_ gensupport.URLParams
37123 ctx_ context.Context
37124 header_ http.Header
37125 }
37126
37127
37128
37129
37130 func (r *OrganizationsEnvironmentsSecurityStatsService) QueryTabularStats(orgenv string, googlecloudapigeev1querytabularstatsrequest *GoogleCloudApigeeV1QueryTabularStatsRequest) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
37131 c := &OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37132 c.orgenv = orgenv
37133 c.googlecloudapigeev1querytabularstatsrequest = googlecloudapigeev1querytabularstatsrequest
37134 return c
37135 }
37136
37137
37138
37139
37140 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
37141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37142 return c
37143 }
37144
37145
37146 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall {
37147 c.ctx_ = ctx
37148 return c
37149 }
37150
37151
37152
37153 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Header() http.Header {
37154 if c.header_ == nil {
37155 c.header_ = make(http.Header)
37156 }
37157 return c.header_
37158 }
37159
37160 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) doRequest(alt string) (*http.Response, error) {
37161 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37162 var body io.Reader = nil
37163 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1querytabularstatsrequest)
37164 if err != nil {
37165 return nil, err
37166 }
37167 c.urlParams_.Set("alt", alt)
37168 c.urlParams_.Set("prettyPrint", "false")
37169 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+orgenv}/securityStats:queryTabularStats")
37170 urls += "?" + c.urlParams_.Encode()
37171 req, err := http.NewRequest("POST", urls, body)
37172 if err != nil {
37173 return nil, err
37174 }
37175 req.Header = reqHeaders
37176 googleapi.Expand(req.URL, map[string]string{
37177 "orgenv": c.orgenv,
37178 })
37179 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37180 }
37181
37182
37183
37184
37185
37186
37187
37188 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1QueryTabularStatsResponse, error) {
37189 gensupport.SetOptions(c.urlParams_, opts...)
37190 res, err := c.doRequest("json")
37191 if res != nil && res.StatusCode == http.StatusNotModified {
37192 if res.Body != nil {
37193 res.Body.Close()
37194 }
37195 return nil, gensupport.WrapError(&googleapi.Error{
37196 Code: res.StatusCode,
37197 Header: res.Header,
37198 })
37199 }
37200 if err != nil {
37201 return nil, err
37202 }
37203 defer googleapi.CloseBody(res)
37204 if err := googleapi.CheckResponse(res); err != nil {
37205 return nil, gensupport.WrapError(err)
37206 }
37207 ret := &GoogleCloudApigeeV1QueryTabularStatsResponse{
37208 ServerResponse: googleapi.ServerResponse{
37209 Header: res.Header,
37210 HTTPStatusCode: res.StatusCode,
37211 },
37212 }
37213 target := &ret
37214 if err := gensupport.DecodeResponse(target, res); err != nil {
37215 return nil, err
37216 }
37217 return ret, nil
37218 }
37219
37220
37221
37222
37223 func (c *OrganizationsEnvironmentsSecurityStatsQueryTabularStatsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1QueryTabularStatsResponse) error) error {
37224 c.ctx_ = ctx
37225 defer func(pt string) { c.googlecloudapigeev1querytabularstatsrequest.PageToken = pt }(c.googlecloudapigeev1querytabularstatsrequest.PageToken)
37226 for {
37227 x, err := c.Do()
37228 if err != nil {
37229 return err
37230 }
37231 if err := f(x); err != nil {
37232 return err
37233 }
37234 if x.NextPageToken == "" {
37235 return nil
37236 }
37237 c.googlecloudapigeev1querytabularstatsrequest.PageToken = x.NextPageToken
37238 }
37239 }
37240
37241 type OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall struct {
37242 s *Service
37243 orgenv string
37244 googlecloudapigeev1querytimeseriesstatsrequest *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest
37245 urlParams_ gensupport.URLParams
37246 ctx_ context.Context
37247 header_ http.Header
37248 }
37249
37250
37251
37252
37253
37254 func (r *OrganizationsEnvironmentsSecurityStatsService) QueryTimeSeriesStats(orgenv string, googlecloudapigeev1querytimeseriesstatsrequest *GoogleCloudApigeeV1QueryTimeSeriesStatsRequest) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
37255 c := &OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37256 c.orgenv = orgenv
37257 c.googlecloudapigeev1querytimeseriesstatsrequest = googlecloudapigeev1querytimeseriesstatsrequest
37258 return c
37259 }
37260
37261
37262
37263
37264 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
37265 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37266 return c
37267 }
37268
37269
37270 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall {
37271 c.ctx_ = ctx
37272 return c
37273 }
37274
37275
37276
37277 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Header() http.Header {
37278 if c.header_ == nil {
37279 c.header_ = make(http.Header)
37280 }
37281 return c.header_
37282 }
37283
37284 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) doRequest(alt string) (*http.Response, error) {
37285 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37286 var body io.Reader = nil
37287 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1querytimeseriesstatsrequest)
37288 if err != nil {
37289 return nil, err
37290 }
37291 c.urlParams_.Set("alt", alt)
37292 c.urlParams_.Set("prettyPrint", "false")
37293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+orgenv}/securityStats:queryTimeSeriesStats")
37294 urls += "?" + c.urlParams_.Encode()
37295 req, err := http.NewRequest("POST", urls, body)
37296 if err != nil {
37297 return nil, err
37298 }
37299 req.Header = reqHeaders
37300 googleapi.Expand(req.URL, map[string]string{
37301 "orgenv": c.orgenv,
37302 })
37303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37304 }
37305
37306
37307
37308
37309
37310
37311
37312 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1QueryTimeSeriesStatsResponse, error) {
37313 gensupport.SetOptions(c.urlParams_, opts...)
37314 res, err := c.doRequest("json")
37315 if res != nil && res.StatusCode == http.StatusNotModified {
37316 if res.Body != nil {
37317 res.Body.Close()
37318 }
37319 return nil, gensupport.WrapError(&googleapi.Error{
37320 Code: res.StatusCode,
37321 Header: res.Header,
37322 })
37323 }
37324 if err != nil {
37325 return nil, err
37326 }
37327 defer googleapi.CloseBody(res)
37328 if err := googleapi.CheckResponse(res); err != nil {
37329 return nil, gensupport.WrapError(err)
37330 }
37331 ret := &GoogleCloudApigeeV1QueryTimeSeriesStatsResponse{
37332 ServerResponse: googleapi.ServerResponse{
37333 Header: res.Header,
37334 HTTPStatusCode: res.StatusCode,
37335 },
37336 }
37337 target := &ret
37338 if err := gensupport.DecodeResponse(target, res); err != nil {
37339 return nil, err
37340 }
37341 return ret, nil
37342 }
37343
37344
37345
37346
37347 func (c *OrganizationsEnvironmentsSecurityStatsQueryTimeSeriesStatsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1QueryTimeSeriesStatsResponse) error) error {
37348 c.ctx_ = ctx
37349 defer func(pt string) { c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken = pt }(c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken)
37350 for {
37351 x, err := c.Do()
37352 if err != nil {
37353 return err
37354 }
37355 if err := f(x); err != nil {
37356 return err
37357 }
37358 if x.NextPageToken == "" {
37359 return nil
37360 }
37361 c.googlecloudapigeev1querytimeseriesstatsrequest.PageToken = x.NextPageToken
37362 }
37363 }
37364
37365 type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
37366 s *Service
37367 parent string
37368 urlParams_ gensupport.URLParams
37369 ifNoneMatch_ string
37370 ctx_ context.Context
37371 header_ http.Header
37372 }
37373
37374
37375
37376
37377
37378 func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
37379 c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37380 c.parent = parent
37381 return c
37382 }
37383
37384
37385
37386
37387 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
37388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37389 return c
37390 }
37391
37392
37393
37394
37395 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
37396 c.ifNoneMatch_ = entityTag
37397 return c
37398 }
37399
37400
37401 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
37402 c.ctx_ = ctx
37403 return c
37404 }
37405
37406
37407
37408 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
37409 if c.header_ == nil {
37410 c.header_ = make(http.Header)
37411 }
37412 return c.header_
37413 }
37414
37415 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
37416 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37417 if c.ifNoneMatch_ != "" {
37418 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37419 }
37420 var body io.Reader = nil
37421 c.urlParams_.Set("alt", alt)
37422 c.urlParams_.Set("prettyPrint", "false")
37423 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
37424 urls += "?" + c.urlParams_.Encode()
37425 req, err := http.NewRequest("GET", urls, body)
37426 if err != nil {
37427 return nil, err
37428 }
37429 req.Header = reqHeaders
37430 googleapi.Expand(req.URL, map[string]string{
37431 "parent": c.parent,
37432 })
37433 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37434 }
37435
37436
37437
37438
37439
37440
37441
37442 func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
37443 gensupport.SetOptions(c.urlParams_, opts...)
37444 res, err := c.doRequest("json")
37445 if res != nil && res.StatusCode == http.StatusNotModified {
37446 if res.Body != nil {
37447 res.Body.Close()
37448 }
37449 return nil, gensupport.WrapError(&googleapi.Error{
37450 Code: res.StatusCode,
37451 Header: res.Header,
37452 })
37453 }
37454 if err != nil {
37455 return nil, err
37456 }
37457 defer googleapi.CloseBody(res)
37458 if err := googleapi.CheckResponse(res); err != nil {
37459 return nil, gensupport.WrapError(err)
37460 }
37461 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
37462 ServerResponse: googleapi.ServerResponse{
37463 Header: res.Header,
37464 HTTPStatusCode: res.StatusCode,
37465 },
37466 }
37467 target := &ret
37468 if err := gensupport.DecodeResponse(target, res); err != nil {
37469 return nil, err
37470 }
37471 return ret, nil
37472 }
37473
37474 type OrganizationsEnvironmentsSharedflowsRevisionsDeployCall struct {
37475 s *Service
37476 name string
37477 urlParams_ gensupport.URLParams
37478 ctx_ context.Context
37479 header_ http.Header
37480 }
37481
37482
37483
37484
37485
37486
37487
37488
37489
37490
37491
37492
37493
37494
37495 func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
37496 c := &OrganizationsEnvironmentsSharedflowsRevisionsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37497 c.name = name
37498 return c
37499 }
37500
37501
37502
37503
37504
37505
37506 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Override(override bool) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
37507 c.urlParams_.Set("override", fmt.Sprint(override))
37508 return c
37509 }
37510
37511
37512
37513
37514
37515 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) ServiceAccount(serviceAccount string) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
37516 c.urlParams_.Set("serviceAccount", serviceAccount)
37517 return c
37518 }
37519
37520
37521
37522
37523 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
37524 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37525 return c
37526 }
37527
37528
37529 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall {
37530 c.ctx_ = ctx
37531 return c
37532 }
37533
37534
37535
37536 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Header() http.Header {
37537 if c.header_ == nil {
37538 c.header_ = make(http.Header)
37539 }
37540 return c.header_
37541 }
37542
37543 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) doRequest(alt string) (*http.Response, error) {
37544 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37545 var body io.Reader = nil
37546 c.urlParams_.Set("alt", alt)
37547 c.urlParams_.Set("prettyPrint", "false")
37548 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
37549 urls += "?" + c.urlParams_.Encode()
37550 req, err := http.NewRequest("POST", urls, body)
37551 if err != nil {
37552 return nil, err
37553 }
37554 req.Header = reqHeaders
37555 googleapi.Expand(req.URL, map[string]string{
37556 "name": c.name,
37557 })
37558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37559 }
37560
37561
37562
37563
37564
37565
37566
37567 func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
37568 gensupport.SetOptions(c.urlParams_, opts...)
37569 res, err := c.doRequest("json")
37570 if res != nil && res.StatusCode == http.StatusNotModified {
37571 if res.Body != nil {
37572 res.Body.Close()
37573 }
37574 return nil, gensupport.WrapError(&googleapi.Error{
37575 Code: res.StatusCode,
37576 Header: res.Header,
37577 })
37578 }
37579 if err != nil {
37580 return nil, err
37581 }
37582 defer googleapi.CloseBody(res)
37583 if err := googleapi.CheckResponse(res); err != nil {
37584 return nil, gensupport.WrapError(err)
37585 }
37586 ret := &GoogleCloudApigeeV1Deployment{
37587 ServerResponse: googleapi.ServerResponse{
37588 Header: res.Header,
37589 HTTPStatusCode: res.StatusCode,
37590 },
37591 }
37592 target := &ret
37593 if err := gensupport.DecodeResponse(target, res); err != nil {
37594 return nil, err
37595 }
37596 return ret, nil
37597 }
37598
37599 type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
37600 s *Service
37601 name string
37602 urlParams_ gensupport.URLParams
37603 ifNoneMatch_ string
37604 ctx_ context.Context
37605 header_ http.Header
37606 }
37607
37608
37609
37610
37611
37612
37613
37614
37615 func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
37616 c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37617 c.name = name
37618 return c
37619 }
37620
37621
37622
37623
37624 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
37625 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37626 return c
37627 }
37628
37629
37630
37631
37632 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
37633 c.ifNoneMatch_ = entityTag
37634 return c
37635 }
37636
37637
37638 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
37639 c.ctx_ = ctx
37640 return c
37641 }
37642
37643
37644
37645 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
37646 if c.header_ == nil {
37647 c.header_ = make(http.Header)
37648 }
37649 return c.header_
37650 }
37651
37652 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
37653 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37654 if c.ifNoneMatch_ != "" {
37655 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37656 }
37657 var body io.Reader = nil
37658 c.urlParams_.Set("alt", alt)
37659 c.urlParams_.Set("prettyPrint", "false")
37660 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
37661 urls += "?" + c.urlParams_.Encode()
37662 req, err := http.NewRequest("GET", urls, body)
37663 if err != nil {
37664 return nil, err
37665 }
37666 req.Header = reqHeaders
37667 googleapi.Expand(req.URL, map[string]string{
37668 "name": c.name,
37669 })
37670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37671 }
37672
37673
37674
37675
37676
37677
37678
37679 func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
37680 gensupport.SetOptions(c.urlParams_, opts...)
37681 res, err := c.doRequest("json")
37682 if res != nil && res.StatusCode == http.StatusNotModified {
37683 if res.Body != nil {
37684 res.Body.Close()
37685 }
37686 return nil, gensupport.WrapError(&googleapi.Error{
37687 Code: res.StatusCode,
37688 Header: res.Header,
37689 })
37690 }
37691 if err != nil {
37692 return nil, err
37693 }
37694 defer googleapi.CloseBody(res)
37695 if err := googleapi.CheckResponse(res); err != nil {
37696 return nil, gensupport.WrapError(err)
37697 }
37698 ret := &GoogleCloudApigeeV1Deployment{
37699 ServerResponse: googleapi.ServerResponse{
37700 Header: res.Header,
37701 HTTPStatusCode: res.StatusCode,
37702 },
37703 }
37704 target := &ret
37705 if err := gensupport.DecodeResponse(target, res); err != nil {
37706 return nil, err
37707 }
37708 return ret, nil
37709 }
37710
37711 type OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall struct {
37712 s *Service
37713 name string
37714 urlParams_ gensupport.URLParams
37715 ctx_ context.Context
37716 header_ http.Header
37717 }
37718
37719
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729
37730
37731 func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Undeploy(name string) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
37732 c := &OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37733 c.name = name
37734 return c
37735 }
37736
37737
37738
37739
37740 func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
37741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37742 return c
37743 }
37744
37745
37746 func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall {
37747 c.ctx_ = ctx
37748 return c
37749 }
37750
37751
37752
37753 func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Header() http.Header {
37754 if c.header_ == nil {
37755 c.header_ = make(http.Header)
37756 }
37757 return c.header_
37758 }
37759
37760 func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) doRequest(alt string) (*http.Response, error) {
37761 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37762 var body io.Reader = nil
37763 c.urlParams_.Set("alt", alt)
37764 c.urlParams_.Set("prettyPrint", "false")
37765 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
37766 urls += "?" + c.urlParams_.Encode()
37767 req, err := http.NewRequest("DELETE", urls, body)
37768 if err != nil {
37769 return nil, err
37770 }
37771 req.Header = reqHeaders
37772 googleapi.Expand(req.URL, map[string]string{
37773 "name": c.name,
37774 })
37775 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37776 }
37777
37778
37779
37780
37781
37782
37783
37784 func (c *OrganizationsEnvironmentsSharedflowsRevisionsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37785 gensupport.SetOptions(c.urlParams_, opts...)
37786 res, err := c.doRequest("json")
37787 if res != nil && res.StatusCode == http.StatusNotModified {
37788 if res.Body != nil {
37789 res.Body.Close()
37790 }
37791 return nil, gensupport.WrapError(&googleapi.Error{
37792 Code: res.StatusCode,
37793 Header: res.Header,
37794 })
37795 }
37796 if err != nil {
37797 return nil, err
37798 }
37799 defer googleapi.CloseBody(res)
37800 if err := googleapi.CheckResponse(res); err != nil {
37801 return nil, gensupport.WrapError(err)
37802 }
37803 ret := &GoogleProtobufEmpty{
37804 ServerResponse: googleapi.ServerResponse{
37805 Header: res.Header,
37806 HTTPStatusCode: res.StatusCode,
37807 },
37808 }
37809 target := &ret
37810 if err := gensupport.DecodeResponse(target, res); err != nil {
37811 return nil, err
37812 }
37813 return ret, nil
37814 }
37815
37816 type OrganizationsEnvironmentsStatsGetCall struct {
37817 s *Service
37818 name string
37819 urlParams_ gensupport.URLParams
37820 ifNoneMatch_ string
37821 ctx_ context.Context
37822 header_ http.Header
37823 }
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839 func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
37840 c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37841 c.name = name
37842 return c
37843 }
37844
37845
37846
37847 func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
37848 c.urlParams_.Set("accuracy", accuracy)
37849 return c
37850 }
37851
37852
37853
37854
37855 func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
37856 c.urlParams_.Set("aggTable", aggTable)
37857 return c
37858 }
37859
37860
37861
37862 func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
37863 c.urlParams_.Set("filter", filter)
37864 return c
37865 }
37866
37867
37868
37869 func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
37870 c.urlParams_.Set("limit", limit)
37871 return c
37872 }
37873
37874
37875
37876
37877 func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
37878 c.urlParams_.Set("offset", offset)
37879 return c
37880 }
37881
37882
37883
37884 func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
37885 c.urlParams_.Set("realtime", fmt.Sprint(realtime))
37886 return c
37887 }
37888
37889
37890
37891 func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
37892 c.urlParams_.Set("select", select_)
37893 return c
37894 }
37895
37896
37897
37898 func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
37899 c.urlParams_.Set("sonar", fmt.Sprint(sonar))
37900 return c
37901 }
37902
37903
37904
37905
37906 func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
37907 c.urlParams_.Set("sort", sort)
37908 return c
37909 }
37910
37911
37912
37913 func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
37914 c.urlParams_.Set("sortby", sortby)
37915 return c
37916 }
37917
37918
37919
37920
37921 func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
37922 c.urlParams_.Set("timeRange", timeRange)
37923 return c
37924 }
37925
37926
37927
37928
37929 func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
37930 c.urlParams_.Set("timeUnit", timeUnit)
37931 return c
37932 }
37933
37934
37935
37936 func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
37937 c.urlParams_.Set("topk", topk)
37938 return c
37939 }
37940
37941
37942
37943
37944
37945 func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
37946 c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
37947 return c
37948 }
37949
37950
37951 func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
37952 c.urlParams_.Set("tzo", tzo)
37953 return c
37954 }
37955
37956
37957
37958
37959 func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
37960 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37961 return c
37962 }
37963
37964
37965
37966
37967 func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
37968 c.ifNoneMatch_ = entityTag
37969 return c
37970 }
37971
37972
37973 func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
37974 c.ctx_ = ctx
37975 return c
37976 }
37977
37978
37979
37980 func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
37981 if c.header_ == nil {
37982 c.header_ = make(http.Header)
37983 }
37984 return c.header_
37985 }
37986
37987 func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
37988 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37989 if c.ifNoneMatch_ != "" {
37990 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37991 }
37992 var body io.Reader = nil
37993 c.urlParams_.Set("alt", alt)
37994 c.urlParams_.Set("prettyPrint", "false")
37995 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
37996 urls += "?" + c.urlParams_.Encode()
37997 req, err := http.NewRequest("GET", urls, body)
37998 if err != nil {
37999 return nil, err
38000 }
38001 req.Header = reqHeaders
38002 googleapi.Expand(req.URL, map[string]string{
38003 "name": c.name,
38004 })
38005 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38006 }
38007
38008
38009
38010
38011
38012
38013
38014 func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
38015 gensupport.SetOptions(c.urlParams_, opts...)
38016 res, err := c.doRequest("json")
38017 if res != nil && res.StatusCode == http.StatusNotModified {
38018 if res.Body != nil {
38019 res.Body.Close()
38020 }
38021 return nil, gensupport.WrapError(&googleapi.Error{
38022 Code: res.StatusCode,
38023 Header: res.Header,
38024 })
38025 }
38026 if err != nil {
38027 return nil, err
38028 }
38029 defer googleapi.CloseBody(res)
38030 if err := googleapi.CheckResponse(res); err != nil {
38031 return nil, gensupport.WrapError(err)
38032 }
38033 ret := &GoogleCloudApigeeV1Stats{
38034 ServerResponse: googleapi.ServerResponse{
38035 Header: res.Header,
38036 HTTPStatusCode: res.StatusCode,
38037 },
38038 }
38039 target := &ret
38040 if err := gensupport.DecodeResponse(target, res); err != nil {
38041 return nil, err
38042 }
38043 return ret, nil
38044 }
38045
38046 type OrganizationsEnvironmentsTargetserversCreateCall struct {
38047 s *Service
38048 parent string
38049 googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
38050 urlParams_ gensupport.URLParams
38051 ctx_ context.Context
38052 header_ http.Header
38053 }
38054
38055
38056
38057
38058
38059 func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
38060 c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38061 c.parent = parent
38062 c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
38063 return c
38064 }
38065
38066
38067
38068 func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
38069 c.urlParams_.Set("name", name)
38070 return c
38071 }
38072
38073
38074
38075
38076 func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
38077 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38078 return c
38079 }
38080
38081
38082 func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
38083 c.ctx_ = ctx
38084 return c
38085 }
38086
38087
38088
38089 func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
38090 if c.header_ == nil {
38091 c.header_ = make(http.Header)
38092 }
38093 return c.header_
38094 }
38095
38096 func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
38097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38098 var body io.Reader = nil
38099 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
38100 if err != nil {
38101 return nil, err
38102 }
38103 c.urlParams_.Set("alt", alt)
38104 c.urlParams_.Set("prettyPrint", "false")
38105 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
38106 urls += "?" + c.urlParams_.Encode()
38107 req, err := http.NewRequest("POST", urls, body)
38108 if err != nil {
38109 return nil, err
38110 }
38111 req.Header = reqHeaders
38112 googleapi.Expand(req.URL, map[string]string{
38113 "parent": c.parent,
38114 })
38115 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38116 }
38117
38118
38119
38120
38121
38122
38123
38124 func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
38125 gensupport.SetOptions(c.urlParams_, opts...)
38126 res, err := c.doRequest("json")
38127 if res != nil && res.StatusCode == http.StatusNotModified {
38128 if res.Body != nil {
38129 res.Body.Close()
38130 }
38131 return nil, gensupport.WrapError(&googleapi.Error{
38132 Code: res.StatusCode,
38133 Header: res.Header,
38134 })
38135 }
38136 if err != nil {
38137 return nil, err
38138 }
38139 defer googleapi.CloseBody(res)
38140 if err := googleapi.CheckResponse(res); err != nil {
38141 return nil, gensupport.WrapError(err)
38142 }
38143 ret := &GoogleCloudApigeeV1TargetServer{
38144 ServerResponse: googleapi.ServerResponse{
38145 Header: res.Header,
38146 HTTPStatusCode: res.StatusCode,
38147 },
38148 }
38149 target := &ret
38150 if err := gensupport.DecodeResponse(target, res); err != nil {
38151 return nil, err
38152 }
38153 return ret, nil
38154 }
38155
38156 type OrganizationsEnvironmentsTargetserversDeleteCall struct {
38157 s *Service
38158 name string
38159 urlParams_ gensupport.URLParams
38160 ctx_ context.Context
38161 header_ http.Header
38162 }
38163
38164
38165
38166
38167
38168
38169 func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
38170 c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38171 c.name = name
38172 return c
38173 }
38174
38175
38176
38177
38178 func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
38179 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38180 return c
38181 }
38182
38183
38184 func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
38185 c.ctx_ = ctx
38186 return c
38187 }
38188
38189
38190
38191 func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
38192 if c.header_ == nil {
38193 c.header_ = make(http.Header)
38194 }
38195 return c.header_
38196 }
38197
38198 func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
38199 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38200 var body io.Reader = nil
38201 c.urlParams_.Set("alt", alt)
38202 c.urlParams_.Set("prettyPrint", "false")
38203 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38204 urls += "?" + c.urlParams_.Encode()
38205 req, err := http.NewRequest("DELETE", urls, body)
38206 if err != nil {
38207 return nil, err
38208 }
38209 req.Header = reqHeaders
38210 googleapi.Expand(req.URL, map[string]string{
38211 "name": c.name,
38212 })
38213 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38214 }
38215
38216
38217
38218
38219
38220
38221
38222 func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
38223 gensupport.SetOptions(c.urlParams_, opts...)
38224 res, err := c.doRequest("json")
38225 if res != nil && res.StatusCode == http.StatusNotModified {
38226 if res.Body != nil {
38227 res.Body.Close()
38228 }
38229 return nil, gensupport.WrapError(&googleapi.Error{
38230 Code: res.StatusCode,
38231 Header: res.Header,
38232 })
38233 }
38234 if err != nil {
38235 return nil, err
38236 }
38237 defer googleapi.CloseBody(res)
38238 if err := googleapi.CheckResponse(res); err != nil {
38239 return nil, gensupport.WrapError(err)
38240 }
38241 ret := &GoogleCloudApigeeV1TargetServer{
38242 ServerResponse: googleapi.ServerResponse{
38243 Header: res.Header,
38244 HTTPStatusCode: res.StatusCode,
38245 },
38246 }
38247 target := &ret
38248 if err := gensupport.DecodeResponse(target, res); err != nil {
38249 return nil, err
38250 }
38251 return ret, nil
38252 }
38253
38254 type OrganizationsEnvironmentsTargetserversGetCall struct {
38255 s *Service
38256 name string
38257 urlParams_ gensupport.URLParams
38258 ifNoneMatch_ string
38259 ctx_ context.Context
38260 header_ http.Header
38261 }
38262
38263
38264
38265
38266
38267 func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
38268 c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38269 c.name = name
38270 return c
38271 }
38272
38273
38274
38275
38276 func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
38277 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38278 return c
38279 }
38280
38281
38282
38283
38284 func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
38285 c.ifNoneMatch_ = entityTag
38286 return c
38287 }
38288
38289
38290 func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
38291 c.ctx_ = ctx
38292 return c
38293 }
38294
38295
38296
38297 func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
38298 if c.header_ == nil {
38299 c.header_ = make(http.Header)
38300 }
38301 return c.header_
38302 }
38303
38304 func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
38305 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38306 if c.ifNoneMatch_ != "" {
38307 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38308 }
38309 var body io.Reader = nil
38310 c.urlParams_.Set("alt", alt)
38311 c.urlParams_.Set("prettyPrint", "false")
38312 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38313 urls += "?" + c.urlParams_.Encode()
38314 req, err := http.NewRequest("GET", urls, body)
38315 if err != nil {
38316 return nil, err
38317 }
38318 req.Header = reqHeaders
38319 googleapi.Expand(req.URL, map[string]string{
38320 "name": c.name,
38321 })
38322 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38323 }
38324
38325
38326
38327
38328
38329
38330
38331 func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
38332 gensupport.SetOptions(c.urlParams_, opts...)
38333 res, err := c.doRequest("json")
38334 if res != nil && res.StatusCode == http.StatusNotModified {
38335 if res.Body != nil {
38336 res.Body.Close()
38337 }
38338 return nil, gensupport.WrapError(&googleapi.Error{
38339 Code: res.StatusCode,
38340 Header: res.Header,
38341 })
38342 }
38343 if err != nil {
38344 return nil, err
38345 }
38346 defer googleapi.CloseBody(res)
38347 if err := googleapi.CheckResponse(res); err != nil {
38348 return nil, gensupport.WrapError(err)
38349 }
38350 ret := &GoogleCloudApigeeV1TargetServer{
38351 ServerResponse: googleapi.ServerResponse{
38352 Header: res.Header,
38353 HTTPStatusCode: res.StatusCode,
38354 },
38355 }
38356 target := &ret
38357 if err := gensupport.DecodeResponse(target, res); err != nil {
38358 return nil, err
38359 }
38360 return ret, nil
38361 }
38362
38363 type OrganizationsEnvironmentsTargetserversUpdateCall struct {
38364 s *Service
38365 name string
38366 googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
38367 urlParams_ gensupport.URLParams
38368 ctx_ context.Context
38369 header_ http.Header
38370 }
38371
38372
38373
38374
38375
38376
38377
38378 func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
38379 c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38380 c.name = name
38381 c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
38382 return c
38383 }
38384
38385
38386
38387
38388 func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
38389 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38390 return c
38391 }
38392
38393
38394 func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
38395 c.ctx_ = ctx
38396 return c
38397 }
38398
38399
38400
38401 func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
38402 if c.header_ == nil {
38403 c.header_ = make(http.Header)
38404 }
38405 return c.header_
38406 }
38407
38408 func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
38409 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38410 var body io.Reader = nil
38411 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
38412 if err != nil {
38413 return nil, err
38414 }
38415 c.urlParams_.Set("alt", alt)
38416 c.urlParams_.Set("prettyPrint", "false")
38417 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38418 urls += "?" + c.urlParams_.Encode()
38419 req, err := http.NewRequest("PUT", urls, body)
38420 if err != nil {
38421 return nil, err
38422 }
38423 req.Header = reqHeaders
38424 googleapi.Expand(req.URL, map[string]string{
38425 "name": c.name,
38426 })
38427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38428 }
38429
38430
38431
38432
38433
38434
38435
38436 func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
38437 gensupport.SetOptions(c.urlParams_, opts...)
38438 res, err := c.doRequest("json")
38439 if res != nil && res.StatusCode == http.StatusNotModified {
38440 if res.Body != nil {
38441 res.Body.Close()
38442 }
38443 return nil, gensupport.WrapError(&googleapi.Error{
38444 Code: res.StatusCode,
38445 Header: res.Header,
38446 })
38447 }
38448 if err != nil {
38449 return nil, err
38450 }
38451 defer googleapi.CloseBody(res)
38452 if err := googleapi.CheckResponse(res); err != nil {
38453 return nil, gensupport.WrapError(err)
38454 }
38455 ret := &GoogleCloudApigeeV1TargetServer{
38456 ServerResponse: googleapi.ServerResponse{
38457 Header: res.Header,
38458 HTTPStatusCode: res.StatusCode,
38459 },
38460 }
38461 target := &ret
38462 if err := gensupport.DecodeResponse(target, res); err != nil {
38463 return nil, err
38464 }
38465 return ret, nil
38466 }
38467
38468 type OrganizationsEnvironmentsTraceConfigOverridesCreateCall struct {
38469 s *Service
38470 parent string
38471 googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
38472 urlParams_ gensupport.URLParams
38473 ctx_ context.Context
38474 header_ http.Header
38475 }
38476
38477
38478
38479
38480
38481
38482
38483
38484
38485 func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Create(parent string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
38486 c := &OrganizationsEnvironmentsTraceConfigOverridesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38487 c.parent = parent
38488 c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
38489 return c
38490 }
38491
38492
38493
38494
38495 func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
38496 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38497 return c
38498 }
38499
38500
38501 func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesCreateCall {
38502 c.ctx_ = ctx
38503 return c
38504 }
38505
38506
38507
38508 func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Header() http.Header {
38509 if c.header_ == nil {
38510 c.header_ = make(http.Header)
38511 }
38512 return c.header_
38513 }
38514
38515 func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) doRequest(alt string) (*http.Response, error) {
38516 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38517 var body io.Reader = nil
38518 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
38519 if err != nil {
38520 return nil, err
38521 }
38522 c.urlParams_.Set("alt", alt)
38523 c.urlParams_.Set("prettyPrint", "false")
38524 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
38525 urls += "?" + c.urlParams_.Encode()
38526 req, err := http.NewRequest("POST", urls, body)
38527 if err != nil {
38528 return nil, err
38529 }
38530 req.Header = reqHeaders
38531 googleapi.Expand(req.URL, map[string]string{
38532 "parent": c.parent,
38533 })
38534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38535 }
38536
38537
38538
38539
38540
38541
38542
38543 func (c *OrganizationsEnvironmentsTraceConfigOverridesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
38544 gensupport.SetOptions(c.urlParams_, opts...)
38545 res, err := c.doRequest("json")
38546 if res != nil && res.StatusCode == http.StatusNotModified {
38547 if res.Body != nil {
38548 res.Body.Close()
38549 }
38550 return nil, gensupport.WrapError(&googleapi.Error{
38551 Code: res.StatusCode,
38552 Header: res.Header,
38553 })
38554 }
38555 if err != nil {
38556 return nil, err
38557 }
38558 defer googleapi.CloseBody(res)
38559 if err := googleapi.CheckResponse(res); err != nil {
38560 return nil, gensupport.WrapError(err)
38561 }
38562 ret := &GoogleCloudApigeeV1TraceConfigOverride{
38563 ServerResponse: googleapi.ServerResponse{
38564 Header: res.Header,
38565 HTTPStatusCode: res.StatusCode,
38566 },
38567 }
38568 target := &ret
38569 if err := gensupport.DecodeResponse(target, res); err != nil {
38570 return nil, err
38571 }
38572 return ret, nil
38573 }
38574
38575 type OrganizationsEnvironmentsTraceConfigOverridesDeleteCall struct {
38576 s *Service
38577 name string
38578 urlParams_ gensupport.URLParams
38579 ctx_ context.Context
38580 header_ http.Header
38581 }
38582
38583
38584
38585
38586
38587
38588 func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Delete(name string) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
38589 c := &OrganizationsEnvironmentsTraceConfigOverridesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38590 c.name = name
38591 return c
38592 }
38593
38594
38595
38596
38597 func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
38598 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38599 return c
38600 }
38601
38602
38603 func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall {
38604 c.ctx_ = ctx
38605 return c
38606 }
38607
38608
38609
38610 func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Header() http.Header {
38611 if c.header_ == nil {
38612 c.header_ = make(http.Header)
38613 }
38614 return c.header_
38615 }
38616
38617 func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) doRequest(alt string) (*http.Response, error) {
38618 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38619 var body io.Reader = nil
38620 c.urlParams_.Set("alt", alt)
38621 c.urlParams_.Set("prettyPrint", "false")
38622 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38623 urls += "?" + c.urlParams_.Encode()
38624 req, err := http.NewRequest("DELETE", urls, body)
38625 if err != nil {
38626 return nil, err
38627 }
38628 req.Header = reqHeaders
38629 googleapi.Expand(req.URL, map[string]string{
38630 "name": c.name,
38631 })
38632 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38633 }
38634
38635
38636
38637
38638
38639
38640
38641 func (c *OrganizationsEnvironmentsTraceConfigOverridesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38642 gensupport.SetOptions(c.urlParams_, opts...)
38643 res, err := c.doRequest("json")
38644 if res != nil && res.StatusCode == http.StatusNotModified {
38645 if res.Body != nil {
38646 res.Body.Close()
38647 }
38648 return nil, gensupport.WrapError(&googleapi.Error{
38649 Code: res.StatusCode,
38650 Header: res.Header,
38651 })
38652 }
38653 if err != nil {
38654 return nil, err
38655 }
38656 defer googleapi.CloseBody(res)
38657 if err := googleapi.CheckResponse(res); err != nil {
38658 return nil, gensupport.WrapError(err)
38659 }
38660 ret := &GoogleProtobufEmpty{
38661 ServerResponse: googleapi.ServerResponse{
38662 Header: res.Header,
38663 HTTPStatusCode: res.StatusCode,
38664 },
38665 }
38666 target := &ret
38667 if err := gensupport.DecodeResponse(target, res); err != nil {
38668 return nil, err
38669 }
38670 return ret, nil
38671 }
38672
38673 type OrganizationsEnvironmentsTraceConfigOverridesGetCall struct {
38674 s *Service
38675 name string
38676 urlParams_ gensupport.URLParams
38677 ifNoneMatch_ string
38678 ctx_ context.Context
38679 header_ http.Header
38680 }
38681
38682
38683
38684
38685
38686
38687 func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Get(name string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
38688 c := &OrganizationsEnvironmentsTraceConfigOverridesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38689 c.name = name
38690 return c
38691 }
38692
38693
38694
38695
38696 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
38697 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38698 return c
38699 }
38700
38701
38702
38703
38704 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
38705 c.ifNoneMatch_ = entityTag
38706 return c
38707 }
38708
38709
38710 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesGetCall {
38711 c.ctx_ = ctx
38712 return c
38713 }
38714
38715
38716
38717 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Header() http.Header {
38718 if c.header_ == nil {
38719 c.header_ = make(http.Header)
38720 }
38721 return c.header_
38722 }
38723
38724 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) doRequest(alt string) (*http.Response, error) {
38725 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38726 if c.ifNoneMatch_ != "" {
38727 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38728 }
38729 var body io.Reader = nil
38730 c.urlParams_.Set("alt", alt)
38731 c.urlParams_.Set("prettyPrint", "false")
38732 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38733 urls += "?" + c.urlParams_.Encode()
38734 req, err := http.NewRequest("GET", urls, body)
38735 if err != nil {
38736 return nil, err
38737 }
38738 req.Header = reqHeaders
38739 googleapi.Expand(req.URL, map[string]string{
38740 "name": c.name,
38741 })
38742 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38743 }
38744
38745
38746
38747
38748
38749
38750
38751 func (c *OrganizationsEnvironmentsTraceConfigOverridesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
38752 gensupport.SetOptions(c.urlParams_, opts...)
38753 res, err := c.doRequest("json")
38754 if res != nil && res.StatusCode == http.StatusNotModified {
38755 if res.Body != nil {
38756 res.Body.Close()
38757 }
38758 return nil, gensupport.WrapError(&googleapi.Error{
38759 Code: res.StatusCode,
38760 Header: res.Header,
38761 })
38762 }
38763 if err != nil {
38764 return nil, err
38765 }
38766 defer googleapi.CloseBody(res)
38767 if err := googleapi.CheckResponse(res); err != nil {
38768 return nil, gensupport.WrapError(err)
38769 }
38770 ret := &GoogleCloudApigeeV1TraceConfigOverride{
38771 ServerResponse: googleapi.ServerResponse{
38772 Header: res.Header,
38773 HTTPStatusCode: res.StatusCode,
38774 },
38775 }
38776 target := &ret
38777 if err := gensupport.DecodeResponse(target, res); err != nil {
38778 return nil, err
38779 }
38780 return ret, nil
38781 }
38782
38783 type OrganizationsEnvironmentsTraceConfigOverridesListCall struct {
38784 s *Service
38785 parent string
38786 urlParams_ gensupport.URLParams
38787 ifNoneMatch_ string
38788 ctx_ context.Context
38789 header_ http.Header
38790 }
38791
38792
38793
38794
38795
38796
38797
38798 func (r *OrganizationsEnvironmentsTraceConfigOverridesService) List(parent string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38799 c := &OrganizationsEnvironmentsTraceConfigOverridesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38800 c.parent = parent
38801 return c
38802 }
38803
38804
38805
38806
38807 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageSize(pageSize int64) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38808 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38809 return c
38810 }
38811
38812
38813
38814
38815
38816
38817 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) PageToken(pageToken string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38818 c.urlParams_.Set("pageToken", pageToken)
38819 return c
38820 }
38821
38822
38823
38824
38825 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38826 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38827 return c
38828 }
38829
38830
38831
38832
38833 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38834 c.ifNoneMatch_ = entityTag
38835 return c
38836 }
38837
38838
38839 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesListCall {
38840 c.ctx_ = ctx
38841 return c
38842 }
38843
38844
38845
38846 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Header() http.Header {
38847 if c.header_ == nil {
38848 c.header_ = make(http.Header)
38849 }
38850 return c.header_
38851 }
38852
38853 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) doRequest(alt string) (*http.Response, error) {
38854 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38855 if c.ifNoneMatch_ != "" {
38856 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38857 }
38858 var body io.Reader = nil
38859 c.urlParams_.Set("alt", alt)
38860 c.urlParams_.Set("prettyPrint", "false")
38861 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/overrides")
38862 urls += "?" + c.urlParams_.Encode()
38863 req, err := http.NewRequest("GET", urls, body)
38864 if err != nil {
38865 return nil, err
38866 }
38867 req.Header = reqHeaders
38868 googleapi.Expand(req.URL, map[string]string{
38869 "parent": c.parent,
38870 })
38871 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38872 }
38873
38874
38875
38876
38877
38878
38879
38880 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListTraceConfigOverridesResponse, error) {
38881 gensupport.SetOptions(c.urlParams_, opts...)
38882 res, err := c.doRequest("json")
38883 if res != nil && res.StatusCode == http.StatusNotModified {
38884 if res.Body != nil {
38885 res.Body.Close()
38886 }
38887 return nil, gensupport.WrapError(&googleapi.Error{
38888 Code: res.StatusCode,
38889 Header: res.Header,
38890 })
38891 }
38892 if err != nil {
38893 return nil, err
38894 }
38895 defer googleapi.CloseBody(res)
38896 if err := googleapi.CheckResponse(res); err != nil {
38897 return nil, gensupport.WrapError(err)
38898 }
38899 ret := &GoogleCloudApigeeV1ListTraceConfigOverridesResponse{
38900 ServerResponse: googleapi.ServerResponse{
38901 Header: res.Header,
38902 HTTPStatusCode: res.StatusCode,
38903 },
38904 }
38905 target := &ret
38906 if err := gensupport.DecodeResponse(target, res); err != nil {
38907 return nil, err
38908 }
38909 return ret, nil
38910 }
38911
38912
38913
38914
38915 func (c *OrganizationsEnvironmentsTraceConfigOverridesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListTraceConfigOverridesResponse) error) error {
38916 c.ctx_ = ctx
38917 defer c.PageToken(c.urlParams_.Get("pageToken"))
38918 for {
38919 x, err := c.Do()
38920 if err != nil {
38921 return err
38922 }
38923 if err := f(x); err != nil {
38924 return err
38925 }
38926 if x.NextPageToken == "" {
38927 return nil
38928 }
38929 c.PageToken(x.NextPageToken)
38930 }
38931 }
38932
38933 type OrganizationsEnvironmentsTraceConfigOverridesPatchCall struct {
38934 s *Service
38935 name string
38936 googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride
38937 urlParams_ gensupport.URLParams
38938 ctx_ context.Context
38939 header_ http.Header
38940 }
38941
38942
38943
38944
38945
38946
38947
38948
38949
38950 func (r *OrganizationsEnvironmentsTraceConfigOverridesService) Patch(name string, googlecloudapigeev1traceconfigoverride *GoogleCloudApigeeV1TraceConfigOverride) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38951 c := &OrganizationsEnvironmentsTraceConfigOverridesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38952 c.name = name
38953 c.googlecloudapigeev1traceconfigoverride = googlecloudapigeev1traceconfigoverride
38954 return c
38955 }
38956
38957
38958
38959 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38960 c.urlParams_.Set("updateMask", updateMask)
38961 return c
38962 }
38963
38964
38965
38966
38967 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38968 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38969 return c
38970 }
38971
38972
38973 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Context(ctx context.Context) *OrganizationsEnvironmentsTraceConfigOverridesPatchCall {
38974 c.ctx_ = ctx
38975 return c
38976 }
38977
38978
38979
38980 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Header() http.Header {
38981 if c.header_ == nil {
38982 c.header_ = make(http.Header)
38983 }
38984 return c.header_
38985 }
38986
38987 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) doRequest(alt string) (*http.Response, error) {
38988 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38989 var body io.Reader = nil
38990 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1traceconfigoverride)
38991 if err != nil {
38992 return nil, err
38993 }
38994 c.urlParams_.Set("alt", alt)
38995 c.urlParams_.Set("prettyPrint", "false")
38996 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
38997 urls += "?" + c.urlParams_.Encode()
38998 req, err := http.NewRequest("PATCH", urls, body)
38999 if err != nil {
39000 return nil, err
39001 }
39002 req.Header = reqHeaders
39003 googleapi.Expand(req.URL, map[string]string{
39004 "name": c.name,
39005 })
39006 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39007 }
39008
39009
39010
39011
39012
39013
39014
39015 func (c *OrganizationsEnvironmentsTraceConfigOverridesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TraceConfigOverride, error) {
39016 gensupport.SetOptions(c.urlParams_, opts...)
39017 res, err := c.doRequest("json")
39018 if res != nil && res.StatusCode == http.StatusNotModified {
39019 if res.Body != nil {
39020 res.Body.Close()
39021 }
39022 return nil, gensupport.WrapError(&googleapi.Error{
39023 Code: res.StatusCode,
39024 Header: res.Header,
39025 })
39026 }
39027 if err != nil {
39028 return nil, err
39029 }
39030 defer googleapi.CloseBody(res)
39031 if err := googleapi.CheckResponse(res); err != nil {
39032 return nil, gensupport.WrapError(err)
39033 }
39034 ret := &GoogleCloudApigeeV1TraceConfigOverride{
39035 ServerResponse: googleapi.ServerResponse{
39036 Header: res.Header,
39037 HTTPStatusCode: res.StatusCode,
39038 },
39039 }
39040 target := &ret
39041 if err := gensupport.DecodeResponse(target, res); err != nil {
39042 return nil, err
39043 }
39044 return ret, nil
39045 }
39046
39047 type OrganizationsHostQueriesCreateCall struct {
39048 s *Service
39049 parent string
39050 googlecloudapigeev1query *GoogleCloudApigeeV1Query
39051 urlParams_ gensupport.URLParams
39052 ctx_ context.Context
39053 header_ http.Header
39054 }
39055
39056
39057
39058
39059
39060
39061
39062
39063 func (r *OrganizationsHostQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsHostQueriesCreateCall {
39064 c := &OrganizationsHostQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39065 c.parent = parent
39066 c.googlecloudapigeev1query = googlecloudapigeev1query
39067 return c
39068 }
39069
39070
39071
39072
39073 func (c *OrganizationsHostQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesCreateCall {
39074 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39075 return c
39076 }
39077
39078
39079 func (c *OrganizationsHostQueriesCreateCall) Context(ctx context.Context) *OrganizationsHostQueriesCreateCall {
39080 c.ctx_ = ctx
39081 return c
39082 }
39083
39084
39085
39086 func (c *OrganizationsHostQueriesCreateCall) Header() http.Header {
39087 if c.header_ == nil {
39088 c.header_ = make(http.Header)
39089 }
39090 return c.header_
39091 }
39092
39093 func (c *OrganizationsHostQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
39094 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39095 var body io.Reader = nil
39096 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
39097 if err != nil {
39098 return nil, err
39099 }
39100 c.urlParams_.Set("alt", alt)
39101 c.urlParams_.Set("prettyPrint", "false")
39102 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
39103 urls += "?" + c.urlParams_.Encode()
39104 req, err := http.NewRequest("POST", urls, body)
39105 if err != nil {
39106 return nil, err
39107 }
39108 req.Header = reqHeaders
39109 googleapi.Expand(req.URL, map[string]string{
39110 "parent": c.parent,
39111 })
39112 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39113 }
39114
39115
39116
39117
39118
39119
39120
39121 func (c *OrganizationsHostQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
39122 gensupport.SetOptions(c.urlParams_, opts...)
39123 res, err := c.doRequest("json")
39124 if res != nil && res.StatusCode == http.StatusNotModified {
39125 if res.Body != nil {
39126 res.Body.Close()
39127 }
39128 return nil, gensupport.WrapError(&googleapi.Error{
39129 Code: res.StatusCode,
39130 Header: res.Header,
39131 })
39132 }
39133 if err != nil {
39134 return nil, err
39135 }
39136 defer googleapi.CloseBody(res)
39137 if err := googleapi.CheckResponse(res); err != nil {
39138 return nil, gensupport.WrapError(err)
39139 }
39140 ret := &GoogleCloudApigeeV1AsyncQuery{
39141 ServerResponse: googleapi.ServerResponse{
39142 Header: res.Header,
39143 HTTPStatusCode: res.StatusCode,
39144 },
39145 }
39146 target := &ret
39147 if err := gensupport.DecodeResponse(target, res); err != nil {
39148 return nil, err
39149 }
39150 return ret, nil
39151 }
39152
39153 type OrganizationsHostQueriesGetCall struct {
39154 s *Service
39155 name string
39156 urlParams_ gensupport.URLParams
39157 ifNoneMatch_ string
39158 ctx_ context.Context
39159 header_ http.Header
39160 }
39161
39162
39163
39164
39165
39166
39167
39168 func (r *OrganizationsHostQueriesService) Get(name string) *OrganizationsHostQueriesGetCall {
39169 c := &OrganizationsHostQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39170 c.name = name
39171 return c
39172 }
39173
39174
39175
39176
39177 func (c *OrganizationsHostQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetCall {
39178 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39179 return c
39180 }
39181
39182
39183
39184
39185 func (c *OrganizationsHostQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetCall {
39186 c.ifNoneMatch_ = entityTag
39187 return c
39188 }
39189
39190
39191 func (c *OrganizationsHostQueriesGetCall) Context(ctx context.Context) *OrganizationsHostQueriesGetCall {
39192 c.ctx_ = ctx
39193 return c
39194 }
39195
39196
39197
39198 func (c *OrganizationsHostQueriesGetCall) Header() http.Header {
39199 if c.header_ == nil {
39200 c.header_ = make(http.Header)
39201 }
39202 return c.header_
39203 }
39204
39205 func (c *OrganizationsHostQueriesGetCall) doRequest(alt string) (*http.Response, error) {
39206 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39207 if c.ifNoneMatch_ != "" {
39208 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39209 }
39210 var body io.Reader = nil
39211 c.urlParams_.Set("alt", alt)
39212 c.urlParams_.Set("prettyPrint", "false")
39213 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39214 urls += "?" + c.urlParams_.Encode()
39215 req, err := http.NewRequest("GET", urls, body)
39216 if err != nil {
39217 return nil, err
39218 }
39219 req.Header = reqHeaders
39220 googleapi.Expand(req.URL, map[string]string{
39221 "name": c.name,
39222 })
39223 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39224 }
39225
39226
39227
39228
39229
39230
39231
39232 func (c *OrganizationsHostQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
39233 gensupport.SetOptions(c.urlParams_, opts...)
39234 res, err := c.doRequest("json")
39235 if res != nil && res.StatusCode == http.StatusNotModified {
39236 if res.Body != nil {
39237 res.Body.Close()
39238 }
39239 return nil, gensupport.WrapError(&googleapi.Error{
39240 Code: res.StatusCode,
39241 Header: res.Header,
39242 })
39243 }
39244 if err != nil {
39245 return nil, err
39246 }
39247 defer googleapi.CloseBody(res)
39248 if err := googleapi.CheckResponse(res); err != nil {
39249 return nil, gensupport.WrapError(err)
39250 }
39251 ret := &GoogleCloudApigeeV1AsyncQuery{
39252 ServerResponse: googleapi.ServerResponse{
39253 Header: res.Header,
39254 HTTPStatusCode: res.StatusCode,
39255 },
39256 }
39257 target := &ret
39258 if err := gensupport.DecodeResponse(target, res); err != nil {
39259 return nil, err
39260 }
39261 return ret, nil
39262 }
39263
39264 type OrganizationsHostQueriesGetResultCall struct {
39265 s *Service
39266 name string
39267 urlParams_ gensupport.URLParams
39268 ifNoneMatch_ string
39269 ctx_ context.Context
39270 header_ http.Header
39271 }
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281 func (r *OrganizationsHostQueriesService) GetResult(name string) *OrganizationsHostQueriesGetResultCall {
39282 c := &OrganizationsHostQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39283 c.name = name
39284 return c
39285 }
39286
39287
39288
39289
39290 func (c *OrganizationsHostQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultCall {
39291 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39292 return c
39293 }
39294
39295
39296
39297
39298 func (c *OrganizationsHostQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultCall {
39299 c.ifNoneMatch_ = entityTag
39300 return c
39301 }
39302
39303
39304 func (c *OrganizationsHostQueriesGetResultCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultCall {
39305 c.ctx_ = ctx
39306 return c
39307 }
39308
39309
39310
39311 func (c *OrganizationsHostQueriesGetResultCall) Header() http.Header {
39312 if c.header_ == nil {
39313 c.header_ = make(http.Header)
39314 }
39315 return c.header_
39316 }
39317
39318 func (c *OrganizationsHostQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
39319 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39320 if c.ifNoneMatch_ != "" {
39321 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39322 }
39323 var body io.Reader = nil
39324 c.urlParams_.Set("alt", alt)
39325 c.urlParams_.Set("prettyPrint", "false")
39326 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39327 urls += "?" + c.urlParams_.Encode()
39328 req, err := http.NewRequest("GET", urls, body)
39329 if err != nil {
39330 return nil, err
39331 }
39332 req.Header = reqHeaders
39333 googleapi.Expand(req.URL, map[string]string{
39334 "name": c.name,
39335 })
39336 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39337 }
39338
39339
39340
39341
39342
39343
39344
39345 func (c *OrganizationsHostQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
39346 gensupport.SetOptions(c.urlParams_, opts...)
39347 res, err := c.doRequest("json")
39348 if res != nil && res.StatusCode == http.StatusNotModified {
39349 if res.Body != nil {
39350 res.Body.Close()
39351 }
39352 return nil, gensupport.WrapError(&googleapi.Error{
39353 Code: res.StatusCode,
39354 Header: res.Header,
39355 })
39356 }
39357 if err != nil {
39358 return nil, err
39359 }
39360 defer googleapi.CloseBody(res)
39361 if err := googleapi.CheckResponse(res); err != nil {
39362 return nil, gensupport.WrapError(err)
39363 }
39364 ret := &GoogleApiHttpBody{
39365 ServerResponse: googleapi.ServerResponse{
39366 Header: res.Header,
39367 HTTPStatusCode: res.StatusCode,
39368 },
39369 }
39370 target := &ret
39371 if err := gensupport.DecodeResponse(target, res); err != nil {
39372 return nil, err
39373 }
39374 return ret, nil
39375 }
39376
39377 type OrganizationsHostQueriesGetResultViewCall struct {
39378 s *Service
39379 name string
39380 urlParams_ gensupport.URLParams
39381 ifNoneMatch_ string
39382 ctx_ context.Context
39383 header_ http.Header
39384 }
39385
39386
39387
39388
39389
39390 func (r *OrganizationsHostQueriesService) GetResultView(name string) *OrganizationsHostQueriesGetResultViewCall {
39391 c := &OrganizationsHostQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39392 c.name = name
39393 return c
39394 }
39395
39396
39397
39398
39399 func (c *OrganizationsHostQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesGetResultViewCall {
39400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39401 return c
39402 }
39403
39404
39405
39406
39407 func (c *OrganizationsHostQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesGetResultViewCall {
39408 c.ifNoneMatch_ = entityTag
39409 return c
39410 }
39411
39412
39413 func (c *OrganizationsHostQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsHostQueriesGetResultViewCall {
39414 c.ctx_ = ctx
39415 return c
39416 }
39417
39418
39419
39420 func (c *OrganizationsHostQueriesGetResultViewCall) Header() http.Header {
39421 if c.header_ == nil {
39422 c.header_ = make(http.Header)
39423 }
39424 return c.header_
39425 }
39426
39427 func (c *OrganizationsHostQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
39428 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39429 if c.ifNoneMatch_ != "" {
39430 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39431 }
39432 var body io.Reader = nil
39433 c.urlParams_.Set("alt", alt)
39434 c.urlParams_.Set("prettyPrint", "false")
39435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39436 urls += "?" + c.urlParams_.Encode()
39437 req, err := http.NewRequest("GET", urls, body)
39438 if err != nil {
39439 return nil, err
39440 }
39441 req.Header = reqHeaders
39442 googleapi.Expand(req.URL, map[string]string{
39443 "name": c.name,
39444 })
39445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39446 }
39447
39448
39449
39450
39451
39452
39453
39454 func (c *OrganizationsHostQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
39455 gensupport.SetOptions(c.urlParams_, opts...)
39456 res, err := c.doRequest("json")
39457 if res != nil && res.StatusCode == http.StatusNotModified {
39458 if res.Body != nil {
39459 res.Body.Close()
39460 }
39461 return nil, gensupport.WrapError(&googleapi.Error{
39462 Code: res.StatusCode,
39463 Header: res.Header,
39464 })
39465 }
39466 if err != nil {
39467 return nil, err
39468 }
39469 defer googleapi.CloseBody(res)
39470 if err := googleapi.CheckResponse(res); err != nil {
39471 return nil, gensupport.WrapError(err)
39472 }
39473 ret := &GoogleCloudApigeeV1AsyncQueryResultView{
39474 ServerResponse: googleapi.ServerResponse{
39475 Header: res.Header,
39476 HTTPStatusCode: res.StatusCode,
39477 },
39478 }
39479 target := &ret
39480 if err := gensupport.DecodeResponse(target, res); err != nil {
39481 return nil, err
39482 }
39483 return ret, nil
39484 }
39485
39486 type OrganizationsHostQueriesListCall struct {
39487 s *Service
39488 parent string
39489 urlParams_ gensupport.URLParams
39490 ifNoneMatch_ string
39491 ctx_ context.Context
39492 header_ http.Header
39493 }
39494
39495
39496
39497
39498
39499 func (r *OrganizationsHostQueriesService) List(parent string) *OrganizationsHostQueriesListCall {
39500 c := &OrganizationsHostQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39501 c.parent = parent
39502 return c
39503 }
39504
39505
39506
39507 func (c *OrganizationsHostQueriesListCall) Dataset(dataset string) *OrganizationsHostQueriesListCall {
39508 c.urlParams_.Set("dataset", dataset)
39509 return c
39510 }
39511
39512
39513
39514 func (c *OrganizationsHostQueriesListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostQueriesListCall {
39515 c.urlParams_.Set("envgroupHostname", envgroupHostname)
39516 return c
39517 }
39518
39519
39520
39521
39522 func (c *OrganizationsHostQueriesListCall) From(from string) *OrganizationsHostQueriesListCall {
39523 c.urlParams_.Set("from", from)
39524 return c
39525 }
39526
39527
39528
39529
39530 func (c *OrganizationsHostQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsHostQueriesListCall {
39531 c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
39532 return c
39533 }
39534
39535
39536
39537 func (c *OrganizationsHostQueriesListCall) Status(status string) *OrganizationsHostQueriesListCall {
39538 c.urlParams_.Set("status", status)
39539 return c
39540 }
39541
39542
39543
39544 func (c *OrganizationsHostQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsHostQueriesListCall {
39545 c.urlParams_.Set("submittedBy", submittedBy)
39546 return c
39547 }
39548
39549
39550
39551
39552 func (c *OrganizationsHostQueriesListCall) To(to string) *OrganizationsHostQueriesListCall {
39553 c.urlParams_.Set("to", to)
39554 return c
39555 }
39556
39557
39558
39559
39560 func (c *OrganizationsHostQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsHostQueriesListCall {
39561 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39562 return c
39563 }
39564
39565
39566
39567
39568 func (c *OrganizationsHostQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsHostQueriesListCall {
39569 c.ifNoneMatch_ = entityTag
39570 return c
39571 }
39572
39573
39574 func (c *OrganizationsHostQueriesListCall) Context(ctx context.Context) *OrganizationsHostQueriesListCall {
39575 c.ctx_ = ctx
39576 return c
39577 }
39578
39579
39580
39581 func (c *OrganizationsHostQueriesListCall) Header() http.Header {
39582 if c.header_ == nil {
39583 c.header_ = make(http.Header)
39584 }
39585 return c.header_
39586 }
39587
39588 func (c *OrganizationsHostQueriesListCall) doRequest(alt string) (*http.Response, error) {
39589 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39590 if c.ifNoneMatch_ != "" {
39591 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39592 }
39593 var body io.Reader = nil
39594 c.urlParams_.Set("alt", alt)
39595 c.urlParams_.Set("prettyPrint", "false")
39596 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostQueries")
39597 urls += "?" + c.urlParams_.Encode()
39598 req, err := http.NewRequest("GET", urls, body)
39599 if err != nil {
39600 return nil, err
39601 }
39602 req.Header = reqHeaders
39603 googleapi.Expand(req.URL, map[string]string{
39604 "parent": c.parent,
39605 })
39606 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39607 }
39608
39609
39610
39611
39612
39613
39614
39615 func (c *OrganizationsHostQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
39616 gensupport.SetOptions(c.urlParams_, opts...)
39617 res, err := c.doRequest("json")
39618 if res != nil && res.StatusCode == http.StatusNotModified {
39619 if res.Body != nil {
39620 res.Body.Close()
39621 }
39622 return nil, gensupport.WrapError(&googleapi.Error{
39623 Code: res.StatusCode,
39624 Header: res.Header,
39625 })
39626 }
39627 if err != nil {
39628 return nil, err
39629 }
39630 defer googleapi.CloseBody(res)
39631 if err := googleapi.CheckResponse(res); err != nil {
39632 return nil, gensupport.WrapError(err)
39633 }
39634 ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
39635 ServerResponse: googleapi.ServerResponse{
39636 Header: res.Header,
39637 HTTPStatusCode: res.StatusCode,
39638 },
39639 }
39640 target := &ret
39641 if err := gensupport.DecodeResponse(target, res); err != nil {
39642 return nil, err
39643 }
39644 return ret, nil
39645 }
39646
39647 type OrganizationsHostSecurityReportsCreateCall struct {
39648 s *Service
39649 parent string
39650 googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery
39651 urlParams_ gensupport.URLParams
39652 ctx_ context.Context
39653 header_ http.Header
39654 }
39655
39656
39657
39658
39659
39660
39661
39662
39663 func (r *OrganizationsHostSecurityReportsService) Create(parent string, googlecloudapigeev1securityreportquery *GoogleCloudApigeeV1SecurityReportQuery) *OrganizationsHostSecurityReportsCreateCall {
39664 c := &OrganizationsHostSecurityReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39665 c.parent = parent
39666 c.googlecloudapigeev1securityreportquery = googlecloudapigeev1securityreportquery
39667 return c
39668 }
39669
39670
39671
39672
39673 func (c *OrganizationsHostSecurityReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsCreateCall {
39674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39675 return c
39676 }
39677
39678
39679 func (c *OrganizationsHostSecurityReportsCreateCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsCreateCall {
39680 c.ctx_ = ctx
39681 return c
39682 }
39683
39684
39685
39686 func (c *OrganizationsHostSecurityReportsCreateCall) Header() http.Header {
39687 if c.header_ == nil {
39688 c.header_ = make(http.Header)
39689 }
39690 return c.header_
39691 }
39692
39693 func (c *OrganizationsHostSecurityReportsCreateCall) doRequest(alt string) (*http.Response, error) {
39694 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39695 var body io.Reader = nil
39696 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityreportquery)
39697 if err != nil {
39698 return nil, err
39699 }
39700 c.urlParams_.Set("alt", alt)
39701 c.urlParams_.Set("prettyPrint", "false")
39702 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostSecurityReports")
39703 urls += "?" + c.urlParams_.Encode()
39704 req, err := http.NewRequest("POST", urls, body)
39705 if err != nil {
39706 return nil, err
39707 }
39708 req.Header = reqHeaders
39709 googleapi.Expand(req.URL, map[string]string{
39710 "parent": c.parent,
39711 })
39712 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39713 }
39714
39715
39716
39717
39718
39719
39720
39721 func (c *OrganizationsHostSecurityReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
39722 gensupport.SetOptions(c.urlParams_, opts...)
39723 res, err := c.doRequest("json")
39724 if res != nil && res.StatusCode == http.StatusNotModified {
39725 if res.Body != nil {
39726 res.Body.Close()
39727 }
39728 return nil, gensupport.WrapError(&googleapi.Error{
39729 Code: res.StatusCode,
39730 Header: res.Header,
39731 })
39732 }
39733 if err != nil {
39734 return nil, err
39735 }
39736 defer googleapi.CloseBody(res)
39737 if err := googleapi.CheckResponse(res); err != nil {
39738 return nil, gensupport.WrapError(err)
39739 }
39740 ret := &GoogleCloudApigeeV1SecurityReport{
39741 ServerResponse: googleapi.ServerResponse{
39742 Header: res.Header,
39743 HTTPStatusCode: res.StatusCode,
39744 },
39745 }
39746 target := &ret
39747 if err := gensupport.DecodeResponse(target, res); err != nil {
39748 return nil, err
39749 }
39750 return ret, nil
39751 }
39752
39753 type OrganizationsHostSecurityReportsGetCall struct {
39754 s *Service
39755 name string
39756 urlParams_ gensupport.URLParams
39757 ifNoneMatch_ string
39758 ctx_ context.Context
39759 header_ http.Header
39760 }
39761
39762
39763
39764
39765
39766
39767
39768 func (r *OrganizationsHostSecurityReportsService) Get(name string) *OrganizationsHostSecurityReportsGetCall {
39769 c := &OrganizationsHostSecurityReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39770 c.name = name
39771 return c
39772 }
39773
39774
39775
39776
39777 func (c *OrganizationsHostSecurityReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetCall {
39778 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39779 return c
39780 }
39781
39782
39783
39784
39785 func (c *OrganizationsHostSecurityReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetCall {
39786 c.ifNoneMatch_ = entityTag
39787 return c
39788 }
39789
39790
39791 func (c *OrganizationsHostSecurityReportsGetCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetCall {
39792 c.ctx_ = ctx
39793 return c
39794 }
39795
39796
39797
39798 func (c *OrganizationsHostSecurityReportsGetCall) Header() http.Header {
39799 if c.header_ == nil {
39800 c.header_ = make(http.Header)
39801 }
39802 return c.header_
39803 }
39804
39805 func (c *OrganizationsHostSecurityReportsGetCall) doRequest(alt string) (*http.Response, error) {
39806 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39807 if c.ifNoneMatch_ != "" {
39808 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39809 }
39810 var body io.Reader = nil
39811 c.urlParams_.Set("alt", alt)
39812 c.urlParams_.Set("prettyPrint", "false")
39813 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39814 urls += "?" + c.urlParams_.Encode()
39815 req, err := http.NewRequest("GET", urls, body)
39816 if err != nil {
39817 return nil, err
39818 }
39819 req.Header = reqHeaders
39820 googleapi.Expand(req.URL, map[string]string{
39821 "name": c.name,
39822 })
39823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39824 }
39825
39826
39827
39828
39829
39830
39831
39832 func (c *OrganizationsHostSecurityReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReport, error) {
39833 gensupport.SetOptions(c.urlParams_, opts...)
39834 res, err := c.doRequest("json")
39835 if res != nil && res.StatusCode == http.StatusNotModified {
39836 if res.Body != nil {
39837 res.Body.Close()
39838 }
39839 return nil, gensupport.WrapError(&googleapi.Error{
39840 Code: res.StatusCode,
39841 Header: res.Header,
39842 })
39843 }
39844 if err != nil {
39845 return nil, err
39846 }
39847 defer googleapi.CloseBody(res)
39848 if err := googleapi.CheckResponse(res); err != nil {
39849 return nil, gensupport.WrapError(err)
39850 }
39851 ret := &GoogleCloudApigeeV1SecurityReport{
39852 ServerResponse: googleapi.ServerResponse{
39853 Header: res.Header,
39854 HTTPStatusCode: res.StatusCode,
39855 },
39856 }
39857 target := &ret
39858 if err := gensupport.DecodeResponse(target, res); err != nil {
39859 return nil, err
39860 }
39861 return ret, nil
39862 }
39863
39864 type OrganizationsHostSecurityReportsGetResultCall struct {
39865 s *Service
39866 name string
39867 urlParams_ gensupport.URLParams
39868 ifNoneMatch_ string
39869 ctx_ context.Context
39870 header_ http.Header
39871 }
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881 func (r *OrganizationsHostSecurityReportsService) GetResult(name string) *OrganizationsHostSecurityReportsGetResultCall {
39882 c := &OrganizationsHostSecurityReportsGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39883 c.name = name
39884 return c
39885 }
39886
39887
39888
39889
39890 func (c *OrganizationsHostSecurityReportsGetResultCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetResultCall {
39891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39892 return c
39893 }
39894
39895
39896
39897
39898 func (c *OrganizationsHostSecurityReportsGetResultCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetResultCall {
39899 c.ifNoneMatch_ = entityTag
39900 return c
39901 }
39902
39903
39904 func (c *OrganizationsHostSecurityReportsGetResultCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetResultCall {
39905 c.ctx_ = ctx
39906 return c
39907 }
39908
39909
39910
39911 func (c *OrganizationsHostSecurityReportsGetResultCall) Header() http.Header {
39912 if c.header_ == nil {
39913 c.header_ = make(http.Header)
39914 }
39915 return c.header_
39916 }
39917
39918 func (c *OrganizationsHostSecurityReportsGetResultCall) doRequest(alt string) (*http.Response, error) {
39919 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39920 if c.ifNoneMatch_ != "" {
39921 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39922 }
39923 var body io.Reader = nil
39924 c.urlParams_.Set("alt", alt)
39925 c.urlParams_.Set("prettyPrint", "false")
39926 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
39927 urls += "?" + c.urlParams_.Encode()
39928 req, err := http.NewRequest("GET", urls, body)
39929 if err != nil {
39930 return nil, err
39931 }
39932 req.Header = reqHeaders
39933 googleapi.Expand(req.URL, map[string]string{
39934 "name": c.name,
39935 })
39936 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39937 }
39938
39939
39940
39941
39942
39943
39944
39945 func (c *OrganizationsHostSecurityReportsGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
39946 gensupport.SetOptions(c.urlParams_, opts...)
39947 res, err := c.doRequest("json")
39948 if res != nil && res.StatusCode == http.StatusNotModified {
39949 if res.Body != nil {
39950 res.Body.Close()
39951 }
39952 return nil, gensupport.WrapError(&googleapi.Error{
39953 Code: res.StatusCode,
39954 Header: res.Header,
39955 })
39956 }
39957 if err != nil {
39958 return nil, err
39959 }
39960 defer googleapi.CloseBody(res)
39961 if err := googleapi.CheckResponse(res); err != nil {
39962 return nil, gensupport.WrapError(err)
39963 }
39964 ret := &GoogleApiHttpBody{
39965 ServerResponse: googleapi.ServerResponse{
39966 Header: res.Header,
39967 HTTPStatusCode: res.StatusCode,
39968 },
39969 }
39970 target := &ret
39971 if err := gensupport.DecodeResponse(target, res); err != nil {
39972 return nil, err
39973 }
39974 return ret, nil
39975 }
39976
39977 type OrganizationsHostSecurityReportsGetResultViewCall struct {
39978 s *Service
39979 name string
39980 urlParams_ gensupport.URLParams
39981 ifNoneMatch_ string
39982 ctx_ context.Context
39983 header_ http.Header
39984 }
39985
39986
39987
39988
39989
39990
39991 func (r *OrganizationsHostSecurityReportsService) GetResultView(name string) *OrganizationsHostSecurityReportsGetResultViewCall {
39992 c := &OrganizationsHostSecurityReportsGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39993 c.name = name
39994 return c
39995 }
39996
39997
39998
39999
40000 func (c *OrganizationsHostSecurityReportsGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsGetResultViewCall {
40001 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40002 return c
40003 }
40004
40005
40006
40007
40008 func (c *OrganizationsHostSecurityReportsGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsGetResultViewCall {
40009 c.ifNoneMatch_ = entityTag
40010 return c
40011 }
40012
40013
40014 func (c *OrganizationsHostSecurityReportsGetResultViewCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsGetResultViewCall {
40015 c.ctx_ = ctx
40016 return c
40017 }
40018
40019
40020
40021 func (c *OrganizationsHostSecurityReportsGetResultViewCall) Header() http.Header {
40022 if c.header_ == nil {
40023 c.header_ = make(http.Header)
40024 }
40025 return c.header_
40026 }
40027
40028 func (c *OrganizationsHostSecurityReportsGetResultViewCall) doRequest(alt string) (*http.Response, error) {
40029 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40030 if c.ifNoneMatch_ != "" {
40031 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40032 }
40033 var body io.Reader = nil
40034 c.urlParams_.Set("alt", alt)
40035 c.urlParams_.Set("prettyPrint", "false")
40036 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40037 urls += "?" + c.urlParams_.Encode()
40038 req, err := http.NewRequest("GET", urls, body)
40039 if err != nil {
40040 return nil, err
40041 }
40042 req.Header = reqHeaders
40043 googleapi.Expand(req.URL, map[string]string{
40044 "name": c.name,
40045 })
40046 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40047 }
40048
40049
40050
40051
40052
40053
40054
40055 func (c *OrganizationsHostSecurityReportsGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityReportResultView, error) {
40056 gensupport.SetOptions(c.urlParams_, opts...)
40057 res, err := c.doRequest("json")
40058 if res != nil && res.StatusCode == http.StatusNotModified {
40059 if res.Body != nil {
40060 res.Body.Close()
40061 }
40062 return nil, gensupport.WrapError(&googleapi.Error{
40063 Code: res.StatusCode,
40064 Header: res.Header,
40065 })
40066 }
40067 if err != nil {
40068 return nil, err
40069 }
40070 defer googleapi.CloseBody(res)
40071 if err := googleapi.CheckResponse(res); err != nil {
40072 return nil, gensupport.WrapError(err)
40073 }
40074 ret := &GoogleCloudApigeeV1SecurityReportResultView{
40075 ServerResponse: googleapi.ServerResponse{
40076 Header: res.Header,
40077 HTTPStatusCode: res.StatusCode,
40078 },
40079 }
40080 target := &ret
40081 if err := gensupport.DecodeResponse(target, res); err != nil {
40082 return nil, err
40083 }
40084 return ret, nil
40085 }
40086
40087 type OrganizationsHostSecurityReportsListCall struct {
40088 s *Service
40089 parent string
40090 urlParams_ gensupport.URLParams
40091 ifNoneMatch_ string
40092 ctx_ context.Context
40093 header_ http.Header
40094 }
40095
40096
40097
40098
40099
40100 func (r *OrganizationsHostSecurityReportsService) List(parent string) *OrganizationsHostSecurityReportsListCall {
40101 c := &OrganizationsHostSecurityReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40102 c.parent = parent
40103 return c
40104 }
40105
40106
40107
40108 func (c *OrganizationsHostSecurityReportsListCall) Dataset(dataset string) *OrganizationsHostSecurityReportsListCall {
40109 c.urlParams_.Set("dataset", dataset)
40110 return c
40111 }
40112
40113
40114
40115 func (c *OrganizationsHostSecurityReportsListCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostSecurityReportsListCall {
40116 c.urlParams_.Set("envgroupHostname", envgroupHostname)
40117 return c
40118 }
40119
40120
40121
40122
40123 func (c *OrganizationsHostSecurityReportsListCall) From(from string) *OrganizationsHostSecurityReportsListCall {
40124 c.urlParams_.Set("from", from)
40125 return c
40126 }
40127
40128
40129
40130 func (c *OrganizationsHostSecurityReportsListCall) PageSize(pageSize int64) *OrganizationsHostSecurityReportsListCall {
40131 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40132 return c
40133 }
40134
40135
40136
40137 func (c *OrganizationsHostSecurityReportsListCall) PageToken(pageToken string) *OrganizationsHostSecurityReportsListCall {
40138 c.urlParams_.Set("pageToken", pageToken)
40139 return c
40140 }
40141
40142
40143
40144 func (c *OrganizationsHostSecurityReportsListCall) Status(status string) *OrganizationsHostSecurityReportsListCall {
40145 c.urlParams_.Set("status", status)
40146 return c
40147 }
40148
40149
40150
40151 func (c *OrganizationsHostSecurityReportsListCall) SubmittedBy(submittedBy string) *OrganizationsHostSecurityReportsListCall {
40152 c.urlParams_.Set("submittedBy", submittedBy)
40153 return c
40154 }
40155
40156
40157
40158
40159 func (c *OrganizationsHostSecurityReportsListCall) To(to string) *OrganizationsHostSecurityReportsListCall {
40160 c.urlParams_.Set("to", to)
40161 return c
40162 }
40163
40164
40165
40166
40167 func (c *OrganizationsHostSecurityReportsListCall) Fields(s ...googleapi.Field) *OrganizationsHostSecurityReportsListCall {
40168 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40169 return c
40170 }
40171
40172
40173
40174
40175 func (c *OrganizationsHostSecurityReportsListCall) IfNoneMatch(entityTag string) *OrganizationsHostSecurityReportsListCall {
40176 c.ifNoneMatch_ = entityTag
40177 return c
40178 }
40179
40180
40181 func (c *OrganizationsHostSecurityReportsListCall) Context(ctx context.Context) *OrganizationsHostSecurityReportsListCall {
40182 c.ctx_ = ctx
40183 return c
40184 }
40185
40186
40187
40188 func (c *OrganizationsHostSecurityReportsListCall) Header() http.Header {
40189 if c.header_ == nil {
40190 c.header_ = make(http.Header)
40191 }
40192 return c.header_
40193 }
40194
40195 func (c *OrganizationsHostSecurityReportsListCall) doRequest(alt string) (*http.Response, error) {
40196 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40197 if c.ifNoneMatch_ != "" {
40198 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40199 }
40200 var body io.Reader = nil
40201 c.urlParams_.Set("alt", alt)
40202 c.urlParams_.Set("prettyPrint", "false")
40203 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/hostSecurityReports")
40204 urls += "?" + c.urlParams_.Encode()
40205 req, err := http.NewRequest("GET", urls, body)
40206 if err != nil {
40207 return nil, err
40208 }
40209 req.Header = reqHeaders
40210 googleapi.Expand(req.URL, map[string]string{
40211 "parent": c.parent,
40212 })
40213 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40214 }
40215
40216
40217
40218
40219
40220
40221
40222 func (c *OrganizationsHostSecurityReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityReportsResponse, error) {
40223 gensupport.SetOptions(c.urlParams_, opts...)
40224 res, err := c.doRequest("json")
40225 if res != nil && res.StatusCode == http.StatusNotModified {
40226 if res.Body != nil {
40227 res.Body.Close()
40228 }
40229 return nil, gensupport.WrapError(&googleapi.Error{
40230 Code: res.StatusCode,
40231 Header: res.Header,
40232 })
40233 }
40234 if err != nil {
40235 return nil, err
40236 }
40237 defer googleapi.CloseBody(res)
40238 if err := googleapi.CheckResponse(res); err != nil {
40239 return nil, gensupport.WrapError(err)
40240 }
40241 ret := &GoogleCloudApigeeV1ListSecurityReportsResponse{
40242 ServerResponse: googleapi.ServerResponse{
40243 Header: res.Header,
40244 HTTPStatusCode: res.StatusCode,
40245 },
40246 }
40247 target := &ret
40248 if err := gensupport.DecodeResponse(target, res); err != nil {
40249 return nil, err
40250 }
40251 return ret, nil
40252 }
40253
40254
40255
40256
40257 func (c *OrganizationsHostSecurityReportsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityReportsResponse) error) error {
40258 c.ctx_ = ctx
40259 defer c.PageToken(c.urlParams_.Get("pageToken"))
40260 for {
40261 x, err := c.Do()
40262 if err != nil {
40263 return err
40264 }
40265 if err := f(x); err != nil {
40266 return err
40267 }
40268 if x.NextPageToken == "" {
40269 return nil
40270 }
40271 c.PageToken(x.NextPageToken)
40272 }
40273 }
40274
40275 type OrganizationsHostStatsGetCall struct {
40276 s *Service
40277 name string
40278 urlParams_ gensupport.URLParams
40279 ifNoneMatch_ string
40280 ctx_ context.Context
40281 header_ http.Header
40282 }
40283
40284
40285
40286
40287
40288
40289
40290
40291
40292
40293
40294
40295
40296
40297 func (r *OrganizationsHostStatsService) Get(name string) *OrganizationsHostStatsGetCall {
40298 c := &OrganizationsHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40299 c.name = name
40300 return c
40301 }
40302
40303
40304
40305 func (c *OrganizationsHostStatsGetCall) Accuracy(accuracy string) *OrganizationsHostStatsGetCall {
40306 c.urlParams_.Set("accuracy", accuracy)
40307 return c
40308 }
40309
40310
40311
40312 func (c *OrganizationsHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsHostStatsGetCall {
40313 c.urlParams_.Set("envgroupHostname", envgroupHostname)
40314 return c
40315 }
40316
40317
40318
40319 func (c *OrganizationsHostStatsGetCall) Filter(filter string) *OrganizationsHostStatsGetCall {
40320 c.urlParams_.Set("filter", filter)
40321 return c
40322 }
40323
40324
40325
40326 func (c *OrganizationsHostStatsGetCall) Limit(limit string) *OrganizationsHostStatsGetCall {
40327 c.urlParams_.Set("limit", limit)
40328 return c
40329 }
40330
40331
40332
40333
40334 func (c *OrganizationsHostStatsGetCall) Offset(offset string) *OrganizationsHostStatsGetCall {
40335 c.urlParams_.Set("offset", offset)
40336 return c
40337 }
40338
40339
40340
40341 func (c *OrganizationsHostStatsGetCall) Realtime(realtime bool) *OrganizationsHostStatsGetCall {
40342 c.urlParams_.Set("realtime", fmt.Sprint(realtime))
40343 return c
40344 }
40345
40346
40347
40348 func (c *OrganizationsHostStatsGetCall) Select(select_ string) *OrganizationsHostStatsGetCall {
40349 c.urlParams_.Set("select", select_)
40350 return c
40351 }
40352
40353
40354
40355 func (c *OrganizationsHostStatsGetCall) Sort(sort string) *OrganizationsHostStatsGetCall {
40356 c.urlParams_.Set("sort", sort)
40357 return c
40358 }
40359
40360
40361
40362 func (c *OrganizationsHostStatsGetCall) Sortby(sortby string) *OrganizationsHostStatsGetCall {
40363 c.urlParams_.Set("sortby", sortby)
40364 return c
40365 }
40366
40367
40368
40369
40370 func (c *OrganizationsHostStatsGetCall) TimeRange(timeRange string) *OrganizationsHostStatsGetCall {
40371 c.urlParams_.Set("timeRange", timeRange)
40372 return c
40373 }
40374
40375
40376
40377
40378 func (c *OrganizationsHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsHostStatsGetCall {
40379 c.urlParams_.Set("timeUnit", timeUnit)
40380 return c
40381 }
40382
40383
40384
40385 func (c *OrganizationsHostStatsGetCall) Topk(topk string) *OrganizationsHostStatsGetCall {
40386 c.urlParams_.Set("topk", topk)
40387 return c
40388 }
40389
40390
40391
40392
40393
40394 func (c *OrganizationsHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsHostStatsGetCall {
40395 c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
40396 return c
40397 }
40398
40399
40400 func (c *OrganizationsHostStatsGetCall) Tzo(tzo string) *OrganizationsHostStatsGetCall {
40401 c.urlParams_.Set("tzo", tzo)
40402 return c
40403 }
40404
40405
40406
40407
40408 func (c *OrganizationsHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsHostStatsGetCall {
40409 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40410 return c
40411 }
40412
40413
40414
40415
40416 func (c *OrganizationsHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsHostStatsGetCall {
40417 c.ifNoneMatch_ = entityTag
40418 return c
40419 }
40420
40421
40422 func (c *OrganizationsHostStatsGetCall) Context(ctx context.Context) *OrganizationsHostStatsGetCall {
40423 c.ctx_ = ctx
40424 return c
40425 }
40426
40427
40428
40429 func (c *OrganizationsHostStatsGetCall) Header() http.Header {
40430 if c.header_ == nil {
40431 c.header_ = make(http.Header)
40432 }
40433 return c.header_
40434 }
40435
40436 func (c *OrganizationsHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
40437 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40438 if c.ifNoneMatch_ != "" {
40439 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40440 }
40441 var body io.Reader = nil
40442 c.urlParams_.Set("alt", alt)
40443 c.urlParams_.Set("prettyPrint", "false")
40444 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40445 urls += "?" + c.urlParams_.Encode()
40446 req, err := http.NewRequest("GET", urls, body)
40447 if err != nil {
40448 return nil, err
40449 }
40450 req.Header = reqHeaders
40451 googleapi.Expand(req.URL, map[string]string{
40452 "name": c.name,
40453 })
40454 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40455 }
40456
40457
40458
40459
40460
40461
40462
40463 func (c *OrganizationsHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
40464 gensupport.SetOptions(c.urlParams_, opts...)
40465 res, err := c.doRequest("json")
40466 if res != nil && res.StatusCode == http.StatusNotModified {
40467 if res.Body != nil {
40468 res.Body.Close()
40469 }
40470 return nil, gensupport.WrapError(&googleapi.Error{
40471 Code: res.StatusCode,
40472 Header: res.Header,
40473 })
40474 }
40475 if err != nil {
40476 return nil, err
40477 }
40478 defer googleapi.CloseBody(res)
40479 if err := googleapi.CheckResponse(res); err != nil {
40480 return nil, gensupport.WrapError(err)
40481 }
40482 ret := &GoogleCloudApigeeV1Stats{
40483 ServerResponse: googleapi.ServerResponse{
40484 Header: res.Header,
40485 HTTPStatusCode: res.StatusCode,
40486 },
40487 }
40488 target := &ret
40489 if err := gensupport.DecodeResponse(target, res); err != nil {
40490 return nil, err
40491 }
40492 return ret, nil
40493 }
40494
40495 type OrganizationsInstancesCreateCall struct {
40496 s *Service
40497 parent string
40498 googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
40499 urlParams_ gensupport.URLParams
40500 ctx_ context.Context
40501 header_ http.Header
40502 }
40503
40504
40505
40506
40507
40508
40509
40510 func (r *OrganizationsInstancesService) Create(parent string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesCreateCall {
40511 c := &OrganizationsInstancesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40512 c.parent = parent
40513 c.googlecloudapigeev1instance = googlecloudapigeev1instance
40514 return c
40515 }
40516
40517
40518
40519
40520 func (c *OrganizationsInstancesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCreateCall {
40521 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40522 return c
40523 }
40524
40525
40526 func (c *OrganizationsInstancesCreateCall) Context(ctx context.Context) *OrganizationsInstancesCreateCall {
40527 c.ctx_ = ctx
40528 return c
40529 }
40530
40531
40532
40533 func (c *OrganizationsInstancesCreateCall) Header() http.Header {
40534 if c.header_ == nil {
40535 c.header_ = make(http.Header)
40536 }
40537 return c.header_
40538 }
40539
40540 func (c *OrganizationsInstancesCreateCall) doRequest(alt string) (*http.Response, error) {
40541 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40542 var body io.Reader = nil
40543 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
40544 if err != nil {
40545 return nil, err
40546 }
40547 c.urlParams_.Set("alt", alt)
40548 c.urlParams_.Set("prettyPrint", "false")
40549 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
40550 urls += "?" + c.urlParams_.Encode()
40551 req, err := http.NewRequest("POST", urls, body)
40552 if err != nil {
40553 return nil, err
40554 }
40555 req.Header = reqHeaders
40556 googleapi.Expand(req.URL, map[string]string{
40557 "parent": c.parent,
40558 })
40559 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40560 }
40561
40562
40563
40564
40565
40566
40567
40568 func (c *OrganizationsInstancesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40569 gensupport.SetOptions(c.urlParams_, opts...)
40570 res, err := c.doRequest("json")
40571 if res != nil && res.StatusCode == http.StatusNotModified {
40572 if res.Body != nil {
40573 res.Body.Close()
40574 }
40575 return nil, gensupport.WrapError(&googleapi.Error{
40576 Code: res.StatusCode,
40577 Header: res.Header,
40578 })
40579 }
40580 if err != nil {
40581 return nil, err
40582 }
40583 defer googleapi.CloseBody(res)
40584 if err := googleapi.CheckResponse(res); err != nil {
40585 return nil, gensupport.WrapError(err)
40586 }
40587 ret := &GoogleLongrunningOperation{
40588 ServerResponse: googleapi.ServerResponse{
40589 Header: res.Header,
40590 HTTPStatusCode: res.StatusCode,
40591 },
40592 }
40593 target := &ret
40594 if err := gensupport.DecodeResponse(target, res); err != nil {
40595 return nil, err
40596 }
40597 return ret, nil
40598 }
40599
40600 type OrganizationsInstancesDeleteCall struct {
40601 s *Service
40602 name string
40603 urlParams_ gensupport.URLParams
40604 ctx_ context.Context
40605 header_ http.Header
40606 }
40607
40608
40609
40610
40611
40612
40613
40614 func (r *OrganizationsInstancesService) Delete(name string) *OrganizationsInstancesDeleteCall {
40615 c := &OrganizationsInstancesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40616 c.name = name
40617 return c
40618 }
40619
40620
40621
40622
40623 func (c *OrganizationsInstancesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesDeleteCall {
40624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40625 return c
40626 }
40627
40628
40629 func (c *OrganizationsInstancesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesDeleteCall {
40630 c.ctx_ = ctx
40631 return c
40632 }
40633
40634
40635
40636 func (c *OrganizationsInstancesDeleteCall) Header() http.Header {
40637 if c.header_ == nil {
40638 c.header_ = make(http.Header)
40639 }
40640 return c.header_
40641 }
40642
40643 func (c *OrganizationsInstancesDeleteCall) doRequest(alt string) (*http.Response, error) {
40644 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40645 var body io.Reader = nil
40646 c.urlParams_.Set("alt", alt)
40647 c.urlParams_.Set("prettyPrint", "false")
40648 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40649 urls += "?" + c.urlParams_.Encode()
40650 req, err := http.NewRequest("DELETE", urls, body)
40651 if err != nil {
40652 return nil, err
40653 }
40654 req.Header = reqHeaders
40655 googleapi.Expand(req.URL, map[string]string{
40656 "name": c.name,
40657 })
40658 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40659 }
40660
40661
40662
40663
40664
40665
40666
40667 func (c *OrganizationsInstancesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
40668 gensupport.SetOptions(c.urlParams_, opts...)
40669 res, err := c.doRequest("json")
40670 if res != nil && res.StatusCode == http.StatusNotModified {
40671 if res.Body != nil {
40672 res.Body.Close()
40673 }
40674 return nil, gensupport.WrapError(&googleapi.Error{
40675 Code: res.StatusCode,
40676 Header: res.Header,
40677 })
40678 }
40679 if err != nil {
40680 return nil, err
40681 }
40682 defer googleapi.CloseBody(res)
40683 if err := googleapi.CheckResponse(res); err != nil {
40684 return nil, gensupport.WrapError(err)
40685 }
40686 ret := &GoogleLongrunningOperation{
40687 ServerResponse: googleapi.ServerResponse{
40688 Header: res.Header,
40689 HTTPStatusCode: res.StatusCode,
40690 },
40691 }
40692 target := &ret
40693 if err := gensupport.DecodeResponse(target, res); err != nil {
40694 return nil, err
40695 }
40696 return ret, nil
40697 }
40698
40699 type OrganizationsInstancesGetCall struct {
40700 s *Service
40701 name string
40702 urlParams_ gensupport.URLParams
40703 ifNoneMatch_ string
40704 ctx_ context.Context
40705 header_ http.Header
40706 }
40707
40708
40709
40710
40711
40712
40713 func (r *OrganizationsInstancesService) Get(name string) *OrganizationsInstancesGetCall {
40714 c := &OrganizationsInstancesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40715 c.name = name
40716 return c
40717 }
40718
40719
40720
40721
40722 func (c *OrganizationsInstancesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesGetCall {
40723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40724 return c
40725 }
40726
40727
40728
40729
40730 func (c *OrganizationsInstancesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesGetCall {
40731 c.ifNoneMatch_ = entityTag
40732 return c
40733 }
40734
40735
40736 func (c *OrganizationsInstancesGetCall) Context(ctx context.Context) *OrganizationsInstancesGetCall {
40737 c.ctx_ = ctx
40738 return c
40739 }
40740
40741
40742
40743 func (c *OrganizationsInstancesGetCall) Header() http.Header {
40744 if c.header_ == nil {
40745 c.header_ = make(http.Header)
40746 }
40747 return c.header_
40748 }
40749
40750 func (c *OrganizationsInstancesGetCall) doRequest(alt string) (*http.Response, error) {
40751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40752 if c.ifNoneMatch_ != "" {
40753 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40754 }
40755 var body io.Reader = nil
40756 c.urlParams_.Set("alt", alt)
40757 c.urlParams_.Set("prettyPrint", "false")
40758 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
40759 urls += "?" + c.urlParams_.Encode()
40760 req, err := http.NewRequest("GET", urls, body)
40761 if err != nil {
40762 return nil, err
40763 }
40764 req.Header = reqHeaders
40765 googleapi.Expand(req.URL, map[string]string{
40766 "name": c.name,
40767 })
40768 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40769 }
40770
40771
40772
40773
40774
40775
40776
40777 func (c *OrganizationsInstancesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Instance, error) {
40778 gensupport.SetOptions(c.urlParams_, opts...)
40779 res, err := c.doRequest("json")
40780 if res != nil && res.StatusCode == http.StatusNotModified {
40781 if res.Body != nil {
40782 res.Body.Close()
40783 }
40784 return nil, gensupport.WrapError(&googleapi.Error{
40785 Code: res.StatusCode,
40786 Header: res.Header,
40787 })
40788 }
40789 if err != nil {
40790 return nil, err
40791 }
40792 defer googleapi.CloseBody(res)
40793 if err := googleapi.CheckResponse(res); err != nil {
40794 return nil, gensupport.WrapError(err)
40795 }
40796 ret := &GoogleCloudApigeeV1Instance{
40797 ServerResponse: googleapi.ServerResponse{
40798 Header: res.Header,
40799 HTTPStatusCode: res.StatusCode,
40800 },
40801 }
40802 target := &ret
40803 if err := gensupport.DecodeResponse(target, res); err != nil {
40804 return nil, err
40805 }
40806 return ret, nil
40807 }
40808
40809 type OrganizationsInstancesListCall struct {
40810 s *Service
40811 parent string
40812 urlParams_ gensupport.URLParams
40813 ifNoneMatch_ string
40814 ctx_ context.Context
40815 header_ http.Header
40816 }
40817
40818
40819
40820
40821
40822
40823 func (r *OrganizationsInstancesService) List(parent string) *OrganizationsInstancesListCall {
40824 c := &OrganizationsInstancesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40825 c.parent = parent
40826 return c
40827 }
40828
40829
40830
40831 func (c *OrganizationsInstancesListCall) PageSize(pageSize int64) *OrganizationsInstancesListCall {
40832 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40833 return c
40834 }
40835
40836
40837
40838
40839 func (c *OrganizationsInstancesListCall) PageToken(pageToken string) *OrganizationsInstancesListCall {
40840 c.urlParams_.Set("pageToken", pageToken)
40841 return c
40842 }
40843
40844
40845
40846
40847 func (c *OrganizationsInstancesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesListCall {
40848 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40849 return c
40850 }
40851
40852
40853
40854
40855 func (c *OrganizationsInstancesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesListCall {
40856 c.ifNoneMatch_ = entityTag
40857 return c
40858 }
40859
40860
40861 func (c *OrganizationsInstancesListCall) Context(ctx context.Context) *OrganizationsInstancesListCall {
40862 c.ctx_ = ctx
40863 return c
40864 }
40865
40866
40867
40868 func (c *OrganizationsInstancesListCall) Header() http.Header {
40869 if c.header_ == nil {
40870 c.header_ = make(http.Header)
40871 }
40872 return c.header_
40873 }
40874
40875 func (c *OrganizationsInstancesListCall) doRequest(alt string) (*http.Response, error) {
40876 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40877 if c.ifNoneMatch_ != "" {
40878 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40879 }
40880 var body io.Reader = nil
40881 c.urlParams_.Set("alt", alt)
40882 c.urlParams_.Set("prettyPrint", "false")
40883 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/instances")
40884 urls += "?" + c.urlParams_.Encode()
40885 req, err := http.NewRequest("GET", urls, body)
40886 if err != nil {
40887 return nil, err
40888 }
40889 req.Header = reqHeaders
40890 googleapi.Expand(req.URL, map[string]string{
40891 "parent": c.parent,
40892 })
40893 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40894 }
40895
40896
40897
40898
40899
40900
40901
40902 func (c *OrganizationsInstancesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstancesResponse, error) {
40903 gensupport.SetOptions(c.urlParams_, opts...)
40904 res, err := c.doRequest("json")
40905 if res != nil && res.StatusCode == http.StatusNotModified {
40906 if res.Body != nil {
40907 res.Body.Close()
40908 }
40909 return nil, gensupport.WrapError(&googleapi.Error{
40910 Code: res.StatusCode,
40911 Header: res.Header,
40912 })
40913 }
40914 if err != nil {
40915 return nil, err
40916 }
40917 defer googleapi.CloseBody(res)
40918 if err := googleapi.CheckResponse(res); err != nil {
40919 return nil, gensupport.WrapError(err)
40920 }
40921 ret := &GoogleCloudApigeeV1ListInstancesResponse{
40922 ServerResponse: googleapi.ServerResponse{
40923 Header: res.Header,
40924 HTTPStatusCode: res.StatusCode,
40925 },
40926 }
40927 target := &ret
40928 if err := gensupport.DecodeResponse(target, res); err != nil {
40929 return nil, err
40930 }
40931 return ret, nil
40932 }
40933
40934
40935
40936
40937 func (c *OrganizationsInstancesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstancesResponse) error) error {
40938 c.ctx_ = ctx
40939 defer c.PageToken(c.urlParams_.Get("pageToken"))
40940 for {
40941 x, err := c.Do()
40942 if err != nil {
40943 return err
40944 }
40945 if err := f(x); err != nil {
40946 return err
40947 }
40948 if x.NextPageToken == "" {
40949 return nil
40950 }
40951 c.PageToken(x.NextPageToken)
40952 }
40953 }
40954
40955 type OrganizationsInstancesPatchCall struct {
40956 s *Service
40957 name string
40958 googlecloudapigeev1instance *GoogleCloudApigeeV1Instance
40959 urlParams_ gensupport.URLParams
40960 ctx_ context.Context
40961 header_ http.Header
40962 }
40963
40964
40965
40966
40967
40968
40969
40970 func (r *OrganizationsInstancesService) Patch(name string, googlecloudapigeev1instance *GoogleCloudApigeeV1Instance) *OrganizationsInstancesPatchCall {
40971 c := &OrganizationsInstancesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40972 c.name = name
40973 c.googlecloudapigeev1instance = googlecloudapigeev1instance
40974 return c
40975 }
40976
40977
40978
40979 func (c *OrganizationsInstancesPatchCall) UpdateMask(updateMask string) *OrganizationsInstancesPatchCall {
40980 c.urlParams_.Set("updateMask", updateMask)
40981 return c
40982 }
40983
40984
40985
40986
40987 func (c *OrganizationsInstancesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInstancesPatchCall {
40988 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40989 return c
40990 }
40991
40992
40993 func (c *OrganizationsInstancesPatchCall) Context(ctx context.Context) *OrganizationsInstancesPatchCall {
40994 c.ctx_ = ctx
40995 return c
40996 }
40997
40998
40999
41000 func (c *OrganizationsInstancesPatchCall) Header() http.Header {
41001 if c.header_ == nil {
41002 c.header_ = make(http.Header)
41003 }
41004 return c.header_
41005 }
41006
41007 func (c *OrganizationsInstancesPatchCall) doRequest(alt string) (*http.Response, error) {
41008 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41009 var body io.Reader = nil
41010 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instance)
41011 if err != nil {
41012 return nil, err
41013 }
41014 c.urlParams_.Set("alt", alt)
41015 c.urlParams_.Set("prettyPrint", "false")
41016 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41017 urls += "?" + c.urlParams_.Encode()
41018 req, err := http.NewRequest("PATCH", urls, body)
41019 if err != nil {
41020 return nil, err
41021 }
41022 req.Header = reqHeaders
41023 googleapi.Expand(req.URL, map[string]string{
41024 "name": c.name,
41025 })
41026 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41027 }
41028
41029
41030
41031
41032
41033
41034
41035 func (c *OrganizationsInstancesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41036 gensupport.SetOptions(c.urlParams_, opts...)
41037 res, err := c.doRequest("json")
41038 if res != nil && res.StatusCode == http.StatusNotModified {
41039 if res.Body != nil {
41040 res.Body.Close()
41041 }
41042 return nil, gensupport.WrapError(&googleapi.Error{
41043 Code: res.StatusCode,
41044 Header: res.Header,
41045 })
41046 }
41047 if err != nil {
41048 return nil, err
41049 }
41050 defer googleapi.CloseBody(res)
41051 if err := googleapi.CheckResponse(res); err != nil {
41052 return nil, gensupport.WrapError(err)
41053 }
41054 ret := &GoogleLongrunningOperation{
41055 ServerResponse: googleapi.ServerResponse{
41056 Header: res.Header,
41057 HTTPStatusCode: res.StatusCode,
41058 },
41059 }
41060 target := &ret
41061 if err := gensupport.DecodeResponse(target, res); err != nil {
41062 return nil, err
41063 }
41064 return ret, nil
41065 }
41066
41067 type OrganizationsInstancesReportStatusCall struct {
41068 s *Service
41069 instance string
41070 googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest
41071 urlParams_ gensupport.URLParams
41072 ctx_ context.Context
41073 header_ http.Header
41074 }
41075
41076
41077
41078
41079
41080
41081 func (r *OrganizationsInstancesService) ReportStatus(instance string, googlecloudapigeev1reportinstancestatusrequest *GoogleCloudApigeeV1ReportInstanceStatusRequest) *OrganizationsInstancesReportStatusCall {
41082 c := &OrganizationsInstancesReportStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41083 c.instance = instance
41084 c.googlecloudapigeev1reportinstancestatusrequest = googlecloudapigeev1reportinstancestatusrequest
41085 return c
41086 }
41087
41088
41089
41090
41091 func (c *OrganizationsInstancesReportStatusCall) Fields(s ...googleapi.Field) *OrganizationsInstancesReportStatusCall {
41092 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41093 return c
41094 }
41095
41096
41097 func (c *OrganizationsInstancesReportStatusCall) Context(ctx context.Context) *OrganizationsInstancesReportStatusCall {
41098 c.ctx_ = ctx
41099 return c
41100 }
41101
41102
41103
41104 func (c *OrganizationsInstancesReportStatusCall) Header() http.Header {
41105 if c.header_ == nil {
41106 c.header_ = make(http.Header)
41107 }
41108 return c.header_
41109 }
41110
41111 func (c *OrganizationsInstancesReportStatusCall) doRequest(alt string) (*http.Response, error) {
41112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41113 var body io.Reader = nil
41114 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reportinstancestatusrequest)
41115 if err != nil {
41116 return nil, err
41117 }
41118 c.urlParams_.Set("alt", alt)
41119 c.urlParams_.Set("prettyPrint", "false")
41120 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+instance}:reportStatus")
41121 urls += "?" + c.urlParams_.Encode()
41122 req, err := http.NewRequest("POST", urls, body)
41123 if err != nil {
41124 return nil, err
41125 }
41126 req.Header = reqHeaders
41127 googleapi.Expand(req.URL, map[string]string{
41128 "instance": c.instance,
41129 })
41130 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41131 }
41132
41133
41134
41135
41136
41137
41138
41139 func (c *OrganizationsInstancesReportStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ReportInstanceStatusResponse, error) {
41140 gensupport.SetOptions(c.urlParams_, opts...)
41141 res, err := c.doRequest("json")
41142 if res != nil && res.StatusCode == http.StatusNotModified {
41143 if res.Body != nil {
41144 res.Body.Close()
41145 }
41146 return nil, gensupport.WrapError(&googleapi.Error{
41147 Code: res.StatusCode,
41148 Header: res.Header,
41149 })
41150 }
41151 if err != nil {
41152 return nil, err
41153 }
41154 defer googleapi.CloseBody(res)
41155 if err := googleapi.CheckResponse(res); err != nil {
41156 return nil, gensupport.WrapError(err)
41157 }
41158 ret := &GoogleCloudApigeeV1ReportInstanceStatusResponse{
41159 ServerResponse: googleapi.ServerResponse{
41160 Header: res.Header,
41161 HTTPStatusCode: res.StatusCode,
41162 },
41163 }
41164 target := &ret
41165 if err := gensupport.DecodeResponse(target, res); err != nil {
41166 return nil, err
41167 }
41168 return ret, nil
41169 }
41170
41171 type OrganizationsInstancesAttachmentsCreateCall struct {
41172 s *Service
41173 parent string
41174 googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment
41175 urlParams_ gensupport.URLParams
41176 ctx_ context.Context
41177 header_ http.Header
41178 }
41179
41180
41181
41182
41183
41184
41185 func (r *OrganizationsInstancesAttachmentsService) Create(parent string, googlecloudapigeev1instanceattachment *GoogleCloudApigeeV1InstanceAttachment) *OrganizationsInstancesAttachmentsCreateCall {
41186 c := &OrganizationsInstancesAttachmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41187 c.parent = parent
41188 c.googlecloudapigeev1instanceattachment = googlecloudapigeev1instanceattachment
41189 return c
41190 }
41191
41192
41193
41194
41195 func (c *OrganizationsInstancesAttachmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsCreateCall {
41196 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41197 return c
41198 }
41199
41200
41201 func (c *OrganizationsInstancesAttachmentsCreateCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsCreateCall {
41202 c.ctx_ = ctx
41203 return c
41204 }
41205
41206
41207
41208 func (c *OrganizationsInstancesAttachmentsCreateCall) Header() http.Header {
41209 if c.header_ == nil {
41210 c.header_ = make(http.Header)
41211 }
41212 return c.header_
41213 }
41214
41215 func (c *OrganizationsInstancesAttachmentsCreateCall) doRequest(alt string) (*http.Response, error) {
41216 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41217 var body io.Reader = nil
41218 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1instanceattachment)
41219 if err != nil {
41220 return nil, err
41221 }
41222 c.urlParams_.Set("alt", alt)
41223 c.urlParams_.Set("prettyPrint", "false")
41224 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
41225 urls += "?" + c.urlParams_.Encode()
41226 req, err := http.NewRequest("POST", urls, body)
41227 if err != nil {
41228 return nil, err
41229 }
41230 req.Header = reqHeaders
41231 googleapi.Expand(req.URL, map[string]string{
41232 "parent": c.parent,
41233 })
41234 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41235 }
41236
41237
41238
41239
41240
41241
41242
41243 func (c *OrganizationsInstancesAttachmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41244 gensupport.SetOptions(c.urlParams_, opts...)
41245 res, err := c.doRequest("json")
41246 if res != nil && res.StatusCode == http.StatusNotModified {
41247 if res.Body != nil {
41248 res.Body.Close()
41249 }
41250 return nil, gensupport.WrapError(&googleapi.Error{
41251 Code: res.StatusCode,
41252 Header: res.Header,
41253 })
41254 }
41255 if err != nil {
41256 return nil, err
41257 }
41258 defer googleapi.CloseBody(res)
41259 if err := googleapi.CheckResponse(res); err != nil {
41260 return nil, gensupport.WrapError(err)
41261 }
41262 ret := &GoogleLongrunningOperation{
41263 ServerResponse: googleapi.ServerResponse{
41264 Header: res.Header,
41265 HTTPStatusCode: res.StatusCode,
41266 },
41267 }
41268 target := &ret
41269 if err := gensupport.DecodeResponse(target, res); err != nil {
41270 return nil, err
41271 }
41272 return ret, nil
41273 }
41274
41275 type OrganizationsInstancesAttachmentsDeleteCall struct {
41276 s *Service
41277 name string
41278 urlParams_ gensupport.URLParams
41279 ctx_ context.Context
41280 header_ http.Header
41281 }
41282
41283
41284
41285
41286
41287 func (r *OrganizationsInstancesAttachmentsService) Delete(name string) *OrganizationsInstancesAttachmentsDeleteCall {
41288 c := &OrganizationsInstancesAttachmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41289 c.name = name
41290 return c
41291 }
41292
41293
41294
41295
41296 func (c *OrganizationsInstancesAttachmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsDeleteCall {
41297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41298 return c
41299 }
41300
41301
41302 func (c *OrganizationsInstancesAttachmentsDeleteCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsDeleteCall {
41303 c.ctx_ = ctx
41304 return c
41305 }
41306
41307
41308
41309 func (c *OrganizationsInstancesAttachmentsDeleteCall) Header() http.Header {
41310 if c.header_ == nil {
41311 c.header_ = make(http.Header)
41312 }
41313 return c.header_
41314 }
41315
41316 func (c *OrganizationsInstancesAttachmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
41317 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41318 var body io.Reader = nil
41319 c.urlParams_.Set("alt", alt)
41320 c.urlParams_.Set("prettyPrint", "false")
41321 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41322 urls += "?" + c.urlParams_.Encode()
41323 req, err := http.NewRequest("DELETE", urls, body)
41324 if err != nil {
41325 return nil, err
41326 }
41327 req.Header = reqHeaders
41328 googleapi.Expand(req.URL, map[string]string{
41329 "name": c.name,
41330 })
41331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41332 }
41333
41334
41335
41336
41337
41338
41339
41340 func (c *OrganizationsInstancesAttachmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41341 gensupport.SetOptions(c.urlParams_, opts...)
41342 res, err := c.doRequest("json")
41343 if res != nil && res.StatusCode == http.StatusNotModified {
41344 if res.Body != nil {
41345 res.Body.Close()
41346 }
41347 return nil, gensupport.WrapError(&googleapi.Error{
41348 Code: res.StatusCode,
41349 Header: res.Header,
41350 })
41351 }
41352 if err != nil {
41353 return nil, err
41354 }
41355 defer googleapi.CloseBody(res)
41356 if err := googleapi.CheckResponse(res); err != nil {
41357 return nil, gensupport.WrapError(err)
41358 }
41359 ret := &GoogleLongrunningOperation{
41360 ServerResponse: googleapi.ServerResponse{
41361 Header: res.Header,
41362 HTTPStatusCode: res.StatusCode,
41363 },
41364 }
41365 target := &ret
41366 if err := gensupport.DecodeResponse(target, res); err != nil {
41367 return nil, err
41368 }
41369 return ret, nil
41370 }
41371
41372 type OrganizationsInstancesAttachmentsGetCall struct {
41373 s *Service
41374 name string
41375 urlParams_ gensupport.URLParams
41376 ifNoneMatch_ string
41377 ctx_ context.Context
41378 header_ http.Header
41379 }
41380
41381
41382
41383
41384
41385 func (r *OrganizationsInstancesAttachmentsService) Get(name string) *OrganizationsInstancesAttachmentsGetCall {
41386 c := &OrganizationsInstancesAttachmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41387 c.name = name
41388 return c
41389 }
41390
41391
41392
41393
41394 func (c *OrganizationsInstancesAttachmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsGetCall {
41395 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41396 return c
41397 }
41398
41399
41400
41401
41402 func (c *OrganizationsInstancesAttachmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsGetCall {
41403 c.ifNoneMatch_ = entityTag
41404 return c
41405 }
41406
41407
41408 func (c *OrganizationsInstancesAttachmentsGetCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsGetCall {
41409 c.ctx_ = ctx
41410 return c
41411 }
41412
41413
41414
41415 func (c *OrganizationsInstancesAttachmentsGetCall) Header() http.Header {
41416 if c.header_ == nil {
41417 c.header_ = make(http.Header)
41418 }
41419 return c.header_
41420 }
41421
41422 func (c *OrganizationsInstancesAttachmentsGetCall) doRequest(alt string) (*http.Response, error) {
41423 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41424 if c.ifNoneMatch_ != "" {
41425 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41426 }
41427 var body io.Reader = nil
41428 c.urlParams_.Set("alt", alt)
41429 c.urlParams_.Set("prettyPrint", "false")
41430 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41431 urls += "?" + c.urlParams_.Encode()
41432 req, err := http.NewRequest("GET", urls, body)
41433 if err != nil {
41434 return nil, err
41435 }
41436 req.Header = reqHeaders
41437 googleapi.Expand(req.URL, map[string]string{
41438 "name": c.name,
41439 })
41440 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41441 }
41442
41443
41444
41445
41446
41447
41448
41449 func (c *OrganizationsInstancesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1InstanceAttachment, error) {
41450 gensupport.SetOptions(c.urlParams_, opts...)
41451 res, err := c.doRequest("json")
41452 if res != nil && res.StatusCode == http.StatusNotModified {
41453 if res.Body != nil {
41454 res.Body.Close()
41455 }
41456 return nil, gensupport.WrapError(&googleapi.Error{
41457 Code: res.StatusCode,
41458 Header: res.Header,
41459 })
41460 }
41461 if err != nil {
41462 return nil, err
41463 }
41464 defer googleapi.CloseBody(res)
41465 if err := googleapi.CheckResponse(res); err != nil {
41466 return nil, gensupport.WrapError(err)
41467 }
41468 ret := &GoogleCloudApigeeV1InstanceAttachment{
41469 ServerResponse: googleapi.ServerResponse{
41470 Header: res.Header,
41471 HTTPStatusCode: res.StatusCode,
41472 },
41473 }
41474 target := &ret
41475 if err := gensupport.DecodeResponse(target, res); err != nil {
41476 return nil, err
41477 }
41478 return ret, nil
41479 }
41480
41481 type OrganizationsInstancesAttachmentsListCall struct {
41482 s *Service
41483 parent string
41484 urlParams_ gensupport.URLParams
41485 ifNoneMatch_ string
41486 ctx_ context.Context
41487 header_ http.Header
41488 }
41489
41490
41491
41492
41493
41494
41495 func (r *OrganizationsInstancesAttachmentsService) List(parent string) *OrganizationsInstancesAttachmentsListCall {
41496 c := &OrganizationsInstancesAttachmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41497 c.parent = parent
41498 return c
41499 }
41500
41501
41502
41503 func (c *OrganizationsInstancesAttachmentsListCall) PageSize(pageSize int64) *OrganizationsInstancesAttachmentsListCall {
41504 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41505 return c
41506 }
41507
41508
41509
41510
41511 func (c *OrganizationsInstancesAttachmentsListCall) PageToken(pageToken string) *OrganizationsInstancesAttachmentsListCall {
41512 c.urlParams_.Set("pageToken", pageToken)
41513 return c
41514 }
41515
41516
41517
41518
41519 func (c *OrganizationsInstancesAttachmentsListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesAttachmentsListCall {
41520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41521 return c
41522 }
41523
41524
41525
41526
41527 func (c *OrganizationsInstancesAttachmentsListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesAttachmentsListCall {
41528 c.ifNoneMatch_ = entityTag
41529 return c
41530 }
41531
41532
41533 func (c *OrganizationsInstancesAttachmentsListCall) Context(ctx context.Context) *OrganizationsInstancesAttachmentsListCall {
41534 c.ctx_ = ctx
41535 return c
41536 }
41537
41538
41539
41540 func (c *OrganizationsInstancesAttachmentsListCall) Header() http.Header {
41541 if c.header_ == nil {
41542 c.header_ = make(http.Header)
41543 }
41544 return c.header_
41545 }
41546
41547 func (c *OrganizationsInstancesAttachmentsListCall) doRequest(alt string) (*http.Response, error) {
41548 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41549 if c.ifNoneMatch_ != "" {
41550 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41551 }
41552 var body io.Reader = nil
41553 c.urlParams_.Set("alt", alt)
41554 c.urlParams_.Set("prettyPrint", "false")
41555 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attachments")
41556 urls += "?" + c.urlParams_.Encode()
41557 req, err := http.NewRequest("GET", urls, body)
41558 if err != nil {
41559 return nil, err
41560 }
41561 req.Header = reqHeaders
41562 googleapi.Expand(req.URL, map[string]string{
41563 "parent": c.parent,
41564 })
41565 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41566 }
41567
41568
41569
41570
41571
41572
41573
41574 func (c *OrganizationsInstancesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListInstanceAttachmentsResponse, error) {
41575 gensupport.SetOptions(c.urlParams_, opts...)
41576 res, err := c.doRequest("json")
41577 if res != nil && res.StatusCode == http.StatusNotModified {
41578 if res.Body != nil {
41579 res.Body.Close()
41580 }
41581 return nil, gensupport.WrapError(&googleapi.Error{
41582 Code: res.StatusCode,
41583 Header: res.Header,
41584 })
41585 }
41586 if err != nil {
41587 return nil, err
41588 }
41589 defer googleapi.CloseBody(res)
41590 if err := googleapi.CheckResponse(res); err != nil {
41591 return nil, gensupport.WrapError(err)
41592 }
41593 ret := &GoogleCloudApigeeV1ListInstanceAttachmentsResponse{
41594 ServerResponse: googleapi.ServerResponse{
41595 Header: res.Header,
41596 HTTPStatusCode: res.StatusCode,
41597 },
41598 }
41599 target := &ret
41600 if err := gensupport.DecodeResponse(target, res); err != nil {
41601 return nil, err
41602 }
41603 return ret, nil
41604 }
41605
41606
41607
41608
41609 func (c *OrganizationsInstancesAttachmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListInstanceAttachmentsResponse) error) error {
41610 c.ctx_ = ctx
41611 defer c.PageToken(c.urlParams_.Get("pageToken"))
41612 for {
41613 x, err := c.Do()
41614 if err != nil {
41615 return err
41616 }
41617 if err := f(x); err != nil {
41618 return err
41619 }
41620 if x.NextPageToken == "" {
41621 return nil
41622 }
41623 c.PageToken(x.NextPageToken)
41624 }
41625 }
41626
41627 type OrganizationsInstancesCanaryevaluationsCreateCall struct {
41628 s *Service
41629 parent string
41630 googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation
41631 urlParams_ gensupport.URLParams
41632 ctx_ context.Context
41633 header_ http.Header
41634 }
41635
41636
41637
41638
41639
41640 func (r *OrganizationsInstancesCanaryevaluationsService) Create(parent string, googlecloudapigeev1canaryevaluation *GoogleCloudApigeeV1CanaryEvaluation) *OrganizationsInstancesCanaryevaluationsCreateCall {
41641 c := &OrganizationsInstancesCanaryevaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41642 c.parent = parent
41643 c.googlecloudapigeev1canaryevaluation = googlecloudapigeev1canaryevaluation
41644 return c
41645 }
41646
41647
41648
41649
41650 func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsCreateCall {
41651 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41652 return c
41653 }
41654
41655
41656 func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsCreateCall {
41657 c.ctx_ = ctx
41658 return c
41659 }
41660
41661
41662
41663 func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Header() http.Header {
41664 if c.header_ == nil {
41665 c.header_ = make(http.Header)
41666 }
41667 return c.header_
41668 }
41669
41670 func (c *OrganizationsInstancesCanaryevaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
41671 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41672 var body io.Reader = nil
41673 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1canaryevaluation)
41674 if err != nil {
41675 return nil, err
41676 }
41677 c.urlParams_.Set("alt", alt)
41678 c.urlParams_.Set("prettyPrint", "false")
41679 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/canaryevaluations")
41680 urls += "?" + c.urlParams_.Encode()
41681 req, err := http.NewRequest("POST", urls, body)
41682 if err != nil {
41683 return nil, err
41684 }
41685 req.Header = reqHeaders
41686 googleapi.Expand(req.URL, map[string]string{
41687 "parent": c.parent,
41688 })
41689 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41690 }
41691
41692
41693
41694
41695
41696
41697
41698 func (c *OrganizationsInstancesCanaryevaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41699 gensupport.SetOptions(c.urlParams_, opts...)
41700 res, err := c.doRequest("json")
41701 if res != nil && res.StatusCode == http.StatusNotModified {
41702 if res.Body != nil {
41703 res.Body.Close()
41704 }
41705 return nil, gensupport.WrapError(&googleapi.Error{
41706 Code: res.StatusCode,
41707 Header: res.Header,
41708 })
41709 }
41710 if err != nil {
41711 return nil, err
41712 }
41713 defer googleapi.CloseBody(res)
41714 if err := googleapi.CheckResponse(res); err != nil {
41715 return nil, gensupport.WrapError(err)
41716 }
41717 ret := &GoogleLongrunningOperation{
41718 ServerResponse: googleapi.ServerResponse{
41719 Header: res.Header,
41720 HTTPStatusCode: res.StatusCode,
41721 },
41722 }
41723 target := &ret
41724 if err := gensupport.DecodeResponse(target, res); err != nil {
41725 return nil, err
41726 }
41727 return ret, nil
41728 }
41729
41730 type OrganizationsInstancesCanaryevaluationsGetCall struct {
41731 s *Service
41732 name string
41733 urlParams_ gensupport.URLParams
41734 ifNoneMatch_ string
41735 ctx_ context.Context
41736 header_ http.Header
41737 }
41738
41739
41740
41741
41742
41743 func (r *OrganizationsInstancesCanaryevaluationsService) Get(name string) *OrganizationsInstancesCanaryevaluationsGetCall {
41744 c := &OrganizationsInstancesCanaryevaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41745 c.name = name
41746 return c
41747 }
41748
41749
41750
41751
41752 func (c *OrganizationsInstancesCanaryevaluationsGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesCanaryevaluationsGetCall {
41753 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41754 return c
41755 }
41756
41757
41758
41759
41760 func (c *OrganizationsInstancesCanaryevaluationsGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesCanaryevaluationsGetCall {
41761 c.ifNoneMatch_ = entityTag
41762 return c
41763 }
41764
41765
41766 func (c *OrganizationsInstancesCanaryevaluationsGetCall) Context(ctx context.Context) *OrganizationsInstancesCanaryevaluationsGetCall {
41767 c.ctx_ = ctx
41768 return c
41769 }
41770
41771
41772
41773 func (c *OrganizationsInstancesCanaryevaluationsGetCall) Header() http.Header {
41774 if c.header_ == nil {
41775 c.header_ = make(http.Header)
41776 }
41777 return c.header_
41778 }
41779
41780 func (c *OrganizationsInstancesCanaryevaluationsGetCall) doRequest(alt string) (*http.Response, error) {
41781 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41782 if c.ifNoneMatch_ != "" {
41783 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41784 }
41785 var body io.Reader = nil
41786 c.urlParams_.Set("alt", alt)
41787 c.urlParams_.Set("prettyPrint", "false")
41788 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
41789 urls += "?" + c.urlParams_.Encode()
41790 req, err := http.NewRequest("GET", urls, body)
41791 if err != nil {
41792 return nil, err
41793 }
41794 req.Header = reqHeaders
41795 googleapi.Expand(req.URL, map[string]string{
41796 "name": c.name,
41797 })
41798 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41799 }
41800
41801
41802
41803
41804
41805
41806
41807 func (c *OrganizationsInstancesCanaryevaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CanaryEvaluation, error) {
41808 gensupport.SetOptions(c.urlParams_, opts...)
41809 res, err := c.doRequest("json")
41810 if res != nil && res.StatusCode == http.StatusNotModified {
41811 if res.Body != nil {
41812 res.Body.Close()
41813 }
41814 return nil, gensupport.WrapError(&googleapi.Error{
41815 Code: res.StatusCode,
41816 Header: res.Header,
41817 })
41818 }
41819 if err != nil {
41820 return nil, err
41821 }
41822 defer googleapi.CloseBody(res)
41823 if err := googleapi.CheckResponse(res); err != nil {
41824 return nil, gensupport.WrapError(err)
41825 }
41826 ret := &GoogleCloudApigeeV1CanaryEvaluation{
41827 ServerResponse: googleapi.ServerResponse{
41828 Header: res.Header,
41829 HTTPStatusCode: res.StatusCode,
41830 },
41831 }
41832 target := &ret
41833 if err := gensupport.DecodeResponse(target, res); err != nil {
41834 return nil, err
41835 }
41836 return ret, nil
41837 }
41838
41839 type OrganizationsInstancesNatAddressesActivateCall struct {
41840 s *Service
41841 name string
41842 googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest
41843 urlParams_ gensupport.URLParams
41844 ctx_ context.Context
41845 header_ http.Header
41846 }
41847
41848
41849
41850
41851
41852
41853
41854 func (r *OrganizationsInstancesNatAddressesService) Activate(name string, googlecloudapigeev1activatenataddressrequest *GoogleCloudApigeeV1ActivateNatAddressRequest) *OrganizationsInstancesNatAddressesActivateCall {
41855 c := &OrganizationsInstancesNatAddressesActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41856 c.name = name
41857 c.googlecloudapigeev1activatenataddressrequest = googlecloudapigeev1activatenataddressrequest
41858 return c
41859 }
41860
41861
41862
41863
41864 func (c *OrganizationsInstancesNatAddressesActivateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesActivateCall {
41865 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41866 return c
41867 }
41868
41869
41870 func (c *OrganizationsInstancesNatAddressesActivateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesActivateCall {
41871 c.ctx_ = ctx
41872 return c
41873 }
41874
41875
41876
41877 func (c *OrganizationsInstancesNatAddressesActivateCall) Header() http.Header {
41878 if c.header_ == nil {
41879 c.header_ = make(http.Header)
41880 }
41881 return c.header_
41882 }
41883
41884 func (c *OrganizationsInstancesNatAddressesActivateCall) doRequest(alt string) (*http.Response, error) {
41885 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41886 var body io.Reader = nil
41887 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1activatenataddressrequest)
41888 if err != nil {
41889 return nil, err
41890 }
41891 c.urlParams_.Set("alt", alt)
41892 c.urlParams_.Set("prettyPrint", "false")
41893 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:activate")
41894 urls += "?" + c.urlParams_.Encode()
41895 req, err := http.NewRequest("POST", urls, body)
41896 if err != nil {
41897 return nil, err
41898 }
41899 req.Header = reqHeaders
41900 googleapi.Expand(req.URL, map[string]string{
41901 "name": c.name,
41902 })
41903 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41904 }
41905
41906
41907
41908
41909
41910
41911
41912 func (c *OrganizationsInstancesNatAddressesActivateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41913 gensupport.SetOptions(c.urlParams_, opts...)
41914 res, err := c.doRequest("json")
41915 if res != nil && res.StatusCode == http.StatusNotModified {
41916 if res.Body != nil {
41917 res.Body.Close()
41918 }
41919 return nil, gensupport.WrapError(&googleapi.Error{
41920 Code: res.StatusCode,
41921 Header: res.Header,
41922 })
41923 }
41924 if err != nil {
41925 return nil, err
41926 }
41927 defer googleapi.CloseBody(res)
41928 if err := googleapi.CheckResponse(res); err != nil {
41929 return nil, gensupport.WrapError(err)
41930 }
41931 ret := &GoogleLongrunningOperation{
41932 ServerResponse: googleapi.ServerResponse{
41933 Header: res.Header,
41934 HTTPStatusCode: res.StatusCode,
41935 },
41936 }
41937 target := &ret
41938 if err := gensupport.DecodeResponse(target, res); err != nil {
41939 return nil, err
41940 }
41941 return ret, nil
41942 }
41943
41944 type OrganizationsInstancesNatAddressesCreateCall struct {
41945 s *Service
41946 parent string
41947 googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress
41948 urlParams_ gensupport.URLParams
41949 ctx_ context.Context
41950 header_ http.Header
41951 }
41952
41953
41954
41955
41956
41957
41958
41959
41960
41961 func (r *OrganizationsInstancesNatAddressesService) Create(parent string, googlecloudapigeev1nataddress *GoogleCloudApigeeV1NatAddress) *OrganizationsInstancesNatAddressesCreateCall {
41962 c := &OrganizationsInstancesNatAddressesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41963 c.parent = parent
41964 c.googlecloudapigeev1nataddress = googlecloudapigeev1nataddress
41965 return c
41966 }
41967
41968
41969
41970
41971 func (c *OrganizationsInstancesNatAddressesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesCreateCall {
41972 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41973 return c
41974 }
41975
41976
41977 func (c *OrganizationsInstancesNatAddressesCreateCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesCreateCall {
41978 c.ctx_ = ctx
41979 return c
41980 }
41981
41982
41983
41984 func (c *OrganizationsInstancesNatAddressesCreateCall) Header() http.Header {
41985 if c.header_ == nil {
41986 c.header_ = make(http.Header)
41987 }
41988 return c.header_
41989 }
41990
41991 func (c *OrganizationsInstancesNatAddressesCreateCall) doRequest(alt string) (*http.Response, error) {
41992 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41993 var body io.Reader = nil
41994 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1nataddress)
41995 if err != nil {
41996 return nil, err
41997 }
41998 c.urlParams_.Set("alt", alt)
41999 c.urlParams_.Set("prettyPrint", "false")
42000 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
42001 urls += "?" + c.urlParams_.Encode()
42002 req, err := http.NewRequest("POST", urls, body)
42003 if err != nil {
42004 return nil, err
42005 }
42006 req.Header = reqHeaders
42007 googleapi.Expand(req.URL, map[string]string{
42008 "parent": c.parent,
42009 })
42010 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42011 }
42012
42013
42014
42015
42016
42017
42018
42019 func (c *OrganizationsInstancesNatAddressesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42020 gensupport.SetOptions(c.urlParams_, opts...)
42021 res, err := c.doRequest("json")
42022 if res != nil && res.StatusCode == http.StatusNotModified {
42023 if res.Body != nil {
42024 res.Body.Close()
42025 }
42026 return nil, gensupport.WrapError(&googleapi.Error{
42027 Code: res.StatusCode,
42028 Header: res.Header,
42029 })
42030 }
42031 if err != nil {
42032 return nil, err
42033 }
42034 defer googleapi.CloseBody(res)
42035 if err := googleapi.CheckResponse(res); err != nil {
42036 return nil, gensupport.WrapError(err)
42037 }
42038 ret := &GoogleLongrunningOperation{
42039 ServerResponse: googleapi.ServerResponse{
42040 Header: res.Header,
42041 HTTPStatusCode: res.StatusCode,
42042 },
42043 }
42044 target := &ret
42045 if err := gensupport.DecodeResponse(target, res); err != nil {
42046 return nil, err
42047 }
42048 return ret, nil
42049 }
42050
42051 type OrganizationsInstancesNatAddressesDeleteCall struct {
42052 s *Service
42053 name string
42054 urlParams_ gensupport.URLParams
42055 ctx_ context.Context
42056 header_ http.Header
42057 }
42058
42059
42060
42061
42062
42063
42064
42065
42066 func (r *OrganizationsInstancesNatAddressesService) Delete(name string) *OrganizationsInstancesNatAddressesDeleteCall {
42067 c := &OrganizationsInstancesNatAddressesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42068 c.name = name
42069 return c
42070 }
42071
42072
42073
42074
42075 func (c *OrganizationsInstancesNatAddressesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesDeleteCall {
42076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42077 return c
42078 }
42079
42080
42081 func (c *OrganizationsInstancesNatAddressesDeleteCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesDeleteCall {
42082 c.ctx_ = ctx
42083 return c
42084 }
42085
42086
42087
42088 func (c *OrganizationsInstancesNatAddressesDeleteCall) Header() http.Header {
42089 if c.header_ == nil {
42090 c.header_ = make(http.Header)
42091 }
42092 return c.header_
42093 }
42094
42095 func (c *OrganizationsInstancesNatAddressesDeleteCall) doRequest(alt string) (*http.Response, error) {
42096 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42097 var body io.Reader = nil
42098 c.urlParams_.Set("alt", alt)
42099 c.urlParams_.Set("prettyPrint", "false")
42100 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42101 urls += "?" + c.urlParams_.Encode()
42102 req, err := http.NewRequest("DELETE", urls, body)
42103 if err != nil {
42104 return nil, err
42105 }
42106 req.Header = reqHeaders
42107 googleapi.Expand(req.URL, map[string]string{
42108 "name": c.name,
42109 })
42110 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42111 }
42112
42113
42114
42115
42116
42117
42118
42119 func (c *OrganizationsInstancesNatAddressesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42120 gensupport.SetOptions(c.urlParams_, opts...)
42121 res, err := c.doRequest("json")
42122 if res != nil && res.StatusCode == http.StatusNotModified {
42123 if res.Body != nil {
42124 res.Body.Close()
42125 }
42126 return nil, gensupport.WrapError(&googleapi.Error{
42127 Code: res.StatusCode,
42128 Header: res.Header,
42129 })
42130 }
42131 if err != nil {
42132 return nil, err
42133 }
42134 defer googleapi.CloseBody(res)
42135 if err := googleapi.CheckResponse(res); err != nil {
42136 return nil, gensupport.WrapError(err)
42137 }
42138 ret := &GoogleLongrunningOperation{
42139 ServerResponse: googleapi.ServerResponse{
42140 Header: res.Header,
42141 HTTPStatusCode: res.StatusCode,
42142 },
42143 }
42144 target := &ret
42145 if err := gensupport.DecodeResponse(target, res); err != nil {
42146 return nil, err
42147 }
42148 return ret, nil
42149 }
42150
42151 type OrganizationsInstancesNatAddressesGetCall struct {
42152 s *Service
42153 name string
42154 urlParams_ gensupport.URLParams
42155 ifNoneMatch_ string
42156 ctx_ context.Context
42157 header_ http.Header
42158 }
42159
42160
42161
42162
42163
42164
42165
42166 func (r *OrganizationsInstancesNatAddressesService) Get(name string) *OrganizationsInstancesNatAddressesGetCall {
42167 c := &OrganizationsInstancesNatAddressesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42168 c.name = name
42169 return c
42170 }
42171
42172
42173
42174
42175 func (c *OrganizationsInstancesNatAddressesGetCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesGetCall {
42176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42177 return c
42178 }
42179
42180
42181
42182
42183 func (c *OrganizationsInstancesNatAddressesGetCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesGetCall {
42184 c.ifNoneMatch_ = entityTag
42185 return c
42186 }
42187
42188
42189 func (c *OrganizationsInstancesNatAddressesGetCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesGetCall {
42190 c.ctx_ = ctx
42191 return c
42192 }
42193
42194
42195
42196 func (c *OrganizationsInstancesNatAddressesGetCall) Header() http.Header {
42197 if c.header_ == nil {
42198 c.header_ = make(http.Header)
42199 }
42200 return c.header_
42201 }
42202
42203 func (c *OrganizationsInstancesNatAddressesGetCall) doRequest(alt string) (*http.Response, error) {
42204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42205 if c.ifNoneMatch_ != "" {
42206 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42207 }
42208 var body io.Reader = nil
42209 c.urlParams_.Set("alt", alt)
42210 c.urlParams_.Set("prettyPrint", "false")
42211 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42212 urls += "?" + c.urlParams_.Encode()
42213 req, err := http.NewRequest("GET", urls, body)
42214 if err != nil {
42215 return nil, err
42216 }
42217 req.Header = reqHeaders
42218 googleapi.Expand(req.URL, map[string]string{
42219 "name": c.name,
42220 })
42221 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42222 }
42223
42224
42225
42226
42227
42228
42229
42230 func (c *OrganizationsInstancesNatAddressesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1NatAddress, error) {
42231 gensupport.SetOptions(c.urlParams_, opts...)
42232 res, err := c.doRequest("json")
42233 if res != nil && res.StatusCode == http.StatusNotModified {
42234 if res.Body != nil {
42235 res.Body.Close()
42236 }
42237 return nil, gensupport.WrapError(&googleapi.Error{
42238 Code: res.StatusCode,
42239 Header: res.Header,
42240 })
42241 }
42242 if err != nil {
42243 return nil, err
42244 }
42245 defer googleapi.CloseBody(res)
42246 if err := googleapi.CheckResponse(res); err != nil {
42247 return nil, gensupport.WrapError(err)
42248 }
42249 ret := &GoogleCloudApigeeV1NatAddress{
42250 ServerResponse: googleapi.ServerResponse{
42251 Header: res.Header,
42252 HTTPStatusCode: res.StatusCode,
42253 },
42254 }
42255 target := &ret
42256 if err := gensupport.DecodeResponse(target, res); err != nil {
42257 return nil, err
42258 }
42259 return ret, nil
42260 }
42261
42262 type OrganizationsInstancesNatAddressesListCall struct {
42263 s *Service
42264 parent string
42265 urlParams_ gensupport.URLParams
42266 ifNoneMatch_ string
42267 ctx_ context.Context
42268 header_ http.Header
42269 }
42270
42271
42272
42273
42274
42275
42276 func (r *OrganizationsInstancesNatAddressesService) List(parent string) *OrganizationsInstancesNatAddressesListCall {
42277 c := &OrganizationsInstancesNatAddressesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42278 c.parent = parent
42279 return c
42280 }
42281
42282
42283
42284 func (c *OrganizationsInstancesNatAddressesListCall) PageSize(pageSize int64) *OrganizationsInstancesNatAddressesListCall {
42285 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42286 return c
42287 }
42288
42289
42290
42291
42292 func (c *OrganizationsInstancesNatAddressesListCall) PageToken(pageToken string) *OrganizationsInstancesNatAddressesListCall {
42293 c.urlParams_.Set("pageToken", pageToken)
42294 return c
42295 }
42296
42297
42298
42299
42300 func (c *OrganizationsInstancesNatAddressesListCall) Fields(s ...googleapi.Field) *OrganizationsInstancesNatAddressesListCall {
42301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42302 return c
42303 }
42304
42305
42306
42307
42308 func (c *OrganizationsInstancesNatAddressesListCall) IfNoneMatch(entityTag string) *OrganizationsInstancesNatAddressesListCall {
42309 c.ifNoneMatch_ = entityTag
42310 return c
42311 }
42312
42313
42314 func (c *OrganizationsInstancesNatAddressesListCall) Context(ctx context.Context) *OrganizationsInstancesNatAddressesListCall {
42315 c.ctx_ = ctx
42316 return c
42317 }
42318
42319
42320
42321 func (c *OrganizationsInstancesNatAddressesListCall) Header() http.Header {
42322 if c.header_ == nil {
42323 c.header_ = make(http.Header)
42324 }
42325 return c.header_
42326 }
42327
42328 func (c *OrganizationsInstancesNatAddressesListCall) doRequest(alt string) (*http.Response, error) {
42329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42330 if c.ifNoneMatch_ != "" {
42331 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42332 }
42333 var body io.Reader = nil
42334 c.urlParams_.Set("alt", alt)
42335 c.urlParams_.Set("prettyPrint", "false")
42336 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/natAddresses")
42337 urls += "?" + c.urlParams_.Encode()
42338 req, err := http.NewRequest("GET", urls, body)
42339 if err != nil {
42340 return nil, err
42341 }
42342 req.Header = reqHeaders
42343 googleapi.Expand(req.URL, map[string]string{
42344 "parent": c.parent,
42345 })
42346 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42347 }
42348
42349
42350
42351
42352
42353
42354
42355 func (c *OrganizationsInstancesNatAddressesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListNatAddressesResponse, error) {
42356 gensupport.SetOptions(c.urlParams_, opts...)
42357 res, err := c.doRequest("json")
42358 if res != nil && res.StatusCode == http.StatusNotModified {
42359 if res.Body != nil {
42360 res.Body.Close()
42361 }
42362 return nil, gensupport.WrapError(&googleapi.Error{
42363 Code: res.StatusCode,
42364 Header: res.Header,
42365 })
42366 }
42367 if err != nil {
42368 return nil, err
42369 }
42370 defer googleapi.CloseBody(res)
42371 if err := googleapi.CheckResponse(res); err != nil {
42372 return nil, gensupport.WrapError(err)
42373 }
42374 ret := &GoogleCloudApigeeV1ListNatAddressesResponse{
42375 ServerResponse: googleapi.ServerResponse{
42376 Header: res.Header,
42377 HTTPStatusCode: res.StatusCode,
42378 },
42379 }
42380 target := &ret
42381 if err := gensupport.DecodeResponse(target, res); err != nil {
42382 return nil, err
42383 }
42384 return ret, nil
42385 }
42386
42387
42388
42389
42390 func (c *OrganizationsInstancesNatAddressesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListNatAddressesResponse) error) error {
42391 c.ctx_ = ctx
42392 defer c.PageToken(c.urlParams_.Get("pageToken"))
42393 for {
42394 x, err := c.Do()
42395 if err != nil {
42396 return err
42397 }
42398 if err := f(x); err != nil {
42399 return err
42400 }
42401 if x.NextPageToken == "" {
42402 return nil
42403 }
42404 c.PageToken(x.NextPageToken)
42405 }
42406 }
42407
42408 type OrganizationsKeyvaluemapsCreateCall struct {
42409 s *Service
42410 parent string
42411 googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
42412 urlParams_ gensupport.URLParams
42413 ctx_ context.Context
42414 header_ http.Header
42415 }
42416
42417
42418
42419
42420
42421 func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
42422 c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42423 c.parent = parent
42424 c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
42425 return c
42426 }
42427
42428
42429
42430
42431 func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
42432 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42433 return c
42434 }
42435
42436
42437 func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
42438 c.ctx_ = ctx
42439 return c
42440 }
42441
42442
42443
42444 func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
42445 if c.header_ == nil {
42446 c.header_ = make(http.Header)
42447 }
42448 return c.header_
42449 }
42450
42451 func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
42452 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42453 var body io.Reader = nil
42454 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
42455 if err != nil {
42456 return nil, err
42457 }
42458 c.urlParams_.Set("alt", alt)
42459 c.urlParams_.Set("prettyPrint", "false")
42460 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
42461 urls += "?" + c.urlParams_.Encode()
42462 req, err := http.NewRequest("POST", urls, body)
42463 if err != nil {
42464 return nil, err
42465 }
42466 req.Header = reqHeaders
42467 googleapi.Expand(req.URL, map[string]string{
42468 "parent": c.parent,
42469 })
42470 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42471 }
42472
42473
42474
42475
42476
42477
42478
42479 func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
42480 gensupport.SetOptions(c.urlParams_, opts...)
42481 res, err := c.doRequest("json")
42482 if res != nil && res.StatusCode == http.StatusNotModified {
42483 if res.Body != nil {
42484 res.Body.Close()
42485 }
42486 return nil, gensupport.WrapError(&googleapi.Error{
42487 Code: res.StatusCode,
42488 Header: res.Header,
42489 })
42490 }
42491 if err != nil {
42492 return nil, err
42493 }
42494 defer googleapi.CloseBody(res)
42495 if err := googleapi.CheckResponse(res); err != nil {
42496 return nil, gensupport.WrapError(err)
42497 }
42498 ret := &GoogleCloudApigeeV1KeyValueMap{
42499 ServerResponse: googleapi.ServerResponse{
42500 Header: res.Header,
42501 HTTPStatusCode: res.StatusCode,
42502 },
42503 }
42504 target := &ret
42505 if err := gensupport.DecodeResponse(target, res); err != nil {
42506 return nil, err
42507 }
42508 return ret, nil
42509 }
42510
42511 type OrganizationsKeyvaluemapsDeleteCall struct {
42512 s *Service
42513 name string
42514 urlParams_ gensupport.URLParams
42515 ctx_ context.Context
42516 header_ http.Header
42517 }
42518
42519
42520
42521
42522
42523 func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
42524 c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42525 c.name = name
42526 return c
42527 }
42528
42529
42530
42531
42532 func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
42533 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42534 return c
42535 }
42536
42537
42538 func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
42539 c.ctx_ = ctx
42540 return c
42541 }
42542
42543
42544
42545 func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
42546 if c.header_ == nil {
42547 c.header_ = make(http.Header)
42548 }
42549 return c.header_
42550 }
42551
42552 func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
42553 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42554 var body io.Reader = nil
42555 c.urlParams_.Set("alt", alt)
42556 c.urlParams_.Set("prettyPrint", "false")
42557 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42558 urls += "?" + c.urlParams_.Encode()
42559 req, err := http.NewRequest("DELETE", urls, body)
42560 if err != nil {
42561 return nil, err
42562 }
42563 req.Header = reqHeaders
42564 googleapi.Expand(req.URL, map[string]string{
42565 "name": c.name,
42566 })
42567 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42568 }
42569
42570
42571
42572
42573
42574
42575
42576 func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
42577 gensupport.SetOptions(c.urlParams_, opts...)
42578 res, err := c.doRequest("json")
42579 if res != nil && res.StatusCode == http.StatusNotModified {
42580 if res.Body != nil {
42581 res.Body.Close()
42582 }
42583 return nil, gensupport.WrapError(&googleapi.Error{
42584 Code: res.StatusCode,
42585 Header: res.Header,
42586 })
42587 }
42588 if err != nil {
42589 return nil, err
42590 }
42591 defer googleapi.CloseBody(res)
42592 if err := googleapi.CheckResponse(res); err != nil {
42593 return nil, gensupport.WrapError(err)
42594 }
42595 ret := &GoogleCloudApigeeV1KeyValueMap{
42596 ServerResponse: googleapi.ServerResponse{
42597 Header: res.Header,
42598 HTTPStatusCode: res.StatusCode,
42599 },
42600 }
42601 target := &ret
42602 if err := gensupport.DecodeResponse(target, res); err != nil {
42603 return nil, err
42604 }
42605 return ret, nil
42606 }
42607
42608 type OrganizationsKeyvaluemapsEntriesCreateCall struct {
42609 s *Service
42610 parent string
42611 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
42612 urlParams_ gensupport.URLParams
42613 ctx_ context.Context
42614 header_ http.Header
42615 }
42616
42617
42618
42619
42620
42621
42622
42623
42624
42625
42626 func (r *OrganizationsKeyvaluemapsEntriesService) Create(parent string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsKeyvaluemapsEntriesCreateCall {
42627 c := &OrganizationsKeyvaluemapsEntriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42628 c.parent = parent
42629 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
42630 return c
42631 }
42632
42633
42634
42635
42636 func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesCreateCall {
42637 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42638 return c
42639 }
42640
42641
42642 func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesCreateCall {
42643 c.ctx_ = ctx
42644 return c
42645 }
42646
42647
42648
42649 func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Header() http.Header {
42650 if c.header_ == nil {
42651 c.header_ = make(http.Header)
42652 }
42653 return c.header_
42654 }
42655
42656 func (c *OrganizationsKeyvaluemapsEntriesCreateCall) doRequest(alt string) (*http.Response, error) {
42657 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42658 var body io.Reader = nil
42659 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
42660 if err != nil {
42661 return nil, err
42662 }
42663 c.urlParams_.Set("alt", alt)
42664 c.urlParams_.Set("prettyPrint", "false")
42665 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
42666 urls += "?" + c.urlParams_.Encode()
42667 req, err := http.NewRequest("POST", urls, body)
42668 if err != nil {
42669 return nil, err
42670 }
42671 req.Header = reqHeaders
42672 googleapi.Expand(req.URL, map[string]string{
42673 "parent": c.parent,
42674 })
42675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42676 }
42677
42678
42679
42680
42681
42682
42683
42684 func (c *OrganizationsKeyvaluemapsEntriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
42685 gensupport.SetOptions(c.urlParams_, opts...)
42686 res, err := c.doRequest("json")
42687 if res != nil && res.StatusCode == http.StatusNotModified {
42688 if res.Body != nil {
42689 res.Body.Close()
42690 }
42691 return nil, gensupport.WrapError(&googleapi.Error{
42692 Code: res.StatusCode,
42693 Header: res.Header,
42694 })
42695 }
42696 if err != nil {
42697 return nil, err
42698 }
42699 defer googleapi.CloseBody(res)
42700 if err := googleapi.CheckResponse(res); err != nil {
42701 return nil, gensupport.WrapError(err)
42702 }
42703 ret := &GoogleCloudApigeeV1KeyValueEntry{
42704 ServerResponse: googleapi.ServerResponse{
42705 Header: res.Header,
42706 HTTPStatusCode: res.StatusCode,
42707 },
42708 }
42709 target := &ret
42710 if err := gensupport.DecodeResponse(target, res); err != nil {
42711 return nil, err
42712 }
42713 return ret, nil
42714 }
42715
42716 type OrganizationsKeyvaluemapsEntriesDeleteCall struct {
42717 s *Service
42718 name string
42719 urlParams_ gensupport.URLParams
42720 ctx_ context.Context
42721 header_ http.Header
42722 }
42723
42724
42725
42726
42727
42728
42729
42730
42731
42732
42733
42734
42735
42736
42737 func (r *OrganizationsKeyvaluemapsEntriesService) Delete(name string) *OrganizationsKeyvaluemapsEntriesDeleteCall {
42738 c := &OrganizationsKeyvaluemapsEntriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42739 c.name = name
42740 return c
42741 }
42742
42743
42744
42745
42746 func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesDeleteCall {
42747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42748 return c
42749 }
42750
42751
42752 func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesDeleteCall {
42753 c.ctx_ = ctx
42754 return c
42755 }
42756
42757
42758
42759 func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Header() http.Header {
42760 if c.header_ == nil {
42761 c.header_ = make(http.Header)
42762 }
42763 return c.header_
42764 }
42765
42766 func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) doRequest(alt string) (*http.Response, error) {
42767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42768 var body io.Reader = nil
42769 c.urlParams_.Set("alt", alt)
42770 c.urlParams_.Set("prettyPrint", "false")
42771 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42772 urls += "?" + c.urlParams_.Encode()
42773 req, err := http.NewRequest("DELETE", urls, body)
42774 if err != nil {
42775 return nil, err
42776 }
42777 req.Header = reqHeaders
42778 googleapi.Expand(req.URL, map[string]string{
42779 "name": c.name,
42780 })
42781 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42782 }
42783
42784
42785
42786
42787
42788
42789
42790 func (c *OrganizationsKeyvaluemapsEntriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
42791 gensupport.SetOptions(c.urlParams_, opts...)
42792 res, err := c.doRequest("json")
42793 if res != nil && res.StatusCode == http.StatusNotModified {
42794 if res.Body != nil {
42795 res.Body.Close()
42796 }
42797 return nil, gensupport.WrapError(&googleapi.Error{
42798 Code: res.StatusCode,
42799 Header: res.Header,
42800 })
42801 }
42802 if err != nil {
42803 return nil, err
42804 }
42805 defer googleapi.CloseBody(res)
42806 if err := googleapi.CheckResponse(res); err != nil {
42807 return nil, gensupport.WrapError(err)
42808 }
42809 ret := &GoogleCloudApigeeV1KeyValueEntry{
42810 ServerResponse: googleapi.ServerResponse{
42811 Header: res.Header,
42812 HTTPStatusCode: res.StatusCode,
42813 },
42814 }
42815 target := &ret
42816 if err := gensupport.DecodeResponse(target, res); err != nil {
42817 return nil, err
42818 }
42819 return ret, nil
42820 }
42821
42822 type OrganizationsKeyvaluemapsEntriesGetCall struct {
42823 s *Service
42824 name string
42825 urlParams_ gensupport.URLParams
42826 ifNoneMatch_ string
42827 ctx_ context.Context
42828 header_ http.Header
42829 }
42830
42831
42832
42833
42834
42835
42836
42837
42838
42839
42840
42841
42842 func (r *OrganizationsKeyvaluemapsEntriesService) Get(name string) *OrganizationsKeyvaluemapsEntriesGetCall {
42843 c := &OrganizationsKeyvaluemapsEntriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42844 c.name = name
42845 return c
42846 }
42847
42848
42849
42850
42851 func (c *OrganizationsKeyvaluemapsEntriesGetCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesGetCall {
42852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42853 return c
42854 }
42855
42856
42857
42858
42859 func (c *OrganizationsKeyvaluemapsEntriesGetCall) IfNoneMatch(entityTag string) *OrganizationsKeyvaluemapsEntriesGetCall {
42860 c.ifNoneMatch_ = entityTag
42861 return c
42862 }
42863
42864
42865 func (c *OrganizationsKeyvaluemapsEntriesGetCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesGetCall {
42866 c.ctx_ = ctx
42867 return c
42868 }
42869
42870
42871
42872 func (c *OrganizationsKeyvaluemapsEntriesGetCall) Header() http.Header {
42873 if c.header_ == nil {
42874 c.header_ = make(http.Header)
42875 }
42876 return c.header_
42877 }
42878
42879 func (c *OrganizationsKeyvaluemapsEntriesGetCall) doRequest(alt string) (*http.Response, error) {
42880 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42881 if c.ifNoneMatch_ != "" {
42882 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42883 }
42884 var body io.Reader = nil
42885 c.urlParams_.Set("alt", alt)
42886 c.urlParams_.Set("prettyPrint", "false")
42887 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
42888 urls += "?" + c.urlParams_.Encode()
42889 req, err := http.NewRequest("GET", urls, body)
42890 if err != nil {
42891 return nil, err
42892 }
42893 req.Header = reqHeaders
42894 googleapi.Expand(req.URL, map[string]string{
42895 "name": c.name,
42896 })
42897 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42898 }
42899
42900
42901
42902
42903
42904
42905
42906 func (c *OrganizationsKeyvaluemapsEntriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
42907 gensupport.SetOptions(c.urlParams_, opts...)
42908 res, err := c.doRequest("json")
42909 if res != nil && res.StatusCode == http.StatusNotModified {
42910 if res.Body != nil {
42911 res.Body.Close()
42912 }
42913 return nil, gensupport.WrapError(&googleapi.Error{
42914 Code: res.StatusCode,
42915 Header: res.Header,
42916 })
42917 }
42918 if err != nil {
42919 return nil, err
42920 }
42921 defer googleapi.CloseBody(res)
42922 if err := googleapi.CheckResponse(res); err != nil {
42923 return nil, gensupport.WrapError(err)
42924 }
42925 ret := &GoogleCloudApigeeV1KeyValueEntry{
42926 ServerResponse: googleapi.ServerResponse{
42927 Header: res.Header,
42928 HTTPStatusCode: res.StatusCode,
42929 },
42930 }
42931 target := &ret
42932 if err := gensupport.DecodeResponse(target, res); err != nil {
42933 return nil, err
42934 }
42935 return ret, nil
42936 }
42937
42938 type OrganizationsKeyvaluemapsEntriesListCall struct {
42939 s *Service
42940 parent string
42941 urlParams_ gensupport.URLParams
42942 ifNoneMatch_ string
42943 ctx_ context.Context
42944 header_ http.Header
42945 }
42946
42947
42948
42949
42950
42951
42952
42953
42954
42955
42956 func (r *OrganizationsKeyvaluemapsEntriesService) List(parent string) *OrganizationsKeyvaluemapsEntriesListCall {
42957 c := &OrganizationsKeyvaluemapsEntriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42958 c.parent = parent
42959 return c
42960 }
42961
42962
42963
42964 func (c *OrganizationsKeyvaluemapsEntriesListCall) PageSize(pageSize int64) *OrganizationsKeyvaluemapsEntriesListCall {
42965 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42966 return c
42967 }
42968
42969
42970
42971
42972 func (c *OrganizationsKeyvaluemapsEntriesListCall) PageToken(pageToken string) *OrganizationsKeyvaluemapsEntriesListCall {
42973 c.urlParams_.Set("pageToken", pageToken)
42974 return c
42975 }
42976
42977
42978
42979
42980 func (c *OrganizationsKeyvaluemapsEntriesListCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesListCall {
42981 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42982 return c
42983 }
42984
42985
42986
42987
42988 func (c *OrganizationsKeyvaluemapsEntriesListCall) IfNoneMatch(entityTag string) *OrganizationsKeyvaluemapsEntriesListCall {
42989 c.ifNoneMatch_ = entityTag
42990 return c
42991 }
42992
42993
42994 func (c *OrganizationsKeyvaluemapsEntriesListCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesListCall {
42995 c.ctx_ = ctx
42996 return c
42997 }
42998
42999
43000
43001 func (c *OrganizationsKeyvaluemapsEntriesListCall) Header() http.Header {
43002 if c.header_ == nil {
43003 c.header_ = make(http.Header)
43004 }
43005 return c.header_
43006 }
43007
43008 func (c *OrganizationsKeyvaluemapsEntriesListCall) doRequest(alt string) (*http.Response, error) {
43009 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43010 if c.ifNoneMatch_ != "" {
43011 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43012 }
43013 var body io.Reader = nil
43014 c.urlParams_.Set("alt", alt)
43015 c.urlParams_.Set("prettyPrint", "false")
43016 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entries")
43017 urls += "?" + c.urlParams_.Encode()
43018 req, err := http.NewRequest("GET", urls, body)
43019 if err != nil {
43020 return nil, err
43021 }
43022 req.Header = reqHeaders
43023 googleapi.Expand(req.URL, map[string]string{
43024 "parent": c.parent,
43025 })
43026 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43027 }
43028
43029
43030
43031
43032
43033
43034
43035 func (c *OrganizationsKeyvaluemapsEntriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListKeyValueEntriesResponse, error) {
43036 gensupport.SetOptions(c.urlParams_, opts...)
43037 res, err := c.doRequest("json")
43038 if res != nil && res.StatusCode == http.StatusNotModified {
43039 if res.Body != nil {
43040 res.Body.Close()
43041 }
43042 return nil, gensupport.WrapError(&googleapi.Error{
43043 Code: res.StatusCode,
43044 Header: res.Header,
43045 })
43046 }
43047 if err != nil {
43048 return nil, err
43049 }
43050 defer googleapi.CloseBody(res)
43051 if err := googleapi.CheckResponse(res); err != nil {
43052 return nil, gensupport.WrapError(err)
43053 }
43054 ret := &GoogleCloudApigeeV1ListKeyValueEntriesResponse{
43055 ServerResponse: googleapi.ServerResponse{
43056 Header: res.Header,
43057 HTTPStatusCode: res.StatusCode,
43058 },
43059 }
43060 target := &ret
43061 if err := gensupport.DecodeResponse(target, res); err != nil {
43062 return nil, err
43063 }
43064 return ret, nil
43065 }
43066
43067
43068
43069
43070 func (c *OrganizationsKeyvaluemapsEntriesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListKeyValueEntriesResponse) error) error {
43071 c.ctx_ = ctx
43072 defer c.PageToken(c.urlParams_.Get("pageToken"))
43073 for {
43074 x, err := c.Do()
43075 if err != nil {
43076 return err
43077 }
43078 if err := f(x); err != nil {
43079 return err
43080 }
43081 if x.NextPageToken == "" {
43082 return nil
43083 }
43084 c.PageToken(x.NextPageToken)
43085 }
43086 }
43087
43088 type OrganizationsKeyvaluemapsEntriesUpdateCall struct {
43089 s *Service
43090 name string
43091 googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry
43092 urlParams_ gensupport.URLParams
43093 ctx_ context.Context
43094 header_ http.Header
43095 }
43096
43097
43098
43099
43100
43101
43102
43103
43104
43105 func (r *OrganizationsKeyvaluemapsEntriesService) Update(name string, googlecloudapigeev1keyvalueentry *GoogleCloudApigeeV1KeyValueEntry) *OrganizationsKeyvaluemapsEntriesUpdateCall {
43106 c := &OrganizationsKeyvaluemapsEntriesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43107 c.name = name
43108 c.googlecloudapigeev1keyvalueentry = googlecloudapigeev1keyvalueentry
43109 return c
43110 }
43111
43112
43113
43114
43115 func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsEntriesUpdateCall {
43116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43117 return c
43118 }
43119
43120
43121 func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsEntriesUpdateCall {
43122 c.ctx_ = ctx
43123 return c
43124 }
43125
43126
43127
43128 func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Header() http.Header {
43129 if c.header_ == nil {
43130 c.header_ = make(http.Header)
43131 }
43132 return c.header_
43133 }
43134
43135 func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) doRequest(alt string) (*http.Response, error) {
43136 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43137 var body io.Reader = nil
43138 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvalueentry)
43139 if err != nil {
43140 return nil, err
43141 }
43142 c.urlParams_.Set("alt", alt)
43143 c.urlParams_.Set("prettyPrint", "false")
43144 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43145 urls += "?" + c.urlParams_.Encode()
43146 req, err := http.NewRequest("PUT", urls, body)
43147 if err != nil {
43148 return nil, err
43149 }
43150 req.Header = reqHeaders
43151 googleapi.Expand(req.URL, map[string]string{
43152 "name": c.name,
43153 })
43154 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43155 }
43156
43157
43158
43159
43160
43161
43162
43163 func (c *OrganizationsKeyvaluemapsEntriesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueEntry, error) {
43164 gensupport.SetOptions(c.urlParams_, opts...)
43165 res, err := c.doRequest("json")
43166 if res != nil && res.StatusCode == http.StatusNotModified {
43167 if res.Body != nil {
43168 res.Body.Close()
43169 }
43170 return nil, gensupport.WrapError(&googleapi.Error{
43171 Code: res.StatusCode,
43172 Header: res.Header,
43173 })
43174 }
43175 if err != nil {
43176 return nil, err
43177 }
43178 defer googleapi.CloseBody(res)
43179 if err := googleapi.CheckResponse(res); err != nil {
43180 return nil, gensupport.WrapError(err)
43181 }
43182 ret := &GoogleCloudApigeeV1KeyValueEntry{
43183 ServerResponse: googleapi.ServerResponse{
43184 Header: res.Header,
43185 HTTPStatusCode: res.StatusCode,
43186 },
43187 }
43188 target := &ret
43189 if err := gensupport.DecodeResponse(target, res); err != nil {
43190 return nil, err
43191 }
43192 return ret, nil
43193 }
43194
43195 type OrganizationsOperationsGetCall struct {
43196 s *Service
43197 name string
43198 urlParams_ gensupport.URLParams
43199 ifNoneMatch_ string
43200 ctx_ context.Context
43201 header_ http.Header
43202 }
43203
43204
43205
43206
43207
43208
43209 func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
43210 c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43211 c.name = name
43212 return c
43213 }
43214
43215
43216
43217
43218 func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
43219 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43220 return c
43221 }
43222
43223
43224
43225
43226 func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
43227 c.ifNoneMatch_ = entityTag
43228 return c
43229 }
43230
43231
43232 func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
43233 c.ctx_ = ctx
43234 return c
43235 }
43236
43237
43238
43239 func (c *OrganizationsOperationsGetCall) Header() http.Header {
43240 if c.header_ == nil {
43241 c.header_ = make(http.Header)
43242 }
43243 return c.header_
43244 }
43245
43246 func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
43247 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43248 if c.ifNoneMatch_ != "" {
43249 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43250 }
43251 var body io.Reader = nil
43252 c.urlParams_.Set("alt", alt)
43253 c.urlParams_.Set("prettyPrint", "false")
43254 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43255 urls += "?" + c.urlParams_.Encode()
43256 req, err := http.NewRequest("GET", urls, body)
43257 if err != nil {
43258 return nil, err
43259 }
43260 req.Header = reqHeaders
43261 googleapi.Expand(req.URL, map[string]string{
43262 "name": c.name,
43263 })
43264 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43265 }
43266
43267
43268
43269
43270
43271
43272
43273 func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43274 gensupport.SetOptions(c.urlParams_, opts...)
43275 res, err := c.doRequest("json")
43276 if res != nil && res.StatusCode == http.StatusNotModified {
43277 if res.Body != nil {
43278 res.Body.Close()
43279 }
43280 return nil, gensupport.WrapError(&googleapi.Error{
43281 Code: res.StatusCode,
43282 Header: res.Header,
43283 })
43284 }
43285 if err != nil {
43286 return nil, err
43287 }
43288 defer googleapi.CloseBody(res)
43289 if err := googleapi.CheckResponse(res); err != nil {
43290 return nil, gensupport.WrapError(err)
43291 }
43292 ret := &GoogleLongrunningOperation{
43293 ServerResponse: googleapi.ServerResponse{
43294 Header: res.Header,
43295 HTTPStatusCode: res.StatusCode,
43296 },
43297 }
43298 target := &ret
43299 if err := gensupport.DecodeResponse(target, res); err != nil {
43300 return nil, err
43301 }
43302 return ret, nil
43303 }
43304
43305 type OrganizationsOperationsListCall struct {
43306 s *Service
43307 name string
43308 urlParams_ gensupport.URLParams
43309 ifNoneMatch_ string
43310 ctx_ context.Context
43311 header_ http.Header
43312 }
43313
43314
43315
43316
43317
43318 func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
43319 c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43320 c.name = name
43321 return c
43322 }
43323
43324
43325 func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
43326 c.urlParams_.Set("filter", filter)
43327 return c
43328 }
43329
43330
43331
43332 func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
43333 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
43334 return c
43335 }
43336
43337
43338
43339 func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
43340 c.urlParams_.Set("pageToken", pageToken)
43341 return c
43342 }
43343
43344
43345
43346
43347 func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
43348 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43349 return c
43350 }
43351
43352
43353
43354
43355 func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
43356 c.ifNoneMatch_ = entityTag
43357 return c
43358 }
43359
43360
43361 func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
43362 c.ctx_ = ctx
43363 return c
43364 }
43365
43366
43367
43368 func (c *OrganizationsOperationsListCall) Header() http.Header {
43369 if c.header_ == nil {
43370 c.header_ = make(http.Header)
43371 }
43372 return c.header_
43373 }
43374
43375 func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
43376 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43377 if c.ifNoneMatch_ != "" {
43378 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43379 }
43380 var body io.Reader = nil
43381 c.urlParams_.Set("alt", alt)
43382 c.urlParams_.Set("prettyPrint", "false")
43383 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
43384 urls += "?" + c.urlParams_.Encode()
43385 req, err := http.NewRequest("GET", urls, body)
43386 if err != nil {
43387 return nil, err
43388 }
43389 req.Header = reqHeaders
43390 googleapi.Expand(req.URL, map[string]string{
43391 "name": c.name,
43392 })
43393 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43394 }
43395
43396
43397
43398
43399
43400
43401
43402 func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
43403 gensupport.SetOptions(c.urlParams_, opts...)
43404 res, err := c.doRequest("json")
43405 if res != nil && res.StatusCode == http.StatusNotModified {
43406 if res.Body != nil {
43407 res.Body.Close()
43408 }
43409 return nil, gensupport.WrapError(&googleapi.Error{
43410 Code: res.StatusCode,
43411 Header: res.Header,
43412 })
43413 }
43414 if err != nil {
43415 return nil, err
43416 }
43417 defer googleapi.CloseBody(res)
43418 if err := googleapi.CheckResponse(res); err != nil {
43419 return nil, gensupport.WrapError(err)
43420 }
43421 ret := &GoogleLongrunningListOperationsResponse{
43422 ServerResponse: googleapi.ServerResponse{
43423 Header: res.Header,
43424 HTTPStatusCode: res.StatusCode,
43425 },
43426 }
43427 target := &ret
43428 if err := gensupport.DecodeResponse(target, res); err != nil {
43429 return nil, err
43430 }
43431 return ret, nil
43432 }
43433
43434
43435
43436
43437 func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
43438 c.ctx_ = ctx
43439 defer c.PageToken(c.urlParams_.Get("pageToken"))
43440 for {
43441 x, err := c.Do()
43442 if err != nil {
43443 return err
43444 }
43445 if err := f(x); err != nil {
43446 return err
43447 }
43448 if x.NextPageToken == "" {
43449 return nil
43450 }
43451 c.PageToken(x.NextPageToken)
43452 }
43453 }
43454
43455 type OrganizationsOptimizedHostStatsGetCall struct {
43456 s *Service
43457 name string
43458 urlParams_ gensupport.URLParams
43459 ifNoneMatch_ string
43460 ctx_ context.Context
43461 header_ http.Header
43462 }
43463
43464
43465
43466
43467
43468
43469
43470
43471
43472
43473 func (r *OrganizationsOptimizedHostStatsService) Get(name string) *OrganizationsOptimizedHostStatsGetCall {
43474 c := &OrganizationsOptimizedHostStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43475 c.name = name
43476 return c
43477 }
43478
43479
43480
43481 func (c *OrganizationsOptimizedHostStatsGetCall) Accuracy(accuracy string) *OrganizationsOptimizedHostStatsGetCall {
43482 c.urlParams_.Set("accuracy", accuracy)
43483 return c
43484 }
43485
43486
43487
43488 func (c *OrganizationsOptimizedHostStatsGetCall) EnvgroupHostname(envgroupHostname string) *OrganizationsOptimizedHostStatsGetCall {
43489 c.urlParams_.Set("envgroupHostname", envgroupHostname)
43490 return c
43491 }
43492
43493
43494
43495 func (c *OrganizationsOptimizedHostStatsGetCall) Filter(filter string) *OrganizationsOptimizedHostStatsGetCall {
43496 c.urlParams_.Set("filter", filter)
43497 return c
43498 }
43499
43500
43501
43502 func (c *OrganizationsOptimizedHostStatsGetCall) Limit(limit string) *OrganizationsOptimizedHostStatsGetCall {
43503 c.urlParams_.Set("limit", limit)
43504 return c
43505 }
43506
43507
43508
43509
43510 func (c *OrganizationsOptimizedHostStatsGetCall) Offset(offset string) *OrganizationsOptimizedHostStatsGetCall {
43511 c.urlParams_.Set("offset", offset)
43512 return c
43513 }
43514
43515
43516
43517 func (c *OrganizationsOptimizedHostStatsGetCall) Realtime(realtime bool) *OrganizationsOptimizedHostStatsGetCall {
43518 c.urlParams_.Set("realtime", fmt.Sprint(realtime))
43519 return c
43520 }
43521
43522
43523
43524 func (c *OrganizationsOptimizedHostStatsGetCall) Select(select_ string) *OrganizationsOptimizedHostStatsGetCall {
43525 c.urlParams_.Set("select", select_)
43526 return c
43527 }
43528
43529
43530
43531
43532 func (c *OrganizationsOptimizedHostStatsGetCall) Sort(sort string) *OrganizationsOptimizedHostStatsGetCall {
43533 c.urlParams_.Set("sort", sort)
43534 return c
43535 }
43536
43537
43538
43539 func (c *OrganizationsOptimizedHostStatsGetCall) Sortby(sortby string) *OrganizationsOptimizedHostStatsGetCall {
43540 c.urlParams_.Set("sortby", sortby)
43541 return c
43542 }
43543
43544
43545
43546
43547 func (c *OrganizationsOptimizedHostStatsGetCall) TimeRange(timeRange string) *OrganizationsOptimizedHostStatsGetCall {
43548 c.urlParams_.Set("timeRange", timeRange)
43549 return c
43550 }
43551
43552
43553
43554
43555 func (c *OrganizationsOptimizedHostStatsGetCall) TimeUnit(timeUnit string) *OrganizationsOptimizedHostStatsGetCall {
43556 c.urlParams_.Set("timeUnit", timeUnit)
43557 return c
43558 }
43559
43560
43561
43562 func (c *OrganizationsOptimizedHostStatsGetCall) Topk(topk string) *OrganizationsOptimizedHostStatsGetCall {
43563 c.urlParams_.Set("topk", topk)
43564 return c
43565 }
43566
43567
43568
43569
43570
43571 func (c *OrganizationsOptimizedHostStatsGetCall) TsAscending(tsAscending bool) *OrganizationsOptimizedHostStatsGetCall {
43572 c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
43573 return c
43574 }
43575
43576
43577 func (c *OrganizationsOptimizedHostStatsGetCall) Tzo(tzo string) *OrganizationsOptimizedHostStatsGetCall {
43578 c.urlParams_.Set("tzo", tzo)
43579 return c
43580 }
43581
43582
43583
43584
43585 func (c *OrganizationsOptimizedHostStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsOptimizedHostStatsGetCall {
43586 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43587 return c
43588 }
43589
43590
43591
43592
43593 func (c *OrganizationsOptimizedHostStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsOptimizedHostStatsGetCall {
43594 c.ifNoneMatch_ = entityTag
43595 return c
43596 }
43597
43598
43599 func (c *OrganizationsOptimizedHostStatsGetCall) Context(ctx context.Context) *OrganizationsOptimizedHostStatsGetCall {
43600 c.ctx_ = ctx
43601 return c
43602 }
43603
43604
43605
43606 func (c *OrganizationsOptimizedHostStatsGetCall) Header() http.Header {
43607 if c.header_ == nil {
43608 c.header_ = make(http.Header)
43609 }
43610 return c.header_
43611 }
43612
43613 func (c *OrganizationsOptimizedHostStatsGetCall) doRequest(alt string) (*http.Response, error) {
43614 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43615 if c.ifNoneMatch_ != "" {
43616 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43617 }
43618 var body io.Reader = nil
43619 c.urlParams_.Set("alt", alt)
43620 c.urlParams_.Set("prettyPrint", "false")
43621 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43622 urls += "?" + c.urlParams_.Encode()
43623 req, err := http.NewRequest("GET", urls, body)
43624 if err != nil {
43625 return nil, err
43626 }
43627 req.Header = reqHeaders
43628 googleapi.Expand(req.URL, map[string]string{
43629 "name": c.name,
43630 })
43631 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43632 }
43633
43634
43635
43636
43637
43638
43639
43640 func (c *OrganizationsOptimizedHostStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
43641 gensupport.SetOptions(c.urlParams_, opts...)
43642 res, err := c.doRequest("json")
43643 if res != nil && res.StatusCode == http.StatusNotModified {
43644 if res.Body != nil {
43645 res.Body.Close()
43646 }
43647 return nil, gensupport.WrapError(&googleapi.Error{
43648 Code: res.StatusCode,
43649 Header: res.Header,
43650 })
43651 }
43652 if err != nil {
43653 return nil, err
43654 }
43655 defer googleapi.CloseBody(res)
43656 if err := googleapi.CheckResponse(res); err != nil {
43657 return nil, gensupport.WrapError(err)
43658 }
43659 ret := &GoogleCloudApigeeV1OptimizedStats{
43660 ServerResponse: googleapi.ServerResponse{
43661 Header: res.Header,
43662 HTTPStatusCode: res.StatusCode,
43663 },
43664 }
43665 target := &ret
43666 if err := gensupport.DecodeResponse(target, res); err != nil {
43667 return nil, err
43668 }
43669 return ret, nil
43670 }
43671
43672 type OrganizationsReportsCreateCall struct {
43673 s *Service
43674 parent string
43675 googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
43676 urlParams_ gensupport.URLParams
43677 ctx_ context.Context
43678 header_ http.Header
43679 }
43680
43681
43682
43683
43684
43685
43686
43687
43688
43689
43690
43691 func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
43692 c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43693 c.parent = parent
43694 c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
43695 return c
43696 }
43697
43698
43699
43700
43701 func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
43702 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43703 return c
43704 }
43705
43706
43707 func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
43708 c.ctx_ = ctx
43709 return c
43710 }
43711
43712
43713
43714 func (c *OrganizationsReportsCreateCall) Header() http.Header {
43715 if c.header_ == nil {
43716 c.header_ = make(http.Header)
43717 }
43718 return c.header_
43719 }
43720
43721 func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
43722 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43723 var body io.Reader = nil
43724 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
43725 if err != nil {
43726 return nil, err
43727 }
43728 c.urlParams_.Set("alt", alt)
43729 c.urlParams_.Set("prettyPrint", "false")
43730 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
43731 urls += "?" + c.urlParams_.Encode()
43732 req, err := http.NewRequest("POST", urls, body)
43733 if err != nil {
43734 return nil, err
43735 }
43736 req.Header = reqHeaders
43737 googleapi.Expand(req.URL, map[string]string{
43738 "parent": c.parent,
43739 })
43740 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43741 }
43742
43743
43744
43745
43746
43747
43748
43749 func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43750 gensupport.SetOptions(c.urlParams_, opts...)
43751 res, err := c.doRequest("json")
43752 if res != nil && res.StatusCode == http.StatusNotModified {
43753 if res.Body != nil {
43754 res.Body.Close()
43755 }
43756 return nil, gensupport.WrapError(&googleapi.Error{
43757 Code: res.StatusCode,
43758 Header: res.Header,
43759 })
43760 }
43761 if err != nil {
43762 return nil, err
43763 }
43764 defer googleapi.CloseBody(res)
43765 if err := googleapi.CheckResponse(res); err != nil {
43766 return nil, gensupport.WrapError(err)
43767 }
43768 ret := &GoogleCloudApigeeV1CustomReport{
43769 ServerResponse: googleapi.ServerResponse{
43770 Header: res.Header,
43771 HTTPStatusCode: res.StatusCode,
43772 },
43773 }
43774 target := &ret
43775 if err := gensupport.DecodeResponse(target, res); err != nil {
43776 return nil, err
43777 }
43778 return ret, nil
43779 }
43780
43781 type OrganizationsReportsDeleteCall struct {
43782 s *Service
43783 name string
43784 urlParams_ gensupport.URLParams
43785 ctx_ context.Context
43786 header_ http.Header
43787 }
43788
43789
43790
43791
43792
43793 func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
43794 c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43795 c.name = name
43796 return c
43797 }
43798
43799
43800
43801
43802 func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
43803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43804 return c
43805 }
43806
43807
43808 func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
43809 c.ctx_ = ctx
43810 return c
43811 }
43812
43813
43814
43815 func (c *OrganizationsReportsDeleteCall) Header() http.Header {
43816 if c.header_ == nil {
43817 c.header_ = make(http.Header)
43818 }
43819 return c.header_
43820 }
43821
43822 func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
43823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43824 var body io.Reader = nil
43825 c.urlParams_.Set("alt", alt)
43826 c.urlParams_.Set("prettyPrint", "false")
43827 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43828 urls += "?" + c.urlParams_.Encode()
43829 req, err := http.NewRequest("DELETE", urls, body)
43830 if err != nil {
43831 return nil, err
43832 }
43833 req.Header = reqHeaders
43834 googleapi.Expand(req.URL, map[string]string{
43835 "name": c.name,
43836 })
43837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43838 }
43839
43840
43841
43842
43843
43844
43845
43846 func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
43847 gensupport.SetOptions(c.urlParams_, opts...)
43848 res, err := c.doRequest("json")
43849 if res != nil && res.StatusCode == http.StatusNotModified {
43850 if res.Body != nil {
43851 res.Body.Close()
43852 }
43853 return nil, gensupport.WrapError(&googleapi.Error{
43854 Code: res.StatusCode,
43855 Header: res.Header,
43856 })
43857 }
43858 if err != nil {
43859 return nil, err
43860 }
43861 defer googleapi.CloseBody(res)
43862 if err := googleapi.CheckResponse(res); err != nil {
43863 return nil, gensupport.WrapError(err)
43864 }
43865 ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
43866 ServerResponse: googleapi.ServerResponse{
43867 Header: res.Header,
43868 HTTPStatusCode: res.StatusCode,
43869 },
43870 }
43871 target := &ret
43872 if err := gensupport.DecodeResponse(target, res); err != nil {
43873 return nil, err
43874 }
43875 return ret, nil
43876 }
43877
43878 type OrganizationsReportsGetCall struct {
43879 s *Service
43880 name string
43881 urlParams_ gensupport.URLParams
43882 ifNoneMatch_ string
43883 ctx_ context.Context
43884 header_ http.Header
43885 }
43886
43887
43888
43889
43890
43891 func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
43892 c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43893 c.name = name
43894 return c
43895 }
43896
43897
43898
43899
43900 func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
43901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43902 return c
43903 }
43904
43905
43906
43907
43908 func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
43909 c.ifNoneMatch_ = entityTag
43910 return c
43911 }
43912
43913
43914 func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
43915 c.ctx_ = ctx
43916 return c
43917 }
43918
43919
43920
43921 func (c *OrganizationsReportsGetCall) Header() http.Header {
43922 if c.header_ == nil {
43923 c.header_ = make(http.Header)
43924 }
43925 return c.header_
43926 }
43927
43928 func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
43929 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43930 if c.ifNoneMatch_ != "" {
43931 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43932 }
43933 var body io.Reader = nil
43934 c.urlParams_.Set("alt", alt)
43935 c.urlParams_.Set("prettyPrint", "false")
43936 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
43937 urls += "?" + c.urlParams_.Encode()
43938 req, err := http.NewRequest("GET", urls, body)
43939 if err != nil {
43940 return nil, err
43941 }
43942 req.Header = reqHeaders
43943 googleapi.Expand(req.URL, map[string]string{
43944 "name": c.name,
43945 })
43946 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43947 }
43948
43949
43950
43951
43952
43953
43954
43955 func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
43956 gensupport.SetOptions(c.urlParams_, opts...)
43957 res, err := c.doRequest("json")
43958 if res != nil && res.StatusCode == http.StatusNotModified {
43959 if res.Body != nil {
43960 res.Body.Close()
43961 }
43962 return nil, gensupport.WrapError(&googleapi.Error{
43963 Code: res.StatusCode,
43964 Header: res.Header,
43965 })
43966 }
43967 if err != nil {
43968 return nil, err
43969 }
43970 defer googleapi.CloseBody(res)
43971 if err := googleapi.CheckResponse(res); err != nil {
43972 return nil, gensupport.WrapError(err)
43973 }
43974 ret := &GoogleCloudApigeeV1CustomReport{
43975 ServerResponse: googleapi.ServerResponse{
43976 Header: res.Header,
43977 HTTPStatusCode: res.StatusCode,
43978 },
43979 }
43980 target := &ret
43981 if err := gensupport.DecodeResponse(target, res); err != nil {
43982 return nil, err
43983 }
43984 return ret, nil
43985 }
43986
43987 type OrganizationsReportsListCall struct {
43988 s *Service
43989 parent string
43990 urlParams_ gensupport.URLParams
43991 ifNoneMatch_ string
43992 ctx_ context.Context
43993 header_ http.Header
43994 }
43995
43996
43997
43998
43999
44000 func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
44001 c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44002 c.parent = parent
44003 return c
44004 }
44005
44006
44007
44008 func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
44009 c.urlParams_.Set("expand", fmt.Sprint(expand))
44010 return c
44011 }
44012
44013
44014
44015
44016 func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
44017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44018 return c
44019 }
44020
44021
44022
44023
44024 func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
44025 c.ifNoneMatch_ = entityTag
44026 return c
44027 }
44028
44029
44030 func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
44031 c.ctx_ = ctx
44032 return c
44033 }
44034
44035
44036
44037 func (c *OrganizationsReportsListCall) Header() http.Header {
44038 if c.header_ == nil {
44039 c.header_ = make(http.Header)
44040 }
44041 return c.header_
44042 }
44043
44044 func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
44045 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44046 if c.ifNoneMatch_ != "" {
44047 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44048 }
44049 var body io.Reader = nil
44050 c.urlParams_.Set("alt", alt)
44051 c.urlParams_.Set("prettyPrint", "false")
44052 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
44053 urls += "?" + c.urlParams_.Encode()
44054 req, err := http.NewRequest("GET", urls, body)
44055 if err != nil {
44056 return nil, err
44057 }
44058 req.Header = reqHeaders
44059 googleapi.Expand(req.URL, map[string]string{
44060 "parent": c.parent,
44061 })
44062 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44063 }
44064
44065
44066
44067
44068
44069
44070
44071 func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
44072 gensupport.SetOptions(c.urlParams_, opts...)
44073 res, err := c.doRequest("json")
44074 if res != nil && res.StatusCode == http.StatusNotModified {
44075 if res.Body != nil {
44076 res.Body.Close()
44077 }
44078 return nil, gensupport.WrapError(&googleapi.Error{
44079 Code: res.StatusCode,
44080 Header: res.Header,
44081 })
44082 }
44083 if err != nil {
44084 return nil, err
44085 }
44086 defer googleapi.CloseBody(res)
44087 if err := googleapi.CheckResponse(res); err != nil {
44088 return nil, gensupport.WrapError(err)
44089 }
44090 ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
44091 ServerResponse: googleapi.ServerResponse{
44092 Header: res.Header,
44093 HTTPStatusCode: res.StatusCode,
44094 },
44095 }
44096 target := &ret
44097 if err := gensupport.DecodeResponse(target, res); err != nil {
44098 return nil, err
44099 }
44100 return ret, nil
44101 }
44102
44103 type OrganizationsReportsUpdateCall struct {
44104 s *Service
44105 name string
44106 googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
44107 urlParams_ gensupport.URLParams
44108 ctx_ context.Context
44109 header_ http.Header
44110 }
44111
44112
44113
44114
44115
44116 func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
44117 c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44118 c.name = name
44119 c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
44120 return c
44121 }
44122
44123
44124
44125
44126 func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
44127 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44128 return c
44129 }
44130
44131
44132 func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
44133 c.ctx_ = ctx
44134 return c
44135 }
44136
44137
44138
44139 func (c *OrganizationsReportsUpdateCall) Header() http.Header {
44140 if c.header_ == nil {
44141 c.header_ = make(http.Header)
44142 }
44143 return c.header_
44144 }
44145
44146 func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
44147 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44148 var body io.Reader = nil
44149 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
44150 if err != nil {
44151 return nil, err
44152 }
44153 c.urlParams_.Set("alt", alt)
44154 c.urlParams_.Set("prettyPrint", "false")
44155 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44156 urls += "?" + c.urlParams_.Encode()
44157 req, err := http.NewRequest("PUT", urls, body)
44158 if err != nil {
44159 return nil, err
44160 }
44161 req.Header = reqHeaders
44162 googleapi.Expand(req.URL, map[string]string{
44163 "name": c.name,
44164 })
44165 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44166 }
44167
44168
44169
44170
44171
44172
44173
44174 func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
44175 gensupport.SetOptions(c.urlParams_, opts...)
44176 res, err := c.doRequest("json")
44177 if res != nil && res.StatusCode == http.StatusNotModified {
44178 if res.Body != nil {
44179 res.Body.Close()
44180 }
44181 return nil, gensupport.WrapError(&googleapi.Error{
44182 Code: res.StatusCode,
44183 Header: res.Header,
44184 })
44185 }
44186 if err != nil {
44187 return nil, err
44188 }
44189 defer googleapi.CloseBody(res)
44190 if err := googleapi.CheckResponse(res); err != nil {
44191 return nil, gensupport.WrapError(err)
44192 }
44193 ret := &GoogleCloudApigeeV1CustomReport{
44194 ServerResponse: googleapi.ServerResponse{
44195 Header: res.Header,
44196 HTTPStatusCode: res.StatusCode,
44197 },
44198 }
44199 target := &ret
44200 if err := gensupport.DecodeResponse(target, res); err != nil {
44201 return nil, err
44202 }
44203 return ret, nil
44204 }
44205
44206 type OrganizationsSecurityAssessmentResultsBatchComputeCall struct {
44207 s *Service
44208 name string
44209 googlecloudapigeev1batchcomputesecurityassessmentresultsrequest *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
44210 urlParams_ gensupport.URLParams
44211 ctx_ context.Context
44212 header_ http.Header
44213 }
44214
44215
44216
44217
44218
44219 func (r *OrganizationsSecurityAssessmentResultsService) BatchCompute(name string, googlecloudapigeev1batchcomputesecurityassessmentresultsrequest *GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
44220 c := &OrganizationsSecurityAssessmentResultsBatchComputeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44221 c.name = name
44222 c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest = googlecloudapigeev1batchcomputesecurityassessmentresultsrequest
44223 return c
44224 }
44225
44226
44227
44228
44229 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Fields(s ...googleapi.Field) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
44230 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44231 return c
44232 }
44233
44234
44235 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Context(ctx context.Context) *OrganizationsSecurityAssessmentResultsBatchComputeCall {
44236 c.ctx_ = ctx
44237 return c
44238 }
44239
44240
44241
44242 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Header() http.Header {
44243 if c.header_ == nil {
44244 c.header_ = make(http.Header)
44245 }
44246 return c.header_
44247 }
44248
44249 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) doRequest(alt string) (*http.Response, error) {
44250 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44251 var body io.Reader = nil
44252 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest)
44253 if err != nil {
44254 return nil, err
44255 }
44256 c.urlParams_.Set("alt", alt)
44257 c.urlParams_.Set("prettyPrint", "false")
44258 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:batchCompute")
44259 urls += "?" + c.urlParams_.Encode()
44260 req, err := http.NewRequest("POST", urls, body)
44261 if err != nil {
44262 return nil, err
44263 }
44264 req.Header = reqHeaders
44265 googleapi.Expand(req.URL, map[string]string{
44266 "name": c.name,
44267 })
44268 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44269 }
44270
44271
44272
44273
44274
44275
44276
44277 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse, error) {
44278 gensupport.SetOptions(c.urlParams_, opts...)
44279 res, err := c.doRequest("json")
44280 if res != nil && res.StatusCode == http.StatusNotModified {
44281 if res.Body != nil {
44282 res.Body.Close()
44283 }
44284 return nil, gensupport.WrapError(&googleapi.Error{
44285 Code: res.StatusCode,
44286 Header: res.Header,
44287 })
44288 }
44289 if err != nil {
44290 return nil, err
44291 }
44292 defer googleapi.CloseBody(res)
44293 if err := googleapi.CheckResponse(res); err != nil {
44294 return nil, gensupport.WrapError(err)
44295 }
44296 ret := &GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse{
44297 ServerResponse: googleapi.ServerResponse{
44298 Header: res.Header,
44299 HTTPStatusCode: res.StatusCode,
44300 },
44301 }
44302 target := &ret
44303 if err := gensupport.DecodeResponse(target, res); err != nil {
44304 return nil, err
44305 }
44306 return ret, nil
44307 }
44308
44309
44310
44311
44312 func (c *OrganizationsSecurityAssessmentResultsBatchComputeCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsResponse) error) error {
44313 c.ctx_ = ctx
44314 defer func(pt string) { c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken = pt }(c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken)
44315 for {
44316 x, err := c.Do()
44317 if err != nil {
44318 return err
44319 }
44320 if err := f(x); err != nil {
44321 return err
44322 }
44323 if x.NextPageToken == "" {
44324 return nil
44325 }
44326 c.googlecloudapigeev1batchcomputesecurityassessmentresultsrequest.PageToken = x.NextPageToken
44327 }
44328 }
44329
44330 type OrganizationsSecurityProfilesCreateCall struct {
44331 s *Service
44332 parent string
44333 googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile
44334 urlParams_ gensupport.URLParams
44335 ctx_ context.Context
44336 header_ http.Header
44337 }
44338
44339
44340
44341
44342 func (r *OrganizationsSecurityProfilesService) Create(parent string, googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile) *OrganizationsSecurityProfilesCreateCall {
44343 c := &OrganizationsSecurityProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44344 c.parent = parent
44345 c.googlecloudapigeev1securityprofile = googlecloudapigeev1securityprofile
44346 return c
44347 }
44348
44349
44350
44351
44352
44353 func (c *OrganizationsSecurityProfilesCreateCall) SecurityProfileId(securityProfileId string) *OrganizationsSecurityProfilesCreateCall {
44354 c.urlParams_.Set("securityProfileId", securityProfileId)
44355 return c
44356 }
44357
44358
44359
44360
44361 func (c *OrganizationsSecurityProfilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesCreateCall {
44362 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44363 return c
44364 }
44365
44366
44367 func (c *OrganizationsSecurityProfilesCreateCall) Context(ctx context.Context) *OrganizationsSecurityProfilesCreateCall {
44368 c.ctx_ = ctx
44369 return c
44370 }
44371
44372
44373
44374 func (c *OrganizationsSecurityProfilesCreateCall) Header() http.Header {
44375 if c.header_ == nil {
44376 c.header_ = make(http.Header)
44377 }
44378 return c.header_
44379 }
44380
44381 func (c *OrganizationsSecurityProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
44382 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44383 var body io.Reader = nil
44384 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofile)
44385 if err != nil {
44386 return nil, err
44387 }
44388 c.urlParams_.Set("alt", alt)
44389 c.urlParams_.Set("prettyPrint", "false")
44390 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles")
44391 urls += "?" + c.urlParams_.Encode()
44392 req, err := http.NewRequest("POST", urls, body)
44393 if err != nil {
44394 return nil, err
44395 }
44396 req.Header = reqHeaders
44397 googleapi.Expand(req.URL, map[string]string{
44398 "parent": c.parent,
44399 })
44400 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44401 }
44402
44403
44404
44405
44406
44407
44408
44409 func (c *OrganizationsSecurityProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
44410 gensupport.SetOptions(c.urlParams_, opts...)
44411 res, err := c.doRequest("json")
44412 if res != nil && res.StatusCode == http.StatusNotModified {
44413 if res.Body != nil {
44414 res.Body.Close()
44415 }
44416 return nil, gensupport.WrapError(&googleapi.Error{
44417 Code: res.StatusCode,
44418 Header: res.Header,
44419 })
44420 }
44421 if err != nil {
44422 return nil, err
44423 }
44424 defer googleapi.CloseBody(res)
44425 if err := googleapi.CheckResponse(res); err != nil {
44426 return nil, gensupport.WrapError(err)
44427 }
44428 ret := &GoogleCloudApigeeV1SecurityProfile{
44429 ServerResponse: googleapi.ServerResponse{
44430 Header: res.Header,
44431 HTTPStatusCode: res.StatusCode,
44432 },
44433 }
44434 target := &ret
44435 if err := gensupport.DecodeResponse(target, res); err != nil {
44436 return nil, err
44437 }
44438 return ret, nil
44439 }
44440
44441 type OrganizationsSecurityProfilesDeleteCall struct {
44442 s *Service
44443 name string
44444 urlParams_ gensupport.URLParams
44445 ctx_ context.Context
44446 header_ http.Header
44447 }
44448
44449
44450
44451
44452
44453 func (r *OrganizationsSecurityProfilesService) Delete(name string) *OrganizationsSecurityProfilesDeleteCall {
44454 c := &OrganizationsSecurityProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44455 c.name = name
44456 return c
44457 }
44458
44459
44460
44461
44462 func (c *OrganizationsSecurityProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesDeleteCall {
44463 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44464 return c
44465 }
44466
44467
44468 func (c *OrganizationsSecurityProfilesDeleteCall) Context(ctx context.Context) *OrganizationsSecurityProfilesDeleteCall {
44469 c.ctx_ = ctx
44470 return c
44471 }
44472
44473
44474
44475 func (c *OrganizationsSecurityProfilesDeleteCall) Header() http.Header {
44476 if c.header_ == nil {
44477 c.header_ = make(http.Header)
44478 }
44479 return c.header_
44480 }
44481
44482 func (c *OrganizationsSecurityProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
44483 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44484 var body io.Reader = nil
44485 c.urlParams_.Set("alt", alt)
44486 c.urlParams_.Set("prettyPrint", "false")
44487 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44488 urls += "?" + c.urlParams_.Encode()
44489 req, err := http.NewRequest("DELETE", urls, body)
44490 if err != nil {
44491 return nil, err
44492 }
44493 req.Header = reqHeaders
44494 googleapi.Expand(req.URL, map[string]string{
44495 "name": c.name,
44496 })
44497 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44498 }
44499
44500
44501
44502
44503
44504
44505
44506 func (c *OrganizationsSecurityProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
44507 gensupport.SetOptions(c.urlParams_, opts...)
44508 res, err := c.doRequest("json")
44509 if res != nil && res.StatusCode == http.StatusNotModified {
44510 if res.Body != nil {
44511 res.Body.Close()
44512 }
44513 return nil, gensupport.WrapError(&googleapi.Error{
44514 Code: res.StatusCode,
44515 Header: res.Header,
44516 })
44517 }
44518 if err != nil {
44519 return nil, err
44520 }
44521 defer googleapi.CloseBody(res)
44522 if err := googleapi.CheckResponse(res); err != nil {
44523 return nil, gensupport.WrapError(err)
44524 }
44525 ret := &GoogleProtobufEmpty{
44526 ServerResponse: googleapi.ServerResponse{
44527 Header: res.Header,
44528 HTTPStatusCode: res.StatusCode,
44529 },
44530 }
44531 target := &ret
44532 if err := gensupport.DecodeResponse(target, res); err != nil {
44533 return nil, err
44534 }
44535 return ret, nil
44536 }
44537
44538 type OrganizationsSecurityProfilesGetCall struct {
44539 s *Service
44540 name string
44541 urlParams_ gensupport.URLParams
44542 ifNoneMatch_ string
44543 ctx_ context.Context
44544 header_ http.Header
44545 }
44546
44547
44548
44549
44550
44551
44552
44553
44554
44555 func (r *OrganizationsSecurityProfilesService) Get(name string) *OrganizationsSecurityProfilesGetCall {
44556 c := &OrganizationsSecurityProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44557 c.name = name
44558 return c
44559 }
44560
44561
44562
44563
44564 func (c *OrganizationsSecurityProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesGetCall {
44565 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44566 return c
44567 }
44568
44569
44570
44571
44572 func (c *OrganizationsSecurityProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesGetCall {
44573 c.ifNoneMatch_ = entityTag
44574 return c
44575 }
44576
44577
44578 func (c *OrganizationsSecurityProfilesGetCall) Context(ctx context.Context) *OrganizationsSecurityProfilesGetCall {
44579 c.ctx_ = ctx
44580 return c
44581 }
44582
44583
44584
44585 func (c *OrganizationsSecurityProfilesGetCall) Header() http.Header {
44586 if c.header_ == nil {
44587 c.header_ = make(http.Header)
44588 }
44589 return c.header_
44590 }
44591
44592 func (c *OrganizationsSecurityProfilesGetCall) doRequest(alt string) (*http.Response, error) {
44593 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44594 if c.ifNoneMatch_ != "" {
44595 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44596 }
44597 var body io.Reader = nil
44598 c.urlParams_.Set("alt", alt)
44599 c.urlParams_.Set("prettyPrint", "false")
44600 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
44601 urls += "?" + c.urlParams_.Encode()
44602 req, err := http.NewRequest("GET", urls, body)
44603 if err != nil {
44604 return nil, err
44605 }
44606 req.Header = reqHeaders
44607 googleapi.Expand(req.URL, map[string]string{
44608 "name": c.name,
44609 })
44610 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44611 }
44612
44613
44614
44615
44616
44617
44618
44619 func (c *OrganizationsSecurityProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
44620 gensupport.SetOptions(c.urlParams_, opts...)
44621 res, err := c.doRequest("json")
44622 if res != nil && res.StatusCode == http.StatusNotModified {
44623 if res.Body != nil {
44624 res.Body.Close()
44625 }
44626 return nil, gensupport.WrapError(&googleapi.Error{
44627 Code: res.StatusCode,
44628 Header: res.Header,
44629 })
44630 }
44631 if err != nil {
44632 return nil, err
44633 }
44634 defer googleapi.CloseBody(res)
44635 if err := googleapi.CheckResponse(res); err != nil {
44636 return nil, gensupport.WrapError(err)
44637 }
44638 ret := &GoogleCloudApigeeV1SecurityProfile{
44639 ServerResponse: googleapi.ServerResponse{
44640 Header: res.Header,
44641 HTTPStatusCode: res.StatusCode,
44642 },
44643 }
44644 target := &ret
44645 if err := gensupport.DecodeResponse(target, res); err != nil {
44646 return nil, err
44647 }
44648 return ret, nil
44649 }
44650
44651 type OrganizationsSecurityProfilesListCall struct {
44652 s *Service
44653 parent string
44654 urlParams_ gensupport.URLParams
44655 ifNoneMatch_ string
44656 ctx_ context.Context
44657 header_ http.Header
44658 }
44659
44660
44661
44662
44663
44664
44665 func (r *OrganizationsSecurityProfilesService) List(parent string) *OrganizationsSecurityProfilesListCall {
44666 c := &OrganizationsSecurityProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44667 c.parent = parent
44668 return c
44669 }
44670
44671
44672
44673
44674 func (c *OrganizationsSecurityProfilesListCall) PageSize(pageSize int64) *OrganizationsSecurityProfilesListCall {
44675 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44676 return c
44677 }
44678
44679
44680
44681
44682 func (c *OrganizationsSecurityProfilesListCall) PageToken(pageToken string) *OrganizationsSecurityProfilesListCall {
44683 c.urlParams_.Set("pageToken", pageToken)
44684 return c
44685 }
44686
44687
44688
44689
44690 func (c *OrganizationsSecurityProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesListCall {
44691 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44692 return c
44693 }
44694
44695
44696
44697
44698 func (c *OrganizationsSecurityProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesListCall {
44699 c.ifNoneMatch_ = entityTag
44700 return c
44701 }
44702
44703
44704 func (c *OrganizationsSecurityProfilesListCall) Context(ctx context.Context) *OrganizationsSecurityProfilesListCall {
44705 c.ctx_ = ctx
44706 return c
44707 }
44708
44709
44710
44711 func (c *OrganizationsSecurityProfilesListCall) Header() http.Header {
44712 if c.header_ == nil {
44713 c.header_ = make(http.Header)
44714 }
44715 return c.header_
44716 }
44717
44718 func (c *OrganizationsSecurityProfilesListCall) doRequest(alt string) (*http.Response, error) {
44719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44720 if c.ifNoneMatch_ != "" {
44721 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44722 }
44723 var body io.Reader = nil
44724 c.urlParams_.Set("alt", alt)
44725 c.urlParams_.Set("prettyPrint", "false")
44726 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/securityProfiles")
44727 urls += "?" + c.urlParams_.Encode()
44728 req, err := http.NewRequest("GET", urls, body)
44729 if err != nil {
44730 return nil, err
44731 }
44732 req.Header = reqHeaders
44733 googleapi.Expand(req.URL, map[string]string{
44734 "parent": c.parent,
44735 })
44736 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44737 }
44738
44739
44740
44741
44742
44743
44744
44745 func (c *OrganizationsSecurityProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityProfilesResponse, error) {
44746 gensupport.SetOptions(c.urlParams_, opts...)
44747 res, err := c.doRequest("json")
44748 if res != nil && res.StatusCode == http.StatusNotModified {
44749 if res.Body != nil {
44750 res.Body.Close()
44751 }
44752 return nil, gensupport.WrapError(&googleapi.Error{
44753 Code: res.StatusCode,
44754 Header: res.Header,
44755 })
44756 }
44757 if err != nil {
44758 return nil, err
44759 }
44760 defer googleapi.CloseBody(res)
44761 if err := googleapi.CheckResponse(res); err != nil {
44762 return nil, gensupport.WrapError(err)
44763 }
44764 ret := &GoogleCloudApigeeV1ListSecurityProfilesResponse{
44765 ServerResponse: googleapi.ServerResponse{
44766 Header: res.Header,
44767 HTTPStatusCode: res.StatusCode,
44768 },
44769 }
44770 target := &ret
44771 if err := gensupport.DecodeResponse(target, res); err != nil {
44772 return nil, err
44773 }
44774 return ret, nil
44775 }
44776
44777
44778
44779
44780 func (c *OrganizationsSecurityProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityProfilesResponse) error) error {
44781 c.ctx_ = ctx
44782 defer c.PageToken(c.urlParams_.Get("pageToken"))
44783 for {
44784 x, err := c.Do()
44785 if err != nil {
44786 return err
44787 }
44788 if err := f(x); err != nil {
44789 return err
44790 }
44791 if x.NextPageToken == "" {
44792 return nil
44793 }
44794 c.PageToken(x.NextPageToken)
44795 }
44796 }
44797
44798 type OrganizationsSecurityProfilesListRevisionsCall struct {
44799 s *Service
44800 name string
44801 urlParams_ gensupport.URLParams
44802 ifNoneMatch_ string
44803 ctx_ context.Context
44804 header_ http.Header
44805 }
44806
44807
44808
44809
44810
44811
44812 func (r *OrganizationsSecurityProfilesService) ListRevisions(name string) *OrganizationsSecurityProfilesListRevisionsCall {
44813 c := &OrganizationsSecurityProfilesListRevisionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44814 c.name = name
44815 return c
44816 }
44817
44818
44819
44820
44821 func (c *OrganizationsSecurityProfilesListRevisionsCall) PageSize(pageSize int64) *OrganizationsSecurityProfilesListRevisionsCall {
44822 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44823 return c
44824 }
44825
44826
44827
44828
44829 func (c *OrganizationsSecurityProfilesListRevisionsCall) PageToken(pageToken string) *OrganizationsSecurityProfilesListRevisionsCall {
44830 c.urlParams_.Set("pageToken", pageToken)
44831 return c
44832 }
44833
44834
44835
44836
44837 func (c *OrganizationsSecurityProfilesListRevisionsCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesListRevisionsCall {
44838 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44839 return c
44840 }
44841
44842
44843
44844
44845 func (c *OrganizationsSecurityProfilesListRevisionsCall) IfNoneMatch(entityTag string) *OrganizationsSecurityProfilesListRevisionsCall {
44846 c.ifNoneMatch_ = entityTag
44847 return c
44848 }
44849
44850
44851 func (c *OrganizationsSecurityProfilesListRevisionsCall) Context(ctx context.Context) *OrganizationsSecurityProfilesListRevisionsCall {
44852 c.ctx_ = ctx
44853 return c
44854 }
44855
44856
44857
44858 func (c *OrganizationsSecurityProfilesListRevisionsCall) Header() http.Header {
44859 if c.header_ == nil {
44860 c.header_ = make(http.Header)
44861 }
44862 return c.header_
44863 }
44864
44865 func (c *OrganizationsSecurityProfilesListRevisionsCall) doRequest(alt string) (*http.Response, error) {
44866 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44867 if c.ifNoneMatch_ != "" {
44868 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44869 }
44870 var body io.Reader = nil
44871 c.urlParams_.Set("alt", alt)
44872 c.urlParams_.Set("prettyPrint", "false")
44873 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:listRevisions")
44874 urls += "?" + c.urlParams_.Encode()
44875 req, err := http.NewRequest("GET", urls, body)
44876 if err != nil {
44877 return nil, err
44878 }
44879 req.Header = reqHeaders
44880 googleapi.Expand(req.URL, map[string]string{
44881 "name": c.name,
44882 })
44883 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44884 }
44885
44886
44887
44888
44889
44890
44891
44892 func (c *OrganizationsSecurityProfilesListRevisionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse, error) {
44893 gensupport.SetOptions(c.urlParams_, opts...)
44894 res, err := c.doRequest("json")
44895 if res != nil && res.StatusCode == http.StatusNotModified {
44896 if res.Body != nil {
44897 res.Body.Close()
44898 }
44899 return nil, gensupport.WrapError(&googleapi.Error{
44900 Code: res.StatusCode,
44901 Header: res.Header,
44902 })
44903 }
44904 if err != nil {
44905 return nil, err
44906 }
44907 defer googleapi.CloseBody(res)
44908 if err := googleapi.CheckResponse(res); err != nil {
44909 return nil, gensupport.WrapError(err)
44910 }
44911 ret := &GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse{
44912 ServerResponse: googleapi.ServerResponse{
44913 Header: res.Header,
44914 HTTPStatusCode: res.StatusCode,
44915 },
44916 }
44917 target := &ret
44918 if err := gensupport.DecodeResponse(target, res); err != nil {
44919 return nil, err
44920 }
44921 return ret, nil
44922 }
44923
44924
44925
44926
44927 func (c *OrganizationsSecurityProfilesListRevisionsCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse) error) error {
44928 c.ctx_ = ctx
44929 defer c.PageToken(c.urlParams_.Get("pageToken"))
44930 for {
44931 x, err := c.Do()
44932 if err != nil {
44933 return err
44934 }
44935 if err := f(x); err != nil {
44936 return err
44937 }
44938 if x.NextPageToken == "" {
44939 return nil
44940 }
44941 c.PageToken(x.NextPageToken)
44942 }
44943 }
44944
44945 type OrganizationsSecurityProfilesPatchCall struct {
44946 s *Service
44947 name string
44948 googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile
44949 urlParams_ gensupport.URLParams
44950 ctx_ context.Context
44951 header_ http.Header
44952 }
44953
44954
44955
44956
44957
44958 func (r *OrganizationsSecurityProfilesService) Patch(name string, googlecloudapigeev1securityprofile *GoogleCloudApigeeV1SecurityProfile) *OrganizationsSecurityProfilesPatchCall {
44959 c := &OrganizationsSecurityProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44960 c.name = name
44961 c.googlecloudapigeev1securityprofile = googlecloudapigeev1securityprofile
44962 return c
44963 }
44964
44965
44966
44967 func (c *OrganizationsSecurityProfilesPatchCall) UpdateMask(updateMask string) *OrganizationsSecurityProfilesPatchCall {
44968 c.urlParams_.Set("updateMask", updateMask)
44969 return c
44970 }
44971
44972
44973
44974
44975 func (c *OrganizationsSecurityProfilesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesPatchCall {
44976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44977 return c
44978 }
44979
44980
44981 func (c *OrganizationsSecurityProfilesPatchCall) Context(ctx context.Context) *OrganizationsSecurityProfilesPatchCall {
44982 c.ctx_ = ctx
44983 return c
44984 }
44985
44986
44987
44988 func (c *OrganizationsSecurityProfilesPatchCall) Header() http.Header {
44989 if c.header_ == nil {
44990 c.header_ = make(http.Header)
44991 }
44992 return c.header_
44993 }
44994
44995 func (c *OrganizationsSecurityProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
44996 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44997 var body io.Reader = nil
44998 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofile)
44999 if err != nil {
45000 return nil, err
45001 }
45002 c.urlParams_.Set("alt", alt)
45003 c.urlParams_.Set("prettyPrint", "false")
45004 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45005 urls += "?" + c.urlParams_.Encode()
45006 req, err := http.NewRequest("PATCH", urls, body)
45007 if err != nil {
45008 return nil, err
45009 }
45010 req.Header = reqHeaders
45011 googleapi.Expand(req.URL, map[string]string{
45012 "name": c.name,
45013 })
45014 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45015 }
45016
45017
45018
45019
45020
45021
45022
45023 func (c *OrganizationsSecurityProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfile, error) {
45024 gensupport.SetOptions(c.urlParams_, opts...)
45025 res, err := c.doRequest("json")
45026 if res != nil && res.StatusCode == http.StatusNotModified {
45027 if res.Body != nil {
45028 res.Body.Close()
45029 }
45030 return nil, gensupport.WrapError(&googleapi.Error{
45031 Code: res.StatusCode,
45032 Header: res.Header,
45033 })
45034 }
45035 if err != nil {
45036 return nil, err
45037 }
45038 defer googleapi.CloseBody(res)
45039 if err := googleapi.CheckResponse(res); err != nil {
45040 return nil, gensupport.WrapError(err)
45041 }
45042 ret := &GoogleCloudApigeeV1SecurityProfile{
45043 ServerResponse: googleapi.ServerResponse{
45044 Header: res.Header,
45045 HTTPStatusCode: res.StatusCode,
45046 },
45047 }
45048 target := &ret
45049 if err := gensupport.DecodeResponse(target, res); err != nil {
45050 return nil, err
45051 }
45052 return ret, nil
45053 }
45054
45055 type OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall struct {
45056 s *Service
45057 profileEnvironment string
45058 googlecloudapigeev1computeenvironmentscoresrequest *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest
45059 urlParams_ gensupport.URLParams
45060 ctx_ context.Context
45061 header_ http.Header
45062 }
45063
45064
45065
45066
45067
45068
45069
45070 func (r *OrganizationsSecurityProfilesEnvironmentsService) ComputeEnvironmentScores(profileEnvironment string, googlecloudapigeev1computeenvironmentscoresrequest *GoogleCloudApigeeV1ComputeEnvironmentScoresRequest) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
45071 c := &OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45072 c.profileEnvironment = profileEnvironment
45073 c.googlecloudapigeev1computeenvironmentscoresrequest = googlecloudapigeev1computeenvironmentscoresrequest
45074 return c
45075 }
45076
45077
45078
45079
45080 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
45081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45082 return c
45083 }
45084
45085
45086 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall {
45087 c.ctx_ = ctx
45088 return c
45089 }
45090
45091
45092
45093 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Header() http.Header {
45094 if c.header_ == nil {
45095 c.header_ = make(http.Header)
45096 }
45097 return c.header_
45098 }
45099
45100 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) doRequest(alt string) (*http.Response, error) {
45101 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45102 var body io.Reader = nil
45103 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1computeenvironmentscoresrequest)
45104 if err != nil {
45105 return nil, err
45106 }
45107 c.urlParams_.Set("alt", alt)
45108 c.urlParams_.Set("prettyPrint", "false")
45109 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+profileEnvironment}:computeEnvironmentScores")
45110 urls += "?" + c.urlParams_.Encode()
45111 req, err := http.NewRequest("POST", urls, body)
45112 if err != nil {
45113 return nil, err
45114 }
45115 req.Header = reqHeaders
45116 googleapi.Expand(req.URL, map[string]string{
45117 "profileEnvironment": c.profileEnvironment,
45118 })
45119 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45120 }
45121
45122
45123
45124
45125
45126
45127
45128 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ComputeEnvironmentScoresResponse, error) {
45129 gensupport.SetOptions(c.urlParams_, opts...)
45130 res, err := c.doRequest("json")
45131 if res != nil && res.StatusCode == http.StatusNotModified {
45132 if res.Body != nil {
45133 res.Body.Close()
45134 }
45135 return nil, gensupport.WrapError(&googleapi.Error{
45136 Code: res.StatusCode,
45137 Header: res.Header,
45138 })
45139 }
45140 if err != nil {
45141 return nil, err
45142 }
45143 defer googleapi.CloseBody(res)
45144 if err := googleapi.CheckResponse(res); err != nil {
45145 return nil, gensupport.WrapError(err)
45146 }
45147 ret := &GoogleCloudApigeeV1ComputeEnvironmentScoresResponse{
45148 ServerResponse: googleapi.ServerResponse{
45149 Header: res.Header,
45150 HTTPStatusCode: res.StatusCode,
45151 },
45152 }
45153 target := &ret
45154 if err := gensupport.DecodeResponse(target, res); err != nil {
45155 return nil, err
45156 }
45157 return ret, nil
45158 }
45159
45160
45161
45162
45163 func (c *OrganizationsSecurityProfilesEnvironmentsComputeEnvironmentScoresCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ComputeEnvironmentScoresResponse) error) error {
45164 c.ctx_ = ctx
45165 defer func(pt string) { c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken = pt }(c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken)
45166 for {
45167 x, err := c.Do()
45168 if err != nil {
45169 return err
45170 }
45171 if err := f(x); err != nil {
45172 return err
45173 }
45174 if x.NextPageToken == "" {
45175 return nil
45176 }
45177 c.googlecloudapigeev1computeenvironmentscoresrequest.PageToken = x.NextPageToken
45178 }
45179 }
45180
45181 type OrganizationsSecurityProfilesEnvironmentsCreateCall struct {
45182 s *Service
45183 parent string
45184 googlecloudapigeev1securityprofileenvironmentassociation *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation
45185 urlParams_ gensupport.URLParams
45186 ctx_ context.Context
45187 header_ http.Header
45188 }
45189
45190
45191
45192
45193
45194
45195 func (r *OrganizationsSecurityProfilesEnvironmentsService) Create(parent string, googlecloudapigeev1securityprofileenvironmentassociation *GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
45196 c := &OrganizationsSecurityProfilesEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45197 c.parent = parent
45198 c.googlecloudapigeev1securityprofileenvironmentassociation = googlecloudapigeev1securityprofileenvironmentassociation
45199 return c
45200 }
45201
45202
45203
45204
45205 func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
45206 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45207 return c
45208 }
45209
45210
45211 func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsCreateCall {
45212 c.ctx_ = ctx
45213 return c
45214 }
45215
45216
45217
45218 func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Header() http.Header {
45219 if c.header_ == nil {
45220 c.header_ = make(http.Header)
45221 }
45222 return c.header_
45223 }
45224
45225 func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
45226 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45227 var body io.Reader = nil
45228 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1securityprofileenvironmentassociation)
45229 if err != nil {
45230 return nil, err
45231 }
45232 c.urlParams_.Set("alt", alt)
45233 c.urlParams_.Set("prettyPrint", "false")
45234 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
45235 urls += "?" + c.urlParams_.Encode()
45236 req, err := http.NewRequest("POST", urls, body)
45237 if err != nil {
45238 return nil, err
45239 }
45240 req.Header = reqHeaders
45241 googleapi.Expand(req.URL, map[string]string{
45242 "parent": c.parent,
45243 })
45244 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45245 }
45246
45247
45248
45249
45250
45251
45252
45253 func (c *OrganizationsSecurityProfilesEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation, error) {
45254 gensupport.SetOptions(c.urlParams_, opts...)
45255 res, err := c.doRequest("json")
45256 if res != nil && res.StatusCode == http.StatusNotModified {
45257 if res.Body != nil {
45258 res.Body.Close()
45259 }
45260 return nil, gensupport.WrapError(&googleapi.Error{
45261 Code: res.StatusCode,
45262 Header: res.Header,
45263 })
45264 }
45265 if err != nil {
45266 return nil, err
45267 }
45268 defer googleapi.CloseBody(res)
45269 if err := googleapi.CheckResponse(res); err != nil {
45270 return nil, gensupport.WrapError(err)
45271 }
45272 ret := &GoogleCloudApigeeV1SecurityProfileEnvironmentAssociation{
45273 ServerResponse: googleapi.ServerResponse{
45274 Header: res.Header,
45275 HTTPStatusCode: res.StatusCode,
45276 },
45277 }
45278 target := &ret
45279 if err := gensupport.DecodeResponse(target, res); err != nil {
45280 return nil, err
45281 }
45282 return ret, nil
45283 }
45284
45285 type OrganizationsSecurityProfilesEnvironmentsDeleteCall struct {
45286 s *Service
45287 name string
45288 urlParams_ gensupport.URLParams
45289 ctx_ context.Context
45290 header_ http.Header
45291 }
45292
45293
45294
45295
45296
45297
45298 func (r *OrganizationsSecurityProfilesEnvironmentsService) Delete(name string) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
45299 c := &OrganizationsSecurityProfilesEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45300 c.name = name
45301 return c
45302 }
45303
45304
45305
45306
45307 func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
45308 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45309 return c
45310 }
45311
45312
45313 func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsSecurityProfilesEnvironmentsDeleteCall {
45314 c.ctx_ = ctx
45315 return c
45316 }
45317
45318
45319
45320 func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Header() http.Header {
45321 if c.header_ == nil {
45322 c.header_ = make(http.Header)
45323 }
45324 return c.header_
45325 }
45326
45327 func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
45328 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45329 var body io.Reader = nil
45330 c.urlParams_.Set("alt", alt)
45331 c.urlParams_.Set("prettyPrint", "false")
45332 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45333 urls += "?" + c.urlParams_.Encode()
45334 req, err := http.NewRequest("DELETE", urls, body)
45335 if err != nil {
45336 return nil, err
45337 }
45338 req.Header = reqHeaders
45339 googleapi.Expand(req.URL, map[string]string{
45340 "name": c.name,
45341 })
45342 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45343 }
45344
45345
45346
45347
45348
45349
45350
45351 func (c *OrganizationsSecurityProfilesEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45352 gensupport.SetOptions(c.urlParams_, opts...)
45353 res, err := c.doRequest("json")
45354 if res != nil && res.StatusCode == http.StatusNotModified {
45355 if res.Body != nil {
45356 res.Body.Close()
45357 }
45358 return nil, gensupport.WrapError(&googleapi.Error{
45359 Code: res.StatusCode,
45360 Header: res.Header,
45361 })
45362 }
45363 if err != nil {
45364 return nil, err
45365 }
45366 defer googleapi.CloseBody(res)
45367 if err := googleapi.CheckResponse(res); err != nil {
45368 return nil, gensupport.WrapError(err)
45369 }
45370 ret := &GoogleProtobufEmpty{
45371 ServerResponse: googleapi.ServerResponse{
45372 Header: res.Header,
45373 HTTPStatusCode: res.StatusCode,
45374 },
45375 }
45376 target := &ret
45377 if err := gensupport.DecodeResponse(target, res); err != nil {
45378 return nil, err
45379 }
45380 return ret, nil
45381 }
45382
45383 type OrganizationsSharedflowsCreateCall struct {
45384 s *Service
45385 parent string
45386 googleapihttpbody *GoogleApiHttpBody
45387 urlParams_ gensupport.URLParams
45388 ctx_ context.Context
45389 header_ http.Header
45390 }
45391
45392
45393
45394
45395
45396
45397
45398
45399
45400 func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
45401 c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45402 c.parent = parent
45403 c.googleapihttpbody = googleapihttpbody
45404 return c
45405 }
45406
45407
45408
45409 func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
45410 c.urlParams_.Set("action", action)
45411 return c
45412 }
45413
45414
45415
45416 func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
45417 c.urlParams_.Set("name", name)
45418 return c
45419 }
45420
45421
45422
45423
45424 func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
45425 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45426 return c
45427 }
45428
45429
45430 func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
45431 c.ctx_ = ctx
45432 return c
45433 }
45434
45435
45436
45437 func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
45438 if c.header_ == nil {
45439 c.header_ = make(http.Header)
45440 }
45441 return c.header_
45442 }
45443
45444 func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
45445 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45446 var body io.Reader = nil
45447 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
45448 if err != nil {
45449 return nil, err
45450 }
45451 c.urlParams_.Set("alt", alt)
45452 c.urlParams_.Set("prettyPrint", "false")
45453 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
45454 urls += "?" + c.urlParams_.Encode()
45455 req, err := http.NewRequest("POST", urls, body)
45456 if err != nil {
45457 return nil, err
45458 }
45459 req.Header = reqHeaders
45460 googleapi.Expand(req.URL, map[string]string{
45461 "parent": c.parent,
45462 })
45463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45464 }
45465
45466
45467
45468
45469
45470
45471
45472 func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
45473 gensupport.SetOptions(c.urlParams_, opts...)
45474 res, err := c.doRequest("json")
45475 if res != nil && res.StatusCode == http.StatusNotModified {
45476 if res.Body != nil {
45477 res.Body.Close()
45478 }
45479 return nil, gensupport.WrapError(&googleapi.Error{
45480 Code: res.StatusCode,
45481 Header: res.Header,
45482 })
45483 }
45484 if err != nil {
45485 return nil, err
45486 }
45487 defer googleapi.CloseBody(res)
45488 if err := googleapi.CheckResponse(res); err != nil {
45489 return nil, gensupport.WrapError(err)
45490 }
45491 ret := &GoogleCloudApigeeV1SharedFlowRevision{
45492 ServerResponse: googleapi.ServerResponse{
45493 Header: res.Header,
45494 HTTPStatusCode: res.StatusCode,
45495 },
45496 }
45497 target := &ret
45498 if err := gensupport.DecodeResponse(target, res); err != nil {
45499 return nil, err
45500 }
45501 return ret, nil
45502 }
45503
45504 type OrganizationsSharedflowsDeleteCall struct {
45505 s *Service
45506 name string
45507 urlParams_ gensupport.URLParams
45508 ctx_ context.Context
45509 header_ http.Header
45510 }
45511
45512
45513
45514
45515
45516
45517 func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
45518 c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45519 c.name = name
45520 return c
45521 }
45522
45523
45524
45525
45526 func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
45527 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45528 return c
45529 }
45530
45531
45532 func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
45533 c.ctx_ = ctx
45534 return c
45535 }
45536
45537
45538
45539 func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
45540 if c.header_ == nil {
45541 c.header_ = make(http.Header)
45542 }
45543 return c.header_
45544 }
45545
45546 func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
45547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45548 var body io.Reader = nil
45549 c.urlParams_.Set("alt", alt)
45550 c.urlParams_.Set("prettyPrint", "false")
45551 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45552 urls += "?" + c.urlParams_.Encode()
45553 req, err := http.NewRequest("DELETE", urls, body)
45554 if err != nil {
45555 return nil, err
45556 }
45557 req.Header = reqHeaders
45558 googleapi.Expand(req.URL, map[string]string{
45559 "name": c.name,
45560 })
45561 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45562 }
45563
45564
45565
45566
45567
45568
45569
45570 func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
45571 gensupport.SetOptions(c.urlParams_, opts...)
45572 res, err := c.doRequest("json")
45573 if res != nil && res.StatusCode == http.StatusNotModified {
45574 if res.Body != nil {
45575 res.Body.Close()
45576 }
45577 return nil, gensupport.WrapError(&googleapi.Error{
45578 Code: res.StatusCode,
45579 Header: res.Header,
45580 })
45581 }
45582 if err != nil {
45583 return nil, err
45584 }
45585 defer googleapi.CloseBody(res)
45586 if err := googleapi.CheckResponse(res); err != nil {
45587 return nil, gensupport.WrapError(err)
45588 }
45589 ret := &GoogleCloudApigeeV1SharedFlow{
45590 ServerResponse: googleapi.ServerResponse{
45591 Header: res.Header,
45592 HTTPStatusCode: res.StatusCode,
45593 },
45594 }
45595 target := &ret
45596 if err := gensupport.DecodeResponse(target, res); err != nil {
45597 return nil, err
45598 }
45599 return ret, nil
45600 }
45601
45602 type OrganizationsSharedflowsGetCall struct {
45603 s *Service
45604 name string
45605 urlParams_ gensupport.URLParams
45606 ifNoneMatch_ string
45607 ctx_ context.Context
45608 header_ http.Header
45609 }
45610
45611
45612
45613
45614
45615 func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
45616 c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45617 c.name = name
45618 return c
45619 }
45620
45621
45622
45623
45624 func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
45625 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45626 return c
45627 }
45628
45629
45630
45631
45632 func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
45633 c.ifNoneMatch_ = entityTag
45634 return c
45635 }
45636
45637
45638 func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
45639 c.ctx_ = ctx
45640 return c
45641 }
45642
45643
45644
45645 func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
45646 if c.header_ == nil {
45647 c.header_ = make(http.Header)
45648 }
45649 return c.header_
45650 }
45651
45652 func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
45653 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45654 if c.ifNoneMatch_ != "" {
45655 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45656 }
45657 var body io.Reader = nil
45658 c.urlParams_.Set("alt", alt)
45659 c.urlParams_.Set("prettyPrint", "false")
45660 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45661 urls += "?" + c.urlParams_.Encode()
45662 req, err := http.NewRequest("GET", urls, body)
45663 if err != nil {
45664 return nil, err
45665 }
45666 req.Header = reqHeaders
45667 googleapi.Expand(req.URL, map[string]string{
45668 "name": c.name,
45669 })
45670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45671 }
45672
45673
45674
45675
45676
45677
45678
45679 func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
45680 gensupport.SetOptions(c.urlParams_, opts...)
45681 res, err := c.doRequest("json")
45682 if res != nil && res.StatusCode == http.StatusNotModified {
45683 if res.Body != nil {
45684 res.Body.Close()
45685 }
45686 return nil, gensupport.WrapError(&googleapi.Error{
45687 Code: res.StatusCode,
45688 Header: res.Header,
45689 })
45690 }
45691 if err != nil {
45692 return nil, err
45693 }
45694 defer googleapi.CloseBody(res)
45695 if err := googleapi.CheckResponse(res); err != nil {
45696 return nil, gensupport.WrapError(err)
45697 }
45698 ret := &GoogleCloudApigeeV1SharedFlow{
45699 ServerResponse: googleapi.ServerResponse{
45700 Header: res.Header,
45701 HTTPStatusCode: res.StatusCode,
45702 },
45703 }
45704 target := &ret
45705 if err := gensupport.DecodeResponse(target, res); err != nil {
45706 return nil, err
45707 }
45708 return ret, nil
45709 }
45710
45711 type OrganizationsSharedflowsListCall struct {
45712 s *Service
45713 parent string
45714 urlParams_ gensupport.URLParams
45715 ifNoneMatch_ string
45716 ctx_ context.Context
45717 header_ http.Header
45718 }
45719
45720
45721
45722
45723
45724 func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
45725 c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45726 c.parent = parent
45727 return c
45728 }
45729
45730
45731
45732 func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
45733 c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
45734 return c
45735 }
45736
45737
45738
45739 func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
45740 c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
45741 return c
45742 }
45743
45744
45745
45746
45747 func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
45748 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45749 return c
45750 }
45751
45752
45753
45754
45755 func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
45756 c.ifNoneMatch_ = entityTag
45757 return c
45758 }
45759
45760
45761 func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
45762 c.ctx_ = ctx
45763 return c
45764 }
45765
45766
45767
45768 func (c *OrganizationsSharedflowsListCall) Header() http.Header {
45769 if c.header_ == nil {
45770 c.header_ = make(http.Header)
45771 }
45772 return c.header_
45773 }
45774
45775 func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
45776 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45777 if c.ifNoneMatch_ != "" {
45778 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45779 }
45780 var body io.Reader = nil
45781 c.urlParams_.Set("alt", alt)
45782 c.urlParams_.Set("prettyPrint", "false")
45783 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
45784 urls += "?" + c.urlParams_.Encode()
45785 req, err := http.NewRequest("GET", urls, body)
45786 if err != nil {
45787 return nil, err
45788 }
45789 req.Header = reqHeaders
45790 googleapi.Expand(req.URL, map[string]string{
45791 "parent": c.parent,
45792 })
45793 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45794 }
45795
45796
45797
45798
45799
45800
45801
45802 func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, error) {
45803 gensupport.SetOptions(c.urlParams_, opts...)
45804 res, err := c.doRequest("json")
45805 if res != nil && res.StatusCode == http.StatusNotModified {
45806 if res.Body != nil {
45807 res.Body.Close()
45808 }
45809 return nil, gensupport.WrapError(&googleapi.Error{
45810 Code: res.StatusCode,
45811 Header: res.Header,
45812 })
45813 }
45814 if err != nil {
45815 return nil, err
45816 }
45817 defer googleapi.CloseBody(res)
45818 if err := googleapi.CheckResponse(res); err != nil {
45819 return nil, gensupport.WrapError(err)
45820 }
45821 ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
45822 ServerResponse: googleapi.ServerResponse{
45823 Header: res.Header,
45824 HTTPStatusCode: res.StatusCode,
45825 },
45826 }
45827 target := &ret
45828 if err := gensupport.DecodeResponse(target, res); err != nil {
45829 return nil, err
45830 }
45831 return ret, nil
45832 }
45833
45834 type OrganizationsSharedflowsDeploymentsListCall struct {
45835 s *Service
45836 parent string
45837 urlParams_ gensupport.URLParams
45838 ifNoneMatch_ string
45839 ctx_ context.Context
45840 header_ http.Header
45841 }
45842
45843
45844
45845
45846
45847 func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
45848 c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45849 c.parent = parent
45850 return c
45851 }
45852
45853
45854
45855
45856 func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
45857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45858 return c
45859 }
45860
45861
45862
45863
45864 func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
45865 c.ifNoneMatch_ = entityTag
45866 return c
45867 }
45868
45869
45870 func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
45871 c.ctx_ = ctx
45872 return c
45873 }
45874
45875
45876
45877 func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
45878 if c.header_ == nil {
45879 c.header_ = make(http.Header)
45880 }
45881 return c.header_
45882 }
45883
45884 func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
45885 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45886 if c.ifNoneMatch_ != "" {
45887 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45888 }
45889 var body io.Reader = nil
45890 c.urlParams_.Set("alt", alt)
45891 c.urlParams_.Set("prettyPrint", "false")
45892 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
45893 urls += "?" + c.urlParams_.Encode()
45894 req, err := http.NewRequest("GET", urls, body)
45895 if err != nil {
45896 return nil, err
45897 }
45898 req.Header = reqHeaders
45899 googleapi.Expand(req.URL, map[string]string{
45900 "parent": c.parent,
45901 })
45902 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45903 }
45904
45905
45906
45907
45908
45909
45910
45911 func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
45912 gensupport.SetOptions(c.urlParams_, opts...)
45913 res, err := c.doRequest("json")
45914 if res != nil && res.StatusCode == http.StatusNotModified {
45915 if res.Body != nil {
45916 res.Body.Close()
45917 }
45918 return nil, gensupport.WrapError(&googleapi.Error{
45919 Code: res.StatusCode,
45920 Header: res.Header,
45921 })
45922 }
45923 if err != nil {
45924 return nil, err
45925 }
45926 defer googleapi.CloseBody(res)
45927 if err := googleapi.CheckResponse(res); err != nil {
45928 return nil, gensupport.WrapError(err)
45929 }
45930 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
45931 ServerResponse: googleapi.ServerResponse{
45932 Header: res.Header,
45933 HTTPStatusCode: res.StatusCode,
45934 },
45935 }
45936 target := &ret
45937 if err := gensupport.DecodeResponse(target, res); err != nil {
45938 return nil, err
45939 }
45940 return ret, nil
45941 }
45942
45943 type OrganizationsSharedflowsRevisionsDeleteCall struct {
45944 s *Service
45945 name string
45946 urlParams_ gensupport.URLParams
45947 ctx_ context.Context
45948 header_ http.Header
45949 }
45950
45951
45952
45953
45954
45955
45956
45957 func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
45958 c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45959 c.name = name
45960 return c
45961 }
45962
45963
45964
45965
45966 func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
45967 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45968 return c
45969 }
45970
45971
45972 func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
45973 c.ctx_ = ctx
45974 return c
45975 }
45976
45977
45978
45979 func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
45980 if c.header_ == nil {
45981 c.header_ = make(http.Header)
45982 }
45983 return c.header_
45984 }
45985
45986 func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
45987 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45988 var body io.Reader = nil
45989 c.urlParams_.Set("alt", alt)
45990 c.urlParams_.Set("prettyPrint", "false")
45991 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
45992 urls += "?" + c.urlParams_.Encode()
45993 req, err := http.NewRequest("DELETE", urls, body)
45994 if err != nil {
45995 return nil, err
45996 }
45997 req.Header = reqHeaders
45998 googleapi.Expand(req.URL, map[string]string{
45999 "name": c.name,
46000 })
46001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46002 }
46003
46004
46005
46006
46007
46008
46009
46010 func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
46011 gensupport.SetOptions(c.urlParams_, opts...)
46012 res, err := c.doRequest("json")
46013 if res != nil && res.StatusCode == http.StatusNotModified {
46014 if res.Body != nil {
46015 res.Body.Close()
46016 }
46017 return nil, gensupport.WrapError(&googleapi.Error{
46018 Code: res.StatusCode,
46019 Header: res.Header,
46020 })
46021 }
46022 if err != nil {
46023 return nil, err
46024 }
46025 defer googleapi.CloseBody(res)
46026 if err := googleapi.CheckResponse(res); err != nil {
46027 return nil, gensupport.WrapError(err)
46028 }
46029 ret := &GoogleCloudApigeeV1SharedFlowRevision{
46030 ServerResponse: googleapi.ServerResponse{
46031 Header: res.Header,
46032 HTTPStatusCode: res.StatusCode,
46033 },
46034 }
46035 target := &ret
46036 if err := gensupport.DecodeResponse(target, res); err != nil {
46037 return nil, err
46038 }
46039 return ret, nil
46040 }
46041
46042 type OrganizationsSharedflowsRevisionsGetCall struct {
46043 s *Service
46044 name string
46045 urlParams_ gensupport.URLParams
46046 ifNoneMatch_ string
46047 ctx_ context.Context
46048 header_ http.Header
46049 }
46050
46051
46052
46053
46054
46055
46056
46057
46058
46059
46060
46061
46062 func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
46063 c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46064 c.name = name
46065 return c
46066 }
46067
46068
46069
46070
46071 func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
46072 c.urlParams_.Set("format", format)
46073 return c
46074 }
46075
46076
46077
46078
46079 func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
46080 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46081 return c
46082 }
46083
46084
46085
46086
46087 func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
46088 c.ifNoneMatch_ = entityTag
46089 return c
46090 }
46091
46092
46093 func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
46094 c.ctx_ = ctx
46095 return c
46096 }
46097
46098
46099
46100 func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
46101 if c.header_ == nil {
46102 c.header_ = make(http.Header)
46103 }
46104 return c.header_
46105 }
46106
46107 func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
46108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46109 if c.ifNoneMatch_ != "" {
46110 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46111 }
46112 var body io.Reader = nil
46113 c.urlParams_.Set("alt", alt)
46114 c.urlParams_.Set("prettyPrint", "false")
46115 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
46116 urls += "?" + c.urlParams_.Encode()
46117 req, err := http.NewRequest("GET", urls, body)
46118 if err != nil {
46119 return nil, err
46120 }
46121 req.Header = reqHeaders
46122 googleapi.Expand(req.URL, map[string]string{
46123 "name": c.name,
46124 })
46125 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46126 }
46127
46128
46129
46130
46131
46132
46133
46134 func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
46135 gensupport.SetOptions(c.urlParams_, opts...)
46136 res, err := c.doRequest("json")
46137 if res != nil && res.StatusCode == http.StatusNotModified {
46138 if res.Body != nil {
46139 res.Body.Close()
46140 }
46141 return nil, gensupport.WrapError(&googleapi.Error{
46142 Code: res.StatusCode,
46143 Header: res.Header,
46144 })
46145 }
46146 if err != nil {
46147 return nil, err
46148 }
46149 defer googleapi.CloseBody(res)
46150 if err := googleapi.CheckResponse(res); err != nil {
46151 return nil, gensupport.WrapError(err)
46152 }
46153 ret := &GoogleApiHttpBody{
46154 ServerResponse: googleapi.ServerResponse{
46155 Header: res.Header,
46156 HTTPStatusCode: res.StatusCode,
46157 },
46158 }
46159 target := &ret
46160 if err := gensupport.DecodeResponse(target, res); err != nil {
46161 return nil, err
46162 }
46163 return ret, nil
46164 }
46165
46166 type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
46167 s *Service
46168 name string
46169 googleapihttpbody *GoogleApiHttpBody
46170 urlParams_ gensupport.URLParams
46171 ctx_ context.Context
46172 header_ http.Header
46173 }
46174
46175
46176
46177
46178
46179
46180
46181
46182
46183
46184 func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
46185 c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46186 c.name = name
46187 c.googleapihttpbody = googleapihttpbody
46188 return c
46189 }
46190
46191
46192
46193
46194 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
46195 c.urlParams_.Set("validate", fmt.Sprint(validate))
46196 return c
46197 }
46198
46199
46200
46201
46202 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
46203 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46204 return c
46205 }
46206
46207
46208 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
46209 c.ctx_ = ctx
46210 return c
46211 }
46212
46213
46214
46215 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
46216 if c.header_ == nil {
46217 c.header_ = make(http.Header)
46218 }
46219 return c.header_
46220 }
46221
46222 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
46223 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46224 var body io.Reader = nil
46225 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
46226 if err != nil {
46227 return nil, err
46228 }
46229 c.urlParams_.Set("alt", alt)
46230 c.urlParams_.Set("prettyPrint", "false")
46231 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
46232 urls += "?" + c.urlParams_.Encode()
46233 req, err := http.NewRequest("POST", urls, body)
46234 if err != nil {
46235 return nil, err
46236 }
46237 req.Header = reqHeaders
46238 googleapi.Expand(req.URL, map[string]string{
46239 "name": c.name,
46240 })
46241 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46242 }
46243
46244
46245
46246
46247
46248
46249
46250 func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
46251 gensupport.SetOptions(c.urlParams_, opts...)
46252 res, err := c.doRequest("json")
46253 if res != nil && res.StatusCode == http.StatusNotModified {
46254 if res.Body != nil {
46255 res.Body.Close()
46256 }
46257 return nil, gensupport.WrapError(&googleapi.Error{
46258 Code: res.StatusCode,
46259 Header: res.Header,
46260 })
46261 }
46262 if err != nil {
46263 return nil, err
46264 }
46265 defer googleapi.CloseBody(res)
46266 if err := googleapi.CheckResponse(res); err != nil {
46267 return nil, gensupport.WrapError(err)
46268 }
46269 ret := &GoogleCloudApigeeV1SharedFlowRevision{
46270 ServerResponse: googleapi.ServerResponse{
46271 Header: res.Header,
46272 HTTPStatusCode: res.StatusCode,
46273 },
46274 }
46275 target := &ret
46276 if err := gensupport.DecodeResponse(target, res); err != nil {
46277 return nil, err
46278 }
46279 return ret, nil
46280 }
46281
46282 type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
46283 s *Service
46284 parent string
46285 urlParams_ gensupport.URLParams
46286 ifNoneMatch_ string
46287 ctx_ context.Context
46288 header_ http.Header
46289 }
46290
46291
46292
46293
46294
46295
46296 func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
46297 c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46298 c.parent = parent
46299 return c
46300 }
46301
46302
46303
46304
46305 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
46306 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46307 return c
46308 }
46309
46310
46311
46312
46313 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
46314 c.ifNoneMatch_ = entityTag
46315 return c
46316 }
46317
46318
46319 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
46320 c.ctx_ = ctx
46321 return c
46322 }
46323
46324
46325
46326 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
46327 if c.header_ == nil {
46328 c.header_ = make(http.Header)
46329 }
46330 return c.header_
46331 }
46332
46333 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
46334 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46335 if c.ifNoneMatch_ != "" {
46336 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46337 }
46338 var body io.Reader = nil
46339 c.urlParams_.Set("alt", alt)
46340 c.urlParams_.Set("prettyPrint", "false")
46341 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
46342 urls += "?" + c.urlParams_.Encode()
46343 req, err := http.NewRequest("GET", urls, body)
46344 if err != nil {
46345 return nil, err
46346 }
46347 req.Header = reqHeaders
46348 googleapi.Expand(req.URL, map[string]string{
46349 "parent": c.parent,
46350 })
46351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46352 }
46353
46354
46355
46356
46357
46358
46359
46360 func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
46361 gensupport.SetOptions(c.urlParams_, opts...)
46362 res, err := c.doRequest("json")
46363 if res != nil && res.StatusCode == http.StatusNotModified {
46364 if res.Body != nil {
46365 res.Body.Close()
46366 }
46367 return nil, gensupport.WrapError(&googleapi.Error{
46368 Code: res.StatusCode,
46369 Header: res.Header,
46370 })
46371 }
46372 if err != nil {
46373 return nil, err
46374 }
46375 defer googleapi.CloseBody(res)
46376 if err := googleapi.CheckResponse(res); err != nil {
46377 return nil, gensupport.WrapError(err)
46378 }
46379 ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
46380 ServerResponse: googleapi.ServerResponse{
46381 Header: res.Header,
46382 HTTPStatusCode: res.StatusCode,
46383 },
46384 }
46385 target := &ret
46386 if err := gensupport.DecodeResponse(target, res); err != nil {
46387 return nil, err
46388 }
46389 return ret, nil
46390 }
46391
46392 type OrganizationsSitesApicategoriesCreateCall struct {
46393 s *Service
46394 parent string
46395 googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory
46396 urlParams_ gensupport.URLParams
46397 ctx_ context.Context
46398 header_ http.Header
46399 }
46400
46401
46402
46403
46404
46405 func (r *OrganizationsSitesApicategoriesService) Create(parent string, googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory) *OrganizationsSitesApicategoriesCreateCall {
46406 c := &OrganizationsSitesApicategoriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46407 c.parent = parent
46408 c.googlecloudapigeev1apicategory = googlecloudapigeev1apicategory
46409 return c
46410 }
46411
46412
46413
46414
46415 func (c *OrganizationsSitesApicategoriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesCreateCall {
46416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46417 return c
46418 }
46419
46420
46421 func (c *OrganizationsSitesApicategoriesCreateCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesCreateCall {
46422 c.ctx_ = ctx
46423 return c
46424 }
46425
46426
46427
46428 func (c *OrganizationsSitesApicategoriesCreateCall) Header() http.Header {
46429 if c.header_ == nil {
46430 c.header_ = make(http.Header)
46431 }
46432 return c.header_
46433 }
46434
46435 func (c *OrganizationsSitesApicategoriesCreateCall) doRequest(alt string) (*http.Response, error) {
46436 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46437 var body io.Reader = nil
46438 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategory)
46439 if err != nil {
46440 return nil, err
46441 }
46442 c.urlParams_.Set("alt", alt)
46443 c.urlParams_.Set("prettyPrint", "false")
46444 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
46445 urls += "?" + c.urlParams_.Encode()
46446 req, err := http.NewRequest("POST", urls, body)
46447 if err != nil {
46448 return nil, err
46449 }
46450 req.Header = reqHeaders
46451 googleapi.Expand(req.URL, map[string]string{
46452 "parent": c.parent,
46453 })
46454 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46455 }
46456
46457
46458
46459
46460
46461
46462
46463 func (c *OrganizationsSitesApicategoriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
46464 gensupport.SetOptions(c.urlParams_, opts...)
46465 res, err := c.doRequest("json")
46466 if res != nil && res.StatusCode == http.StatusNotModified {
46467 if res.Body != nil {
46468 res.Body.Close()
46469 }
46470 return nil, gensupport.WrapError(&googleapi.Error{
46471 Code: res.StatusCode,
46472 Header: res.Header,
46473 })
46474 }
46475 if err != nil {
46476 return nil, err
46477 }
46478 defer googleapi.CloseBody(res)
46479 if err := googleapi.CheckResponse(res); err != nil {
46480 return nil, gensupport.WrapError(err)
46481 }
46482 ret := &GoogleCloudApigeeV1ApiCategoryResponse{
46483 ServerResponse: googleapi.ServerResponse{
46484 Header: res.Header,
46485 HTTPStatusCode: res.StatusCode,
46486 },
46487 }
46488 target := &ret
46489 if err := gensupport.DecodeResponse(target, res); err != nil {
46490 return nil, err
46491 }
46492 return ret, nil
46493 }
46494
46495 type OrganizationsSitesApicategoriesDeleteCall struct {
46496 s *Service
46497 name string
46498 urlParams_ gensupport.URLParams
46499 ctx_ context.Context
46500 header_ http.Header
46501 }
46502
46503
46504
46505
46506
46507 func (r *OrganizationsSitesApicategoriesService) Delete(name string) *OrganizationsSitesApicategoriesDeleteCall {
46508 c := &OrganizationsSitesApicategoriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46509 c.name = name
46510 return c
46511 }
46512
46513
46514
46515
46516 func (c *OrganizationsSitesApicategoriesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesDeleteCall {
46517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46518 return c
46519 }
46520
46521
46522 func (c *OrganizationsSitesApicategoriesDeleteCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesDeleteCall {
46523 c.ctx_ = ctx
46524 return c
46525 }
46526
46527
46528
46529 func (c *OrganizationsSitesApicategoriesDeleteCall) Header() http.Header {
46530 if c.header_ == nil {
46531 c.header_ = make(http.Header)
46532 }
46533 return c.header_
46534 }
46535
46536 func (c *OrganizationsSitesApicategoriesDeleteCall) doRequest(alt string) (*http.Response, error) {
46537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46538 var body io.Reader = nil
46539 c.urlParams_.Set("alt", alt)
46540 c.urlParams_.Set("prettyPrint", "false")
46541 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
46542 urls += "?" + c.urlParams_.Encode()
46543 req, err := http.NewRequest("DELETE", urls, body)
46544 if err != nil {
46545 return nil, err
46546 }
46547 req.Header = reqHeaders
46548 googleapi.Expand(req.URL, map[string]string{
46549 "name": c.name,
46550 })
46551 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46552 }
46553
46554
46555
46556
46557
46558
46559
46560 func (c *OrganizationsSitesApicategoriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteResponse, error) {
46561 gensupport.SetOptions(c.urlParams_, opts...)
46562 res, err := c.doRequest("json")
46563 if res != nil && res.StatusCode == http.StatusNotModified {
46564 if res.Body != nil {
46565 res.Body.Close()
46566 }
46567 return nil, gensupport.WrapError(&googleapi.Error{
46568 Code: res.StatusCode,
46569 Header: res.Header,
46570 })
46571 }
46572 if err != nil {
46573 return nil, err
46574 }
46575 defer googleapi.CloseBody(res)
46576 if err := googleapi.CheckResponse(res); err != nil {
46577 return nil, gensupport.WrapError(err)
46578 }
46579 ret := &GoogleCloudApigeeV1DeleteResponse{
46580 ServerResponse: googleapi.ServerResponse{
46581 Header: res.Header,
46582 HTTPStatusCode: res.StatusCode,
46583 },
46584 }
46585 target := &ret
46586 if err := gensupport.DecodeResponse(target, res); err != nil {
46587 return nil, err
46588 }
46589 return ret, nil
46590 }
46591
46592 type OrganizationsSitesApicategoriesGetCall struct {
46593 s *Service
46594 name string
46595 urlParams_ gensupport.URLParams
46596 ifNoneMatch_ string
46597 ctx_ context.Context
46598 header_ http.Header
46599 }
46600
46601
46602
46603
46604
46605 func (r *OrganizationsSitesApicategoriesService) Get(name string) *OrganizationsSitesApicategoriesGetCall {
46606 c := &OrganizationsSitesApicategoriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46607 c.name = name
46608 return c
46609 }
46610
46611
46612
46613
46614 func (c *OrganizationsSitesApicategoriesGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesGetCall {
46615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46616 return c
46617 }
46618
46619
46620
46621
46622 func (c *OrganizationsSitesApicategoriesGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesGetCall {
46623 c.ifNoneMatch_ = entityTag
46624 return c
46625 }
46626
46627
46628 func (c *OrganizationsSitesApicategoriesGetCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesGetCall {
46629 c.ctx_ = ctx
46630 return c
46631 }
46632
46633
46634
46635 func (c *OrganizationsSitesApicategoriesGetCall) Header() http.Header {
46636 if c.header_ == nil {
46637 c.header_ = make(http.Header)
46638 }
46639 return c.header_
46640 }
46641
46642 func (c *OrganizationsSitesApicategoriesGetCall) doRequest(alt string) (*http.Response, error) {
46643 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46644 if c.ifNoneMatch_ != "" {
46645 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46646 }
46647 var body io.Reader = nil
46648 c.urlParams_.Set("alt", alt)
46649 c.urlParams_.Set("prettyPrint", "false")
46650 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
46651 urls += "?" + c.urlParams_.Encode()
46652 req, err := http.NewRequest("GET", urls, body)
46653 if err != nil {
46654 return nil, err
46655 }
46656 req.Header = reqHeaders
46657 googleapi.Expand(req.URL, map[string]string{
46658 "name": c.name,
46659 })
46660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46661 }
46662
46663
46664
46665
46666
46667
46668
46669 func (c *OrganizationsSitesApicategoriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
46670 gensupport.SetOptions(c.urlParams_, opts...)
46671 res, err := c.doRequest("json")
46672 if res != nil && res.StatusCode == http.StatusNotModified {
46673 if res.Body != nil {
46674 res.Body.Close()
46675 }
46676 return nil, gensupport.WrapError(&googleapi.Error{
46677 Code: res.StatusCode,
46678 Header: res.Header,
46679 })
46680 }
46681 if err != nil {
46682 return nil, err
46683 }
46684 defer googleapi.CloseBody(res)
46685 if err := googleapi.CheckResponse(res); err != nil {
46686 return nil, gensupport.WrapError(err)
46687 }
46688 ret := &GoogleCloudApigeeV1ApiCategoryResponse{
46689 ServerResponse: googleapi.ServerResponse{
46690 Header: res.Header,
46691 HTTPStatusCode: res.StatusCode,
46692 },
46693 }
46694 target := &ret
46695 if err := gensupport.DecodeResponse(target, res); err != nil {
46696 return nil, err
46697 }
46698 return ret, nil
46699 }
46700
46701 type OrganizationsSitesApicategoriesListCall struct {
46702 s *Service
46703 parent string
46704 urlParams_ gensupport.URLParams
46705 ifNoneMatch_ string
46706 ctx_ context.Context
46707 header_ http.Header
46708 }
46709
46710
46711
46712
46713
46714 func (r *OrganizationsSitesApicategoriesService) List(parent string) *OrganizationsSitesApicategoriesListCall {
46715 c := &OrganizationsSitesApicategoriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46716 c.parent = parent
46717 return c
46718 }
46719
46720
46721
46722
46723 func (c *OrganizationsSitesApicategoriesListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesListCall {
46724 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46725 return c
46726 }
46727
46728
46729
46730
46731 func (c *OrganizationsSitesApicategoriesListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApicategoriesListCall {
46732 c.ifNoneMatch_ = entityTag
46733 return c
46734 }
46735
46736
46737 func (c *OrganizationsSitesApicategoriesListCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesListCall {
46738 c.ctx_ = ctx
46739 return c
46740 }
46741
46742
46743
46744 func (c *OrganizationsSitesApicategoriesListCall) Header() http.Header {
46745 if c.header_ == nil {
46746 c.header_ = make(http.Header)
46747 }
46748 return c.header_
46749 }
46750
46751 func (c *OrganizationsSitesApicategoriesListCall) doRequest(alt string) (*http.Response, error) {
46752 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46753 if c.ifNoneMatch_ != "" {
46754 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46755 }
46756 var body io.Reader = nil
46757 c.urlParams_.Set("alt", alt)
46758 c.urlParams_.Set("prettyPrint", "false")
46759 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apicategories")
46760 urls += "?" + c.urlParams_.Encode()
46761 req, err := http.NewRequest("GET", urls, body)
46762 if err != nil {
46763 return nil, err
46764 }
46765 req.Header = reqHeaders
46766 googleapi.Expand(req.URL, map[string]string{
46767 "parent": c.parent,
46768 })
46769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46770 }
46771
46772
46773
46774
46775
46776
46777
46778 func (c *OrganizationsSitesApicategoriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiCategoriesResponse, error) {
46779 gensupport.SetOptions(c.urlParams_, opts...)
46780 res, err := c.doRequest("json")
46781 if res != nil && res.StatusCode == http.StatusNotModified {
46782 if res.Body != nil {
46783 res.Body.Close()
46784 }
46785 return nil, gensupport.WrapError(&googleapi.Error{
46786 Code: res.StatusCode,
46787 Header: res.Header,
46788 })
46789 }
46790 if err != nil {
46791 return nil, err
46792 }
46793 defer googleapi.CloseBody(res)
46794 if err := googleapi.CheckResponse(res); err != nil {
46795 return nil, gensupport.WrapError(err)
46796 }
46797 ret := &GoogleCloudApigeeV1ListApiCategoriesResponse{
46798 ServerResponse: googleapi.ServerResponse{
46799 Header: res.Header,
46800 HTTPStatusCode: res.StatusCode,
46801 },
46802 }
46803 target := &ret
46804 if err := gensupport.DecodeResponse(target, res); err != nil {
46805 return nil, err
46806 }
46807 return ret, nil
46808 }
46809
46810 type OrganizationsSitesApicategoriesPatchCall struct {
46811 s *Service
46812 name string
46813 googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory
46814 urlParams_ gensupport.URLParams
46815 ctx_ context.Context
46816 header_ http.Header
46817 }
46818
46819
46820
46821
46822
46823 func (r *OrganizationsSitesApicategoriesService) Patch(name string, googlecloudapigeev1apicategory *GoogleCloudApigeeV1ApiCategory) *OrganizationsSitesApicategoriesPatchCall {
46824 c := &OrganizationsSitesApicategoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46825 c.name = name
46826 c.googlecloudapigeev1apicategory = googlecloudapigeev1apicategory
46827 return c
46828 }
46829
46830
46831
46832
46833 func (c *OrganizationsSitesApicategoriesPatchCall) Fields(s ...googleapi.Field) *OrganizationsSitesApicategoriesPatchCall {
46834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46835 return c
46836 }
46837
46838
46839 func (c *OrganizationsSitesApicategoriesPatchCall) Context(ctx context.Context) *OrganizationsSitesApicategoriesPatchCall {
46840 c.ctx_ = ctx
46841 return c
46842 }
46843
46844
46845
46846 func (c *OrganizationsSitesApicategoriesPatchCall) Header() http.Header {
46847 if c.header_ == nil {
46848 c.header_ = make(http.Header)
46849 }
46850 return c.header_
46851 }
46852
46853 func (c *OrganizationsSitesApicategoriesPatchCall) doRequest(alt string) (*http.Response, error) {
46854 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46855 var body io.Reader = nil
46856 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apicategory)
46857 if err != nil {
46858 return nil, err
46859 }
46860 c.urlParams_.Set("alt", alt)
46861 c.urlParams_.Set("prettyPrint", "false")
46862 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
46863 urls += "?" + c.urlParams_.Encode()
46864 req, err := http.NewRequest("PATCH", urls, body)
46865 if err != nil {
46866 return nil, err
46867 }
46868 req.Header = reqHeaders
46869 googleapi.Expand(req.URL, map[string]string{
46870 "name": c.name,
46871 })
46872 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46873 }
46874
46875
46876
46877
46878
46879
46880
46881 func (c *OrganizationsSitesApicategoriesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiCategoryResponse, error) {
46882 gensupport.SetOptions(c.urlParams_, opts...)
46883 res, err := c.doRequest("json")
46884 if res != nil && res.StatusCode == http.StatusNotModified {
46885 if res.Body != nil {
46886 res.Body.Close()
46887 }
46888 return nil, gensupport.WrapError(&googleapi.Error{
46889 Code: res.StatusCode,
46890 Header: res.Header,
46891 })
46892 }
46893 if err != nil {
46894 return nil, err
46895 }
46896 defer googleapi.CloseBody(res)
46897 if err := googleapi.CheckResponse(res); err != nil {
46898 return nil, gensupport.WrapError(err)
46899 }
46900 ret := &GoogleCloudApigeeV1ApiCategoryResponse{
46901 ServerResponse: googleapi.ServerResponse{
46902 Header: res.Header,
46903 HTTPStatusCode: res.StatusCode,
46904 },
46905 }
46906 target := &ret
46907 if err := gensupport.DecodeResponse(target, res); err != nil {
46908 return nil, err
46909 }
46910 return ret, nil
46911 }
46912
46913 type OrganizationsSitesApidocsCreateCall struct {
46914 s *Service
46915 parent string
46916 googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc
46917 urlParams_ gensupport.URLParams
46918 ctx_ context.Context
46919 header_ http.Header
46920 }
46921
46922
46923
46924
46925
46926 func (r *OrganizationsSitesApidocsService) Create(parent string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsCreateCall {
46927 c := &OrganizationsSitesApidocsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46928 c.parent = parent
46929 c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc
46930 return c
46931 }
46932
46933
46934
46935
46936 func (c *OrganizationsSitesApidocsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsCreateCall {
46937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46938 return c
46939 }
46940
46941
46942 func (c *OrganizationsSitesApidocsCreateCall) Context(ctx context.Context) *OrganizationsSitesApidocsCreateCall {
46943 c.ctx_ = ctx
46944 return c
46945 }
46946
46947
46948
46949 func (c *OrganizationsSitesApidocsCreateCall) Header() http.Header {
46950 if c.header_ == nil {
46951 c.header_ = make(http.Header)
46952 }
46953 return c.header_
46954 }
46955
46956 func (c *OrganizationsSitesApidocsCreateCall) doRequest(alt string) (*http.Response, error) {
46957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46958 var body io.Reader = nil
46959 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidoc)
46960 if err != nil {
46961 return nil, err
46962 }
46963 c.urlParams_.Set("alt", alt)
46964 c.urlParams_.Set("prettyPrint", "false")
46965 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs")
46966 urls += "?" + c.urlParams_.Encode()
46967 req, err := http.NewRequest("POST", urls, body)
46968 if err != nil {
46969 return nil, err
46970 }
46971 req.Header = reqHeaders
46972 googleapi.Expand(req.URL, map[string]string{
46973 "parent": c.parent,
46974 })
46975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46976 }
46977
46978
46979
46980
46981
46982
46983
46984 func (c *OrganizationsSitesApidocsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
46985 gensupport.SetOptions(c.urlParams_, opts...)
46986 res, err := c.doRequest("json")
46987 if res != nil && res.StatusCode == http.StatusNotModified {
46988 if res.Body != nil {
46989 res.Body.Close()
46990 }
46991 return nil, gensupport.WrapError(&googleapi.Error{
46992 Code: res.StatusCode,
46993 Header: res.Header,
46994 })
46995 }
46996 if err != nil {
46997 return nil, err
46998 }
46999 defer googleapi.CloseBody(res)
47000 if err := googleapi.CheckResponse(res); err != nil {
47001 return nil, gensupport.WrapError(err)
47002 }
47003 ret := &GoogleCloudApigeeV1ApiDocResponse{
47004 ServerResponse: googleapi.ServerResponse{
47005 Header: res.Header,
47006 HTTPStatusCode: res.StatusCode,
47007 },
47008 }
47009 target := &ret
47010 if err := gensupport.DecodeResponse(target, res); err != nil {
47011 return nil, err
47012 }
47013 return ret, nil
47014 }
47015
47016 type OrganizationsSitesApidocsDeleteCall struct {
47017 s *Service
47018 name string
47019 urlParams_ gensupport.URLParams
47020 ctx_ context.Context
47021 header_ http.Header
47022 }
47023
47024
47025
47026
47027
47028 func (r *OrganizationsSitesApidocsService) Delete(name string) *OrganizationsSitesApidocsDeleteCall {
47029 c := &OrganizationsSitesApidocsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47030 c.name = name
47031 return c
47032 }
47033
47034
47035
47036
47037 func (c *OrganizationsSitesApidocsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsDeleteCall {
47038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47039 return c
47040 }
47041
47042
47043 func (c *OrganizationsSitesApidocsDeleteCall) Context(ctx context.Context) *OrganizationsSitesApidocsDeleteCall {
47044 c.ctx_ = ctx
47045 return c
47046 }
47047
47048
47049
47050 func (c *OrganizationsSitesApidocsDeleteCall) Header() http.Header {
47051 if c.header_ == nil {
47052 c.header_ = make(http.Header)
47053 }
47054 return c.header_
47055 }
47056
47057 func (c *OrganizationsSitesApidocsDeleteCall) doRequest(alt string) (*http.Response, error) {
47058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47059 var body io.Reader = nil
47060 c.urlParams_.Set("alt", alt)
47061 c.urlParams_.Set("prettyPrint", "false")
47062 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
47063 urls += "?" + c.urlParams_.Encode()
47064 req, err := http.NewRequest("DELETE", urls, body)
47065 if err != nil {
47066 return nil, err
47067 }
47068 req.Header = reqHeaders
47069 googleapi.Expand(req.URL, map[string]string{
47070 "name": c.name,
47071 })
47072 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47073 }
47074
47075
47076
47077
47078
47079
47080
47081 func (c *OrganizationsSitesApidocsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteResponse, error) {
47082 gensupport.SetOptions(c.urlParams_, opts...)
47083 res, err := c.doRequest("json")
47084 if res != nil && res.StatusCode == http.StatusNotModified {
47085 if res.Body != nil {
47086 res.Body.Close()
47087 }
47088 return nil, gensupport.WrapError(&googleapi.Error{
47089 Code: res.StatusCode,
47090 Header: res.Header,
47091 })
47092 }
47093 if err != nil {
47094 return nil, err
47095 }
47096 defer googleapi.CloseBody(res)
47097 if err := googleapi.CheckResponse(res); err != nil {
47098 return nil, gensupport.WrapError(err)
47099 }
47100 ret := &GoogleCloudApigeeV1DeleteResponse{
47101 ServerResponse: googleapi.ServerResponse{
47102 Header: res.Header,
47103 HTTPStatusCode: res.StatusCode,
47104 },
47105 }
47106 target := &ret
47107 if err := gensupport.DecodeResponse(target, res); err != nil {
47108 return nil, err
47109 }
47110 return ret, nil
47111 }
47112
47113 type OrganizationsSitesApidocsGetCall struct {
47114 s *Service
47115 name string
47116 urlParams_ gensupport.URLParams
47117 ifNoneMatch_ string
47118 ctx_ context.Context
47119 header_ http.Header
47120 }
47121
47122
47123
47124
47125
47126 func (r *OrganizationsSitesApidocsService) Get(name string) *OrganizationsSitesApidocsGetCall {
47127 c := &OrganizationsSitesApidocsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47128 c.name = name
47129 return c
47130 }
47131
47132
47133
47134
47135 func (c *OrganizationsSitesApidocsGetCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetCall {
47136 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47137 return c
47138 }
47139
47140
47141
47142
47143 func (c *OrganizationsSitesApidocsGetCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetCall {
47144 c.ifNoneMatch_ = entityTag
47145 return c
47146 }
47147
47148
47149 func (c *OrganizationsSitesApidocsGetCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetCall {
47150 c.ctx_ = ctx
47151 return c
47152 }
47153
47154
47155
47156 func (c *OrganizationsSitesApidocsGetCall) Header() http.Header {
47157 if c.header_ == nil {
47158 c.header_ = make(http.Header)
47159 }
47160 return c.header_
47161 }
47162
47163 func (c *OrganizationsSitesApidocsGetCall) doRequest(alt string) (*http.Response, error) {
47164 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47165 if c.ifNoneMatch_ != "" {
47166 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47167 }
47168 var body io.Reader = nil
47169 c.urlParams_.Set("alt", alt)
47170 c.urlParams_.Set("prettyPrint", "false")
47171 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
47172 urls += "?" + c.urlParams_.Encode()
47173 req, err := http.NewRequest("GET", urls, body)
47174 if err != nil {
47175 return nil, err
47176 }
47177 req.Header = reqHeaders
47178 googleapi.Expand(req.URL, map[string]string{
47179 "name": c.name,
47180 })
47181 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47182 }
47183
47184
47185
47186
47187
47188
47189
47190 func (c *OrganizationsSitesApidocsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
47191 gensupport.SetOptions(c.urlParams_, opts...)
47192 res, err := c.doRequest("json")
47193 if res != nil && res.StatusCode == http.StatusNotModified {
47194 if res.Body != nil {
47195 res.Body.Close()
47196 }
47197 return nil, gensupport.WrapError(&googleapi.Error{
47198 Code: res.StatusCode,
47199 Header: res.Header,
47200 })
47201 }
47202 if err != nil {
47203 return nil, err
47204 }
47205 defer googleapi.CloseBody(res)
47206 if err := googleapi.CheckResponse(res); err != nil {
47207 return nil, gensupport.WrapError(err)
47208 }
47209 ret := &GoogleCloudApigeeV1ApiDocResponse{
47210 ServerResponse: googleapi.ServerResponse{
47211 Header: res.Header,
47212 HTTPStatusCode: res.StatusCode,
47213 },
47214 }
47215 target := &ret
47216 if err := gensupport.DecodeResponse(target, res); err != nil {
47217 return nil, err
47218 }
47219 return ret, nil
47220 }
47221
47222 type OrganizationsSitesApidocsGetDocumentationCall struct {
47223 s *Service
47224 name string
47225 urlParams_ gensupport.URLParams
47226 ifNoneMatch_ string
47227 ctx_ context.Context
47228 header_ http.Header
47229 }
47230
47231
47232
47233
47234
47235
47236 func (r *OrganizationsSitesApidocsService) GetDocumentation(name string) *OrganizationsSitesApidocsGetDocumentationCall {
47237 c := &OrganizationsSitesApidocsGetDocumentationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47238 c.name = name
47239 return c
47240 }
47241
47242
47243
47244
47245 func (c *OrganizationsSitesApidocsGetDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsGetDocumentationCall {
47246 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47247 return c
47248 }
47249
47250
47251
47252
47253 func (c *OrganizationsSitesApidocsGetDocumentationCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsGetDocumentationCall {
47254 c.ifNoneMatch_ = entityTag
47255 return c
47256 }
47257
47258
47259 func (c *OrganizationsSitesApidocsGetDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsGetDocumentationCall {
47260 c.ctx_ = ctx
47261 return c
47262 }
47263
47264
47265
47266 func (c *OrganizationsSitesApidocsGetDocumentationCall) Header() http.Header {
47267 if c.header_ == nil {
47268 c.header_ = make(http.Header)
47269 }
47270 return c.header_
47271 }
47272
47273 func (c *OrganizationsSitesApidocsGetDocumentationCall) doRequest(alt string) (*http.Response, error) {
47274 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47275 if c.ifNoneMatch_ != "" {
47276 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47277 }
47278 var body io.Reader = nil
47279 c.urlParams_.Set("alt", alt)
47280 c.urlParams_.Set("prettyPrint", "false")
47281 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
47282 urls += "?" + c.urlParams_.Encode()
47283 req, err := http.NewRequest("GET", urls, body)
47284 if err != nil {
47285 return nil, err
47286 }
47287 req.Header = reqHeaders
47288 googleapi.Expand(req.URL, map[string]string{
47289 "name": c.name,
47290 })
47291 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47292 }
47293
47294
47295
47296
47297
47298
47299
47300 func (c *OrganizationsSitesApidocsGetDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, error) {
47301 gensupport.SetOptions(c.urlParams_, opts...)
47302 res, err := c.doRequest("json")
47303 if res != nil && res.StatusCode == http.StatusNotModified {
47304 if res.Body != nil {
47305 res.Body.Close()
47306 }
47307 return nil, gensupport.WrapError(&googleapi.Error{
47308 Code: res.StatusCode,
47309 Header: res.Header,
47310 })
47311 }
47312 if err != nil {
47313 return nil, err
47314 }
47315 defer googleapi.CloseBody(res)
47316 if err := googleapi.CheckResponse(res); err != nil {
47317 return nil, gensupport.WrapError(err)
47318 }
47319 ret := &GoogleCloudApigeeV1ApiDocDocumentationResponse{
47320 ServerResponse: googleapi.ServerResponse{
47321 Header: res.Header,
47322 HTTPStatusCode: res.StatusCode,
47323 },
47324 }
47325 target := &ret
47326 if err := gensupport.DecodeResponse(target, res); err != nil {
47327 return nil, err
47328 }
47329 return ret, nil
47330 }
47331
47332 type OrganizationsSitesApidocsListCall struct {
47333 s *Service
47334 parent string
47335 urlParams_ gensupport.URLParams
47336 ifNoneMatch_ string
47337 ctx_ context.Context
47338 header_ http.Header
47339 }
47340
47341
47342
47343
47344
47345 func (r *OrganizationsSitesApidocsService) List(parent string) *OrganizationsSitesApidocsListCall {
47346 c := &OrganizationsSitesApidocsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47347 c.parent = parent
47348 return c
47349 }
47350
47351
47352
47353
47354
47355 func (c *OrganizationsSitesApidocsListCall) PageSize(pageSize int64) *OrganizationsSitesApidocsListCall {
47356 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
47357 return c
47358 }
47359
47360
47361
47362
47363 func (c *OrganizationsSitesApidocsListCall) PageToken(pageToken string) *OrganizationsSitesApidocsListCall {
47364 c.urlParams_.Set("pageToken", pageToken)
47365 return c
47366 }
47367
47368
47369
47370
47371 func (c *OrganizationsSitesApidocsListCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsListCall {
47372 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47373 return c
47374 }
47375
47376
47377
47378
47379 func (c *OrganizationsSitesApidocsListCall) IfNoneMatch(entityTag string) *OrganizationsSitesApidocsListCall {
47380 c.ifNoneMatch_ = entityTag
47381 return c
47382 }
47383
47384
47385 func (c *OrganizationsSitesApidocsListCall) Context(ctx context.Context) *OrganizationsSitesApidocsListCall {
47386 c.ctx_ = ctx
47387 return c
47388 }
47389
47390
47391
47392 func (c *OrganizationsSitesApidocsListCall) Header() http.Header {
47393 if c.header_ == nil {
47394 c.header_ = make(http.Header)
47395 }
47396 return c.header_
47397 }
47398
47399 func (c *OrganizationsSitesApidocsListCall) doRequest(alt string) (*http.Response, error) {
47400 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47401 if c.ifNoneMatch_ != "" {
47402 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47403 }
47404 var body io.Reader = nil
47405 c.urlParams_.Set("alt", alt)
47406 c.urlParams_.Set("prettyPrint", "false")
47407 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apidocs")
47408 urls += "?" + c.urlParams_.Encode()
47409 req, err := http.NewRequest("GET", urls, body)
47410 if err != nil {
47411 return nil, err
47412 }
47413 req.Header = reqHeaders
47414 googleapi.Expand(req.URL, map[string]string{
47415 "parent": c.parent,
47416 })
47417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47418 }
47419
47420
47421
47422
47423
47424
47425
47426 func (c *OrganizationsSitesApidocsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiDocsResponse, error) {
47427 gensupport.SetOptions(c.urlParams_, opts...)
47428 res, err := c.doRequest("json")
47429 if res != nil && res.StatusCode == http.StatusNotModified {
47430 if res.Body != nil {
47431 res.Body.Close()
47432 }
47433 return nil, gensupport.WrapError(&googleapi.Error{
47434 Code: res.StatusCode,
47435 Header: res.Header,
47436 })
47437 }
47438 if err != nil {
47439 return nil, err
47440 }
47441 defer googleapi.CloseBody(res)
47442 if err := googleapi.CheckResponse(res); err != nil {
47443 return nil, gensupport.WrapError(err)
47444 }
47445 ret := &GoogleCloudApigeeV1ListApiDocsResponse{
47446 ServerResponse: googleapi.ServerResponse{
47447 Header: res.Header,
47448 HTTPStatusCode: res.StatusCode,
47449 },
47450 }
47451 target := &ret
47452 if err := gensupport.DecodeResponse(target, res); err != nil {
47453 return nil, err
47454 }
47455 return ret, nil
47456 }
47457
47458
47459
47460
47461 func (c *OrganizationsSitesApidocsListCall) Pages(ctx context.Context, f func(*GoogleCloudApigeeV1ListApiDocsResponse) error) error {
47462 c.ctx_ = ctx
47463 defer c.PageToken(c.urlParams_.Get("pageToken"))
47464 for {
47465 x, err := c.Do()
47466 if err != nil {
47467 return err
47468 }
47469 if err := f(x); err != nil {
47470 return err
47471 }
47472 if x.NextPageToken == "" {
47473 return nil
47474 }
47475 c.PageToken(x.NextPageToken)
47476 }
47477 }
47478
47479 type OrganizationsSitesApidocsUpdateCall struct {
47480 s *Service
47481 name string
47482 googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc
47483 urlParams_ gensupport.URLParams
47484 ctx_ context.Context
47485 header_ http.Header
47486 }
47487
47488
47489
47490
47491
47492 func (r *OrganizationsSitesApidocsService) Update(name string, googlecloudapigeev1apidoc *GoogleCloudApigeeV1ApiDoc) *OrganizationsSitesApidocsUpdateCall {
47493 c := &OrganizationsSitesApidocsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47494 c.name = name
47495 c.googlecloudapigeev1apidoc = googlecloudapigeev1apidoc
47496 return c
47497 }
47498
47499
47500
47501
47502 func (c *OrganizationsSitesApidocsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateCall {
47503 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47504 return c
47505 }
47506
47507
47508 func (c *OrganizationsSitesApidocsUpdateCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateCall {
47509 c.ctx_ = ctx
47510 return c
47511 }
47512
47513
47514
47515 func (c *OrganizationsSitesApidocsUpdateCall) Header() http.Header {
47516 if c.header_ == nil {
47517 c.header_ = make(http.Header)
47518 }
47519 return c.header_
47520 }
47521
47522 func (c *OrganizationsSitesApidocsUpdateCall) doRequest(alt string) (*http.Response, error) {
47523 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47524 var body io.Reader = nil
47525 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidoc)
47526 if err != nil {
47527 return nil, err
47528 }
47529 c.urlParams_.Set("alt", alt)
47530 c.urlParams_.Set("prettyPrint", "false")
47531 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
47532 urls += "?" + c.urlParams_.Encode()
47533 req, err := http.NewRequest("PUT", urls, body)
47534 if err != nil {
47535 return nil, err
47536 }
47537 req.Header = reqHeaders
47538 googleapi.Expand(req.URL, map[string]string{
47539 "name": c.name,
47540 })
47541 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47542 }
47543
47544
47545
47546
47547
47548
47549
47550 func (c *OrganizationsSitesApidocsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocResponse, error) {
47551 gensupport.SetOptions(c.urlParams_, opts...)
47552 res, err := c.doRequest("json")
47553 if res != nil && res.StatusCode == http.StatusNotModified {
47554 if res.Body != nil {
47555 res.Body.Close()
47556 }
47557 return nil, gensupport.WrapError(&googleapi.Error{
47558 Code: res.StatusCode,
47559 Header: res.Header,
47560 })
47561 }
47562 if err != nil {
47563 return nil, err
47564 }
47565 defer googleapi.CloseBody(res)
47566 if err := googleapi.CheckResponse(res); err != nil {
47567 return nil, gensupport.WrapError(err)
47568 }
47569 ret := &GoogleCloudApigeeV1ApiDocResponse{
47570 ServerResponse: googleapi.ServerResponse{
47571 Header: res.Header,
47572 HTTPStatusCode: res.StatusCode,
47573 },
47574 }
47575 target := &ret
47576 if err := gensupport.DecodeResponse(target, res); err != nil {
47577 return nil, err
47578 }
47579 return ret, nil
47580 }
47581
47582 type OrganizationsSitesApidocsUpdateDocumentationCall struct {
47583 s *Service
47584 name string
47585 googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation
47586 urlParams_ gensupport.URLParams
47587 ctx_ context.Context
47588 header_ http.Header
47589 }
47590
47591
47592
47593
47594
47595
47596
47597
47598 func (r *OrganizationsSitesApidocsService) UpdateDocumentation(name string, googlecloudapigeev1apidocdocumentation *GoogleCloudApigeeV1ApiDocDocumentation) *OrganizationsSitesApidocsUpdateDocumentationCall {
47599 c := &OrganizationsSitesApidocsUpdateDocumentationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47600 c.name = name
47601 c.googlecloudapigeev1apidocdocumentation = googlecloudapigeev1apidocdocumentation
47602 return c
47603 }
47604
47605
47606
47607
47608 func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Fields(s ...googleapi.Field) *OrganizationsSitesApidocsUpdateDocumentationCall {
47609 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47610 return c
47611 }
47612
47613
47614 func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Context(ctx context.Context) *OrganizationsSitesApidocsUpdateDocumentationCall {
47615 c.ctx_ = ctx
47616 return c
47617 }
47618
47619
47620
47621 func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Header() http.Header {
47622 if c.header_ == nil {
47623 c.header_ = make(http.Header)
47624 }
47625 return c.header_
47626 }
47627
47628 func (c *OrganizationsSitesApidocsUpdateDocumentationCall) doRequest(alt string) (*http.Response, error) {
47629 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47630 var body io.Reader = nil
47631 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apidocdocumentation)
47632 if err != nil {
47633 return nil, err
47634 }
47635 c.urlParams_.Set("alt", alt)
47636 c.urlParams_.Set("prettyPrint", "false")
47637 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
47638 urls += "?" + c.urlParams_.Encode()
47639 req, err := http.NewRequest("PATCH", urls, body)
47640 if err != nil {
47641 return nil, err
47642 }
47643 req.Header = reqHeaders
47644 googleapi.Expand(req.URL, map[string]string{
47645 "name": c.name,
47646 })
47647 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47648 }
47649
47650
47651
47652
47653
47654
47655
47656 func (c *OrganizationsSitesApidocsUpdateDocumentationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiDocDocumentationResponse, error) {
47657 gensupport.SetOptions(c.urlParams_, opts...)
47658 res, err := c.doRequest("json")
47659 if res != nil && res.StatusCode == http.StatusNotModified {
47660 if res.Body != nil {
47661 res.Body.Close()
47662 }
47663 return nil, gensupport.WrapError(&googleapi.Error{
47664 Code: res.StatusCode,
47665 Header: res.Header,
47666 })
47667 }
47668 if err != nil {
47669 return nil, err
47670 }
47671 defer googleapi.CloseBody(res)
47672 if err := googleapi.CheckResponse(res); err != nil {
47673 return nil, gensupport.WrapError(err)
47674 }
47675 ret := &GoogleCloudApigeeV1ApiDocDocumentationResponse{
47676 ServerResponse: googleapi.ServerResponse{
47677 Header: res.Header,
47678 HTTPStatusCode: res.StatusCode,
47679 },
47680 }
47681 target := &ret
47682 if err := gensupport.DecodeResponse(target, res); err != nil {
47683 return nil, err
47684 }
47685 return ret, nil
47686 }
47687
47688 type ProjectsProvisionOrganizationCall struct {
47689 s *Service
47690 project string
47691 googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest
47692 urlParams_ gensupport.URLParams
47693 ctx_ context.Context
47694 header_ http.Header
47695 }
47696
47697
47698
47699
47700
47701
47702
47703 func (r *ProjectsService) ProvisionOrganization(project string, googlecloudapigeev1provisionorganizationrequest *GoogleCloudApigeeV1ProvisionOrganizationRequest) *ProjectsProvisionOrganizationCall {
47704 c := &ProjectsProvisionOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47705 c.project = project
47706 c.googlecloudapigeev1provisionorganizationrequest = googlecloudapigeev1provisionorganizationrequest
47707 return c
47708 }
47709
47710
47711
47712
47713 func (c *ProjectsProvisionOrganizationCall) Fields(s ...googleapi.Field) *ProjectsProvisionOrganizationCall {
47714 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47715 return c
47716 }
47717
47718
47719 func (c *ProjectsProvisionOrganizationCall) Context(ctx context.Context) *ProjectsProvisionOrganizationCall {
47720 c.ctx_ = ctx
47721 return c
47722 }
47723
47724
47725
47726 func (c *ProjectsProvisionOrganizationCall) Header() http.Header {
47727 if c.header_ == nil {
47728 c.header_ = make(http.Header)
47729 }
47730 return c.header_
47731 }
47732
47733 func (c *ProjectsProvisionOrganizationCall) doRequest(alt string) (*http.Response, error) {
47734 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47735 var body io.Reader = nil
47736 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1provisionorganizationrequest)
47737 if err != nil {
47738 return nil, err
47739 }
47740 c.urlParams_.Set("alt", alt)
47741 c.urlParams_.Set("prettyPrint", "false")
47742 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+project}:provisionOrganization")
47743 urls += "?" + c.urlParams_.Encode()
47744 req, err := http.NewRequest("POST", urls, body)
47745 if err != nil {
47746 return nil, err
47747 }
47748 req.Header = reqHeaders
47749 googleapi.Expand(req.URL, map[string]string{
47750 "project": c.project,
47751 })
47752 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47753 }
47754
47755
47756
47757
47758
47759
47760
47761 func (c *ProjectsProvisionOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
47762 gensupport.SetOptions(c.urlParams_, opts...)
47763 res, err := c.doRequest("json")
47764 if res != nil && res.StatusCode == http.StatusNotModified {
47765 if res.Body != nil {
47766 res.Body.Close()
47767 }
47768 return nil, gensupport.WrapError(&googleapi.Error{
47769 Code: res.StatusCode,
47770 Header: res.Header,
47771 })
47772 }
47773 if err != nil {
47774 return nil, err
47775 }
47776 defer googleapi.CloseBody(res)
47777 if err := googleapi.CheckResponse(res); err != nil {
47778 return nil, gensupport.WrapError(err)
47779 }
47780 ret := &GoogleLongrunningOperation{
47781 ServerResponse: googleapi.ServerResponse{
47782 Header: res.Header,
47783 HTTPStatusCode: res.StatusCode,
47784 },
47785 }
47786 target := &ret
47787 if err := gensupport.DecodeResponse(target, res); err != nil {
47788 return nil, err
47789 }
47790 return ret, nil
47791 }
47792
View as plain text