1// Copyright 2020 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package apigee provides access to the Apigee API.
8//
9// For product documentation, see: https://cloud.google.com/apigee-api-management/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/apigee/v1"
16//   ...
17//   ctx := context.Background()
18//   apigeeService, err := apigee.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   apigeeService, err := apigee.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   apigeeService, err := apigee.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package apigee // import "google.golang.org/api/apigee/v1"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	googleapi "google.golang.org/api/googleapi"
53	gensupport "google.golang.org/api/internal/gensupport"
54	option "google.golang.org/api/option"
55	htransport "google.golang.org/api/transport/http"
56)
57
58// Always reference these packages, just in case the auto-generated code
59// below doesn't.
60var _ = bytes.NewBuffer
61var _ = strconv.Itoa
62var _ = fmt.Sprintf
63var _ = json.NewDecoder
64var _ = io.Copy
65var _ = url.Parse
66var _ = gensupport.MarshalJSON
67var _ = googleapi.Version
68var _ = errors.New
69var _ = strings.Replace
70var _ = context.Canceled
71
72const apiId = "apigee:v1"
73const apiName = "apigee"
74const apiVersion = "v1"
75const basePath = "https://apigee.googleapis.com/"
76
77// OAuth2 scopes used by this API.
78const (
79	// View and manage your data across Google Cloud Platform services
80	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
81)
82
83// NewService creates a new Service.
84func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
85	scopesOption := option.WithScopes(
86		"https://www.googleapis.com/auth/cloud-platform",
87	)
88	// NOTE: prepend, so we don't override user-specified scopes.
89	opts = append([]option.ClientOption{scopesOption}, opts...)
90	client, endpoint, err := htransport.NewClient(ctx, opts...)
91	if err != nil {
92		return nil, err
93	}
94	s, err := New(client)
95	if err != nil {
96		return nil, err
97	}
98	if endpoint != "" {
99		s.BasePath = endpoint
100	}
101	return s, nil
102}
103
104// New creates a new Service. It uses the provided http.Client for requests.
105//
106// Deprecated: please use NewService instead.
107// To provide a custom HTTP client, use option.WithHTTPClient.
108// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
109func New(client *http.Client) (*Service, error) {
110	if client == nil {
111		return nil, errors.New("client is nil")
112	}
113	s := &Service{client: client, BasePath: basePath}
114	s.Hybrid = NewHybridService(s)
115	s.Organizations = NewOrganizationsService(s)
116	return s, nil
117}
118
119type Service struct {
120	client    *http.Client
121	BasePath  string // API endpoint base URL
122	UserAgent string // optional additional User-Agent fragment
123
124	Hybrid *HybridService
125
126	Organizations *OrganizationsService
127}
128
129func (s *Service) userAgent() string {
130	if s.UserAgent == "" {
131		return googleapi.UserAgent
132	}
133	return googleapi.UserAgent + " " + s.UserAgent
134}
135
136func NewHybridService(s *Service) *HybridService {
137	rs := &HybridService{s: s}
138	rs.Issuers = NewHybridIssuersService(s)
139	return rs
140}
141
142type HybridService struct {
143	s *Service
144
145	Issuers *HybridIssuersService
146}
147
148func NewHybridIssuersService(s *Service) *HybridIssuersService {
149	rs := &HybridIssuersService{s: s}
150	return rs
151}
152
153type HybridIssuersService struct {
154	s *Service
155}
156
157func NewOrganizationsService(s *Service) *OrganizationsService {
158	rs := &OrganizationsService{s: s}
159	rs.Apiproducts = NewOrganizationsApiproductsService(s)
160	rs.Apis = NewOrganizationsApisService(s)
161	rs.Apps = NewOrganizationsAppsService(s)
162	rs.Companies = NewOrganizationsCompaniesService(s)
163	rs.Deployments = NewOrganizationsDeploymentsService(s)
164	rs.Developers = NewOrganizationsDevelopersService(s)
165	rs.Environments = NewOrganizationsEnvironmentsService(s)
166	rs.Keyvaluemaps = NewOrganizationsKeyvaluemapsService(s)
167	rs.Operations = NewOrganizationsOperationsService(s)
168	rs.Reports = NewOrganizationsReportsService(s)
169	rs.Sharedflows = NewOrganizationsSharedflowsService(s)
170	return rs
171}
172
173type OrganizationsService struct {
174	s *Service
175
176	Apiproducts *OrganizationsApiproductsService
177
178	Apis *OrganizationsApisService
179
180	Apps *OrganizationsAppsService
181
182	Companies *OrganizationsCompaniesService
183
184	Deployments *OrganizationsDeploymentsService
185
186	Developers *OrganizationsDevelopersService
187
188	Environments *OrganizationsEnvironmentsService
189
190	Keyvaluemaps *OrganizationsKeyvaluemapsService
191
192	Operations *OrganizationsOperationsService
193
194	Reports *OrganizationsReportsService
195
196	Sharedflows *OrganizationsSharedflowsService
197}
198
199func NewOrganizationsApiproductsService(s *Service) *OrganizationsApiproductsService {
200	rs := &OrganizationsApiproductsService{s: s}
201	rs.Attributes_ = NewOrganizationsApiproductsAttributesService(s)
202	return rs
203}
204
205type OrganizationsApiproductsService struct {
206	s *Service
207
208	Attributes_ *OrganizationsApiproductsAttributesService
209}
210
211func NewOrganizationsApiproductsAttributesService(s *Service) *OrganizationsApiproductsAttributesService {
212	rs := &OrganizationsApiproductsAttributesService{s: s}
213	return rs
214}
215
216type OrganizationsApiproductsAttributesService struct {
217	s *Service
218}
219
220func NewOrganizationsApisService(s *Service) *OrganizationsApisService {
221	rs := &OrganizationsApisService{s: s}
222	rs.Deployments = NewOrganizationsApisDeploymentsService(s)
223	rs.Keyvaluemaps = NewOrganizationsApisKeyvaluemapsService(s)
224	rs.Revisions = NewOrganizationsApisRevisionsService(s)
225	return rs
226}
227
228type OrganizationsApisService struct {
229	s *Service
230
231	Deployments *OrganizationsApisDeploymentsService
232
233	Keyvaluemaps *OrganizationsApisKeyvaluemapsService
234
235	Revisions *OrganizationsApisRevisionsService
236}
237
238func NewOrganizationsApisDeploymentsService(s *Service) *OrganizationsApisDeploymentsService {
239	rs := &OrganizationsApisDeploymentsService{s: s}
240	return rs
241}
242
243type OrganizationsApisDeploymentsService struct {
244	s *Service
245}
246
247func NewOrganizationsApisKeyvaluemapsService(s *Service) *OrganizationsApisKeyvaluemapsService {
248	rs := &OrganizationsApisKeyvaluemapsService{s: s}
249	return rs
250}
251
252type OrganizationsApisKeyvaluemapsService struct {
253	s *Service
254}
255
256func NewOrganizationsApisRevisionsService(s *Service) *OrganizationsApisRevisionsService {
257	rs := &OrganizationsApisRevisionsService{s: s}
258	rs.Deployments = NewOrganizationsApisRevisionsDeploymentsService(s)
259	return rs
260}
261
262type OrganizationsApisRevisionsService struct {
263	s *Service
264
265	Deployments *OrganizationsApisRevisionsDeploymentsService
266}
267
268func NewOrganizationsApisRevisionsDeploymentsService(s *Service) *OrganizationsApisRevisionsDeploymentsService {
269	rs := &OrganizationsApisRevisionsDeploymentsService{s: s}
270	return rs
271}
272
273type OrganizationsApisRevisionsDeploymentsService struct {
274	s *Service
275}
276
277func NewOrganizationsAppsService(s *Service) *OrganizationsAppsService {
278	rs := &OrganizationsAppsService{s: s}
279	return rs
280}
281
282type OrganizationsAppsService struct {
283	s *Service
284}
285
286func NewOrganizationsCompaniesService(s *Service) *OrganizationsCompaniesService {
287	rs := &OrganizationsCompaniesService{s: s}
288	rs.Apps = NewOrganizationsCompaniesAppsService(s)
289	return rs
290}
291
292type OrganizationsCompaniesService struct {
293	s *Service
294
295	Apps *OrganizationsCompaniesAppsService
296}
297
298func NewOrganizationsCompaniesAppsService(s *Service) *OrganizationsCompaniesAppsService {
299	rs := &OrganizationsCompaniesAppsService{s: s}
300	rs.Keys = NewOrganizationsCompaniesAppsKeysService(s)
301	return rs
302}
303
304type OrganizationsCompaniesAppsService struct {
305	s *Service
306
307	Keys *OrganizationsCompaniesAppsKeysService
308}
309
310func NewOrganizationsCompaniesAppsKeysService(s *Service) *OrganizationsCompaniesAppsKeysService {
311	rs := &OrganizationsCompaniesAppsKeysService{s: s}
312	return rs
313}
314
315type OrganizationsCompaniesAppsKeysService struct {
316	s *Service
317}
318
319func NewOrganizationsDeploymentsService(s *Service) *OrganizationsDeploymentsService {
320	rs := &OrganizationsDeploymentsService{s: s}
321	return rs
322}
323
324type OrganizationsDeploymentsService struct {
325	s *Service
326}
327
328func NewOrganizationsDevelopersService(s *Service) *OrganizationsDevelopersService {
329	rs := &OrganizationsDevelopersService{s: s}
330	rs.Apps = NewOrganizationsDevelopersAppsService(s)
331	rs.Attributes_ = NewOrganizationsDevelopersAttributesService(s)
332	return rs
333}
334
335type OrganizationsDevelopersService struct {
336	s *Service
337
338	Apps *OrganizationsDevelopersAppsService
339
340	Attributes_ *OrganizationsDevelopersAttributesService
341}
342
343func NewOrganizationsDevelopersAppsService(s *Service) *OrganizationsDevelopersAppsService {
344	rs := &OrganizationsDevelopersAppsService{s: s}
345	rs.Attributes_ = NewOrganizationsDevelopersAppsAttributesService(s)
346	rs.Keys = NewOrganizationsDevelopersAppsKeysService(s)
347	return rs
348}
349
350type OrganizationsDevelopersAppsService struct {
351	s *Service
352
353	Attributes_ *OrganizationsDevelopersAppsAttributesService
354
355	Keys *OrganizationsDevelopersAppsKeysService
356}
357
358func NewOrganizationsDevelopersAppsAttributesService(s *Service) *OrganizationsDevelopersAppsAttributesService {
359	rs := &OrganizationsDevelopersAppsAttributesService{s: s}
360	return rs
361}
362
363type OrganizationsDevelopersAppsAttributesService struct {
364	s *Service
365}
366
367func NewOrganizationsDevelopersAppsKeysService(s *Service) *OrganizationsDevelopersAppsKeysService {
368	rs := &OrganizationsDevelopersAppsKeysService{s: s}
369	rs.Apiproducts = NewOrganizationsDevelopersAppsKeysApiproductsService(s)
370	rs.Create_ = NewOrganizationsDevelopersAppsKeysCreateService(s)
371	return rs
372}
373
374type OrganizationsDevelopersAppsKeysService struct {
375	s *Service
376
377	Apiproducts *OrganizationsDevelopersAppsKeysApiproductsService
378
379	Create_ *OrganizationsDevelopersAppsKeysCreateService
380}
381
382func NewOrganizationsDevelopersAppsKeysApiproductsService(s *Service) *OrganizationsDevelopersAppsKeysApiproductsService {
383	rs := &OrganizationsDevelopersAppsKeysApiproductsService{s: s}
384	return rs
385}
386
387type OrganizationsDevelopersAppsKeysApiproductsService struct {
388	s *Service
389}
390
391func NewOrganizationsDevelopersAppsKeysCreateService(s *Service) *OrganizationsDevelopersAppsKeysCreateService {
392	rs := &OrganizationsDevelopersAppsKeysCreateService{s: s}
393	return rs
394}
395
396type OrganizationsDevelopersAppsKeysCreateService struct {
397	s *Service
398}
399
400func NewOrganizationsDevelopersAttributesService(s *Service) *OrganizationsDevelopersAttributesService {
401	rs := &OrganizationsDevelopersAttributesService{s: s}
402	return rs
403}
404
405type OrganizationsDevelopersAttributesService struct {
406	s *Service
407}
408
409func NewOrganizationsEnvironmentsService(s *Service) *OrganizationsEnvironmentsService {
410	rs := &OrganizationsEnvironmentsService{s: s}
411	rs.Analytics = NewOrganizationsEnvironmentsAnalyticsService(s)
412	rs.Apis = NewOrganizationsEnvironmentsApisService(s)
413	rs.Caches = NewOrganizationsEnvironmentsCachesService(s)
414	rs.Deployments = NewOrganizationsEnvironmentsDeploymentsService(s)
415	rs.Flowhooks = NewOrganizationsEnvironmentsFlowhooksService(s)
416	rs.Keystores = NewOrganizationsEnvironmentsKeystoresService(s)
417	rs.Keyvaluemaps = NewOrganizationsEnvironmentsKeyvaluemapsService(s)
418	rs.OptimizedStats = NewOrganizationsEnvironmentsOptimizedStatsService(s)
419	rs.Queries = NewOrganizationsEnvironmentsQueriesService(s)
420	rs.References = NewOrganizationsEnvironmentsReferencesService(s)
421	rs.Resourcefiles = NewOrganizationsEnvironmentsResourcefilesService(s)
422	rs.Sharedflows = NewOrganizationsEnvironmentsSharedflowsService(s)
423	rs.Stats = NewOrganizationsEnvironmentsStatsService(s)
424	rs.Targetservers = NewOrganizationsEnvironmentsTargetserversService(s)
425	return rs
426}
427
428type OrganizationsEnvironmentsService struct {
429	s *Service
430
431	Analytics *OrganizationsEnvironmentsAnalyticsService
432
433	Apis *OrganizationsEnvironmentsApisService
434
435	Caches *OrganizationsEnvironmentsCachesService
436
437	Deployments *OrganizationsEnvironmentsDeploymentsService
438
439	Flowhooks *OrganizationsEnvironmentsFlowhooksService
440
441	Keystores *OrganizationsEnvironmentsKeystoresService
442
443	Keyvaluemaps *OrganizationsEnvironmentsKeyvaluemapsService
444
445	OptimizedStats *OrganizationsEnvironmentsOptimizedStatsService
446
447	Queries *OrganizationsEnvironmentsQueriesService
448
449	References *OrganizationsEnvironmentsReferencesService
450
451	Resourcefiles *OrganizationsEnvironmentsResourcefilesService
452
453	Sharedflows *OrganizationsEnvironmentsSharedflowsService
454
455	Stats *OrganizationsEnvironmentsStatsService
456
457	Targetservers *OrganizationsEnvironmentsTargetserversService
458}
459
460func NewOrganizationsEnvironmentsAnalyticsService(s *Service) *OrganizationsEnvironmentsAnalyticsService {
461	rs := &OrganizationsEnvironmentsAnalyticsService{s: s}
462	rs.Admin = NewOrganizationsEnvironmentsAnalyticsAdminService(s)
463	return rs
464}
465
466type OrganizationsEnvironmentsAnalyticsService struct {
467	s *Service
468
469	Admin *OrganizationsEnvironmentsAnalyticsAdminService
470}
471
472func NewOrganizationsEnvironmentsAnalyticsAdminService(s *Service) *OrganizationsEnvironmentsAnalyticsAdminService {
473	rs := &OrganizationsEnvironmentsAnalyticsAdminService{s: s}
474	return rs
475}
476
477type OrganizationsEnvironmentsAnalyticsAdminService struct {
478	s *Service
479}
480
481func NewOrganizationsEnvironmentsApisService(s *Service) *OrganizationsEnvironmentsApisService {
482	rs := &OrganizationsEnvironmentsApisService{s: s}
483	rs.Deployments = NewOrganizationsEnvironmentsApisDeploymentsService(s)
484	rs.Revisions = NewOrganizationsEnvironmentsApisRevisionsService(s)
485	return rs
486}
487
488type OrganizationsEnvironmentsApisService struct {
489	s *Service
490
491	Deployments *OrganizationsEnvironmentsApisDeploymentsService
492
493	Revisions *OrganizationsEnvironmentsApisRevisionsService
494}
495
496func NewOrganizationsEnvironmentsApisDeploymentsService(s *Service) *OrganizationsEnvironmentsApisDeploymentsService {
497	rs := &OrganizationsEnvironmentsApisDeploymentsService{s: s}
498	return rs
499}
500
501type OrganizationsEnvironmentsApisDeploymentsService struct {
502	s *Service
503}
504
505func NewOrganizationsEnvironmentsApisRevisionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsService {
506	rs := &OrganizationsEnvironmentsApisRevisionsService{s: s}
507	rs.Debugsessions = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s)
508	return rs
509}
510
511type OrganizationsEnvironmentsApisRevisionsService struct {
512	s *Service
513
514	Debugsessions *OrganizationsEnvironmentsApisRevisionsDebugsessionsService
515}
516
517func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsService {
518	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsService{s: s}
519	rs.Data = NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s)
520	return rs
521}
522
523type OrganizationsEnvironmentsApisRevisionsDebugsessionsService struct {
524	s *Service
525
526	Data *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService
527}
528
529func NewOrganizationsEnvironmentsApisRevisionsDebugsessionsDataService(s *Service) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService {
530	rs := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService{s: s}
531	return rs
532}
533
534type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService struct {
535	s *Service
536}
537
538func NewOrganizationsEnvironmentsCachesService(s *Service) *OrganizationsEnvironmentsCachesService {
539	rs := &OrganizationsEnvironmentsCachesService{s: s}
540	return rs
541}
542
543type OrganizationsEnvironmentsCachesService struct {
544	s *Service
545}
546
547func NewOrganizationsEnvironmentsDeploymentsService(s *Service) *OrganizationsEnvironmentsDeploymentsService {
548	rs := &OrganizationsEnvironmentsDeploymentsService{s: s}
549	return rs
550}
551
552type OrganizationsEnvironmentsDeploymentsService struct {
553	s *Service
554}
555
556func NewOrganizationsEnvironmentsFlowhooksService(s *Service) *OrganizationsEnvironmentsFlowhooksService {
557	rs := &OrganizationsEnvironmentsFlowhooksService{s: s}
558	return rs
559}
560
561type OrganizationsEnvironmentsFlowhooksService struct {
562	s *Service
563}
564
565func NewOrganizationsEnvironmentsKeystoresService(s *Service) *OrganizationsEnvironmentsKeystoresService {
566	rs := &OrganizationsEnvironmentsKeystoresService{s: s}
567	rs.Aliases = NewOrganizationsEnvironmentsKeystoresAliasesService(s)
568	return rs
569}
570
571type OrganizationsEnvironmentsKeystoresService struct {
572	s *Service
573
574	Aliases *OrganizationsEnvironmentsKeystoresAliasesService
575}
576
577func NewOrganizationsEnvironmentsKeystoresAliasesService(s *Service) *OrganizationsEnvironmentsKeystoresAliasesService {
578	rs := &OrganizationsEnvironmentsKeystoresAliasesService{s: s}
579	return rs
580}
581
582type OrganizationsEnvironmentsKeystoresAliasesService struct {
583	s *Service
584}
585
586func NewOrganizationsEnvironmentsKeyvaluemapsService(s *Service) *OrganizationsEnvironmentsKeyvaluemapsService {
587	rs := &OrganizationsEnvironmentsKeyvaluemapsService{s: s}
588	return rs
589}
590
591type OrganizationsEnvironmentsKeyvaluemapsService struct {
592	s *Service
593}
594
595func NewOrganizationsEnvironmentsOptimizedStatsService(s *Service) *OrganizationsEnvironmentsOptimizedStatsService {
596	rs := &OrganizationsEnvironmentsOptimizedStatsService{s: s}
597	return rs
598}
599
600type OrganizationsEnvironmentsOptimizedStatsService struct {
601	s *Service
602}
603
604func NewOrganizationsEnvironmentsQueriesService(s *Service) *OrganizationsEnvironmentsQueriesService {
605	rs := &OrganizationsEnvironmentsQueriesService{s: s}
606	return rs
607}
608
609type OrganizationsEnvironmentsQueriesService struct {
610	s *Service
611}
612
613func NewOrganizationsEnvironmentsReferencesService(s *Service) *OrganizationsEnvironmentsReferencesService {
614	rs := &OrganizationsEnvironmentsReferencesService{s: s}
615	return rs
616}
617
618type OrganizationsEnvironmentsReferencesService struct {
619	s *Service
620}
621
622func NewOrganizationsEnvironmentsResourcefilesService(s *Service) *OrganizationsEnvironmentsResourcefilesService {
623	rs := &OrganizationsEnvironmentsResourcefilesService{s: s}
624	return rs
625}
626
627type OrganizationsEnvironmentsResourcefilesService struct {
628	s *Service
629}
630
631func NewOrganizationsEnvironmentsSharedflowsService(s *Service) *OrganizationsEnvironmentsSharedflowsService {
632	rs := &OrganizationsEnvironmentsSharedflowsService{s: s}
633	rs.Deployments = NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s)
634	rs.Revisions = NewOrganizationsEnvironmentsSharedflowsRevisionsService(s)
635	return rs
636}
637
638type OrganizationsEnvironmentsSharedflowsService struct {
639	s *Service
640
641	Deployments *OrganizationsEnvironmentsSharedflowsDeploymentsService
642
643	Revisions *OrganizationsEnvironmentsSharedflowsRevisionsService
644}
645
646func NewOrganizationsEnvironmentsSharedflowsDeploymentsService(s *Service) *OrganizationsEnvironmentsSharedflowsDeploymentsService {
647	rs := &OrganizationsEnvironmentsSharedflowsDeploymentsService{s: s}
648	return rs
649}
650
651type OrganizationsEnvironmentsSharedflowsDeploymentsService struct {
652	s *Service
653}
654
655func NewOrganizationsEnvironmentsSharedflowsRevisionsService(s *Service) *OrganizationsEnvironmentsSharedflowsRevisionsService {
656	rs := &OrganizationsEnvironmentsSharedflowsRevisionsService{s: s}
657	return rs
658}
659
660type OrganizationsEnvironmentsSharedflowsRevisionsService struct {
661	s *Service
662}
663
664func NewOrganizationsEnvironmentsStatsService(s *Service) *OrganizationsEnvironmentsStatsService {
665	rs := &OrganizationsEnvironmentsStatsService{s: s}
666	return rs
667}
668
669type OrganizationsEnvironmentsStatsService struct {
670	s *Service
671}
672
673func NewOrganizationsEnvironmentsTargetserversService(s *Service) *OrganizationsEnvironmentsTargetserversService {
674	rs := &OrganizationsEnvironmentsTargetserversService{s: s}
675	return rs
676}
677
678type OrganizationsEnvironmentsTargetserversService struct {
679	s *Service
680}
681
682func NewOrganizationsKeyvaluemapsService(s *Service) *OrganizationsKeyvaluemapsService {
683	rs := &OrganizationsKeyvaluemapsService{s: s}
684	return rs
685}
686
687type OrganizationsKeyvaluemapsService struct {
688	s *Service
689}
690
691func NewOrganizationsOperationsService(s *Service) *OrganizationsOperationsService {
692	rs := &OrganizationsOperationsService{s: s}
693	return rs
694}
695
696type OrganizationsOperationsService struct {
697	s *Service
698}
699
700func NewOrganizationsReportsService(s *Service) *OrganizationsReportsService {
701	rs := &OrganizationsReportsService{s: s}
702	return rs
703}
704
705type OrganizationsReportsService struct {
706	s *Service
707}
708
709func NewOrganizationsSharedflowsService(s *Service) *OrganizationsSharedflowsService {
710	rs := &OrganizationsSharedflowsService{s: s}
711	rs.Deployments = NewOrganizationsSharedflowsDeploymentsService(s)
712	rs.Revisions = NewOrganizationsSharedflowsRevisionsService(s)
713	return rs
714}
715
716type OrganizationsSharedflowsService struct {
717	s *Service
718
719	Deployments *OrganizationsSharedflowsDeploymentsService
720
721	Revisions *OrganizationsSharedflowsRevisionsService
722}
723
724func NewOrganizationsSharedflowsDeploymentsService(s *Service) *OrganizationsSharedflowsDeploymentsService {
725	rs := &OrganizationsSharedflowsDeploymentsService{s: s}
726	return rs
727}
728
729type OrganizationsSharedflowsDeploymentsService struct {
730	s *Service
731}
732
733func NewOrganizationsSharedflowsRevisionsService(s *Service) *OrganizationsSharedflowsRevisionsService {
734	rs := &OrganizationsSharedflowsRevisionsService{s: s}
735	rs.Deployments = NewOrganizationsSharedflowsRevisionsDeploymentsService(s)
736	return rs
737}
738
739type OrganizationsSharedflowsRevisionsService struct {
740	s *Service
741
742	Deployments *OrganizationsSharedflowsRevisionsDeploymentsService
743}
744
745func NewOrganizationsSharedflowsRevisionsDeploymentsService(s *Service) *OrganizationsSharedflowsRevisionsDeploymentsService {
746	rs := &OrganizationsSharedflowsRevisionsDeploymentsService{s: s}
747	return rs
748}
749
750type OrganizationsSharedflowsRevisionsDeploymentsService struct {
751	s *Service
752}
753
754// GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It
755// should only be used for
756// payload formats that can't be represented as JSON, such as raw binary
757// or
758// an HTML page.
759//
760//
761// This message can be used both in streaming and non-streaming API
762// methods in
763// the request as well as the response.
764//
765// It can be used as a top-level request field, which is convenient if
766// one
767// wants to extract parameters from either the URL or HTTP template into
768// the
769// request fields and also want access to the raw HTTP body.
770//
771// Example:
772//
773//     message GetResourceRequest {
774//       // A unique request id.
775//       string request_id = 1;
776//
777//       // The raw HTTP body is bound to this field.
778//       google.api.HttpBody http_body = 2;
779//     }
780//
781//     service ResourceService {
782//       rpc GetResource(GetResourceRequest) returns
783// (google.api.HttpBody);
784//       rpc UpdateResource(google.api.HttpBody) returns
785//       (google.protobuf.Empty);
786//     }
787//
788// Example with streaming methods:
789//
790//     service CaldavService {
791//       rpc GetCalendar(stream google.api.HttpBody)
792//         returns (stream google.api.HttpBody);
793//       rpc UpdateCalendar(stream google.api.HttpBody)
794//         returns (stream google.api.HttpBody);
795//     }
796//
797// Use of this type only changes how the request and response bodies
798// are
799// handled, all other features will continue to work unchanged.
800type GoogleApiHttpBody struct {
801	// ContentType: The HTTP Content-Type header value specifying the
802	// content type of the body.
803	ContentType string `json:"contentType,omitempty"`
804
805	// Data: The HTTP request/response body as raw binary.
806	Data string `json:"data,omitempty"`
807
808	// Extensions: Application specific response metadata. Must be set in
809	// the first response
810	// for streaming APIs.
811	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
812
813	// ServerResponse contains the HTTP response code and headers from the
814	// server.
815	googleapi.ServerResponse `json:"-"`
816
817	// ForceSendFields is a list of field names (e.g. "ContentType") to
818	// unconditionally include in API requests. By default, fields with
819	// empty values are omitted from API requests. However, any non-pointer,
820	// non-interface field appearing in ForceSendFields will be sent to the
821	// server regardless of whether the field is empty or not. This may be
822	// used to include empty fields in Patch requests.
823	ForceSendFields []string `json:"-"`
824
825	// NullFields is a list of field names (e.g. "ContentType") to include
826	// in API requests with the JSON null value. By default, fields with
827	// empty values are omitted from API requests. However, any field with
828	// an empty value appearing in NullFields will be sent to the server as
829	// null. It is an error if a field in this list has a non-empty value.
830	// This may be used to include null fields in Patch requests.
831	NullFields []string `json:"-"`
832}
833
834func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
835	type NoMethod GoogleApiHttpBody
836	raw := NoMethod(*s)
837	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
838}
839
840type GoogleCloudApigeeV1Access struct {
841	Get *GoogleCloudApigeeV1AccessGet `json:"Get,omitempty"`
842
843	Remove *GoogleCloudApigeeV1AccessRemove `json:"Remove,omitempty"`
844
845	Set *GoogleCloudApigeeV1AccessSet `json:"Set,omitempty"`
846
847	// ForceSendFields is a list of field names (e.g. "Get") to
848	// unconditionally include in API requests. By default, fields with
849	// empty values are omitted from API requests. However, any non-pointer,
850	// non-interface field appearing in ForceSendFields will be sent to the
851	// server regardless of whether the field is empty or not. This may be
852	// used to include empty fields in Patch requests.
853	ForceSendFields []string `json:"-"`
854
855	// NullFields is a list of field names (e.g. "Get") to include in API
856	// requests with the JSON null value. By default, fields with empty
857	// values are omitted from API requests. However, any field with an
858	// empty value appearing in NullFields will be sent to the server as
859	// null. It is an error if a field in this list has a non-empty value.
860	// This may be used to include null fields in Patch requests.
861	NullFields []string `json:"-"`
862}
863
864func (s *GoogleCloudApigeeV1Access) MarshalJSON() ([]byte, error) {
865	type NoMethod GoogleCloudApigeeV1Access
866	raw := NoMethod(*s)
867	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
868}
869
870// GoogleCloudApigeeV1AccessGet: Get action. For example,
871// "Get" : {
872//   "name" : "target.name",
873//   "value" : "default"
874// }
875type GoogleCloudApigeeV1AccessGet struct {
876	Name string `json:"name,omitempty"`
877
878	Value string `json:"value,omitempty"`
879
880	// ForceSendFields is a list of field names (e.g. "Name") to
881	// unconditionally include in API requests. By default, fields with
882	// empty values are omitted from API requests. However, any non-pointer,
883	// non-interface field appearing in ForceSendFields will be sent to the
884	// server regardless of whether the field is empty or not. This may be
885	// used to include empty fields in Patch requests.
886	ForceSendFields []string `json:"-"`
887
888	// NullFields is a list of field names (e.g. "Name") to include in API
889	// requests with the JSON null value. By default, fields with empty
890	// values are omitted from API requests. However, any field with an
891	// empty value appearing in NullFields will be sent to the server as
892	// null. It is an error if a field in this list has a non-empty value.
893	// This may be used to include null fields in Patch requests.
894	NullFields []string `json:"-"`
895}
896
897func (s *GoogleCloudApigeeV1AccessGet) MarshalJSON() ([]byte, error) {
898	type NoMethod GoogleCloudApigeeV1AccessGet
899	raw := NoMethod(*s)
900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
901}
902
903// GoogleCloudApigeeV1AccessRemove: Remove action. For example,
904// "Remove" : {
905//   "name" : "target.name",
906//   "success" : true
907// }
908type GoogleCloudApigeeV1AccessRemove struct {
909	Name string `json:"name,omitempty"`
910
911	Success bool `json:"success,omitempty"`
912
913	// ForceSendFields is a list of field names (e.g. "Name") to
914	// unconditionally include in API requests. By default, fields with
915	// empty values are omitted from API requests. However, any non-pointer,
916	// non-interface field appearing in ForceSendFields will be sent to the
917	// server regardless of whether the field is empty or not. This may be
918	// used to include empty fields in Patch requests.
919	ForceSendFields []string `json:"-"`
920
921	// NullFields is a list of field names (e.g. "Name") to include in API
922	// requests with the JSON null value. By default, fields with empty
923	// values are omitted from API requests. However, any field with an
924	// empty value appearing in NullFields will be sent to the server as
925	// null. It is an error if a field in this list has a non-empty value.
926	// This may be used to include null fields in Patch requests.
927	NullFields []string `json:"-"`
928}
929
930func (s *GoogleCloudApigeeV1AccessRemove) MarshalJSON() ([]byte, error) {
931	type NoMethod GoogleCloudApigeeV1AccessRemove
932	raw := NoMethod(*s)
933	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
934}
935
936// GoogleCloudApigeeV1AccessSet: Set action. For example,
937// "Set" : {
938//   "name" : "target.name",
939//   "success" : true,
940//   "value" : "default"
941// }
942type GoogleCloudApigeeV1AccessSet struct {
943	Name string `json:"name,omitempty"`
944
945	Success bool `json:"success,omitempty"`
946
947	Value string `json:"value,omitempty"`
948
949	// ForceSendFields is a list of field names (e.g. "Name") to
950	// unconditionally include in API requests. By default, fields with
951	// empty values are omitted from API requests. However, any non-pointer,
952	// non-interface field appearing in ForceSendFields will be sent to the
953	// server regardless of whether the field is empty or not. This may be
954	// used to include empty fields in Patch requests.
955	ForceSendFields []string `json:"-"`
956
957	// NullFields is a list of field names (e.g. "Name") to include in API
958	// requests with the JSON null value. By default, fields with empty
959	// values are omitted from API requests. However, any field with an
960	// empty value appearing in NullFields will be sent to the server as
961	// null. It is an error if a field in this list has a non-empty value.
962	// This may be used to include null fields in Patch requests.
963	NullFields []string `json:"-"`
964}
965
966func (s *GoogleCloudApigeeV1AccessSet) MarshalJSON() ([]byte, error) {
967	type NoMethod GoogleCloudApigeeV1AccessSet
968	raw := NoMethod(*s)
969	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
970}
971
972// GoogleCloudApigeeV1Alias: A reference to a certificate or key,
973// certificate pair.
974type GoogleCloudApigeeV1Alias struct {
975	// Alias: The resource ID for this alias. Values must match regular
976	// expression
977	// `[^/]{1,255}`.
978	Alias string `json:"alias,omitempty"`
979
980	// CertsInfo: The chain of certificates under this alias.
981	CertsInfo *GoogleCloudApigeeV1Certificate `json:"certsInfo,omitempty"`
982
983	// Type: The type of alias.
984	//
985	// Possible values:
986	//   "ALIAS_TYPE_UNSPECIFIED"
987	//   "CERT"
988	//   "KEY_CERT"
989	Type string `json:"type,omitempty"`
990
991	// ServerResponse contains the HTTP response code and headers from the
992	// server.
993	googleapi.ServerResponse `json:"-"`
994
995	// ForceSendFields is a list of field names (e.g. "Alias") to
996	// unconditionally include in API requests. By default, fields with
997	// empty values are omitted from API requests. However, any non-pointer,
998	// non-interface field appearing in ForceSendFields will be sent to the
999	// server regardless of whether the field is empty or not. This may be
1000	// used to include empty fields in Patch requests.
1001	ForceSendFields []string `json:"-"`
1002
1003	// NullFields is a list of field names (e.g. "Alias") to include in API
1004	// requests with the JSON null value. By default, fields with empty
1005	// values are omitted from API requests. However, any field with an
1006	// empty value appearing in NullFields will be sent to the server as
1007	// null. It is an error if a field in this list has a non-empty value.
1008	// This may be used to include null fields in Patch requests.
1009	NullFields []string `json:"-"`
1010}
1011
1012func (s *GoogleCloudApigeeV1Alias) MarshalJSON() ([]byte, error) {
1013	type NoMethod GoogleCloudApigeeV1Alias
1014	raw := NoMethod(*s)
1015	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1016}
1017
1018type GoogleCloudApigeeV1AliasRevisionConfig struct {
1019	// Location: The location of the alias file, e.g. a GCS URI.
1020	Location string `json:"location,omitempty"`
1021
1022	// Name: The name of the alias revision included in the keystore. Must
1023	// be of
1024	// the
1025	// form:
1026	// 'organizations/{org}/environments/{env}/keystores/{keystore}
1027	// /aliases/{alias}/revisions/{rev}'.
1028	Name string `json:"name,omitempty"`
1029
1030	// Possible values:
1031	//   "ALIAS_TYPE_UNSPECIFIED"
1032	//   "CERT"
1033	//   "KEY_CERT"
1034	Type string `json:"type,omitempty"`
1035
1036	// ForceSendFields is a list of field names (e.g. "Location") to
1037	// unconditionally include in API requests. By default, fields with
1038	// empty values are omitted from API requests. However, any non-pointer,
1039	// non-interface field appearing in ForceSendFields will be sent to the
1040	// server regardless of whether the field is empty or not. This may be
1041	// used to include empty fields in Patch requests.
1042	ForceSendFields []string `json:"-"`
1043
1044	// NullFields is a list of field names (e.g. "Location") to include in
1045	// API requests with the JSON null value. By default, fields with empty
1046	// values are omitted from API requests. However, any field with an
1047	// empty value appearing in NullFields will be sent to the server as
1048	// null. It is an error if a field in this list has a non-empty value.
1049	// This may be used to include null fields in Patch requests.
1050	NullFields []string `json:"-"`
1051}
1052
1053func (s *GoogleCloudApigeeV1AliasRevisionConfig) MarshalJSON() ([]byte, error) {
1054	type NoMethod GoogleCloudApigeeV1AliasRevisionConfig
1055	raw := NoMethod(*s)
1056	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1057}
1058
1059type GoogleCloudApigeeV1ApiProduct struct {
1060	// ApiResources: Comma-separated list of API resources to be bundled in
1061	// the API Product.
1062	//
1063	// By default, the resource paths are mapped from the
1064	// `proxy.pathsuffix`
1065	// variable.
1066	//
1067	// The proxy path suffix is defined as the URI fragment following
1068	// the
1069	// ProxyEndpoint base path.
1070	// For example, if the `apiResources` element is defined to
1071	// be
1072	// `/forecastrss` and the base path defined for the API proxy
1073	// is
1074	// `/weather`, then only requests to `/weather/forecastrss` are
1075	// permitted by
1076	// the API product.
1077	//
1078	// You can select a specific path, or you can select all subpaths with
1079	// the
1080	// following wildcard:
1081	//
1082	// - /**: Indicates that all sub-URIs are included.
1083	// - /* : Indicates that only URIs one level down are included.
1084	//
1085	// By default, / supports the same resources as /** as well as the base
1086	// path
1087	// defined by the API proxy.
1088	//
1089	// For example, if the base path of the API proxy is
1090	// `/v1/weatherapikey`,
1091	// then the API product supports requests to `/v1/weatherapikey` and to
1092	// any
1093	// sub-URIs, such as
1094	// `/v1/weatherapikey/forecastrss`,
1095	// `/v1/weatherapikey/region/CA`, and so on.
1096	// For more information, see:
1097	//
1098	// - <a href="/api-platform/publish/create-api-products">Manage
1099	// API
1100	// products</a>
1101	// -
1102	// <a
1103	// href="/api-platform/monetization/create-transaction-recording-polic
1104	// y#spectrpcaapi">Managing
1105	// a transaction recording policy using the API</a>
1106	ApiResources []string `json:"apiResources,omitempty"`
1107
1108	// ApprovalType: Specifies how API keys are approved to access the APIs
1109	// defined by the API
1110	// product.
1111	//
1112	// If set to `manual`, the consumer key is generated and returned in
1113	// "pending"
1114	// state. In this case, the API keys won't work until they have
1115	// been
1116	// explicitly approved.
1117	//
1118	// If set to `auto`, the consumer key is generated and returned in
1119	// "approved"
1120	// state and can be used immediately.
1121	//
1122	// <aside class="note"><strong>NOTE:</strong> Typically, `auto` is
1123	// used
1124	// to provide access to free or trial API products that provide limited
1125	// quota
1126	// or capabilities.</aside>
1127	ApprovalType string `json:"approvalType,omitempty"`
1128
1129	// Attributes: Array of attributes that may be used to extend the
1130	// default API product
1131	// profile with customer-specific metadata. You can specify a maximum of
1132	// 18
1133	// attributes.
1134	//
1135	// Use this property to specify the access level of the API product as
1136	// either
1137	// `public`, `private`, or `internal`.
1138	//
1139	// Only products marked `public` are available to developers in the
1140	// Apigee
1141	// developer portal. For example, you can set a product to `internal`
1142	// while it
1143	// is in development and then change access to `public` when it is ready
1144	// to
1145	// release on the portal.
1146	//
1147	// API products marked as `private` do not appear on the portal but
1148	// can be accessed by external developers.
1149	//
1150	// For monetization, you can use the attributes field to:
1151	//
1152	// -
1153	// <a
1154	// href="/api-platform/monetization/create-transaction-recording-polic
1155	// y#spectrpsuccessapi"
1156	// target="_blank">Specify transaction success criteria</a>
1157	// -
1158	// <a
1159	// href="/api-platform/monetization/create-transaction-recording-polic
1160	// y#spectrpcaapi"
1161	// target="_blank">Specify custom attributes</a> on which you base rate
1162	// plan
1163	// charges</a>.
1164	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1165
1166	// CreatedAt: Response only. Creation time of this environment as
1167	// milliseconds since
1168	// epoch.
1169	CreatedAt int64 `json:"createdAt,omitempty,string"`
1170
1171	// Description: An overview of the API product. Include key information
1172	// about the API
1173	// product that is not captured by other fields.
1174	Description string `json:"description,omitempty"`
1175
1176	// DisplayName: The name to be displayed in the UI or developer portal
1177	// to developers
1178	// registering for API access.
1179	DisplayName string `json:"displayName,omitempty"`
1180
1181	// Environments: A comma-separated list of environment names to which
1182	// the API product is
1183	// bound. Requests to environments that are not listed are rejected.
1184	//
1185	// By specifying one or more environments, you can bind the resources
1186	// listed
1187	// in the API product to a specific environment, preventing developers
1188	// from
1189	// accessing those resources through API proxies deployed in
1190	// another
1191	// environment.
1192	//
1193	// This setting is used, for example, to prevent resources associated
1194	// with
1195	// API proxies in 'prod' from being accessed by API proxies deployed
1196	// in
1197	// 'test'.
1198	Environments []string `json:"environments,omitempty"`
1199
1200	// LastModifiedAt: Response only. Modified time of this environment as
1201	// milliseconds since
1202	// epoch.
1203	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1204
1205	// Name: The internal name of the API Product. Characters you can use in
1206	// the name
1207	// are restricted to: A-Z0-9._\-$ %.
1208	//
1209	// <aside class="note"><strong>NOTE:</strong> The internal name cannot
1210	// be
1211	// edited when updating the API product.</aside>
1212	Name string `json:"name,omitempty"`
1213
1214	// Proxies: A comma-separated list of API proxy names to which this API
1215	// product is
1216	// bound. By specifying API proxies, you can associate resources in the
1217	// API
1218	// product with specific API proxies, preventing developers from
1219	// accessing
1220	// those resources through other API proxies.
1221	//
1222	// Edge rejects requests to API proxies that are not listed.
1223	//
1224	// <aside class="note"><strong>NOTE:</strong> The API proxy names must
1225	// already
1226	// exist in the specified environment as they will be validated
1227	// upon
1228	// creation.</aside>
1229	Proxies []string `json:"proxies,omitempty"`
1230
1231	// Quota: The number of request messages permitted per app by this API
1232	// product for
1233	// the specified `quotaInterval` and `quotaTimeUnit`.
1234	//
1235	// For example, a `quota` of 50, for a `quotaInterval` of 12 and
1236	// a
1237	// `quotaTimeUnit` of hours means 50 requests are allowed every 12
1238	// hours.
1239	Quota string `json:"quota,omitempty"`
1240
1241	// QuotaInterval: The time interval over which the number of request
1242	// messages is calculated.
1243	QuotaInterval string `json:"quotaInterval,omitempty"`
1244
1245	// QuotaTimeUnit: The time unit defined for the `quotaInterval`. Valid
1246	// values include minute,
1247	// hour, day, or month.
1248	QuotaTimeUnit string `json:"quotaTimeUnit,omitempty"`
1249
1250	// Scopes: A comma-separated list of OAuth scopes that are validated at
1251	// runtime.
1252	// Edge validates that the scopes in any access token presented match
1253	// the
1254	// scopes defined in the OAuth policy assoicated with the API product.
1255	Scopes []string `json:"scopes,omitempty"`
1256
1257	// ServerResponse contains the HTTP response code and headers from the
1258	// server.
1259	googleapi.ServerResponse `json:"-"`
1260
1261	// ForceSendFields is a list of field names (e.g. "ApiResources") to
1262	// unconditionally include in API requests. By default, fields with
1263	// empty values are omitted from API requests. However, any non-pointer,
1264	// non-interface field appearing in ForceSendFields will be sent to the
1265	// server regardless of whether the field is empty or not. This may be
1266	// used to include empty fields in Patch requests.
1267	ForceSendFields []string `json:"-"`
1268
1269	// NullFields is a list of field names (e.g. "ApiResources") to include
1270	// in API requests with the JSON null value. By default, fields with
1271	// empty values are omitted from API requests. However, any field with
1272	// an empty value appearing in NullFields will be sent to the server as
1273	// null. It is an error if a field in this list has a non-empty value.
1274	// This may be used to include null fields in Patch requests.
1275	NullFields []string `json:"-"`
1276}
1277
1278func (s *GoogleCloudApigeeV1ApiProduct) MarshalJSON() ([]byte, error) {
1279	type NoMethod GoogleCloudApigeeV1ApiProduct
1280	raw := NoMethod(*s)
1281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1282}
1283
1284type GoogleCloudApigeeV1ApiProductRef struct {
1285	// Apiproduct: The name of the api product.
1286	Apiproduct string `json:"apiproduct,omitempty"`
1287
1288	// Status: The status of the api product.
1289	Status string `json:"status,omitempty"`
1290
1291	// ForceSendFields is a list of field names (e.g. "Apiproduct") to
1292	// unconditionally include in API requests. By default, fields with
1293	// empty values are omitted from API requests. However, any non-pointer,
1294	// non-interface field appearing in ForceSendFields will be sent to the
1295	// server regardless of whether the field is empty or not. This may be
1296	// used to include empty fields in Patch requests.
1297	ForceSendFields []string `json:"-"`
1298
1299	// NullFields is a list of field names (e.g. "Apiproduct") to include in
1300	// API requests with the JSON null value. By default, fields with empty
1301	// values are omitted from API requests. However, any field with an
1302	// empty value appearing in NullFields will be sent to the server as
1303	// null. It is an error if a field in this list has a non-empty value.
1304	// This may be used to include null fields in Patch requests.
1305	NullFields []string `json:"-"`
1306}
1307
1308func (s *GoogleCloudApigeeV1ApiProductRef) MarshalJSON() ([]byte, error) {
1309	type NoMethod GoogleCloudApigeeV1ApiProductRef
1310	raw := NoMethod(*s)
1311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1312}
1313
1314// GoogleCloudApigeeV1ApiProxy: Metadata describing the API proxy
1315type GoogleCloudApigeeV1ApiProxy struct {
1316	// LatestRevisionId: The id of the most recently created revision for
1317	// this api proxy.
1318	LatestRevisionId string `json:"latestRevisionId,omitempty"`
1319
1320	// MetaData: Metadata describing the API proxy.
1321	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
1322
1323	// Name: Name of the API proxy.
1324	Name string `json:"name,omitempty"`
1325
1326	// Revision: List of revisons defined for the API proxy.
1327	Revision []string `json:"revision,omitempty"`
1328
1329	// ServerResponse contains the HTTP response code and headers from the
1330	// server.
1331	googleapi.ServerResponse `json:"-"`
1332
1333	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
1334	// unconditionally include in API requests. By default, fields with
1335	// empty values are omitted from API requests. However, any non-pointer,
1336	// non-interface field appearing in ForceSendFields will be sent to the
1337	// server regardless of whether the field is empty or not. This may be
1338	// used to include empty fields in Patch requests.
1339	ForceSendFields []string `json:"-"`
1340
1341	// NullFields is a list of field names (e.g. "LatestRevisionId") to
1342	// include in API requests with the JSON null value. By default, fields
1343	// with empty values are omitted from API requests. However, any field
1344	// with an empty value appearing in NullFields will be sent to the
1345	// server as null. It is an error if a field in this list has a
1346	// non-empty value. This may be used to include null fields in Patch
1347	// requests.
1348	NullFields []string `json:"-"`
1349}
1350
1351func (s *GoogleCloudApigeeV1ApiProxy) MarshalJSON() ([]byte, error) {
1352	type NoMethod GoogleCloudApigeeV1ApiProxy
1353	raw := NoMethod(*s)
1354	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1355}
1356
1357// GoogleCloudApigeeV1ApiProxyRevision: API proxy revision.
1358type GoogleCloudApigeeV1ApiProxyRevision struct {
1359	// Basepaths: Base URL of the API proxy.
1360	Basepaths []string `json:"basepaths,omitempty"`
1361
1362	// ConfigurationVersion: Version of the API proxy configuration schema
1363	// to which the API proxy
1364	// conforms. Currently, the only supported value is
1365	// 4.0
1366	// (`majorVersion.minorVersion`). This setting may be used in the future
1367	// to
1368	// track the evolution of the API proxy format.
1369	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
1370
1371	// ContextInfo: Revision number, app name, and organization for the API
1372	// proxy.
1373	ContextInfo string `json:"contextInfo,omitempty"`
1374
1375	// CreatedAt: Time that the API proxy revision was created in
1376	// milliseconds since
1377	// epoch.
1378	CreatedAt int64 `json:"createdAt,omitempty,string"`
1379
1380	// Description: Description of the API proxy revision.
1381	Description string `json:"description,omitempty"`
1382
1383	// DisplayName: Human-readable name of the API proxy.
1384	DisplayName string `json:"displayName,omitempty"`
1385
1386	// EntityMetaDataAsProperties: Metadata describing the API proxy
1387	// revision as a key-value map.
1388	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
1389
1390	// LastModifiedAt: Time that the API proxy revision was last modified
1391	// in
1392	// milliseconds since epoch.
1393	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1394
1395	// Name: Name of the API proxy.
1396	Name string `json:"name,omitempty"`
1397
1398	// Policies: List of policy names included in the API proxy revision..
1399	Policies []string `json:"policies,omitempty"`
1400
1401	// Proxies: List of proxy names included in the API proxy revision.
1402	Proxies []string `json:"proxies,omitempty"`
1403
1404	// ProxyEndpoints: List of ProxyEndpoints in the `/proxies` directory of
1405	// the API proxy.
1406	// Typically, this element is included only when the API proxy was
1407	// created
1408	// using the Edge UI. This is a 'manifest' setting designed to
1409	// provide visibility into the contents of the API proxy.
1410	ProxyEndpoints []string `json:"proxyEndpoints,omitempty"`
1411
1412	// ResourceFiles: List of resource files included in the API proxy
1413	// revision.
1414	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
1415
1416	// Resources: List of the resources included in the API proxy revision
1417	// formatted as
1418	// "{type}://{name}".
1419	Resources []string `json:"resources,omitempty"`
1420
1421	// Revision: API proxy revision.
1422	Revision string `json:"revision,omitempty"`
1423
1424	// SharedFlows: List of the shared flows included in the API proxy
1425	// revision.
1426	SharedFlows []string `json:"sharedFlows,omitempty"`
1427
1428	// Spec: OpenAPI Specification that is associated with the API
1429	// proxy.
1430	// The value is set to a URL or to a path in the specification store.
1431	Spec string `json:"spec,omitempty"`
1432
1433	// TargetEndpoints: List of TargetEndpoints in the `/targets` directory
1434	// of the API proxy.
1435	// Typically, this element is included only when the API proxy was
1436	// created
1437	// using the Edge  UI. This is a 'manifest' setting designed to
1438	// provide visibility into the contents of the API proxy.
1439	TargetEndpoints []string `json:"targetEndpoints,omitempty"`
1440
1441	// TargetServers: List of TargetServers referenced in any TargetEndpoint
1442	// in the API
1443	// proxy. Typically, you will see this element only when the API proxy
1444	// was
1445	// created using the Edge UI. This is a 'manifest' setting
1446	// designed to provide visibility into the contents of the API proxy.
1447	TargetServers []string `json:"targetServers,omitempty"`
1448
1449	// Targets: List of the targets included in the API proxy revision.
1450	Targets []string `json:"targets,omitempty"`
1451
1452	// Teams: List of the teams included in the API proxy revision.
1453	Teams []string `json:"teams,omitempty"`
1454
1455	// Type: Type. Set to `Application`. Maintained for compatibility
1456	// with
1457	// the Apigee Edge API.
1458	Type string `json:"type,omitempty"`
1459
1460	// ServerResponse contains the HTTP response code and headers from the
1461	// server.
1462	googleapi.ServerResponse `json:"-"`
1463
1464	// ForceSendFields is a list of field names (e.g. "Basepaths") to
1465	// unconditionally include in API requests. By default, fields with
1466	// empty values are omitted from API requests. However, any non-pointer,
1467	// non-interface field appearing in ForceSendFields will be sent to the
1468	// server regardless of whether the field is empty or not. This may be
1469	// used to include empty fields in Patch requests.
1470	ForceSendFields []string `json:"-"`
1471
1472	// NullFields is a list of field names (e.g. "Basepaths") to include in
1473	// API requests with the JSON null value. By default, fields with empty
1474	// values are omitted from API requests. However, any field with an
1475	// empty value appearing in NullFields will be sent to the server as
1476	// null. It is an error if a field in this list has a non-empty value.
1477	// This may be used to include null fields in Patch requests.
1478	NullFields []string `json:"-"`
1479}
1480
1481func (s *GoogleCloudApigeeV1ApiProxyRevision) MarshalJSON() ([]byte, error) {
1482	type NoMethod GoogleCloudApigeeV1ApiProxyRevision
1483	raw := NoMethod(*s)
1484	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1485}
1486
1487type GoogleCloudApigeeV1App struct {
1488	// ApiProducts: List of API products associated with the app.
1489	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
1490
1491	// AppId: ID of the app.
1492	AppId string `json:"appId,omitempty"`
1493
1494	// Attributes: List of attributes.
1495	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1496
1497	// CallbackUrl: Callback URL used by OAuth 2.0 authorization servers to
1498	// communicate
1499	// authorization codes back to apps.
1500	CallbackUrl string `json:"callbackUrl,omitempty"`
1501
1502	// CompanyName: Name of the company that owns the app.
1503	CompanyName string `json:"companyName,omitempty"`
1504
1505	// CreatedAt: Output only. Unix time when the app was created.
1506	CreatedAt int64 `json:"createdAt,omitempty,string"`
1507
1508	// Credentials: Output only. Set of credentials for the app. Credentials
1509	// are API
1510	// key/secret pairs associated with API products.
1511	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1512
1513	// DeveloperId: ID  of the developer.
1514	DeveloperId string `json:"developerId,omitempty"`
1515
1516	// KeyExpiresIn: Duration, in milliseconds, of the consumer key that
1517	// will
1518	// be generated for the app. The default value, -1, indicates
1519	// an
1520	// infinite validity period. Once set, the expiration can't be
1521	// updated.
1522	// json key: keyExpiresIn
1523	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
1524
1525	// LastModifiedAt: Output only. Last modified time as milliseconds since
1526	// epoch.
1527	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1528
1529	// Name: Name of the app.
1530	Name string `json:"name,omitempty"`
1531
1532	// Scopes: Scopes to apply to the app. The specified scope names must
1533	// already
1534	// exist on the API product that you associate with the app.
1535	Scopes []string `json:"scopes,omitempty"`
1536
1537	// Status: Status of the credential.
1538	Status string `json:"status,omitempty"`
1539
1540	// ServerResponse contains the HTTP response code and headers from the
1541	// server.
1542	googleapi.ServerResponse `json:"-"`
1543
1544	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
1545	// unconditionally include in API requests. By default, fields with
1546	// empty values are omitted from API requests. However, any non-pointer,
1547	// non-interface field appearing in ForceSendFields will be sent to the
1548	// server regardless of whether the field is empty or not. This may be
1549	// used to include empty fields in Patch requests.
1550	ForceSendFields []string `json:"-"`
1551
1552	// NullFields is a list of field names (e.g. "ApiProducts") to include
1553	// in API requests with the JSON null value. By default, fields with
1554	// empty values are omitted from API requests. However, any field with
1555	// an empty value appearing in NullFields will be sent to the server as
1556	// null. It is an error if a field in this list has a non-empty value.
1557	// This may be used to include null fields in Patch requests.
1558	NullFields []string `json:"-"`
1559}
1560
1561func (s *GoogleCloudApigeeV1App) MarshalJSON() ([]byte, error) {
1562	type NoMethod GoogleCloudApigeeV1App
1563	raw := NoMethod(*s)
1564	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1565}
1566
1567type GoogleCloudApigeeV1AsyncQuery struct {
1568	// Created: Creation time of the query
1569	Created string `json:"created,omitempty"`
1570
1571	// Error: Error is set when query fails
1572	Error string `json:"error,omitempty"`
1573
1574	// ExecutionTime: ExecutionTime is available only after the query is
1575	// completed
1576	ExecutionTime string `json:"executionTime,omitempty"`
1577
1578	// Name: Asynchronous Query Name.
1579	Name string `json:"name,omitempty"`
1580
1581	// QueryParams: Contains information like metrics, dimenstions etc
1582	// of the AsyncQuery
1583	QueryParams *GoogleCloudApigeeV1QueryMetadata `json:"queryParams,omitempty"`
1584
1585	// ReportDefinitionId: Asynchronous Report ID.
1586	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
1587
1588	// Result: Result is available only after the query is completed
1589	Result *GoogleCloudApigeeV1AsyncQueryResult `json:"result,omitempty"`
1590
1591	// ResultFileSize: ResultFileSize is available only after the query is
1592	// completed
1593	ResultFileSize string `json:"resultFileSize,omitempty"`
1594
1595	// ResultRows: ResultRows is available only after the query is completed
1596	ResultRows int64 `json:"resultRows,omitempty,string"`
1597
1598	// Self: Self link of the
1599	// query
1600	//
1601	// Example:
1602	// `/organizations/myorg/environments/myenv/queries/9cfc0
1603	// d85-0f30-46d6-ae6f-318d0cb961bd`
1604	Self string `json:"self,omitempty"`
1605
1606	// State: Query state could be "enqueued", "running",
1607	// "completed",
1608	// "failed"
1609	State string `json:"state,omitempty"`
1610
1611	// Updated: Last updated timestamp for the query
1612	Updated string `json:"updated,omitempty"`
1613
1614	// ServerResponse contains the HTTP response code and headers from the
1615	// server.
1616	googleapi.ServerResponse `json:"-"`
1617
1618	// ForceSendFields is a list of field names (e.g. "Created") to
1619	// unconditionally include in API requests. By default, fields with
1620	// empty values are omitted from API requests. However, any non-pointer,
1621	// non-interface field appearing in ForceSendFields will be sent to the
1622	// server regardless of whether the field is empty or not. This may be
1623	// used to include empty fields in Patch requests.
1624	ForceSendFields []string `json:"-"`
1625
1626	// NullFields is a list of field names (e.g. "Created") to include in
1627	// API requests with the JSON null value. By default, fields with empty
1628	// values are omitted from API requests. However, any field with an
1629	// empty value appearing in NullFields will be sent to the server as
1630	// null. It is an error if a field in this list has a non-empty value.
1631	// This may be used to include null fields in Patch requests.
1632	NullFields []string `json:"-"`
1633}
1634
1635func (s *GoogleCloudApigeeV1AsyncQuery) MarshalJSON() ([]byte, error) {
1636	type NoMethod GoogleCloudApigeeV1AsyncQuery
1637	raw := NoMethod(*s)
1638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1639}
1640
1641type GoogleCloudApigeeV1AsyncQueryResult struct {
1642	// Expires: Query result will be unaccessable after this time.
1643	Expires string `json:"expires,omitempty"`
1644
1645	// Self: Self link of the query
1646	// results
1647	//
1648	// Example:
1649	// `/organizations/myorg/environments/myenv/queries/9cf
1650	// c0d85-0f30-46d6-ae6f-318d0cb961bd/result`
1651	Self string `json:"self,omitempty"`
1652
1653	// ForceSendFields is a list of field names (e.g. "Expires") to
1654	// unconditionally include in API requests. By default, fields with
1655	// empty values are omitted from API requests. However, any non-pointer,
1656	// non-interface field appearing in ForceSendFields will be sent to the
1657	// server regardless of whether the field is empty or not. This may be
1658	// used to include empty fields in Patch requests.
1659	ForceSendFields []string `json:"-"`
1660
1661	// NullFields is a list of field names (e.g. "Expires") to include in
1662	// API requests with the JSON null value. By default, fields with empty
1663	// values are omitted from API requests. However, any field with an
1664	// empty value appearing in NullFields will be sent to the server as
1665	// null. It is an error if a field in this list has a non-empty value.
1666	// This may be used to include null fields in Patch requests.
1667	NullFields []string `json:"-"`
1668}
1669
1670func (s *GoogleCloudApigeeV1AsyncQueryResult) MarshalJSON() ([]byte, error) {
1671	type NoMethod GoogleCloudApigeeV1AsyncQueryResult
1672	raw := NoMethod(*s)
1673	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1674}
1675
1676type GoogleCloudApigeeV1AsyncQueryResultView struct {
1677	// Code: Error code when there is a failure.
1678	Code int64 `json:"code,omitempty"`
1679
1680	// Error: Error message when there is a failure.
1681	Error string `json:"error,omitempty"`
1682
1683	// Metadata: Metadata contains information like metrics, dimenstions
1684	// etc
1685	// of the AsyncQuery
1686	Metadata *GoogleCloudApigeeV1QueryMetadata `json:"metadata,omitempty"`
1687
1688	// Rows: Rows of query result. Each row is a JSON object.
1689	//
1690	// Example: {sum(message_count): 1, developer_app: "(not set)",…}
1691	Rows []interface{} `json:"rows,omitempty"`
1692
1693	// State: State of retrieving ResultView.
1694	State string `json:"state,omitempty"`
1695
1696	// ServerResponse contains the HTTP response code and headers from the
1697	// server.
1698	googleapi.ServerResponse `json:"-"`
1699
1700	// ForceSendFields is a list of field names (e.g. "Code") to
1701	// unconditionally include in API requests. By default, fields with
1702	// empty values are omitted from API requests. However, any non-pointer,
1703	// non-interface field appearing in ForceSendFields will be sent to the
1704	// server regardless of whether the field is empty or not. This may be
1705	// used to include empty fields in Patch requests.
1706	ForceSendFields []string `json:"-"`
1707
1708	// NullFields is a list of field names (e.g. "Code") to include in API
1709	// requests with the JSON null value. By default, fields with empty
1710	// values are omitted from API requests. However, any field with an
1711	// empty value appearing in NullFields will be sent to the server as
1712	// null. It is an error if a field in this list has a non-empty value.
1713	// This may be used to include null fields in Patch requests.
1714	NullFields []string `json:"-"`
1715}
1716
1717func (s *GoogleCloudApigeeV1AsyncQueryResultView) MarshalJSON() ([]byte, error) {
1718	type NoMethod GoogleCloudApigeeV1AsyncQueryResultView
1719	raw := NoMethod(*s)
1720	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1721}
1722
1723// GoogleCloudApigeeV1Attribute: A key value pair to store extra
1724// metadata.
1725type GoogleCloudApigeeV1Attribute struct {
1726	// Name: The key of the attribute.
1727	Name string `json:"name,omitempty"`
1728
1729	// Value: The value of the attribute.
1730	Value string `json:"value,omitempty"`
1731
1732	// ServerResponse contains the HTTP response code and headers from the
1733	// server.
1734	googleapi.ServerResponse `json:"-"`
1735
1736	// ForceSendFields is a list of field names (e.g. "Name") to
1737	// unconditionally include in API requests. By default, fields with
1738	// empty values are omitted from API requests. However, any non-pointer,
1739	// non-interface field appearing in ForceSendFields will be sent to the
1740	// server regardless of whether the field is empty or not. This may be
1741	// used to include empty fields in Patch requests.
1742	ForceSendFields []string `json:"-"`
1743
1744	// NullFields is a list of field names (e.g. "Name") to include in API
1745	// requests with the JSON null value. By default, fields with empty
1746	// values are omitted from API requests. However, any field with an
1747	// empty value appearing in NullFields will be sent to the server as
1748	// null. It is an error if a field in this list has a non-empty value.
1749	// This may be used to include null fields in Patch requests.
1750	NullFields []string `json:"-"`
1751}
1752
1753func (s *GoogleCloudApigeeV1Attribute) MarshalJSON() ([]byte, error) {
1754	type NoMethod GoogleCloudApigeeV1Attribute
1755	raw := NoMethod(*s)
1756	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1757}
1758
1759type GoogleCloudApigeeV1Attributes struct {
1760	// Attribute: A list of attributes.
1761	Attribute []*GoogleCloudApigeeV1Attribute `json:"attribute,omitempty"`
1762
1763	// ServerResponse contains the HTTP response code and headers from the
1764	// server.
1765	googleapi.ServerResponse `json:"-"`
1766
1767	// ForceSendFields is a list of field names (e.g. "Attribute") to
1768	// unconditionally include in API requests. By default, fields with
1769	// empty values are omitted from API requests. However, any non-pointer,
1770	// non-interface field appearing in ForceSendFields will be sent to the
1771	// server regardless of whether the field is empty or not. This may be
1772	// used to include empty fields in Patch requests.
1773	ForceSendFields []string `json:"-"`
1774
1775	// NullFields is a list of field names (e.g. "Attribute") to include in
1776	// API requests with the JSON null value. By default, fields with empty
1777	// values are omitted from API requests. However, any field with an
1778	// empty value appearing in NullFields will be sent to the server as
1779	// null. It is an error if a field in this list has a non-empty value.
1780	// This may be used to include null fields in Patch requests.
1781	NullFields []string `json:"-"`
1782}
1783
1784func (s *GoogleCloudApigeeV1Attributes) MarshalJSON() ([]byte, error) {
1785	type NoMethod GoogleCloudApigeeV1Attributes
1786	raw := NoMethod(*s)
1787	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1788}
1789
1790// GoogleCloudApigeeV1CertInfo: An X.509 certificate as defined in RFC
1791// 5280.
1792type GoogleCloudApigeeV1CertInfo struct {
1793	// BasicConstraints: The X.509 basic constraints extension.
1794	BasicConstraints string `json:"basicConstraints,omitempty"`
1795
1796	// ExpiryDate: The X.509 validity / notAfter in milliseconds since the
1797	// epoch.
1798	ExpiryDate int64 `json:"expiryDate,omitempty,string"`
1799
1800	// IsValid: "Yes" if certificate is valid, "No" if expired and "Not
1801	// yet"
1802	// if not yet valid.
1803	IsValid string `json:"isValid,omitempty"`
1804
1805	// Issuer: The X.509 issuer.
1806	Issuer string `json:"issuer,omitempty"`
1807
1808	// PublicKey: The public key component of the X.509 subject public key
1809	// info.
1810	PublicKey string `json:"publicKey,omitempty"`
1811
1812	// SerialNumber: The X.509 serial number.
1813	SerialNumber string `json:"serialNumber,omitempty"`
1814
1815	// SigAlgName: The X.509 signatureAlgorithm.
1816	SigAlgName string `json:"sigAlgName,omitempty"`
1817
1818	// Subject: The X.509 subject.
1819	Subject string `json:"subject,omitempty"`
1820
1821	// SubjectAlternativeNames: The X.509 subject alternative names (SANs)
1822	// extension.
1823	SubjectAlternativeNames []string `json:"subjectAlternativeNames,omitempty"`
1824
1825	// ValidFrom: The X.509 validity / notBefore in milliseconds since
1826	// the
1827	// epoch.
1828	ValidFrom int64 `json:"validFrom,omitempty,string"`
1829
1830	// Version: The X.509 version.
1831	Version int64 `json:"version,omitempty"`
1832
1833	// ForceSendFields is a list of field names (e.g. "BasicConstraints") to
1834	// unconditionally include in API requests. By default, fields with
1835	// empty values are omitted from API requests. However, any non-pointer,
1836	// non-interface field appearing in ForceSendFields will be sent to the
1837	// server regardless of whether the field is empty or not. This may be
1838	// used to include empty fields in Patch requests.
1839	ForceSendFields []string `json:"-"`
1840
1841	// NullFields is a list of field names (e.g. "BasicConstraints") to
1842	// include in API requests with the JSON null value. By default, fields
1843	// with empty values are omitted from API requests. However, any field
1844	// with an empty value appearing in NullFields will be sent to the
1845	// server as null. It is an error if a field in this list has a
1846	// non-empty value. This may be used to include null fields in Patch
1847	// requests.
1848	NullFields []string `json:"-"`
1849}
1850
1851func (s *GoogleCloudApigeeV1CertInfo) MarshalJSON() ([]byte, error) {
1852	type NoMethod GoogleCloudApigeeV1CertInfo
1853	raw := NoMethod(*s)
1854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1855}
1856
1857type GoogleCloudApigeeV1Certificate struct {
1858	// CertInfo: The chain of certificates under this name.
1859	CertInfo []*GoogleCloudApigeeV1CertInfo `json:"certInfo,omitempty"`
1860
1861	// ForceSendFields is a list of field names (e.g. "CertInfo") to
1862	// unconditionally include in API requests. By default, fields with
1863	// empty values are omitted from API requests. However, any non-pointer,
1864	// non-interface field appearing in ForceSendFields will be sent to the
1865	// server regardless of whether the field is empty or not. This may be
1866	// used to include empty fields in Patch requests.
1867	ForceSendFields []string `json:"-"`
1868
1869	// NullFields is a list of field names (e.g. "CertInfo") to include in
1870	// API requests with the JSON null value. By default, fields with empty
1871	// values are omitted from API requests. However, any field with an
1872	// empty value appearing in NullFields will be sent to the server as
1873	// null. It is an error if a field in this list has a non-empty value.
1874	// This may be used to include null fields in Patch requests.
1875	NullFields []string `json:"-"`
1876}
1877
1878func (s *GoogleCloudApigeeV1Certificate) MarshalJSON() ([]byte, error) {
1879	type NoMethod GoogleCloudApigeeV1Certificate
1880	raw := NoMethod(*s)
1881	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1882}
1883
1884type GoogleCloudApigeeV1CommonNameConfig struct {
1885	MatchWildCards bool `json:"matchWildCards,omitempty"`
1886
1887	Name string `json:"name,omitempty"`
1888
1889	// ForceSendFields is a list of field names (e.g. "MatchWildCards") to
1890	// unconditionally include in API requests. By default, fields with
1891	// empty values are omitted from API requests. However, any non-pointer,
1892	// non-interface field appearing in ForceSendFields will be sent to the
1893	// server regardless of whether the field is empty or not. This may be
1894	// used to include empty fields in Patch requests.
1895	ForceSendFields []string `json:"-"`
1896
1897	// NullFields is a list of field names (e.g. "MatchWildCards") to
1898	// include in API requests with the JSON null value. By default, fields
1899	// with empty values are omitted from API requests. However, any field
1900	// with an empty value appearing in NullFields will be sent to the
1901	// server as null. It is an error if a field in this list has a
1902	// non-empty value. This may be used to include null fields in Patch
1903	// requests.
1904	NullFields []string `json:"-"`
1905}
1906
1907func (s *GoogleCloudApigeeV1CommonNameConfig) MarshalJSON() ([]byte, error) {
1908	type NoMethod GoogleCloudApigeeV1CommonNameConfig
1909	raw := NoMethod(*s)
1910	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1911}
1912
1913type GoogleCloudApigeeV1Company struct {
1914	Apps []string `json:"apps,omitempty"`
1915
1916	// Attributes: A list of attributes
1917	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1918
1919	// CreatedAt: Output only. Created time as milliseconds since
1920	// epoch.
1921	// json key: createdAt
1922	CreatedAt int64 `json:"createdAt,omitempty,string"`
1923
1924	// DisplayName: company name displayed in the UI
1925	DisplayName string `json:"displayName,omitempty"`
1926
1927	// LastModifiedAt: Output only. Modified time as milliseconds since
1928	// epoch.
1929	// json key: lastModifiedAt
1930	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
1931
1932	// Name: Name of the company. Characters you can use in the name are
1933	// restricted to:
1934	// A-Z0-9._\-$ %.
1935	Name string `json:"name,omitempty"`
1936
1937	// Organization: the org that the company is created
1938	Organization string `json:"organization,omitempty"`
1939
1940	// Status: The status of the company
1941	Status string `json:"status,omitempty"`
1942
1943	// ServerResponse contains the HTTP response code and headers from the
1944	// server.
1945	googleapi.ServerResponse `json:"-"`
1946
1947	// ForceSendFields is a list of field names (e.g. "Apps") to
1948	// unconditionally include in API requests. By default, fields with
1949	// empty values are omitted from API requests. However, any non-pointer,
1950	// non-interface field appearing in ForceSendFields will be sent to the
1951	// server regardless of whether the field is empty or not. This may be
1952	// used to include empty fields in Patch requests.
1953	ForceSendFields []string `json:"-"`
1954
1955	// NullFields is a list of field names (e.g. "Apps") to include in API
1956	// requests with the JSON null value. By default, fields with empty
1957	// values are omitted from API requests. However, any field with an
1958	// empty value appearing in NullFields will be sent to the server as
1959	// null. It is an error if a field in this list has a non-empty value.
1960	// This may be used to include null fields in Patch requests.
1961	NullFields []string `json:"-"`
1962}
1963
1964func (s *GoogleCloudApigeeV1Company) MarshalJSON() ([]byte, error) {
1965	type NoMethod GoogleCloudApigeeV1Company
1966	raw := NoMethod(*s)
1967	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1968}
1969
1970type GoogleCloudApigeeV1CompanyApp struct {
1971	// ApiProducts: Any API Products the app consumes
1972	ApiProducts []string `json:"apiProducts,omitempty"`
1973
1974	AppFamily string `json:"appFamily,omitempty"`
1975
1976	// AppId: The id of the app.
1977	AppId string `json:"appId,omitempty"`
1978
1979	// Attributes: A list of attributes.
1980	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
1981
1982	// CallbackUrl: The callbackUrl is used by OAuth 2.0 authorization
1983	// servers to communicate
1984	// authorization codes back to apps.
1985	CallbackUrl string `json:"callbackUrl,omitempty"`
1986
1987	// CompanyName: The name of the company owns the app
1988	CompanyName string `json:"companyName,omitempty"`
1989
1990	// CreatedAt: Output only. created time of this environment as
1991	// milliseconds since epoch.
1992	// JSON key: createdAt
1993	CreatedAt int64 `json:"createdAt,omitempty,string"`
1994
1995	// Credentials: Output only. A set of credentials for the
1996	// app
1997	// credentials are key/secret pairs
1998	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
1999
2000	// KeyExpiresIn: A setting, in milliseconds, for the lifetime of the
2001	// consumer key that will
2002	// be generated for the developer app. The default value, -1, indicates
2003	// an
2004	// infinite validity period. Once set, the expiration can't be
2005	// updated.
2006	// json key: keyExpiresIn
2007	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
2008
2009	// LastModifiedAt: Output only. Modified time as milliseconds since
2010	// epoch.
2011	// json key: lastModifiedAt
2012	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2013
2014	// Name: The resoure id of the app.
2015	// JSON key: name
2016	Name string `json:"name,omitempty"`
2017
2018	// Scopes: The scopes to apply to the app. The specified scope names
2019	// must already
2020	// exist on the API product that you associate with the app.
2021	Scopes []string `json:"scopes,omitempty"`
2022
2023	// Status: The status of the credential.
2024	Status string `json:"status,omitempty"`
2025
2026	// ServerResponse contains the HTTP response code and headers from the
2027	// server.
2028	googleapi.ServerResponse `json:"-"`
2029
2030	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2031	// unconditionally include in API requests. By default, fields with
2032	// empty values are omitted from API requests. However, any non-pointer,
2033	// non-interface field appearing in ForceSendFields will be sent to the
2034	// server regardless of whether the field is empty or not. This may be
2035	// used to include empty fields in Patch requests.
2036	ForceSendFields []string `json:"-"`
2037
2038	// NullFields is a list of field names (e.g. "ApiProducts") to include
2039	// in API requests with the JSON null value. By default, fields with
2040	// empty values are omitted from API requests. However, any field with
2041	// an empty value appearing in NullFields will be sent to the server as
2042	// null. It is an error if a field in this list has a non-empty value.
2043	// This may be used to include null fields in Patch requests.
2044	NullFields []string `json:"-"`
2045}
2046
2047func (s *GoogleCloudApigeeV1CompanyApp) MarshalJSON() ([]byte, error) {
2048	type NoMethod GoogleCloudApigeeV1CompanyApp
2049	raw := NoMethod(*s)
2050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2051}
2052
2053type GoogleCloudApigeeV1CompanyAppKey struct {
2054	// ApiProducts: A list of api products this credential can be used for.
2055	ApiProducts []interface{} `json:"apiProducts,omitempty"`
2056
2057	// Attributes: A list of attributes tied to the credential.
2058	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2059
2060	// ConsumerKey: The consumer key.
2061	ConsumerKey string `json:"consumerKey,omitempty"`
2062
2063	// ConsumerSecret: The secret key.
2064	ConsumerSecret string `json:"consumerSecret,omitempty"`
2065
2066	// ExpiresAt: Unix time when the app was created
2067	// json key: expiresAt
2068	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2069
2070	// IssuedAt: Unix time when the app was issued
2071	// json key: issuedAt
2072	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2073
2074	// Scopes: The scopes to apply to the app. The specified scope names
2075	// must already
2076	// exist on the API product that you associate with the app.
2077	Scopes []string `json:"scopes,omitempty"`
2078
2079	// Status: The status of the credential.
2080	Status string `json:"status,omitempty"`
2081
2082	// ServerResponse contains the HTTP response code and headers from the
2083	// server.
2084	googleapi.ServerResponse `json:"-"`
2085
2086	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2087	// unconditionally include in API requests. By default, fields with
2088	// empty values are omitted from API requests. However, any non-pointer,
2089	// non-interface field appearing in ForceSendFields will be sent to the
2090	// server regardless of whether the field is empty or not. This may be
2091	// used to include empty fields in Patch requests.
2092	ForceSendFields []string `json:"-"`
2093
2094	// NullFields is a list of field names (e.g. "ApiProducts") to include
2095	// in API requests with the JSON null value. By default, fields with
2096	// empty values are omitted from API requests. However, any field with
2097	// an empty value appearing in NullFields will be sent to the server as
2098	// null. It is an error if a field in this list has a non-empty value.
2099	// This may be used to include null fields in Patch requests.
2100	NullFields []string `json:"-"`
2101}
2102
2103func (s *GoogleCloudApigeeV1CompanyAppKey) MarshalJSON() ([]byte, error) {
2104	type NoMethod GoogleCloudApigeeV1CompanyAppKey
2105	raw := NoMethod(*s)
2106	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2107}
2108
2109// GoogleCloudApigeeV1ConfigVersion: Version of the API proxy
2110// configuration schema. Currently, only 4.0 is
2111// supported.
2112type GoogleCloudApigeeV1ConfigVersion struct {
2113	// MajorVersion: Major version of the API proxy configuration schema.
2114	MajorVersion int64 `json:"majorVersion,omitempty"`
2115
2116	// MinorVersion: Minor version of the API proxy configuration schema.
2117	MinorVersion int64 `json:"minorVersion,omitempty"`
2118
2119	// ForceSendFields is a list of field names (e.g. "MajorVersion") to
2120	// unconditionally include in API requests. By default, fields with
2121	// empty values are omitted from API requests. However, any non-pointer,
2122	// non-interface field appearing in ForceSendFields will be sent to the
2123	// server regardless of whether the field is empty or not. This may be
2124	// used to include empty fields in Patch requests.
2125	ForceSendFields []string `json:"-"`
2126
2127	// NullFields is a list of field names (e.g. "MajorVersion") to include
2128	// in API requests with the JSON null value. By default, fields with
2129	// empty values are omitted from API requests. However, any field with
2130	// an empty value appearing in NullFields will be sent to the server as
2131	// null. It is an error if a field in this list has a non-empty value.
2132	// This may be used to include null fields in Patch requests.
2133	NullFields []string `json:"-"`
2134}
2135
2136func (s *GoogleCloudApigeeV1ConfigVersion) MarshalJSON() ([]byte, error) {
2137	type NoMethod GoogleCloudApigeeV1ConfigVersion
2138	raw := NoMethod(*s)
2139	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2140}
2141
2142type GoogleCloudApigeeV1Credential struct {
2143	// ApiProducts: A list of api products this credential can be used for.
2144	ApiProducts []*GoogleCloudApigeeV1ApiProductRef `json:"apiProducts,omitempty"`
2145
2146	// Attributes: A list of attributes tied to the credential.
2147	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2148
2149	// ConsumerKey: The consumer key.
2150	ConsumerKey string `json:"consumerKey,omitempty"`
2151
2152	// ConsumerSecret: The secret key.
2153	ConsumerSecret string `json:"consumerSecret,omitempty"`
2154
2155	// ExpiresAt: Unix time when the app was created
2156	// json key: expiresAt
2157	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2158
2159	// IssuedAt: Unix time when the app was issued
2160	// json key: issuedAt
2161	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2162
2163	// Scopes: The scopes to apply to the app. The specified scope names
2164	// must already
2165	// exist on the API product that you associate with the app.
2166	Scopes []string `json:"scopes,omitempty"`
2167
2168	// Status: The status of the credential.
2169	Status string `json:"status,omitempty"`
2170
2171	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2172	// unconditionally include in API requests. By default, fields with
2173	// empty values are omitted from API requests. However, any non-pointer,
2174	// non-interface field appearing in ForceSendFields will be sent to the
2175	// server regardless of whether the field is empty or not. This may be
2176	// used to include empty fields in Patch requests.
2177	ForceSendFields []string `json:"-"`
2178
2179	// NullFields is a list of field names (e.g. "ApiProducts") to include
2180	// in API requests with the JSON null value. By default, fields with
2181	// empty values are omitted from API requests. However, any field with
2182	// an empty value appearing in NullFields will be sent to the server as
2183	// null. It is an error if a field in this list has a non-empty value.
2184	// This may be used to include null fields in Patch requests.
2185	NullFields []string `json:"-"`
2186}
2187
2188func (s *GoogleCloudApigeeV1Credential) MarshalJSON() ([]byte, error) {
2189	type NoMethod GoogleCloudApigeeV1Credential
2190	raw := NoMethod(*s)
2191	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2192}
2193
2194type GoogleCloudApigeeV1CustomReport struct {
2195	// ChartType: This field contains the chart type for the report
2196	ChartType string `json:"chartType,omitempty"`
2197
2198	// Comments: Legacy field: not used. This field contains a list of
2199	// comments associated
2200	// with custom report
2201	Comments []string `json:"comments,omitempty"`
2202
2203	// CreatedAt: Output only. Unix time when the app was created
2204	// json key: createdAt
2205	CreatedAt int64 `json:"createdAt,omitempty,string"`
2206
2207	// Dimensions: This contains the list of dimensions for the report
2208	Dimensions []string `json:"dimensions,omitempty"`
2209
2210	// DisplayName: This is the display name for the report
2211	DisplayName string `json:"displayName,omitempty"`
2212
2213	// Environment: Output only. Environment name
2214	Environment string `json:"environment,omitempty"`
2215
2216	// Filter: This field contains the filter expression
2217	Filter string `json:"filter,omitempty"`
2218
2219	// FromTime: Legacy field: not used. Contains the from time for the
2220	// report
2221	FromTime string `json:"fromTime,omitempty"`
2222
2223	// LastModifiedAt: Output only. Modified time of this entity as
2224	// milliseconds since epoch.
2225	// json key: lastModifiedAt
2226	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2227
2228	// LastViewedAt: Output only. Last viewed time of this entity as
2229	// milliseconds since epoch
2230	LastViewedAt int64 `json:"lastViewedAt,omitempty,string"`
2231
2232	// Limit: Legacy field: not used This field contains the limit for the
2233	// result
2234	// retrieved
2235	Limit string `json:"limit,omitempty"`
2236
2237	// Metrics: Required. This contains the list of metrics
2238	Metrics []*GoogleCloudApigeeV1CustomReportMetric `json:"metrics,omitempty"`
2239
2240	// Name: Required. Unique identifier for the report
2241	// T his is a legacy field used to encode custom report unique id
2242	Name string `json:"name,omitempty"`
2243
2244	// Offset: Legacy field: not used. This field contains the offset for
2245	// the data
2246	Offset string `json:"offset,omitempty"`
2247
2248	// Organization: Output only. Organization name
2249	Organization string `json:"organization,omitempty"`
2250
2251	// Properties: This field contains report properties such as ui metadata
2252	// etc.
2253	Properties []*GoogleCloudApigeeV1ReportProperty `json:"properties,omitempty"`
2254
2255	// SortByCols: Legacy field: not used much. Contains the list of sort by
2256	// columns
2257	SortByCols []string `json:"sortByCols,omitempty"`
2258
2259	// SortOrder: Legacy field: not used much. Contains the sort order for
2260	// the sort columns
2261	SortOrder string `json:"sortOrder,omitempty"`
2262
2263	// Tags: Legacy field: not used. This field contains a list of tags
2264	// associated with
2265	// custom report
2266	Tags []string `json:"tags,omitempty"`
2267
2268	// TimeUnit: This field contains the time unit of aggregation for the
2269	// report
2270	TimeUnit string `json:"timeUnit,omitempty"`
2271
2272	// ToTime: Legacy field: not used. Contains the end time for the report
2273	ToTime string `json:"toTime,omitempty"`
2274
2275	// Topk: Legacy field: not used. This field contains the top k parameter
2276	// value
2277	// for restricting the result
2278	Topk string `json:"topk,omitempty"`
2279
2280	// ServerResponse contains the HTTP response code and headers from the
2281	// server.
2282	googleapi.ServerResponse `json:"-"`
2283
2284	// ForceSendFields is a list of field names (e.g. "ChartType") to
2285	// unconditionally include in API requests. By default, fields with
2286	// empty values are omitted from API requests. However, any non-pointer,
2287	// non-interface field appearing in ForceSendFields will be sent to the
2288	// server regardless of whether the field is empty or not. This may be
2289	// used to include empty fields in Patch requests.
2290	ForceSendFields []string `json:"-"`
2291
2292	// NullFields is a list of field names (e.g. "ChartType") to include in
2293	// API requests with the JSON null value. By default, fields with empty
2294	// values are omitted from API requests. However, any field with an
2295	// empty value appearing in NullFields will be sent to the server as
2296	// null. It is an error if a field in this list has a non-empty value.
2297	// This may be used to include null fields in Patch requests.
2298	NullFields []string `json:"-"`
2299}
2300
2301func (s *GoogleCloudApigeeV1CustomReport) MarshalJSON() ([]byte, error) {
2302	type NoMethod GoogleCloudApigeeV1CustomReport
2303	raw := NoMethod(*s)
2304	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2305}
2306
2307// GoogleCloudApigeeV1CustomReportMetric: This encapsulates a metric
2308// property of the form sum(message_count)
2309// where name is message_count and function is sum
2310type GoogleCloudApigeeV1CustomReportMetric struct {
2311	// Function: aggregate function
2312	Function string `json:"function,omitempty"`
2313
2314	// Name: name of the metric
2315	Name string `json:"name,omitempty"`
2316
2317	// ForceSendFields is a list of field names (e.g. "Function") to
2318	// unconditionally include in API requests. By default, fields with
2319	// empty values are omitted from API requests. However, any non-pointer,
2320	// non-interface field appearing in ForceSendFields will be sent to the
2321	// server regardless of whether the field is empty or not. This may be
2322	// used to include empty fields in Patch requests.
2323	ForceSendFields []string `json:"-"`
2324
2325	// NullFields is a list of field names (e.g. "Function") to include in
2326	// API requests with the JSON null value. By default, fields with empty
2327	// values are omitted from API requests. However, any field with an
2328	// empty value appearing in NullFields will be sent to the server as
2329	// null. It is an error if a field in this list has a non-empty value.
2330	// This may be used to include null fields in Patch requests.
2331	NullFields []string `json:"-"`
2332}
2333
2334func (s *GoogleCloudApigeeV1CustomReportMetric) MarshalJSON() ([]byte, error) {
2335	type NoMethod GoogleCloudApigeeV1CustomReportMetric
2336	raw := NoMethod(*s)
2337	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2338}
2339
2340type GoogleCloudApigeeV1DataLocation struct {
2341	// Url: GCS signed url. Signed URLs provide a way to give
2342	// time-limited
2343	// read or write access to anyone in possession of the URL, regardless
2344	// of
2345	// whether they have a Google account.
2346	Url string `json:"url,omitempty"`
2347
2348	// ServerResponse contains the HTTP response code and headers from the
2349	// server.
2350	googleapi.ServerResponse `json:"-"`
2351
2352	// ForceSendFields is a list of field names (e.g. "Url") to
2353	// unconditionally include in API requests. By default, fields with
2354	// empty values are omitted from API requests. However, any non-pointer,
2355	// non-interface field appearing in ForceSendFields will be sent to the
2356	// server regardless of whether the field is empty or not. This may be
2357	// used to include empty fields in Patch requests.
2358	ForceSendFields []string `json:"-"`
2359
2360	// NullFields is a list of field names (e.g. "Url") to include in API
2361	// requests with the JSON null value. By default, fields with empty
2362	// values are omitted from API requests. However, any field with an
2363	// empty value appearing in NullFields will be sent to the server as
2364	// null. It is an error if a field in this list has a non-empty value.
2365	// This may be used to include null fields in Patch requests.
2366	NullFields []string `json:"-"`
2367}
2368
2369func (s *GoogleCloudApigeeV1DataLocation) MarshalJSON() ([]byte, error) {
2370	type NoMethod GoogleCloudApigeeV1DataLocation
2371	raw := NoMethod(*s)
2372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2373}
2374
2375type GoogleCloudApigeeV1DebugMask struct {
2376	// FaultJSONPaths: List of JSON paths that specify JSON elements to be
2377	// filtered from JSON
2378	// payloads in error flows.
2379	FaultJSONPaths []string `json:"faultJSONPaths,omitempty"`
2380
2381	// FaultXPaths: List of XPaths that specify XML elements to be filtered
2382	// from XML payloads
2383	// in error flows.
2384	FaultXPaths []string `json:"faultXPaths,omitempty"`
2385
2386	// Name: The DebugMask resource name.
2387	Name string `json:"name,omitempty"`
2388
2389	// Namespaces: Map of namespaces to uris.
2390	Namespaces map[string]string `json:"namespaces,omitempty"`
2391
2392	// RequestJSONPaths: List of JSON paths that specify JSON elements to be
2393	// filtered from JSON
2394	// request message payloads.
2395	RequestJSONPaths []string `json:"requestJSONPaths,omitempty"`
2396
2397	// RequestXPaths: List of XPaths that specify XML elements to be
2398	// filtered from XML request
2399	// message payloads.
2400	RequestXPaths []string `json:"requestXPaths,omitempty"`
2401
2402	// ResponseJSONPaths: List of JSON paths that specify JSON elements to
2403	// be filtered from JSON
2404	// response message payloads.
2405	ResponseJSONPaths []string `json:"responseJSONPaths,omitempty"`
2406
2407	// ResponseXPaths: List of XPaths that specify XML elements to be
2408	// filtered from XML response
2409	// message payloads.
2410	ResponseXPaths []string `json:"responseXPaths,omitempty"`
2411
2412	// Variables: List of variables that should be masked from debug output.
2413	Variables []string `json:"variables,omitempty"`
2414
2415	// ServerResponse contains the HTTP response code and headers from the
2416	// server.
2417	googleapi.ServerResponse `json:"-"`
2418
2419	// ForceSendFields is a list of field names (e.g. "FaultJSONPaths") to
2420	// unconditionally include in API requests. By default, fields with
2421	// empty values are omitted from API requests. However, any non-pointer,
2422	// non-interface field appearing in ForceSendFields will be sent to the
2423	// server regardless of whether the field is empty or not. This may be
2424	// used to include empty fields in Patch requests.
2425	ForceSendFields []string `json:"-"`
2426
2427	// NullFields is a list of field names (e.g. "FaultJSONPaths") to
2428	// include in API requests with the JSON null value. By default, fields
2429	// with empty values are omitted from API requests. However, any field
2430	// with an empty value appearing in NullFields will be sent to the
2431	// server as null. It is an error if a field in this list has a
2432	// non-empty value. This may be used to include null fields in Patch
2433	// requests.
2434	NullFields []string `json:"-"`
2435}
2436
2437func (s *GoogleCloudApigeeV1DebugMask) MarshalJSON() ([]byte, error) {
2438	type NoMethod GoogleCloudApigeeV1DebugMask
2439	raw := NoMethod(*s)
2440	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2441}
2442
2443type GoogleCloudApigeeV1DebugSession struct {
2444	// Count: Optional. The number of request to be traced. Min = 1, Max =
2445	// 15, Default
2446	// = 10.
2447	Count int64 `json:"count,omitempty"`
2448
2449	// Filter: Optional. A conditional statement which is evaluated against
2450	// the request
2451	// message to determine if it should be traced. Syntax matches that of
2452	// on
2453	// API Proxy bundle flow Condition.
2454	Filter string `json:"filter,omitempty"`
2455
2456	// Name: A unique ID for this DebugSession.
2457	Name string `json:"name,omitempty"`
2458
2459	// Timeout: Optional. The time in seconds after which this DebugSession
2460	// should end.
2461	// This value will override the value in query param, if both are
2462	// provided.
2463	Timeout int64 `json:"timeout,omitempty,string"`
2464
2465	// Tracesize: Optional. The maximum number of bytes captured from the
2466	// response payload.
2467	// Min = 0, Max = 5120, Default = 5120.
2468	Tracesize int64 `json:"tracesize,omitempty"`
2469
2470	// Validity: Optional. The length of time, in seconds, that this debug
2471	// session is valid,
2472	// starting from when it's received in the control plane. Min = 1, Max =
2473	// 15,
2474	// Default = 10.
2475	Validity int64 `json:"validity,omitempty"`
2476
2477	// ServerResponse contains the HTTP response code and headers from the
2478	// server.
2479	googleapi.ServerResponse `json:"-"`
2480
2481	// ForceSendFields is a list of field names (e.g. "Count") to
2482	// unconditionally include in API requests. By default, fields with
2483	// empty values are omitted from API requests. However, any non-pointer,
2484	// non-interface field appearing in ForceSendFields will be sent to the
2485	// server regardless of whether the field is empty or not. This may be
2486	// used to include empty fields in Patch requests.
2487	ForceSendFields []string `json:"-"`
2488
2489	// NullFields is a list of field names (e.g. "Count") to include in API
2490	// requests with the JSON null value. By default, fields with empty
2491	// values are omitted from API requests. However, any field with an
2492	// empty value appearing in NullFields will be sent to the server as
2493	// null. It is an error if a field in this list has a non-empty value.
2494	// This may be used to include null fields in Patch requests.
2495	NullFields []string `json:"-"`
2496}
2497
2498func (s *GoogleCloudApigeeV1DebugSession) MarshalJSON() ([]byte, error) {
2499	type NoMethod GoogleCloudApigeeV1DebugSession
2500	raw := NoMethod(*s)
2501	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2502}
2503
2504// GoogleCloudApigeeV1DebugSessionTransaction: A transaction contains
2505// all of the debug information of the entire message
2506// flow of an API call processed by the runtime plane. The information
2507// is
2508// collected and recorded at critical points of the message flow in the
2509// runtime
2510// apiproxy.
2511type GoogleCloudApigeeV1DebugSessionTransaction struct {
2512	// Completed: Flag indicating whether a transaction is completed or not
2513	Completed bool `json:"completed,omitempty"`
2514
2515	// Point: List of debug data collected by runtime plane at various
2516	// defined points in
2517	// the flow.
2518	Point []*GoogleCloudApigeeV1Point `json:"point,omitempty"`
2519
2520	// ServerResponse contains the HTTP response code and headers from the
2521	// server.
2522	googleapi.ServerResponse `json:"-"`
2523
2524	// ForceSendFields is a list of field names (e.g. "Completed") to
2525	// unconditionally include in API requests. By default, fields with
2526	// empty values are omitted from API requests. However, any non-pointer,
2527	// non-interface field appearing in ForceSendFields will be sent to the
2528	// server regardless of whether the field is empty or not. This may be
2529	// used to include empty fields in Patch requests.
2530	ForceSendFields []string `json:"-"`
2531
2532	// NullFields is a list of field names (e.g. "Completed") to include in
2533	// API requests with the JSON null value. By default, fields with empty
2534	// values are omitted from API requests. However, any field with an
2535	// empty value appearing in NullFields will be sent to the server as
2536	// null. It is an error if a field in this list has a non-empty value.
2537	// This may be used to include null fields in Patch requests.
2538	NullFields []string `json:"-"`
2539}
2540
2541func (s *GoogleCloudApigeeV1DebugSessionTransaction) MarshalJSON() ([]byte, error) {
2542	type NoMethod GoogleCloudApigeeV1DebugSessionTransaction
2543	raw := NoMethod(*s)
2544	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2545}
2546
2547type GoogleCloudApigeeV1DeleteCustomReportResponse struct {
2548	// Message: The response contains only a message field.
2549	Message string `json:"message,omitempty"`
2550
2551	// ServerResponse contains the HTTP response code and headers from the
2552	// server.
2553	googleapi.ServerResponse `json:"-"`
2554
2555	// ForceSendFields is a list of field names (e.g. "Message") to
2556	// unconditionally include in API requests. By default, fields with
2557	// empty values are omitted from API requests. However, any non-pointer,
2558	// non-interface field appearing in ForceSendFields will be sent to the
2559	// server regardless of whether the field is empty or not. This may be
2560	// used to include empty fields in Patch requests.
2561	ForceSendFields []string `json:"-"`
2562
2563	// NullFields is a list of field names (e.g. "Message") to include in
2564	// API requests with the JSON null value. By default, fields with empty
2565	// values are omitted from API requests. However, any field with an
2566	// empty value appearing in NullFields will be sent to the server as
2567	// null. It is an error if a field in this list has a non-empty value.
2568	// This may be used to include null fields in Patch requests.
2569	NullFields []string `json:"-"`
2570}
2571
2572func (s *GoogleCloudApigeeV1DeleteCustomReportResponse) MarshalJSON() ([]byte, error) {
2573	type NoMethod GoogleCloudApigeeV1DeleteCustomReportResponse
2574	raw := NoMethod(*s)
2575	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2576}
2577
2578type GoogleCloudApigeeV1Deployment struct {
2579	// ApiProxy: API proxy.
2580	ApiProxy string `json:"apiProxy,omitempty"`
2581
2582	// BasePath: Base path for the deployment.
2583	BasePath string `json:"basePath,omitempty"`
2584
2585	// DeployStartTime: Time the API proxy was marked `deployed` in the
2586	// control plane in
2587	// millisconds since epoch.
2588	DeployStartTime int64 `json:"deployStartTime,omitempty,string"`
2589
2590	// Environment: Environment.
2591	Environment string `json:"environment,omitempty"`
2592
2593	// Pods: Status reported by runtime pods. This information is displayed
2594	// only for
2595	// List APIs that specify an API proxy revision.
2596	Pods []*GoogleCloudApigeeV1PodStatus `json:"pods,omitempty"`
2597
2598	// Revision: API proxy revision.
2599	Revision string `json:"revision,omitempty"`
2600
2601	// ServerResponse contains the HTTP response code and headers from the
2602	// server.
2603	googleapi.ServerResponse `json:"-"`
2604
2605	// ForceSendFields is a list of field names (e.g. "ApiProxy") to
2606	// unconditionally include in API requests. By default, fields with
2607	// empty values are omitted from API requests. However, any non-pointer,
2608	// non-interface field appearing in ForceSendFields will be sent to the
2609	// server regardless of whether the field is empty or not. This may be
2610	// used to include empty fields in Patch requests.
2611	ForceSendFields []string `json:"-"`
2612
2613	// NullFields is a list of field names (e.g. "ApiProxy") to include in
2614	// API requests with the JSON null value. By default, fields with empty
2615	// values are omitted from API requests. However, any field with an
2616	// empty value appearing in NullFields will be sent to the server as
2617	// null. It is an error if a field in this list has a non-empty value.
2618	// This may be used to include null fields in Patch requests.
2619	NullFields []string `json:"-"`
2620}
2621
2622func (s *GoogleCloudApigeeV1Deployment) MarshalJSON() ([]byte, error) {
2623	type NoMethod GoogleCloudApigeeV1Deployment
2624	raw := NoMethod(*s)
2625	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2626}
2627
2628type GoogleCloudApigeeV1DeploymentConfig struct {
2629	// Attributes: Additional key-value metadata about the deployment.
2630	Attributes map[string]string `json:"attributes,omitempty"`
2631
2632	// BasePath: Base path where the application needs to be hosted. Default
2633	// value is
2634	// assumed to be "/".
2635	BasePath string `json:"basePath,omitempty"`
2636
2637	// Location: The location of the proxy bundle, as a uri.
2638	Location string `json:"location,omitempty"`
2639
2640	// Name: The name of the API or shared flow revision to be deployed.
2641	// Must be of the
2642	// form 'organizations/{org}/apis/{api}/revisions/{rev}'
2643	// or
2644	// 'organizations/{org}/sharedflows/{sf}/revisions/{rev}'.
2645	Name string `json:"name,omitempty"`
2646
2647	// ForceSendFields is a list of field names (e.g. "Attributes") to
2648	// unconditionally include in API requests. By default, fields with
2649	// empty values are omitted from API requests. However, any non-pointer,
2650	// non-interface field appearing in ForceSendFields will be sent to the
2651	// server regardless of whether the field is empty or not. This may be
2652	// used to include empty fields in Patch requests.
2653	ForceSendFields []string `json:"-"`
2654
2655	// NullFields is a list of field names (e.g. "Attributes") to include in
2656	// API requests with the JSON null value. By default, fields with empty
2657	// values are omitted from API requests. However, any field with an
2658	// empty value appearing in NullFields will be sent to the server as
2659	// null. It is an error if a field in this list has a non-empty value.
2660	// This may be used to include null fields in Patch requests.
2661	NullFields []string `json:"-"`
2662}
2663
2664func (s *GoogleCloudApigeeV1DeploymentConfig) MarshalJSON() ([]byte, error) {
2665	type NoMethod GoogleCloudApigeeV1DeploymentConfig
2666	raw := NoMethod(*s)
2667	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2668}
2669
2670type GoogleCloudApigeeV1Developer struct {
2671	// AccessType: Access type.
2672	AccessType string `json:"accessType,omitempty"`
2673
2674	// AppFamily: App Family
2675	AppFamily string `json:"appFamily,omitempty"`
2676
2677	// Apps: List of apps for the developer
2678	Apps []string `json:"apps,omitempty"`
2679
2680	// Attributes: Optional. Name/value pairs that can be used to extend the
2681	// default developer
2682	// profile.
2683	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2684
2685	// Companies: List of companies
2686	Companies []string `json:"companies,omitempty"`
2687
2688	// CreatedAt: Output only. Time at which this Developer was created, in
2689	// milliseconds
2690	// since epoch.
2691	// json key: createdAt
2692	CreatedAt int64 `json:"createdAt,omitempty,string"`
2693
2694	// DeveloperId: developer id of the developer
2695	DeveloperId string `json:"developerId,omitempty"`
2696
2697	// Email: Required. The developer's email. This value is used to
2698	// uniquely identify
2699	// the developer in Apigee Edge.
2700	Email string `json:"email,omitempty"`
2701
2702	// FirstName: Required. The first name of the developer.
2703	FirstName string `json:"firstName,omitempty"`
2704
2705	// LastModifiedAt: Output only. Time at which this Developer was most
2706	// recently modified, in
2707	// milliseconds since epoch.
2708	// json key: lastModifiedAt
2709	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2710
2711	// LastName: Required. The last name of the developer.
2712	LastName string `json:"lastName,omitempty"`
2713
2714	// OrganizationName: Output only. Apigee Organization name of the
2715	// developer
2716	OrganizationName string `json:"organizationName,omitempty"`
2717
2718	// Status: Output only. Status of the developer
2719	Status string `json:"status,omitempty"`
2720
2721	// UserName: Required. The username of the developer. It is not used by
2722	// Apigee's Edge
2723	UserName string `json:"userName,omitempty"`
2724
2725	// ServerResponse contains the HTTP response code and headers from the
2726	// server.
2727	googleapi.ServerResponse `json:"-"`
2728
2729	// ForceSendFields is a list of field names (e.g. "AccessType") to
2730	// unconditionally include in API requests. By default, fields with
2731	// empty values are omitted from API requests. However, any non-pointer,
2732	// non-interface field appearing in ForceSendFields will be sent to the
2733	// server regardless of whether the field is empty or not. This may be
2734	// used to include empty fields in Patch requests.
2735	ForceSendFields []string `json:"-"`
2736
2737	// NullFields is a list of field names (e.g. "AccessType") to include in
2738	// API requests with the JSON null value. By default, fields with empty
2739	// values are omitted from API requests. However, any field with an
2740	// empty value appearing in NullFields will be sent to the server as
2741	// null. It is an error if a field in this list has a non-empty value.
2742	// This may be used to include null fields in Patch requests.
2743	NullFields []string `json:"-"`
2744}
2745
2746func (s *GoogleCloudApigeeV1Developer) MarshalJSON() ([]byte, error) {
2747	type NoMethod GoogleCloudApigeeV1Developer
2748	raw := NoMethod(*s)
2749	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2750}
2751
2752type GoogleCloudApigeeV1DeveloperApp struct {
2753	// ApiProducts: A list of api products this app is associated with.
2754	ApiProducts []string `json:"apiProducts,omitempty"`
2755
2756	// AppFamily: App family.
2757	AppFamily string `json:"appFamily,omitempty"`
2758
2759	// AppId: The id of the developer app.
2760	AppId string `json:"appId,omitempty"`
2761
2762	// Attributes: A list of attributes.
2763	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2764
2765	// CallbackUrl: The callbackUrl is used by OAuth 2.0 authorization
2766	// servers to communicate
2767	// authorization codes back to apps.
2768	CallbackUrl string `json:"callbackUrl,omitempty"`
2769
2770	// CreatedAt: Output only. Unix time when the app was created
2771	// json key: createdAt
2772	CreatedAt int64 `json:"createdAt,omitempty,string"`
2773
2774	// Credentials: Output only. A set of credentials for the
2775	// app--credentials are app
2776	// key/secret pairs associated with API products
2777	Credentials []*GoogleCloudApigeeV1Credential `json:"credentials,omitempty"`
2778
2779	// DeveloperId: The id of the developer.
2780	DeveloperId string `json:"developerId,omitempty"`
2781
2782	// KeyExpiresIn: A setting, in milliseconds, for the lifetime of the
2783	// consumer key that will
2784	// be generated for the developer app. The default value, -1, indicates
2785	// an
2786	// infinite validity period. Once set, the expiration can't be
2787	// updated.
2788	// json key: keyExpiresIn
2789	KeyExpiresIn int64 `json:"keyExpiresIn,omitempty,string"`
2790
2791	// LastModifiedAt: Output only. Modified time of this environment as
2792	// milliseconds since epoch.
2793	// json key: lastModifiedAt
2794	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2795
2796	// Name: The name of the developer app.
2797	Name string `json:"name,omitempty"`
2798
2799	// Scopes: The scopes to apply to the app. The specified scope names
2800	// must already
2801	// exist on the API product that you associate with the app.
2802	Scopes []string `json:"scopes,omitempty"`
2803
2804	// Status: The status of the credential.
2805	Status string `json:"status,omitempty"`
2806
2807	// ServerResponse contains the HTTP response code and headers from the
2808	// server.
2809	googleapi.ServerResponse `json:"-"`
2810
2811	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2812	// unconditionally include in API requests. By default, fields with
2813	// empty values are omitted from API requests. However, any non-pointer,
2814	// non-interface field appearing in ForceSendFields will be sent to the
2815	// server regardless of whether the field is empty or not. This may be
2816	// used to include empty fields in Patch requests.
2817	ForceSendFields []string `json:"-"`
2818
2819	// NullFields is a list of field names (e.g. "ApiProducts") to include
2820	// in API requests with the JSON null value. By default, fields with
2821	// empty values are omitted from API requests. However, any field with
2822	// an empty value appearing in NullFields will be sent to the server as
2823	// null. It is an error if a field in this list has a non-empty value.
2824	// This may be used to include null fields in Patch requests.
2825	NullFields []string `json:"-"`
2826}
2827
2828func (s *GoogleCloudApigeeV1DeveloperApp) MarshalJSON() ([]byte, error) {
2829	type NoMethod GoogleCloudApigeeV1DeveloperApp
2830	raw := NoMethod(*s)
2831	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2832}
2833
2834type GoogleCloudApigeeV1DeveloperAppKey struct {
2835	// ApiProducts: A list of api products this credential can be used for.
2836	ApiProducts []interface{} `json:"apiProducts,omitempty"`
2837
2838	// Attributes: A list of attributes tied to the credential.
2839	Attributes []*GoogleCloudApigeeV1Attribute `json:"attributes,omitempty"`
2840
2841	// ConsumerKey: The consumer key.
2842	ConsumerKey string `json:"consumerKey,omitempty"`
2843
2844	// ConsumerSecret: The secret key.
2845	ConsumerSecret string `json:"consumerSecret,omitempty"`
2846
2847	// ExpiresAt: Unix time when the app was created
2848	// json key: expiresAt
2849	ExpiresAt int64 `json:"expiresAt,omitempty,string"`
2850
2851	// IssuedAt: Unix time when the app was issued
2852	// json key: issuedAt
2853	IssuedAt int64 `json:"issuedAt,omitempty,string"`
2854
2855	// Scopes: The scopes to apply to the app. The specified scope names
2856	// must already
2857	// exist on the API product that you associate with the app.
2858	Scopes []string `json:"scopes,omitempty"`
2859
2860	// Status: The status of the credential.
2861	Status string `json:"status,omitempty"`
2862
2863	// ServerResponse contains the HTTP response code and headers from the
2864	// server.
2865	googleapi.ServerResponse `json:"-"`
2866
2867	// ForceSendFields is a list of field names (e.g. "ApiProducts") to
2868	// unconditionally include in API requests. By default, fields with
2869	// empty values are omitted from API requests. However, any non-pointer,
2870	// non-interface field appearing in ForceSendFields will be sent to the
2871	// server regardless of whether the field is empty or not. This may be
2872	// used to include empty fields in Patch requests.
2873	ForceSendFields []string `json:"-"`
2874
2875	// NullFields is a list of field names (e.g. "ApiProducts") to include
2876	// in API requests with the JSON null value. By default, fields with
2877	// empty values are omitted from API requests. However, any field with
2878	// an empty value appearing in NullFields will be sent to the server as
2879	// null. It is an error if a field in this list has a non-empty value.
2880	// This may be used to include null fields in Patch requests.
2881	NullFields []string `json:"-"`
2882}
2883
2884func (s *GoogleCloudApigeeV1DeveloperAppKey) MarshalJSON() ([]byte, error) {
2885	type NoMethod GoogleCloudApigeeV1DeveloperAppKey
2886	raw := NoMethod(*s)
2887	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2888}
2889
2890// GoogleCloudApigeeV1DimensionMetric: This message type encapsulates a
2891// metric grouped by dimension
2892type GoogleCloudApigeeV1DimensionMetric struct {
2893	// Metrics: This field contains a list of metrics
2894	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
2895
2896	// Name: This field contains the name of the dimension
2897	Name string `json:"name,omitempty"`
2898
2899	// ForceSendFields is a list of field names (e.g. "Metrics") to
2900	// unconditionally include in API requests. By default, fields with
2901	// empty values are omitted from API requests. However, any non-pointer,
2902	// non-interface field appearing in ForceSendFields will be sent to the
2903	// server regardless of whether the field is empty or not. This may be
2904	// used to include empty fields in Patch requests.
2905	ForceSendFields []string `json:"-"`
2906
2907	// NullFields is a list of field names (e.g. "Metrics") to include in
2908	// API requests with the JSON null value. By default, fields with empty
2909	// values are omitted from API requests. However, any field with an
2910	// empty value appearing in NullFields will be sent to the server as
2911	// null. It is an error if a field in this list has a non-empty value.
2912	// This may be used to include null fields in Patch requests.
2913	NullFields []string `json:"-"`
2914}
2915
2916func (s *GoogleCloudApigeeV1DimensionMetric) MarshalJSON() ([]byte, error) {
2917	type NoMethod GoogleCloudApigeeV1DimensionMetric
2918	raw := NoMethod(*s)
2919	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2920}
2921
2922// GoogleCloudApigeeV1EntityMetadata: Metadata common to many entities
2923// in this API.
2924type GoogleCloudApigeeV1EntityMetadata struct {
2925	// CreatedAt: Time at which the API proxy was created, in milliseconds
2926	// since epoch.
2927	CreatedAt int64 `json:"createdAt,omitempty,string"`
2928
2929	// LastModifiedAt: Time at which the API proxy was most recently
2930	// modified, in milliseconds
2931	// since epoch.
2932	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2933
2934	// SubType: The type of entity described
2935	SubType string `json:"subType,omitempty"`
2936
2937	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2938	// unconditionally include in API requests. By default, fields with
2939	// empty values are omitted from API requests. However, any non-pointer,
2940	// non-interface field appearing in ForceSendFields will be sent to the
2941	// server regardless of whether the field is empty or not. This may be
2942	// used to include empty fields in Patch requests.
2943	ForceSendFields []string `json:"-"`
2944
2945	// NullFields is a list of field names (e.g. "CreatedAt") to include in
2946	// API requests with the JSON null value. By default, fields with empty
2947	// values are omitted from API requests. However, any field with an
2948	// empty value appearing in NullFields will be sent to the server as
2949	// null. It is an error if a field in this list has a non-empty value.
2950	// This may be used to include null fields in Patch requests.
2951	NullFields []string `json:"-"`
2952}
2953
2954func (s *GoogleCloudApigeeV1EntityMetadata) MarshalJSON() ([]byte, error) {
2955	type NoMethod GoogleCloudApigeeV1EntityMetadata
2956	raw := NoMethod(*s)
2957	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2958}
2959
2960type GoogleCloudApigeeV1Environment struct {
2961	// CreatedAt: Output only. Creation time of this environment as
2962	// milliseconds since epoch.
2963	CreatedAt int64 `json:"createdAt,omitempty,string"`
2964
2965	// Description: Optional. A human-readable description of this
2966	// Environment.
2967	Description string `json:"description,omitempty"`
2968
2969	// DisplayName: Optional. A human-readable display name for this
2970	// Environment.
2971	DisplayName string `json:"displayName,omitempty"`
2972
2973	// LastModifiedAt: Output only. Last modification time of this
2974	// environment as milliseconds
2975	// since epoch.
2976	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
2977
2978	// Name: Required. The resource id of this environment. Values must
2979	// match the
2980	// regular expression `^[.\\p{Alnum}-_]{1,255}$`
2981	Name string `json:"name,omitempty"`
2982
2983	// Properties: Optional. Key-value pairs that may be used for
2984	// customizing the environment.
2985	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
2986
2987	// ServerResponse contains the HTTP response code and headers from the
2988	// server.
2989	googleapi.ServerResponse `json:"-"`
2990
2991	// ForceSendFields is a list of field names (e.g. "CreatedAt") to
2992	// unconditionally include in API requests. By default, fields with
2993	// empty values are omitted from API requests. However, any non-pointer,
2994	// non-interface field appearing in ForceSendFields will be sent to the
2995	// server regardless of whether the field is empty or not. This may be
2996	// used to include empty fields in Patch requests.
2997	ForceSendFields []string `json:"-"`
2998
2999	// NullFields is a list of field names (e.g. "CreatedAt") to include in
3000	// API requests with the JSON null value. By default, fields with empty
3001	// values are omitted from API requests. However, any field with an
3002	// empty value appearing in NullFields will be sent to the server as
3003	// null. It is an error if a field in this list has a non-empty value.
3004	// This may be used to include null fields in Patch requests.
3005	NullFields []string `json:"-"`
3006}
3007
3008func (s *GoogleCloudApigeeV1Environment) MarshalJSON() ([]byte, error) {
3009	type NoMethod GoogleCloudApigeeV1Environment
3010	raw := NoMethod(*s)
3011	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3012}
3013
3014type GoogleCloudApigeeV1EnvironmentConfig struct {
3015	// CreateTime: The time at which this environment config was created.
3016	CreateTime string `json:"createTime,omitempty"`
3017
3018	// DebugMask: Debug mask that applies to all deployments in the
3019	// environment.
3020	DebugMask *GoogleCloudApigeeV1DebugMask `json:"debugMask,omitempty"`
3021
3022	// Deployments: A list of deployments in the environment
3023	Deployments []*GoogleCloudApigeeV1DeploymentConfig `json:"deployments,omitempty"`
3024
3025	// FeatureFlags: Feature flags inherited from the org and environment
3026	// parents.
3027	FeatureFlags map[string]string `json:"featureFlags,omitempty"`
3028
3029	// Flowhooks: A list of flow hooks in the environment.
3030	Flowhooks []*GoogleCloudApigeeV1FlowHookConfig `json:"flowhooks,omitempty"`
3031
3032	// Keystores: A list of keystores in the environment.
3033	Keystores []*GoogleCloudApigeeV1KeystoreConfig `json:"keystores,omitempty"`
3034
3035	// Name: The name of the environment config. Must be of the
3036	// form
3037	// 'organizations/{org}/environments/{env}/configs/{config_id}
3038	Name string `json:"name,omitempty"`
3039
3040	// Provider: This field can be used by the control plane to add some
3041	// context
3042	// information about itself. This information could help detect the
3043	// source of
3044	// the document during diagnostics and debugging.
3045	Provider string `json:"provider,omitempty"`
3046
3047	// PubsubTopic: Name of the pubsub topic for this environment.
3048	PubsubTopic string `json:"pubsubTopic,omitempty"`
3049
3050	// ResourceReferences: A list of resource references in the environment.
3051	ResourceReferences []*GoogleCloudApigeeV1ReferenceConfig `json:"resourceReferences,omitempty"`
3052
3053	// Resources: A list of resource versions in the environment.
3054	Resources []*GoogleCloudApigeeV1ResourceConfig `json:"resources,omitempty"`
3055
3056	// SequenceNumber: A sequence number that defines an ordering on
3057	// environment configs. No two
3058	// configs under an environment will ever have the same sequence
3059	// number.
3060	// A higher sequence number means that the config was deployed
3061	// more
3062	// recently than one with a lower sequence number.
3063	SequenceNumber int64 `json:"sequenceNumber,omitempty,string"`
3064
3065	// Targets: A list of target servers in the environment. Disabled target
3066	// servers are
3067	// not included.
3068	Targets []*GoogleCloudApigeeV1TargetServerConfig `json:"targets,omitempty"`
3069
3070	// ServerResponse contains the HTTP response code and headers from the
3071	// server.
3072	googleapi.ServerResponse `json:"-"`
3073
3074	// ForceSendFields is a list of field names (e.g. "CreateTime") to
3075	// unconditionally include in API requests. By default, fields with
3076	// empty values are omitted from API requests. However, any non-pointer,
3077	// non-interface field appearing in ForceSendFields will be sent to the
3078	// server regardless of whether the field is empty or not. This may be
3079	// used to include empty fields in Patch requests.
3080	ForceSendFields []string `json:"-"`
3081
3082	// NullFields is a list of field names (e.g. "CreateTime") to include in
3083	// API requests with the JSON null value. By default, fields with empty
3084	// values are omitted from API requests. However, any field with an
3085	// empty value appearing in NullFields will be sent to the server as
3086	// null. It is an error if a field in this list has a non-empty value.
3087	// This may be used to include null fields in Patch requests.
3088	NullFields []string `json:"-"`
3089}
3090
3091func (s *GoogleCloudApigeeV1EnvironmentConfig) MarshalJSON() ([]byte, error) {
3092	type NoMethod GoogleCloudApigeeV1EnvironmentConfig
3093	raw := NoMethod(*s)
3094	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3095}
3096
3097type GoogleCloudApigeeV1FlowHook struct {
3098	// ContinueOnError: Optional. Flag that specifies whether execution
3099	// should continue if the flow hook
3100	// throws an exception. Set to `true` to continue execution. Set
3101	// to
3102	// `false` to stop execution if the flow hook throws an
3103	// exception.Defaults
3104	// to `true`.
3105	ContinueOnError bool `json:"continueOnError,omitempty"`
3106
3107	// Description: Description of the flow hook.
3108	Description string `json:"description,omitempty"`
3109
3110	// FlowHookPoint: Where in the API call flow the flow hook is invoked.
3111	// Must be one of
3112	// `PreProxyFlowHook`, `PostProxyFlowHook`, `PreTargetFlowHook`,
3113	// or
3114	// `PostTargetFlowHook`.
3115	FlowHookPoint string `json:"flowHookPoint,omitempty"`
3116
3117	// SharedFlow: Shared flow attached to this flow hook, or empty if there
3118	// is none attached.
3119	SharedFlow string `json:"sharedFlow,omitempty"`
3120
3121	// ServerResponse contains the HTTP response code and headers from the
3122	// server.
3123	googleapi.ServerResponse `json:"-"`
3124
3125	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
3126	// unconditionally include in API requests. By default, fields with
3127	// empty values are omitted from API requests. However, any non-pointer,
3128	// non-interface field appearing in ForceSendFields will be sent to the
3129	// server regardless of whether the field is empty or not. This may be
3130	// used to include empty fields in Patch requests.
3131	ForceSendFields []string `json:"-"`
3132
3133	// NullFields is a list of field names (e.g. "ContinueOnError") to
3134	// include in API requests with the JSON null value. By default, fields
3135	// with empty values are omitted from API requests. However, any field
3136	// with an empty value appearing in NullFields will be sent to the
3137	// server as null. It is an error if a field in this list has a
3138	// non-empty value. This may be used to include null fields in Patch
3139	// requests.
3140	NullFields []string `json:"-"`
3141}
3142
3143func (s *GoogleCloudApigeeV1FlowHook) MarshalJSON() ([]byte, error) {
3144	type NoMethod GoogleCloudApigeeV1FlowHook
3145	raw := NoMethod(*s)
3146	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3147}
3148
3149type GoogleCloudApigeeV1FlowHookConfig struct {
3150	// ContinueOnError: Should the flow abort after an error in the flow
3151	// hook.
3152	// Should default to true if unset.
3153	ContinueOnError bool `json:"continueOnError,omitempty"`
3154
3155	// Name: The name of the flow hook. Must be of the
3156	// form
3157	// 'organizations/{org}/environments/{env}/flowhooks/{point}''.
3158	// Know
3159	// n points are PreProxyFlowHook, PostProxyFlowHook,
3160	// PreTargetFlowHook,
3161	// and PostTargetFlowHook
3162	Name string `json:"name,omitempty"`
3163
3164	// SharedFlowName: The name of the shared flow to invoke. Must be of the
3165	// form
3166	// 'organizations/{org}/sharedflows/{sharedflow}'.
3167	SharedFlowName string `json:"sharedFlowName,omitempty"`
3168
3169	// ForceSendFields is a list of field names (e.g. "ContinueOnError") to
3170	// unconditionally include in API requests. By default, fields with
3171	// empty values are omitted from API requests. However, any non-pointer,
3172	// non-interface field appearing in ForceSendFields will be sent to the
3173	// server regardless of whether the field is empty or not. This may be
3174	// used to include empty fields in Patch requests.
3175	ForceSendFields []string `json:"-"`
3176
3177	// NullFields is a list of field names (e.g. "ContinueOnError") to
3178	// include in API requests with the JSON null value. By default, fields
3179	// with empty values are omitted from API requests. However, any field
3180	// with an empty value appearing in NullFields will be sent to the
3181	// server as null. It is an error if a field in this list has a
3182	// non-empty value. This may be used to include null fields in Patch
3183	// requests.
3184	NullFields []string `json:"-"`
3185}
3186
3187func (s *GoogleCloudApigeeV1FlowHookConfig) MarshalJSON() ([]byte, error) {
3188	type NoMethod GoogleCloudApigeeV1FlowHookConfig
3189	raw := NoMethod(*s)
3190	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3191}
3192
3193// GoogleCloudApigeeV1GetSyncAuthorizationRequest: The request
3194// for
3195// GetSyncAuthorization.
3196type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct {
3197}
3198
3199type GoogleCloudApigeeV1KeyAliasReference struct {
3200	// AliasId: The alias id. Must exist in the keystore referred to by
3201	// reference.
3202	AliasId string `json:"aliasId,omitempty"`
3203
3204	// Reference: The reference name. Must be of the
3205	// form:
3206	// organizations/{org}/environments/{env}/references/{ref}.
3207	Reference string `json:"reference,omitempty"`
3208
3209	// ForceSendFields is a list of field names (e.g. "AliasId") to
3210	// unconditionally include in API requests. By default, fields with
3211	// empty values are omitted from API requests. However, any non-pointer,
3212	// non-interface field appearing in ForceSendFields will be sent to the
3213	// server regardless of whether the field is empty or not. This may be
3214	// used to include empty fields in Patch requests.
3215	ForceSendFields []string `json:"-"`
3216
3217	// NullFields is a list of field names (e.g. "AliasId") to include in
3218	// API requests with the JSON null value. By default, fields with empty
3219	// values are omitted from API requests. However, any field with an
3220	// empty value appearing in NullFields will be sent to the server as
3221	// null. It is an error if a field in this list has a non-empty value.
3222	// This may be used to include null fields in Patch requests.
3223	NullFields []string `json:"-"`
3224}
3225
3226func (s *GoogleCloudApigeeV1KeyAliasReference) MarshalJSON() ([]byte, error) {
3227	type NoMethod GoogleCloudApigeeV1KeyAliasReference
3228	raw := NoMethod(*s)
3229	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3230}
3231
3232// GoogleCloudApigeeV1KeyValueMap: A collection of key, value string
3233// pairs
3234type GoogleCloudApigeeV1KeyValueMap struct {
3235	// Encrypted: Optional. If `true` entry values will be encrypted.
3236	Encrypted bool `json:"encrypted,omitempty"`
3237
3238	// Name: Required. The id of the key value map.
3239	Name string `json:"name,omitempty"`
3240
3241	// ServerResponse contains the HTTP response code and headers from the
3242	// server.
3243	googleapi.ServerResponse `json:"-"`
3244
3245	// ForceSendFields is a list of field names (e.g. "Encrypted") to
3246	// unconditionally include in API requests. By default, fields with
3247	// empty values are omitted from API requests. However, any non-pointer,
3248	// non-interface field appearing in ForceSendFields will be sent to the
3249	// server regardless of whether the field is empty or not. This may be
3250	// used to include empty fields in Patch requests.
3251	ForceSendFields []string `json:"-"`
3252
3253	// NullFields is a list of field names (e.g. "Encrypted") to include in
3254	// API requests with the JSON null value. By default, fields with empty
3255	// values are omitted from API requests. However, any field with an
3256	// empty value appearing in NullFields will be sent to the server as
3257	// null. It is an error if a field in this list has a non-empty value.
3258	// This may be used to include null fields in Patch requests.
3259	NullFields []string `json:"-"`
3260}
3261
3262func (s *GoogleCloudApigeeV1KeyValueMap) MarshalJSON() ([]byte, error) {
3263	type NoMethod GoogleCloudApigeeV1KeyValueMap
3264	raw := NoMethod(*s)
3265	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3266}
3267
3268// GoogleCloudApigeeV1Keystore: A datastore for Certificates and Aliases
3269type GoogleCloudApigeeV1Keystore struct {
3270	// Aliases: Output only. The aliases in this keystore.
3271	Aliases []string `json:"aliases,omitempty"`
3272
3273	// Name: Required. The resource ID for this keystore.  Values must match
3274	// the
3275	// regular expression `[\w[:space:]-.]{1,255}`.
3276	Name string `json:"name,omitempty"`
3277
3278	// ServerResponse contains the HTTP response code and headers from the
3279	// server.
3280	googleapi.ServerResponse `json:"-"`
3281
3282	// ForceSendFields is a list of field names (e.g. "Aliases") to
3283	// unconditionally include in API requests. By default, fields with
3284	// empty values are omitted from API requests. However, any non-pointer,
3285	// non-interface field appearing in ForceSendFields will be sent to the
3286	// server regardless of whether the field is empty or not. This may be
3287	// used to include empty fields in Patch requests.
3288	ForceSendFields []string `json:"-"`
3289
3290	// NullFields is a list of field names (e.g. "Aliases") to include in
3291	// API requests with the JSON null value. By default, fields with empty
3292	// values are omitted from API requests. However, any field with an
3293	// empty value appearing in NullFields will be sent to the server as
3294	// null. It is an error if a field in this list has a non-empty value.
3295	// This may be used to include null fields in Patch requests.
3296	NullFields []string `json:"-"`
3297}
3298
3299func (s *GoogleCloudApigeeV1Keystore) MarshalJSON() ([]byte, error) {
3300	type NoMethod GoogleCloudApigeeV1Keystore
3301	raw := NoMethod(*s)
3302	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3303}
3304
3305type GoogleCloudApigeeV1KeystoreConfig struct {
3306	// Aliases: Aliases in the keystore.
3307	Aliases []*GoogleCloudApigeeV1AliasRevisionConfig `json:"aliases,omitempty"`
3308
3309	// Name: The resource name. Must be of
3310	// the
3311	// form:
3312	// 'organizations/{org}/environments/{env}/keystores/{keystore}
3313	// '.
3314	Name string `json:"name,omitempty"`
3315
3316	// ForceSendFields is a list of field names (e.g. "Aliases") to
3317	// unconditionally include in API requests. By default, fields with
3318	// empty values are omitted from API requests. However, any non-pointer,
3319	// non-interface field appearing in ForceSendFields will be sent to the
3320	// server regardless of whether the field is empty or not. This may be
3321	// used to include empty fields in Patch requests.
3322	ForceSendFields []string `json:"-"`
3323
3324	// NullFields is a list of field names (e.g. "Aliases") to include in
3325	// API requests with the JSON null value. By default, fields with empty
3326	// values are omitted from API requests. However, any field with an
3327	// empty value appearing in NullFields will be sent to the server as
3328	// null. It is an error if a field in this list has a non-empty value.
3329	// This may be used to include null fields in Patch requests.
3330	NullFields []string `json:"-"`
3331}
3332
3333func (s *GoogleCloudApigeeV1KeystoreConfig) MarshalJSON() ([]byte, error) {
3334	type NoMethod GoogleCloudApigeeV1KeystoreConfig
3335	raw := NoMethod(*s)
3336	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3337}
3338
3339type GoogleCloudApigeeV1ListApiProductsResponse struct {
3340	// ApiProduct: Lists all API product names defined for an organization.
3341	ApiProduct []*GoogleCloudApigeeV1ApiProduct `json:"apiProduct,omitempty"`
3342
3343	// ServerResponse contains the HTTP response code and headers from the
3344	// server.
3345	googleapi.ServerResponse `json:"-"`
3346
3347	// ForceSendFields is a list of field names (e.g. "ApiProduct") to
3348	// unconditionally include in API requests. By default, fields with
3349	// empty values are omitted from API requests. However, any non-pointer,
3350	// non-interface field appearing in ForceSendFields will be sent to the
3351	// server regardless of whether the field is empty or not. This may be
3352	// used to include empty fields in Patch requests.
3353	ForceSendFields []string `json:"-"`
3354
3355	// NullFields is a list of field names (e.g. "ApiProduct") to include in
3356	// API requests with the JSON null value. By default, fields with empty
3357	// values are omitted from API requests. However, any field with an
3358	// empty value appearing in NullFields will be sent to the server as
3359	// null. It is an error if a field in this list has a non-empty value.
3360	// This may be used to include null fields in Patch requests.
3361	NullFields []string `json:"-"`
3362}
3363
3364func (s *GoogleCloudApigeeV1ListApiProductsResponse) MarshalJSON() ([]byte, error) {
3365	type NoMethod GoogleCloudApigeeV1ListApiProductsResponse
3366	raw := NoMethod(*s)
3367	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3368}
3369
3370type GoogleCloudApigeeV1ListApiProxiesResponse struct {
3371	Proxies []*GoogleCloudApigeeV1ApiProxy `json:"proxies,omitempty"`
3372
3373	// ServerResponse contains the HTTP response code and headers from the
3374	// server.
3375	googleapi.ServerResponse `json:"-"`
3376
3377	// ForceSendFields is a list of field names (e.g. "Proxies") to
3378	// unconditionally include in API requests. By default, fields with
3379	// empty values are omitted from API requests. However, any non-pointer,
3380	// non-interface field appearing in ForceSendFields will be sent to the
3381	// server regardless of whether the field is empty or not. This may be
3382	// used to include empty fields in Patch requests.
3383	ForceSendFields []string `json:"-"`
3384
3385	// NullFields is a list of field names (e.g. "Proxies") to include in
3386	// API requests with the JSON null value. By default, fields with empty
3387	// values are omitted from API requests. However, any field with an
3388	// empty value appearing in NullFields will be sent to the server as
3389	// null. It is an error if a field in this list has a non-empty value.
3390	// This may be used to include null fields in Patch requests.
3391	NullFields []string `json:"-"`
3392}
3393
3394func (s *GoogleCloudApigeeV1ListApiProxiesResponse) MarshalJSON() ([]byte, error) {
3395	type NoMethod GoogleCloudApigeeV1ListApiProxiesResponse
3396	raw := NoMethod(*s)
3397	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3398}
3399
3400type GoogleCloudApigeeV1ListAppsResponse struct {
3401	App []*GoogleCloudApigeeV1App `json:"app,omitempty"`
3402
3403	// ServerResponse contains the HTTP response code and headers from the
3404	// server.
3405	googleapi.ServerResponse `json:"-"`
3406
3407	// ForceSendFields is a list of field names (e.g. "App") to
3408	// unconditionally include in API requests. By default, fields with
3409	// empty values are omitted from API requests. However, any non-pointer,
3410	// non-interface field appearing in ForceSendFields will be sent to the
3411	// server regardless of whether the field is empty or not. This may be
3412	// used to include empty fields in Patch requests.
3413	ForceSendFields []string `json:"-"`
3414
3415	// NullFields is a list of field names (e.g. "App") to include in API
3416	// requests with the JSON null value. By default, fields with empty
3417	// values are omitted from API requests. However, any field with an
3418	// empty value appearing in NullFields will be sent to the server as
3419	// null. It is an error if a field in this list has a non-empty value.
3420	// This may be used to include null fields in Patch requests.
3421	NullFields []string `json:"-"`
3422}
3423
3424func (s *GoogleCloudApigeeV1ListAppsResponse) MarshalJSON() ([]byte, error) {
3425	type NoMethod GoogleCloudApigeeV1ListAppsResponse
3426	raw := NoMethod(*s)
3427	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3428}
3429
3430// GoogleCloudApigeeV1ListAsyncQueriesResponse: The response for
3431// ListAsyncQueries
3432type GoogleCloudApigeeV1ListAsyncQueriesResponse struct {
3433	// Queries: The asynchronous queries belong to requested organization
3434	// and environment
3435	Queries []*GoogleCloudApigeeV1AsyncQuery `json:"queries,omitempty"`
3436
3437	// ServerResponse contains the HTTP response code and headers from the
3438	// server.
3439	googleapi.ServerResponse `json:"-"`
3440
3441	// ForceSendFields is a list of field names (e.g. "Queries") to
3442	// unconditionally include in API requests. By default, fields with
3443	// empty values are omitted from API requests. However, any non-pointer,
3444	// non-interface field appearing in ForceSendFields will be sent to the
3445	// server regardless of whether the field is empty or not. This may be
3446	// used to include empty fields in Patch requests.
3447	ForceSendFields []string `json:"-"`
3448
3449	// NullFields is a list of field names (e.g. "Queries") to include in
3450	// API requests with the JSON null value. By default, fields with empty
3451	// values are omitted from API requests. However, any field with an
3452	// empty value appearing in NullFields will be sent to the server as
3453	// null. It is an error if a field in this list has a non-empty value.
3454	// This may be used to include null fields in Patch requests.
3455	NullFields []string `json:"-"`
3456}
3457
3458func (s *GoogleCloudApigeeV1ListAsyncQueriesResponse) MarshalJSON() ([]byte, error) {
3459	type NoMethod GoogleCloudApigeeV1ListAsyncQueriesResponse
3460	raw := NoMethod(*s)
3461	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3462}
3463
3464type GoogleCloudApigeeV1ListCompaniesResponse struct {
3465	// Company: A list of company.
3466	Company []*GoogleCloudApigeeV1Company `json:"company,omitempty"`
3467
3468	// ServerResponse contains the HTTP response code and headers from the
3469	// server.
3470	googleapi.ServerResponse `json:"-"`
3471
3472	// ForceSendFields is a list of field names (e.g. "Company") to
3473	// unconditionally include in API requests. By default, fields with
3474	// empty values are omitted from API requests. However, any non-pointer,
3475	// non-interface field appearing in ForceSendFields will be sent to the
3476	// server regardless of whether the field is empty or not. This may be
3477	// used to include empty fields in Patch requests.
3478	ForceSendFields []string `json:"-"`
3479
3480	// NullFields is a list of field names (e.g. "Company") to include in
3481	// API requests with the JSON null value. By default, fields with empty
3482	// values are omitted from API requests. However, any field with an
3483	// empty value appearing in NullFields will be sent to the server as
3484	// null. It is an error if a field in this list has a non-empty value.
3485	// This may be used to include null fields in Patch requests.
3486	NullFields []string `json:"-"`
3487}
3488
3489func (s *GoogleCloudApigeeV1ListCompaniesResponse) MarshalJSON() ([]byte, error) {
3490	type NoMethod GoogleCloudApigeeV1ListCompaniesResponse
3491	raw := NoMethod(*s)
3492	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3493}
3494
3495type GoogleCloudApigeeV1ListCompanyAppsResponse struct {
3496	// App: A list of apps for a company.
3497	App []*GoogleCloudApigeeV1CompanyApp `json:"app,omitempty"`
3498
3499	// ServerResponse contains the HTTP response code and headers from the
3500	// server.
3501	googleapi.ServerResponse `json:"-"`
3502
3503	// ForceSendFields is a list of field names (e.g. "App") to
3504	// unconditionally include in API requests. By default, fields with
3505	// empty values are omitted from API requests. However, any non-pointer,
3506	// non-interface field appearing in ForceSendFields will be sent to the
3507	// server regardless of whether the field is empty or not. This may be
3508	// used to include empty fields in Patch requests.
3509	ForceSendFields []string `json:"-"`
3510
3511	// NullFields is a list of field names (e.g. "App") to include in API
3512	// requests with the JSON null value. By default, fields with empty
3513	// values are omitted from API requests. However, any field with an
3514	// empty value appearing in NullFields will be sent to the server as
3515	// null. It is an error if a field in this list has a non-empty value.
3516	// This may be used to include null fields in Patch requests.
3517	NullFields []string `json:"-"`
3518}
3519
3520func (s *GoogleCloudApigeeV1ListCompanyAppsResponse) MarshalJSON() ([]byte, error) {
3521	type NoMethod GoogleCloudApigeeV1ListCompanyAppsResponse
3522	raw := NoMethod(*s)
3523	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3524}
3525
3526// GoogleCloudApigeeV1ListCustomReportsResponse: This message
3527// encapsulates a list of custom report definitions
3528type GoogleCloudApigeeV1ListCustomReportsResponse struct {
3529	Qualifier []*GoogleCloudApigeeV1CustomReport `json:"qualifier,omitempty"`
3530
3531	// ServerResponse contains the HTTP response code and headers from the
3532	// server.
3533	googleapi.ServerResponse `json:"-"`
3534
3535	// ForceSendFields is a list of field names (e.g. "Qualifier") to
3536	// unconditionally include in API requests. By default, fields with
3537	// empty values are omitted from API requests. However, any non-pointer,
3538	// non-interface field appearing in ForceSendFields will be sent to the
3539	// server regardless of whether the field is empty or not. This may be
3540	// used to include empty fields in Patch requests.
3541	ForceSendFields []string `json:"-"`
3542
3543	// NullFields is a list of field names (e.g. "Qualifier") to include in
3544	// API requests with the JSON null value. By default, fields with empty
3545	// values are omitted from API requests. However, any field with an
3546	// empty value appearing in NullFields will be sent to the server as
3547	// null. It is an error if a field in this list has a non-empty value.
3548	// This may be used to include null fields in Patch requests.
3549	NullFields []string `json:"-"`
3550}
3551
3552func (s *GoogleCloudApigeeV1ListCustomReportsResponse) MarshalJSON() ([]byte, error) {
3553	type NoMethod GoogleCloudApigeeV1ListCustomReportsResponse
3554	raw := NoMethod(*s)
3555	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3556}
3557
3558type GoogleCloudApigeeV1ListDebugSessionsResponse struct {
3559	// Sessions: Session info that includes debug session ID and the first
3560	// transaction
3561	// creation timestamp.
3562	Sessions []*GoogleCloudApigeeV1Sesssion `json:"sessions,omitempty"`
3563
3564	// ServerResponse contains the HTTP response code and headers from the
3565	// server.
3566	googleapi.ServerResponse `json:"-"`
3567
3568	// ForceSendFields is a list of field names (e.g. "Sessions") to
3569	// unconditionally include in API requests. By default, fields with
3570	// empty values are omitted from API requests. However, any non-pointer,
3571	// non-interface field appearing in ForceSendFields will be sent to the
3572	// server regardless of whether the field is empty or not. This may be
3573	// used to include empty fields in Patch requests.
3574	ForceSendFields []string `json:"-"`
3575
3576	// NullFields is a list of field names (e.g. "Sessions") to include in
3577	// API requests with the JSON null value. By default, fields with empty
3578	// values are omitted from API requests. However, any field with an
3579	// empty value appearing in NullFields will be sent to the server as
3580	// null. It is an error if a field in this list has a non-empty value.
3581	// This may be used to include null fields in Patch requests.
3582	NullFields []string `json:"-"`
3583}
3584
3585func (s *GoogleCloudApigeeV1ListDebugSessionsResponse) MarshalJSON() ([]byte, error) {
3586	type NoMethod GoogleCloudApigeeV1ListDebugSessionsResponse
3587	raw := NoMethod(*s)
3588	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3589}
3590
3591type GoogleCloudApigeeV1ListDeploymentsResponse struct {
3592	// Deployments: List of deployments.
3593	Deployments []*GoogleCloudApigeeV1Deployment `json:"deployments,omitempty"`
3594
3595	// ServerResponse contains the HTTP response code and headers from the
3596	// server.
3597	googleapi.ServerResponse `json:"-"`
3598
3599	// ForceSendFields is a list of field names (e.g. "Deployments") to
3600	// unconditionally include in API requests. By default, fields with
3601	// empty values are omitted from API requests. However, any non-pointer,
3602	// non-interface field appearing in ForceSendFields will be sent to the
3603	// server regardless of whether the field is empty or not. This may be
3604	// used to include empty fields in Patch requests.
3605	ForceSendFields []string `json:"-"`
3606
3607	// NullFields is a list of field names (e.g. "Deployments") to include
3608	// in API requests with the JSON null value. By default, fields with
3609	// empty values are omitted from API requests. However, any field with
3610	// an empty value appearing in NullFields will be sent to the server as
3611	// null. It is an error if a field in this list has a non-empty value.
3612	// This may be used to include null fields in Patch requests.
3613	NullFields []string `json:"-"`
3614}
3615
3616func (s *GoogleCloudApigeeV1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
3617	type NoMethod GoogleCloudApigeeV1ListDeploymentsResponse
3618	raw := NoMethod(*s)
3619	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3620}
3621
3622type GoogleCloudApigeeV1ListDeveloperAppsResponse struct {
3623	// App: A list of developer apps and the credentials for the app.
3624	App []*GoogleCloudApigeeV1DeveloperApp `json:"app,omitempty"`
3625
3626	// ServerResponse contains the HTTP response code and headers from the
3627	// server.
3628	googleapi.ServerResponse `json:"-"`
3629
3630	// ForceSendFields is a list of field names (e.g. "App") to
3631	// unconditionally include in API requests. By default, fields with
3632	// empty values are omitted from API requests. However, any non-pointer,
3633	// non-interface field appearing in ForceSendFields will be sent to the
3634	// server regardless of whether the field is empty or not. This may be
3635	// used to include empty fields in Patch requests.
3636	ForceSendFields []string `json:"-"`
3637
3638	// NullFields is a list of field names (e.g. "App") to include in API
3639	// requests with the JSON null value. By default, fields with empty
3640	// values are omitted from API requests. However, any field with an
3641	// empty value appearing in NullFields will be sent to the server as
3642	// null. It is an error if a field in this list has a non-empty value.
3643	// This may be used to include null fields in Patch requests.
3644	NullFields []string `json:"-"`
3645}
3646
3647func (s *GoogleCloudApigeeV1ListDeveloperAppsResponse) MarshalJSON() ([]byte, error) {
3648	type NoMethod GoogleCloudApigeeV1ListDeveloperAppsResponse
3649	raw := NoMethod(*s)
3650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3651}
3652
3653// GoogleCloudApigeeV1ListEnvironmentResourcesResponse: The response
3654// for
3655// ListEnvironmentResources
3656type GoogleCloudApigeeV1ListEnvironmentResourcesResponse struct {
3657	// ResourceFile: The list of resources files.
3658	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
3659
3660	// ServerResponse contains the HTTP response code and headers from the
3661	// server.
3662	googleapi.ServerResponse `json:"-"`
3663
3664	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
3665	// unconditionally include in API requests. By default, fields with
3666	// empty values are omitted from API requests. However, any non-pointer,
3667	// non-interface field appearing in ForceSendFields will be sent to the
3668	// server regardless of whether the field is empty or not. This may be
3669	// used to include empty fields in Patch requests.
3670	ForceSendFields []string `json:"-"`
3671
3672	// NullFields is a list of field names (e.g. "ResourceFile") to include
3673	// in API requests with the JSON null value. By default, fields with
3674	// empty values are omitted from API requests. However, any field with
3675	// an empty value appearing in NullFields will be sent to the server as
3676	// null. It is an error if a field in this list has a non-empty value.
3677	// This may be used to include null fields in Patch requests.
3678	NullFields []string `json:"-"`
3679}
3680
3681func (s *GoogleCloudApigeeV1ListEnvironmentResourcesResponse) MarshalJSON() ([]byte, error) {
3682	type NoMethod GoogleCloudApigeeV1ListEnvironmentResourcesResponse
3683	raw := NoMethod(*s)
3684	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3685}
3686
3687type GoogleCloudApigeeV1ListHybridIssuersResponse struct {
3688	// Issuers: Lists of hybrid services and its trusted issuer email ids.
3689	Issuers []*GoogleCloudApigeeV1ServiceIssuersMapping `json:"issuers,omitempty"`
3690
3691	// ServerResponse contains the HTTP response code and headers from the
3692	// server.
3693	googleapi.ServerResponse `json:"-"`
3694
3695	// ForceSendFields is a list of field names (e.g. "Issuers") to
3696	// unconditionally include in API requests. By default, fields with
3697	// empty values are omitted from API requests. However, any non-pointer,
3698	// non-interface field appearing in ForceSendFields will be sent to the
3699	// server regardless of whether the field is empty or not. This may be
3700	// used to include empty fields in Patch requests.
3701	ForceSendFields []string `json:"-"`
3702
3703	// NullFields is a list of field names (e.g. "Issuers") to include in
3704	// API requests with the JSON null value. By default, fields with empty
3705	// values are omitted from API requests. However, any field with an
3706	// empty value appearing in NullFields will be sent to the server as
3707	// null. It is an error if a field in this list has a non-empty value.
3708	// This may be used to include null fields in Patch requests.
3709	NullFields []string `json:"-"`
3710}
3711
3712func (s *GoogleCloudApigeeV1ListHybridIssuersResponse) MarshalJSON() ([]byte, error) {
3713	type NoMethod GoogleCloudApigeeV1ListHybridIssuersResponse
3714	raw := NoMethod(*s)
3715	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3716}
3717
3718type GoogleCloudApigeeV1ListOfDevelopersResponse struct {
3719	// Developer: A list of developers
3720	Developer []*GoogleCloudApigeeV1Developer `json:"developer,omitempty"`
3721
3722	// ServerResponse contains the HTTP response code and headers from the
3723	// server.
3724	googleapi.ServerResponse `json:"-"`
3725
3726	// ForceSendFields is a list of field names (e.g. "Developer") to
3727	// unconditionally include in API requests. By default, fields with
3728	// empty values are omitted from API requests. However, any non-pointer,
3729	// non-interface field appearing in ForceSendFields will be sent to the
3730	// server regardless of whether the field is empty or not. This may be
3731	// used to include empty fields in Patch requests.
3732	ForceSendFields []string `json:"-"`
3733
3734	// NullFields is a list of field names (e.g. "Developer") to include in
3735	// API requests with the JSON null value. By default, fields with empty
3736	// values are omitted from API requests. However, any field with an
3737	// empty value appearing in NullFields will be sent to the server as
3738	// null. It is an error if a field in this list has a non-empty value.
3739	// This may be used to include null fields in Patch requests.
3740	NullFields []string `json:"-"`
3741}
3742
3743func (s *GoogleCloudApigeeV1ListOfDevelopersResponse) MarshalJSON() ([]byte, error) {
3744	type NoMethod GoogleCloudApigeeV1ListOfDevelopersResponse
3745	raw := NoMethod(*s)
3746	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3747}
3748
3749type GoogleCloudApigeeV1ListOrganizationsResponse struct {
3750	// Organizations: List of Apigee organizations, and the GCP projects
3751	// associated with each
3752	// Apigee organization.
3753	Organizations []*GoogleCloudApigeeV1OrganizationProjectMapping `json:"organizations,omitempty"`
3754
3755	// ServerResponse contains the HTTP response code and headers from the
3756	// server.
3757	googleapi.ServerResponse `json:"-"`
3758
3759	// ForceSendFields is a list of field names (e.g. "Organizations") to
3760	// unconditionally include in API requests. By default, fields with
3761	// empty values are omitted from API requests. However, any non-pointer,
3762	// non-interface field appearing in ForceSendFields will be sent to the
3763	// server regardless of whether the field is empty or not. This may be
3764	// used to include empty fields in Patch requests.
3765	ForceSendFields []string `json:"-"`
3766
3767	// NullFields is a list of field names (e.g. "Organizations") to include
3768	// in API requests with the JSON null value. By default, fields with
3769	// empty values are omitted from API requests. However, any field with
3770	// an empty value appearing in NullFields will be sent to the server as
3771	// null. It is an error if a field in this list has a non-empty value.
3772	// This may be used to include null fields in Patch requests.
3773	NullFields []string `json:"-"`
3774}
3775
3776func (s *GoogleCloudApigeeV1ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
3777	type NoMethod GoogleCloudApigeeV1ListOrganizationsResponse
3778	raw := NoMethod(*s)
3779	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3780}
3781
3782type GoogleCloudApigeeV1ListSharedFlowsResponse struct {
3783	SharedFlows []*GoogleCloudApigeeV1SharedFlow `json:"sharedFlows,omitempty"`
3784
3785	// ServerResponse contains the HTTP response code and headers from the
3786	// server.
3787	googleapi.ServerResponse `json:"-"`
3788
3789	// ForceSendFields is a list of field names (e.g. "SharedFlows") to
3790	// unconditionally include in API requests. By default, fields with
3791	// empty values are omitted from API requests. However, any non-pointer,
3792	// non-interface field appearing in ForceSendFields will be sent to the
3793	// server regardless of whether the field is empty or not. This may be
3794	// used to include empty fields in Patch requests.
3795	ForceSendFields []string `json:"-"`
3796
3797	// NullFields is a list of field names (e.g. "SharedFlows") to include
3798	// in API requests with the JSON null value. By default, fields with
3799	// empty values are omitted from API requests. However, any field with
3800	// an empty value appearing in NullFields will be sent to the server as
3801	// null. It is an error if a field in this list has a non-empty value.
3802	// This may be used to include null fields in Patch requests.
3803	NullFields []string `json:"-"`
3804}
3805
3806func (s *GoogleCloudApigeeV1ListSharedFlowsResponse) MarshalJSON() ([]byte, error) {
3807	type NoMethod GoogleCloudApigeeV1ListSharedFlowsResponse
3808	raw := NoMethod(*s)
3809	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3810}
3811
3812// GoogleCloudApigeeV1Metadata: This message type encapsulates
3813// additional information about query execution
3814type GoogleCloudApigeeV1Metadata struct {
3815	// Errors: List of error messages as strings
3816	Errors []string `json:"errors,omitempty"`
3817
3818	// Notices: List of additional information such as data source, if
3819	// result was
3820	// truncated etc.
3821	// E.g
3822	// "notices": [
3823	//              "Source:Postgres",
3824	//              "PG Host:uappg0rw.e2e.apigeeks.net",
3825	//              "query served by:4b64601e-40de-4eb1-bfb9-eeee7ac929ed",
3826	//              "Table used: edge.api.uapgroup2.agg_api"
3827	//   ]
3828	Notices []string `json:"notices,omitempty"`
3829
3830	// ForceSendFields is a list of field names (e.g. "Errors") to
3831	// unconditionally include in API requests. By default, fields with
3832	// empty values are omitted from API requests. However, any non-pointer,
3833	// non-interface field appearing in ForceSendFields will be sent to the
3834	// server regardless of whether the field is empty or not. This may be
3835	// used to include empty fields in Patch requests.
3836	ForceSendFields []string `json:"-"`
3837
3838	// NullFields is a list of field names (e.g. "Errors") to include in API
3839	// requests with the JSON null value. By default, fields with empty
3840	// values are omitted from API requests. However, any field with an
3841	// empty value appearing in NullFields will be sent to the server as
3842	// null. It is an error if a field in this list has a non-empty value.
3843	// This may be used to include null fields in Patch requests.
3844	NullFields []string `json:"-"`
3845}
3846
3847func (s *GoogleCloudApigeeV1Metadata) MarshalJSON() ([]byte, error) {
3848	type NoMethod GoogleCloudApigeeV1Metadata
3849	raw := NoMethod(*s)
3850	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3851}
3852
3853// GoogleCloudApigeeV1Metric: This message type encapsulates the metric
3854// data point
3855// Example
3856// {
3857//    "name": "sum(message_count)",
3858//    "values" : [ {
3859//                   "timestamp": 1549004400000,
3860//                   "value": "39.0"
3861//                 },
3862//                 {
3863//                   "timestamp" : 1548997200000,
3864//                   "value" : "0.0"
3865//                 } ]
3866// }
3867// or
3868// {
3869//     "name": "sum(message_count)",
3870//     "values" : ["39.0"]
3871// }
3872type GoogleCloudApigeeV1Metric struct {
3873	// Name: This field contains the metric name
3874	Name string `json:"name,omitempty"`
3875
3876	// Values: List of metric values
3877	// Possible value format
3878	// "values":["39.0"] or
3879	// "values":[ { "value": "39.0", "timestamp": 1232434354} ]
3880	Values []interface{} `json:"values,omitempty"`
3881
3882	// ForceSendFields is a list of field names (e.g. "Name") to
3883	// unconditionally include in API requests. By default, fields with
3884	// empty values are omitted from API requests. However, any non-pointer,
3885	// non-interface field appearing in ForceSendFields will be sent to the
3886	// server regardless of whether the field is empty or not. This may be
3887	// used to include empty fields in Patch requests.
3888	ForceSendFields []string `json:"-"`
3889
3890	// NullFields is a list of field names (e.g. "Name") to include in API
3891	// requests with the JSON null value. By default, fields with empty
3892	// values are omitted from API requests. However, any field with an
3893	// empty value appearing in NullFields will be sent to the server as
3894	// null. It is an error if a field in this list has a non-empty value.
3895	// This may be used to include null fields in Patch requests.
3896	NullFields []string `json:"-"`
3897}
3898
3899func (s *GoogleCloudApigeeV1Metric) MarshalJSON() ([]byte, error) {
3900	type NoMethod GoogleCloudApigeeV1Metric
3901	raw := NoMethod(*s)
3902	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3903}
3904
3905// GoogleCloudApigeeV1OperationMetadata: Metadata describing an
3906// Operation.
3907type GoogleCloudApigeeV1OperationMetadata struct {
3908	// Possible values:
3909	//   "OPERATION_TYPE_UNSPECIFIED"
3910	//   "INSERT"
3911	//   "DELETE"
3912	OperationType string `json:"operationType,omitempty"`
3913
3914	// Possible values:
3915	//   "STATE_UNSPECIFIED"
3916	//   "NOT_STARTED"
3917	//   "IN_PROGRESS"
3918	//   "FINISHED"
3919	State string `json:"state,omitempty"`
3920
3921	// TargetResourceName: Name of the resource for which the operation is
3922	// operating on.
3923	TargetResourceName string `json:"targetResourceName,omitempty"`
3924
3925	// ForceSendFields is a list of field names (e.g. "OperationType") to
3926	// unconditionally include in API requests. By default, fields with
3927	// empty values are omitted from API requests. However, any non-pointer,
3928	// non-interface field appearing in ForceSendFields will be sent to the
3929	// server regardless of whether the field is empty or not. This may be
3930	// used to include empty fields in Patch requests.
3931	ForceSendFields []string `json:"-"`
3932
3933	// NullFields is a list of field names (e.g. "OperationType") to include
3934	// in API requests with the JSON null value. By default, fields with
3935	// empty values are omitted from API requests. However, any field with
3936	// an empty value appearing in NullFields will be sent to the server as
3937	// null. It is an error if a field in this list has a non-empty value.
3938	// This may be used to include null fields in Patch requests.
3939	NullFields []string `json:"-"`
3940}
3941
3942func (s *GoogleCloudApigeeV1OperationMetadata) MarshalJSON() ([]byte, error) {
3943	type NoMethod GoogleCloudApigeeV1OperationMetadata
3944	raw := NoMethod(*s)
3945	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3946}
3947
3948type GoogleCloudApigeeV1OptimizedStats struct {
3949	// Response: This field wraps the stats response for Js Optimized
3950	// Scenario
3951	// with a Response key.
3952	// E.g.
3953	// {
3954	//  "Response": {
3955	//      "TimeUnit": [],
3956	//      "metaData": {
3957	//          "errors": [],
3958	//          "notices": [
3959	//              "Source:Postgres",
3960	//              "Table used: edge.api.aaxgroup001.agg_api",
3961	//              "PG Host:ruappg08-ro.production.apigeeks.net",
3962	//              "query served by:80c4ebca-6a10-4a2e-8faf-c60c1ee306ca"
3963	//          ]
3964	//      },
3965	//      "resultTruncated": false,
3966	//      "stats": {
3967	//          "data": [
3968	//              {
3969	//                 "identifier": {
3970	//                     "names": [
3971	//                         "apiproxy"
3972	//                     ],
3973	//                     "values": [
3974	//                         "sirjee"
3975	//                     ]
3976	//                 },
3977	//                 "metric": [
3978	//                     {
3979	//                         "env": "prod",
3980	//                         "name": "sum(message_count)",
3981	//                         "values": [
3982	//                             36.0
3983	//                         ]
3984	//                     },
3985	//                     {
3986	//                         "env": "prod",
3987	//                         "name": "sum(is_error)",
3988	//                         "values": [
3989	//                             36.0
3990	//                         ]
3991	//                     }
3992	//                 ]
3993	//             }
3994	//          ]
3995	//      }
3996	//  }
3997	// }
3998	Response *GoogleCloudApigeeV1OptimizedStatsResponse `json:"Response,omitempty"`
3999
4000	// ServerResponse contains the HTTP response code and headers from the
4001	// server.
4002	googleapi.ServerResponse `json:"-"`
4003
4004	// ForceSendFields is a list of field names (e.g. "Response") to
4005	// unconditionally include in API requests. By default, fields with
4006	// empty values are omitted from API requests. However, any non-pointer,
4007	// non-interface field appearing in ForceSendFields will be sent to the
4008	// server regardless of whether the field is empty or not. This may be
4009	// used to include empty fields in Patch requests.
4010	ForceSendFields []string `json:"-"`
4011
4012	// NullFields is a list of field names (e.g. "Response") to include in
4013	// API requests with the JSON null value. By default, fields with empty
4014	// values are omitted from API requests. However, any field with an
4015	// empty value appearing in NullFields will be sent to the server as
4016	// null. It is an error if a field in this list has a non-empty value.
4017	// This may be used to include null fields in Patch requests.
4018	NullFields []string `json:"-"`
4019}
4020
4021func (s *GoogleCloudApigeeV1OptimizedStats) MarshalJSON() ([]byte, error) {
4022	type NoMethod GoogleCloudApigeeV1OptimizedStats
4023	raw := NoMethod(*s)
4024	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4025}
4026
4027type GoogleCloudApigeeV1OptimizedStatsNode struct {
4028	Data []interface{} `json:"data,omitempty"`
4029
4030	// ForceSendFields is a list of field names (e.g. "Data") to
4031	// unconditionally include in API requests. By default, fields with
4032	// empty values are omitted from API requests. However, any non-pointer,
4033	// non-interface field appearing in ForceSendFields will be sent to the
4034	// server regardless of whether the field is empty or not. This may be
4035	// used to include empty fields in Patch requests.
4036	ForceSendFields []string `json:"-"`
4037
4038	// NullFields is a list of field names (e.g. "Data") to include in API
4039	// requests with the JSON null value. By default, fields with empty
4040	// values are omitted from API requests. However, any field with an
4041	// empty value appearing in NullFields will be sent to the server as
4042	// null. It is an error if a field in this list has a non-empty value.
4043	// This may be used to include null fields in Patch requests.
4044	NullFields []string `json:"-"`
4045}
4046
4047func (s *GoogleCloudApigeeV1OptimizedStatsNode) MarshalJSON() ([]byte, error) {
4048	type NoMethod GoogleCloudApigeeV1OptimizedStatsNode
4049	raw := NoMethod(*s)
4050	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4051}
4052
4053// GoogleCloudApigeeV1OptimizedStatsResponse: This message type
4054// encapsulates a response format for Js Optimized Scenario
4055type GoogleCloudApigeeV1OptimizedStatsResponse struct {
4056	// TimeUnit: This field contains a list of time unit values. Time unit
4057	// refers to
4058	// an epoch timestamp value.
4059	TimeUnit googleapi.Int64s `json:"TimeUnit,omitempty"`
4060
4061	// MetaData: This field contains metadata information about the query
4062	// executed
4063	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
4064
4065	// ResultTruncated: This ia a boolean field to indicate if the results
4066	// were truncated
4067	// based on the limit parameter.
4068	ResultTruncated bool `json:"resultTruncated,omitempty"`
4069
4070	// Stats: This field contains a stats results
4071	Stats *GoogleCloudApigeeV1OptimizedStatsNode `json:"stats,omitempty"`
4072
4073	// ForceSendFields is a list of field names (e.g. "TimeUnit") to
4074	// unconditionally include in API requests. By default, fields with
4075	// empty values are omitted from API requests. However, any non-pointer,
4076	// non-interface field appearing in ForceSendFields will be sent to the
4077	// server regardless of whether the field is empty or not. This may be
4078	// used to include empty fields in Patch requests.
4079	ForceSendFields []string `json:"-"`
4080
4081	// NullFields is a list of field names (e.g. "TimeUnit") to include in
4082	// API requests with the JSON null value. By default, fields with empty
4083	// values are omitted from API requests. However, any field with an
4084	// empty value appearing in NullFields will be sent to the server as
4085	// null. It is an error if a field in this list has a non-empty value.
4086	// This may be used to include null fields in Patch requests.
4087	NullFields []string `json:"-"`
4088}
4089
4090func (s *GoogleCloudApigeeV1OptimizedStatsResponse) MarshalJSON() ([]byte, error) {
4091	type NoMethod GoogleCloudApigeeV1OptimizedStatsResponse
4092	raw := NoMethod(*s)
4093	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4094}
4095
4096type GoogleCloudApigeeV1Organization struct {
4097	// AnalyticsRegion: Output only. The supported GCP Region where
4098	// analytics data is stored.
4099	AnalyticsRegion string `json:"analyticsRegion,omitempty"`
4100
4101	Attributes []string `json:"attributes,omitempty"`
4102
4103	// CreatedAt: Timestamp when this Organization was created.
4104	CreatedAt int64 `json:"createdAt,omitempty,string"`
4105
4106	CustomerName string `json:"customerName,omitempty"`
4107
4108	Description string `json:"description,omitempty"`
4109
4110	DisplayName string `json:"displayName,omitempty"`
4111
4112	// Environments: List of environments within this Organization.
4113	Environments []string `json:"environments,omitempty"`
4114
4115	// LastModifiedAt: Timestamp when this Organization was last modified.
4116	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
4117
4118	// Name: Unique name of this Organization.
4119	Name string `json:"name,omitempty"`
4120
4121	// Properties: This Organization's properties.
4122	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
4123
4124	// Type: The organization's Type.
4125	//
4126	// Possible values:
4127	//   "TYPE_UNSPECIFIED"
4128	//   "TRIAL"
4129	//   "PAID"
4130	//   "INTERNAL"
4131	Type string `json:"type,omitempty"`
4132
4133	// ServerResponse contains the HTTP response code and headers from the
4134	// server.
4135	googleapi.ServerResponse `json:"-"`
4136
4137	// ForceSendFields is a list of field names (e.g. "AnalyticsRegion") to
4138	// unconditionally include in API requests. By default, fields with
4139	// empty values are omitted from API requests. However, any non-pointer,
4140	// non-interface field appearing in ForceSendFields will be sent to the
4141	// server regardless of whether the field is empty or not. This may be
4142	// used to include empty fields in Patch requests.
4143	ForceSendFields []string `json:"-"`
4144
4145	// NullFields is a list of field names (e.g. "AnalyticsRegion") to
4146	// include in API requests with the JSON null value. By default, fields
4147	// with empty values are omitted from API requests. However, any field
4148	// with an empty value appearing in NullFields will be sent to the
4149	// server as null. It is an error if a field in this list has a
4150	// non-empty value. This may be used to include null fields in Patch
4151	// requests.
4152	NullFields []string `json:"-"`
4153}
4154
4155func (s *GoogleCloudApigeeV1Organization) MarshalJSON() ([]byte, error) {
4156	type NoMethod GoogleCloudApigeeV1Organization
4157	raw := NoMethod(*s)
4158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4159}
4160
4161type GoogleCloudApigeeV1OrganizationProjectMapping struct {
4162	// Organization: String indicating the Apigee organization.
4163	Organization string `json:"organization,omitempty"`
4164
4165	// ProjectIds: List of Projects that the organization has resources in.
4166	ProjectIds []string `json:"projectIds,omitempty"`
4167
4168	// ForceSendFields is a list of field names (e.g. "Organization") to
4169	// unconditionally include in API requests. By default, fields with
4170	// empty values are omitted from API requests. However, any non-pointer,
4171	// non-interface field appearing in ForceSendFields will be sent to the
4172	// server regardless of whether the field is empty or not. This may be
4173	// used to include empty fields in Patch requests.
4174	ForceSendFields []string `json:"-"`
4175
4176	// NullFields is a list of field names (e.g. "Organization") to include
4177	// in API requests with the JSON null value. By default, fields with
4178	// empty values are omitted from API requests. However, any field with
4179	// an empty value appearing in NullFields will be sent to the server as
4180	// null. It is an error if a field in this list has a non-empty value.
4181	// This may be used to include null fields in Patch requests.
4182	NullFields []string `json:"-"`
4183}
4184
4185func (s *GoogleCloudApigeeV1OrganizationProjectMapping) MarshalJSON() ([]byte, error) {
4186	type NoMethod GoogleCloudApigeeV1OrganizationProjectMapping
4187	raw := NoMethod(*s)
4188	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4189}
4190
4191type GoogleCloudApigeeV1PodStatus struct {
4192	// AppVersion: Version of the application running in the pod.
4193	AppVersion string `json:"appVersion,omitempty"`
4194
4195	// DeploymentStatus: Status of the deployment. Valid values
4196	// include:
4197	// - `deployed`: Successful.
4198	// - `error` : Failed.
4199	// - `pending` : Pod has not yet reported on the deployment.
4200	DeploymentStatus string `json:"deploymentStatus,omitempty"`
4201
4202	// DeploymentStatusTime: Time the deployment status was reported in
4203	// milliseconds since epoch.
4204	DeploymentStatusTime int64 `json:"deploymentStatusTime,omitempty,string"`
4205
4206	// DeploymentTime: Time the proxy was deployed in milliseconds since
4207	// epoch.
4208	DeploymentTime int64 `json:"deploymentTime,omitempty,string"`
4209
4210	// PodName: Name of the pod which is reporting the status.
4211	PodName string `json:"podName,omitempty"`
4212
4213	// PodStatus: Overall status of the pod (not this specific deployment).
4214	// Valid values
4215	// include:
4216	// - `active`: Up to date.
4217	// - `stale` : Recently out of date.
4218	//
4219	// Pods that have not reported status in a
4220	// long time are excluded from the output.
4221	PodStatus string `json:"podStatus,omitempty"`
4222
4223	// PodStatusTime: Time the pod status was reported in milliseconds since
4224	// epoch.
4225	PodStatusTime int64 `json:"podStatusTime,omitempty,string"`
4226
4227	// StatusCode: Code associated with the deployment status.
4228	StatusCode string `json:"statusCode,omitempty"`
4229
4230	// StatusCodeDetails: Human-readable message associated with the status
4231	// code.
4232	StatusCodeDetails string `json:"statusCodeDetails,omitempty"`
4233
4234	// ForceSendFields is a list of field names (e.g. "AppVersion") to
4235	// unconditionally include in API requests. By default, fields with
4236	// empty values are omitted from API requests. However, any non-pointer,
4237	// non-interface field appearing in ForceSendFields will be sent to the
4238	// server regardless of whether the field is empty or not. This may be
4239	// used to include empty fields in Patch requests.
4240	ForceSendFields []string `json:"-"`
4241
4242	// NullFields is a list of field names (e.g. "AppVersion") to include in
4243	// API requests with the JSON null value. By default, fields with empty
4244	// values are omitted from API requests. However, any field with an
4245	// empty value appearing in NullFields will be sent to the server as
4246	// null. It is an error if a field in this list has a non-empty value.
4247	// This may be used to include null fields in Patch requests.
4248	NullFields []string `json:"-"`
4249}
4250
4251func (s *GoogleCloudApigeeV1PodStatus) MarshalJSON() ([]byte, error) {
4252	type NoMethod GoogleCloudApigeeV1PodStatus
4253	raw := NoMethod(*s)
4254	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4255}
4256
4257// GoogleCloudApigeeV1Point: Point is a group of information collected
4258// by runtime plane at critical points
4259// of the message flow of the processed API request.
4260// This is a list of supported point IDs, categorized to three major
4261// buckets.
4262// For each category, debug points that we are currently supporting are
4263// listed
4264// below:
4265// - Flow status debug points:
4266//     StateChange
4267//     FlowInfo
4268//     Condition
4269//     Execution
4270//     DebugMask
4271//     Error
4272// - Flow control debug points:
4273//     FlowCallout
4274//     Paused
4275//     Resumed
4276//     FlowReturn
4277//     BreakFlow
4278//     Error
4279// - Runtime debug points:
4280//     ScriptExecutor
4281//     FlowCalloutStepDefinition
4282//     CustomTarget
4283//     StepDefinition
4284//     Oauth2ServicePoint
4285//     RaiseFault
4286//     NodeJS
4287//
4288// The detail information of the given debug point is stored in a list
4289// of
4290// results.
4291type GoogleCloudApigeeV1Point struct {
4292	// Id: Name of a step in the transaction.
4293	Id string `json:"id,omitempty"`
4294
4295	// Results: List of results extracted from a given debug point.
4296	Results []*GoogleCloudApigeeV1Result `json:"results,omitempty"`
4297
4298	// ForceSendFields is a list of field names (e.g. "Id") to
4299	// unconditionally include in API requests. By default, fields with
4300	// empty values are omitted from API requests. However, any non-pointer,
4301	// non-interface field appearing in ForceSendFields will be sent to the
4302	// server regardless of whether the field is empty or not. This may be
4303	// used to include empty fields in Patch requests.
4304	ForceSendFields []string `json:"-"`
4305
4306	// NullFields is a list of field names (e.g. "Id") to include in API
4307	// requests with the JSON null value. By default, fields with empty
4308	// values are omitted from API requests. However, any field with an
4309	// empty value appearing in NullFields will be sent to the server as
4310	// null. It is an error if a field in this list has a non-empty value.
4311	// This may be used to include null fields in Patch requests.
4312	NullFields []string `json:"-"`
4313}
4314
4315func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) {
4316	type NoMethod GoogleCloudApigeeV1Point
4317	raw := NoMethod(*s)
4318	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4319}
4320
4321// GoogleCloudApigeeV1Properties: Message for compatibility with legacy
4322// Edge specification for Java Properties
4323// object in JSON.
4324type GoogleCloudApigeeV1Properties struct {
4325	// Property: List of all properties in the object
4326	Property []*GoogleCloudApigeeV1Property `json:"property,omitempty"`
4327
4328	// ForceSendFields is a list of field names (e.g. "Property") to
4329	// unconditionally include in API requests. By default, fields with
4330	// empty values are omitted from API requests. However, any non-pointer,
4331	// non-interface field appearing in ForceSendFields will be sent to the
4332	// server regardless of whether the field is empty or not. This may be
4333	// used to include empty fields in Patch requests.
4334	ForceSendFields []string `json:"-"`
4335
4336	// NullFields is a list of field names (e.g. "Property") to include in
4337	// API requests with the JSON null value. By default, fields with empty
4338	// values are omitted from API requests. However, any field with an
4339	// empty value appearing in NullFields will be sent to the server as
4340	// null. It is an error if a field in this list has a non-empty value.
4341	// This may be used to include null fields in Patch requests.
4342	NullFields []string `json:"-"`
4343}
4344
4345func (s *GoogleCloudApigeeV1Properties) MarshalJSON() ([]byte, error) {
4346	type NoMethod GoogleCloudApigeeV1Properties
4347	raw := NoMethod(*s)
4348	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4349}
4350
4351// GoogleCloudApigeeV1Property: A single property entry in the
4352// Properties message.
4353type GoogleCloudApigeeV1Property struct {
4354	// Name: The property key
4355	Name string `json:"name,omitempty"`
4356
4357	// Value: The property value
4358	Value string `json:"value,omitempty"`
4359
4360	// ForceSendFields is a list of field names (e.g. "Name") to
4361	// unconditionally include in API requests. By default, fields with
4362	// empty values are omitted from API requests. However, any non-pointer,
4363	// non-interface field appearing in ForceSendFields will be sent to the
4364	// server regardless of whether the field is empty or not. This may be
4365	// used to include empty fields in Patch requests.
4366	ForceSendFields []string `json:"-"`
4367
4368	// NullFields is a list of field names (e.g. "Name") to include in API
4369	// requests with the JSON null value. By default, fields with empty
4370	// values are omitted from API requests. However, any field with an
4371	// empty value appearing in NullFields will be sent to the server as
4372	// null. It is an error if a field in this list has a non-empty value.
4373	// This may be used to include null fields in Patch requests.
4374	NullFields []string `json:"-"`
4375}
4376
4377func (s *GoogleCloudApigeeV1Property) MarshalJSON() ([]byte, error) {
4378	type NoMethod GoogleCloudApigeeV1Property
4379	raw := NoMethod(*s)
4380	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4381}
4382
4383type GoogleCloudApigeeV1Query struct {
4384	// CsvDelimiter: Delimiter used in the CSV file, if `outputFormat` is
4385	// set
4386	// to `csv`. Defaults to the `,` (comma) character.
4387	// Supported delimiter characters include comma (`,`), pipe (`|`),
4388	// and tab (`\t`).
4389	CsvDelimiter string `json:"csvDelimiter,omitempty"`
4390
4391	// Dimensions: A list of
4392	// dimensions
4393	// https://docs.apigee.com/api-platform/analytics/analytics-re
4394	// ference#dimensions
4395	Dimensions []string `json:"dimensions,omitempty"`
4396
4397	// Filter: Boolean expression that can be used to filter data.
4398	// Filter expressions can be combined using AND/OR terms and should be
4399	// fully
4400	// parenthesized to avoid ambiguity. See Analytics metrics, dimensions,
4401	// and
4402	// filters
4403	// reference
4404	// https://docs.apigee.com/api-platform/analytics/analytics-ref
4405	// erence
4406	// for more information on the fields available to filter
4407	// on. For more information on the tokens that you use to build
4408	// filter
4409	// expressions, see Filter expression
4410	// syntax.
4411	// https://docs.apigee.com/api-platform/analytics/asynch-reports-
4412	// api#filter-expression-syntax
4413	Filter string `json:"filter,omitempty"`
4414
4415	// GroupByTimeUnit: Time unit used to group the result set.
4416	// Valid values include: second, minute, hour, day, week, or month.
4417	// If a query includes groupByTimeUnit, then the result is an
4418	// aggregation
4419	// based on the specified time unit and the resultant timestamp does
4420	// not
4421	// include milliseconds precision.
4422	// If a query omits groupByTimeUnit, then the resultant timestamp
4423	// includes
4424	// milliseconds precision.
4425	GroupByTimeUnit string `json:"groupByTimeUnit,omitempty"`
4426
4427	// Limit: Maximum number of rows that can be returned in the result.
4428	Limit int64 `json:"limit,omitempty"`
4429
4430	// Metrics: A list of Metrics
4431	Metrics []*GoogleCloudApigeeV1QueryMetric `json:"metrics,omitempty"`
4432
4433	// OutputFormat: Valid values include: `csv` or `json`. Defaults to
4434	// `json`.
4435	// Note: Configure the delimiter for CSV output using the
4436	// csvDelimiter
4437	// property.
4438	OutputFormat string `json:"outputFormat,omitempty"`
4439
4440	// ReportDefinitionId: Asynchronous Report ID.
4441	ReportDefinitionId string `json:"reportDefinitionId,omitempty"`
4442
4443	// TimeRange: Required. Time range for the query.
4444	// Can use the following predefined strings to specify the time range:
4445	//   `last60minutes`
4446	//   `last24hours`
4447	//   `last7days`
4448	// Or, specify the timeRange as a structure describing start and
4449	// end
4450	// timestamps in the ISO format: yyyy-mm-ddThh:mm:ssZ.
4451	//
4452	// Example:
4453	//   "timeRange": {
4454	//     "start": "2018-07-29T00:13:00Z",
4455	//     "end": "2018-08-01T00:18:00Z"
4456	//   }
4457	TimeRange interface{} `json:"timeRange,omitempty"`
4458
4459	// ForceSendFields is a list of field names (e.g. "CsvDelimiter") to
4460	// unconditionally include in API requests. By default, fields with
4461	// empty values are omitted from API requests. However, any non-pointer,
4462	// non-interface field appearing in ForceSendFields will be sent to the
4463	// server regardless of whether the field is empty or not. This may be
4464	// used to include empty fields in Patch requests.
4465	ForceSendFields []string `json:"-"`
4466
4467	// NullFields is a list of field names (e.g. "CsvDelimiter") to include
4468	// in API requests with the JSON null value. By default, fields with
4469	// empty values are omitted from API requests. However, any field with
4470	// an empty value appearing in NullFields will be sent to the server as
4471	// null. It is an error if a field in this list has a non-empty value.
4472	// This may be used to include null fields in Patch requests.
4473	NullFields []string `json:"-"`
4474}
4475
4476func (s *GoogleCloudApigeeV1Query) MarshalJSON() ([]byte, error) {
4477	type NoMethod GoogleCloudApigeeV1Query
4478	raw := NoMethod(*s)
4479	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4480}
4481
4482type GoogleCloudApigeeV1QueryMetadata struct {
4483	// Dimensions: Dimensions of the AsyncQuery.
4484	Dimensions []string `json:"dimensions,omitempty"`
4485
4486	// EndTimestamp: End timestamp of the query range.
4487	EndTimestamp string `json:"endTimestamp,omitempty"`
4488
4489	// Metrics: Metrics of the AsyncQuery.
4490	//
4491	// Example: ["name:message_count,func:sum,alias:sum_message_count"]
4492	Metrics []string `json:"metrics,omitempty"`
4493
4494	// OutputFormat: Output format.
4495	OutputFormat string `json:"outputFormat,omitempty"`
4496
4497	// StartTimestamp: Start timestamp of the query range.
4498	StartTimestamp string `json:"startTimestamp,omitempty"`
4499
4500	// TimeUnit: Query GroupBy time unit.
4501	TimeUnit string `json:"timeUnit,omitempty"`
4502
4503	// ForceSendFields is a list of field names (e.g. "Dimensions") to
4504	// unconditionally include in API requests. By default, fields with
4505	// empty values are omitted from API requests. However, any non-pointer,
4506	// non-interface field appearing in ForceSendFields will be sent to the
4507	// server regardless of whether the field is empty or not. This may be
4508	// used to include empty fields in Patch requests.
4509	ForceSendFields []string `json:"-"`
4510
4511	// NullFields is a list of field names (e.g. "Dimensions") to include in
4512	// API requests with the JSON null value. By default, fields with empty
4513	// values are omitted from API requests. However, any field with an
4514	// empty value appearing in NullFields will be sent to the server as
4515	// null. It is an error if a field in this list has a non-empty value.
4516	// This may be used to include null fields in Patch requests.
4517	NullFields []string `json:"-"`
4518}
4519
4520func (s *GoogleCloudApigeeV1QueryMetadata) MarshalJSON() ([]byte, error) {
4521	type NoMethod GoogleCloudApigeeV1QueryMetadata
4522	raw := NoMethod(*s)
4523	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4524}
4525
4526// GoogleCloudApigeeV1QueryMetric: More info about
4527// Metric:
4528// https://docs.apigee.com/api-platform/analytics/analytics-refer
4529// ence#metrics
4530type GoogleCloudApigeeV1QueryMetric struct {
4531	// Alias: Alias for the metric. Alias will be used to replace metric
4532	// name
4533	// in query results.
4534	Alias string `json:"alias,omitempty"`
4535
4536	// Function: Aggregation function: avg, min, max, or sum
4537	Function string `json:"function,omitempty"`
4538
4539	// Name: Required. Metric name
4540	Name string `json:"name,omitempty"`
4541
4542	// Operator: One of `+`, `-`, `/`, `%`, `*`
4543	Operator string `json:"operator,omitempty"`
4544
4545	// Value: Operand value should be provided when operator is set.
4546	Value string `json:"value,omitempty"`
4547
4548	// ForceSendFields is a list of field names (e.g. "Alias") to
4549	// unconditionally include in API requests. By default, fields with
4550	// empty values are omitted from API requests. However, any non-pointer,
4551	// non-interface field appearing in ForceSendFields will be sent to the
4552	// server regardless of whether the field is empty or not. This may be
4553	// used to include empty fields in Patch requests.
4554	ForceSendFields []string `json:"-"`
4555
4556	// NullFields is a list of field names (e.g. "Alias") to include in API
4557	// requests with the JSON null value. By default, fields with empty
4558	// values are omitted from API requests. However, any field with an
4559	// empty value appearing in NullFields will be sent to the server as
4560	// null. It is an error if a field in this list has a non-empty value.
4561	// This may be used to include null fields in Patch requests.
4562	NullFields []string `json:"-"`
4563}
4564
4565func (s *GoogleCloudApigeeV1QueryMetric) MarshalJSON() ([]byte, error) {
4566	type NoMethod GoogleCloudApigeeV1QueryMetric
4567	raw := NoMethod(*s)
4568	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4569}
4570
4571// GoogleCloudApigeeV1Reference: A Reference configuration. References
4572// must refer to a keystore
4573// that also exists in the parent environment.
4574type GoogleCloudApigeeV1Reference struct {
4575	// Description: Optional. A human-readable description of this
4576	// reference.
4577	Description string `json:"description,omitempty"`
4578
4579	// Name: Required. The resource id of this reference. Values must match
4580	// the
4581	// regular expression [\w\s\-.]+.
4582	Name string `json:"name,omitempty"`
4583
4584	// Refers: Required. The id of the resource to which this reference
4585	// refers.
4586	// Must be the id of a resource that exists in the parent environment
4587	// and is
4588	// of the given resource_type.
4589	Refers string `json:"refers,omitempty"`
4590
4591	// ResourceType: The type of resource referred to by this reference.
4592	// Valid values
4593	// are 'KeyStore' or 'TrustStore'.
4594	ResourceType string `json:"resourceType,omitempty"`
4595
4596	// ServerResponse contains the HTTP response code and headers from the
4597	// server.
4598	googleapi.ServerResponse `json:"-"`
4599
4600	// ForceSendFields is a list of field names (e.g. "Description") to
4601	// unconditionally include in API requests. By default, fields with
4602	// empty values are omitted from API requests. However, any non-pointer,
4603	// non-interface field appearing in ForceSendFields will be sent to the
4604	// server regardless of whether the field is empty or not. This may be
4605	// used to include empty fields in Patch requests.
4606	ForceSendFields []string `json:"-"`
4607
4608	// NullFields is a list of field names (e.g. "Description") to include
4609	// in API requests with the JSON null value. By default, fields with
4610	// empty values are omitted from API requests. However, any field with
4611	// an empty value appearing in NullFields will be sent to the server as
4612	// null. It is an error if a field in this list has a non-empty value.
4613	// This may be used to include null fields in Patch requests.
4614	NullFields []string `json:"-"`
4615}
4616
4617func (s *GoogleCloudApigeeV1Reference) MarshalJSON() ([]byte, error) {
4618	type NoMethod GoogleCloudApigeeV1Reference
4619	raw := NoMethod(*s)
4620	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4621}
4622
4623type GoogleCloudApigeeV1ReferenceConfig struct {
4624	// Name: The name of the reference. Must be of the
4625	// form
4626	// 'organizations/{org}/environments/{env}/references/{ref}'.
4627	Name string `json:"name,omitempty"`
4628
4629	// ResourceName: The name of the referred resource. Only references to
4630	// keystore resources
4631	// are supported. Must be of the
4632	// form
4633	// 'organizations/{org}/environments/{env}/keystores/{ks}'.
4634	ResourceName string `json:"resourceName,omitempty"`
4635
4636	// ForceSendFields is a list of field names (e.g. "Name") to
4637	// unconditionally include in API requests. By default, fields with
4638	// empty values are omitted from API requests. However, any non-pointer,
4639	// non-interface field appearing in ForceSendFields will be sent to the
4640	// server regardless of whether the field is empty or not. This may be
4641	// used to include empty fields in Patch requests.
4642	ForceSendFields []string `json:"-"`
4643
4644	// NullFields is a list of field names (e.g. "Name") to include in API
4645	// requests with the JSON null value. By default, fields with empty
4646	// values are omitted from API requests. However, any field with an
4647	// empty value appearing in NullFields will be sent to the server as
4648	// null. It is an error if a field in this list has a non-empty value.
4649	// This may be used to include null fields in Patch requests.
4650	NullFields []string `json:"-"`
4651}
4652
4653func (s *GoogleCloudApigeeV1ReferenceConfig) MarshalJSON() ([]byte, error) {
4654	type NoMethod GoogleCloudApigeeV1ReferenceConfig
4655	raw := NoMethod(*s)
4656	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4657}
4658
4659type GoogleCloudApigeeV1ReportProperty struct {
4660	// Property: name of the property
4661	Property string `json:"property,omitempty"`
4662
4663	// Value: property values
4664	Value []*GoogleCloudApigeeV1Attribute `json:"value,omitempty"`
4665
4666	// ForceSendFields is a list of field names (e.g. "Property") to
4667	// unconditionally include in API requests. By default, fields with
4668	// empty values are omitted from API requests. However, any non-pointer,
4669	// non-interface field appearing in ForceSendFields will be sent to the
4670	// server regardless of whether the field is empty or not. This may be
4671	// used to include empty fields in Patch requests.
4672	ForceSendFields []string `json:"-"`
4673
4674	// NullFields is a list of field names (e.g. "Property") to include in
4675	// API requests with the JSON null value. By default, fields with empty
4676	// values are omitted from API requests. However, any field with an
4677	// empty value appearing in NullFields will be sent to the server as
4678	// null. It is an error if a field in this list has a non-empty value.
4679	// This may be used to include null fields in Patch requests.
4680	NullFields []string `json:"-"`
4681}
4682
4683func (s *GoogleCloudApigeeV1ReportProperty) MarshalJSON() ([]byte, error) {
4684	type NoMethod GoogleCloudApigeeV1ReportProperty
4685	raw := NoMethod(*s)
4686	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4687}
4688
4689type GoogleCloudApigeeV1ResourceConfig struct {
4690	// Location: The location of the resource as a URI.
4691	Location string `json:"location,omitempty"`
4692
4693	// Name: The resource name. Only environment-scoped resource files are
4694	// supported.
4695	// Must be of the
4696	// form
4697	// 'organizations/{org}/environments/{env}/resourcefiles/{type}/{fil
4698	// e}/revisions/{rev}'.
4699	Name string `json:"name,omitempty"`
4700
4701	// ForceSendFields is a list of field names (e.g. "Location") to
4702	// unconditionally include in API requests. By default, fields with
4703	// empty values are omitted from API requests. However, any non-pointer,
4704	// non-interface field appearing in ForceSendFields will be sent to the
4705	// server regardless of whether the field is empty or not. This may be
4706	// used to include empty fields in Patch requests.
4707	ForceSendFields []string `json:"-"`
4708
4709	// NullFields is a list of field names (e.g. "Location") to include in
4710	// API requests with the JSON null value. By default, fields with empty
4711	// values are omitted from API requests. However, any field with an
4712	// empty value appearing in NullFields will be sent to the server as
4713	// null. It is an error if a field in this list has a non-empty value.
4714	// This may be used to include null fields in Patch requests.
4715	NullFields []string `json:"-"`
4716}
4717
4718func (s *GoogleCloudApigeeV1ResourceConfig) MarshalJSON() ([]byte, error) {
4719	type NoMethod GoogleCloudApigeeV1ResourceConfig
4720	raw := NoMethod(*s)
4721	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4722}
4723
4724// GoogleCloudApigeeV1ResourceFile: Metadata about a resource file.
4725type GoogleCloudApigeeV1ResourceFile struct {
4726	// Name: The id of the resource file.
4727	Name string `json:"name,omitempty"`
4728
4729	// Type: The resource file type. Must be `js`, `jsc`,
4730	// `java`,
4731	// `properties`, `py`, `xsl`, `wsdl`, or `xsd`
4732	Type string `json:"type,omitempty"`
4733
4734	// ServerResponse contains the HTTP response code and headers from the
4735	// server.
4736	googleapi.ServerResponse `json:"-"`
4737
4738	// ForceSendFields is a list of field names (e.g. "Name") to
4739	// unconditionally include in API requests. By default, fields with
4740	// empty values are omitted from API requests. However, any non-pointer,
4741	// non-interface field appearing in ForceSendFields will be sent to the
4742	// server regardless of whether the field is empty or not. This may be
4743	// used to include empty fields in Patch requests.
4744	ForceSendFields []string `json:"-"`
4745
4746	// NullFields is a list of field names (e.g. "Name") to include in API
4747	// requests with the JSON null value. By default, fields with empty
4748	// values are omitted from API requests. However, any field with an
4749	// empty value appearing in NullFields will be sent to the server as
4750	// null. It is an error if a field in this list has a non-empty value.
4751	// This may be used to include null fields in Patch requests.
4752	NullFields []string `json:"-"`
4753}
4754
4755func (s *GoogleCloudApigeeV1ResourceFile) MarshalJSON() ([]byte, error) {
4756	type NoMethod GoogleCloudApigeeV1ResourceFile
4757	raw := NoMethod(*s)
4758	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4759}
4760
4761// GoogleCloudApigeeV1ResourceFiles: List of resource files.
4762type GoogleCloudApigeeV1ResourceFiles struct {
4763	// ResourceFile: List of resource files.
4764	ResourceFile []*GoogleCloudApigeeV1ResourceFile `json:"resourceFile,omitempty"`
4765
4766	// ForceSendFields is a list of field names (e.g. "ResourceFile") to
4767	// unconditionally include in API requests. By default, fields with
4768	// empty values are omitted from API requests. However, any non-pointer,
4769	// non-interface field appearing in ForceSendFields will be sent to the
4770	// server regardless of whether the field is empty or not. This may be
4771	// used to include empty fields in Patch requests.
4772	ForceSendFields []string `json:"-"`
4773
4774	// NullFields is a list of field names (e.g. "ResourceFile") to include
4775	// in API requests with the JSON null value. By default, fields with
4776	// empty values are omitted from API requests. However, any field with
4777	// an empty value appearing in NullFields will be sent to the server as
4778	// null. It is an error if a field in this list has a non-empty value.
4779	// This may be used to include null fields in Patch requests.
4780	NullFields []string `json:"-"`
4781}
4782
4783func (s *GoogleCloudApigeeV1ResourceFiles) MarshalJSON() ([]byte, error) {
4784	type NoMethod GoogleCloudApigeeV1ResourceFiles
4785	raw := NoMethod(*s)
4786	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4787}
4788
4789// GoogleCloudApigeeV1Result: Result is short for "action result", could
4790// be different types identified by
4791// "action_result" field. Supported types:
4792// 1. DebugInfo : generic debug info collected by runtime recorded as a
4793// list of
4794// properties. For example, the contents could be virtual host info,
4795// state
4796// change result, or execution metadata. Required fields : properties,
4797// timestamp
4798//
4799// 2. RequestMessage: information of a http request. Contains headers,
4800// request
4801// URI and http methods type.Required fields : headers, uri, verb
4802//
4803// 3. ResponseMessage: information of a http response. Contains headers,
4804// reason
4805// phrase and http status code. Required fields : headers,
4806// reasonPhrase,
4807// statusCode
4808//
4809// 4. ErrorMessage: information of a http error message. Contains detail
4810// error
4811// message, reason phrase and status code. Required fields : content,
4812// headers,
4813// reasonPhrase, statusCode
4814//
4815// 5. VariableAccess: a list of variable access actions, can be Get, Set
4816// and
4817// Remove. Required fields : accessList
4818type GoogleCloudApigeeV1Result struct {
4819	// ActionResult: Type of the action result. Can be one of the five:
4820	// DebugInfo,
4821	// RequestMessage, ResponseMessage, ErrorMessage, VariableAccess
4822	ActionResult string `json:"ActionResult,omitempty"`
4823
4824	// AccessList: A list of variable access actions agaist the api
4825	// proxy.
4826	// Supported values: Get, Set, Remove.
4827	AccessList []*GoogleCloudApigeeV1Access `json:"accessList,omitempty"`
4828
4829	// Content: Error message content. for example,
4830	// "content" : "{\"fault\":{\"faultstring\":\"API
4831	// timed
4832	// out\",\"detail\":{\"errorcode\":\"flow.APITimedOut\"}}}"
4833	Content string `json:"content,omitempty"`
4834
4835	// Headers: A list of HTTP headers.
4836	// for example,
4837	// '"headers" : [ {
4838	//   "name" : "Content-Length",
4839	//   "value" : "83"
4840	// }, {
4841	//   "name" : "Content-Type",
4842	//   "value" : "application/json"
4843	// } ]'
4844	Headers []*GoogleCloudApigeeV1Property `json:"headers,omitempty"`
4845
4846	// Properties: Name value pairs used for DebugInfo ActionResult.
4847	Properties *GoogleCloudApigeeV1Properties `json:"properties,omitempty"`
4848
4849	// ReasonPhrase: HTTP response phrase
4850	ReasonPhrase string `json:"reasonPhrase,omitempty"`
4851
4852	// StatusCode: HTTP response code
4853	StatusCode string `json:"statusCode,omitempty"`
4854
4855	// Timestamp: Timestamp of when the result is recorded. Its format is
4856	// dd-mm-yy
4857	// hh:mm:ss:xxx. For example, "timestamp" : "12-08-19 00:31:59:960"
4858	Timestamp string `json:"timestamp,omitempty"`
4859
4860	// URI: The relative path of the api proxy.
4861	// for example, "uRI" : "/iloveapis"
4862	URI string `json:"uRI,omitempty"`
4863
4864	// Verb: HTTP method verb
4865	Verb string `json:"verb,omitempty"`
4866
4867	// ForceSendFields is a list of field names (e.g. "ActionResult") to
4868	// unconditionally include in API requests. By default, fields with
4869	// empty values are omitted from API requests. However, any non-pointer,
4870	// non-interface field appearing in ForceSendFields will be sent to the
4871	// server regardless of whether the field is empty or not. This may be
4872	// used to include empty fields in Patch requests.
4873	ForceSendFields []string `json:"-"`
4874
4875	// NullFields is a list of field names (e.g. "ActionResult") to include
4876	// in API requests with the JSON null value. By default, fields with
4877	// empty values are omitted from API requests. However, any field with
4878	// an empty value appearing in NullFields will be sent to the server as
4879	// null. It is an error if a field in this list has a non-empty value.
4880	// This may be used to include null fields in Patch requests.
4881	NullFields []string `json:"-"`
4882}
4883
4884func (s *GoogleCloudApigeeV1Result) MarshalJSON() ([]byte, error) {
4885	type NoMethod GoogleCloudApigeeV1Result
4886	raw := NoMethod(*s)
4887	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4888}
4889
4890// GoogleCloudApigeeV1Schema: Response for Schema call
4891type GoogleCloudApigeeV1Schema struct {
4892	// Dimensions: List of schema fiels grouped as dimensions.
4893	Dimensions []*GoogleCloudApigeeV1SchemaSchemaElement `json:"dimensions,omitempty"`
4894
4895	// Meta: Additional metadata associated with schema. This is
4896	// a legacy field and usually consists of an empty array of strings.
4897	Meta []string `json:"meta,omitempty"`
4898
4899	// Metrics: List of schema fields grouped as dimensions. These are
4900	// fields
4901	// that can be used with an aggregate function such as sum, avg, min,
4902	// max.
4903	Metrics []*GoogleCloudApigeeV1SchemaSchemaElement `json:"metrics,omitempty"`
4904
4905	// ServerResponse contains the HTTP response code and headers from the
4906	// server.
4907	googleapi.ServerResponse `json:"-"`
4908
4909	// ForceSendFields is a list of field names (e.g. "Dimensions") to
4910	// unconditionally include in API requests. By default, fields with
4911	// empty values are omitted from API requests. However, any non-pointer,
4912	// non-interface field appearing in ForceSendFields will be sent to the
4913	// server regardless of whether the field is empty or not. This may be
4914	// used to include empty fields in Patch requests.
4915	ForceSendFields []string `json:"-"`
4916
4917	// NullFields is a list of field names (e.g. "Dimensions") to include in
4918	// API requests with the JSON null value. By default, fields with empty
4919	// values are omitted from API requests. However, any field with an
4920	// empty value appearing in NullFields will be sent to the server as
4921	// null. It is an error if a field in this list has a non-empty value.
4922	// This may be used to include null fields in Patch requests.
4923	NullFields []string `json:"-"`
4924}
4925
4926func (s *GoogleCloudApigeeV1Schema) MarshalJSON() ([]byte, error) {
4927	type NoMethod GoogleCloudApigeeV1Schema
4928	raw := NoMethod(*s)
4929	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4930}
4931
4932// GoogleCloudApigeeV1SchemaSchemaElement: Message type for the schema
4933// element
4934type GoogleCloudApigeeV1SchemaSchemaElement struct {
4935	// Name: Name of the field
4936	Name string `json:"name,omitempty"`
4937
4938	// Properties: Property of the schema field
4939	// E.g.
4940	// {
4941	//    "createTime": "2016-02-26T10:23:09.592Z",
4942	//    "custom": "false",
4943	//    "type": "string"
4944	// }
4945	Properties *GoogleCloudApigeeV1SchemaSchemaProperty `json:"properties,omitempty"`
4946
4947	// ForceSendFields is a list of field names (e.g. "Name") to
4948	// unconditionally include in API requests. By default, fields with
4949	// empty values are omitted from API requests. However, any non-pointer,
4950	// non-interface field appearing in ForceSendFields will be sent to the
4951	// server regardless of whether the field is empty or not. This may be
4952	// used to include empty fields in Patch requests.
4953	ForceSendFields []string `json:"-"`
4954
4955	// NullFields is a list of field names (e.g. "Name") to include in API
4956	// requests with the JSON null value. By default, fields with empty
4957	// values are omitted from API requests. However, any field with an
4958	// empty value appearing in NullFields will be sent to the server as
4959	// null. It is an error if a field in this list has a non-empty value.
4960	// This may be used to include null fields in Patch requests.
4961	NullFields []string `json:"-"`
4962}
4963
4964func (s *GoogleCloudApigeeV1SchemaSchemaElement) MarshalJSON() ([]byte, error) {
4965	type NoMethod GoogleCloudApigeeV1SchemaSchemaElement
4966	raw := NoMethod(*s)
4967	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4968}
4969
4970// GoogleCloudApigeeV1SchemaSchemaProperty: Message type for schema
4971// property
4972type GoogleCloudApigeeV1SchemaSchemaProperty struct {
4973	// CreateTime: Creation time of the field
4974	CreateTime string `json:"createTime,omitempty"`
4975
4976	// Custom: Custom is a flag signifying if the field was provided as
4977	// part of the standard dataset or a custom field created by the
4978	// customer
4979	Custom string `json:"custom,omitempty"`
4980
4981	// Type: Data type of the field.
4982	Type string `json:"type,omitempty"`
4983
4984	// ForceSendFields is a list of field names (e.g. "CreateTime") to
4985	// unconditionally include in API requests. By default, fields with
4986	// empty values are omitted from API requests. However, any non-pointer,
4987	// non-interface field appearing in ForceSendFields will be sent to the
4988	// server regardless of whether the field is empty or not. This may be
4989	// used to include empty fields in Patch requests.
4990	ForceSendFields []string `json:"-"`
4991
4992	// NullFields is a list of field names (e.g. "CreateTime") to include in
4993	// API requests with the JSON null value. By default, fields with empty
4994	// values are omitted from API requests. However, any field with an
4995	// empty value appearing in NullFields will be sent to the server as
4996	// null. It is an error if a field in this list has a non-empty value.
4997	// This may be used to include null fields in Patch requests.
4998	NullFields []string `json:"-"`
4999}
5000
5001func (s *GoogleCloudApigeeV1SchemaSchemaProperty) MarshalJSON() ([]byte, error) {
5002	type NoMethod GoogleCloudApigeeV1SchemaSchemaProperty
5003	raw := NoMethod(*s)
5004	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5005}
5006
5007type GoogleCloudApigeeV1ServiceIssuersMapping struct {
5008	// EmailIds: List of trusted issuer email ids.
5009	EmailIds []string `json:"emailIds,omitempty"`
5010
5011	// Service: String indicating the Apigee service name.
5012	Service string `json:"service,omitempty"`
5013
5014	// ForceSendFields is a list of field names (e.g. "EmailIds") to
5015	// unconditionally include in API requests. By default, fields with
5016	// empty values are omitted from API requests. However, any non-pointer,
5017	// non-interface field appearing in ForceSendFields will be sent to the
5018	// server regardless of whether the field is empty or not. This may be
5019	// used to include empty fields in Patch requests.
5020	ForceSendFields []string `json:"-"`
5021
5022	// NullFields is a list of field names (e.g. "EmailIds") to include in
5023	// API requests with the JSON null value. By default, fields with empty
5024	// values are omitted from API requests. However, any field with an
5025	// empty value appearing in NullFields will be sent to the server as
5026	// null. It is an error if a field in this list has a non-empty value.
5027	// This may be used to include null fields in Patch requests.
5028	NullFields []string `json:"-"`
5029}
5030
5031func (s *GoogleCloudApigeeV1ServiceIssuersMapping) MarshalJSON() ([]byte, error) {
5032	type NoMethod GoogleCloudApigeeV1ServiceIssuersMapping
5033	raw := NoMethod(*s)
5034	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5035}
5036
5037type GoogleCloudApigeeV1Sesssion struct {
5038	// Id: The debug session ID.
5039	Id string `json:"id,omitempty"`
5040
5041	// TimestampMs: The first transaction creation timestamp in millisecond,
5042	// recoreded by UAP.
5043	TimestampMs int64 `json:"timestampMs,omitempty,string"`
5044
5045	// ForceSendFields is a list of field names (e.g. "Id") to
5046	// unconditionally include in API requests. By default, fields with
5047	// empty values are omitted from API requests. However, any non-pointer,
5048	// non-interface field appearing in ForceSendFields will be sent to the
5049	// server regardless of whether the field is empty or not. This may be
5050	// used to include empty fields in Patch requests.
5051	ForceSendFields []string `json:"-"`
5052
5053	// NullFields is a list of field names (e.g. "Id") to include in API
5054	// requests with the JSON null value. By default, fields with empty
5055	// values are omitted from API requests. However, any field with an
5056	// empty value appearing in NullFields will be sent to the server as
5057	// null. It is an error if a field in this list has a non-empty value.
5058	// This may be used to include null fields in Patch requests.
5059	NullFields []string `json:"-"`
5060}
5061
5062func (s *GoogleCloudApigeeV1Sesssion) MarshalJSON() ([]byte, error) {
5063	type NoMethod GoogleCloudApigeeV1Sesssion
5064	raw := NoMethod(*s)
5065	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5066}
5067
5068// GoogleCloudApigeeV1SharedFlow: The metadata describing a shared flow
5069type GoogleCloudApigeeV1SharedFlow struct {
5070	// LatestRevisionId: The id of the most recently created revision for
5071	// this shared flow.
5072	LatestRevisionId string `json:"latestRevisionId,omitempty"`
5073
5074	// MetaData: Metadata describing the shared flow.
5075	MetaData *GoogleCloudApigeeV1EntityMetadata `json:"metaData,omitempty"`
5076
5077	// Name: The ID of the shared flow.
5078	Name string `json:"name,omitempty"`
5079
5080	// Revision: A list of revisions of this shared flow.
5081	Revision []string `json:"revision,omitempty"`
5082
5083	// ServerResponse contains the HTTP response code and headers from the
5084	// server.
5085	googleapi.ServerResponse `json:"-"`
5086
5087	// ForceSendFields is a list of field names (e.g. "LatestRevisionId") to
5088	// unconditionally include in API requests. By default, fields with
5089	// empty values are omitted from API requests. However, any non-pointer,
5090	// non-interface field appearing in ForceSendFields will be sent to the
5091	// server regardless of whether the field is empty or not. This may be
5092	// used to include empty fields in Patch requests.
5093	ForceSendFields []string `json:"-"`
5094
5095	// NullFields is a list of field names (e.g. "LatestRevisionId") to
5096	// include in API requests with the JSON null value. By default, fields
5097	// with empty values are omitted from API requests. However, any field
5098	// with an empty value appearing in NullFields will be sent to the
5099	// server as null. It is an error if a field in this list has a
5100	// non-empty value. This may be used to include null fields in Patch
5101	// requests.
5102	NullFields []string `json:"-"`
5103}
5104
5105func (s *GoogleCloudApigeeV1SharedFlow) MarshalJSON() ([]byte, error) {
5106	type NoMethod GoogleCloudApigeeV1SharedFlow
5107	raw := NoMethod(*s)
5108	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5109}
5110
5111// GoogleCloudApigeeV1SharedFlowRevision: The metadata describing a
5112// shared flow revision.
5113type GoogleCloudApigeeV1SharedFlowRevision struct {
5114	// ConfigurationVersion: The version of the configuration schema to
5115	// which this shared flow conforms.
5116	// The only supported value currently is majorVersion 4 and minorVersion
5117	// 0.
5118	// This setting may be used in the future to enable evolution of the
5119	// shared
5120	// flow format.
5121	ConfigurationVersion *GoogleCloudApigeeV1ConfigVersion `json:"configurationVersion,omitempty"`
5122
5123	// ContextInfo: A textual description of the shared flow revision.
5124	ContextInfo string `json:"contextInfo,omitempty"`
5125
5126	// CreatedAt: Time at which this shared flow revision was created, in
5127	// milliseconds since
5128	// epoch.
5129	CreatedAt int64 `json:"createdAt,omitempty,string"`
5130
5131	// DisplayName: The human readable name of this shared flow.
5132	DisplayName string `json:"displayName,omitempty"`
5133
5134	// EntityMetaDataAsProperties: A Key-Value map of metadata about this
5135	// shared flow revision.
5136	EntityMetaDataAsProperties map[string]string `json:"entityMetaDataAsProperties,omitempty"`
5137
5138	// LastModifiedAt: Time at which this shared flow revision was most
5139	// recently modified, in
5140	// milliseconds since epoch.
5141	LastModifiedAt int64 `json:"lastModifiedAt,omitempty,string"`
5142
5143	// Name: The resource ID of the parent shared flow.
5144	Name string `json:"name,omitempty"`
5145
5146	// Policies: A list of policy names included in this shared flow
5147	// revision.
5148	Policies []string `json:"policies,omitempty"`
5149
5150	// ResourceFiles: The resource files included in this shared flow
5151	// revision.
5152	ResourceFiles *GoogleCloudApigeeV1ResourceFiles `json:"resourceFiles,omitempty"`
5153
5154	// Resources: A list of the resources included in this shared flow
5155	// revision formatted as
5156	// "{type}://{name}".
5157	Resources []string `json:"resources,omitempty"`
5158
5159	// Revision: The resource ID of this revision.
5160	Revision string `json:"revision,omitempty"`
5161
5162	// SharedFlows: A list of the shared flow names included in this shared
5163	// flow revision.
5164	SharedFlows []string `json:"sharedFlows,omitempty"`
5165
5166	// Type: The string "Application"
5167	Type string `json:"type,omitempty"`
5168
5169	// ServerResponse contains the HTTP response code and headers from the
5170	// server.
5171	googleapi.ServerResponse `json:"-"`
5172
5173	// ForceSendFields is a list of field names (e.g.
5174	// "ConfigurationVersion") to unconditionally include in API requests.
5175	// By default, fields with empty values are omitted from API requests.
5176	// However, any non-pointer, non-interface field appearing in
5177	// ForceSendFields will be sent to the server regardless of whether the
5178	// field is empty or not. This may be used to include empty fields in
5179	// Patch requests.
5180	ForceSendFields []string `json:"-"`
5181
5182	// NullFields is a list of field names (e.g. "ConfigurationVersion") to
5183	// include in API requests with the JSON null value. By default, fields
5184	// with empty values are omitted from API requests. However, any field
5185	// with an empty value appearing in NullFields will be sent to the
5186	// server as null. It is an error if a field in this list has a
5187	// non-empty value. This may be used to include null fields in Patch
5188	// requests.
5189	NullFields []string `json:"-"`
5190}
5191
5192func (s *GoogleCloudApigeeV1SharedFlowRevision) MarshalJSON() ([]byte, error) {
5193	type NoMethod GoogleCloudApigeeV1SharedFlowRevision
5194	raw := NoMethod(*s)
5195	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5196}
5197
5198// GoogleCloudApigeeV1Stats: This message type encapsulates a stats
5199// response
5200type GoogleCloudApigeeV1Stats struct {
5201	Environments []*GoogleCloudApigeeV1StatsEnvironmentStats `json:"environments,omitempty"`
5202
5203	// MetaData: This field contains the metadata information
5204	MetaData *GoogleCloudApigeeV1Metadata `json:"metaData,omitempty"`
5205
5206	// ServerResponse contains the HTTP response code and headers from the
5207	// server.
5208	googleapi.ServerResponse `json:"-"`
5209
5210	// ForceSendFields is a list of field names (e.g. "Environments") to
5211	// unconditionally include in API requests. By default, fields with
5212	// empty values are omitted from API requests. However, any non-pointer,
5213	// non-interface field appearing in ForceSendFields will be sent to the
5214	// server regardless of whether the field is empty or not. This may be
5215	// used to include empty fields in Patch requests.
5216	ForceSendFields []string `json:"-"`
5217
5218	// NullFields is a list of field names (e.g. "Environments") to include
5219	// in API requests with the JSON null value. By default, fields with
5220	// empty values are omitted from API requests. However, any field with
5221	// an empty value appearing in NullFields will be sent to the server as
5222	// null. It is an error if a field in this list has a non-empty value.
5223	// This may be used to include null fields in Patch requests.
5224	NullFields []string `json:"-"`
5225}
5226
5227func (s *GoogleCloudApigeeV1Stats) MarshalJSON() ([]byte, error) {
5228	type NoMethod GoogleCloudApigeeV1Stats
5229	raw := NoMethod(*s)
5230	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5231}
5232
5233// GoogleCloudApigeeV1StatsEnvironmentStats: This message type
5234// encapsulates the environment wrapper
5235//     "environments": [
5236//      {
5237//          "metrics": [
5238//              {
5239//                  "name": "sum(message_count)",
5240//                  "values": [
5241//                      "2.52056245E8"
5242//                  ]
5243//              }
5244//          ],
5245//          "name": "prod"
5246//      }
5247//  ]
5248type GoogleCloudApigeeV1StatsEnvironmentStats struct {
5249	// Dimensions: This field contains the list of metrics grouped under
5250	// dimensions
5251	Dimensions []*GoogleCloudApigeeV1DimensionMetric `json:"dimensions,omitempty"`
5252
5253	// Metrics: In the final response, only one of the following fields will
5254	// be present
5255	// based on the dimensions provided. If no dimensions are provided,
5256	// then
5257	// only a top level metrics is provided. If dimensions are included,
5258	// then
5259	// there will be a top level dimensions field under environments which
5260	// will
5261	// contain metrics values and the dimension name.
5262	// Example:
5263	//      "environments": [
5264	//       {
5265	//          "dimensions": [
5266	//              {
5267	//                  "metrics": [
5268	//                      {
5269	//                          "name": "sum(message_count)",
5270	//                          "values": [
5271	//                              "2.14049521E8"
5272	//                          ]
5273	//                      }
5274	//                  ],
5275	//                  "name": "nit_proxy"
5276	//              }
5277	//            ],
5278	//            "name": "prod"
5279	//        }
5280	//     ]
5281	//
5282	//     OR
5283	//     "environments": [
5284	//            {
5285	//                "metrics": [
5286	//                    {
5287	//                        "name": "sum(message_count)",
5288	//                         "values": [
5289	//                            "2.19026331E8"
5290	//                        ]
5291	//                    }
5292	//                ],
5293	//                "name": "prod"
5294	//            }
5295	//        ]
5296	// This field contains the list of metric values
5297	Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"`
5298
5299	Name string `json:"name,omitempty"`
5300
5301	// ForceSendFields is a list of field names (e.g. "Dimensions") to
5302	// unconditionally include in API requests. By default, fields with
5303	// empty values are omitted from API requests. However, any non-pointer,
5304	// non-interface field appearing in ForceSendFields will be sent to the
5305	// server regardless of whether the field is empty or not. This may be
5306	// used to include empty fields in Patch requests.
5307	ForceSendFields []string `json:"-"`
5308
5309	// NullFields is a list of field names (e.g. "Dimensions") to include in
5310	// API requests with the JSON null value. By default, fields with empty
5311	// values are omitted from API requests. However, any field with an
5312	// empty value appearing in NullFields will be sent to the server as
5313	// null. It is an error if a field in this list has a non-empty value.
5314	// This may be used to include null fields in Patch requests.
5315	NullFields []string `json:"-"`
5316}
5317
5318func (s *GoogleCloudApigeeV1StatsEnvironmentStats) MarshalJSON() ([]byte, error) {
5319	type NoMethod GoogleCloudApigeeV1StatsEnvironmentStats
5320	raw := NoMethod(*s)
5321	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5322}
5323
5324// GoogleCloudApigeeV1Subscription: The pubsub subscription of an
5325// environment.
5326type GoogleCloudApigeeV1Subscription struct {
5327	// Name: The full name of cloud Pub/Sub subcription. E.g.
5328	// subscription
5329	// "projects/foo/subscription/bar".
5330	Name string `json:"name,omitempty"`
5331
5332	// ServerResponse contains the HTTP response code and headers from the
5333	// server.
5334	googleapi.ServerResponse `json:"-"`
5335
5336	// ForceSendFields is a list of field names (e.g. "Name") to
5337	// unconditionally include in API requests. By default, fields with
5338	// empty values are omitted from API requests. However, any non-pointer,
5339	// non-interface field appearing in ForceSendFields will be sent to the
5340	// server regardless of whether the field is empty or not. This may be
5341	// used to include empty fields in Patch requests.
5342	ForceSendFields []string `json:"-"`
5343
5344	// NullFields is a list of field names (e.g. "Name") to include in API
5345	// requests with the JSON null value. By default, fields with empty
5346	// values are omitted from API requests. However, any field with an
5347	// empty value appearing in NullFields will be sent to the server as
5348	// null. It is an error if a field in this list has a non-empty value.
5349	// This may be used to include null fields in Patch requests.
5350	NullFields []string `json:"-"`
5351}
5352
5353func (s *GoogleCloudApigeeV1Subscription) MarshalJSON() ([]byte, error) {
5354	type NoMethod GoogleCloudApigeeV1Subscription
5355	raw := NoMethod(*s)
5356	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5357}
5358
5359type GoogleCloudApigeeV1SyncAuthorization struct {
5360	// Etag: `etag` is used for optimistic concurrency control as a way to
5361	// help
5362	// prevent simultaneous updates from overwriting each other. It is
5363	// strongly
5364	// suggested that systems make use of the `etag` in the
5365	// read-modify-write
5366	// cycle to avoid race conditions: An `etag` is returned in the response
5367	// to
5368	// `getSyncAuthorization`, and systems are expected to put that etag in
5369	// the
5370	// request to `setSyncAuthorization` to ensure that their change will
5371	// be
5372	// applied to the same version.
5373	//
5374	// If no `etag` is provided in the call to `setSyncAuthorization`, then
5375	// the
5376	// existing authorization is overwritten blindly.
5377	Etag string `json:"etag,omitempty"`
5378
5379	// Identities: Required. The list of identities to grant access to
5380	// control plane
5381	// resources.
5382	Identities []string `json:"identities,omitempty"`
5383
5384	// ServerResponse contains the HTTP response code and headers from the
5385	// server.
5386	googleapi.ServerResponse `json:"-"`
5387
5388	// ForceSendFields is a list of field names (e.g. "Etag") to
5389	// unconditionally include in API requests. By default, fields with
5390	// empty values are omitted from API requests. However, any non-pointer,
5391	// non-interface field appearing in ForceSendFields will be sent to the
5392	// server regardless of whether the field is empty or not. This may be
5393	// used to include empty fields in Patch requests.
5394	ForceSendFields []string `json:"-"`
5395
5396	// NullFields is a list of field names (e.g. "Etag") to include in API
5397	// requests with the JSON null value. By default, fields with empty
5398	// values are omitted from API requests. However, any field with an
5399	// empty value appearing in NullFields will be sent to the server as
5400	// null. It is an error if a field in this list has a non-empty value.
5401	// This may be used to include null fields in Patch requests.
5402	NullFields []string `json:"-"`
5403}
5404
5405func (s *GoogleCloudApigeeV1SyncAuthorization) MarshalJSON() ([]byte, error) {
5406	type NoMethod GoogleCloudApigeeV1SyncAuthorization
5407	raw := NoMethod(*s)
5408	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5409}
5410
5411// GoogleCloudApigeeV1TargetServer: TargetServer configuration.
5412// TargetServers are used to decouple a proxy's
5413// TargetEndpoint HTTPTargetConnections from concrete URLs for backend
5414// services.
5415type GoogleCloudApigeeV1TargetServer struct {
5416	// Description: Optional. A human-readable description of this
5417	// TargetServer.
5418	Description string `json:"description,omitempty"`
5419
5420	// Host: Required. The host name this target connects to. Value must be
5421	// a valid
5422	// hostname as described by RFC-1123.
5423	Host string `json:"host,omitempty"`
5424
5425	// IsEnabled: Optional. Enabling/disabling a TargetServer is useful when
5426	// TargetServers
5427	// are used in load balancing configurations, and one or more
5428	// TargetServers
5429	// need to taken out of rotation periodically. Defaults to true.
5430	IsEnabled bool `json:"isEnabled,omitempty"`
5431
5432	// Name: Required. The resource id of this target server. Values must
5433	// match the
5434	// regular expression
5435	Name string `json:"name,omitempty"`
5436
5437	// Port: Required. The port number this target connects to on the given
5438	// host. Value
5439	// must be between 1 and 65535, inclusive.
5440	Port int64 `json:"port,omitempty"`
5441
5442	// SSLInfo: Optional. Specifies TLS configuration info for this
5443	// TargetServer. The JSON
5444	// name is `sSLInfo` for legacy/backwards compatibility reasons --
5445	// Edge
5446	// originally supported SSL, and the name is still used for TLS
5447	// configuration.
5448	SSLInfo *GoogleCloudApigeeV1TlsInfo `json:"sSLInfo,omitempty"`
5449
5450	// ServerResponse contains the HTTP response code and headers from the
5451	// server.
5452	googleapi.ServerResponse `json:"-"`
5453
5454	// ForceSendFields is a list of field names (e.g. "Description") to
5455	// unconditionally include in API requests. By default, fields with
5456	// empty values are omitted from API requests. However, any non-pointer,
5457	// non-interface field appearing in ForceSendFields will be sent to the
5458	// server regardless of whether the field is empty or not. This may be
5459	// used to include empty fields in Patch requests.
5460	ForceSendFields []string `json:"-"`
5461
5462	// NullFields is a list of field names (e.g. "Description") to include
5463	// in API requests with the JSON null value. By default, fields with
5464	// empty values are omitted from API requests. However, any field with
5465	// an empty value appearing in NullFields will be sent to the server as
5466	// null. It is an error if a field in this list has a non-empty value.
5467	// This may be used to include null fields in Patch requests.
5468	NullFields []string `json:"-"`
5469}
5470
5471func (s *GoogleCloudApigeeV1TargetServer) MarshalJSON() ([]byte, error) {
5472	type NoMethod GoogleCloudApigeeV1TargetServer
5473	raw := NoMethod(*s)
5474	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5475}
5476
5477type GoogleCloudApigeeV1TargetServerConfig struct {
5478	// Host: Target host name.
5479	Host string `json:"host,omitempty"`
5480
5481	// Name: The target server revision name. Must be of the
5482	// form
5483	// 'organizations/{org}/environments/{env}/targetservers/{ts_id}/rev
5484	// isions/{rev}'.
5485	Name string `json:"name,omitempty"`
5486
5487	// Port: Target port.
5488	Port int64 `json:"port,omitempty"`
5489
5490	// TlsInfo: TLS settings for the target.
5491	TlsInfo *GoogleCloudApigeeV1TlsInfoConfig `json:"tlsInfo,omitempty"`
5492
5493	// ForceSendFields is a list of field names (e.g. "Host") to
5494	// unconditionally include in API requests. By default, fields with
5495	// empty values are omitted from API requests. However, any non-pointer,
5496	// non-interface field appearing in ForceSendFields will be sent to the
5497	// server regardless of whether the field is empty or not. This may be
5498	// used to include empty fields in Patch requests.
5499	ForceSendFields []string `json:"-"`
5500
5501	// NullFields is a list of field names (e.g. "Host") to include in API
5502	// requests with the JSON null value. By default, fields with empty
5503	// values are omitted from API requests. However, any field with an
5504	// empty value appearing in NullFields will be sent to the server as
5505	// null. It is an error if a field in this list has a non-empty value.
5506	// This may be used to include null fields in Patch requests.
5507	NullFields []string `json:"-"`
5508}
5509
5510func (s *GoogleCloudApigeeV1TargetServerConfig) MarshalJSON() ([]byte, error) {
5511	type NoMethod GoogleCloudApigeeV1TargetServerConfig
5512	raw := NoMethod(*s)
5513	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5514}
5515
5516// GoogleCloudApigeeV1TlsInfo: TLS configuration information
5517// for
5518// VirtualHosts and
5519// TargetServers.
5520type GoogleCloudApigeeV1TlsInfo struct {
5521	// Ciphers: The SSL/TLS cipher suites to be used. Must be one of the
5522	// cipher suite names
5523	// listed
5524	// in:
5525	// http://docs.oracle.com/javase/8/docs/technotes/guides/security/Sta
5526	// ndardNames.html#ciphersuites
5527	Ciphers []string `json:"ciphers,omitempty"`
5528
5529	// ClientAuthEnabled: Optional. Enables two-way TLS.
5530	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
5531
5532	// CommonName: The TLS Common Name of the certificate.
5533	CommonName *GoogleCloudApigeeV1TlsInfoCommonName `json:"commonName,omitempty"`
5534
5535	// Enabled: Required. Enables one-way TLS.
5536	Enabled bool `json:"enabled,omitempty"`
5537
5538	// IgnoreValidationErrors: If true, Edge ignores TLS certificate errors.
5539	// Valid when configuring TLS
5540	// for target servers and target endpoints, and when configuring virtual
5541	// hosts
5542	// that use 2-way TLS.
5543	//
5544	// When used with a target endpoint/target server, if the backend system
5545	// uses
5546	// SNI and returns a cert with a subject Distinguished Name (DN) that
5547	// does not
5548	// match the hostname, there is no way to ignore the error and the
5549	// connection
5550	// fails.
5551	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
5552
5553	// KeyAlias: Required if `client_auth_enabled` is true. The resource ID
5554	// for the
5555	// alias containing the private key and cert.
5556	KeyAlias string `json:"keyAlias,omitempty"`
5557
5558	// KeyStore: Required if `client_auth_enabled` is true. The resource ID
5559	// of the
5560	// keystore. References not yet supported.
5561	KeyStore string `json:"keyStore,omitempty"`
5562
5563	// Protocols: The TLS versioins to be used.
5564	Protocols []string `json:"protocols,omitempty"`
5565
5566	// TrustStore: The resource ID of the truststore.
5567	// References not yet supported.
5568	TrustStore string `json:"trustStore,omitempty"`
5569
5570	// ForceSendFields is a list of field names (e.g. "Ciphers") to
5571	// unconditionally include in API requests. By default, fields with
5572	// empty values are omitted from API requests. However, any non-pointer,
5573	// non-interface field appearing in ForceSendFields will be sent to the
5574	// server regardless of whether the field is empty or not. This may be
5575	// used to include empty fields in Patch requests.
5576	ForceSendFields []string `json:"-"`
5577
5578	// NullFields is a list of field names (e.g. "Ciphers") to include in
5579	// API requests with the JSON null value. By default, fields with empty
5580	// values are omitted from API requests. However, any field with an
5581	// empty value appearing in NullFields will be sent to the server as
5582	// null. It is an error if a field in this list has a non-empty value.
5583	// This may be used to include null fields in Patch requests.
5584	NullFields []string `json:"-"`
5585}
5586
5587func (s *GoogleCloudApigeeV1TlsInfo) MarshalJSON() ([]byte, error) {
5588	type NoMethod GoogleCloudApigeeV1TlsInfo
5589	raw := NoMethod(*s)
5590	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5591}
5592
5593type GoogleCloudApigeeV1TlsInfoCommonName struct {
5594	// Value: The TLS Common Name string of the certificate.
5595	Value string `json:"value,omitempty"`
5596
5597	// WildcardMatch: Indicates whether the cert should be matched against
5598	// as a wildcard cert.
5599	WildcardMatch bool `json:"wildcardMatch,omitempty"`
5600
5601	// ForceSendFields is a list of field names (e.g. "Value") to
5602	// unconditionally include in API requests. By default, fields with
5603	// empty values are omitted from API requests. However, any non-pointer,
5604	// non-interface field appearing in ForceSendFields will be sent to the
5605	// server regardless of whether the field is empty or not. This may be
5606	// used to include empty fields in Patch requests.
5607	ForceSendFields []string `json:"-"`
5608
5609	// NullFields is a list of field names (e.g. "Value") to include in API
5610	// requests with the JSON null value. By default, fields with empty
5611	// values are omitted from API requests. However, any field with an
5612	// empty value appearing in NullFields will be sent to the server as
5613	// null. It is an error if a field in this list has a non-empty value.
5614	// This may be used to include null fields in Patch requests.
5615	NullFields []string `json:"-"`
5616}
5617
5618func (s *GoogleCloudApigeeV1TlsInfoCommonName) MarshalJSON() ([]byte, error) {
5619	type NoMethod GoogleCloudApigeeV1TlsInfoCommonName
5620	raw := NoMethod(*s)
5621	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5622}
5623
5624type GoogleCloudApigeeV1TlsInfoConfig struct {
5625	// Ciphers: Whitelist of supported ciphers.
5626	Ciphers []string `json:"ciphers,omitempty"`
5627
5628	// ClientAuthEnabled: Indicates if client auth is enabled for the
5629	// target. Enables two-way TLS.
5630	ClientAuthEnabled bool `json:"clientAuthEnabled,omitempty"`
5631
5632	// CommonName: Common name to validate the target against.
5633	CommonName *GoogleCloudApigeeV1CommonNameConfig `json:"commonName,omitempty"`
5634
5635	// Enabled: Enables one-way TLS.
5636	Enabled bool `json:"enabled,omitempty"`
5637
5638	// IgnoreValidationErrors: If true, ignore TLS certificate validation
5639	// errors.
5640	IgnoreValidationErrors bool `json:"ignoreValidationErrors,omitempty"`
5641
5642	// KeyAlias: The name of the Alias used for client side auth. It must be
5643	// of the
5644	// form:
5645	// organizations/{org}/environments/{env}/keystores/{keystore}/alia
5646	// ses/{alias}
5647	KeyAlias string `json:"keyAlias,omitempty"`
5648
5649	// KeyAliasReference: A pair of reference name and alias to use for
5650	// client side auth.
5651	KeyAliasReference *GoogleCloudApigeeV1KeyAliasReference `json:"keyAliasReference,omitempty"`
5652
5653	// Protocols: Whitelist of supported TLS protocols.
5654	Protocols []string `json:"protocols,omitempty"`
5655
5656	// TrustStore: The name of the Keystore or keystore reference containing
5657	// trusted
5658	// certificates for the server. It must be of either the
5659	// form
5660	// organizations/{org}/environments/{env}/keystores/{keystore}
5661	// or
5662	// organizations/{org}/environments/{env}/references/{reference}.
5663	TrustStore string `json:"trustStore,omitempty"`
5664
5665	// ForceSendFields is a list of field names (e.g. "Ciphers") to
5666	// unconditionally include in API requests. By default, fields with
5667	// empty values are omitted from API requests. However, any non-pointer,
5668	// non-interface field appearing in ForceSendFields will be sent to the
5669	// server regardless of whether the field is empty or not. This may be
5670	// used to include empty fields in Patch requests.
5671	ForceSendFields []string `json:"-"`
5672
5673	// NullFields is a list of field names (e.g. "Ciphers") to include in
5674	// API requests with the JSON null value. By default, fields with empty
5675	// values are omitted from API requests. However, any field with an
5676	// empty value appearing in NullFields will be sent to the server as
5677	// null. It is an error if a field in this list has a non-empty value.
5678	// This may be used to include null fields in Patch requests.
5679	NullFields []string `json:"-"`
5680}
5681
5682func (s *GoogleCloudApigeeV1TlsInfoConfig) MarshalJSON() ([]byte, error) {
5683	type NoMethod GoogleCloudApigeeV1TlsInfoConfig
5684	raw := NoMethod(*s)
5685	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5686}
5687
5688// GoogleIamV1AuditConfig: Specifies the audit configuration for a
5689// service.
5690// The configuration determines which permission types are logged, and
5691// what
5692// identities, if any, are exempted from logging.
5693// An AuditConfig must have one or more AuditLogConfigs.
5694//
5695// If there are AuditConfigs for both `allServices` and a specific
5696// service,
5697// the union of the two AuditConfigs is used for that service: the
5698// log_types
5699// specified in each AuditConfig are enabled, and the exempted_members
5700// in each
5701// AuditLogConfig are exempted.
5702//
5703// Example Policy with multiple AuditConfigs:
5704//
5705//     {
5706//       "audit_configs": [
5707//         {
5708//           "service": "allServices"
5709//           "audit_log_configs": [
5710//             {
5711//               "log_type": "DATA_READ",
5712//               "exempted_members": [
5713//                 "user:jose@example.com"
5714//               ]
5715//             },
5716//             {
5717//               "log_type": "DATA_WRITE",
5718//             },
5719//             {
5720//               "log_type": "ADMIN_READ",
5721//             }
5722//           ]
5723//         },
5724//         {
5725//           "service": "sampleservice.googleapis.com"
5726//           "audit_log_configs": [
5727//             {
5728//               "log_type": "DATA_READ",
5729//             },
5730//             {
5731//               "log_type": "DATA_WRITE",
5732//               "exempted_members": [
5733//                 "user:aliya@example.com"
5734//               ]
5735//             }
5736//           ]
5737//         }
5738//       ]
5739//     }
5740//
5741// For sampleservice, this policy enables DATA_READ, DATA_WRITE and
5742// ADMIN_READ
5743// logging. It also exempts jose@example.com from DATA_READ logging,
5744// and
5745// aliya@example.com from DATA_WRITE logging.
5746type GoogleIamV1AuditConfig struct {
5747	// AuditLogConfigs: The configuration for logging of each type of
5748	// permission.
5749	AuditLogConfigs []*GoogleIamV1AuditLogConfig `json:"auditLogConfigs,omitempty"`
5750
5751	// Service: Specifies a service that will be enabled for audit
5752	// logging.
5753	// For example, `storage.googleapis.com`,
5754	// `cloudsql.googleapis.com`.
5755	// `allServices` is a special value that covers all services.
5756	Service string `json:"service,omitempty"`
5757
5758	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
5759	// unconditionally include in API requests. By default, fields with
5760	// empty values are omitted from API requests. However, any non-pointer,
5761	// non-interface field appearing in ForceSendFields will be sent to the
5762	// server regardless of whether the field is empty or not. This may be
5763	// used to include empty fields in Patch requests.
5764	ForceSendFields []string `json:"-"`
5765
5766	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
5767	// include in API requests with the JSON null value. By default, fields
5768	// with empty values are omitted from API requests. However, any field
5769	// with an empty value appearing in NullFields will be sent to the
5770	// server as null. It is an error if a field in this list has a
5771	// non-empty value. This may be used to include null fields in Patch
5772	// requests.
5773	NullFields []string `json:"-"`
5774}
5775
5776func (s *GoogleIamV1AuditConfig) MarshalJSON() ([]byte, error) {
5777	type NoMethod GoogleIamV1AuditConfig
5778	raw := NoMethod(*s)
5779	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5780}
5781
5782// GoogleIamV1AuditLogConfig: Provides the configuration for logging a
5783// type of permissions.
5784// Example:
5785//
5786//     {
5787//       "audit_log_configs": [
5788//         {
5789//           "log_type": "DATA_READ",
5790//           "exempted_members": [
5791//             "user:jose@example.com"
5792//           ]
5793//         },
5794//         {
5795//           "log_type": "DATA_WRITE",
5796//         }
5797//       ]
5798//     }
5799//
5800// This enables 'DATA_READ' and 'DATA_WRITE' logging, while
5801// exempting
5802// jose@example.com from DATA_READ logging.
5803type GoogleIamV1AuditLogConfig struct {
5804	// ExemptedMembers: Specifies the identities that do not cause logging
5805	// for this type of
5806	// permission.
5807	// Follows the same format of Binding.members.
5808	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
5809
5810	// LogType: The log type that this config enables.
5811	//
5812	// Possible values:
5813	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
5814	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
5815	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
5816	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
5817	LogType string `json:"logType,omitempty"`
5818
5819	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
5820	// unconditionally include in API requests. By default, fields with
5821	// empty values are omitted from API requests. However, any non-pointer,
5822	// non-interface field appearing in ForceSendFields will be sent to the
5823	// server regardless of whether the field is empty or not. This may be
5824	// used to include empty fields in Patch requests.
5825	ForceSendFields []string `json:"-"`
5826
5827	// NullFields is a list of field names (e.g. "ExemptedMembers") to
5828	// include in API requests with the JSON null value. By default, fields
5829	// with empty values are omitted from API requests. However, any field
5830	// with an empty value appearing in NullFields will be sent to the
5831	// server as null. It is an error if a field in this list has a
5832	// non-empty value. This may be used to include null fields in Patch
5833	// requests.
5834	NullFields []string `json:"-"`
5835}
5836
5837func (s *GoogleIamV1AuditLogConfig) MarshalJSON() ([]byte, error) {
5838	type NoMethod GoogleIamV1AuditLogConfig
5839	raw := NoMethod(*s)
5840	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5841}
5842
5843// GoogleIamV1Binding: Associates `members` with a `role`.
5844type GoogleIamV1Binding struct {
5845	// Condition: The condition that is associated with this binding.
5846	// NOTE: An unsatisfied condition will not allow user access via
5847	// current
5848	// binding. Different bindings, including their conditions, are
5849	// examined
5850	// independently.
5851	Condition *GoogleTypeExpr `json:"condition,omitempty"`
5852
5853	// Members: Specifies the identities requesting access for a Cloud
5854	// Platform resource.
5855	// `members` can have the following values:
5856	//
5857	// * `allUsers`: A special identifier that represents anyone who is
5858	//    on the internet; with or without a Google account.
5859	//
5860	// * `allAuthenticatedUsers`: A special identifier that represents
5861	// anyone
5862	//    who is authenticated with a Google account or a service
5863	// account.
5864	//
5865	// * `user:{emailid}`: An email address that represents a specific
5866	// Google
5867	//    account. For example, `alice@example.com` .
5868	//
5869	//
5870	// * `serviceAccount:{emailid}`: An email address that represents a
5871	// service
5872	//    account. For example,
5873	// `my-other-app@appspot.gserviceaccount.com`.
5874	//
5875	// * `group:{emailid}`: An email address that represents a Google
5876	// group.
5877	//    For example, `admins@example.com`.
5878	//
5879	//
5880	// * `domain:{domain}`: The G Suite domain (primary) that represents all
5881	// the
5882	//    users of that domain. For example, `google.com` or
5883	// `example.com`.
5884	//
5885	//
5886	Members []string `json:"members,omitempty"`
5887
5888	// Role: Role that is assigned to `members`.
5889	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
5890	Role string `json:"role,omitempty"`
5891
5892	// ForceSendFields is a list of field names (e.g. "Condition") to
5893	// unconditionally include in API requests. By default, fields with
5894	// empty values are omitted from API requests. However, any non-pointer,
5895	// non-interface field appearing in ForceSendFields will be sent to the
5896	// server regardless of whether the field is empty or not. This may be
5897	// used to include empty fields in Patch requests.
5898	ForceSendFields []string `json:"-"`
5899
5900	// NullFields is a list of field names (e.g. "Condition") to include in
5901	// API requests with the JSON null value. By default, fields with empty
5902	// values are omitted from API requests. However, any field with an
5903	// empty value appearing in NullFields will be sent to the server as
5904	// null. It is an error if a field in this list has a non-empty value.
5905	// This may be used to include null fields in Patch requests.
5906	NullFields []string `json:"-"`
5907}
5908
5909func (s *GoogleIamV1Binding) MarshalJSON() ([]byte, error) {
5910	type NoMethod GoogleIamV1Binding
5911	raw := NoMethod(*s)
5912	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5913}
5914
5915// GoogleIamV1Policy: Defines an Identity and Access Management (IAM)
5916// policy. It is used to
5917// specify access control policies for Cloud Platform resources.
5918//
5919//
5920// A `Policy` is a collection of `bindings`. A `binding` binds one or
5921// more
5922// `members` to a single `role`. Members can be user accounts, service
5923// accounts,
5924// Google groups, and domains (such as G Suite). A `role` is a named
5925// list of
5926// permissions (defined by IAM or configured by users). A `binding`
5927// can
5928// optionally specify a `condition`, which is a logic expression that
5929// further
5930// constrains the role binding based on attributes about the request
5931// and/or
5932// target resource.
5933//
5934// **JSON Example**
5935//
5936//     {
5937//       "bindings": [
5938//         {
5939//           "role": "roles/resourcemanager.organizationAdmin",
5940//           "members": [
5941//             "user:mike@example.com",
5942//             "group:admins@example.com",
5943//             "domain:google.com",
5944//
5945// "serviceAccount:my-project-id@appspot.gserviceaccount.com"
5946//           ]
5947//         },
5948//         {
5949//           "role": "roles/resourcemanager.organizationViewer",
5950//           "members": ["user:eve@example.com"],
5951//           "condition": {
5952//             "title": "expirable access",
5953//             "description": "Does not grant access after Sep 2020",
5954//             "expression": "request.time <
5955//             timestamp('2020-10-01T00:00:00.000Z')",
5956//           }
5957//         }
5958//       ]
5959//     }
5960//
5961// **YAML Example**
5962//
5963//     bindings:
5964//     - members:
5965//       - user:mike@example.com
5966//       - group:admins@example.com
5967//       - domain:google.com
5968//       - serviceAccount:my-project-id@appspot.gserviceaccount.com
5969//       role: roles/resourcemanager.organizationAdmin
5970//     - members:
5971//       - user:eve@example.com
5972//       role: roles/resourcemanager.organizationViewer
5973//       condition:
5974//         title: expirable access
5975//         description: Does not grant access after Sep 2020
5976//         expression: request.time <
5977// timestamp('2020-10-01T00:00:00.000Z')
5978//
5979// For a description of IAM and its features, see the
5980// [IAM developer's guide](https://cloud.google.com/iam/docs).
5981type GoogleIamV1Policy struct {
5982	// AuditConfigs: Specifies cloud audit logging configuration for this
5983	// policy.
5984	AuditConfigs []*GoogleIamV1AuditConfig `json:"auditConfigs,omitempty"`
5985
5986	// Bindings: Associates a list of `members` to a `role`. Optionally may
5987	// specify a
5988	// `condition` that determines when binding is in effect.
5989	// `bindings` with no members will result in an error.
5990	Bindings []*GoogleIamV1Binding `json:"bindings,omitempty"`
5991
5992	// Etag: `etag` is used for optimistic concurrency control as a way to
5993	// help
5994	// prevent simultaneous updates of a policy from overwriting each
5995	// other.
5996	// It is strongly suggested that systems make use of the `etag` in
5997	// the
5998	// read-modify-write cycle to perform policy updates in order to avoid
5999	// race
6000	// conditions: An `etag` is returned in the response to `getIamPolicy`,
6001	// and
6002	// systems are expected to put that etag in the request to
6003	// `setIamPolicy` to
6004	// ensure that their change will be applied to the same version of the
6005	// policy.
6006	//
6007	// If no `etag` is provided in the call to `setIamPolicy`, then the
6008	// existing
6009	// policy is overwritten. Due to blind-set semantics of an etag-less
6010	// policy,
6011	// 'setIamPolicy' will not fail even if either of incoming or stored
6012	// policy
6013	// does not meet the version requirements.
6014	Etag string `json:"etag,omitempty"`
6015
6016	// Version: Specifies the format of the policy.
6017	//
6018	// Valid values are 0, 1, and 3. Requests specifying an invalid value
6019	// will be
6020	// rejected.
6021	//
6022	// Operations affecting conditional bindings must specify version 3.
6023	// This can
6024	// be either setting a conditional policy, modifying a conditional
6025	// binding,
6026	// or removing a conditional binding from the stored conditional
6027	// policy.
6028	// Operations on non-conditional policies may specify any valid value
6029	// or
6030	// leave the field unset.
6031	//
6032	// If no etag is provided in the call to `setIamPolicy`, any
6033	// version
6034	// compliance checks on the incoming and/or stored policy is skipped.
6035	Version int64 `json:"version,omitempty"`
6036
6037	// ServerResponse contains the HTTP response code and headers from the
6038	// server.
6039	googleapi.ServerResponse `json:"-"`
6040
6041	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
6042	// unconditionally include in API requests. By default, fields with
6043	// empty values are omitted from API requests. However, any non-pointer,
6044	// non-interface field appearing in ForceSendFields will be sent to the
6045	// server regardless of whether the field is empty or not. This may be
6046	// used to include empty fields in Patch requests.
6047	ForceSendFields []string `json:"-"`
6048
6049	// NullFields is a list of field names (e.g. "AuditConfigs") to include
6050	// in API requests with the JSON null value. By default, fields with
6051	// empty values are omitted from API requests. However, any field with
6052	// an empty value appearing in NullFields will be sent to the server as
6053	// null. It is an error if a field in this list has a non-empty value.
6054	// This may be used to include null fields in Patch requests.
6055	NullFields []string `json:"-"`
6056}
6057
6058func (s *GoogleIamV1Policy) MarshalJSON() ([]byte, error) {
6059	type NoMethod GoogleIamV1Policy
6060	raw := NoMethod(*s)
6061	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6062}
6063
6064// GoogleIamV1SetIamPolicyRequest: Request message for `SetIamPolicy`
6065// method.
6066type GoogleIamV1SetIamPolicyRequest struct {
6067	// Policy: REQUIRED: The complete policy to be applied to the
6068	// `resource`. The size of
6069	// the policy is limited to a few 10s of KB. An empty policy is a
6070	// valid policy but certain Cloud Platform services (such as
6071	// Projects)
6072	// might reject them.
6073	Policy *GoogleIamV1Policy `json:"policy,omitempty"`
6074
6075	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
6076	// policy to modify. Only
6077	// the fields in the mask will be modified. If no mask is provided,
6078	// the
6079	// following default mask is used:
6080	// paths: "bindings, etag"
6081	// This field is only used by Cloud IAM.
6082	UpdateMask string `json:"updateMask,omitempty"`
6083
6084	// ForceSendFields is a list of field names (e.g. "Policy") to
6085	// unconditionally include in API requests. By default, fields with
6086	// empty values are omitted from API requests. However, any non-pointer,
6087	// non-interface field appearing in ForceSendFields will be sent to the
6088	// server regardless of whether the field is empty or not. This may be
6089	// used to include empty fields in Patch requests.
6090	ForceSendFields []string `json:"-"`
6091
6092	// NullFields is a list of field names (e.g. "Policy") to include in API
6093	// requests with the JSON null value. By default, fields with empty
6094	// values are omitted from API requests. However, any field with an
6095	// empty value appearing in NullFields will be sent to the server as
6096	// null. It is an error if a field in this list has a non-empty value.
6097	// This may be used to include null fields in Patch requests.
6098	NullFields []string `json:"-"`
6099}
6100
6101func (s *GoogleIamV1SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
6102	type NoMethod GoogleIamV1SetIamPolicyRequest
6103	raw := NoMethod(*s)
6104	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6105}
6106
6107// GoogleIamV1TestIamPermissionsRequest: Request message for
6108// `TestIamPermissions` method.
6109type GoogleIamV1TestIamPermissionsRequest struct {
6110	// Permissions: The set of permissions to check for the `resource`.
6111	// Permissions with
6112	// wildcards (such as '*' or 'storage.*') are not allowed. For
6113	// more
6114	// information see
6115	// [IAM
6116	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
6117	Permissions []string `json:"permissions,omitempty"`
6118
6119	// ForceSendFields is a list of field names (e.g. "Permissions") to
6120	// unconditionally include in API requests. By default, fields with
6121	// empty values are omitted from API requests. However, any non-pointer,
6122	// non-interface field appearing in ForceSendFields will be sent to the
6123	// server regardless of whether the field is empty or not. This may be
6124	// used to include empty fields in Patch requests.
6125	ForceSendFields []string `json:"-"`
6126
6127	// NullFields is a list of field names (e.g. "Permissions") to include
6128	// in API requests with the JSON null value. By default, fields with
6129	// empty values are omitted from API requests. However, any field with
6130	// an empty value appearing in NullFields will be sent to the server as
6131	// null. It is an error if a field in this list has a non-empty value.
6132	// This may be used to include null fields in Patch requests.
6133	NullFields []string `json:"-"`
6134}
6135
6136func (s *GoogleIamV1TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
6137	type NoMethod GoogleIamV1TestIamPermissionsRequest
6138	raw := NoMethod(*s)
6139	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6140}
6141
6142// GoogleIamV1TestIamPermissionsResponse: Response message for
6143// `TestIamPermissions` method.
6144type GoogleIamV1TestIamPermissionsResponse struct {
6145	// Permissions: A subset of `TestPermissionsRequest.permissions` that
6146	// the caller is
6147	// allowed.
6148	Permissions []string `json:"permissions,omitempty"`
6149
6150	// ServerResponse contains the HTTP response code and headers from the
6151	// server.
6152	googleapi.ServerResponse `json:"-"`
6153
6154	// ForceSendFields is a list of field names (e.g. "Permissions") to
6155	// unconditionally include in API requests. By default, fields with
6156	// empty values are omitted from API requests. However, any non-pointer,
6157	// non-interface field appearing in ForceSendFields will be sent to the
6158	// server regardless of whether the field is empty or not. This may be
6159	// used to include empty fields in Patch requests.
6160	ForceSendFields []string `json:"-"`
6161
6162	// NullFields is a list of field names (e.g. "Permissions") to include
6163	// in API requests with the JSON null value. By default, fields with
6164	// empty values are omitted from API requests. However, any field with
6165	// an empty value appearing in NullFields will be sent to the server as
6166	// null. It is an error if a field in this list has a non-empty value.
6167	// This may be used to include null fields in Patch requests.
6168	NullFields []string `json:"-"`
6169}
6170
6171func (s *GoogleIamV1TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
6172	type NoMethod GoogleIamV1TestIamPermissionsResponse
6173	raw := NoMethod(*s)
6174	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6175}
6176
6177// GoogleLongrunningCancelOperationRequest: The request message for
6178// Operations.CancelOperation.
6179type GoogleLongrunningCancelOperationRequest struct {
6180}
6181
6182// GoogleLongrunningListOperationsResponse: The response message for
6183// Operations.ListOperations.
6184type GoogleLongrunningListOperationsResponse struct {
6185	// NextPageToken: The standard List next-page token.
6186	NextPageToken string `json:"nextPageToken,omitempty"`
6187
6188	// Operations: A list of operations that matches the specified filter in
6189	// the request.
6190	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
6191
6192	// ServerResponse contains the HTTP response code and headers from the
6193	// server.
6194	googleapi.ServerResponse `json:"-"`
6195
6196	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
6197	// unconditionally include in API requests. By default, fields with
6198	// empty values are omitted from API requests. However, any non-pointer,
6199	// non-interface field appearing in ForceSendFields will be sent to the
6200	// server regardless of whether the field is empty or not. This may be
6201	// used to include empty fields in Patch requests.
6202	ForceSendFields []string `json:"-"`
6203
6204	// NullFields is a list of field names (e.g. "NextPageToken") to include
6205	// in API requests with the JSON null value. By default, fields with
6206	// empty values are omitted from API requests. However, any field with
6207	// an empty value appearing in NullFields will be sent to the server as
6208	// null. It is an error if a field in this list has a non-empty value.
6209	// This may be used to include null fields in Patch requests.
6210	NullFields []string `json:"-"`
6211}
6212
6213func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
6214	type NoMethod GoogleLongrunningListOperationsResponse
6215	raw := NoMethod(*s)
6216	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6217}
6218
6219// GoogleLongrunningOperation: This resource represents a long-running
6220// operation that is the result of a
6221// network API call.
6222type GoogleLongrunningOperation struct {
6223	// Done: If the value is `false`, it means the operation is still in
6224	// progress.
6225	// If `true`, the operation is completed, and either `error` or
6226	// `response` is
6227	// available.
6228	Done bool `json:"done,omitempty"`
6229
6230	// Error: The error result of the operation in case of failure or
6231	// cancellation.
6232	Error *GoogleRpcStatus `json:"error,omitempty"`
6233
6234	// Metadata: Service-specific metadata associated with the operation.
6235	// It typically
6236	// contains progress information and common metadata such as create
6237	// time.
6238	// Some services might not provide such metadata.  Any method that
6239	// returns a
6240	// long-running operation should document the metadata type, if any.
6241	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6242
6243	// Name: The server-assigned name, which is only unique within the same
6244	// service that
6245	// originally returns it. If you use the default HTTP mapping,
6246	// the
6247	// `name` should be a resource name ending with
6248	// `operations/{unique_id}`.
6249	Name string `json:"name,omitempty"`
6250
6251	// Response: The normal response of the operation in case of success.
6252	// If the original
6253	// method returns no data on success, such as `Delete`, the response
6254	// is
6255	// `google.protobuf.Empty`.  If the original method is
6256	// standard
6257	// `Get`/`Create`/`Update`, the response should be the resource.  For
6258	// other
6259	// methods, the response should have the type `XxxResponse`, where
6260	// `Xxx`
6261	// is the original method name.  For example, if the original method
6262	// name
6263	// is `TakeSnapshot()`, the inferred response type
6264	// is
6265	// `TakeSnapshotResponse`.
6266	Response googleapi.RawMessage `json:"response,omitempty"`
6267
6268	// ServerResponse contains the HTTP response code and headers from the
6269	// server.
6270	googleapi.ServerResponse `json:"-"`
6271
6272	// ForceSendFields is a list of field names (e.g. "Done") to
6273	// unconditionally include in API requests. By default, fields with
6274	// empty values are omitted from API requests. However, any non-pointer,
6275	// non-interface field appearing in ForceSendFields will be sent to the
6276	// server regardless of whether the field is empty or not. This may be
6277	// used to include empty fields in Patch requests.
6278	ForceSendFields []string `json:"-"`
6279
6280	// NullFields is a list of field names (e.g. "Done") to include in API
6281	// requests with the JSON null value. By default, fields with empty
6282	// values are omitted from API requests. However, any field with an
6283	// empty value appearing in NullFields will be sent to the server as
6284	// null. It is an error if a field in this list has a non-empty value.
6285	// This may be used to include null fields in Patch requests.
6286	NullFields []string `json:"-"`
6287}
6288
6289func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
6290	type NoMethod GoogleLongrunningOperation
6291	raw := NoMethod(*s)
6292	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6293}
6294
6295// GoogleProtobufEmpty: A generic empty message that you can re-use to
6296// avoid defining duplicated
6297// empty messages in your APIs. A typical example is to use it as the
6298// request
6299// or the response type of an API method. For instance:
6300//
6301//     service Foo {
6302//       rpc Bar(google.protobuf.Empty) returns
6303// (google.protobuf.Empty);
6304//     }
6305//
6306// The JSON representation for `Empty` is empty JSON object `{}`.
6307type GoogleProtobufEmpty struct {
6308	// ServerResponse contains the HTTP response code and headers from the
6309	// server.
6310	googleapi.ServerResponse `json:"-"`
6311}
6312
6313// GoogleRpcStatus: The `Status` type defines a logical error model that
6314// is suitable for
6315// different programming environments, including REST APIs and RPC APIs.
6316// It is
6317// used by [gRPC](https://github.com/grpc). Each `Status` message
6318// contains
6319// three pieces of data: error code, error message, and error
6320// details.
6321//
6322// You can find out more about this error model and how to work with it
6323// in the
6324// [API Design Guide](https://cloud.google.com/apis/design/errors).
6325type GoogleRpcStatus struct {
6326	// Code: The status code, which should be an enum value of
6327	// google.rpc.Code.
6328	Code int64 `json:"code,omitempty"`
6329
6330	// Details: A list of messages that carry the error details.  There is a
6331	// common set of
6332	// message types for APIs to use.
6333	Details []googleapi.RawMessage `json:"details,omitempty"`
6334
6335	// Message: A developer-facing error message, which should be in
6336	// English. Any
6337	// user-facing error message should be localized and sent in
6338	// the
6339	// google.rpc.Status.details field, or localized by the client.
6340	Message string `json:"message,omitempty"`
6341
6342	// ForceSendFields is a list of field names (e.g. "Code") to
6343	// unconditionally include in API requests. By default, fields with
6344	// empty values are omitted from API requests. However, any non-pointer,
6345	// non-interface field appearing in ForceSendFields will be sent to the
6346	// server regardless of whether the field is empty or not. This may be
6347	// used to include empty fields in Patch requests.
6348	ForceSendFields []string `json:"-"`
6349
6350	// NullFields is a list of field names (e.g. "Code") to include in API
6351	// requests with the JSON null value. By default, fields with empty
6352	// values are omitted from API requests. However, any field with an
6353	// empty value appearing in NullFields will be sent to the server as
6354	// null. It is an error if a field in this list has a non-empty value.
6355	// This may be used to include null fields in Patch requests.
6356	NullFields []string `json:"-"`
6357}
6358
6359func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
6360	type NoMethod GoogleRpcStatus
6361	raw := NoMethod(*s)
6362	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6363}
6364
6365// GoogleTypeExpr: Represents an expression text. Example:
6366//
6367//     title: "User account presence"
6368//     description: "Determines whether the request has a user account"
6369//     expression: "size(request.user) > 0"
6370type GoogleTypeExpr struct {
6371	// Description: An optional description of the expression. This is a
6372	// longer text which
6373	// describes the expression, e.g. when hovered over it in a UI.
6374	Description string `json:"description,omitempty"`
6375
6376	// Expression: Textual representation of an expression in
6377	// Common Expression Language syntax.
6378	//
6379	// The application context of the containing message determines
6380	// which
6381	// well-known feature set of CEL is supported.
6382	Expression string `json:"expression,omitempty"`
6383
6384	// Location: An optional string indicating the location of the
6385	// expression for error
6386	// reporting, e.g. a file name and a position in the file.
6387	Location string `json:"location,omitempty"`
6388
6389	// Title: An optional title for the expression, i.e. a short string
6390	// describing
6391	// its purpose. This can be used e.g. in UIs which allow to enter
6392	// the
6393	// expression.
6394	Title string `json:"title,omitempty"`
6395
6396	// ForceSendFields is a list of field names (e.g. "Description") to
6397	// unconditionally include in API requests. By default, fields with
6398	// empty values are omitted from API requests. However, any non-pointer,
6399	// non-interface field appearing in ForceSendFields will be sent to the
6400	// server regardless of whether the field is empty or not. This may be
6401	// used to include empty fields in Patch requests.
6402	ForceSendFields []string `json:"-"`
6403
6404	// NullFields is a list of field names (e.g. "Description") to include
6405	// in API requests with the JSON null value. By default, fields with
6406	// empty values are omitted from API requests. However, any field with
6407	// an empty value appearing in NullFields will be sent to the server as
6408	// null. It is an error if a field in this list has a non-empty value.
6409	// This may be used to include null fields in Patch requests.
6410	NullFields []string `json:"-"`
6411}
6412
6413func (s *GoogleTypeExpr) MarshalJSON() ([]byte, error) {
6414	type NoMethod GoogleTypeExpr
6415	raw := NoMethod(*s)
6416	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6417}
6418
6419// method id "apigee.hybrid.issuers.list":
6420
6421type HybridIssuersListCall struct {
6422	s            *Service
6423	name         string
6424	urlParams_   gensupport.URLParams
6425	ifNoneMatch_ string
6426	ctx_         context.Context
6427	header_      http.Header
6428}
6429
6430// List: Lists hybrid services and its trusted issuers service account
6431// ids.
6432// This api is authenticated and unauthorized(allow all the users) and
6433// used by
6434// runtime authn-authz service to query control plane's issuer service
6435// account
6436// ids.
6437func (r *HybridIssuersService) List(name string) *HybridIssuersListCall {
6438	c := &HybridIssuersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6439	c.name = name
6440	return c
6441}
6442
6443// Fields allows partial responses to be retrieved. See
6444// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6445// for more information.
6446func (c *HybridIssuersListCall) Fields(s ...googleapi.Field) *HybridIssuersListCall {
6447	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6448	return c
6449}
6450
6451// IfNoneMatch sets the optional parameter which makes the operation
6452// fail if the object's ETag matches the given value. This is useful for
6453// getting updates only after the object has changed since the last
6454// request. Use googleapi.IsNotModified to check whether the response
6455// error from Do is the result of In-None-Match.
6456func (c *HybridIssuersListCall) IfNoneMatch(entityTag string) *HybridIssuersListCall {
6457	c.ifNoneMatch_ = entityTag
6458	return c
6459}
6460
6461// Context sets the context to be used in this call's Do method. Any
6462// pending HTTP request will be aborted if the provided context is
6463// canceled.
6464func (c *HybridIssuersListCall) Context(ctx context.Context) *HybridIssuersListCall {
6465	c.ctx_ = ctx
6466	return c
6467}
6468
6469// Header returns an http.Header that can be modified by the caller to
6470// add HTTP headers to the request.
6471func (c *HybridIssuersListCall) Header() http.Header {
6472	if c.header_ == nil {
6473		c.header_ = make(http.Header)
6474	}
6475	return c.header_
6476}
6477
6478func (c *HybridIssuersListCall) doRequest(alt string) (*http.Response, error) {
6479	reqHeaders := make(http.Header)
6480	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6481	for k, v := range c.header_ {
6482		reqHeaders[k] = v
6483	}
6484	reqHeaders.Set("User-Agent", c.s.userAgent())
6485	if c.ifNoneMatch_ != "" {
6486		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6487	}
6488	var body io.Reader = nil
6489	c.urlParams_.Set("alt", alt)
6490	c.urlParams_.Set("prettyPrint", "false")
6491	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6492	urls += "?" + c.urlParams_.Encode()
6493	req, err := http.NewRequest("GET", urls, body)
6494	if err != nil {
6495		return nil, err
6496	}
6497	req.Header = reqHeaders
6498	googleapi.Expand(req.URL, map[string]string{
6499		"name": c.name,
6500	})
6501	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6502}
6503
6504// Do executes the "apigee.hybrid.issuers.list" call.
6505// Exactly one of *GoogleCloudApigeeV1ListHybridIssuersResponse or error
6506// will be non-nil. Any non-2xx status code is an error. Response
6507// headers are in either
6508// *GoogleCloudApigeeV1ListHybridIssuersResponse.ServerResponse.Header
6509// or (if a response was returned at all) in
6510// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6511// whether the returned error was because http.StatusNotModified was
6512// returned.
6513func (c *HybridIssuersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListHybridIssuersResponse, error) {
6514	gensupport.SetOptions(c.urlParams_, opts...)
6515	res, err := c.doRequest("json")
6516	if res != nil && res.StatusCode == http.StatusNotModified {
6517		if res.Body != nil {
6518			res.Body.Close()
6519		}
6520		return nil, &googleapi.Error{
6521			Code:   res.StatusCode,
6522			Header: res.Header,
6523		}
6524	}
6525	if err != nil {
6526		return nil, err
6527	}
6528	defer googleapi.CloseBody(res)
6529	if err := googleapi.CheckResponse(res); err != nil {
6530		return nil, err
6531	}
6532	ret := &GoogleCloudApigeeV1ListHybridIssuersResponse{
6533		ServerResponse: googleapi.ServerResponse{
6534			Header:         res.Header,
6535			HTTPStatusCode: res.StatusCode,
6536		},
6537	}
6538	target := &ret
6539	if err := gensupport.DecodeResponse(target, res); err != nil {
6540		return nil, err
6541	}
6542	return ret, nil
6543	// {
6544	//   "description": "Lists hybrid services and its trusted issuers service account ids.\nThis api is authenticated and unauthorized(allow all the users) and used by\nruntime authn-authz service to query control plane's issuer service account\nids.",
6545	//   "flatPath": "v1/hybrid/issuers",
6546	//   "httpMethod": "GET",
6547	//   "id": "apigee.hybrid.issuers.list",
6548	//   "parameterOrder": [
6549	//     "name"
6550	//   ],
6551	//   "parameters": {
6552	//     "name": {
6553	//       "description": "Required. Must be of the form `hybrid/issuers`.",
6554	//       "location": "path",
6555	//       "pattern": "^hybrid/issuers$",
6556	//       "required": true,
6557	//       "type": "string"
6558	//     }
6559	//   },
6560	//   "path": "v1/{+name}",
6561	//   "response": {
6562	//     "$ref": "GoogleCloudApigeeV1ListHybridIssuersResponse"
6563	//   },
6564	//   "scopes": [
6565	//     "https://www.googleapis.com/auth/cloud-platform"
6566	//   ]
6567	// }
6568
6569}
6570
6571// method id "apigee.organizations.create":
6572
6573type OrganizationsCreateCall struct {
6574	s                               *Service
6575	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
6576	urlParams_                      gensupport.URLParams
6577	ctx_                            context.Context
6578	header_                         http.Header
6579}
6580
6581// Create: Creates an Organization. Only Name and
6582// Analytics Region will be used from the
6583// request body.
6584func (r *OrganizationsService) Create(googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsCreateCall {
6585	c := &OrganizationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6586	c.googlecloudapigeev1organization = googlecloudapigeev1organization
6587	return c
6588}
6589
6590// Parent sets the optional parameter "parent": Required. The name of
6591// the project in which to associate the organization. Values are
6592// of the form `projects/<project>`.
6593func (c *OrganizationsCreateCall) Parent(parent string) *OrganizationsCreateCall {
6594	c.urlParams_.Set("parent", parent)
6595	return c
6596}
6597
6598// Fields allows partial responses to be retrieved. See
6599// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6600// for more information.
6601func (c *OrganizationsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCreateCall {
6602	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6603	return c
6604}
6605
6606// Context sets the context to be used in this call's Do method. Any
6607// pending HTTP request will be aborted if the provided context is
6608// canceled.
6609func (c *OrganizationsCreateCall) Context(ctx context.Context) *OrganizationsCreateCall {
6610	c.ctx_ = ctx
6611	return c
6612}
6613
6614// Header returns an http.Header that can be modified by the caller to
6615// add HTTP headers to the request.
6616func (c *OrganizationsCreateCall) Header() http.Header {
6617	if c.header_ == nil {
6618		c.header_ = make(http.Header)
6619	}
6620	return c.header_
6621}
6622
6623func (c *OrganizationsCreateCall) doRequest(alt string) (*http.Response, error) {
6624	reqHeaders := make(http.Header)
6625	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6626	for k, v := range c.header_ {
6627		reqHeaders[k] = v
6628	}
6629	reqHeaders.Set("User-Agent", c.s.userAgent())
6630	var body io.Reader = nil
6631	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
6632	if err != nil {
6633		return nil, err
6634	}
6635	reqHeaders.Set("Content-Type", "application/json")
6636	c.urlParams_.Set("alt", alt)
6637	c.urlParams_.Set("prettyPrint", "false")
6638	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/organizations")
6639	urls += "?" + c.urlParams_.Encode()
6640	req, err := http.NewRequest("POST", urls, body)
6641	if err != nil {
6642		return nil, err
6643	}
6644	req.Header = reqHeaders
6645	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6646}
6647
6648// Do executes the "apigee.organizations.create" call.
6649// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
6650// Any non-2xx status code is an error. Response headers are in either
6651// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
6652// was returned at all) in error.(*googleapi.Error).Header. Use
6653// googleapi.IsNotModified to check whether the returned error was
6654// because http.StatusNotModified was returned.
6655func (c *OrganizationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
6656	gensupport.SetOptions(c.urlParams_, opts...)
6657	res, err := c.doRequest("json")
6658	if res != nil && res.StatusCode == http.StatusNotModified {
6659		if res.Body != nil {
6660			res.Body.Close()
6661		}
6662		return nil, &googleapi.Error{
6663			Code:   res.StatusCode,
6664			Header: res.Header,
6665		}
6666	}
6667	if err != nil {
6668		return nil, err
6669	}
6670	defer googleapi.CloseBody(res)
6671	if err := googleapi.CheckResponse(res); err != nil {
6672		return nil, err
6673	}
6674	ret := &GoogleLongrunningOperation{
6675		ServerResponse: googleapi.ServerResponse{
6676			Header:         res.Header,
6677			HTTPStatusCode: res.StatusCode,
6678		},
6679	}
6680	target := &ret
6681	if err := gensupport.DecodeResponse(target, res); err != nil {
6682		return nil, err
6683	}
6684	return ret, nil
6685	// {
6686	//   "description": "Creates an Organization. Only Name and\nAnalytics Region will be used from the\nrequest body.",
6687	//   "flatPath": "v1/organizations",
6688	//   "httpMethod": "POST",
6689	//   "id": "apigee.organizations.create",
6690	//   "parameterOrder": [],
6691	//   "parameters": {
6692	//     "parent": {
6693	//       "description": "Required. The name of the project in which to associate the organization. Values are\nof the form `projects/\u003cproject\u003e`.",
6694	//       "location": "query",
6695	//       "type": "string"
6696	//     }
6697	//   },
6698	//   "path": "v1/organizations",
6699	//   "request": {
6700	//     "$ref": "GoogleCloudApigeeV1Organization"
6701	//   },
6702	//   "response": {
6703	//     "$ref": "GoogleLongrunningOperation"
6704	//   },
6705	//   "scopes": [
6706	//     "https://www.googleapis.com/auth/cloud-platform"
6707	//   ]
6708	// }
6709
6710}
6711
6712// method id "apigee.organizations.get":
6713
6714type OrganizationsGetCall struct {
6715	s            *Service
6716	name         string
6717	urlParams_   gensupport.URLParams
6718	ifNoneMatch_ string
6719	ctx_         context.Context
6720	header_      http.Header
6721}
6722
6723// Get: Gets an Organization.
6724func (r *OrganizationsService) Get(name string) *OrganizationsGetCall {
6725	c := &OrganizationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6726	c.name = name
6727	return c
6728}
6729
6730// Fields allows partial responses to be retrieved. See
6731// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6732// for more information.
6733func (c *OrganizationsGetCall) Fields(s ...googleapi.Field) *OrganizationsGetCall {
6734	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6735	return c
6736}
6737
6738// IfNoneMatch sets the optional parameter which makes the operation
6739// fail if the object's ETag matches the given value. This is useful for
6740// getting updates only after the object has changed since the last
6741// request. Use googleapi.IsNotModified to check whether the response
6742// error from Do is the result of In-None-Match.
6743func (c *OrganizationsGetCall) IfNoneMatch(entityTag string) *OrganizationsGetCall {
6744	c.ifNoneMatch_ = entityTag
6745	return c
6746}
6747
6748// Context sets the context to be used in this call's Do method. Any
6749// pending HTTP request will be aborted if the provided context is
6750// canceled.
6751func (c *OrganizationsGetCall) Context(ctx context.Context) *OrganizationsGetCall {
6752	c.ctx_ = ctx
6753	return c
6754}
6755
6756// Header returns an http.Header that can be modified by the caller to
6757// add HTTP headers to the request.
6758func (c *OrganizationsGetCall) Header() http.Header {
6759	if c.header_ == nil {
6760		c.header_ = make(http.Header)
6761	}
6762	return c.header_
6763}
6764
6765func (c *OrganizationsGetCall) doRequest(alt string) (*http.Response, error) {
6766	reqHeaders := make(http.Header)
6767	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6768	for k, v := range c.header_ {
6769		reqHeaders[k] = v
6770	}
6771	reqHeaders.Set("User-Agent", c.s.userAgent())
6772	if c.ifNoneMatch_ != "" {
6773		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6774	}
6775	var body io.Reader = nil
6776	c.urlParams_.Set("alt", alt)
6777	c.urlParams_.Set("prettyPrint", "false")
6778	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
6779	urls += "?" + c.urlParams_.Encode()
6780	req, err := http.NewRequest("GET", urls, body)
6781	if err != nil {
6782		return nil, err
6783	}
6784	req.Header = reqHeaders
6785	googleapi.Expand(req.URL, map[string]string{
6786		"name": c.name,
6787	})
6788	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6789}
6790
6791// Do executes the "apigee.organizations.get" call.
6792// Exactly one of *GoogleCloudApigeeV1Organization or error will be
6793// non-nil. Any non-2xx status code is an error. Response headers are in
6794// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
6795// a response was returned at all) in error.(*googleapi.Error).Header.
6796// Use googleapi.IsNotModified to check whether the returned error was
6797// because http.StatusNotModified was returned.
6798func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
6799	gensupport.SetOptions(c.urlParams_, opts...)
6800	res, err := c.doRequest("json")
6801	if res != nil && res.StatusCode == http.StatusNotModified {
6802		if res.Body != nil {
6803			res.Body.Close()
6804		}
6805		return nil, &googleapi.Error{
6806			Code:   res.StatusCode,
6807			Header: res.Header,
6808		}
6809	}
6810	if err != nil {
6811		return nil, err
6812	}
6813	defer googleapi.CloseBody(res)
6814	if err := googleapi.CheckResponse(res); err != nil {
6815		return nil, err
6816	}
6817	ret := &GoogleCloudApigeeV1Organization{
6818		ServerResponse: googleapi.ServerResponse{
6819			Header:         res.Header,
6820			HTTPStatusCode: res.StatusCode,
6821		},
6822	}
6823	target := &ret
6824	if err := gensupport.DecodeResponse(target, res); err != nil {
6825		return nil, err
6826	}
6827	return ret, nil
6828	// {
6829	//   "description": "Gets an Organization.",
6830	//   "flatPath": "v1/organizations/{organizationsId}",
6831	//   "httpMethod": "GET",
6832	//   "id": "apigee.organizations.get",
6833	//   "parameterOrder": [
6834	//     "name"
6835	//   ],
6836	//   "parameters": {
6837	//     "name": {
6838	//       "description": "Required. Organization resource name of the form:\n    `organizations/{organization_id}`",
6839	//       "location": "path",
6840	//       "pattern": "^organizations/[^/]+$",
6841	//       "required": true,
6842	//       "type": "string"
6843	//     }
6844	//   },
6845	//   "path": "v1/{+name}",
6846	//   "response": {
6847	//     "$ref": "GoogleCloudApigeeV1Organization"
6848	//   },
6849	//   "scopes": [
6850	//     "https://www.googleapis.com/auth/cloud-platform"
6851	//   ]
6852	// }
6853
6854}
6855
6856// method id "apigee.organizations.getSyncAuthorization":
6857
6858type OrganizationsGetSyncAuthorizationCall struct {
6859	s                                              *Service
6860	name                                           string
6861	googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest
6862	urlParams_                                     gensupport.URLParams
6863	ctx_                                           context.Context
6864	header_                                        http.Header
6865}
6866
6867// GetSyncAuthorization: Gets an Organization's.
6868func (r *OrganizationsService) GetSyncAuthorization(name string, googlecloudapigeev1getsyncauthorizationrequest *GoogleCloudApigeeV1GetSyncAuthorizationRequest) *OrganizationsGetSyncAuthorizationCall {
6869	c := &OrganizationsGetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6870	c.name = name
6871	c.googlecloudapigeev1getsyncauthorizationrequest = googlecloudapigeev1getsyncauthorizationrequest
6872	return c
6873}
6874
6875// Fields allows partial responses to be retrieved. See
6876// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6877// for more information.
6878func (c *OrganizationsGetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsGetSyncAuthorizationCall {
6879	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6880	return c
6881}
6882
6883// Context sets the context to be used in this call's Do method. Any
6884// pending HTTP request will be aborted if the provided context is
6885// canceled.
6886func (c *OrganizationsGetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsGetSyncAuthorizationCall {
6887	c.ctx_ = ctx
6888	return c
6889}
6890
6891// Header returns an http.Header that can be modified by the caller to
6892// add HTTP headers to the request.
6893func (c *OrganizationsGetSyncAuthorizationCall) Header() http.Header {
6894	if c.header_ == nil {
6895		c.header_ = make(http.Header)
6896	}
6897	return c.header_
6898}
6899
6900func (c *OrganizationsGetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
6901	reqHeaders := make(http.Header)
6902	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
6903	for k, v := range c.header_ {
6904		reqHeaders[k] = v
6905	}
6906	reqHeaders.Set("User-Agent", c.s.userAgent())
6907	var body io.Reader = nil
6908	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1getsyncauthorizationrequest)
6909	if err != nil {
6910		return nil, err
6911	}
6912	reqHeaders.Set("Content-Type", "application/json")
6913	c.urlParams_.Set("alt", alt)
6914	c.urlParams_.Set("prettyPrint", "false")
6915	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:getSyncAuthorization")
6916	urls += "?" + c.urlParams_.Encode()
6917	req, err := http.NewRequest("POST", urls, body)
6918	if err != nil {
6919		return nil, err
6920	}
6921	req.Header = reqHeaders
6922	googleapi.Expand(req.URL, map[string]string{
6923		"name": c.name,
6924	})
6925	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6926}
6927
6928// Do executes the "apigee.organizations.getSyncAuthorization" call.
6929// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
6930// non-nil. Any non-2xx status code is an error. Response headers are in
6931// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
6932// (if a response was returned at all) in
6933// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6934// whether the returned error was because http.StatusNotModified was
6935// returned.
6936func (c *OrganizationsGetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
6937	gensupport.SetOptions(c.urlParams_, opts...)
6938	res, err := c.doRequest("json")
6939	if res != nil && res.StatusCode == http.StatusNotModified {
6940		if res.Body != nil {
6941			res.Body.Close()
6942		}
6943		return nil, &googleapi.Error{
6944			Code:   res.StatusCode,
6945			Header: res.Header,
6946		}
6947	}
6948	if err != nil {
6949		return nil, err
6950	}
6951	defer googleapi.CloseBody(res)
6952	if err := googleapi.CheckResponse(res); err != nil {
6953		return nil, err
6954	}
6955	ret := &GoogleCloudApigeeV1SyncAuthorization{
6956		ServerResponse: googleapi.ServerResponse{
6957			Header:         res.Header,
6958			HTTPStatusCode: res.StatusCode,
6959		},
6960	}
6961	target := &ret
6962	if err := gensupport.DecodeResponse(target, res); err != nil {
6963		return nil, err
6964	}
6965	return ret, nil
6966	// {
6967	//   "description": "Gets an Organization's.",
6968	//   "flatPath": "v1/organizations/{organizationsId}:getSyncAuthorization",
6969	//   "httpMethod": "POST",
6970	//   "id": "apigee.organizations.getSyncAuthorization",
6971	//   "parameterOrder": [
6972	//     "name"
6973	//   ],
6974	//   "parameters": {
6975	//     "name": {
6976	//       "description": "Required. Organization resource name of the form:\n    `organizations/{organization_id}`",
6977	//       "location": "path",
6978	//       "pattern": "^organizations/[^/]+$",
6979	//       "required": true,
6980	//       "type": "string"
6981	//     }
6982	//   },
6983	//   "path": "v1/{+name}:getSyncAuthorization",
6984	//   "request": {
6985	//     "$ref": "GoogleCloudApigeeV1GetSyncAuthorizationRequest"
6986	//   },
6987	//   "response": {
6988	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
6989	//   },
6990	//   "scopes": [
6991	//     "https://www.googleapis.com/auth/cloud-platform"
6992	//   ]
6993	// }
6994
6995}
6996
6997// method id "apigee.organizations.list":
6998
6999type OrganizationsListCall struct {
7000	s            *Service
7001	parent       string
7002	urlParams_   gensupport.URLParams
7003	ifNoneMatch_ string
7004	ctx_         context.Context
7005	header_      http.Header
7006}
7007
7008// List: Lists the Apigee organizations, and the related projects that a
7009// user has
7010// permissions for.
7011// This call will be used by the Unified Experience in order to populate
7012// the
7013// list of Apigee organizations in a dropdown that the user has access
7014// to.
7015func (r *OrganizationsService) List(parent string) *OrganizationsListCall {
7016	c := &OrganizationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7017	c.parent = parent
7018	return c
7019}
7020
7021// Fields allows partial responses to be retrieved. See
7022// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7023// for more information.
7024func (c *OrganizationsListCall) Fields(s ...googleapi.Field) *OrganizationsListCall {
7025	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7026	return c
7027}
7028
7029// IfNoneMatch sets the optional parameter which makes the operation
7030// fail if the object's ETag matches the given value. This is useful for
7031// getting updates only after the object has changed since the last
7032// request. Use googleapi.IsNotModified to check whether the response
7033// error from Do is the result of In-None-Match.
7034func (c *OrganizationsListCall) IfNoneMatch(entityTag string) *OrganizationsListCall {
7035	c.ifNoneMatch_ = entityTag
7036	return c
7037}
7038
7039// Context sets the context to be used in this call's Do method. Any
7040// pending HTTP request will be aborted if the provided context is
7041// canceled.
7042func (c *OrganizationsListCall) Context(ctx context.Context) *OrganizationsListCall {
7043	c.ctx_ = ctx
7044	return c
7045}
7046
7047// Header returns an http.Header that can be modified by the caller to
7048// add HTTP headers to the request.
7049func (c *OrganizationsListCall) Header() http.Header {
7050	if c.header_ == nil {
7051		c.header_ = make(http.Header)
7052	}
7053	return c.header_
7054}
7055
7056func (c *OrganizationsListCall) doRequest(alt string) (*http.Response, error) {
7057	reqHeaders := make(http.Header)
7058	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7059	for k, v := range c.header_ {
7060		reqHeaders[k] = v
7061	}
7062	reqHeaders.Set("User-Agent", c.s.userAgent())
7063	if c.ifNoneMatch_ != "" {
7064		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7065	}
7066	var body io.Reader = nil
7067	c.urlParams_.Set("alt", alt)
7068	c.urlParams_.Set("prettyPrint", "false")
7069	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}")
7070	urls += "?" + c.urlParams_.Encode()
7071	req, err := http.NewRequest("GET", urls, body)
7072	if err != nil {
7073		return nil, err
7074	}
7075	req.Header = reqHeaders
7076	googleapi.Expand(req.URL, map[string]string{
7077		"parent": c.parent,
7078	})
7079	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7080}
7081
7082// Do executes the "apigee.organizations.list" call.
7083// Exactly one of *GoogleCloudApigeeV1ListOrganizationsResponse or error
7084// will be non-nil. Any non-2xx status code is an error. Response
7085// headers are in either
7086// *GoogleCloudApigeeV1ListOrganizationsResponse.ServerResponse.Header
7087// or (if a response was returned at all) in
7088// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7089// whether the returned error was because http.StatusNotModified was
7090// returned.
7091func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOrganizationsResponse, error) {
7092	gensupport.SetOptions(c.urlParams_, opts...)
7093	res, err := c.doRequest("json")
7094	if res != nil && res.StatusCode == http.StatusNotModified {
7095		if res.Body != nil {
7096			res.Body.Close()
7097		}
7098		return nil, &googleapi.Error{
7099			Code:   res.StatusCode,
7100			Header: res.Header,
7101		}
7102	}
7103	if err != nil {
7104		return nil, err
7105	}
7106	defer googleapi.CloseBody(res)
7107	if err := googleapi.CheckResponse(res); err != nil {
7108		return nil, err
7109	}
7110	ret := &GoogleCloudApigeeV1ListOrganizationsResponse{
7111		ServerResponse: googleapi.ServerResponse{
7112			Header:         res.Header,
7113			HTTPStatusCode: res.StatusCode,
7114		},
7115	}
7116	target := &ret
7117	if err := gensupport.DecodeResponse(target, res); err != nil {
7118		return nil, err
7119	}
7120	return ret, nil
7121	// {
7122	//   "description": "Lists the Apigee organizations, and the related projects that a user has\npermissions for.\nThis call will be used by the Unified Experience in order to populate the\nlist of Apigee organizations in a dropdown that the user has access to.",
7123	//   "flatPath": "v1/organizations",
7124	//   "httpMethod": "GET",
7125	//   "id": "apigee.organizations.list",
7126	//   "parameterOrder": [
7127	//     "parent"
7128	//   ],
7129	//   "parameters": {
7130	//     "parent": {
7131	//       "description": "Required. Must be of the form `organizations`.",
7132	//       "location": "path",
7133	//       "pattern": "^organizations$",
7134	//       "required": true,
7135	//       "type": "string"
7136	//     }
7137	//   },
7138	//   "path": "v1/{+parent}",
7139	//   "response": {
7140	//     "$ref": "GoogleCloudApigeeV1ListOrganizationsResponse"
7141	//   },
7142	//   "scopes": [
7143	//     "https://www.googleapis.com/auth/cloud-platform"
7144	//   ]
7145	// }
7146
7147}
7148
7149// method id "apigee.organizations.setSyncAuthorization":
7150
7151type OrganizationsSetSyncAuthorizationCall struct {
7152	s                                    *Service
7153	name                                 string
7154	googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization
7155	urlParams_                           gensupport.URLParams
7156	ctx_                                 context.Context
7157	header_                              http.Header
7158}
7159
7160// SetSyncAuthorization: Updates an Organization's.
7161func (r *OrganizationsService) SetSyncAuthorization(name string, googlecloudapigeev1syncauthorization *GoogleCloudApigeeV1SyncAuthorization) *OrganizationsSetSyncAuthorizationCall {
7162	c := &OrganizationsSetSyncAuthorizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7163	c.name = name
7164	c.googlecloudapigeev1syncauthorization = googlecloudapigeev1syncauthorization
7165	return c
7166}
7167
7168// Fields allows partial responses to be retrieved. See
7169// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7170// for more information.
7171func (c *OrganizationsSetSyncAuthorizationCall) Fields(s ...googleapi.Field) *OrganizationsSetSyncAuthorizationCall {
7172	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7173	return c
7174}
7175
7176// Context sets the context to be used in this call's Do method. Any
7177// pending HTTP request will be aborted if the provided context is
7178// canceled.
7179func (c *OrganizationsSetSyncAuthorizationCall) Context(ctx context.Context) *OrganizationsSetSyncAuthorizationCall {
7180	c.ctx_ = ctx
7181	return c
7182}
7183
7184// Header returns an http.Header that can be modified by the caller to
7185// add HTTP headers to the request.
7186func (c *OrganizationsSetSyncAuthorizationCall) Header() http.Header {
7187	if c.header_ == nil {
7188		c.header_ = make(http.Header)
7189	}
7190	return c.header_
7191}
7192
7193func (c *OrganizationsSetSyncAuthorizationCall) doRequest(alt string) (*http.Response, error) {
7194	reqHeaders := make(http.Header)
7195	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7196	for k, v := range c.header_ {
7197		reqHeaders[k] = v
7198	}
7199	reqHeaders.Set("User-Agent", c.s.userAgent())
7200	var body io.Reader = nil
7201	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1syncauthorization)
7202	if err != nil {
7203		return nil, err
7204	}
7205	reqHeaders.Set("Content-Type", "application/json")
7206	c.urlParams_.Set("alt", alt)
7207	c.urlParams_.Set("prettyPrint", "false")
7208	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:setSyncAuthorization")
7209	urls += "?" + c.urlParams_.Encode()
7210	req, err := http.NewRequest("POST", urls, body)
7211	if err != nil {
7212		return nil, err
7213	}
7214	req.Header = reqHeaders
7215	googleapi.Expand(req.URL, map[string]string{
7216		"name": c.name,
7217	})
7218	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7219}
7220
7221// Do executes the "apigee.organizations.setSyncAuthorization" call.
7222// Exactly one of *GoogleCloudApigeeV1SyncAuthorization or error will be
7223// non-nil. Any non-2xx status code is an error. Response headers are in
7224// either *GoogleCloudApigeeV1SyncAuthorization.ServerResponse.Header or
7225// (if a response was returned at all) in
7226// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7227// whether the returned error was because http.StatusNotModified was
7228// returned.
7229func (c *OrganizationsSetSyncAuthorizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SyncAuthorization, error) {
7230	gensupport.SetOptions(c.urlParams_, opts...)
7231	res, err := c.doRequest("json")
7232	if res != nil && res.StatusCode == http.StatusNotModified {
7233		if res.Body != nil {
7234			res.Body.Close()
7235		}
7236		return nil, &googleapi.Error{
7237			Code:   res.StatusCode,
7238			Header: res.Header,
7239		}
7240	}
7241	if err != nil {
7242		return nil, err
7243	}
7244	defer googleapi.CloseBody(res)
7245	if err := googleapi.CheckResponse(res); err != nil {
7246		return nil, err
7247	}
7248	ret := &GoogleCloudApigeeV1SyncAuthorization{
7249		ServerResponse: googleapi.ServerResponse{
7250			Header:         res.Header,
7251			HTTPStatusCode: res.StatusCode,
7252		},
7253	}
7254	target := &ret
7255	if err := gensupport.DecodeResponse(target, res); err != nil {
7256		return nil, err
7257	}
7258	return ret, nil
7259	// {
7260	//   "description": "Updates an Organization's.",
7261	//   "flatPath": "v1/organizations/{organizationsId}:setSyncAuthorization",
7262	//   "httpMethod": "POST",
7263	//   "id": "apigee.organizations.setSyncAuthorization",
7264	//   "parameterOrder": [
7265	//     "name"
7266	//   ],
7267	//   "parameters": {
7268	//     "name": {
7269	//       "description": "Required. Organization resource name of the form:\n    `organizations/{organization_id}`",
7270	//       "location": "path",
7271	//       "pattern": "^organizations/[^/]+$",
7272	//       "required": true,
7273	//       "type": "string"
7274	//     }
7275	//   },
7276	//   "path": "v1/{+name}:setSyncAuthorization",
7277	//   "request": {
7278	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
7279	//   },
7280	//   "response": {
7281	//     "$ref": "GoogleCloudApigeeV1SyncAuthorization"
7282	//   },
7283	//   "scopes": [
7284	//     "https://www.googleapis.com/auth/cloud-platform"
7285	//   ]
7286	// }
7287
7288}
7289
7290// method id "apigee.organizations.update":
7291
7292type OrganizationsUpdateCall struct {
7293	s                               *Service
7294	name                            string
7295	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
7296	urlParams_                      gensupport.URLParams
7297	ctx_                            context.Context
7298	header_                         http.Header
7299}
7300
7301// Update: Updates an Organization's properties. No other fields will
7302// be updated.
7303func (r *OrganizationsService) Update(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateCall {
7304	c := &OrganizationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7305	c.name = name
7306	c.googlecloudapigeev1organization = googlecloudapigeev1organization
7307	return c
7308}
7309
7310// Fields allows partial responses to be retrieved. See
7311// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7312// for more information.
7313func (c *OrganizationsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsUpdateCall {
7314	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7315	return c
7316}
7317
7318// Context sets the context to be used in this call's Do method. Any
7319// pending HTTP request will be aborted if the provided context is
7320// canceled.
7321func (c *OrganizationsUpdateCall) Context(ctx context.Context) *OrganizationsUpdateCall {
7322	c.ctx_ = ctx
7323	return c
7324}
7325
7326// Header returns an http.Header that can be modified by the caller to
7327// add HTTP headers to the request.
7328func (c *OrganizationsUpdateCall) Header() http.Header {
7329	if c.header_ == nil {
7330		c.header_ = make(http.Header)
7331	}
7332	return c.header_
7333}
7334
7335func (c *OrganizationsUpdateCall) doRequest(alt string) (*http.Response, error) {
7336	reqHeaders := make(http.Header)
7337	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7338	for k, v := range c.header_ {
7339		reqHeaders[k] = v
7340	}
7341	reqHeaders.Set("User-Agent", c.s.userAgent())
7342	var body io.Reader = nil
7343	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
7344	if err != nil {
7345		return nil, err
7346	}
7347	reqHeaders.Set("Content-Type", "application/json")
7348	c.urlParams_.Set("alt", alt)
7349	c.urlParams_.Set("prettyPrint", "false")
7350	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7351	urls += "?" + c.urlParams_.Encode()
7352	req, err := http.NewRequest("PUT", urls, body)
7353	if err != nil {
7354		return nil, err
7355	}
7356	req.Header = reqHeaders
7357	googleapi.Expand(req.URL, map[string]string{
7358		"name": c.name,
7359	})
7360	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7361}
7362
7363// Do executes the "apigee.organizations.update" call.
7364// Exactly one of *GoogleCloudApigeeV1Organization or error will be
7365// non-nil. Any non-2xx status code is an error. Response headers are in
7366// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
7367// a response was returned at all) in error.(*googleapi.Error).Header.
7368// Use googleapi.IsNotModified to check whether the returned error was
7369// because http.StatusNotModified was returned.
7370func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
7371	gensupport.SetOptions(c.urlParams_, opts...)
7372	res, err := c.doRequest("json")
7373	if res != nil && res.StatusCode == http.StatusNotModified {
7374		if res.Body != nil {
7375			res.Body.Close()
7376		}
7377		return nil, &googleapi.Error{
7378			Code:   res.StatusCode,
7379			Header: res.Header,
7380		}
7381	}
7382	if err != nil {
7383		return nil, err
7384	}
7385	defer googleapi.CloseBody(res)
7386	if err := googleapi.CheckResponse(res); err != nil {
7387		return nil, err
7388	}
7389	ret := &GoogleCloudApigeeV1Organization{
7390		ServerResponse: googleapi.ServerResponse{
7391			Header:         res.Header,
7392			HTTPStatusCode: res.StatusCode,
7393		},
7394	}
7395	target := &ret
7396	if err := gensupport.DecodeResponse(target, res); err != nil {
7397		return nil, err
7398	}
7399	return ret, nil
7400	// {
7401	//   "description": "Updates an Organization's properties. No other fields will\nbe updated.",
7402	//   "flatPath": "v1/organizations/{organizationsId}",
7403	//   "httpMethod": "PUT",
7404	//   "id": "apigee.organizations.update",
7405	//   "parameterOrder": [
7406	//     "name"
7407	//   ],
7408	//   "parameters": {
7409	//     "name": {
7410	//       "description": "Required. Organization resource name of the form:\n    `organizations/{organization_id}`",
7411	//       "location": "path",
7412	//       "pattern": "^organizations/[^/]+$",
7413	//       "required": true,
7414	//       "type": "string"
7415	//     }
7416	//   },
7417	//   "path": "v1/{+name}",
7418	//   "request": {
7419	//     "$ref": "GoogleCloudApigeeV1Organization"
7420	//   },
7421	//   "response": {
7422	//     "$ref": "GoogleCloudApigeeV1Organization"
7423	//   },
7424	//   "scopes": [
7425	//     "https://www.googleapis.com/auth/cloud-platform"
7426	//   ]
7427	// }
7428
7429}
7430
7431// method id "apigee.organizations.updateOrganization":
7432
7433type OrganizationsUpdateOrganizationCall struct {
7434	s                               *Service
7435	name                            string
7436	googlecloudapigeev1organization *GoogleCloudApigeeV1Organization
7437	urlParams_                      gensupport.URLParams
7438	ctx_                            context.Context
7439	header_                         http.Header
7440}
7441
7442// UpdateOrganization: Updates an Organization's properties. No other
7443// fields will
7444// be updated.
7445func (r *OrganizationsService) UpdateOrganization(name string, googlecloudapigeev1organization *GoogleCloudApigeeV1Organization) *OrganizationsUpdateOrganizationCall {
7446	c := &OrganizationsUpdateOrganizationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7447	c.name = name
7448	c.googlecloudapigeev1organization = googlecloudapigeev1organization
7449	return c
7450}
7451
7452// Fields allows partial responses to be retrieved. See
7453// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7454// for more information.
7455func (c *OrganizationsUpdateOrganizationCall) Fields(s ...googleapi.Field) *OrganizationsUpdateOrganizationCall {
7456	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7457	return c
7458}
7459
7460// Context sets the context to be used in this call's Do method. Any
7461// pending HTTP request will be aborted if the provided context is
7462// canceled.
7463func (c *OrganizationsUpdateOrganizationCall) Context(ctx context.Context) *OrganizationsUpdateOrganizationCall {
7464	c.ctx_ = ctx
7465	return c
7466}
7467
7468// Header returns an http.Header that can be modified by the caller to
7469// add HTTP headers to the request.
7470func (c *OrganizationsUpdateOrganizationCall) Header() http.Header {
7471	if c.header_ == nil {
7472		c.header_ = make(http.Header)
7473	}
7474	return c.header_
7475}
7476
7477func (c *OrganizationsUpdateOrganizationCall) doRequest(alt string) (*http.Response, error) {
7478	reqHeaders := make(http.Header)
7479	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7480	for k, v := range c.header_ {
7481		reqHeaders[k] = v
7482	}
7483	reqHeaders.Set("User-Agent", c.s.userAgent())
7484	var body io.Reader = nil
7485	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1organization)
7486	if err != nil {
7487		return nil, err
7488	}
7489	reqHeaders.Set("Content-Type", "application/json")
7490	c.urlParams_.Set("alt", alt)
7491	c.urlParams_.Set("prettyPrint", "false")
7492	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7493	urls += "?" + c.urlParams_.Encode()
7494	req, err := http.NewRequest("POST", urls, body)
7495	if err != nil {
7496		return nil, err
7497	}
7498	req.Header = reqHeaders
7499	googleapi.Expand(req.URL, map[string]string{
7500		"name": c.name,
7501	})
7502	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7503}
7504
7505// Do executes the "apigee.organizations.updateOrganization" call.
7506// Exactly one of *GoogleCloudApigeeV1Organization or error will be
7507// non-nil. Any non-2xx status code is an error. Response headers are in
7508// either *GoogleCloudApigeeV1Organization.ServerResponse.Header or (if
7509// a response was returned at all) in error.(*googleapi.Error).Header.
7510// Use googleapi.IsNotModified to check whether the returned error was
7511// because http.StatusNotModified was returned.
7512func (c *OrganizationsUpdateOrganizationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Organization, error) {
7513	gensupport.SetOptions(c.urlParams_, opts...)
7514	res, err := c.doRequest("json")
7515	if res != nil && res.StatusCode == http.StatusNotModified {
7516		if res.Body != nil {
7517			res.Body.Close()
7518		}
7519		return nil, &googleapi.Error{
7520			Code:   res.StatusCode,
7521			Header: res.Header,
7522		}
7523	}
7524	if err != nil {
7525		return nil, err
7526	}
7527	defer googleapi.CloseBody(res)
7528	if err := googleapi.CheckResponse(res); err != nil {
7529		return nil, err
7530	}
7531	ret := &GoogleCloudApigeeV1Organization{
7532		ServerResponse: googleapi.ServerResponse{
7533			Header:         res.Header,
7534			HTTPStatusCode: res.StatusCode,
7535		},
7536	}
7537	target := &ret
7538	if err := gensupport.DecodeResponse(target, res); err != nil {
7539		return nil, err
7540	}
7541	return ret, nil
7542	// {
7543	//   "description": "Updates an Organization's properties. No other fields will\nbe updated.",
7544	//   "flatPath": "v1/organizations/{organizationsId}",
7545	//   "httpMethod": "POST",
7546	//   "id": "apigee.organizations.updateOrganization",
7547	//   "parameterOrder": [
7548	//     "name"
7549	//   ],
7550	//   "parameters": {
7551	//     "name": {
7552	//       "description": "Required. Organization resource name of the form:\n    `organizations/{organization_id}`",
7553	//       "location": "path",
7554	//       "pattern": "^organizations/[^/]+$",
7555	//       "required": true,
7556	//       "type": "string"
7557	//     }
7558	//   },
7559	//   "path": "v1/{+name}",
7560	//   "request": {
7561	//     "$ref": "GoogleCloudApigeeV1Organization"
7562	//   },
7563	//   "response": {
7564	//     "$ref": "GoogleCloudApigeeV1Organization"
7565	//   },
7566	//   "scopes": [
7567	//     "https://www.googleapis.com/auth/cloud-platform"
7568	//   ]
7569	// }
7570
7571}
7572
7573// method id "apigee.organizations.apiproducts.attributes":
7574
7575type OrganizationsApiproductsAttributesCall struct {
7576	s                             *Service
7577	name                          string
7578	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
7579	urlParams_                    gensupport.URLParams
7580	ctx_                          context.Context
7581	header_                       http.Header
7582}
7583
7584// Attributes: Updates or creates API product attributes. This API
7585// **replaces** the
7586// current list of attributes with the attributes specified in the
7587// request
7588// body. In this way, you can update existing attributes, add new
7589// attributes,
7590// or delete existing attributes by omitting them from the request
7591// body.
7592//
7593// OAuth access tokens and Key Management Service (KMS) entities
7594// (apps,
7595// developers, and API products) are cached for 180 seconds (current
7596// default).
7597// Any custom attributes associated with entities also get cached for at
7598// least
7599// 180 seconds after entity is accessed during runtime.
7600// In this case, the `ExpiresIn` element on the OAuthV2 policy won't be
7601// able
7602// to expire an access token in less than 180 seconds.
7603func (r *OrganizationsApiproductsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsApiproductsAttributesCall {
7604	c := &OrganizationsApiproductsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7605	c.name = name
7606	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
7607	return c
7608}
7609
7610// Fields allows partial responses to be retrieved. See
7611// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7612// for more information.
7613func (c *OrganizationsApiproductsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesCall {
7614	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7615	return c
7616}
7617
7618// Context sets the context to be used in this call's Do method. Any
7619// pending HTTP request will be aborted if the provided context is
7620// canceled.
7621func (c *OrganizationsApiproductsAttributesCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesCall {
7622	c.ctx_ = ctx
7623	return c
7624}
7625
7626// Header returns an http.Header that can be modified by the caller to
7627// add HTTP headers to the request.
7628func (c *OrganizationsApiproductsAttributesCall) Header() http.Header {
7629	if c.header_ == nil {
7630		c.header_ = make(http.Header)
7631	}
7632	return c.header_
7633}
7634
7635func (c *OrganizationsApiproductsAttributesCall) doRequest(alt string) (*http.Response, error) {
7636	reqHeaders := make(http.Header)
7637	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7638	for k, v := range c.header_ {
7639		reqHeaders[k] = v
7640	}
7641	reqHeaders.Set("User-Agent", c.s.userAgent())
7642	var body io.Reader = nil
7643	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
7644	if err != nil {
7645		return nil, err
7646	}
7647	reqHeaders.Set("Content-Type", "application/json")
7648	c.urlParams_.Set("alt", alt)
7649	c.urlParams_.Set("prettyPrint", "false")
7650	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
7651	urls += "?" + c.urlParams_.Encode()
7652	req, err := http.NewRequest("POST", urls, body)
7653	if err != nil {
7654		return nil, err
7655	}
7656	req.Header = reqHeaders
7657	googleapi.Expand(req.URL, map[string]string{
7658		"name": c.name,
7659	})
7660	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7661}
7662
7663// Do executes the "apigee.organizations.apiproducts.attributes" call.
7664// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
7665// non-nil. Any non-2xx status code is an error. Response headers are in
7666// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
7667// response was returned at all) in error.(*googleapi.Error).Header. Use
7668// googleapi.IsNotModified to check whether the returned error was
7669// because http.StatusNotModified was returned.
7670func (c *OrganizationsApiproductsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
7671	gensupport.SetOptions(c.urlParams_, opts...)
7672	res, err := c.doRequest("json")
7673	if res != nil && res.StatusCode == http.StatusNotModified {
7674		if res.Body != nil {
7675			res.Body.Close()
7676		}
7677		return nil, &googleapi.Error{
7678			Code:   res.StatusCode,
7679			Header: res.Header,
7680		}
7681	}
7682	if err != nil {
7683		return nil, err
7684	}
7685	defer googleapi.CloseBody(res)
7686	if err := googleapi.CheckResponse(res); err != nil {
7687		return nil, err
7688	}
7689	ret := &GoogleCloudApigeeV1Attributes{
7690		ServerResponse: googleapi.ServerResponse{
7691			Header:         res.Header,
7692			HTTPStatusCode: res.StatusCode,
7693		},
7694	}
7695	target := &ret
7696	if err := gensupport.DecodeResponse(target, res); err != nil {
7697		return nil, err
7698	}
7699	return ret, nil
7700	// {
7701	//   "description": "Updates or creates API product attributes. This API **replaces** the\ncurrent list of attributes with the attributes specified in the request\nbody. In this way, you can update existing attributes, add new attributes,\nor delete existing attributes by omitting them from the request body.\n\nOAuth access tokens and Key Management Service (KMS) entities (apps,\ndevelopers, and API products) are cached for 180 seconds (current default).\nAny custom attributes associated with entities also get cached for at least\n180 seconds after entity is accessed during runtime.\nIn this case, the `ExpiresIn` element on the OAuthV2 policy won't be able\nto expire an access token in less than 180 seconds.",
7702	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
7703	//   "httpMethod": "POST",
7704	//   "id": "apigee.organizations.apiproducts.attributes",
7705	//   "parameterOrder": [
7706	//     "name"
7707	//   ],
7708	//   "parameters": {
7709	//     "name": {
7710	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
7711	//       "location": "path",
7712	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
7713	//       "required": true,
7714	//       "type": "string"
7715	//     }
7716	//   },
7717	//   "path": "v1/{+name}/attributes",
7718	//   "request": {
7719	//     "$ref": "GoogleCloudApigeeV1Attributes"
7720	//   },
7721	//   "response": {
7722	//     "$ref": "GoogleCloudApigeeV1Attributes"
7723	//   },
7724	//   "scopes": [
7725	//     "https://www.googleapis.com/auth/cloud-platform"
7726	//   ]
7727	// }
7728
7729}
7730
7731// method id "apigee.organizations.apiproducts.create":
7732
7733type OrganizationsApiproductsCreateCall struct {
7734	s                             *Service
7735	parent                        string
7736	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
7737	urlParams_                    gensupport.URLParams
7738	ctx_                          context.Context
7739	header_                       http.Header
7740}
7741
7742// Create: Creates an API product in an organization.
7743// You create API products after
7744// you have proxied backend services using API proxies.
7745// An API product is a
7746// collection of API resources combined with quota settings and metadata
7747// that
7748// you can use to deliver customized and productized API bundles to
7749// your
7750// developer community. This metadata can include:
7751//
7752// - Scope
7753// - Environments
7754// - API proxies
7755// - Extensible profile
7756//
7757// API products enable you repackage APIs
7758// on-the-fly, without having to do any additional coding or
7759// configuration.
7760// Apigee recommends that you start with a simple API product including
7761// only
7762// required elements. You then provision credentials to apps to enable
7763// them to
7764// start testing your APIs.
7765//
7766// After you have authentication and authorization
7767// working against a simple API product, you can iterate to create
7768// finer
7769// grained API products, defining different sets of API resources for
7770// each API
7771// product.
7772//
7773// <aside class="warning"><strong>WARNING:</strong>
7774//
7775// - If you don't specify an API proxy in the request body, <em>any</em>
7776// app
7777// associated with the product can make calls to <em>any</em> API in
7778// your
7779// entire organization.
7780// - If you don't specify an environment in the request body, the
7781// product
7782// allows access to all environments.
7783//
7784// </aside>
7785//
7786// For more information, see {{what_api_product}}
7787func (r *OrganizationsApiproductsService) Create(parent string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsCreateCall {
7788	c := &OrganizationsApiproductsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7789	c.parent = parent
7790	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
7791	return c
7792}
7793
7794// Fields allows partial responses to be retrieved. See
7795// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7796// for more information.
7797func (c *OrganizationsApiproductsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsCreateCall {
7798	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7799	return c
7800}
7801
7802// Context sets the context to be used in this call's Do method. Any
7803// pending HTTP request will be aborted if the provided context is
7804// canceled.
7805func (c *OrganizationsApiproductsCreateCall) Context(ctx context.Context) *OrganizationsApiproductsCreateCall {
7806	c.ctx_ = ctx
7807	return c
7808}
7809
7810// Header returns an http.Header that can be modified by the caller to
7811// add HTTP headers to the request.
7812func (c *OrganizationsApiproductsCreateCall) Header() http.Header {
7813	if c.header_ == nil {
7814		c.header_ = make(http.Header)
7815	}
7816	return c.header_
7817}
7818
7819func (c *OrganizationsApiproductsCreateCall) doRequest(alt string) (*http.Response, error) {
7820	reqHeaders := make(http.Header)
7821	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7822	for k, v := range c.header_ {
7823		reqHeaders[k] = v
7824	}
7825	reqHeaders.Set("User-Agent", c.s.userAgent())
7826	var body io.Reader = nil
7827	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
7828	if err != nil {
7829		return nil, err
7830	}
7831	reqHeaders.Set("Content-Type", "application/json")
7832	c.urlParams_.Set("alt", alt)
7833	c.urlParams_.Set("prettyPrint", "false")
7834	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
7835	urls += "?" + c.urlParams_.Encode()
7836	req, err := http.NewRequest("POST", urls, body)
7837	if err != nil {
7838		return nil, err
7839	}
7840	req.Header = reqHeaders
7841	googleapi.Expand(req.URL, map[string]string{
7842		"parent": c.parent,
7843	})
7844	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7845}
7846
7847// Do executes the "apigee.organizations.apiproducts.create" call.
7848// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
7849// non-nil. Any non-2xx status code is an error. Response headers are in
7850// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
7851// response was returned at all) in error.(*googleapi.Error).Header. Use
7852// googleapi.IsNotModified to check whether the returned error was
7853// because http.StatusNotModified was returned.
7854func (c *OrganizationsApiproductsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
7855	gensupport.SetOptions(c.urlParams_, opts...)
7856	res, err := c.doRequest("json")
7857	if res != nil && res.StatusCode == http.StatusNotModified {
7858		if res.Body != nil {
7859			res.Body.Close()
7860		}
7861		return nil, &googleapi.Error{
7862			Code:   res.StatusCode,
7863			Header: res.Header,
7864		}
7865	}
7866	if err != nil {
7867		return nil, err
7868	}
7869	defer googleapi.CloseBody(res)
7870	if err := googleapi.CheckResponse(res); err != nil {
7871		return nil, err
7872	}
7873	ret := &GoogleCloudApigeeV1ApiProduct{
7874		ServerResponse: googleapi.ServerResponse{
7875			Header:         res.Header,
7876			HTTPStatusCode: res.StatusCode,
7877		},
7878	}
7879	target := &ret
7880	if err := gensupport.DecodeResponse(target, res); err != nil {
7881		return nil, err
7882	}
7883	return ret, nil
7884	// {
7885	//   "description": "Creates an API product in an organization.\nYou create API products after\nyou have proxied backend services using API proxies.\nAn API product is a\ncollection of API resources combined with quota settings and metadata that\nyou can use to deliver customized and productized API bundles to your\ndeveloper community. This metadata can include:\n\n- Scope\n- Environments\n- API proxies\n- Extensible profile\n\nAPI products enable you repackage APIs\non-the-fly, without having to do any additional coding or configuration.\nApigee recommends that you start with a simple API product including only\nrequired elements. You then provision credentials to apps to enable them to\nstart testing your APIs.\n\nAfter you have authentication and authorization\nworking against a simple API product, you can iterate to create finer\ngrained API products, defining different sets of API resources for each API\nproduct.\n\n\u003caside class=\"warning\"\u003e\u003cstrong\u003eWARNING:\u003c/strong\u003e\n\n- If you don't specify an API proxy in the request body, \u003cem\u003eany\u003c/em\u003e app\nassociated with the product can make calls to \u003cem\u003eany\u003c/em\u003e API in your\nentire organization.\n- If you don't specify an environment in the request body, the product\nallows access to all environments.\n\n\u003c/aside\u003e\n\nFor more information, see {{what_api_product}}",
7886	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
7887	//   "httpMethod": "POST",
7888	//   "id": "apigee.organizations.apiproducts.create",
7889	//   "parameterOrder": [
7890	//     "parent"
7891	//   ],
7892	//   "parameters": {
7893	//     "parent": {
7894	//       "description": "Required. The parent organization name under which the API product will\nbe created. Must be in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e\u003c/pre\u003e",
7895	//       "location": "path",
7896	//       "pattern": "^organizations/[^/]+$",
7897	//       "required": true,
7898	//       "type": "string"
7899	//     }
7900	//   },
7901	//   "path": "v1/{+parent}/apiproducts",
7902	//   "request": {
7903	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
7904	//   },
7905	//   "response": {
7906	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
7907	//   },
7908	//   "scopes": [
7909	//     "https://www.googleapis.com/auth/cloud-platform"
7910	//   ]
7911	// }
7912
7913}
7914
7915// method id "apigee.organizations.apiproducts.delete":
7916
7917type OrganizationsApiproductsDeleteCall struct {
7918	s          *Service
7919	name       string
7920	urlParams_ gensupport.URLParams
7921	ctx_       context.Context
7922	header_    http.Header
7923}
7924
7925// Delete: Deletes an API product from an organization.
7926//
7927// Deleting an API product
7928// causes app requests to the resource URIs defined in the API product
7929// to
7930// fail.
7931//
7932// Ensure that you create a new API product to serve existing apps,
7933// unless
7934// your intention is to disable access to the resources defined in the
7935// API
7936// product.
7937//
7938// The API product name required in the request URL is the internal name
7939// of
7940// the product, not the display name. While they may be the same, it
7941// depends
7942// on whether the API product was created via the UI or the API. View
7943// the list
7944// of API products to verify the internal name.
7945func (r *OrganizationsApiproductsService) Delete(name string) *OrganizationsApiproductsDeleteCall {
7946	c := &OrganizationsApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7947	c.name = name
7948	return c
7949}
7950
7951// Fields allows partial responses to be retrieved. See
7952// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7953// for more information.
7954func (c *OrganizationsApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsDeleteCall {
7955	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7956	return c
7957}
7958
7959// Context sets the context to be used in this call's Do method. Any
7960// pending HTTP request will be aborted if the provided context is
7961// canceled.
7962func (c *OrganizationsApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsDeleteCall {
7963	c.ctx_ = ctx
7964	return c
7965}
7966
7967// Header returns an http.Header that can be modified by the caller to
7968// add HTTP headers to the request.
7969func (c *OrganizationsApiproductsDeleteCall) Header() http.Header {
7970	if c.header_ == nil {
7971		c.header_ = make(http.Header)
7972	}
7973	return c.header_
7974}
7975
7976func (c *OrganizationsApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
7977	reqHeaders := make(http.Header)
7978	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
7979	for k, v := range c.header_ {
7980		reqHeaders[k] = v
7981	}
7982	reqHeaders.Set("User-Agent", c.s.userAgent())
7983	var body io.Reader = nil
7984	c.urlParams_.Set("alt", alt)
7985	c.urlParams_.Set("prettyPrint", "false")
7986	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7987	urls += "?" + c.urlParams_.Encode()
7988	req, err := http.NewRequest("DELETE", urls, body)
7989	if err != nil {
7990		return nil, err
7991	}
7992	req.Header = reqHeaders
7993	googleapi.Expand(req.URL, map[string]string{
7994		"name": c.name,
7995	})
7996	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7997}
7998
7999// Do executes the "apigee.organizations.apiproducts.delete" call.
8000// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
8001// non-nil. Any non-2xx status code is an error. Response headers are in
8002// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
8003// response was returned at all) in error.(*googleapi.Error).Header. Use
8004// googleapi.IsNotModified to check whether the returned error was
8005// because http.StatusNotModified was returned.
8006func (c *OrganizationsApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
8007	gensupport.SetOptions(c.urlParams_, opts...)
8008	res, err := c.doRequest("json")
8009	if res != nil && res.StatusCode == http.StatusNotModified {
8010		if res.Body != nil {
8011			res.Body.Close()
8012		}
8013		return nil, &googleapi.Error{
8014			Code:   res.StatusCode,
8015			Header: res.Header,
8016		}
8017	}
8018	if err != nil {
8019		return nil, err
8020	}
8021	defer googleapi.CloseBody(res)
8022	if err := googleapi.CheckResponse(res); err != nil {
8023		return nil, err
8024	}
8025	ret := &GoogleCloudApigeeV1ApiProduct{
8026		ServerResponse: googleapi.ServerResponse{
8027			Header:         res.Header,
8028			HTTPStatusCode: res.StatusCode,
8029		},
8030	}
8031	target := &ret
8032	if err := gensupport.DecodeResponse(target, res); err != nil {
8033		return nil, err
8034	}
8035	return ret, nil
8036	// {
8037	//   "description": "Deletes an API product from an organization.\n\nDeleting an API product\ncauses app requests to the resource URIs defined in the API product to\nfail.\n\nEnsure that you create a new API product to serve existing apps, unless\nyour intention is to disable access to the resources defined in the API\nproduct.\n\nThe API product name required in the request URL is the internal name of\nthe product, not the display name. While they may be the same, it depends\non whether the API product was created via the UI or the API. View the list\nof API products to verify the internal name.",
8038	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
8039	//   "httpMethod": "DELETE",
8040	//   "id": "apigee.organizations.apiproducts.delete",
8041	//   "parameterOrder": [
8042	//     "name"
8043	//   ],
8044	//   "parameters": {
8045	//     "name": {
8046	//       "description": "Required. API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
8047	//       "location": "path",
8048	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
8049	//       "required": true,
8050	//       "type": "string"
8051	//     }
8052	//   },
8053	//   "path": "v1/{+name}",
8054	//   "response": {
8055	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
8056	//   },
8057	//   "scopes": [
8058	//     "https://www.googleapis.com/auth/cloud-platform"
8059	//   ]
8060	// }
8061
8062}
8063
8064// method id "apigee.organizations.apiproducts.get":
8065
8066type OrganizationsApiproductsGetCall struct {
8067	s            *Service
8068	name         string
8069	urlParams_   gensupport.URLParams
8070	ifNoneMatch_ string
8071	ctx_         context.Context
8072	header_      http.Header
8073}
8074
8075// Get: Gets configuration details for an API product.
8076//
8077// The API product name required in the request URL is the internal name
8078// of
8079// the product, not the display name. While they may be the same, it
8080// depends
8081// on whether the API product was created via the UI or the API. View
8082// the list
8083// of API products to verify the internal name.
8084func (r *OrganizationsApiproductsService) Get(name string) *OrganizationsApiproductsGetCall {
8085	c := &OrganizationsApiproductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8086	c.name = name
8087	return c
8088}
8089
8090// Entity sets the optional parameter "entity": The type of entity for
8091// which you want to get a count. Possible values are:
8092//
8093// - `apps`
8094// - `companies`
8095// - `developers`
8096// - `keys`
8097func (c *OrganizationsApiproductsGetCall) Entity(entity string) *OrganizationsApiproductsGetCall {
8098	c.urlParams_.Set("entity", entity)
8099	return c
8100}
8101
8102// Query sets the optional parameter "query": The type of query.
8103// Possible values are:
8104//
8105// - `count`: Gets an entity count
8106// - `list`: Gets a list of entities
8107func (c *OrganizationsApiproductsGetCall) Query(query string) *OrganizationsApiproductsGetCall {
8108	c.urlParams_.Set("query", query)
8109	return c
8110}
8111
8112// Fields allows partial responses to be retrieved. See
8113// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8114// for more information.
8115func (c *OrganizationsApiproductsGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsGetCall {
8116	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8117	return c
8118}
8119
8120// IfNoneMatch sets the optional parameter which makes the operation
8121// fail if the object's ETag matches the given value. This is useful for
8122// getting updates only after the object has changed since the last
8123// request. Use googleapi.IsNotModified to check whether the response
8124// error from Do is the result of In-None-Match.
8125func (c *OrganizationsApiproductsGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsGetCall {
8126	c.ifNoneMatch_ = entityTag
8127	return c
8128}
8129
8130// Context sets the context to be used in this call's Do method. Any
8131// pending HTTP request will be aborted if the provided context is
8132// canceled.
8133func (c *OrganizationsApiproductsGetCall) Context(ctx context.Context) *OrganizationsApiproductsGetCall {
8134	c.ctx_ = ctx
8135	return c
8136}
8137
8138// Header returns an http.Header that can be modified by the caller to
8139// add HTTP headers to the request.
8140func (c *OrganizationsApiproductsGetCall) Header() http.Header {
8141	if c.header_ == nil {
8142		c.header_ = make(http.Header)
8143	}
8144	return c.header_
8145}
8146
8147func (c *OrganizationsApiproductsGetCall) doRequest(alt string) (*http.Response, error) {
8148	reqHeaders := make(http.Header)
8149	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8150	for k, v := range c.header_ {
8151		reqHeaders[k] = v
8152	}
8153	reqHeaders.Set("User-Agent", c.s.userAgent())
8154	if c.ifNoneMatch_ != "" {
8155		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8156	}
8157	var body io.Reader = nil
8158	c.urlParams_.Set("alt", alt)
8159	c.urlParams_.Set("prettyPrint", "false")
8160	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8161	urls += "?" + c.urlParams_.Encode()
8162	req, err := http.NewRequest("GET", urls, body)
8163	if err != nil {
8164		return nil, err
8165	}
8166	req.Header = reqHeaders
8167	googleapi.Expand(req.URL, map[string]string{
8168		"name": c.name,
8169	})
8170	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8171}
8172
8173// Do executes the "apigee.organizations.apiproducts.get" call.
8174// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
8175// non-nil. Any non-2xx status code is an error. Response headers are in
8176// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
8177// response was returned at all) in error.(*googleapi.Error).Header. Use
8178// googleapi.IsNotModified to check whether the returned error was
8179// because http.StatusNotModified was returned.
8180func (c *OrganizationsApiproductsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
8181	gensupport.SetOptions(c.urlParams_, opts...)
8182	res, err := c.doRequest("json")
8183	if res != nil && res.StatusCode == http.StatusNotModified {
8184		if res.Body != nil {
8185			res.Body.Close()
8186		}
8187		return nil, &googleapi.Error{
8188			Code:   res.StatusCode,
8189			Header: res.Header,
8190		}
8191	}
8192	if err != nil {
8193		return nil, err
8194	}
8195	defer googleapi.CloseBody(res)
8196	if err := googleapi.CheckResponse(res); err != nil {
8197		return nil, err
8198	}
8199	ret := &GoogleCloudApigeeV1ApiProduct{
8200		ServerResponse: googleapi.ServerResponse{
8201			Header:         res.Header,
8202			HTTPStatusCode: res.StatusCode,
8203		},
8204	}
8205	target := &ret
8206	if err := gensupport.DecodeResponse(target, res); err != nil {
8207		return nil, err
8208	}
8209	return ret, nil
8210	// {
8211	//   "description": "Gets configuration details for an API product.\n\nThe API product name required in the request URL is the internal name of\nthe product, not the display name. While they may be the same, it depends\non whether the API product was created via the UI or the API. View the list\nof API products to verify the internal name.",
8212	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
8213	//   "httpMethod": "GET",
8214	//   "id": "apigee.organizations.apiproducts.get",
8215	//   "parameterOrder": [
8216	//     "name"
8217	//   ],
8218	//   "parameters": {
8219	//     "entity": {
8220	//       "description": "The type of entity for which you want to get a count. Possible values are:\n\n- `apps`\n- `companies`\n- `developers`\n- `keys`",
8221	//       "location": "query",
8222	//       "type": "string"
8223	//     },
8224	//     "name": {
8225	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
8226	//       "location": "path",
8227	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
8228	//       "required": true,
8229	//       "type": "string"
8230	//     },
8231	//     "query": {
8232	//       "description": "The type of query. Possible values are:\n\n- `count`: Gets an entity count\n- `list`: Gets a list of entities",
8233	//       "location": "query",
8234	//       "type": "string"
8235	//     }
8236	//   },
8237	//   "path": "v1/{+name}",
8238	//   "response": {
8239	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
8240	//   },
8241	//   "scopes": [
8242	//     "https://www.googleapis.com/auth/cloud-platform"
8243	//   ]
8244	// }
8245
8246}
8247
8248// method id "apigee.organizations.apiproducts.list":
8249
8250type OrganizationsApiproductsListCall struct {
8251	s            *Service
8252	parent       string
8253	urlParams_   gensupport.URLParams
8254	ifNoneMatch_ string
8255	ctx_         context.Context
8256	header_      http.Header
8257}
8258
8259// List: Lists all API product names for an organization.
8260// Filter the list by passing an `attributename` and
8261// `attibutevalue`.
8262//
8263// The limit on the number of API products returned by the API is 1000.
8264// You
8265// can paginate the list of API products returned using the `startKey`
8266// and
8267// `count` query parameters.
8268func (r *OrganizationsApiproductsService) List(parent string) *OrganizationsApiproductsListCall {
8269	c := &OrganizationsApiproductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8270	c.parent = parent
8271	return c
8272}
8273
8274// Attributename sets the optional parameter "attributename": The name
8275// of the attribute to search.
8276func (c *OrganizationsApiproductsListCall) Attributename(attributename string) *OrganizationsApiproductsListCall {
8277	c.urlParams_.Set("attributename", attributename)
8278	return c
8279}
8280
8281// Attributevalue sets the optional parameter "attributevalue": The
8282// value of the attribute.
8283func (c *OrganizationsApiproductsListCall) Attributevalue(attributevalue string) *OrganizationsApiproductsListCall {
8284	c.urlParams_.Set("attributevalue", attributevalue)
8285	return c
8286}
8287
8288// Count sets the optional parameter "count": Enter the number of API
8289// products you want returned in the API call. The
8290// limit is 1000.
8291func (c *OrganizationsApiproductsListCall) Count(count int64) *OrganizationsApiproductsListCall {
8292	c.urlParams_.Set("count", fmt.Sprint(count))
8293	return c
8294}
8295
8296// Expand sets the optional parameter "expand": Set to `true` to get
8297// expanded details about each API.
8298func (c *OrganizationsApiproductsListCall) Expand(expand bool) *OrganizationsApiproductsListCall {
8299	c.urlParams_.Set("expand", fmt.Sprint(expand))
8300	return c
8301}
8302
8303// StartKey sets the optional parameter "startKey": Gets a list of API
8304// products starting with a specific API product in the
8305// list. For example, if you're returning 50 API products at a time
8306// (using the
8307// `count` query parameter), you can view products 50-99 by entering the
8308// name
8309// of the 50th API product in the first API (without using
8310// `startKey`).
8311// Product name is case sensitive.
8312func (c *OrganizationsApiproductsListCall) StartKey(startKey string) *OrganizationsApiproductsListCall {
8313	c.urlParams_.Set("startKey", startKey)
8314	return c
8315}
8316
8317// Fields allows partial responses to be retrieved. See
8318// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8319// for more information.
8320func (c *OrganizationsApiproductsListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsListCall {
8321	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8322	return c
8323}
8324
8325// IfNoneMatch sets the optional parameter which makes the operation
8326// fail if the object's ETag matches the given value. This is useful for
8327// getting updates only after the object has changed since the last
8328// request. Use googleapi.IsNotModified to check whether the response
8329// error from Do is the result of In-None-Match.
8330func (c *OrganizationsApiproductsListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsListCall {
8331	c.ifNoneMatch_ = entityTag
8332	return c
8333}
8334
8335// Context sets the context to be used in this call's Do method. Any
8336// pending HTTP request will be aborted if the provided context is
8337// canceled.
8338func (c *OrganizationsApiproductsListCall) Context(ctx context.Context) *OrganizationsApiproductsListCall {
8339	c.ctx_ = ctx
8340	return c
8341}
8342
8343// Header returns an http.Header that can be modified by the caller to
8344// add HTTP headers to the request.
8345func (c *OrganizationsApiproductsListCall) Header() http.Header {
8346	if c.header_ == nil {
8347		c.header_ = make(http.Header)
8348	}
8349	return c.header_
8350}
8351
8352func (c *OrganizationsApiproductsListCall) doRequest(alt string) (*http.Response, error) {
8353	reqHeaders := make(http.Header)
8354	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8355	for k, v := range c.header_ {
8356		reqHeaders[k] = v
8357	}
8358	reqHeaders.Set("User-Agent", c.s.userAgent())
8359	if c.ifNoneMatch_ != "" {
8360		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8361	}
8362	var body io.Reader = nil
8363	c.urlParams_.Set("alt", alt)
8364	c.urlParams_.Set("prettyPrint", "false")
8365	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apiproducts")
8366	urls += "?" + c.urlParams_.Encode()
8367	req, err := http.NewRequest("GET", urls, body)
8368	if err != nil {
8369		return nil, err
8370	}
8371	req.Header = reqHeaders
8372	googleapi.Expand(req.URL, map[string]string{
8373		"parent": c.parent,
8374	})
8375	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8376}
8377
8378// Do executes the "apigee.organizations.apiproducts.list" call.
8379// Exactly one of *GoogleCloudApigeeV1ListApiProductsResponse or error
8380// will be non-nil. Any non-2xx status code is an error. Response
8381// headers are in either
8382// *GoogleCloudApigeeV1ListApiProductsResponse.ServerResponse.Header or
8383// (if a response was returned at all) in
8384// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8385// whether the returned error was because http.StatusNotModified was
8386// returned.
8387func (c *OrganizationsApiproductsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProductsResponse, error) {
8388	gensupport.SetOptions(c.urlParams_, opts...)
8389	res, err := c.doRequest("json")
8390	if res != nil && res.StatusCode == http.StatusNotModified {
8391		if res.Body != nil {
8392			res.Body.Close()
8393		}
8394		return nil, &googleapi.Error{
8395			Code:   res.StatusCode,
8396			Header: res.Header,
8397		}
8398	}
8399	if err != nil {
8400		return nil, err
8401	}
8402	defer googleapi.CloseBody(res)
8403	if err := googleapi.CheckResponse(res); err != nil {
8404		return nil, err
8405	}
8406	ret := &GoogleCloudApigeeV1ListApiProductsResponse{
8407		ServerResponse: googleapi.ServerResponse{
8408			Header:         res.Header,
8409			HTTPStatusCode: res.StatusCode,
8410		},
8411	}
8412	target := &ret
8413	if err := gensupport.DecodeResponse(target, res); err != nil {
8414		return nil, err
8415	}
8416	return ret, nil
8417	// {
8418	//   "description": "Lists all API product names for an organization.\nFilter the list by passing an `attributename` and `attibutevalue`.\n\nThe limit on the number of API products returned by the API is 1000. You\ncan paginate the list of API products returned using the `startKey` and\n`count` query parameters.",
8419	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts",
8420	//   "httpMethod": "GET",
8421	//   "id": "apigee.organizations.apiproducts.list",
8422	//   "parameterOrder": [
8423	//     "parent"
8424	//   ],
8425	//   "parameters": {
8426	//     "attributename": {
8427	//       "description": "The name of the attribute to search.",
8428	//       "location": "query",
8429	//       "type": "string"
8430	//     },
8431	//     "attributevalue": {
8432	//       "description": "The value of the attribute.",
8433	//       "location": "query",
8434	//       "type": "string"
8435	//     },
8436	//     "count": {
8437	//       "description": "Enter the number of API products you want returned in the API call. The\nlimit is 1000.",
8438	//       "format": "int64",
8439	//       "location": "query",
8440	//       "type": "string"
8441	//     },
8442	//     "expand": {
8443	//       "description": "Set to `true` to get expanded details about each API.",
8444	//       "location": "query",
8445	//       "type": "boolean"
8446	//     },
8447	//     "parent": {
8448	//       "description": "**Required.** The parent organization name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e\u003c/pre\u003e",
8449	//       "location": "path",
8450	//       "pattern": "^organizations/[^/]+$",
8451	//       "required": true,
8452	//       "type": "string"
8453	//     },
8454	//     "startKey": {
8455	//       "description": "Gets a list of API products starting with a specific API product in the\nlist. For example, if you're returning 50 API products at a time (using the\n`count` query parameter), you can view products 50-99 by entering the name\nof the 50th API product in the first API (without using `startKey`).\nProduct name is case sensitive.",
8456	//       "location": "query",
8457	//       "type": "string"
8458	//     }
8459	//   },
8460	//   "path": "v1/{+parent}/apiproducts",
8461	//   "response": {
8462	//     "$ref": "GoogleCloudApigeeV1ListApiProductsResponse"
8463	//   },
8464	//   "scopes": [
8465	//     "https://www.googleapis.com/auth/cloud-platform"
8466	//   ]
8467	// }
8468
8469}
8470
8471// method id "apigee.organizations.apiproducts.update":
8472
8473type OrganizationsApiproductsUpdateCall struct {
8474	s                             *Service
8475	name                          string
8476	googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct
8477	urlParams_                    gensupport.URLParams
8478	ctx_                          context.Context
8479	header_                       http.Header
8480}
8481
8482// Update: Updates an existing API product. You must include all
8483// required values,
8484// whether or not you are updating them, as well as any optional values
8485// that
8486// you are updating.
8487//
8488// The API product name required in the request URL is the
8489// internal name of the product, not the Display Name. While they may be
8490// the
8491// same, it depends on whether the API product was created via UI or
8492// API. View
8493// the list of API products to identify their internal names.
8494func (r *OrganizationsApiproductsService) Update(name string, googlecloudapigeev1apiproduct *GoogleCloudApigeeV1ApiProduct) *OrganizationsApiproductsUpdateCall {
8495	c := &OrganizationsApiproductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8496	c.name = name
8497	c.googlecloudapigeev1apiproduct = googlecloudapigeev1apiproduct
8498	return c
8499}
8500
8501// Fields allows partial responses to be retrieved. See
8502// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8503// for more information.
8504func (c *OrganizationsApiproductsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsUpdateCall {
8505	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8506	return c
8507}
8508
8509// Context sets the context to be used in this call's Do method. Any
8510// pending HTTP request will be aborted if the provided context is
8511// canceled.
8512func (c *OrganizationsApiproductsUpdateCall) Context(ctx context.Context) *OrganizationsApiproductsUpdateCall {
8513	c.ctx_ = ctx
8514	return c
8515}
8516
8517// Header returns an http.Header that can be modified by the caller to
8518// add HTTP headers to the request.
8519func (c *OrganizationsApiproductsUpdateCall) Header() http.Header {
8520	if c.header_ == nil {
8521		c.header_ = make(http.Header)
8522	}
8523	return c.header_
8524}
8525
8526func (c *OrganizationsApiproductsUpdateCall) doRequest(alt string) (*http.Response, error) {
8527	reqHeaders := make(http.Header)
8528	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8529	for k, v := range c.header_ {
8530		reqHeaders[k] = v
8531	}
8532	reqHeaders.Set("User-Agent", c.s.userAgent())
8533	var body io.Reader = nil
8534	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1apiproduct)
8535	if err != nil {
8536		return nil, err
8537	}
8538	reqHeaders.Set("Content-Type", "application/json")
8539	c.urlParams_.Set("alt", alt)
8540	c.urlParams_.Set("prettyPrint", "false")
8541	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8542	urls += "?" + c.urlParams_.Encode()
8543	req, err := http.NewRequest("PUT", urls, body)
8544	if err != nil {
8545		return nil, err
8546	}
8547	req.Header = reqHeaders
8548	googleapi.Expand(req.URL, map[string]string{
8549		"name": c.name,
8550	})
8551	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8552}
8553
8554// Do executes the "apigee.organizations.apiproducts.update" call.
8555// Exactly one of *GoogleCloudApigeeV1ApiProduct or error will be
8556// non-nil. Any non-2xx status code is an error. Response headers are in
8557// either *GoogleCloudApigeeV1ApiProduct.ServerResponse.Header or (if a
8558// response was returned at all) in error.(*googleapi.Error).Header. Use
8559// googleapi.IsNotModified to check whether the returned error was
8560// because http.StatusNotModified was returned.
8561func (c *OrganizationsApiproductsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProduct, error) {
8562	gensupport.SetOptions(c.urlParams_, opts...)
8563	res, err := c.doRequest("json")
8564	if res != nil && res.StatusCode == http.StatusNotModified {
8565		if res.Body != nil {
8566			res.Body.Close()
8567		}
8568		return nil, &googleapi.Error{
8569			Code:   res.StatusCode,
8570			Header: res.Header,
8571		}
8572	}
8573	if err != nil {
8574		return nil, err
8575	}
8576	defer googleapi.CloseBody(res)
8577	if err := googleapi.CheckResponse(res); err != nil {
8578		return nil, err
8579	}
8580	ret := &GoogleCloudApigeeV1ApiProduct{
8581		ServerResponse: googleapi.ServerResponse{
8582			Header:         res.Header,
8583			HTTPStatusCode: res.StatusCode,
8584		},
8585	}
8586	target := &ret
8587	if err := gensupport.DecodeResponse(target, res); err != nil {
8588		return nil, err
8589	}
8590	return ret, nil
8591	// {
8592	//   "description": "Updates an existing API product. You must include all required values,\nwhether or not you are updating them, as well as any optional values that\nyou are updating.\n\nThe API product name required in the request URL is the\ninternal name of the product, not the Display Name. While they may be the\nsame, it depends on whether the API product was created via UI or API. View\nthe list of API products to identify their internal names.",
8593	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}",
8594	//   "httpMethod": "PUT",
8595	//   "id": "apigee.organizations.apiproducts.update",
8596	//   "parameterOrder": [
8597	//     "name"
8598	//   ],
8599	//   "parameters": {
8600	//     "name": {
8601	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
8602	//       "location": "path",
8603	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
8604	//       "required": true,
8605	//       "type": "string"
8606	//     }
8607	//   },
8608	//   "path": "v1/{+name}",
8609	//   "request": {
8610	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
8611	//   },
8612	//   "response": {
8613	//     "$ref": "GoogleCloudApigeeV1ApiProduct"
8614	//   },
8615	//   "scopes": [
8616	//     "https://www.googleapis.com/auth/cloud-platform"
8617	//   ]
8618	// }
8619
8620}
8621
8622// method id "apigee.organizations.apiproducts.attributes.delete":
8623
8624type OrganizationsApiproductsAttributesDeleteCall struct {
8625	s          *Service
8626	name       string
8627	urlParams_ gensupport.URLParams
8628	ctx_       context.Context
8629	header_    http.Header
8630}
8631
8632// Delete: Deletes an API product attribute.
8633func (r *OrganizationsApiproductsAttributesService) Delete(name string) *OrganizationsApiproductsAttributesDeleteCall {
8634	c := &OrganizationsApiproductsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8635	c.name = name
8636	return c
8637}
8638
8639// Fields allows partial responses to be retrieved. See
8640// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8641// for more information.
8642func (c *OrganizationsApiproductsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesDeleteCall {
8643	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8644	return c
8645}
8646
8647// Context sets the context to be used in this call's Do method. Any
8648// pending HTTP request will be aborted if the provided context is
8649// canceled.
8650func (c *OrganizationsApiproductsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesDeleteCall {
8651	c.ctx_ = ctx
8652	return c
8653}
8654
8655// Header returns an http.Header that can be modified by the caller to
8656// add HTTP headers to the request.
8657func (c *OrganizationsApiproductsAttributesDeleteCall) Header() http.Header {
8658	if c.header_ == nil {
8659		c.header_ = make(http.Header)
8660	}
8661	return c.header_
8662}
8663
8664func (c *OrganizationsApiproductsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
8665	reqHeaders := make(http.Header)
8666	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8667	for k, v := range c.header_ {
8668		reqHeaders[k] = v
8669	}
8670	reqHeaders.Set("User-Agent", c.s.userAgent())
8671	var body io.Reader = nil
8672	c.urlParams_.Set("alt", alt)
8673	c.urlParams_.Set("prettyPrint", "false")
8674	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8675	urls += "?" + c.urlParams_.Encode()
8676	req, err := http.NewRequest("DELETE", urls, body)
8677	if err != nil {
8678		return nil, err
8679	}
8680	req.Header = reqHeaders
8681	googleapi.Expand(req.URL, map[string]string{
8682		"name": c.name,
8683	})
8684	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8685}
8686
8687// Do executes the "apigee.organizations.apiproducts.attributes.delete" call.
8688// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
8689// non-nil. Any non-2xx status code is an error. Response headers are in
8690// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
8691// response was returned at all) in error.(*googleapi.Error).Header. Use
8692// googleapi.IsNotModified to check whether the returned error was
8693// because http.StatusNotModified was returned.
8694func (c *OrganizationsApiproductsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
8695	gensupport.SetOptions(c.urlParams_, opts...)
8696	res, err := c.doRequest("json")
8697	if res != nil && res.StatusCode == http.StatusNotModified {
8698		if res.Body != nil {
8699			res.Body.Close()
8700		}
8701		return nil, &googleapi.Error{
8702			Code:   res.StatusCode,
8703			Header: res.Header,
8704		}
8705	}
8706	if err != nil {
8707		return nil, err
8708	}
8709	defer googleapi.CloseBody(res)
8710	if err := googleapi.CheckResponse(res); err != nil {
8711		return nil, err
8712	}
8713	ret := &GoogleCloudApigeeV1Attribute{
8714		ServerResponse: googleapi.ServerResponse{
8715			Header:         res.Header,
8716			HTTPStatusCode: res.StatusCode,
8717		},
8718	}
8719	target := &ret
8720	if err := gensupport.DecodeResponse(target, res); err != nil {
8721		return nil, err
8722	}
8723	return ret, nil
8724	// {
8725	//   "description": "Deletes an API product attribute.",
8726	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
8727	//   "httpMethod": "DELETE",
8728	//   "id": "apigee.organizations.apiproducts.attributes.delete",
8729	//   "parameterOrder": [
8730	//     "name"
8731	//   ],
8732	//   "parameters": {
8733	//     "name": {
8734	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e/attributes/\u003cvar\u003eattribute_name\u003c/var\u003e\u003c/pre\u003e",
8735	//       "location": "path",
8736	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
8737	//       "required": true,
8738	//       "type": "string"
8739	//     }
8740	//   },
8741	//   "path": "v1/{+name}",
8742	//   "response": {
8743	//     "$ref": "GoogleCloudApigeeV1Attribute"
8744	//   },
8745	//   "scopes": [
8746	//     "https://www.googleapis.com/auth/cloud-platform"
8747	//   ]
8748	// }
8749
8750}
8751
8752// method id "apigee.organizations.apiproducts.attributes.get":
8753
8754type OrganizationsApiproductsAttributesGetCall struct {
8755	s            *Service
8756	name         string
8757	urlParams_   gensupport.URLParams
8758	ifNoneMatch_ string
8759	ctx_         context.Context
8760	header_      http.Header
8761}
8762
8763// Get: Returns the value of an API product attribute.
8764func (r *OrganizationsApiproductsAttributesService) Get(name string) *OrganizationsApiproductsAttributesGetCall {
8765	c := &OrganizationsApiproductsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8766	c.name = name
8767	return c
8768}
8769
8770// Fields allows partial responses to be retrieved. See
8771// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8772// for more information.
8773func (c *OrganizationsApiproductsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesGetCall {
8774	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8775	return c
8776}
8777
8778// IfNoneMatch sets the optional parameter which makes the operation
8779// fail if the object's ETag matches the given value. This is useful for
8780// getting updates only after the object has changed since the last
8781// request. Use googleapi.IsNotModified to check whether the response
8782// error from Do is the result of In-None-Match.
8783func (c *OrganizationsApiproductsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesGetCall {
8784	c.ifNoneMatch_ = entityTag
8785	return c
8786}
8787
8788// Context sets the context to be used in this call's Do method. Any
8789// pending HTTP request will be aborted if the provided context is
8790// canceled.
8791func (c *OrganizationsApiproductsAttributesGetCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesGetCall {
8792	c.ctx_ = ctx
8793	return c
8794}
8795
8796// Header returns an http.Header that can be modified by the caller to
8797// add HTTP headers to the request.
8798func (c *OrganizationsApiproductsAttributesGetCall) Header() http.Header {
8799	if c.header_ == nil {
8800		c.header_ = make(http.Header)
8801	}
8802	return c.header_
8803}
8804
8805func (c *OrganizationsApiproductsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
8806	reqHeaders := make(http.Header)
8807	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8808	for k, v := range c.header_ {
8809		reqHeaders[k] = v
8810	}
8811	reqHeaders.Set("User-Agent", c.s.userAgent())
8812	if c.ifNoneMatch_ != "" {
8813		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8814	}
8815	var body io.Reader = nil
8816	c.urlParams_.Set("alt", alt)
8817	c.urlParams_.Set("prettyPrint", "false")
8818	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8819	urls += "?" + c.urlParams_.Encode()
8820	req, err := http.NewRequest("GET", urls, body)
8821	if err != nil {
8822		return nil, err
8823	}
8824	req.Header = reqHeaders
8825	googleapi.Expand(req.URL, map[string]string{
8826		"name": c.name,
8827	})
8828	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8829}
8830
8831// Do executes the "apigee.organizations.apiproducts.attributes.get" call.
8832// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
8833// non-nil. Any non-2xx status code is an error. Response headers are in
8834// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
8835// response was returned at all) in error.(*googleapi.Error).Header. Use
8836// googleapi.IsNotModified to check whether the returned error was
8837// because http.StatusNotModified was returned.
8838func (c *OrganizationsApiproductsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
8839	gensupport.SetOptions(c.urlParams_, opts...)
8840	res, err := c.doRequest("json")
8841	if res != nil && res.StatusCode == http.StatusNotModified {
8842		if res.Body != nil {
8843			res.Body.Close()
8844		}
8845		return nil, &googleapi.Error{
8846			Code:   res.StatusCode,
8847			Header: res.Header,
8848		}
8849	}
8850	if err != nil {
8851		return nil, err
8852	}
8853	defer googleapi.CloseBody(res)
8854	if err := googleapi.CheckResponse(res); err != nil {
8855		return nil, err
8856	}
8857	ret := &GoogleCloudApigeeV1Attribute{
8858		ServerResponse: googleapi.ServerResponse{
8859			Header:         res.Header,
8860			HTTPStatusCode: res.StatusCode,
8861		},
8862	}
8863	target := &ret
8864	if err := gensupport.DecodeResponse(target, res); err != nil {
8865		return nil, err
8866	}
8867	return ret, nil
8868	// {
8869	//   "description": "Returns the value of an API product attribute.",
8870	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
8871	//   "httpMethod": "GET",
8872	//   "id": "apigee.organizations.apiproducts.attributes.get",
8873	//   "parameterOrder": [
8874	//     "name"
8875	//   ],
8876	//   "parameters": {
8877	//     "name": {
8878	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e/attributes/\u003cvar\u003eattribute_name\u003c/var\u003e\u003c/pre\u003e",
8879	//       "location": "path",
8880	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
8881	//       "required": true,
8882	//       "type": "string"
8883	//     }
8884	//   },
8885	//   "path": "v1/{+name}",
8886	//   "response": {
8887	//     "$ref": "GoogleCloudApigeeV1Attribute"
8888	//   },
8889	//   "scopes": [
8890	//     "https://www.googleapis.com/auth/cloud-platform"
8891	//   ]
8892	// }
8893
8894}
8895
8896// method id "apigee.organizations.apiproducts.attributes.list":
8897
8898type OrganizationsApiproductsAttributesListCall struct {
8899	s            *Service
8900	parent       string
8901	urlParams_   gensupport.URLParams
8902	ifNoneMatch_ string
8903	ctx_         context.Context
8904	header_      http.Header
8905}
8906
8907// List: Returns a list of all API product attributes.
8908func (r *OrganizationsApiproductsAttributesService) List(parent string) *OrganizationsApiproductsAttributesListCall {
8909	c := &OrganizationsApiproductsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8910	c.parent = parent
8911	return c
8912}
8913
8914// Fields allows partial responses to be retrieved. See
8915// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8916// for more information.
8917func (c *OrganizationsApiproductsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesListCall {
8918	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8919	return c
8920}
8921
8922// IfNoneMatch sets the optional parameter which makes the operation
8923// fail if the object's ETag matches the given value. This is useful for
8924// getting updates only after the object has changed since the last
8925// request. Use googleapi.IsNotModified to check whether the response
8926// error from Do is the result of In-None-Match.
8927func (c *OrganizationsApiproductsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsApiproductsAttributesListCall {
8928	c.ifNoneMatch_ = entityTag
8929	return c
8930}
8931
8932// Context sets the context to be used in this call's Do method. Any
8933// pending HTTP request will be aborted if the provided context is
8934// canceled.
8935func (c *OrganizationsApiproductsAttributesListCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesListCall {
8936	c.ctx_ = ctx
8937	return c
8938}
8939
8940// Header returns an http.Header that can be modified by the caller to
8941// add HTTP headers to the request.
8942func (c *OrganizationsApiproductsAttributesListCall) Header() http.Header {
8943	if c.header_ == nil {
8944		c.header_ = make(http.Header)
8945	}
8946	return c.header_
8947}
8948
8949func (c *OrganizationsApiproductsAttributesListCall) doRequest(alt string) (*http.Response, error) {
8950	reqHeaders := make(http.Header)
8951	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
8952	for k, v := range c.header_ {
8953		reqHeaders[k] = v
8954	}
8955	reqHeaders.Set("User-Agent", c.s.userAgent())
8956	if c.ifNoneMatch_ != "" {
8957		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8958	}
8959	var body io.Reader = nil
8960	c.urlParams_.Set("alt", alt)
8961	c.urlParams_.Set("prettyPrint", "false")
8962	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
8963	urls += "?" + c.urlParams_.Encode()
8964	req, err := http.NewRequest("GET", urls, body)
8965	if err != nil {
8966		return nil, err
8967	}
8968	req.Header = reqHeaders
8969	googleapi.Expand(req.URL, map[string]string{
8970		"parent": c.parent,
8971	})
8972	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8973}
8974
8975// Do executes the "apigee.organizations.apiproducts.attributes.list" call.
8976// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
8977// non-nil. Any non-2xx status code is an error. Response headers are in
8978// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
8979// response was returned at all) in error.(*googleapi.Error).Header. Use
8980// googleapi.IsNotModified to check whether the returned error was
8981// because http.StatusNotModified was returned.
8982func (c *OrganizationsApiproductsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
8983	gensupport.SetOptions(c.urlParams_, opts...)
8984	res, err := c.doRequest("json")
8985	if res != nil && res.StatusCode == http.StatusNotModified {
8986		if res.Body != nil {
8987			res.Body.Close()
8988		}
8989		return nil, &googleapi.Error{
8990			Code:   res.StatusCode,
8991			Header: res.Header,
8992		}
8993	}
8994	if err != nil {
8995		return nil, err
8996	}
8997	defer googleapi.CloseBody(res)
8998	if err := googleapi.CheckResponse(res); err != nil {
8999		return nil, err
9000	}
9001	ret := &GoogleCloudApigeeV1Attributes{
9002		ServerResponse: googleapi.ServerResponse{
9003			Header:         res.Header,
9004			HTTPStatusCode: res.StatusCode,
9005		},
9006	}
9007	target := &ret
9008	if err := gensupport.DecodeResponse(target, res); err != nil {
9009		return nil, err
9010	}
9011	return ret, nil
9012	// {
9013	//   "description": "Returns a list of all API product attributes.",
9014	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes",
9015	//   "httpMethod": "GET",
9016	//   "id": "apigee.organizations.apiproducts.attributes.list",
9017	//   "parameterOrder": [
9018	//     "parent"
9019	//   ],
9020	//   "parameters": {
9021	//     "parent": {
9022	//       "description": "Required. The parent organization name. Must be in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
9023	//       "location": "path",
9024	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+$",
9025	//       "required": true,
9026	//       "type": "string"
9027	//     }
9028	//   },
9029	//   "path": "v1/{+parent}/attributes",
9030	//   "response": {
9031	//     "$ref": "GoogleCloudApigeeV1Attributes"
9032	//   },
9033	//   "scopes": [
9034	//     "https://www.googleapis.com/auth/cloud-platform"
9035	//   ]
9036	// }
9037
9038}
9039
9040// method id "apigee.organizations.apiproducts.attributes.updateApiProductAttribute":
9041
9042type OrganizationsApiproductsAttributesUpdateApiProductAttributeCall struct {
9043	s                            *Service
9044	name                         string
9045	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
9046	urlParams_                   gensupport.URLParams
9047	ctx_                         context.Context
9048	header_                      http.Header
9049}
9050
9051// UpdateApiProductAttribute: Updates the value of an API product
9052// attribute. Limitations are:
9053//
9054// OAuth access tokens and Key Management Service (KMS) entities
9055// (apps,
9056// developers, and API products) are cached for 180 seconds (current
9057// default).
9058// Any custom attributes associated with entities also get cached for at
9059// least
9060// 180 seconds after entity is accessed during runtime.
9061// In this case, the `ExpiresIn` element on the OAuthV2 policy won't be
9062// able
9063// to expire an access token in less than 180 seconds.
9064func (r *OrganizationsApiproductsAttributesService) UpdateApiProductAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
9065	c := &OrganizationsApiproductsAttributesUpdateApiProductAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9066	c.name = name
9067	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
9068	return c
9069}
9070
9071// Fields allows partial responses to be retrieved. See
9072// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9073// for more information.
9074func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Fields(s ...googleapi.Field) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
9075	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9076	return c
9077}
9078
9079// Context sets the context to be used in this call's Do method. Any
9080// pending HTTP request will be aborted if the provided context is
9081// canceled.
9082func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Context(ctx context.Context) *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall {
9083	c.ctx_ = ctx
9084	return c
9085}
9086
9087// Header returns an http.Header that can be modified by the caller to
9088// add HTTP headers to the request.
9089func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Header() http.Header {
9090	if c.header_ == nil {
9091		c.header_ = make(http.Header)
9092	}
9093	return c.header_
9094}
9095
9096func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) doRequest(alt string) (*http.Response, error) {
9097	reqHeaders := make(http.Header)
9098	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9099	for k, v := range c.header_ {
9100		reqHeaders[k] = v
9101	}
9102	reqHeaders.Set("User-Agent", c.s.userAgent())
9103	var body io.Reader = nil
9104	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
9105	if err != nil {
9106		return nil, err
9107	}
9108	reqHeaders.Set("Content-Type", "application/json")
9109	c.urlParams_.Set("alt", alt)
9110	c.urlParams_.Set("prettyPrint", "false")
9111	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9112	urls += "?" + c.urlParams_.Encode()
9113	req, err := http.NewRequest("POST", urls, body)
9114	if err != nil {
9115		return nil, err
9116	}
9117	req.Header = reqHeaders
9118	googleapi.Expand(req.URL, map[string]string{
9119		"name": c.name,
9120	})
9121	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9122}
9123
9124// Do executes the "apigee.organizations.apiproducts.attributes.updateApiProductAttribute" call.
9125// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
9126// non-nil. Any non-2xx status code is an error. Response headers are in
9127// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
9128// response was returned at all) in error.(*googleapi.Error).Header. Use
9129// googleapi.IsNotModified to check whether the returned error was
9130// because http.StatusNotModified was returned.
9131func (c *OrganizationsApiproductsAttributesUpdateApiProductAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
9132	gensupport.SetOptions(c.urlParams_, opts...)
9133	res, err := c.doRequest("json")
9134	if res != nil && res.StatusCode == http.StatusNotModified {
9135		if res.Body != nil {
9136			res.Body.Close()
9137		}
9138		return nil, &googleapi.Error{
9139			Code:   res.StatusCode,
9140			Header: res.Header,
9141		}
9142	}
9143	if err != nil {
9144		return nil, err
9145	}
9146	defer googleapi.CloseBody(res)
9147	if err := googleapi.CheckResponse(res); err != nil {
9148		return nil, err
9149	}
9150	ret := &GoogleCloudApigeeV1Attribute{
9151		ServerResponse: googleapi.ServerResponse{
9152			Header:         res.Header,
9153			HTTPStatusCode: res.StatusCode,
9154		},
9155	}
9156	target := &ret
9157	if err := gensupport.DecodeResponse(target, res); err != nil {
9158		return nil, err
9159	}
9160	return ret, nil
9161	// {
9162	//   "description": "Updates the value of an API product attribute. Limitations are:\n\nOAuth access tokens and Key Management Service (KMS) entities (apps,\ndevelopers, and API products) are cached for 180 seconds (current default).\nAny custom attributes associated with entities also get cached for at least\n180 seconds after entity is accessed during runtime.\nIn this case, the `ExpiresIn` element on the OAuthV2 policy won't be able\nto expire an access token in less than 180 seconds.",
9163	//   "flatPath": "v1/organizations/{organizationsId}/apiproducts/{apiproductsId}/attributes/{attributesId}",
9164	//   "httpMethod": "POST",
9165	//   "id": "apigee.organizations.apiproducts.attributes.updateApiProductAttribute",
9166	//   "parameterOrder": [
9167	//     "name"
9168	//   ],
9169	//   "parameters": {
9170	//     "name": {
9171	//       "description": "**Required.** API product name in the following form:\n\u003cpre\u003eorganizations/\u003cvar\u003eorganization_ID\u003c/var\u003e/apiproducts/\u003cvar\u003eapi_product_name\u003c/var\u003e\u003c/pre\u003e",
9172	//       "location": "path",
9173	//       "pattern": "^organizations/[^/]+/apiproducts/[^/]+/attributes/[^/]+$",
9174	//       "required": true,
9175	//       "type": "string"
9176	//     }
9177	//   },
9178	//   "path": "v1/{+name}",
9179	//   "request": {
9180	//     "$ref": "GoogleCloudApigeeV1Attribute"
9181	//   },
9182	//   "response": {
9183	//     "$ref": "GoogleCloudApigeeV1Attribute"
9184	//   },
9185	//   "scopes": [
9186	//     "https://www.googleapis.com/auth/cloud-platform"
9187	//   ]
9188	// }
9189
9190}
9191
9192// method id "apigee.organizations.apis.create":
9193
9194type OrganizationsApisCreateCall struct {
9195	s                 *Service
9196	parent            string
9197	googleapihttpbody *GoogleApiHttpBody
9198	urlParams_        gensupport.URLParams
9199	ctx_              context.Context
9200	header_           http.Header
9201}
9202
9203// Create: Creates an API proxy.
9204// The API proxy created will not be accessible at runtime until it
9205// is
9206// deployed to an environment.
9207//
9208// Create a new API proxy by setting the `name` query parameter to
9209// the
9210// name of the API proxy.
9211//
9212// Import an API proxy configuration bundle stored in zip format
9213// on your local machine to your organization by doing the following:
9214//
9215// * Set the `name` query parameter to the name of the API proxy.
9216// * Set the `action` query parameter to `import`.
9217// * Set the `Content-Type` header to `multipart/form-data`.
9218// * Pass as a file the name of API proxy
9219//   configuration bundle stored in zip format on your local
9220// machine.
9221//
9222// **Note**: To validate the API proxy configuration bundle only
9223//   without importing it, set the `action` query
9224//   parameter to `validate`.
9225//
9226// When importing an API proxy configuration bundle, if the API
9227// proxy
9228// does not exist, it will be created.
9229// If the API proxy exists, then a new revision is created. Invalid
9230// API
9231// proxy configurations are rejected, and a list of validation errors
9232// is
9233// returned to the client.
9234func (r *OrganizationsApisService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisCreateCall {
9235	c := &OrganizationsApisCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9236	c.parent = parent
9237	c.googleapihttpbody = googleapihttpbody
9238	return c
9239}
9240
9241// Action sets the optional parameter "action": Action to perform when
9242// importing an API proxy configuration bundle. Set
9243// this parameter to one of the following values:
9244//
9245// * `import` to import the API proxy configuration bundle.
9246// * `validate` to validate the API proxy configuration bundle without
9247//    importing it.
9248func (c *OrganizationsApisCreateCall) Action(action string) *OrganizationsApisCreateCall {
9249	c.urlParams_.Set("action", action)
9250	return c
9251}
9252
9253// Name sets the optional parameter "name": Name of the API proxy.
9254// Restrict the characters used to: A-Za-z0-9._-
9255func (c *OrganizationsApisCreateCall) Name(name string) *OrganizationsApisCreateCall {
9256	c.urlParams_.Set("name", name)
9257	return c
9258}
9259
9260// Validate sets the optional parameter "validate": Ignored. All uploads
9261// are validated regardless of the value of this
9262// field. Maintained for compatibility with Apigee Edge API.
9263func (c *OrganizationsApisCreateCall) Validate(validate bool) *OrganizationsApisCreateCall {
9264	c.urlParams_.Set("validate", fmt.Sprint(validate))
9265	return c
9266}
9267
9268// Fields allows partial responses to be retrieved. See
9269// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9270// for more information.
9271func (c *OrganizationsApisCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisCreateCall {
9272	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9273	return c
9274}
9275
9276// Context sets the context to be used in this call's Do method. Any
9277// pending HTTP request will be aborted if the provided context is
9278// canceled.
9279func (c *OrganizationsApisCreateCall) Context(ctx context.Context) *OrganizationsApisCreateCall {
9280	c.ctx_ = ctx
9281	return c
9282}
9283
9284// Header returns an http.Header that can be modified by the caller to
9285// add HTTP headers to the request.
9286func (c *OrganizationsApisCreateCall) Header() http.Header {
9287	if c.header_ == nil {
9288		c.header_ = make(http.Header)
9289	}
9290	return c.header_
9291}
9292
9293func (c *OrganizationsApisCreateCall) doRequest(alt string) (*http.Response, error) {
9294	reqHeaders := make(http.Header)
9295	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9296	for k, v := range c.header_ {
9297		reqHeaders[k] = v
9298	}
9299	reqHeaders.Set("User-Agent", c.s.userAgent())
9300	var body io.Reader = nil
9301	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
9302	if err != nil {
9303		return nil, err
9304	}
9305	reqHeaders.Set("Content-Type", "application/json")
9306	c.urlParams_.Set("alt", alt)
9307	c.urlParams_.Set("prettyPrint", "false")
9308	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
9309	urls += "?" + c.urlParams_.Encode()
9310	req, err := http.NewRequest("POST", urls, body)
9311	if err != nil {
9312		return nil, err
9313	}
9314	req.Header = reqHeaders
9315	googleapi.Expand(req.URL, map[string]string{
9316		"parent": c.parent,
9317	})
9318	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9319}
9320
9321// Do executes the "apigee.organizations.apis.create" call.
9322// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
9323// non-nil. Any non-2xx status code is an error. Response headers are in
9324// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
9325// (if a response was returned at all) in
9326// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9327// whether the returned error was because http.StatusNotModified was
9328// returned.
9329func (c *OrganizationsApisCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
9330	gensupport.SetOptions(c.urlParams_, opts...)
9331	res, err := c.doRequest("json")
9332	if res != nil && res.StatusCode == http.StatusNotModified {
9333		if res.Body != nil {
9334			res.Body.Close()
9335		}
9336		return nil, &googleapi.Error{
9337			Code:   res.StatusCode,
9338			Header: res.Header,
9339		}
9340	}
9341	if err != nil {
9342		return nil, err
9343	}
9344	defer googleapi.CloseBody(res)
9345	if err := googleapi.CheckResponse(res); err != nil {
9346		return nil, err
9347	}
9348	ret := &GoogleCloudApigeeV1ApiProxyRevision{
9349		ServerResponse: googleapi.ServerResponse{
9350			Header:         res.Header,
9351			HTTPStatusCode: res.StatusCode,
9352		},
9353	}
9354	target := &ret
9355	if err := gensupport.DecodeResponse(target, res); err != nil {
9356		return nil, err
9357	}
9358	return ret, nil
9359	// {
9360	//   "description": "Creates an API proxy.\nThe API proxy created will not be accessible at runtime until it is\ndeployed to an environment.\n\nCreate a new API proxy by setting the `name` query parameter to the\nname of the API proxy.\n\nImport an API proxy configuration bundle stored in zip format\non your local machine to your organization by doing the following:\n\n* Set the `name` query parameter to the name of the API proxy.\n* Set the `action` query parameter to `import`.\n* Set the `Content-Type` header to `multipart/form-data`.\n* Pass as a file the name of API proxy\n  configuration bundle stored in zip format on your local machine.\n\n**Note**: To validate the API proxy configuration bundle only\n  without importing it, set the `action` query\n  parameter to `validate`.\n\nWhen importing an API proxy configuration bundle, if the API proxy\ndoes not exist, it will be created.\nIf the API proxy exists, then a new revision is created. Invalid API\nproxy configurations are rejected, and a list of validation errors is\nreturned to the client.",
9361	//   "flatPath": "v1/organizations/{organizationsId}/apis",
9362	//   "httpMethod": "POST",
9363	//   "id": "apigee.organizations.apis.create",
9364	//   "parameterOrder": [
9365	//     "parent"
9366	//   ],
9367	//   "parameters": {
9368	//     "action": {
9369	//       "description": "Action to perform when importing an API proxy configuration bundle. Set\nthis parameter to one of the following values:\n\n* `import` to import the API proxy configuration bundle.\n* `validate` to validate the API proxy configuration bundle without\n   importing it.",
9370	//       "location": "query",
9371	//       "type": "string"
9372	//     },
9373	//     "name": {
9374	//       "description": "Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-",
9375	//       "location": "query",
9376	//       "type": "string"
9377	//     },
9378	//     "parent": {
9379	//       "description": "Required. Name of the organization in the following format:\n  `organizations/{organization_id}`",
9380	//       "location": "path",
9381	//       "pattern": "^organizations/[^/]+$",
9382	//       "required": true,
9383	//       "type": "string"
9384	//     },
9385	//     "validate": {
9386	//       "description": "Ignored. All uploads are validated regardless of the value of this\nfield. Maintained for compatibility with Apigee Edge API.",
9387	//       "location": "query",
9388	//       "type": "boolean"
9389	//     }
9390	//   },
9391	//   "path": "v1/{+parent}/apis",
9392	//   "request": {
9393	//     "$ref": "GoogleApiHttpBody"
9394	//   },
9395	//   "response": {
9396	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
9397	//   },
9398	//   "scopes": [
9399	//     "https://www.googleapis.com/auth/cloud-platform"
9400	//   ]
9401	// }
9402
9403}
9404
9405// method id "apigee.organizations.apis.delete":
9406
9407type OrganizationsApisDeleteCall struct {
9408	s          *Service
9409	name       string
9410	urlParams_ gensupport.URLParams
9411	ctx_       context.Context
9412	header_    http.Header
9413}
9414
9415// Delete: Deletes an API proxy and all associated endpoints, policies,
9416// resources, and
9417// revisions. The API proxy must be undeployed before you can delete it.
9418func (r *OrganizationsApisService) Delete(name string) *OrganizationsApisDeleteCall {
9419	c := &OrganizationsApisDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9420	c.name = name
9421	return c
9422}
9423
9424// Fields allows partial responses to be retrieved. See
9425// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9426// for more information.
9427func (c *OrganizationsApisDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisDeleteCall {
9428	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9429	return c
9430}
9431
9432// Context sets the context to be used in this call's Do method. Any
9433// pending HTTP request will be aborted if the provided context is
9434// canceled.
9435func (c *OrganizationsApisDeleteCall) Context(ctx context.Context) *OrganizationsApisDeleteCall {
9436	c.ctx_ = ctx
9437	return c
9438}
9439
9440// Header returns an http.Header that can be modified by the caller to
9441// add HTTP headers to the request.
9442func (c *OrganizationsApisDeleteCall) Header() http.Header {
9443	if c.header_ == nil {
9444		c.header_ = make(http.Header)
9445	}
9446	return c.header_
9447}
9448
9449func (c *OrganizationsApisDeleteCall) doRequest(alt string) (*http.Response, error) {
9450	reqHeaders := make(http.Header)
9451	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9452	for k, v := range c.header_ {
9453		reqHeaders[k] = v
9454	}
9455	reqHeaders.Set("User-Agent", c.s.userAgent())
9456	var body io.Reader = nil
9457	c.urlParams_.Set("alt", alt)
9458	c.urlParams_.Set("prettyPrint", "false")
9459	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9460	urls += "?" + c.urlParams_.Encode()
9461	req, err := http.NewRequest("DELETE", urls, body)
9462	if err != nil {
9463		return nil, err
9464	}
9465	req.Header = reqHeaders
9466	googleapi.Expand(req.URL, map[string]string{
9467		"name": c.name,
9468	})
9469	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9470}
9471
9472// Do executes the "apigee.organizations.apis.delete" call.
9473// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
9474// Any non-2xx status code is an error. Response headers are in either
9475// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
9476// was returned at all) in error.(*googleapi.Error).Header. Use
9477// googleapi.IsNotModified to check whether the returned error was
9478// because http.StatusNotModified was returned.
9479func (c *OrganizationsApisDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
9480	gensupport.SetOptions(c.urlParams_, opts...)
9481	res, err := c.doRequest("json")
9482	if res != nil && res.StatusCode == http.StatusNotModified {
9483		if res.Body != nil {
9484			res.Body.Close()
9485		}
9486		return nil, &googleapi.Error{
9487			Code:   res.StatusCode,
9488			Header: res.Header,
9489		}
9490	}
9491	if err != nil {
9492		return nil, err
9493	}
9494	defer googleapi.CloseBody(res)
9495	if err := googleapi.CheckResponse(res); err != nil {
9496		return nil, err
9497	}
9498	ret := &GoogleCloudApigeeV1ApiProxy{
9499		ServerResponse: googleapi.ServerResponse{
9500			Header:         res.Header,
9501			HTTPStatusCode: res.StatusCode,
9502		},
9503	}
9504	target := &ret
9505	if err := gensupport.DecodeResponse(target, res); err != nil {
9506		return nil, err
9507	}
9508	return ret, nil
9509	// {
9510	//   "description": "Deletes an API proxy and all associated endpoints, policies, resources, and\nrevisions. The API proxy must be undeployed before you can delete it.",
9511	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
9512	//   "httpMethod": "DELETE",
9513	//   "id": "apigee.organizations.apis.delete",
9514	//   "parameterOrder": [
9515	//     "name"
9516	//   ],
9517	//   "parameters": {
9518	//     "name": {
9519	//       "description": "Required. Name of the API proxy in the following format:\n  `organizations/{organization_id}/apis/{api_id}`",
9520	//       "location": "path",
9521	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
9522	//       "required": true,
9523	//       "type": "string"
9524	//     }
9525	//   },
9526	//   "path": "v1/{+name}",
9527	//   "response": {
9528	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
9529	//   },
9530	//   "scopes": [
9531	//     "https://www.googleapis.com/auth/cloud-platform"
9532	//   ]
9533	// }
9534
9535}
9536
9537// method id "apigee.organizations.apis.get":
9538
9539type OrganizationsApisGetCall struct {
9540	s            *Service
9541	name         string
9542	urlParams_   gensupport.URLParams
9543	ifNoneMatch_ string
9544	ctx_         context.Context
9545	header_      http.Header
9546}
9547
9548// Get: Gets an API proxy including a list of existing revisions.
9549func (r *OrganizationsApisService) Get(name string) *OrganizationsApisGetCall {
9550	c := &OrganizationsApisGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9551	c.name = name
9552	return c
9553}
9554
9555// Fields allows partial responses to be retrieved. See
9556// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9557// for more information.
9558func (c *OrganizationsApisGetCall) Fields(s ...googleapi.Field) *OrganizationsApisGetCall {
9559	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9560	return c
9561}
9562
9563// IfNoneMatch sets the optional parameter which makes the operation
9564// fail if the object's ETag matches the given value. This is useful for
9565// getting updates only after the object has changed since the last
9566// request. Use googleapi.IsNotModified to check whether the response
9567// error from Do is the result of In-None-Match.
9568func (c *OrganizationsApisGetCall) IfNoneMatch(entityTag string) *OrganizationsApisGetCall {
9569	c.ifNoneMatch_ = entityTag
9570	return c
9571}
9572
9573// Context sets the context to be used in this call's Do method. Any
9574// pending HTTP request will be aborted if the provided context is
9575// canceled.
9576func (c *OrganizationsApisGetCall) Context(ctx context.Context) *OrganizationsApisGetCall {
9577	c.ctx_ = ctx
9578	return c
9579}
9580
9581// Header returns an http.Header that can be modified by the caller to
9582// add HTTP headers to the request.
9583func (c *OrganizationsApisGetCall) Header() http.Header {
9584	if c.header_ == nil {
9585		c.header_ = make(http.Header)
9586	}
9587	return c.header_
9588}
9589
9590func (c *OrganizationsApisGetCall) doRequest(alt string) (*http.Response, error) {
9591	reqHeaders := make(http.Header)
9592	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9593	for k, v := range c.header_ {
9594		reqHeaders[k] = v
9595	}
9596	reqHeaders.Set("User-Agent", c.s.userAgent())
9597	if c.ifNoneMatch_ != "" {
9598		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9599	}
9600	var body io.Reader = nil
9601	c.urlParams_.Set("alt", alt)
9602	c.urlParams_.Set("prettyPrint", "false")
9603	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9604	urls += "?" + c.urlParams_.Encode()
9605	req, err := http.NewRequest("GET", urls, body)
9606	if err != nil {
9607		return nil, err
9608	}
9609	req.Header = reqHeaders
9610	googleapi.Expand(req.URL, map[string]string{
9611		"name": c.name,
9612	})
9613	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9614}
9615
9616// Do executes the "apigee.organizations.apis.get" call.
9617// Exactly one of *GoogleCloudApigeeV1ApiProxy or error will be non-nil.
9618// Any non-2xx status code is an error. Response headers are in either
9619// *GoogleCloudApigeeV1ApiProxy.ServerResponse.Header or (if a response
9620// was returned at all) in error.(*googleapi.Error).Header. Use
9621// googleapi.IsNotModified to check whether the returned error was
9622// because http.StatusNotModified was returned.
9623func (c *OrganizationsApisGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxy, error) {
9624	gensupport.SetOptions(c.urlParams_, opts...)
9625	res, err := c.doRequest("json")
9626	if res != nil && res.StatusCode == http.StatusNotModified {
9627		if res.Body != nil {
9628			res.Body.Close()
9629		}
9630		return nil, &googleapi.Error{
9631			Code:   res.StatusCode,
9632			Header: res.Header,
9633		}
9634	}
9635	if err != nil {
9636		return nil, err
9637	}
9638	defer googleapi.CloseBody(res)
9639	if err := googleapi.CheckResponse(res); err != nil {
9640		return nil, err
9641	}
9642	ret := &GoogleCloudApigeeV1ApiProxy{
9643		ServerResponse: googleapi.ServerResponse{
9644			Header:         res.Header,
9645			HTTPStatusCode: res.StatusCode,
9646		},
9647	}
9648	target := &ret
9649	if err := gensupport.DecodeResponse(target, res); err != nil {
9650		return nil, err
9651	}
9652	return ret, nil
9653	// {
9654	//   "description": "Gets an API proxy including a list of existing revisions.",
9655	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}",
9656	//   "httpMethod": "GET",
9657	//   "id": "apigee.organizations.apis.get",
9658	//   "parameterOrder": [
9659	//     "name"
9660	//   ],
9661	//   "parameters": {
9662	//     "name": {
9663	//       "description": "Required. Name of the API proxy in the following format:\n  `organizations/{organization_id}/apis/{api_id}`",
9664	//       "location": "path",
9665	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
9666	//       "required": true,
9667	//       "type": "string"
9668	//     }
9669	//   },
9670	//   "path": "v1/{+name}",
9671	//   "response": {
9672	//     "$ref": "GoogleCloudApigeeV1ApiProxy"
9673	//   },
9674	//   "scopes": [
9675	//     "https://www.googleapis.com/auth/cloud-platform"
9676	//   ]
9677	// }
9678
9679}
9680
9681// method id "apigee.organizations.apis.list":
9682
9683type OrganizationsApisListCall struct {
9684	s            *Service
9685	parent       string
9686	urlParams_   gensupport.URLParams
9687	ifNoneMatch_ string
9688	ctx_         context.Context
9689	header_      http.Header
9690}
9691
9692// List: Lists the names of all API proxies in an organization. The
9693// names returned
9694// correspond to the names defined in the configuration files for each
9695// API
9696// proxy.
9697func (r *OrganizationsApisService) List(parent string) *OrganizationsApisListCall {
9698	c := &OrganizationsApisListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9699	c.parent = parent
9700	return c
9701}
9702
9703// IncludeMetaData sets the optional parameter "includeMetaData": Flag
9704// that specifies whether to include API proxy metadata in the response.
9705func (c *OrganizationsApisListCall) IncludeMetaData(includeMetaData bool) *OrganizationsApisListCall {
9706	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
9707	return c
9708}
9709
9710// IncludeRevisions sets the optional parameter "includeRevisions": Flag
9711// that specifies whether to include a list of revisions in the
9712// response.
9713func (c *OrganizationsApisListCall) IncludeRevisions(includeRevisions bool) *OrganizationsApisListCall {
9714	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
9715	return c
9716}
9717
9718// Fields allows partial responses to be retrieved. See
9719// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9720// for more information.
9721func (c *OrganizationsApisListCall) Fields(s ...googleapi.Field) *OrganizationsApisListCall {
9722	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9723	return c
9724}
9725
9726// IfNoneMatch sets the optional parameter which makes the operation
9727// fail if the object's ETag matches the given value. This is useful for
9728// getting updates only after the object has changed since the last
9729// request. Use googleapi.IsNotModified to check whether the response
9730// error from Do is the result of In-None-Match.
9731func (c *OrganizationsApisListCall) IfNoneMatch(entityTag string) *OrganizationsApisListCall {
9732	c.ifNoneMatch_ = entityTag
9733	return c
9734}
9735
9736// Context sets the context to be used in this call's Do method. Any
9737// pending HTTP request will be aborted if the provided context is
9738// canceled.
9739func (c *OrganizationsApisListCall) Context(ctx context.Context) *OrganizationsApisListCall {
9740	c.ctx_ = ctx
9741	return c
9742}
9743
9744// Header returns an http.Header that can be modified by the caller to
9745// add HTTP headers to the request.
9746func (c *OrganizationsApisListCall) Header() http.Header {
9747	if c.header_ == nil {
9748		c.header_ = make(http.Header)
9749	}
9750	return c.header_
9751}
9752
9753func (c *OrganizationsApisListCall) doRequest(alt string) (*http.Response, error) {
9754	reqHeaders := make(http.Header)
9755	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9756	for k, v := range c.header_ {
9757		reqHeaders[k] = v
9758	}
9759	reqHeaders.Set("User-Agent", c.s.userAgent())
9760	if c.ifNoneMatch_ != "" {
9761		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9762	}
9763	var body io.Reader = nil
9764	c.urlParams_.Set("alt", alt)
9765	c.urlParams_.Set("prettyPrint", "false")
9766	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apis")
9767	urls += "?" + c.urlParams_.Encode()
9768	req, err := http.NewRequest("GET", urls, body)
9769	if err != nil {
9770		return nil, err
9771	}
9772	req.Header = reqHeaders
9773	googleapi.Expand(req.URL, map[string]string{
9774		"parent": c.parent,
9775	})
9776	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9777}
9778
9779// Do executes the "apigee.organizations.apis.list" call.
9780// Exactly one of *GoogleCloudApigeeV1ListApiProxiesResponse or error
9781// will be non-nil. Any non-2xx status code is an error. Response
9782// headers are in either
9783// *GoogleCloudApigeeV1ListApiProxiesResponse.ServerResponse.Header or
9784// (if a response was returned at all) in
9785// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9786// whether the returned error was because http.StatusNotModified was
9787// returned.
9788func (c *OrganizationsApisListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListApiProxiesResponse, error) {
9789	gensupport.SetOptions(c.urlParams_, opts...)
9790	res, err := c.doRequest("json")
9791	if res != nil && res.StatusCode == http.StatusNotModified {
9792		if res.Body != nil {
9793			res.Body.Close()
9794		}
9795		return nil, &googleapi.Error{
9796			Code:   res.StatusCode,
9797			Header: res.Header,
9798		}
9799	}
9800	if err != nil {
9801		return nil, err
9802	}
9803	defer googleapi.CloseBody(res)
9804	if err := googleapi.CheckResponse(res); err != nil {
9805		return nil, err
9806	}
9807	ret := &GoogleCloudApigeeV1ListApiProxiesResponse{
9808		ServerResponse: googleapi.ServerResponse{
9809			Header:         res.Header,
9810			HTTPStatusCode: res.StatusCode,
9811		},
9812	}
9813	target := &ret
9814	if err := gensupport.DecodeResponse(target, res); err != nil {
9815		return nil, err
9816	}
9817	return ret, nil
9818	// {
9819	//   "description": "Lists the names of all API proxies in an organization. The names returned\ncorrespond to the names defined in the configuration files for each API\nproxy.",
9820	//   "flatPath": "v1/organizations/{organizationsId}/apis",
9821	//   "httpMethod": "GET",
9822	//   "id": "apigee.organizations.apis.list",
9823	//   "parameterOrder": [
9824	//     "parent"
9825	//   ],
9826	//   "parameters": {
9827	//     "includeMetaData": {
9828	//       "description": "Flag that specifies whether to include API proxy metadata in the response.",
9829	//       "location": "query",
9830	//       "type": "boolean"
9831	//     },
9832	//     "includeRevisions": {
9833	//       "description": "Flag that specifies whether to include a list of revisions in the response.",
9834	//       "location": "query",
9835	//       "type": "boolean"
9836	//     },
9837	//     "parent": {
9838	//       "description": "Required. Name of the organization in the following format:\n  `organizations/{organization_id}`",
9839	//       "location": "path",
9840	//       "pattern": "^organizations/[^/]+$",
9841	//       "required": true,
9842	//       "type": "string"
9843	//     }
9844	//   },
9845	//   "path": "v1/{+parent}/apis",
9846	//   "response": {
9847	//     "$ref": "GoogleCloudApigeeV1ListApiProxiesResponse"
9848	//   },
9849	//   "scopes": [
9850	//     "https://www.googleapis.com/auth/cloud-platform"
9851	//   ]
9852	// }
9853
9854}
9855
9856// method id "apigee.organizations.apis.deployments.list":
9857
9858type OrganizationsApisDeploymentsListCall struct {
9859	s            *Service
9860	parent       string
9861	urlParams_   gensupport.URLParams
9862	ifNoneMatch_ string
9863	ctx_         context.Context
9864	header_      http.Header
9865}
9866
9867// List: Lists all deployments of an API proxy.
9868func (r *OrganizationsApisDeploymentsService) List(parent string) *OrganizationsApisDeploymentsListCall {
9869	c := &OrganizationsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9870	c.parent = parent
9871	return c
9872}
9873
9874// Fields allows partial responses to be retrieved. See
9875// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9876// for more information.
9877func (c *OrganizationsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisDeploymentsListCall {
9878	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9879	return c
9880}
9881
9882// IfNoneMatch sets the optional parameter which makes the operation
9883// fail if the object's ETag matches the given value. This is useful for
9884// getting updates only after the object has changed since the last
9885// request. Use googleapi.IsNotModified to check whether the response
9886// error from Do is the result of In-None-Match.
9887func (c *OrganizationsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisDeploymentsListCall {
9888	c.ifNoneMatch_ = entityTag
9889	return c
9890}
9891
9892// Context sets the context to be used in this call's Do method. Any
9893// pending HTTP request will be aborted if the provided context is
9894// canceled.
9895func (c *OrganizationsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisDeploymentsListCall {
9896	c.ctx_ = ctx
9897	return c
9898}
9899
9900// Header returns an http.Header that can be modified by the caller to
9901// add HTTP headers to the request.
9902func (c *OrganizationsApisDeploymentsListCall) Header() http.Header {
9903	if c.header_ == nil {
9904		c.header_ = make(http.Header)
9905	}
9906	return c.header_
9907}
9908
9909func (c *OrganizationsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
9910	reqHeaders := make(http.Header)
9911	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
9912	for k, v := range c.header_ {
9913		reqHeaders[k] = v
9914	}
9915	reqHeaders.Set("User-Agent", c.s.userAgent())
9916	if c.ifNoneMatch_ != "" {
9917		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9918	}
9919	var body io.Reader = nil
9920	c.urlParams_.Set("alt", alt)
9921	c.urlParams_.Set("prettyPrint", "false")
9922	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
9923	urls += "?" + c.urlParams_.Encode()
9924	req, err := http.NewRequest("GET", urls, body)
9925	if err != nil {
9926		return nil, err
9927	}
9928	req.Header = reqHeaders
9929	googleapi.Expand(req.URL, map[string]string{
9930		"parent": c.parent,
9931	})
9932	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9933}
9934
9935// Do executes the "apigee.organizations.apis.deployments.list" call.
9936// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
9937// will be non-nil. Any non-2xx status code is an error. Response
9938// headers are in either
9939// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
9940// (if a response was returned at all) in
9941// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9942// whether the returned error was because http.StatusNotModified was
9943// returned.
9944func (c *OrganizationsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
9945	gensupport.SetOptions(c.urlParams_, opts...)
9946	res, err := c.doRequest("json")
9947	if res != nil && res.StatusCode == http.StatusNotModified {
9948		if res.Body != nil {
9949			res.Body.Close()
9950		}
9951		return nil, &googleapi.Error{
9952			Code:   res.StatusCode,
9953			Header: res.Header,
9954		}
9955	}
9956	if err != nil {
9957		return nil, err
9958	}
9959	defer googleapi.CloseBody(res)
9960	if err := googleapi.CheckResponse(res); err != nil {
9961		return nil, err
9962	}
9963	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
9964		ServerResponse: googleapi.ServerResponse{
9965			Header:         res.Header,
9966			HTTPStatusCode: res.StatusCode,
9967		},
9968	}
9969	target := &ret
9970	if err := gensupport.DecodeResponse(target, res); err != nil {
9971		return nil, err
9972	}
9973	return ret, nil
9974	// {
9975	//   "description": "Lists all deployments of an API proxy.",
9976	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/deployments",
9977	//   "httpMethod": "GET",
9978	//   "id": "apigee.organizations.apis.deployments.list",
9979	//   "parameterOrder": [
9980	//     "parent"
9981	//   ],
9982	//   "parameters": {
9983	//     "parent": {
9984	//       "description": "Required. Name of the API proxy for which to return deployment information in the\nfollowing format:\n `organizations/{org}/apis/{api}`",
9985	//       "location": "path",
9986	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
9987	//       "required": true,
9988	//       "type": "string"
9989	//     }
9990	//   },
9991	//   "path": "v1/{+parent}/deployments",
9992	//   "response": {
9993	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
9994	//   },
9995	//   "scopes": [
9996	//     "https://www.googleapis.com/auth/cloud-platform"
9997	//   ]
9998	// }
9999
10000}
10001
10002// method id "apigee.organizations.apis.keyvaluemaps.create":
10003
10004type OrganizationsApisKeyvaluemapsCreateCall struct {
10005	s                              *Service
10006	parent                         string
10007	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
10008	urlParams_                     gensupport.URLParams
10009	ctx_                           context.Context
10010	header_                        http.Header
10011}
10012
10013// Create: Creates a key value map in an api proxy.
10014func (r *OrganizationsApisKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsApisKeyvaluemapsCreateCall {
10015	c := &OrganizationsApisKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10016	c.parent = parent
10017	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
10018	return c
10019}
10020
10021// Fields allows partial responses to be retrieved. See
10022// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10023// for more information.
10024func (c *OrganizationsApisKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsCreateCall {
10025	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10026	return c
10027}
10028
10029// Context sets the context to be used in this call's Do method. Any
10030// pending HTTP request will be aborted if the provided context is
10031// canceled.
10032func (c *OrganizationsApisKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsCreateCall {
10033	c.ctx_ = ctx
10034	return c
10035}
10036
10037// Header returns an http.Header that can be modified by the caller to
10038// add HTTP headers to the request.
10039func (c *OrganizationsApisKeyvaluemapsCreateCall) Header() http.Header {
10040	if c.header_ == nil {
10041		c.header_ = make(http.Header)
10042	}
10043	return c.header_
10044}
10045
10046func (c *OrganizationsApisKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
10047	reqHeaders := make(http.Header)
10048	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10049	for k, v := range c.header_ {
10050		reqHeaders[k] = v
10051	}
10052	reqHeaders.Set("User-Agent", c.s.userAgent())
10053	var body io.Reader = nil
10054	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
10055	if err != nil {
10056		return nil, err
10057	}
10058	reqHeaders.Set("Content-Type", "application/json")
10059	c.urlParams_.Set("alt", alt)
10060	c.urlParams_.Set("prettyPrint", "false")
10061	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
10062	urls += "?" + c.urlParams_.Encode()
10063	req, err := http.NewRequest("POST", urls, body)
10064	if err != nil {
10065		return nil, err
10066	}
10067	req.Header = reqHeaders
10068	googleapi.Expand(req.URL, map[string]string{
10069		"parent": c.parent,
10070	})
10071	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10072}
10073
10074// Do executes the "apigee.organizations.apis.keyvaluemaps.create" call.
10075// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
10076// non-nil. Any non-2xx status code is an error. Response headers are in
10077// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
10078// response was returned at all) in error.(*googleapi.Error).Header. Use
10079// googleapi.IsNotModified to check whether the returned error was
10080// because http.StatusNotModified was returned.
10081func (c *OrganizationsApisKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
10082	gensupport.SetOptions(c.urlParams_, opts...)
10083	res, err := c.doRequest("json")
10084	if res != nil && res.StatusCode == http.StatusNotModified {
10085		if res.Body != nil {
10086			res.Body.Close()
10087		}
10088		return nil, &googleapi.Error{
10089			Code:   res.StatusCode,
10090			Header: res.Header,
10091		}
10092	}
10093	if err != nil {
10094		return nil, err
10095	}
10096	defer googleapi.CloseBody(res)
10097	if err := googleapi.CheckResponse(res); err != nil {
10098		return nil, err
10099	}
10100	ret := &GoogleCloudApigeeV1KeyValueMap{
10101		ServerResponse: googleapi.ServerResponse{
10102			Header:         res.Header,
10103			HTTPStatusCode: res.StatusCode,
10104		},
10105	}
10106	target := &ret
10107	if err := gensupport.DecodeResponse(target, res); err != nil {
10108		return nil, err
10109	}
10110	return ret, nil
10111	// {
10112	//   "description": "Creates a key value map in an api proxy.",
10113	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
10114	//   "httpMethod": "POST",
10115	//   "id": "apigee.organizations.apis.keyvaluemaps.create",
10116	//   "parameterOrder": [
10117	//     "parent"
10118	//   ],
10119	//   "parameters": {
10120	//     "parent": {
10121	//       "description": "Required. The name of the environment in which to create the key value map.\nMust be of the form\n`organizations/{organization}/apis/{api}`.",
10122	//       "location": "path",
10123	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
10124	//       "required": true,
10125	//       "type": "string"
10126	//     }
10127	//   },
10128	//   "path": "v1/{+parent}/keyvaluemaps",
10129	//   "request": {
10130	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
10131	//   },
10132	//   "response": {
10133	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
10134	//   },
10135	//   "scopes": [
10136	//     "https://www.googleapis.com/auth/cloud-platform"
10137	//   ]
10138	// }
10139
10140}
10141
10142// method id "apigee.organizations.apis.keyvaluemaps.delete":
10143
10144type OrganizationsApisKeyvaluemapsDeleteCall struct {
10145	s          *Service
10146	name       string
10147	urlParams_ gensupport.URLParams
10148	ctx_       context.Context
10149	header_    http.Header
10150}
10151
10152// Delete: Delete a key value map in an api proxy.
10153func (r *OrganizationsApisKeyvaluemapsService) Delete(name string) *OrganizationsApisKeyvaluemapsDeleteCall {
10154	c := &OrganizationsApisKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10155	c.name = name
10156	return c
10157}
10158
10159// Fields allows partial responses to be retrieved. See
10160// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10161// for more information.
10162func (c *OrganizationsApisKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsDeleteCall {
10163	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10164	return c
10165}
10166
10167// Context sets the context to be used in this call's Do method. Any
10168// pending HTTP request will be aborted if the provided context is
10169// canceled.
10170func (c *OrganizationsApisKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsDeleteCall {
10171	c.ctx_ = ctx
10172	return c
10173}
10174
10175// Header returns an http.Header that can be modified by the caller to
10176// add HTTP headers to the request.
10177func (c *OrganizationsApisKeyvaluemapsDeleteCall) Header() http.Header {
10178	if c.header_ == nil {
10179		c.header_ = make(http.Header)
10180	}
10181	return c.header_
10182}
10183
10184func (c *OrganizationsApisKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
10185	reqHeaders := make(http.Header)
10186	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10187	for k, v := range c.header_ {
10188		reqHeaders[k] = v
10189	}
10190	reqHeaders.Set("User-Agent", c.s.userAgent())
10191	var body io.Reader = nil
10192	c.urlParams_.Set("alt", alt)
10193	c.urlParams_.Set("prettyPrint", "false")
10194	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10195	urls += "?" + c.urlParams_.Encode()
10196	req, err := http.NewRequest("DELETE", urls, body)
10197	if err != nil {
10198		return nil, err
10199	}
10200	req.Header = reqHeaders
10201	googleapi.Expand(req.URL, map[string]string{
10202		"name": c.name,
10203	})
10204	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10205}
10206
10207// Do executes the "apigee.organizations.apis.keyvaluemaps.delete" call.
10208// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
10209// non-nil. Any non-2xx status code is an error. Response headers are in
10210// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
10211// response was returned at all) in error.(*googleapi.Error).Header. Use
10212// googleapi.IsNotModified to check whether the returned error was
10213// because http.StatusNotModified was returned.
10214func (c *OrganizationsApisKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
10215	gensupport.SetOptions(c.urlParams_, opts...)
10216	res, err := c.doRequest("json")
10217	if res != nil && res.StatusCode == http.StatusNotModified {
10218		if res.Body != nil {
10219			res.Body.Close()
10220		}
10221		return nil, &googleapi.Error{
10222			Code:   res.StatusCode,
10223			Header: res.Header,
10224		}
10225	}
10226	if err != nil {
10227		return nil, err
10228	}
10229	defer googleapi.CloseBody(res)
10230	if err := googleapi.CheckResponse(res); err != nil {
10231		return nil, err
10232	}
10233	ret := &GoogleCloudApigeeV1KeyValueMap{
10234		ServerResponse: googleapi.ServerResponse{
10235			Header:         res.Header,
10236			HTTPStatusCode: res.StatusCode,
10237		},
10238	}
10239	target := &ret
10240	if err := gensupport.DecodeResponse(target, res); err != nil {
10241		return nil, err
10242	}
10243	return ret, nil
10244	// {
10245	//   "description": "Delete a key value map in an api proxy.",
10246	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps/{keyvaluemapsId}",
10247	//   "httpMethod": "DELETE",
10248	//   "id": "apigee.organizations.apis.keyvaluemaps.delete",
10249	//   "parameterOrder": [
10250	//     "name"
10251	//   ],
10252	//   "parameters": {
10253	//     "name": {
10254	//       "description": "Required. The name of the key value map.\nMust be of the form\n`organizations/{organization}/apis/{api}/keyvaluemaps/{keyvaluemap}`.",
10255	//       "location": "path",
10256	//       "pattern": "^organizations/[^/]+/apis/[^/]+/keyvaluemaps/[^/]+$",
10257	//       "required": true,
10258	//       "type": "string"
10259	//     }
10260	//   },
10261	//   "path": "v1/{+name}",
10262	//   "response": {
10263	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
10264	//   },
10265	//   "scopes": [
10266	//     "https://www.googleapis.com/auth/cloud-platform"
10267	//   ]
10268	// }
10269
10270}
10271
10272// method id "apigee.organizations.apis.keyvaluemaps.list":
10273
10274type OrganizationsApisKeyvaluemapsListCall struct {
10275	s            *Service
10276	parent       string
10277	urlParams_   gensupport.URLParams
10278	ifNoneMatch_ string
10279	ctx_         context.Context
10280	header_      http.Header
10281}
10282
10283// List: List key value maps in an api proxy.
10284func (r *OrganizationsApisKeyvaluemapsService) List(parent string) *OrganizationsApisKeyvaluemapsListCall {
10285	c := &OrganizationsApisKeyvaluemapsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10286	c.parent = parent
10287	return c
10288}
10289
10290// Fields allows partial responses to be retrieved. See
10291// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10292// for more information.
10293func (c *OrganizationsApisKeyvaluemapsListCall) Fields(s ...googleapi.Field) *OrganizationsApisKeyvaluemapsListCall {
10294	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10295	return c
10296}
10297
10298// IfNoneMatch sets the optional parameter which makes the operation
10299// fail if the object's ETag matches the given value. This is useful for
10300// getting updates only after the object has changed since the last
10301// request. Use googleapi.IsNotModified to check whether the response
10302// error from Do is the result of In-None-Match.
10303func (c *OrganizationsApisKeyvaluemapsListCall) IfNoneMatch(entityTag string) *OrganizationsApisKeyvaluemapsListCall {
10304	c.ifNoneMatch_ = entityTag
10305	return c
10306}
10307
10308// Context sets the context to be used in this call's Do method. Any
10309// pending HTTP request will be aborted if the provided context is
10310// canceled.
10311func (c *OrganizationsApisKeyvaluemapsListCall) Context(ctx context.Context) *OrganizationsApisKeyvaluemapsListCall {
10312	c.ctx_ = ctx
10313	return c
10314}
10315
10316// Header returns an http.Header that can be modified by the caller to
10317// add HTTP headers to the request.
10318func (c *OrganizationsApisKeyvaluemapsListCall) Header() http.Header {
10319	if c.header_ == nil {
10320		c.header_ = make(http.Header)
10321	}
10322	return c.header_
10323}
10324
10325func (c *OrganizationsApisKeyvaluemapsListCall) doRequest(alt string) (*http.Response, error) {
10326	reqHeaders := make(http.Header)
10327	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10328	for k, v := range c.header_ {
10329		reqHeaders[k] = v
10330	}
10331	reqHeaders.Set("User-Agent", c.s.userAgent())
10332	if c.ifNoneMatch_ != "" {
10333		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10334	}
10335	var body io.Reader = nil
10336	c.urlParams_.Set("alt", alt)
10337	c.urlParams_.Set("prettyPrint", "false")
10338	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
10339	urls += "?" + c.urlParams_.Encode()
10340	req, err := http.NewRequest("GET", urls, body)
10341	if err != nil {
10342		return nil, err
10343	}
10344	req.Header = reqHeaders
10345	googleapi.Expand(req.URL, map[string]string{
10346		"parent": c.parent,
10347	})
10348	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10349}
10350
10351// Do executes the "apigee.organizations.apis.keyvaluemaps.list" call.
10352func (c *OrganizationsApisKeyvaluemapsListCall) Do(opts ...googleapi.CallOption) error {
10353	gensupport.SetOptions(c.urlParams_, opts...)
10354	res, err := c.doRequest("json")
10355	if err != nil {
10356		return err
10357	}
10358	defer googleapi.CloseBody(res)
10359	if err := googleapi.CheckResponse(res); err != nil {
10360		return err
10361	}
10362	return nil
10363	// {
10364	//   "description": "List key value maps in an api proxy.",
10365	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/keyvaluemaps",
10366	//   "httpMethod": "GET",
10367	//   "id": "apigee.organizations.apis.keyvaluemaps.list",
10368	//   "parameterOrder": [
10369	//     "parent"
10370	//   ],
10371	//   "parameters": {
10372	//     "parent": {
10373	//       "description": "Required. The name of the environment in which to list key value maps.\nMust be of the form\n`organizations/{organization}/apis/{api}`.",
10374	//       "location": "path",
10375	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
10376	//       "required": true,
10377	//       "type": "string"
10378	//     }
10379	//   },
10380	//   "path": "v1/{+parent}/keyvaluemaps",
10381	//   "response": {
10382	//     "items": {
10383	//       "type": "any"
10384	//     },
10385	//     "type": "array"
10386	//   },
10387	//   "scopes": [
10388	//     "https://www.googleapis.com/auth/cloud-platform"
10389	//   ]
10390	// }
10391
10392}
10393
10394// method id "apigee.organizations.apis.revisions.delete":
10395
10396type OrganizationsApisRevisionsDeleteCall struct {
10397	s          *Service
10398	name       string
10399	urlParams_ gensupport.URLParams
10400	ctx_       context.Context
10401	header_    http.Header
10402}
10403
10404// Delete: Deletes an API proxy revision and all policies, resources,
10405// endpoints,
10406// and revisions associated with it. The API proxy revision must be
10407// undeployed
10408// before you can delete it.
10409func (r *OrganizationsApisRevisionsService) Delete(name string) *OrganizationsApisRevisionsDeleteCall {
10410	c := &OrganizationsApisRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10411	c.name = name
10412	return c
10413}
10414
10415// Fields allows partial responses to be retrieved. See
10416// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10417// for more information.
10418func (c *OrganizationsApisRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeleteCall {
10419	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10420	return c
10421}
10422
10423// Context sets the context to be used in this call's Do method. Any
10424// pending HTTP request will be aborted if the provided context is
10425// canceled.
10426func (c *OrganizationsApisRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeleteCall {
10427	c.ctx_ = ctx
10428	return c
10429}
10430
10431// Header returns an http.Header that can be modified by the caller to
10432// add HTTP headers to the request.
10433func (c *OrganizationsApisRevisionsDeleteCall) Header() http.Header {
10434	if c.header_ == nil {
10435		c.header_ = make(http.Header)
10436	}
10437	return c.header_
10438}
10439
10440func (c *OrganizationsApisRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
10441	reqHeaders := make(http.Header)
10442	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10443	for k, v := range c.header_ {
10444		reqHeaders[k] = v
10445	}
10446	reqHeaders.Set("User-Agent", c.s.userAgent())
10447	var body io.Reader = nil
10448	c.urlParams_.Set("alt", alt)
10449	c.urlParams_.Set("prettyPrint", "false")
10450	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10451	urls += "?" + c.urlParams_.Encode()
10452	req, err := http.NewRequest("DELETE", urls, body)
10453	if err != nil {
10454		return nil, err
10455	}
10456	req.Header = reqHeaders
10457	googleapi.Expand(req.URL, map[string]string{
10458		"name": c.name,
10459	})
10460	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10461}
10462
10463// Do executes the "apigee.organizations.apis.revisions.delete" call.
10464// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
10465// non-nil. Any non-2xx status code is an error. Response headers are in
10466// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
10467// (if a response was returned at all) in
10468// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10469// whether the returned error was because http.StatusNotModified was
10470// returned.
10471func (c *OrganizationsApisRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
10472	gensupport.SetOptions(c.urlParams_, opts...)
10473	res, err := c.doRequest("json")
10474	if res != nil && res.StatusCode == http.StatusNotModified {
10475		if res.Body != nil {
10476			res.Body.Close()
10477		}
10478		return nil, &googleapi.Error{
10479			Code:   res.StatusCode,
10480			Header: res.Header,
10481		}
10482	}
10483	if err != nil {
10484		return nil, err
10485	}
10486	defer googleapi.CloseBody(res)
10487	if err := googleapi.CheckResponse(res); err != nil {
10488		return nil, err
10489	}
10490	ret := &GoogleCloudApigeeV1ApiProxyRevision{
10491		ServerResponse: googleapi.ServerResponse{
10492			Header:         res.Header,
10493			HTTPStatusCode: res.StatusCode,
10494		},
10495	}
10496	target := &ret
10497	if err := gensupport.DecodeResponse(target, res); err != nil {
10498		return nil, err
10499	}
10500	return ret, nil
10501	// {
10502	//   "description": "Deletes an API proxy revision and all policies, resources, endpoints,\nand revisions associated with it. The API proxy revision must be undeployed\nbefore you can delete it.",
10503	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
10504	//   "httpMethod": "DELETE",
10505	//   "id": "apigee.organizations.apis.revisions.delete",
10506	//   "parameterOrder": [
10507	//     "name"
10508	//   ],
10509	//   "parameters": {
10510	//     "name": {
10511	//       "description": "Required. API proxy revision in the following format:\n  `organizations/{organization_id}/apis/{api_id}/revisions/{revision_id}`",
10512	//       "location": "path",
10513	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
10514	//       "required": true,
10515	//       "type": "string"
10516	//     }
10517	//   },
10518	//   "path": "v1/{+name}",
10519	//   "response": {
10520	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
10521	//   },
10522	//   "scopes": [
10523	//     "https://www.googleapis.com/auth/cloud-platform"
10524	//   ]
10525	// }
10526
10527}
10528
10529// method id "apigee.organizations.apis.revisions.get":
10530
10531type OrganizationsApisRevisionsGetCall struct {
10532	s            *Service
10533	name         string
10534	urlParams_   gensupport.URLParams
10535	ifNoneMatch_ string
10536	ctx_         context.Context
10537	header_      http.Header
10538}
10539
10540// Get: Gets an API proxy revision.
10541//
10542// To download the API proxy configuration bundle for the specified
10543// revision
10544// as a zip file, do the following:
10545//
10546//  * Set the `format` query parameter to `bundle`.
10547//  * Set the `Accept` header to `application/zip`.
10548//
10549// If you are using curl, specify `-o filename.zip` to save the output
10550// to a
10551// file; otherwise, it displays to `stdout`. Then, develop the API
10552// proxy
10553// configuration locally and upload the updated API proxy
10554// configuration
10555// revision, as described
10556// in
10557// [updateApiProxyRevision](updateApiProxyRevision).
10558func (r *OrganizationsApisRevisionsService) Get(name string) *OrganizationsApisRevisionsGetCall {
10559	c := &OrganizationsApisRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10560	c.name = name
10561	return c
10562}
10563
10564// Format sets the optional parameter "format": Format used when
10565// downloading the API proxy configuration revision.
10566// Set to `bundle` to download the API proxy configuration revision as a
10567// zip
10568// file.
10569func (c *OrganizationsApisRevisionsGetCall) Format(format string) *OrganizationsApisRevisionsGetCall {
10570	c.urlParams_.Set("format", format)
10571	return c
10572}
10573
10574// Fields allows partial responses to be retrieved. See
10575// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10576// for more information.
10577func (c *OrganizationsApisRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsGetCall {
10578	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10579	return c
10580}
10581
10582// IfNoneMatch sets the optional parameter which makes the operation
10583// fail if the object's ETag matches the given value. This is useful for
10584// getting updates only after the object has changed since the last
10585// request. Use googleapi.IsNotModified to check whether the response
10586// error from Do is the result of In-None-Match.
10587func (c *OrganizationsApisRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsGetCall {
10588	c.ifNoneMatch_ = entityTag
10589	return c
10590}
10591
10592// Context sets the context to be used in this call's Do method. Any
10593// pending HTTP request will be aborted if the provided context is
10594// canceled.
10595func (c *OrganizationsApisRevisionsGetCall) Context(ctx context.Context) *OrganizationsApisRevisionsGetCall {
10596	c.ctx_ = ctx
10597	return c
10598}
10599
10600// Header returns an http.Header that can be modified by the caller to
10601// add HTTP headers to the request.
10602func (c *OrganizationsApisRevisionsGetCall) Header() http.Header {
10603	if c.header_ == nil {
10604		c.header_ = make(http.Header)
10605	}
10606	return c.header_
10607}
10608
10609func (c *OrganizationsApisRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
10610	reqHeaders := make(http.Header)
10611	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10612	for k, v := range c.header_ {
10613		reqHeaders[k] = v
10614	}
10615	reqHeaders.Set("User-Agent", c.s.userAgent())
10616	if c.ifNoneMatch_ != "" {
10617		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10618	}
10619	var body io.Reader = nil
10620	c.urlParams_.Set("alt", alt)
10621	c.urlParams_.Set("prettyPrint", "false")
10622	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10623	urls += "?" + c.urlParams_.Encode()
10624	req, err := http.NewRequest("GET", urls, body)
10625	if err != nil {
10626		return nil, err
10627	}
10628	req.Header = reqHeaders
10629	googleapi.Expand(req.URL, map[string]string{
10630		"name": c.name,
10631	})
10632	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10633}
10634
10635// Do executes the "apigee.organizations.apis.revisions.get" call.
10636// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
10637// non-2xx status code is an error. Response headers are in either
10638// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
10639// returned at all) in error.(*googleapi.Error).Header. Use
10640// googleapi.IsNotModified to check whether the returned error was
10641// because http.StatusNotModified was returned.
10642func (c *OrganizationsApisRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
10643	gensupport.SetOptions(c.urlParams_, opts...)
10644	res, err := c.doRequest("json")
10645	if res != nil && res.StatusCode == http.StatusNotModified {
10646		if res.Body != nil {
10647			res.Body.Close()
10648		}
10649		return nil, &googleapi.Error{
10650			Code:   res.StatusCode,
10651			Header: res.Header,
10652		}
10653	}
10654	if err != nil {
10655		return nil, err
10656	}
10657	defer googleapi.CloseBody(res)
10658	if err := googleapi.CheckResponse(res); err != nil {
10659		return nil, err
10660	}
10661	ret := &GoogleApiHttpBody{
10662		ServerResponse: googleapi.ServerResponse{
10663			Header:         res.Header,
10664			HTTPStatusCode: res.StatusCode,
10665		},
10666	}
10667	target := &ret
10668	if err := gensupport.DecodeResponse(target, res); err != nil {
10669		return nil, err
10670	}
10671	return ret, nil
10672	// {
10673	//   "description": "Gets an API proxy revision.\n\nTo download the API proxy configuration bundle for the specified revision\nas a zip file, do the following:\n\n * Set the `format` query parameter to `bundle`.\n * Set the `Accept` header to `application/zip`.\n\nIf you are using curl, specify `-o filename.zip` to save the output to a\nfile; otherwise, it displays to `stdout`. Then, develop the API proxy\nconfiguration locally and upload the updated API proxy configuration\nrevision, as described in\n[updateApiProxyRevision](updateApiProxyRevision).",
10674	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
10675	//   "httpMethod": "GET",
10676	//   "id": "apigee.organizations.apis.revisions.get",
10677	//   "parameterOrder": [
10678	//     "name"
10679	//   ],
10680	//   "parameters": {
10681	//     "format": {
10682	//       "description": "Format used when downloading the API proxy configuration revision.\nSet to `bundle` to download the API proxy configuration revision as a zip\nfile.",
10683	//       "location": "query",
10684	//       "type": "string"
10685	//     },
10686	//     "name": {
10687	//       "description": "Required. API proxy revision in the following format:\n  `organizations/{organization_id}/apis/{api_id}/revisions/{revision_id}`",
10688	//       "location": "path",
10689	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
10690	//       "required": true,
10691	//       "type": "string"
10692	//     }
10693	//   },
10694	//   "path": "v1/{+name}",
10695	//   "response": {
10696	//     "$ref": "GoogleApiHttpBody"
10697	//   },
10698	//   "scopes": [
10699	//     "https://www.googleapis.com/auth/cloud-platform"
10700	//   ]
10701	// }
10702
10703}
10704
10705// method id "apigee.organizations.apis.revisions.list":
10706
10707type OrganizationsApisRevisionsListCall struct {
10708	s            *Service
10709	parent       string
10710	urlParams_   gensupport.URLParams
10711	ifNoneMatch_ string
10712	ctx_         context.Context
10713	header_      http.Header
10714}
10715
10716// List: Lists all revisions for an API proxy.
10717func (r *OrganizationsApisRevisionsService) List(parent string) *OrganizationsApisRevisionsListCall {
10718	c := &OrganizationsApisRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10719	c.parent = parent
10720	return c
10721}
10722
10723// Fields allows partial responses to be retrieved. See
10724// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10725// for more information.
10726func (c *OrganizationsApisRevisionsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsListCall {
10727	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10728	return c
10729}
10730
10731// IfNoneMatch sets the optional parameter which makes the operation
10732// fail if the object's ETag matches the given value. This is useful for
10733// getting updates only after the object has changed since the last
10734// request. Use googleapi.IsNotModified to check whether the response
10735// error from Do is the result of In-None-Match.
10736func (c *OrganizationsApisRevisionsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsListCall {
10737	c.ifNoneMatch_ = entityTag
10738	return c
10739}
10740
10741// Context sets the context to be used in this call's Do method. Any
10742// pending HTTP request will be aborted if the provided context is
10743// canceled.
10744func (c *OrganizationsApisRevisionsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsListCall {
10745	c.ctx_ = ctx
10746	return c
10747}
10748
10749// Header returns an http.Header that can be modified by the caller to
10750// add HTTP headers to the request.
10751func (c *OrganizationsApisRevisionsListCall) Header() http.Header {
10752	if c.header_ == nil {
10753		c.header_ = make(http.Header)
10754	}
10755	return c.header_
10756}
10757
10758func (c *OrganizationsApisRevisionsListCall) doRequest(alt string) (*http.Response, error) {
10759	reqHeaders := make(http.Header)
10760	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10761	for k, v := range c.header_ {
10762		reqHeaders[k] = v
10763	}
10764	reqHeaders.Set("User-Agent", c.s.userAgent())
10765	if c.ifNoneMatch_ != "" {
10766		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10767	}
10768	var body io.Reader = nil
10769	c.urlParams_.Set("alt", alt)
10770	c.urlParams_.Set("prettyPrint", "false")
10771	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions")
10772	urls += "?" + c.urlParams_.Encode()
10773	req, err := http.NewRequest("GET", urls, body)
10774	if err != nil {
10775		return nil, err
10776	}
10777	req.Header = reqHeaders
10778	googleapi.Expand(req.URL, map[string]string{
10779		"parent": c.parent,
10780	})
10781	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10782}
10783
10784// Do executes the "apigee.organizations.apis.revisions.list" call.
10785func (c *OrganizationsApisRevisionsListCall) Do(opts ...googleapi.CallOption) error {
10786	gensupport.SetOptions(c.urlParams_, opts...)
10787	res, err := c.doRequest("json")
10788	if err != nil {
10789		return err
10790	}
10791	defer googleapi.CloseBody(res)
10792	if err := googleapi.CheckResponse(res); err != nil {
10793		return err
10794	}
10795	return nil
10796	// {
10797	//   "description": "Lists all revisions for an API proxy.",
10798	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions",
10799	//   "httpMethod": "GET",
10800	//   "id": "apigee.organizations.apis.revisions.list",
10801	//   "parameterOrder": [
10802	//     "parent"
10803	//   ],
10804	//   "parameters": {
10805	//     "parent": {
10806	//       "description": "Required. Name of the API proxy in the following format:\n  `organizations/{organization_id}/apis/{api_id}`",
10807	//       "location": "path",
10808	//       "pattern": "^organizations/[^/]+/apis/[^/]+$",
10809	//       "required": true,
10810	//       "type": "string"
10811	//     }
10812	//   },
10813	//   "path": "v1/{+parent}/revisions",
10814	//   "response": {
10815	//     "items": {
10816	//       "type": "any"
10817	//     },
10818	//     "type": "array"
10819	//   },
10820	//   "scopes": [
10821	//     "https://www.googleapis.com/auth/cloud-platform"
10822	//   ]
10823	// }
10824
10825}
10826
10827// method id "apigee.organizations.apis.revisions.updateApiProxyRevision":
10828
10829type OrganizationsApisRevisionsUpdateApiProxyRevisionCall struct {
10830	s                 *Service
10831	name              string
10832	googleapihttpbody *GoogleApiHttpBody
10833	urlParams_        gensupport.URLParams
10834	ctx_              context.Context
10835	header_           http.Header
10836}
10837
10838// UpdateApiProxyRevision: Updates an existing API proxy revision by
10839// uploading the API proxy
10840// configuration bundle as a zip file from your local machine.
10841//
10842// You can update only API proxy revisions
10843// that have never been deployed. After deployment, an API proxy
10844// revision
10845// becomes immutable, even if it is undeployed.
10846//
10847// Set the `Content-Type` header to either
10848// `multipart/form-data` or `application/octet-stream`.
10849func (r *OrganizationsApisRevisionsService) UpdateApiProxyRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
10850	c := &OrganizationsApisRevisionsUpdateApiProxyRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10851	c.name = name
10852	c.googleapihttpbody = googleapihttpbody
10853	return c
10854}
10855
10856// Validate sets the optional parameter "validate": Ignored. All uploads
10857// are validated regardless of the value of this field.
10858// Maintained for compatibility with Apigee Edge API.
10859func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Validate(validate bool) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
10860	c.urlParams_.Set("validate", fmt.Sprint(validate))
10861	return c
10862}
10863
10864// Fields allows partial responses to be retrieved. See
10865// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10866// for more information.
10867func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
10868	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10869	return c
10870}
10871
10872// Context sets the context to be used in this call's Do method. Any
10873// pending HTTP request will be aborted if the provided context is
10874// canceled.
10875func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Context(ctx context.Context) *OrganizationsApisRevisionsUpdateApiProxyRevisionCall {
10876	c.ctx_ = ctx
10877	return c
10878}
10879
10880// Header returns an http.Header that can be modified by the caller to
10881// add HTTP headers to the request.
10882func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Header() http.Header {
10883	if c.header_ == nil {
10884		c.header_ = make(http.Header)
10885	}
10886	return c.header_
10887}
10888
10889func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) doRequest(alt string) (*http.Response, error) {
10890	reqHeaders := make(http.Header)
10891	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
10892	for k, v := range c.header_ {
10893		reqHeaders[k] = v
10894	}
10895	reqHeaders.Set("User-Agent", c.s.userAgent())
10896	var body io.Reader = nil
10897	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
10898	if err != nil {
10899		return nil, err
10900	}
10901	reqHeaders.Set("Content-Type", "application/json")
10902	c.urlParams_.Set("alt", alt)
10903	c.urlParams_.Set("prettyPrint", "false")
10904	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10905	urls += "?" + c.urlParams_.Encode()
10906	req, err := http.NewRequest("POST", urls, body)
10907	if err != nil {
10908		return nil, err
10909	}
10910	req.Header = reqHeaders
10911	googleapi.Expand(req.URL, map[string]string{
10912		"name": c.name,
10913	})
10914	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10915}
10916
10917// Do executes the "apigee.organizations.apis.revisions.updateApiProxyRevision" call.
10918// Exactly one of *GoogleCloudApigeeV1ApiProxyRevision or error will be
10919// non-nil. Any non-2xx status code is an error. Response headers are in
10920// either *GoogleCloudApigeeV1ApiProxyRevision.ServerResponse.Header or
10921// (if a response was returned at all) in
10922// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
10923// whether the returned error was because http.StatusNotModified was
10924// returned.
10925func (c *OrganizationsApisRevisionsUpdateApiProxyRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ApiProxyRevision, error) {
10926	gensupport.SetOptions(c.urlParams_, opts...)
10927	res, err := c.doRequest("json")
10928	if res != nil && res.StatusCode == http.StatusNotModified {
10929		if res.Body != nil {
10930			res.Body.Close()
10931		}
10932		return nil, &googleapi.Error{
10933			Code:   res.StatusCode,
10934			Header: res.Header,
10935		}
10936	}
10937	if err != nil {
10938		return nil, err
10939	}
10940	defer googleapi.CloseBody(res)
10941	if err := googleapi.CheckResponse(res); err != nil {
10942		return nil, err
10943	}
10944	ret := &GoogleCloudApigeeV1ApiProxyRevision{
10945		ServerResponse: googleapi.ServerResponse{
10946			Header:         res.Header,
10947			HTTPStatusCode: res.StatusCode,
10948		},
10949	}
10950	target := &ret
10951	if err := gensupport.DecodeResponse(target, res); err != nil {
10952		return nil, err
10953	}
10954	return ret, nil
10955	// {
10956	//   "description": "Updates an existing API proxy revision by uploading the API proxy\nconfiguration bundle as a zip file from your local machine.\n\nYou can update only API proxy revisions\nthat have never been deployed. After deployment, an API proxy revision\nbecomes immutable, even if it is undeployed.\n\nSet the `Content-Type` header to either\n`multipart/form-data` or `application/octet-stream`.",
10957	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}",
10958	//   "httpMethod": "POST",
10959	//   "id": "apigee.organizations.apis.revisions.updateApiProxyRevision",
10960	//   "parameterOrder": [
10961	//     "name"
10962	//   ],
10963	//   "parameters": {
10964	//     "name": {
10965	//       "description": "Required. API proxy revision to update in the following format:\n  `organizations/{organization_id}/apis/{api_id}/revisions/{revision_id}`",
10966	//       "location": "path",
10967	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
10968	//       "required": true,
10969	//       "type": "string"
10970	//     },
10971	//     "validate": {
10972	//       "description": "Ignored. All uploads are validated regardless of the value of this field.\nMaintained for compatibility with Apigee Edge API.",
10973	//       "location": "query",
10974	//       "type": "boolean"
10975	//     }
10976	//   },
10977	//   "path": "v1/{+name}",
10978	//   "request": {
10979	//     "$ref": "GoogleApiHttpBody"
10980	//   },
10981	//   "response": {
10982	//     "$ref": "GoogleCloudApigeeV1ApiProxyRevision"
10983	//   },
10984	//   "scopes": [
10985	//     "https://www.googleapis.com/auth/cloud-platform"
10986	//   ]
10987	// }
10988
10989}
10990
10991// method id "apigee.organizations.apis.revisions.deployments.list":
10992
10993type OrganizationsApisRevisionsDeploymentsListCall struct {
10994	s            *Service
10995	parent       string
10996	urlParams_   gensupport.URLParams
10997	ifNoneMatch_ string
10998	ctx_         context.Context
10999	header_      http.Header
11000}
11001
11002// List: Lists all deployments of an API proxy revision and actual state
11003// reported by
11004// runtime pods.
11005func (r *OrganizationsApisRevisionsDeploymentsService) List(parent string) *OrganizationsApisRevisionsDeploymentsListCall {
11006	c := &OrganizationsApisRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11007	c.parent = parent
11008	return c
11009}
11010
11011// Fields allows partial responses to be retrieved. See
11012// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11013// for more information.
11014func (c *OrganizationsApisRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsApisRevisionsDeploymentsListCall {
11015	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11016	return c
11017}
11018
11019// IfNoneMatch sets the optional parameter which makes the operation
11020// fail if the object's ETag matches the given value. This is useful for
11021// getting updates only after the object has changed since the last
11022// request. Use googleapi.IsNotModified to check whether the response
11023// error from Do is the result of In-None-Match.
11024func (c *OrganizationsApisRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsApisRevisionsDeploymentsListCall {
11025	c.ifNoneMatch_ = entityTag
11026	return c
11027}
11028
11029// Context sets the context to be used in this call's Do method. Any
11030// pending HTTP request will be aborted if the provided context is
11031// canceled.
11032func (c *OrganizationsApisRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsApisRevisionsDeploymentsListCall {
11033	c.ctx_ = ctx
11034	return c
11035}
11036
11037// Header returns an http.Header that can be modified by the caller to
11038// add HTTP headers to the request.
11039func (c *OrganizationsApisRevisionsDeploymentsListCall) Header() http.Header {
11040	if c.header_ == nil {
11041		c.header_ = make(http.Header)
11042	}
11043	return c.header_
11044}
11045
11046func (c *OrganizationsApisRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
11047	reqHeaders := make(http.Header)
11048	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11049	for k, v := range c.header_ {
11050		reqHeaders[k] = v
11051	}
11052	reqHeaders.Set("User-Agent", c.s.userAgent())
11053	if c.ifNoneMatch_ != "" {
11054		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11055	}
11056	var body io.Reader = nil
11057	c.urlParams_.Set("alt", alt)
11058	c.urlParams_.Set("prettyPrint", "false")
11059	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
11060	urls += "?" + c.urlParams_.Encode()
11061	req, err := http.NewRequest("GET", urls, body)
11062	if err != nil {
11063		return nil, err
11064	}
11065	req.Header = reqHeaders
11066	googleapi.Expand(req.URL, map[string]string{
11067		"parent": c.parent,
11068	})
11069	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11070}
11071
11072// Do executes the "apigee.organizations.apis.revisions.deployments.list" call.
11073// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
11074// will be non-nil. Any non-2xx status code is an error. Response
11075// headers are in either
11076// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
11077// (if a response was returned at all) in
11078// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11079// whether the returned error was because http.StatusNotModified was
11080// returned.
11081func (c *OrganizationsApisRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
11082	gensupport.SetOptions(c.urlParams_, opts...)
11083	res, err := c.doRequest("json")
11084	if res != nil && res.StatusCode == http.StatusNotModified {
11085		if res.Body != nil {
11086			res.Body.Close()
11087		}
11088		return nil, &googleapi.Error{
11089			Code:   res.StatusCode,
11090			Header: res.Header,
11091		}
11092	}
11093	if err != nil {
11094		return nil, err
11095	}
11096	defer googleapi.CloseBody(res)
11097	if err := googleapi.CheckResponse(res); err != nil {
11098		return nil, err
11099	}
11100	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
11101		ServerResponse: googleapi.ServerResponse{
11102			Header:         res.Header,
11103			HTTPStatusCode: res.StatusCode,
11104		},
11105	}
11106	target := &ret
11107	if err := gensupport.DecodeResponse(target, res); err != nil {
11108		return nil, err
11109	}
11110	return ret, nil
11111	// {
11112	//   "description": "Lists all deployments of an API proxy revision and actual state reported by\nruntime pods.",
11113	//   "flatPath": "v1/organizations/{organizationsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
11114	//   "httpMethod": "GET",
11115	//   "id": "apigee.organizations.apis.revisions.deployments.list",
11116	//   "parameterOrder": [
11117	//     "parent"
11118	//   ],
11119	//   "parameters": {
11120	//     "parent": {
11121	//       "description": "Required. Name of the API proxy revision for which to return deployment information\nin the following format:\n  `organizations/{org}/apis/{api}/revisions/{rev}`.",
11122	//       "location": "path",
11123	//       "pattern": "^organizations/[^/]+/apis/[^/]+/revisions/[^/]+$",
11124	//       "required": true,
11125	//       "type": "string"
11126	//     }
11127	//   },
11128	//   "path": "v1/{+parent}/deployments",
11129	//   "response": {
11130	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
11131	//   },
11132	//   "scopes": [
11133	//     "https://www.googleapis.com/auth/cloud-platform"
11134	//   ]
11135	// }
11136
11137}
11138
11139// method id "apigee.organizations.apps.get":
11140
11141type OrganizationsAppsGetCall struct {
11142	s            *Service
11143	name         string
11144	urlParams_   gensupport.URLParams
11145	ifNoneMatch_ string
11146	ctx_         context.Context
11147	header_      http.Header
11148}
11149
11150// Get: Gets the app profile for the specified app ID.
11151func (r *OrganizationsAppsService) Get(name string) *OrganizationsAppsGetCall {
11152	c := &OrganizationsAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11153	c.name = name
11154	return c
11155}
11156
11157// Fields allows partial responses to be retrieved. See
11158// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11159// for more information.
11160func (c *OrganizationsAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsAppsGetCall {
11161	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11162	return c
11163}
11164
11165// IfNoneMatch sets the optional parameter which makes the operation
11166// fail if the object's ETag matches the given value. This is useful for
11167// getting updates only after the object has changed since the last
11168// request. Use googleapi.IsNotModified to check whether the response
11169// error from Do is the result of In-None-Match.
11170func (c *OrganizationsAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsAppsGetCall {
11171	c.ifNoneMatch_ = entityTag
11172	return c
11173}
11174
11175// Context sets the context to be used in this call's Do method. Any
11176// pending HTTP request will be aborted if the provided context is
11177// canceled.
11178func (c *OrganizationsAppsGetCall) Context(ctx context.Context) *OrganizationsAppsGetCall {
11179	c.ctx_ = ctx
11180	return c
11181}
11182
11183// Header returns an http.Header that can be modified by the caller to
11184// add HTTP headers to the request.
11185func (c *OrganizationsAppsGetCall) Header() http.Header {
11186	if c.header_ == nil {
11187		c.header_ = make(http.Header)
11188	}
11189	return c.header_
11190}
11191
11192func (c *OrganizationsAppsGetCall) doRequest(alt string) (*http.Response, error) {
11193	reqHeaders := make(http.Header)
11194	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11195	for k, v := range c.header_ {
11196		reqHeaders[k] = v
11197	}
11198	reqHeaders.Set("User-Agent", c.s.userAgent())
11199	if c.ifNoneMatch_ != "" {
11200		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11201	}
11202	var body io.Reader = nil
11203	c.urlParams_.Set("alt", alt)
11204	c.urlParams_.Set("prettyPrint", "false")
11205	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11206	urls += "?" + c.urlParams_.Encode()
11207	req, err := http.NewRequest("GET", urls, body)
11208	if err != nil {
11209		return nil, err
11210	}
11211	req.Header = reqHeaders
11212	googleapi.Expand(req.URL, map[string]string{
11213		"name": c.name,
11214	})
11215	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11216}
11217
11218// Do executes the "apigee.organizations.apps.get" call.
11219// Exactly one of *GoogleCloudApigeeV1App or error will be non-nil. Any
11220// non-2xx status code is an error. Response headers are in either
11221// *GoogleCloudApigeeV1App.ServerResponse.Header or (if a response was
11222// returned at all) in error.(*googleapi.Error).Header. Use
11223// googleapi.IsNotModified to check whether the returned error was
11224// because http.StatusNotModified was returned.
11225func (c *OrganizationsAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1App, error) {
11226	gensupport.SetOptions(c.urlParams_, opts...)
11227	res, err := c.doRequest("json")
11228	if res != nil && res.StatusCode == http.StatusNotModified {
11229		if res.Body != nil {
11230			res.Body.Close()
11231		}
11232		return nil, &googleapi.Error{
11233			Code:   res.StatusCode,
11234			Header: res.Header,
11235		}
11236	}
11237	if err != nil {
11238		return nil, err
11239	}
11240	defer googleapi.CloseBody(res)
11241	if err := googleapi.CheckResponse(res); err != nil {
11242		return nil, err
11243	}
11244	ret := &GoogleCloudApigeeV1App{
11245		ServerResponse: googleapi.ServerResponse{
11246			Header:         res.Header,
11247			HTTPStatusCode: res.StatusCode,
11248		},
11249	}
11250	target := &ret
11251	if err := gensupport.DecodeResponse(target, res); err != nil {
11252		return nil, err
11253	}
11254	return ret, nil
11255	// {
11256	//   "description": "Gets the app profile for the specified app ID.",
11257	//   "flatPath": "v1/organizations/{organizationsId}/apps/{appsId}",
11258	//   "httpMethod": "GET",
11259	//   "id": "apigee.organizations.apps.get",
11260	//   "parameterOrder": [
11261	//     "name"
11262	//   ],
11263	//   "parameters": {
11264	//     "name": {
11265	//       "description": "Required. App ID in the following format:\n `organizations/{org}/apps/{app}`",
11266	//       "location": "path",
11267	//       "pattern": "^organizations/[^/]+/apps/[^/]+$",
11268	//       "required": true,
11269	//       "type": "string"
11270	//     }
11271	//   },
11272	//   "path": "v1/{+name}",
11273	//   "response": {
11274	//     "$ref": "GoogleCloudApigeeV1App"
11275	//   },
11276	//   "scopes": [
11277	//     "https://www.googleapis.com/auth/cloud-platform"
11278	//   ]
11279	// }
11280
11281}
11282
11283// method id "apigee.organizations.apps.list":
11284
11285type OrganizationsAppsListCall struct {
11286	s            *Service
11287	parent       string
11288	urlParams_   gensupport.URLParams
11289	ifNoneMatch_ string
11290	ctx_         context.Context
11291	header_      http.Header
11292}
11293
11294// List: Lists IDs of apps within an organization that have the
11295// specified app status
11296// (approved or revoked) or are of the specified app type
11297// (developer or company).
11298func (r *OrganizationsAppsService) List(parent string) *OrganizationsAppsListCall {
11299	c := &OrganizationsAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11300	c.parent = parent
11301	return c
11302}
11303
11304// ApiProduct sets the optional parameter "apiProduct": API product.
11305func (c *OrganizationsAppsListCall) ApiProduct(apiProduct string) *OrganizationsAppsListCall {
11306	c.urlParams_.Set("apiProduct", apiProduct)
11307	return c
11308}
11309
11310// Apptype sets the optional parameter "apptype": Filter by the type of
11311// the app. Valid values are `company` or
11312// `developer`. Defaults to `developer`.
11313func (c *OrganizationsAppsListCall) Apptype(apptype string) *OrganizationsAppsListCall {
11314	c.urlParams_.Set("apptype", apptype)
11315	return c
11316}
11317
11318// Expand sets the optional parameter "expand": Flag that specifies
11319// whether to return an expanded list of
11320// apps for the organization. Defaults to `false`.
11321func (c *OrganizationsAppsListCall) Expand(expand bool) *OrganizationsAppsListCall {
11322	c.urlParams_.Set("expand", fmt.Sprint(expand))
11323	return c
11324}
11325
11326// Ids sets the optional parameter "ids": Comma-separated list of app
11327// IDs on which to filter.
11328func (c *OrganizationsAppsListCall) Ids(ids string) *OrganizationsAppsListCall {
11329	c.urlParams_.Set("ids", ids)
11330	return c
11331}
11332
11333// IncludeCred sets the optional parameter "includeCred": Flag that
11334// specifies whether to include credentials in the
11335// response.
11336func (c *OrganizationsAppsListCall) IncludeCred(includeCred bool) *OrganizationsAppsListCall {
11337	c.urlParams_.Set("includeCred", fmt.Sprint(includeCred))
11338	return c
11339}
11340
11341// KeyStatus sets the optional parameter "keyStatus": Key status of the
11342// app. Valid values include `approved` or
11343// `revoked`. Defaults to `approved`.
11344func (c *OrganizationsAppsListCall) KeyStatus(keyStatus string) *OrganizationsAppsListCall {
11345	c.urlParams_.Set("keyStatus", keyStatus)
11346	return c
11347}
11348
11349// Rows sets the optional parameter "rows": Maximum number of app IDs to
11350// return. Defaults to 10000.
11351func (c *OrganizationsAppsListCall) Rows(rows int64) *OrganizationsAppsListCall {
11352	c.urlParams_.Set("rows", fmt.Sprint(rows))
11353	return c
11354}
11355
11356// StartKey sets the optional parameter "startKey": Returns the list of
11357// apps starting from the specified app ID.
11358func (c *OrganizationsAppsListCall) StartKey(startKey string) *OrganizationsAppsListCall {
11359	c.urlParams_.Set("startKey", startKey)
11360	return c
11361}
11362
11363// Status sets the optional parameter "status": Filter by the status of
11364// the app. Valid values are `approved`
11365// or `revoked`. Defaults to `approved`.
11366func (c *OrganizationsAppsListCall) Status(status string) *OrganizationsAppsListCall {
11367	c.urlParams_.Set("status", status)
11368	return c
11369}
11370
11371// Fields allows partial responses to be retrieved. See
11372// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11373// for more information.
11374func (c *OrganizationsAppsListCall) Fields(s ...googleapi.Field) *OrganizationsAppsListCall {
11375	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11376	return c
11377}
11378
11379// IfNoneMatch sets the optional parameter which makes the operation
11380// fail if the object's ETag matches the given value. This is useful for
11381// getting updates only after the object has changed since the last
11382// request. Use googleapi.IsNotModified to check whether the response
11383// error from Do is the result of In-None-Match.
11384func (c *OrganizationsAppsListCall) IfNoneMatch(entityTag string) *OrganizationsAppsListCall {
11385	c.ifNoneMatch_ = entityTag
11386	return c
11387}
11388
11389// Context sets the context to be used in this call's Do method. Any
11390// pending HTTP request will be aborted if the provided context is
11391// canceled.
11392func (c *OrganizationsAppsListCall) Context(ctx context.Context) *OrganizationsAppsListCall {
11393	c.ctx_ = ctx
11394	return c
11395}
11396
11397// Header returns an http.Header that can be modified by the caller to
11398// add HTTP headers to the request.
11399func (c *OrganizationsAppsListCall) Header() http.Header {
11400	if c.header_ == nil {
11401		c.header_ = make(http.Header)
11402	}
11403	return c.header_
11404}
11405
11406func (c *OrganizationsAppsListCall) doRequest(alt string) (*http.Response, error) {
11407	reqHeaders := make(http.Header)
11408	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11409	for k, v := range c.header_ {
11410		reqHeaders[k] = v
11411	}
11412	reqHeaders.Set("User-Agent", c.s.userAgent())
11413	if c.ifNoneMatch_ != "" {
11414		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11415	}
11416	var body io.Reader = nil
11417	c.urlParams_.Set("alt", alt)
11418	c.urlParams_.Set("prettyPrint", "false")
11419	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
11420	urls += "?" + c.urlParams_.Encode()
11421	req, err := http.NewRequest("GET", urls, body)
11422	if err != nil {
11423		return nil, err
11424	}
11425	req.Header = reqHeaders
11426	googleapi.Expand(req.URL, map[string]string{
11427		"parent": c.parent,
11428	})
11429	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11430}
11431
11432// Do executes the "apigee.organizations.apps.list" call.
11433// Exactly one of *GoogleCloudApigeeV1ListAppsResponse or error will be
11434// non-nil. Any non-2xx status code is an error. Response headers are in
11435// either *GoogleCloudApigeeV1ListAppsResponse.ServerResponse.Header or
11436// (if a response was returned at all) in
11437// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
11438// whether the returned error was because http.StatusNotModified was
11439// returned.
11440func (c *OrganizationsAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAppsResponse, error) {
11441	gensupport.SetOptions(c.urlParams_, opts...)
11442	res, err := c.doRequest("json")
11443	if res != nil && res.StatusCode == http.StatusNotModified {
11444		if res.Body != nil {
11445			res.Body.Close()
11446		}
11447		return nil, &googleapi.Error{
11448			Code:   res.StatusCode,
11449			Header: res.Header,
11450		}
11451	}
11452	if err != nil {
11453		return nil, err
11454	}
11455	defer googleapi.CloseBody(res)
11456	if err := googleapi.CheckResponse(res); err != nil {
11457		return nil, err
11458	}
11459	ret := &GoogleCloudApigeeV1ListAppsResponse{
11460		ServerResponse: googleapi.ServerResponse{
11461			Header:         res.Header,
11462			HTTPStatusCode: res.StatusCode,
11463		},
11464	}
11465	target := &ret
11466	if err := gensupport.DecodeResponse(target, res); err != nil {
11467		return nil, err
11468	}
11469	return ret, nil
11470	// {
11471	//   "description": "Lists IDs of apps within an organization that have the specified app status\n(approved or revoked) or are of the specified app type\n(developer or company).",
11472	//   "flatPath": "v1/organizations/{organizationsId}/apps",
11473	//   "httpMethod": "GET",
11474	//   "id": "apigee.organizations.apps.list",
11475	//   "parameterOrder": [
11476	//     "parent"
11477	//   ],
11478	//   "parameters": {
11479	//     "apiProduct": {
11480	//       "description": "API product.",
11481	//       "location": "query",
11482	//       "type": "string"
11483	//     },
11484	//     "apptype": {
11485	//       "description": "Optional. Filter by the type of the app. Valid values are `company` or\n`developer`. Defaults to `developer`.",
11486	//       "location": "query",
11487	//       "type": "string"
11488	//     },
11489	//     "expand": {
11490	//       "description": "Optional. Flag that specifies whether to return an expanded list of\napps for the organization. Defaults to `false`.",
11491	//       "location": "query",
11492	//       "type": "boolean"
11493	//     },
11494	//     "ids": {
11495	//       "description": "Optional. Comma-separated list of app IDs on which to filter.",
11496	//       "location": "query",
11497	//       "type": "string"
11498	//     },
11499	//     "includeCred": {
11500	//       "description": "Optional. Flag that specifies whether to include credentials in the\nresponse.",
11501	//       "location": "query",
11502	//       "type": "boolean"
11503	//     },
11504	//     "keyStatus": {
11505	//       "description": "Optional. Key status of the app. Valid values include `approved` or\n`revoked`. Defaults to `approved`.",
11506	//       "location": "query",
11507	//       "type": "string"
11508	//     },
11509	//     "parent": {
11510	//       "description": "Required. Resource path of the parent in the following format:\n `organizations/{org}`",
11511	//       "location": "path",
11512	//       "pattern": "^organizations/[^/]+$",
11513	//       "required": true,
11514	//       "type": "string"
11515	//     },
11516	//     "rows": {
11517	//       "description": "Optional. Maximum number of app IDs to return. Defaults to 10000.",
11518	//       "format": "int64",
11519	//       "location": "query",
11520	//       "type": "string"
11521	//     },
11522	//     "startKey": {
11523	//       "description": "Returns the list of apps starting from the specified app ID.",
11524	//       "location": "query",
11525	//       "type": "string"
11526	//     },
11527	//     "status": {
11528	//       "description": "Optional. Filter by the status of the app. Valid values are `approved`\nor `revoked`. Defaults to `approved`.",
11529	//       "location": "query",
11530	//       "type": "string"
11531	//     }
11532	//   },
11533	//   "path": "v1/{+parent}/apps",
11534	//   "response": {
11535	//     "$ref": "GoogleCloudApigeeV1ListAppsResponse"
11536	//   },
11537	//   "scopes": [
11538	//     "https://www.googleapis.com/auth/cloud-platform"
11539	//   ]
11540	// }
11541
11542}
11543
11544// method id "apigee.organizations.companies.create":
11545
11546type OrganizationsCompaniesCreateCall struct {
11547	s                          *Service
11548	parent                     string
11549	googlecloudapigeev1company *GoogleCloudApigeeV1Company
11550	urlParams_                 gensupport.URLParams
11551	ctx_                       context.Context
11552	header_                    http.Header
11553}
11554
11555// Create: Creates an app for a company. Note that you must first create
11556// a profile
11557// for the company in your organization before you can register apps
11558// that
11559// are associated with the company.
11560func (r *OrganizationsCompaniesService) Create(parent string, googlecloudapigeev1company *GoogleCloudApigeeV1Company) *OrganizationsCompaniesCreateCall {
11561	c := &OrganizationsCompaniesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11562	c.parent = parent
11563	c.googlecloudapigeev1company = googlecloudapigeev1company
11564	return c
11565}
11566
11567// Fields allows partial responses to be retrieved. See
11568// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11569// for more information.
11570func (c *OrganizationsCompaniesCreateCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesCreateCall {
11571	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11572	return c
11573}
11574
11575// Context sets the context to be used in this call's Do method. Any
11576// pending HTTP request will be aborted if the provided context is
11577// canceled.
11578func (c *OrganizationsCompaniesCreateCall) Context(ctx context.Context) *OrganizationsCompaniesCreateCall {
11579	c.ctx_ = ctx
11580	return c
11581}
11582
11583// Header returns an http.Header that can be modified by the caller to
11584// add HTTP headers to the request.
11585func (c *OrganizationsCompaniesCreateCall) Header() http.Header {
11586	if c.header_ == nil {
11587		c.header_ = make(http.Header)
11588	}
11589	return c.header_
11590}
11591
11592func (c *OrganizationsCompaniesCreateCall) doRequest(alt string) (*http.Response, error) {
11593	reqHeaders := make(http.Header)
11594	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11595	for k, v := range c.header_ {
11596		reqHeaders[k] = v
11597	}
11598	reqHeaders.Set("User-Agent", c.s.userAgent())
11599	var body io.Reader = nil
11600	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1company)
11601	if err != nil {
11602		return nil, err
11603	}
11604	reqHeaders.Set("Content-Type", "application/json")
11605	c.urlParams_.Set("alt", alt)
11606	c.urlParams_.Set("prettyPrint", "false")
11607	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/companies")
11608	urls += "?" + c.urlParams_.Encode()
11609	req, err := http.NewRequest("POST", urls, body)
11610	if err != nil {
11611		return nil, err
11612	}
11613	req.Header = reqHeaders
11614	googleapi.Expand(req.URL, map[string]string{
11615		"parent": c.parent,
11616	})
11617	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11618}
11619
11620// Do executes the "apigee.organizations.companies.create" call.
11621// Exactly one of *GoogleCloudApigeeV1Company or error will be non-nil.
11622// Any non-2xx status code is an error. Response headers are in either
11623// *GoogleCloudApigeeV1Company.ServerResponse.Header or (if a response
11624// was returned at all) in error.(*googleapi.Error).Header. Use
11625// googleapi.IsNotModified to check whether the returned error was
11626// because http.StatusNotModified was returned.
11627func (c *OrganizationsCompaniesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Company, error) {
11628	gensupport.SetOptions(c.urlParams_, opts...)
11629	res, err := c.doRequest("json")
11630	if res != nil && res.StatusCode == http.StatusNotModified {
11631		if res.Body != nil {
11632			res.Body.Close()
11633		}
11634		return nil, &googleapi.Error{
11635			Code:   res.StatusCode,
11636			Header: res.Header,
11637		}
11638	}
11639	if err != nil {
11640		return nil, err
11641	}
11642	defer googleapi.CloseBody(res)
11643	if err := googleapi.CheckResponse(res); err != nil {
11644		return nil, err
11645	}
11646	ret := &GoogleCloudApigeeV1Company{
11647		ServerResponse: googleapi.ServerResponse{
11648			Header:         res.Header,
11649			HTTPStatusCode: res.StatusCode,
11650		},
11651	}
11652	target := &ret
11653	if err := gensupport.DecodeResponse(target, res); err != nil {
11654		return nil, err
11655	}
11656	return ret, nil
11657	// {
11658	//   "description": "Creates an app for a company. Note that you must first create a profile\nfor the company in your organization before you can register apps that\nare associated with the company.",
11659	//   "flatPath": "v1/organizations/{organizationsId}/companies",
11660	//   "httpMethod": "POST",
11661	//   "id": "apigee.organizations.companies.create",
11662	//   "parameterOrder": [
11663	//     "parent"
11664	//   ],
11665	//   "parameters": {
11666	//     "parent": {
11667	//       "description": "Name of org that the company will be created in\n`{parent=organizations/*}`",
11668	//       "location": "path",
11669	//       "pattern": "^organizations/[^/]+$",
11670	//       "required": true,
11671	//       "type": "string"
11672	//     }
11673	//   },
11674	//   "path": "v1/{+parent}/companies",
11675	//   "request": {
11676	//     "$ref": "GoogleCloudApigeeV1Company"
11677	//   },
11678	//   "response": {
11679	//     "$ref": "GoogleCloudApigeeV1Company"
11680	//   },
11681	//   "scopes": [
11682	//     "https://www.googleapis.com/auth/cloud-platform"
11683	//   ]
11684	// }
11685
11686}
11687
11688// method id "apigee.organizations.companies.delete":
11689
11690type OrganizationsCompaniesDeleteCall struct {
11691	s          *Service
11692	name       string
11693	urlParams_ gensupport.URLParams
11694	ctx_       context.Context
11695	header_    http.Header
11696}
11697
11698// Delete: Deletes an existing company.
11699func (r *OrganizationsCompaniesService) Delete(name string) *OrganizationsCompaniesDeleteCall {
11700	c := &OrganizationsCompaniesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11701	c.name = name
11702	return c
11703}
11704
11705// Fields allows partial responses to be retrieved. See
11706// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11707// for more information.
11708func (c *OrganizationsCompaniesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesDeleteCall {
11709	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11710	return c
11711}
11712
11713// Context sets the context to be used in this call's Do method. Any
11714// pending HTTP request will be aborted if the provided context is
11715// canceled.
11716func (c *OrganizationsCompaniesDeleteCall) Context(ctx context.Context) *OrganizationsCompaniesDeleteCall {
11717	c.ctx_ = ctx
11718	return c
11719}
11720
11721// Header returns an http.Header that can be modified by the caller to
11722// add HTTP headers to the request.
11723func (c *OrganizationsCompaniesDeleteCall) Header() http.Header {
11724	if c.header_ == nil {
11725		c.header_ = make(http.Header)
11726	}
11727	return c.header_
11728}
11729
11730func (c *OrganizationsCompaniesDeleteCall) doRequest(alt string) (*http.Response, error) {
11731	reqHeaders := make(http.Header)
11732	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11733	for k, v := range c.header_ {
11734		reqHeaders[k] = v
11735	}
11736	reqHeaders.Set("User-Agent", c.s.userAgent())
11737	var body io.Reader = nil
11738	c.urlParams_.Set("alt", alt)
11739	c.urlParams_.Set("prettyPrint", "false")
11740	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11741	urls += "?" + c.urlParams_.Encode()
11742	req, err := http.NewRequest("DELETE", urls, body)
11743	if err != nil {
11744		return nil, err
11745	}
11746	req.Header = reqHeaders
11747	googleapi.Expand(req.URL, map[string]string{
11748		"name": c.name,
11749	})
11750	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11751}
11752
11753// Do executes the "apigee.organizations.companies.delete" call.
11754// Exactly one of *GoogleCloudApigeeV1Company or error will be non-nil.
11755// Any non-2xx status code is an error. Response headers are in either
11756// *GoogleCloudApigeeV1Company.ServerResponse.Header or (if a response
11757// was returned at all) in error.(*googleapi.Error).Header. Use
11758// googleapi.IsNotModified to check whether the returned error was
11759// because http.StatusNotModified was returned.
11760func (c *OrganizationsCompaniesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Company, error) {
11761	gensupport.SetOptions(c.urlParams_, opts...)
11762	res, err := c.doRequest("json")
11763	if res != nil && res.StatusCode == http.StatusNotModified {
11764		if res.Body != nil {
11765			res.Body.Close()
11766		}
11767		return nil, &googleapi.Error{
11768			Code:   res.StatusCode,
11769			Header: res.Header,
11770		}
11771	}
11772	if err != nil {
11773		return nil, err
11774	}
11775	defer googleapi.CloseBody(res)
11776	if err := googleapi.CheckResponse(res); err != nil {
11777		return nil, err
11778	}
11779	ret := &GoogleCloudApigeeV1Company{
11780		ServerResponse: googleapi.ServerResponse{
11781			Header:         res.Header,
11782			HTTPStatusCode: res.StatusCode,
11783		},
11784	}
11785	target := &ret
11786	if err := gensupport.DecodeResponse(target, res); err != nil {
11787		return nil, err
11788	}
11789	return ret, nil
11790	// {
11791	//   "description": "Deletes an existing company.",
11792	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}",
11793	//   "httpMethod": "DELETE",
11794	//   "id": "apigee.organizations.companies.delete",
11795	//   "parameterOrder": [
11796	//     "name"
11797	//   ],
11798	//   "parameters": {
11799	//     "name": {
11800	//       "description": "The company resource name\n`organizations/{org}/companies/{company}`",
11801	//       "location": "path",
11802	//       "pattern": "^organizations/[^/]+/companies/[^/]+$",
11803	//       "required": true,
11804	//       "type": "string"
11805	//     }
11806	//   },
11807	//   "path": "v1/{+name}",
11808	//   "response": {
11809	//     "$ref": "GoogleCloudApigeeV1Company"
11810	//   },
11811	//   "scopes": [
11812	//     "https://www.googleapis.com/auth/cloud-platform"
11813	//   ]
11814	// }
11815
11816}
11817
11818// method id "apigee.organizations.companies.get":
11819
11820type OrganizationsCompaniesGetCall struct {
11821	s            *Service
11822	name         string
11823	urlParams_   gensupport.URLParams
11824	ifNoneMatch_ string
11825	ctx_         context.Context
11826	header_      http.Header
11827}
11828
11829// Get: List details for a company.
11830func (r *OrganizationsCompaniesService) Get(name string) *OrganizationsCompaniesGetCall {
11831	c := &OrganizationsCompaniesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11832	c.name = name
11833	return c
11834}
11835
11836// Fields allows partial responses to be retrieved. See
11837// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11838// for more information.
11839func (c *OrganizationsCompaniesGetCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesGetCall {
11840	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11841	return c
11842}
11843
11844// IfNoneMatch sets the optional parameter which makes the operation
11845// fail if the object's ETag matches the given value. This is useful for
11846// getting updates only after the object has changed since the last
11847// request. Use googleapi.IsNotModified to check whether the response
11848// error from Do is the result of In-None-Match.
11849func (c *OrganizationsCompaniesGetCall) IfNoneMatch(entityTag string) *OrganizationsCompaniesGetCall {
11850	c.ifNoneMatch_ = entityTag
11851	return c
11852}
11853
11854// Context sets the context to be used in this call's Do method. Any
11855// pending HTTP request will be aborted if the provided context is
11856// canceled.
11857func (c *OrganizationsCompaniesGetCall) Context(ctx context.Context) *OrganizationsCompaniesGetCall {
11858	c.ctx_ = ctx
11859	return c
11860}
11861
11862// Header returns an http.Header that can be modified by the caller to
11863// add HTTP headers to the request.
11864func (c *OrganizationsCompaniesGetCall) Header() http.Header {
11865	if c.header_ == nil {
11866		c.header_ = make(http.Header)
11867	}
11868	return c.header_
11869}
11870
11871func (c *OrganizationsCompaniesGetCall) doRequest(alt string) (*http.Response, error) {
11872	reqHeaders := make(http.Header)
11873	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
11874	for k, v := range c.header_ {
11875		reqHeaders[k] = v
11876	}
11877	reqHeaders.Set("User-Agent", c.s.userAgent())
11878	if c.ifNoneMatch_ != "" {
11879		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11880	}
11881	var body io.Reader = nil
11882	c.urlParams_.Set("alt", alt)
11883	c.urlParams_.Set("prettyPrint", "false")
11884	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11885	urls += "?" + c.urlParams_.Encode()
11886	req, err := http.NewRequest("GET", urls, body)
11887	if err != nil {
11888		return nil, err
11889	}
11890	req.Header = reqHeaders
11891	googleapi.Expand(req.URL, map[string]string{
11892		"name": c.name,
11893	})
11894	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11895}
11896
11897// Do executes the "apigee.organizations.companies.get" call.
11898// Exactly one of *GoogleCloudApigeeV1Company or error will be non-nil.
11899// Any non-2xx status code is an error. Response headers are in either
11900// *GoogleCloudApigeeV1Company.ServerResponse.Header or (if a response
11901// was returned at all) in error.(*googleapi.Error).Header. Use
11902// googleapi.IsNotModified to check whether the returned error was
11903// because http.StatusNotModified was returned.
11904func (c *OrganizationsCompaniesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Company, error) {
11905	gensupport.SetOptions(c.urlParams_, opts...)
11906	res, err := c.doRequest("json")
11907	if res != nil && res.StatusCode == http.StatusNotModified {
11908		if res.Body != nil {
11909			res.Body.Close()
11910		}
11911		return nil, &googleapi.Error{
11912			Code:   res.StatusCode,
11913			Header: res.Header,
11914		}
11915	}
11916	if err != nil {
11917		return nil, err
11918	}
11919	defer googleapi.CloseBody(res)
11920	if err := googleapi.CheckResponse(res); err != nil {
11921		return nil, err
11922	}
11923	ret := &GoogleCloudApigeeV1Company{
11924		ServerResponse: googleapi.ServerResponse{
11925			Header:         res.Header,
11926			HTTPStatusCode: res.StatusCode,
11927		},
11928	}
11929	target := &ret
11930	if err := gensupport.DecodeResponse(target, res); err != nil {
11931		return nil, err
11932	}
11933	return ret, nil
11934	// {
11935	//   "description": "List details for a company.",
11936	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}",
11937	//   "httpMethod": "GET",
11938	//   "id": "apigee.organizations.companies.get",
11939	//   "parameterOrder": [
11940	//     "name"
11941	//   ],
11942	//   "parameters": {
11943	//     "name": {
11944	//       "description": "The company resource name\n`organizations/{org}/companies/{company}`",
11945	//       "location": "path",
11946	//       "pattern": "^organizations/[^/]+/companies/[^/]+$",
11947	//       "required": true,
11948	//       "type": "string"
11949	//     }
11950	//   },
11951	//   "path": "v1/{+name}",
11952	//   "response": {
11953	//     "$ref": "GoogleCloudApigeeV1Company"
11954	//   },
11955	//   "scopes": [
11956	//     "https://www.googleapis.com/auth/cloud-platform"
11957	//   ]
11958	// }
11959
11960}
11961
11962// method id "apigee.organizations.companies.list":
11963
11964type OrganizationsCompaniesListCall struct {
11965	s            *Service
11966	parent       string
11967	urlParams_   gensupport.URLParams
11968	ifNoneMatch_ string
11969	ctx_         context.Context
11970	header_      http.Header
11971}
11972
11973// List: List all companies in an organization, and optionally returns
11974// an
11975// expanded list of companies, displaying a full profile for each
11976// company in
11977// the organization.
11978func (r *OrganizationsCompaniesService) List(parent string) *OrganizationsCompaniesListCall {
11979	c := &OrganizationsCompaniesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11980	c.parent = parent
11981	return c
11982}
11983
11984// Count sets the optional parameter "count": Limits the list to the
11985// number you specify. The limit is 100.
11986func (c *OrganizationsCompaniesListCall) Count(count int64) *OrganizationsCompaniesListCall {
11987	c.urlParams_.Set("count", fmt.Sprint(count))
11988	return c
11989}
11990
11991// Expand sets the optional parameter "expand": Set expand to true to
11992// return a full profile for each company.
11993func (c *OrganizationsCompaniesListCall) Expand(expand bool) *OrganizationsCompaniesListCall {
11994	c.urlParams_.Set("expand", fmt.Sprint(expand))
11995	return c
11996}
11997
11998// IncludeDevelopers sets the optional parameter "includeDevelopers":
11999// include developers in the response.
12000func (c *OrganizationsCompaniesListCall) IncludeDevelopers(includeDevelopers bool) *OrganizationsCompaniesListCall {
12001	c.urlParams_.Set("includeDevelopers", fmt.Sprint(includeDevelopers))
12002	return c
12003}
12004
12005// StartKey sets the optional parameter "startKey": To filter the keys
12006// that are returned, enter the email of a developer
12007// that the list will start with.
12008func (c *OrganizationsCompaniesListCall) StartKey(startKey string) *OrganizationsCompaniesListCall {
12009	c.urlParams_.Set("startKey", startKey)
12010	return c
12011}
12012
12013// Fields allows partial responses to be retrieved. See
12014// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12015// for more information.
12016func (c *OrganizationsCompaniesListCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesListCall {
12017	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12018	return c
12019}
12020
12021// IfNoneMatch sets the optional parameter which makes the operation
12022// fail if the object's ETag matches the given value. This is useful for
12023// getting updates only after the object has changed since the last
12024// request. Use googleapi.IsNotModified to check whether the response
12025// error from Do is the result of In-None-Match.
12026func (c *OrganizationsCompaniesListCall) IfNoneMatch(entityTag string) *OrganizationsCompaniesListCall {
12027	c.ifNoneMatch_ = entityTag
12028	return c
12029}
12030
12031// Context sets the context to be used in this call's Do method. Any
12032// pending HTTP request will be aborted if the provided context is
12033// canceled.
12034func (c *OrganizationsCompaniesListCall) Context(ctx context.Context) *OrganizationsCompaniesListCall {
12035	c.ctx_ = ctx
12036	return c
12037}
12038
12039// Header returns an http.Header that can be modified by the caller to
12040// add HTTP headers to the request.
12041func (c *OrganizationsCompaniesListCall) Header() http.Header {
12042	if c.header_ == nil {
12043		c.header_ = make(http.Header)
12044	}
12045	return c.header_
12046}
12047
12048func (c *OrganizationsCompaniesListCall) doRequest(alt string) (*http.Response, error) {
12049	reqHeaders := make(http.Header)
12050	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12051	for k, v := range c.header_ {
12052		reqHeaders[k] = v
12053	}
12054	reqHeaders.Set("User-Agent", c.s.userAgent())
12055	if c.ifNoneMatch_ != "" {
12056		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12057	}
12058	var body io.Reader = nil
12059	c.urlParams_.Set("alt", alt)
12060	c.urlParams_.Set("prettyPrint", "false")
12061	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/companies")
12062	urls += "?" + c.urlParams_.Encode()
12063	req, err := http.NewRequest("GET", urls, body)
12064	if err != nil {
12065		return nil, err
12066	}
12067	req.Header = reqHeaders
12068	googleapi.Expand(req.URL, map[string]string{
12069		"parent": c.parent,
12070	})
12071	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12072}
12073
12074// Do executes the "apigee.organizations.companies.list" call.
12075// Exactly one of *GoogleCloudApigeeV1ListCompaniesResponse or error
12076// will be non-nil. Any non-2xx status code is an error. Response
12077// headers are in either
12078// *GoogleCloudApigeeV1ListCompaniesResponse.ServerResponse.Header or
12079// (if a response was returned at all) in
12080// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12081// whether the returned error was because http.StatusNotModified was
12082// returned.
12083func (c *OrganizationsCompaniesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCompaniesResponse, error) {
12084	gensupport.SetOptions(c.urlParams_, opts...)
12085	res, err := c.doRequest("json")
12086	if res != nil && res.StatusCode == http.StatusNotModified {
12087		if res.Body != nil {
12088			res.Body.Close()
12089		}
12090		return nil, &googleapi.Error{
12091			Code:   res.StatusCode,
12092			Header: res.Header,
12093		}
12094	}
12095	if err != nil {
12096		return nil, err
12097	}
12098	defer googleapi.CloseBody(res)
12099	if err := googleapi.CheckResponse(res); err != nil {
12100		return nil, err
12101	}
12102	ret := &GoogleCloudApigeeV1ListCompaniesResponse{
12103		ServerResponse: googleapi.ServerResponse{
12104			Header:         res.Header,
12105			HTTPStatusCode: res.StatusCode,
12106		},
12107	}
12108	target := &ret
12109	if err := gensupport.DecodeResponse(target, res); err != nil {
12110		return nil, err
12111	}
12112	return ret, nil
12113	// {
12114	//   "description": "List all companies in an organization, and optionally returns an\nexpanded list of companies, displaying a full profile for each company in\nthe organization.",
12115	//   "flatPath": "v1/organizations/{organizationsId}/companies",
12116	//   "httpMethod": "GET",
12117	//   "id": "apigee.organizations.companies.list",
12118	//   "parameterOrder": [
12119	//     "parent"
12120	//   ],
12121	//   "parameters": {
12122	//     "count": {
12123	//       "description": "Limits the list to the number you specify. The limit is 100.",
12124	//       "format": "int64",
12125	//       "location": "query",
12126	//       "type": "string"
12127	//     },
12128	//     "expand": {
12129	//       "description": "Set expand to true to return a full profile for each company.",
12130	//       "location": "query",
12131	//       "type": "boolean"
12132	//     },
12133	//     "includeDevelopers": {
12134	//       "description": "Optional. include developers in the response.",
12135	//       "location": "query",
12136	//       "type": "boolean"
12137	//     },
12138	//     "parent": {
12139	//       "description": "The parent organization name\n`organizations/{org}`",
12140	//       "location": "path",
12141	//       "pattern": "^organizations/[^/]+$",
12142	//       "required": true,
12143	//       "type": "string"
12144	//     },
12145	//     "startKey": {
12146	//       "description": "To filter the keys that are returned, enter the email of a developer\nthat the list will start with.",
12147	//       "location": "query",
12148	//       "type": "string"
12149	//     }
12150	//   },
12151	//   "path": "v1/{+parent}/companies",
12152	//   "response": {
12153	//     "$ref": "GoogleCloudApigeeV1ListCompaniesResponse"
12154	//   },
12155	//   "scopes": [
12156	//     "https://www.googleapis.com/auth/cloud-platform"
12157	//   ]
12158	// }
12159
12160}
12161
12162// method id "apigee.organizations.companies.update":
12163
12164type OrganizationsCompaniesUpdateCall struct {
12165	s                          *Service
12166	name                       string
12167	googlecloudapigeev1company *GoogleCloudApigeeV1Company
12168	urlParams_                 gensupport.URLParams
12169	ctx_                       context.Context
12170	header_                    http.Header
12171}
12172
12173// Update: Updates an existing company.
12174// Send the complete company record as a payload with any changes you
12175// want to
12176// make. Note that to change the status of the Company you use Set the
12177// Status
12178// of a Company. The attributes in the sample payload below apply to
12179// company
12180// configuration in monetization. For non-monetized companies, you need
12181// send
12182// only displayName.
12183func (r *OrganizationsCompaniesService) Update(name string, googlecloudapigeev1company *GoogleCloudApigeeV1Company) *OrganizationsCompaniesUpdateCall {
12184	c := &OrganizationsCompaniesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12185	c.name = name
12186	c.googlecloudapigeev1company = googlecloudapigeev1company
12187	return c
12188}
12189
12190// Action sets the optional parameter "action": Specify the status as
12191// active or inactive.
12192func (c *OrganizationsCompaniesUpdateCall) Action(action string) *OrganizationsCompaniesUpdateCall {
12193	c.urlParams_.Set("action", action)
12194	return c
12195}
12196
12197// Fields allows partial responses to be retrieved. See
12198// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12199// for more information.
12200func (c *OrganizationsCompaniesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesUpdateCall {
12201	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12202	return c
12203}
12204
12205// Context sets the context to be used in this call's Do method. Any
12206// pending HTTP request will be aborted if the provided context is
12207// canceled.
12208func (c *OrganizationsCompaniesUpdateCall) Context(ctx context.Context) *OrganizationsCompaniesUpdateCall {
12209	c.ctx_ = ctx
12210	return c
12211}
12212
12213// Header returns an http.Header that can be modified by the caller to
12214// add HTTP headers to the request.
12215func (c *OrganizationsCompaniesUpdateCall) Header() http.Header {
12216	if c.header_ == nil {
12217		c.header_ = make(http.Header)
12218	}
12219	return c.header_
12220}
12221
12222func (c *OrganizationsCompaniesUpdateCall) doRequest(alt string) (*http.Response, error) {
12223	reqHeaders := make(http.Header)
12224	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12225	for k, v := range c.header_ {
12226		reqHeaders[k] = v
12227	}
12228	reqHeaders.Set("User-Agent", c.s.userAgent())
12229	var body io.Reader = nil
12230	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1company)
12231	if err != nil {
12232		return nil, err
12233	}
12234	reqHeaders.Set("Content-Type", "application/json")
12235	c.urlParams_.Set("alt", alt)
12236	c.urlParams_.Set("prettyPrint", "false")
12237	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12238	urls += "?" + c.urlParams_.Encode()
12239	req, err := http.NewRequest("PUT", urls, body)
12240	if err != nil {
12241		return nil, err
12242	}
12243	req.Header = reqHeaders
12244	googleapi.Expand(req.URL, map[string]string{
12245		"name": c.name,
12246	})
12247	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12248}
12249
12250// Do executes the "apigee.organizations.companies.update" call.
12251// Exactly one of *GoogleCloudApigeeV1Company or error will be non-nil.
12252// Any non-2xx status code is an error. Response headers are in either
12253// *GoogleCloudApigeeV1Company.ServerResponse.Header or (if a response
12254// was returned at all) in error.(*googleapi.Error).Header. Use
12255// googleapi.IsNotModified to check whether the returned error was
12256// because http.StatusNotModified was returned.
12257func (c *OrganizationsCompaniesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Company, error) {
12258	gensupport.SetOptions(c.urlParams_, opts...)
12259	res, err := c.doRequest("json")
12260	if res != nil && res.StatusCode == http.StatusNotModified {
12261		if res.Body != nil {
12262			res.Body.Close()
12263		}
12264		return nil, &googleapi.Error{
12265			Code:   res.StatusCode,
12266			Header: res.Header,
12267		}
12268	}
12269	if err != nil {
12270		return nil, err
12271	}
12272	defer googleapi.CloseBody(res)
12273	if err := googleapi.CheckResponse(res); err != nil {
12274		return nil, err
12275	}
12276	ret := &GoogleCloudApigeeV1Company{
12277		ServerResponse: googleapi.ServerResponse{
12278			Header:         res.Header,
12279			HTTPStatusCode: res.StatusCode,
12280		},
12281	}
12282	target := &ret
12283	if err := gensupport.DecodeResponse(target, res); err != nil {
12284		return nil, err
12285	}
12286	return ret, nil
12287	// {
12288	//   "description": "Updates an existing company.\nSend the complete company record as a payload with any changes you want to\nmake. Note that to change the status of the Company you use Set the Status\nof a Company. The attributes in the sample payload below apply to company\nconfiguration in monetization. For non-monetized companies, you need send\nonly displayName.",
12289	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}",
12290	//   "httpMethod": "PUT",
12291	//   "id": "apigee.organizations.companies.update",
12292	//   "parameterOrder": [
12293	//     "name"
12294	//   ],
12295	//   "parameters": {
12296	//     "action": {
12297	//       "description": "Specify the status as active or inactive.",
12298	//       "location": "query",
12299	//       "type": "string"
12300	//     },
12301	//     "name": {
12302	//       "description": "Name of the company to be updated.\n`{name=organizations/*/companies/*}`",
12303	//       "location": "path",
12304	//       "pattern": "^organizations/[^/]+/companies/[^/]+$",
12305	//       "required": true,
12306	//       "type": "string"
12307	//     }
12308	//   },
12309	//   "path": "v1/{+name}",
12310	//   "request": {
12311	//     "$ref": "GoogleCloudApigeeV1Company"
12312	//   },
12313	//   "response": {
12314	//     "$ref": "GoogleCloudApigeeV1Company"
12315	//   },
12316	//   "scopes": [
12317	//     "https://www.googleapis.com/auth/cloud-platform"
12318	//   ]
12319	// }
12320
12321}
12322
12323// method id "apigee.organizations.companies.apps.create":
12324
12325type OrganizationsCompaniesAppsCreateCall struct {
12326	s                             *Service
12327	parent                        string
12328	googlecloudapigeev1companyapp *GoogleCloudApigeeV1CompanyApp
12329	urlParams_                    gensupport.URLParams
12330	ctx_                          context.Context
12331	header_                       http.Header
12332}
12333
12334// Create: Creates an app for a company.
12335func (r *OrganizationsCompaniesAppsService) Create(parent string, googlecloudapigeev1companyapp *GoogleCloudApigeeV1CompanyApp) *OrganizationsCompaniesAppsCreateCall {
12336	c := &OrganizationsCompaniesAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12337	c.parent = parent
12338	c.googlecloudapigeev1companyapp = googlecloudapigeev1companyapp
12339	return c
12340}
12341
12342// Fields allows partial responses to be retrieved. See
12343// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12344// for more information.
12345func (c *OrganizationsCompaniesAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsCreateCall {
12346	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12347	return c
12348}
12349
12350// Context sets the context to be used in this call's Do method. Any
12351// pending HTTP request will be aborted if the provided context is
12352// canceled.
12353func (c *OrganizationsCompaniesAppsCreateCall) Context(ctx context.Context) *OrganizationsCompaniesAppsCreateCall {
12354	c.ctx_ = ctx
12355	return c
12356}
12357
12358// Header returns an http.Header that can be modified by the caller to
12359// add HTTP headers to the request.
12360func (c *OrganizationsCompaniesAppsCreateCall) Header() http.Header {
12361	if c.header_ == nil {
12362		c.header_ = make(http.Header)
12363	}
12364	return c.header_
12365}
12366
12367func (c *OrganizationsCompaniesAppsCreateCall) doRequest(alt string) (*http.Response, error) {
12368	reqHeaders := make(http.Header)
12369	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12370	for k, v := range c.header_ {
12371		reqHeaders[k] = v
12372	}
12373	reqHeaders.Set("User-Agent", c.s.userAgent())
12374	var body io.Reader = nil
12375	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1companyapp)
12376	if err != nil {
12377		return nil, err
12378	}
12379	reqHeaders.Set("Content-Type", "application/json")
12380	c.urlParams_.Set("alt", alt)
12381	c.urlParams_.Set("prettyPrint", "false")
12382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
12383	urls += "?" + c.urlParams_.Encode()
12384	req, err := http.NewRequest("POST", urls, body)
12385	if err != nil {
12386		return nil, err
12387	}
12388	req.Header = reqHeaders
12389	googleapi.Expand(req.URL, map[string]string{
12390		"parent": c.parent,
12391	})
12392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12393}
12394
12395// Do executes the "apigee.organizations.companies.apps.create" call.
12396// Exactly one of *GoogleCloudApigeeV1CompanyApp or error will be
12397// non-nil. Any non-2xx status code is an error. Response headers are in
12398// either *GoogleCloudApigeeV1CompanyApp.ServerResponse.Header or (if a
12399// response was returned at all) in error.(*googleapi.Error).Header. Use
12400// googleapi.IsNotModified to check whether the returned error was
12401// because http.StatusNotModified was returned.
12402func (c *OrganizationsCompaniesAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyApp, error) {
12403	gensupport.SetOptions(c.urlParams_, opts...)
12404	res, err := c.doRequest("json")
12405	if res != nil && res.StatusCode == http.StatusNotModified {
12406		if res.Body != nil {
12407			res.Body.Close()
12408		}
12409		return nil, &googleapi.Error{
12410			Code:   res.StatusCode,
12411			Header: res.Header,
12412		}
12413	}
12414	if err != nil {
12415		return nil, err
12416	}
12417	defer googleapi.CloseBody(res)
12418	if err := googleapi.CheckResponse(res); err != nil {
12419		return nil, err
12420	}
12421	ret := &GoogleCloudApigeeV1CompanyApp{
12422		ServerResponse: googleapi.ServerResponse{
12423			Header:         res.Header,
12424			HTTPStatusCode: res.StatusCode,
12425		},
12426	}
12427	target := &ret
12428	if err := gensupport.DecodeResponse(target, res); err != nil {
12429		return nil, err
12430	}
12431	return ret, nil
12432	// {
12433	//   "description": "Creates an app for a company.",
12434	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps",
12435	//   "httpMethod": "POST",
12436	//   "id": "apigee.organizations.companies.apps.create",
12437	//   "parameterOrder": [
12438	//     "parent"
12439	//   ],
12440	//   "parameters": {
12441	//     "parent": {
12442	//       "description": "Resource path of the parent: `organizations/{org}/companies/{company_name}`",
12443	//       "location": "path",
12444	//       "pattern": "^organizations/[^/]+/companies/[^/]+$",
12445	//       "required": true,
12446	//       "type": "string"
12447	//     }
12448	//   },
12449	//   "path": "v1/{+parent}/apps",
12450	//   "request": {
12451	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
12452	//   },
12453	//   "response": {
12454	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
12455	//   },
12456	//   "scopes": [
12457	//     "https://www.googleapis.com/auth/cloud-platform"
12458	//   ]
12459	// }
12460
12461}
12462
12463// method id "apigee.organizations.companies.apps.delete":
12464
12465type OrganizationsCompaniesAppsDeleteCall struct {
12466	s          *Service
12467	name       string
12468	urlParams_ gensupport.URLParams
12469	ctx_       context.Context
12470	header_    http.Header
12471}
12472
12473// Delete: Deletes a company app.
12474func (r *OrganizationsCompaniesAppsService) Delete(name string) *OrganizationsCompaniesAppsDeleteCall {
12475	c := &OrganizationsCompaniesAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12476	c.name = name
12477	return c
12478}
12479
12480// Fields allows partial responses to be retrieved. See
12481// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12482// for more information.
12483func (c *OrganizationsCompaniesAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsDeleteCall {
12484	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12485	return c
12486}
12487
12488// Context sets the context to be used in this call's Do method. Any
12489// pending HTTP request will be aborted if the provided context is
12490// canceled.
12491func (c *OrganizationsCompaniesAppsDeleteCall) Context(ctx context.Context) *OrganizationsCompaniesAppsDeleteCall {
12492	c.ctx_ = ctx
12493	return c
12494}
12495
12496// Header returns an http.Header that can be modified by the caller to
12497// add HTTP headers to the request.
12498func (c *OrganizationsCompaniesAppsDeleteCall) Header() http.Header {
12499	if c.header_ == nil {
12500		c.header_ = make(http.Header)
12501	}
12502	return c.header_
12503}
12504
12505func (c *OrganizationsCompaniesAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
12506	reqHeaders := make(http.Header)
12507	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12508	for k, v := range c.header_ {
12509		reqHeaders[k] = v
12510	}
12511	reqHeaders.Set("User-Agent", c.s.userAgent())
12512	var body io.Reader = nil
12513	c.urlParams_.Set("alt", alt)
12514	c.urlParams_.Set("prettyPrint", "false")
12515	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12516	urls += "?" + c.urlParams_.Encode()
12517	req, err := http.NewRequest("DELETE", urls, body)
12518	if err != nil {
12519		return nil, err
12520	}
12521	req.Header = reqHeaders
12522	googleapi.Expand(req.URL, map[string]string{
12523		"name": c.name,
12524	})
12525	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12526}
12527
12528// Do executes the "apigee.organizations.companies.apps.delete" call.
12529// Exactly one of *GoogleCloudApigeeV1CompanyApp or error will be
12530// non-nil. Any non-2xx status code is an error. Response headers are in
12531// either *GoogleCloudApigeeV1CompanyApp.ServerResponse.Header or (if a
12532// response was returned at all) in error.(*googleapi.Error).Header. Use
12533// googleapi.IsNotModified to check whether the returned error was
12534// because http.StatusNotModified was returned.
12535func (c *OrganizationsCompaniesAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyApp, error) {
12536	gensupport.SetOptions(c.urlParams_, opts...)
12537	res, err := c.doRequest("json")
12538	if res != nil && res.StatusCode == http.StatusNotModified {
12539		if res.Body != nil {
12540			res.Body.Close()
12541		}
12542		return nil, &googleapi.Error{
12543			Code:   res.StatusCode,
12544			Header: res.Header,
12545		}
12546	}
12547	if err != nil {
12548		return nil, err
12549	}
12550	defer googleapi.CloseBody(res)
12551	if err := googleapi.CheckResponse(res); err != nil {
12552		return nil, err
12553	}
12554	ret := &GoogleCloudApigeeV1CompanyApp{
12555		ServerResponse: googleapi.ServerResponse{
12556			Header:         res.Header,
12557			HTTPStatusCode: res.StatusCode,
12558		},
12559	}
12560	target := &ret
12561	if err := gensupport.DecodeResponse(target, res); err != nil {
12562		return nil, err
12563	}
12564	return ret, nil
12565	// {
12566	//   "description": "Deletes a company app.",
12567	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}",
12568	//   "httpMethod": "DELETE",
12569	//   "id": "apigee.organizations.companies.apps.delete",
12570	//   "parameterOrder": [
12571	//     "name"
12572	//   ],
12573	//   "parameters": {
12574	//     "name": {
12575	//       "description": "name of the app resource:\n`organizations/{org}/companies/{company_name}/apps/{app_name}`",
12576	//       "location": "path",
12577	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+$",
12578	//       "required": true,
12579	//       "type": "string"
12580	//     }
12581	//   },
12582	//   "path": "v1/{+name}",
12583	//   "response": {
12584	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
12585	//   },
12586	//   "scopes": [
12587	//     "https://www.googleapis.com/auth/cloud-platform"
12588	//   ]
12589	// }
12590
12591}
12592
12593// method id "apigee.organizations.companies.apps.get":
12594
12595type OrganizationsCompaniesAppsGetCall struct {
12596	s            *Service
12597	name         string
12598	urlParams_   gensupport.URLParams
12599	ifNoneMatch_ string
12600	ctx_         context.Context
12601	header_      http.Header
12602}
12603
12604// Get: Gets the profile of a specific company app.
12605func (r *OrganizationsCompaniesAppsService) Get(name string) *OrganizationsCompaniesAppsGetCall {
12606	c := &OrganizationsCompaniesAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12607	c.name = name
12608	return c
12609}
12610
12611// Fields allows partial responses to be retrieved. See
12612// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12613// for more information.
12614func (c *OrganizationsCompaniesAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsGetCall {
12615	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12616	return c
12617}
12618
12619// IfNoneMatch sets the optional parameter which makes the operation
12620// fail if the object's ETag matches the given value. This is useful for
12621// getting updates only after the object has changed since the last
12622// request. Use googleapi.IsNotModified to check whether the response
12623// error from Do is the result of In-None-Match.
12624func (c *OrganizationsCompaniesAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsCompaniesAppsGetCall {
12625	c.ifNoneMatch_ = entityTag
12626	return c
12627}
12628
12629// Context sets the context to be used in this call's Do method. Any
12630// pending HTTP request will be aborted if the provided context is
12631// canceled.
12632func (c *OrganizationsCompaniesAppsGetCall) Context(ctx context.Context) *OrganizationsCompaniesAppsGetCall {
12633	c.ctx_ = ctx
12634	return c
12635}
12636
12637// Header returns an http.Header that can be modified by the caller to
12638// add HTTP headers to the request.
12639func (c *OrganizationsCompaniesAppsGetCall) Header() http.Header {
12640	if c.header_ == nil {
12641		c.header_ = make(http.Header)
12642	}
12643	return c.header_
12644}
12645
12646func (c *OrganizationsCompaniesAppsGetCall) doRequest(alt string) (*http.Response, error) {
12647	reqHeaders := make(http.Header)
12648	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12649	for k, v := range c.header_ {
12650		reqHeaders[k] = v
12651	}
12652	reqHeaders.Set("User-Agent", c.s.userAgent())
12653	if c.ifNoneMatch_ != "" {
12654		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12655	}
12656	var body io.Reader = nil
12657	c.urlParams_.Set("alt", alt)
12658	c.urlParams_.Set("prettyPrint", "false")
12659	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12660	urls += "?" + c.urlParams_.Encode()
12661	req, err := http.NewRequest("GET", urls, body)
12662	if err != nil {
12663		return nil, err
12664	}
12665	req.Header = reqHeaders
12666	googleapi.Expand(req.URL, map[string]string{
12667		"name": c.name,
12668	})
12669	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12670}
12671
12672// Do executes the "apigee.organizations.companies.apps.get" call.
12673// Exactly one of *GoogleCloudApigeeV1CompanyApp or error will be
12674// non-nil. Any non-2xx status code is an error. Response headers are in
12675// either *GoogleCloudApigeeV1CompanyApp.ServerResponse.Header or (if a
12676// response was returned at all) in error.(*googleapi.Error).Header. Use
12677// googleapi.IsNotModified to check whether the returned error was
12678// because http.StatusNotModified was returned.
12679func (c *OrganizationsCompaniesAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyApp, error) {
12680	gensupport.SetOptions(c.urlParams_, opts...)
12681	res, err := c.doRequest("json")
12682	if res != nil && res.StatusCode == http.StatusNotModified {
12683		if res.Body != nil {
12684			res.Body.Close()
12685		}
12686		return nil, &googleapi.Error{
12687			Code:   res.StatusCode,
12688			Header: res.Header,
12689		}
12690	}
12691	if err != nil {
12692		return nil, err
12693	}
12694	defer googleapi.CloseBody(res)
12695	if err := googleapi.CheckResponse(res); err != nil {
12696		return nil, err
12697	}
12698	ret := &GoogleCloudApigeeV1CompanyApp{
12699		ServerResponse: googleapi.ServerResponse{
12700			Header:         res.Header,
12701			HTTPStatusCode: res.StatusCode,
12702		},
12703	}
12704	target := &ret
12705	if err := gensupport.DecodeResponse(target, res); err != nil {
12706		return nil, err
12707	}
12708	return ret, nil
12709	// {
12710	//   "description": "Gets the profile of a specific company app.",
12711	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}",
12712	//   "httpMethod": "GET",
12713	//   "id": "apigee.organizations.companies.apps.get",
12714	//   "parameterOrder": [
12715	//     "name"
12716	//   ],
12717	//   "parameters": {
12718	//     "name": {
12719	//       "description": "name of the app resource:\n`organizations/{org}/companies/{company_name}/apps/{app_name}`",
12720	//       "location": "path",
12721	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+$",
12722	//       "required": true,
12723	//       "type": "string"
12724	//     }
12725	//   },
12726	//   "path": "v1/{+name}",
12727	//   "response": {
12728	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
12729	//   },
12730	//   "scopes": [
12731	//     "https://www.googleapis.com/auth/cloud-platform"
12732	//   ]
12733	// }
12734
12735}
12736
12737// method id "apigee.organizations.companies.apps.list":
12738
12739type OrganizationsCompaniesAppsListCall struct {
12740	s            *Service
12741	parent       string
12742	urlParams_   gensupport.URLParams
12743	ifNoneMatch_ string
12744	ctx_         context.Context
12745	header_      http.Header
12746}
12747
12748// List: List company apps in an organization. You can optionally expand
12749// the
12750// response to include the profile for each app.
12751func (r *OrganizationsCompaniesAppsService) List(parent string) *OrganizationsCompaniesAppsListCall {
12752	c := &OrganizationsCompaniesAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12753	c.parent = parent
12754	return c
12755}
12756
12757// Count sets the optional parameter "count": Limits the list to the
12758// number you specify. The limit is 100.
12759func (c *OrganizationsCompaniesAppsListCall) Count(count int64) *OrganizationsCompaniesAppsListCall {
12760	c.urlParams_.Set("count", fmt.Sprint(count))
12761	return c
12762}
12763
12764// Expand sets the optional parameter "expand": Set expand to true to
12765// return a full profile
12766func (c *OrganizationsCompaniesAppsListCall) Expand(expand bool) *OrganizationsCompaniesAppsListCall {
12767	c.urlParams_.Set("expand", fmt.Sprint(expand))
12768	return c
12769}
12770
12771// StartKey sets the optional parameter "startKey": Lets you return a
12772// list of app starting with a specific app name in the
12773// list.
12774func (c *OrganizationsCompaniesAppsListCall) StartKey(startKey string) *OrganizationsCompaniesAppsListCall {
12775	c.urlParams_.Set("startKey", startKey)
12776	return c
12777}
12778
12779// Fields allows partial responses to be retrieved. See
12780// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12781// for more information.
12782func (c *OrganizationsCompaniesAppsListCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsListCall {
12783	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12784	return c
12785}
12786
12787// IfNoneMatch sets the optional parameter which makes the operation
12788// fail if the object's ETag matches the given value. This is useful for
12789// getting updates only after the object has changed since the last
12790// request. Use googleapi.IsNotModified to check whether the response
12791// error from Do is the result of In-None-Match.
12792func (c *OrganizationsCompaniesAppsListCall) IfNoneMatch(entityTag string) *OrganizationsCompaniesAppsListCall {
12793	c.ifNoneMatch_ = entityTag
12794	return c
12795}
12796
12797// Context sets the context to be used in this call's Do method. Any
12798// pending HTTP request will be aborted if the provided context is
12799// canceled.
12800func (c *OrganizationsCompaniesAppsListCall) Context(ctx context.Context) *OrganizationsCompaniesAppsListCall {
12801	c.ctx_ = ctx
12802	return c
12803}
12804
12805// Header returns an http.Header that can be modified by the caller to
12806// add HTTP headers to the request.
12807func (c *OrganizationsCompaniesAppsListCall) Header() http.Header {
12808	if c.header_ == nil {
12809		c.header_ = make(http.Header)
12810	}
12811	return c.header_
12812}
12813
12814func (c *OrganizationsCompaniesAppsListCall) doRequest(alt string) (*http.Response, error) {
12815	reqHeaders := make(http.Header)
12816	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12817	for k, v := range c.header_ {
12818		reqHeaders[k] = v
12819	}
12820	reqHeaders.Set("User-Agent", c.s.userAgent())
12821	if c.ifNoneMatch_ != "" {
12822		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12823	}
12824	var body io.Reader = nil
12825	c.urlParams_.Set("alt", alt)
12826	c.urlParams_.Set("prettyPrint", "false")
12827	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
12828	urls += "?" + c.urlParams_.Encode()
12829	req, err := http.NewRequest("GET", urls, body)
12830	if err != nil {
12831		return nil, err
12832	}
12833	req.Header = reqHeaders
12834	googleapi.Expand(req.URL, map[string]string{
12835		"parent": c.parent,
12836	})
12837	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12838}
12839
12840// Do executes the "apigee.organizations.companies.apps.list" call.
12841// Exactly one of *GoogleCloudApigeeV1ListCompanyAppsResponse or error
12842// will be non-nil. Any non-2xx status code is an error. Response
12843// headers are in either
12844// *GoogleCloudApigeeV1ListCompanyAppsResponse.ServerResponse.Header or
12845// (if a response was returned at all) in
12846// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
12847// whether the returned error was because http.StatusNotModified was
12848// returned.
12849func (c *OrganizationsCompaniesAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCompanyAppsResponse, error) {
12850	gensupport.SetOptions(c.urlParams_, opts...)
12851	res, err := c.doRequest("json")
12852	if res != nil && res.StatusCode == http.StatusNotModified {
12853		if res.Body != nil {
12854			res.Body.Close()
12855		}
12856		return nil, &googleapi.Error{
12857			Code:   res.StatusCode,
12858			Header: res.Header,
12859		}
12860	}
12861	if err != nil {
12862		return nil, err
12863	}
12864	defer googleapi.CloseBody(res)
12865	if err := googleapi.CheckResponse(res); err != nil {
12866		return nil, err
12867	}
12868	ret := &GoogleCloudApigeeV1ListCompanyAppsResponse{
12869		ServerResponse: googleapi.ServerResponse{
12870			Header:         res.Header,
12871			HTTPStatusCode: res.StatusCode,
12872		},
12873	}
12874	target := &ret
12875	if err := gensupport.DecodeResponse(target, res); err != nil {
12876		return nil, err
12877	}
12878	return ret, nil
12879	// {
12880	//   "description": "List company apps in an organization. You can optionally expand the\nresponse to include the profile for each app.",
12881	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps",
12882	//   "httpMethod": "GET",
12883	//   "id": "apigee.organizations.companies.apps.list",
12884	//   "parameterOrder": [
12885	//     "parent"
12886	//   ],
12887	//   "parameters": {
12888	//     "count": {
12889	//       "description": "Limits the list to the number you specify. The limit is 100.",
12890	//       "format": "int64",
12891	//       "location": "query",
12892	//       "type": "string"
12893	//     },
12894	//     "expand": {
12895	//       "description": "Set expand to true to return a full profile",
12896	//       "location": "query",
12897	//       "type": "boolean"
12898	//     },
12899	//     "parent": {
12900	//       "description": "The name of a company resource:\n`organizations/{org}/companies/{company_name}`",
12901	//       "location": "path",
12902	//       "pattern": "^organizations/[^/]+/companies/[^/]+$",
12903	//       "required": true,
12904	//       "type": "string"
12905	//     },
12906	//     "startKey": {
12907	//       "description": "Lets you return a list of app starting with a specific app name in the\nlist.",
12908	//       "location": "query",
12909	//       "type": "string"
12910	//     }
12911	//   },
12912	//   "path": "v1/{+parent}/apps",
12913	//   "response": {
12914	//     "$ref": "GoogleCloudApigeeV1ListCompanyAppsResponse"
12915	//   },
12916	//   "scopes": [
12917	//     "https://www.googleapis.com/auth/cloud-platform"
12918	//   ]
12919	// }
12920
12921}
12922
12923// method id "apigee.organizations.companies.apps.update":
12924
12925type OrganizationsCompaniesAppsUpdateCall struct {
12926	s                             *Service
12927	name                          string
12928	googlecloudapigeev1companyapp *GoogleCloudApigeeV1CompanyApp
12929	urlParams_                    gensupport.URLParams
12930	ctx_                          context.Context
12931	header_                       http.Header
12932}
12933
12934// Update: Updates an existing company app.
12935func (r *OrganizationsCompaniesAppsService) Update(name string, googlecloudapigeev1companyapp *GoogleCloudApigeeV1CompanyApp) *OrganizationsCompaniesAppsUpdateCall {
12936	c := &OrganizationsCompaniesAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12937	c.name = name
12938	c.googlecloudapigeev1companyapp = googlecloudapigeev1companyapp
12939	return c
12940}
12941
12942// Fields allows partial responses to be retrieved. See
12943// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12944// for more information.
12945func (c *OrganizationsCompaniesAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsUpdateCall {
12946	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12947	return c
12948}
12949
12950// Context sets the context to be used in this call's Do method. Any
12951// pending HTTP request will be aborted if the provided context is
12952// canceled.
12953func (c *OrganizationsCompaniesAppsUpdateCall) Context(ctx context.Context) *OrganizationsCompaniesAppsUpdateCall {
12954	c.ctx_ = ctx
12955	return c
12956}
12957
12958// Header returns an http.Header that can be modified by the caller to
12959// add HTTP headers to the request.
12960func (c *OrganizationsCompaniesAppsUpdateCall) Header() http.Header {
12961	if c.header_ == nil {
12962		c.header_ = make(http.Header)
12963	}
12964	return c.header_
12965}
12966
12967func (c *OrganizationsCompaniesAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
12968	reqHeaders := make(http.Header)
12969	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
12970	for k, v := range c.header_ {
12971		reqHeaders[k] = v
12972	}
12973	reqHeaders.Set("User-Agent", c.s.userAgent())
12974	var body io.Reader = nil
12975	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1companyapp)
12976	if err != nil {
12977		return nil, err
12978	}
12979	reqHeaders.Set("Content-Type", "application/json")
12980	c.urlParams_.Set("alt", alt)
12981	c.urlParams_.Set("prettyPrint", "false")
12982	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12983	urls += "?" + c.urlParams_.Encode()
12984	req, err := http.NewRequest("PUT", urls, body)
12985	if err != nil {
12986		return nil, err
12987	}
12988	req.Header = reqHeaders
12989	googleapi.Expand(req.URL, map[string]string{
12990		"name": c.name,
12991	})
12992	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12993}
12994
12995// Do executes the "apigee.organizations.companies.apps.update" call.
12996// Exactly one of *GoogleCloudApigeeV1CompanyApp or error will be
12997// non-nil. Any non-2xx status code is an error. Response headers are in
12998// either *GoogleCloudApigeeV1CompanyApp.ServerResponse.Header or (if a
12999// response was returned at all) in error.(*googleapi.Error).Header. Use
13000// googleapi.IsNotModified to check whether the returned error was
13001// because http.StatusNotModified was returned.
13002func (c *OrganizationsCompaniesAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyApp, error) {
13003	gensupport.SetOptions(c.urlParams_, opts...)
13004	res, err := c.doRequest("json")
13005	if res != nil && res.StatusCode == http.StatusNotModified {
13006		if res.Body != nil {
13007			res.Body.Close()
13008		}
13009		return nil, &googleapi.Error{
13010			Code:   res.StatusCode,
13011			Header: res.Header,
13012		}
13013	}
13014	if err != nil {
13015		return nil, err
13016	}
13017	defer googleapi.CloseBody(res)
13018	if err := googleapi.CheckResponse(res); err != nil {
13019		return nil, err
13020	}
13021	ret := &GoogleCloudApigeeV1CompanyApp{
13022		ServerResponse: googleapi.ServerResponse{
13023			Header:         res.Header,
13024			HTTPStatusCode: res.StatusCode,
13025		},
13026	}
13027	target := &ret
13028	if err := gensupport.DecodeResponse(target, res); err != nil {
13029		return nil, err
13030	}
13031	return ret, nil
13032	// {
13033	//   "description": "Updates an existing company app.",
13034	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}",
13035	//   "httpMethod": "PUT",
13036	//   "id": "apigee.organizations.companies.apps.update",
13037	//   "parameterOrder": [
13038	//     "name"
13039	//   ],
13040	//   "parameters": {
13041	//     "name": {
13042	//       "description": "Resource path of the app:\n`organizations/{org}/companies/{company_name}/apps/{app_name}`",
13043	//       "location": "path",
13044	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+$",
13045	//       "required": true,
13046	//       "type": "string"
13047	//     }
13048	//   },
13049	//   "path": "v1/{+name}",
13050	//   "request": {
13051	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
13052	//   },
13053	//   "response": {
13054	//     "$ref": "GoogleCloudApigeeV1CompanyApp"
13055	//   },
13056	//   "scopes": [
13057	//     "https://www.googleapis.com/auth/cloud-platform"
13058	//   ]
13059	// }
13060
13061}
13062
13063// method id "apigee.organizations.companies.apps.keys.delete":
13064
13065type OrganizationsCompaniesAppsKeysDeleteCall struct {
13066	s          *Service
13067	name       string
13068	urlParams_ gensupport.URLParams
13069	ctx_       context.Context
13070	header_    http.Header
13071}
13072
13073// Delete: Deletes a key for a company app and removes all API products
13074// associated
13075// with the app. The key can no longer be used to access any APIs.
13076func (r *OrganizationsCompaniesAppsKeysService) Delete(name string) *OrganizationsCompaniesAppsKeysDeleteCall {
13077	c := &OrganizationsCompaniesAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13078	c.name = name
13079	return c
13080}
13081
13082// Fields allows partial responses to be retrieved. See
13083// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13084// for more information.
13085func (c *OrganizationsCompaniesAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsKeysDeleteCall {
13086	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13087	return c
13088}
13089
13090// Context sets the context to be used in this call's Do method. Any
13091// pending HTTP request will be aborted if the provided context is
13092// canceled.
13093func (c *OrganizationsCompaniesAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsCompaniesAppsKeysDeleteCall {
13094	c.ctx_ = ctx
13095	return c
13096}
13097
13098// Header returns an http.Header that can be modified by the caller to
13099// add HTTP headers to the request.
13100func (c *OrganizationsCompaniesAppsKeysDeleteCall) Header() http.Header {
13101	if c.header_ == nil {
13102		c.header_ = make(http.Header)
13103	}
13104	return c.header_
13105}
13106
13107func (c *OrganizationsCompaniesAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
13108	reqHeaders := make(http.Header)
13109	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13110	for k, v := range c.header_ {
13111		reqHeaders[k] = v
13112	}
13113	reqHeaders.Set("User-Agent", c.s.userAgent())
13114	var body io.Reader = nil
13115	c.urlParams_.Set("alt", alt)
13116	c.urlParams_.Set("prettyPrint", "false")
13117	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13118	urls += "?" + c.urlParams_.Encode()
13119	req, err := http.NewRequest("DELETE", urls, body)
13120	if err != nil {
13121		return nil, err
13122	}
13123	req.Header = reqHeaders
13124	googleapi.Expand(req.URL, map[string]string{
13125		"name": c.name,
13126	})
13127	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13128}
13129
13130// Do executes the "apigee.organizations.companies.apps.keys.delete" call.
13131// Exactly one of *GoogleCloudApigeeV1CompanyAppKey or error will be
13132// non-nil. Any non-2xx status code is an error. Response headers are in
13133// either *GoogleCloudApigeeV1CompanyAppKey.ServerResponse.Header or (if
13134// a response was returned at all) in error.(*googleapi.Error).Header.
13135// Use googleapi.IsNotModified to check whether the returned error was
13136// because http.StatusNotModified was returned.
13137func (c *OrganizationsCompaniesAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyAppKey, error) {
13138	gensupport.SetOptions(c.urlParams_, opts...)
13139	res, err := c.doRequest("json")
13140	if res != nil && res.StatusCode == http.StatusNotModified {
13141		if res.Body != nil {
13142			res.Body.Close()
13143		}
13144		return nil, &googleapi.Error{
13145			Code:   res.StatusCode,
13146			Header: res.Header,
13147		}
13148	}
13149	if err != nil {
13150		return nil, err
13151	}
13152	defer googleapi.CloseBody(res)
13153	if err := googleapi.CheckResponse(res); err != nil {
13154		return nil, err
13155	}
13156	ret := &GoogleCloudApigeeV1CompanyAppKey{
13157		ServerResponse: googleapi.ServerResponse{
13158			Header:         res.Header,
13159			HTTPStatusCode: res.StatusCode,
13160		},
13161	}
13162	target := &ret
13163	if err := gensupport.DecodeResponse(target, res); err != nil {
13164		return nil, err
13165	}
13166	return ret, nil
13167	// {
13168	//   "description": "Deletes a key for a company app and removes all API products associated\nwith the app. The key can no longer be used to access any APIs.",
13169	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}/keys/{keysId}",
13170	//   "httpMethod": "DELETE",
13171	//   "id": "apigee.organizations.companies.apps.keys.delete",
13172	//   "parameterOrder": [
13173	//     "name"
13174	//   ],
13175	//   "parameters": {
13176	//     "name": {
13177	//       "description": "Resource name of a company app key\n`organizations/{org}/companies/{company}/apps/{app}/keys/{key}`",
13178	//       "location": "path",
13179	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+/keys/[^/]+$",
13180	//       "required": true,
13181	//       "type": "string"
13182	//     }
13183	//   },
13184	//   "path": "v1/{+name}",
13185	//   "response": {
13186	//     "$ref": "GoogleCloudApigeeV1CompanyAppKey"
13187	//   },
13188	//   "scopes": [
13189	//     "https://www.googleapis.com/auth/cloud-platform"
13190	//   ]
13191	// }
13192
13193}
13194
13195// method id "apigee.organizations.companies.apps.keys.get":
13196
13197type OrganizationsCompaniesAppsKeysGetCall struct {
13198	s            *Service
13199	name         string
13200	urlParams_   gensupport.URLParams
13201	ifNoneMatch_ string
13202	ctx_         context.Context
13203	header_      http.Header
13204}
13205
13206// Get: Gets information about the consumer key issued to a specific
13207// company app.
13208func (r *OrganizationsCompaniesAppsKeysService) Get(name string) *OrganizationsCompaniesAppsKeysGetCall {
13209	c := &OrganizationsCompaniesAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13210	c.name = name
13211	return c
13212}
13213
13214// Fields allows partial responses to be retrieved. See
13215// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13216// for more information.
13217func (c *OrganizationsCompaniesAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsKeysGetCall {
13218	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13219	return c
13220}
13221
13222// IfNoneMatch sets the optional parameter which makes the operation
13223// fail if the object's ETag matches the given value. This is useful for
13224// getting updates only after the object has changed since the last
13225// request. Use googleapi.IsNotModified to check whether the response
13226// error from Do is the result of In-None-Match.
13227func (c *OrganizationsCompaniesAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsCompaniesAppsKeysGetCall {
13228	c.ifNoneMatch_ = entityTag
13229	return c
13230}
13231
13232// Context sets the context to be used in this call's Do method. Any
13233// pending HTTP request will be aborted if the provided context is
13234// canceled.
13235func (c *OrganizationsCompaniesAppsKeysGetCall) Context(ctx context.Context) *OrganizationsCompaniesAppsKeysGetCall {
13236	c.ctx_ = ctx
13237	return c
13238}
13239
13240// Header returns an http.Header that can be modified by the caller to
13241// add HTTP headers to the request.
13242func (c *OrganizationsCompaniesAppsKeysGetCall) Header() http.Header {
13243	if c.header_ == nil {
13244		c.header_ = make(http.Header)
13245	}
13246	return c.header_
13247}
13248
13249func (c *OrganizationsCompaniesAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
13250	reqHeaders := make(http.Header)
13251	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13252	for k, v := range c.header_ {
13253		reqHeaders[k] = v
13254	}
13255	reqHeaders.Set("User-Agent", c.s.userAgent())
13256	if c.ifNoneMatch_ != "" {
13257		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13258	}
13259	var body io.Reader = nil
13260	c.urlParams_.Set("alt", alt)
13261	c.urlParams_.Set("prettyPrint", "false")
13262	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13263	urls += "?" + c.urlParams_.Encode()
13264	req, err := http.NewRequest("GET", urls, body)
13265	if err != nil {
13266		return nil, err
13267	}
13268	req.Header = reqHeaders
13269	googleapi.Expand(req.URL, map[string]string{
13270		"name": c.name,
13271	})
13272	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13273}
13274
13275// Do executes the "apigee.organizations.companies.apps.keys.get" call.
13276// Exactly one of *GoogleCloudApigeeV1CompanyAppKey or error will be
13277// non-nil. Any non-2xx status code is an error. Response headers are in
13278// either *GoogleCloudApigeeV1CompanyAppKey.ServerResponse.Header or (if
13279// a response was returned at all) in error.(*googleapi.Error).Header.
13280// Use googleapi.IsNotModified to check whether the returned error was
13281// because http.StatusNotModified was returned.
13282func (c *OrganizationsCompaniesAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyAppKey, error) {
13283	gensupport.SetOptions(c.urlParams_, opts...)
13284	res, err := c.doRequest("json")
13285	if res != nil && res.StatusCode == http.StatusNotModified {
13286		if res.Body != nil {
13287			res.Body.Close()
13288		}
13289		return nil, &googleapi.Error{
13290			Code:   res.StatusCode,
13291			Header: res.Header,
13292		}
13293	}
13294	if err != nil {
13295		return nil, err
13296	}
13297	defer googleapi.CloseBody(res)
13298	if err := googleapi.CheckResponse(res); err != nil {
13299		return nil, err
13300	}
13301	ret := &GoogleCloudApigeeV1CompanyAppKey{
13302		ServerResponse: googleapi.ServerResponse{
13303			Header:         res.Header,
13304			HTTPStatusCode: res.StatusCode,
13305		},
13306	}
13307	target := &ret
13308	if err := gensupport.DecodeResponse(target, res); err != nil {
13309		return nil, err
13310	}
13311	return ret, nil
13312	// {
13313	//   "description": "Gets information about the consumer key issued to a specific company app.",
13314	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}/keys/{keysId}",
13315	//   "httpMethod": "GET",
13316	//   "id": "apigee.organizations.companies.apps.keys.get",
13317	//   "parameterOrder": [
13318	//     "name"
13319	//   ],
13320	//   "parameters": {
13321	//     "name": {
13322	//       "description": "Resource name of a company app key\n`organizations/{org}/companies/{company}/apps/{app}/keys/{key}`",
13323	//       "location": "path",
13324	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+/keys/[^/]+$",
13325	//       "required": true,
13326	//       "type": "string"
13327	//     }
13328	//   },
13329	//   "path": "v1/{+name}",
13330	//   "response": {
13331	//     "$ref": "GoogleCloudApigeeV1CompanyAppKey"
13332	//   },
13333	//   "scopes": [
13334	//     "https://www.googleapis.com/auth/cloud-platform"
13335	//   ]
13336	// }
13337
13338}
13339
13340// method id "apigee.organizations.companies.apps.keys.updateCompanyAppKey":
13341
13342type OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall struct {
13343	s                                *Service
13344	name                             string
13345	googlecloudapigeev1companyappkey *GoogleCloudApigeeV1CompanyAppKey
13346	urlParams_                       gensupport.URLParams
13347	ctx_                             context.Context
13348	header_                          http.Header
13349}
13350
13351// UpdateCompanyAppKey: Updates an existing company app key to add
13352// additional API products or
13353// attributes. Note that only a single API product can be resolved per
13354// app
13355// key at runtime. API products are resolved by name, in alphabetical
13356// order.
13357// The first API product found in the list will be returned.
13358func (r *OrganizationsCompaniesAppsKeysService) UpdateCompanyAppKey(name string, googlecloudapigeev1companyappkey *GoogleCloudApigeeV1CompanyAppKey) *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall {
13359	c := &OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13360	c.name = name
13361	c.googlecloudapigeev1companyappkey = googlecloudapigeev1companyappkey
13362	return c
13363}
13364
13365// Action sets the optional parameter "action": Set action to approve or
13366// revoke.
13367func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) Action(action string) *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall {
13368	c.urlParams_.Set("action", action)
13369	return c
13370}
13371
13372// Fields allows partial responses to be retrieved. See
13373// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13374// for more information.
13375func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall {
13376	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13377	return c
13378}
13379
13380// Context sets the context to be used in this call's Do method. Any
13381// pending HTTP request will be aborted if the provided context is
13382// canceled.
13383func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) Context(ctx context.Context) *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall {
13384	c.ctx_ = ctx
13385	return c
13386}
13387
13388// Header returns an http.Header that can be modified by the caller to
13389// add HTTP headers to the request.
13390func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) Header() http.Header {
13391	if c.header_ == nil {
13392		c.header_ = make(http.Header)
13393	}
13394	return c.header_
13395}
13396
13397func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) doRequest(alt string) (*http.Response, error) {
13398	reqHeaders := make(http.Header)
13399	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13400	for k, v := range c.header_ {
13401		reqHeaders[k] = v
13402	}
13403	reqHeaders.Set("User-Agent", c.s.userAgent())
13404	var body io.Reader = nil
13405	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1companyappkey)
13406	if err != nil {
13407		return nil, err
13408	}
13409	reqHeaders.Set("Content-Type", "application/json")
13410	c.urlParams_.Set("alt", alt)
13411	c.urlParams_.Set("prettyPrint", "false")
13412	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13413	urls += "?" + c.urlParams_.Encode()
13414	req, err := http.NewRequest("POST", urls, body)
13415	if err != nil {
13416		return nil, err
13417	}
13418	req.Header = reqHeaders
13419	googleapi.Expand(req.URL, map[string]string{
13420		"name": c.name,
13421	})
13422	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13423}
13424
13425// Do executes the "apigee.organizations.companies.apps.keys.updateCompanyAppKey" call.
13426// Exactly one of *GoogleCloudApigeeV1CompanyAppKey or error will be
13427// non-nil. Any non-2xx status code is an error. Response headers are in
13428// either *GoogleCloudApigeeV1CompanyAppKey.ServerResponse.Header or (if
13429// a response was returned at all) in error.(*googleapi.Error).Header.
13430// Use googleapi.IsNotModified to check whether the returned error was
13431// because http.StatusNotModified was returned.
13432func (c *OrganizationsCompaniesAppsKeysUpdateCompanyAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CompanyAppKey, error) {
13433	gensupport.SetOptions(c.urlParams_, opts...)
13434	res, err := c.doRequest("json")
13435	if res != nil && res.StatusCode == http.StatusNotModified {
13436		if res.Body != nil {
13437			res.Body.Close()
13438		}
13439		return nil, &googleapi.Error{
13440			Code:   res.StatusCode,
13441			Header: res.Header,
13442		}
13443	}
13444	if err != nil {
13445		return nil, err
13446	}
13447	defer googleapi.CloseBody(res)
13448	if err := googleapi.CheckResponse(res); err != nil {
13449		return nil, err
13450	}
13451	ret := &GoogleCloudApigeeV1CompanyAppKey{
13452		ServerResponse: googleapi.ServerResponse{
13453			Header:         res.Header,
13454			HTTPStatusCode: res.StatusCode,
13455		},
13456	}
13457	target := &ret
13458	if err := gensupport.DecodeResponse(target, res); err != nil {
13459		return nil, err
13460	}
13461	return ret, nil
13462	// {
13463	//   "description": "Updates an existing company app key to add additional API products or\nattributes. Note that only a single API product can be resolved per app\nkey at runtime. API products are resolved by name, in alphabetical order.\nThe first API product found in the list will be returned.",
13464	//   "flatPath": "v1/organizations/{organizationsId}/companies/{companiesId}/apps/{appsId}/keys/{keysId}",
13465	//   "httpMethod": "POST",
13466	//   "id": "apigee.organizations.companies.apps.keys.updateCompanyAppKey",
13467	//   "parameterOrder": [
13468	//     "name"
13469	//   ],
13470	//   "parameters": {
13471	//     "action": {
13472	//       "description": "Set action to approve or revoke.",
13473	//       "location": "query",
13474	//       "type": "string"
13475	//     },
13476	//     "name": {
13477	//       "description": "Resource name of a company app key\n`organizations/{org}/companies/{company}/apps/{app}/keys/{key}`",
13478	//       "location": "path",
13479	//       "pattern": "^organizations/[^/]+/companies/[^/]+/apps/[^/]+/keys/[^/]+$",
13480	//       "required": true,
13481	//       "type": "string"
13482	//     }
13483	//   },
13484	//   "path": "v1/{+name}",
13485	//   "request": {
13486	//     "$ref": "GoogleCloudApigeeV1CompanyAppKey"
13487	//   },
13488	//   "response": {
13489	//     "$ref": "GoogleCloudApigeeV1CompanyAppKey"
13490	//   },
13491	//   "scopes": [
13492	//     "https://www.googleapis.com/auth/cloud-platform"
13493	//   ]
13494	// }
13495
13496}
13497
13498// method id "apigee.organizations.deployments.list":
13499
13500type OrganizationsDeploymentsListCall struct {
13501	s            *Service
13502	parent       string
13503	urlParams_   gensupport.URLParams
13504	ifNoneMatch_ string
13505	ctx_         context.Context
13506	header_      http.Header
13507}
13508
13509// List: Lists all deployments of API proxies or shared flows.
13510func (r *OrganizationsDeploymentsService) List(parent string) *OrganizationsDeploymentsListCall {
13511	c := &OrganizationsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13512	c.parent = parent
13513	return c
13514}
13515
13516// SharedFlows sets the optional parameter "sharedFlows": Flag that
13517// specifies whether to return shared flow or API proxy deployments.
13518// Set to `true` to return shared flow deployments; set to `false`
13519// to return API proxy deployments. Defaults to `false`.
13520func (c *OrganizationsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsDeploymentsListCall {
13521	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
13522	return c
13523}
13524
13525// Fields allows partial responses to be retrieved. See
13526// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13527// for more information.
13528func (c *OrganizationsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsDeploymentsListCall {
13529	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13530	return c
13531}
13532
13533// IfNoneMatch sets the optional parameter which makes the operation
13534// fail if the object's ETag matches the given value. This is useful for
13535// getting updates only after the object has changed since the last
13536// request. Use googleapi.IsNotModified to check whether the response
13537// error from Do is the result of In-None-Match.
13538func (c *OrganizationsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsDeploymentsListCall {
13539	c.ifNoneMatch_ = entityTag
13540	return c
13541}
13542
13543// Context sets the context to be used in this call's Do method. Any
13544// pending HTTP request will be aborted if the provided context is
13545// canceled.
13546func (c *OrganizationsDeploymentsListCall) Context(ctx context.Context) *OrganizationsDeploymentsListCall {
13547	c.ctx_ = ctx
13548	return c
13549}
13550
13551// Header returns an http.Header that can be modified by the caller to
13552// add HTTP headers to the request.
13553func (c *OrganizationsDeploymentsListCall) Header() http.Header {
13554	if c.header_ == nil {
13555		c.header_ = make(http.Header)
13556	}
13557	return c.header_
13558}
13559
13560func (c *OrganizationsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
13561	reqHeaders := make(http.Header)
13562	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13563	for k, v := range c.header_ {
13564		reqHeaders[k] = v
13565	}
13566	reqHeaders.Set("User-Agent", c.s.userAgent())
13567	if c.ifNoneMatch_ != "" {
13568		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13569	}
13570	var body io.Reader = nil
13571	c.urlParams_.Set("alt", alt)
13572	c.urlParams_.Set("prettyPrint", "false")
13573	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
13574	urls += "?" + c.urlParams_.Encode()
13575	req, err := http.NewRequest("GET", urls, body)
13576	if err != nil {
13577		return nil, err
13578	}
13579	req.Header = reqHeaders
13580	googleapi.Expand(req.URL, map[string]string{
13581		"parent": c.parent,
13582	})
13583	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13584}
13585
13586// Do executes the "apigee.organizations.deployments.list" call.
13587// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
13588// will be non-nil. Any non-2xx status code is an error. Response
13589// headers are in either
13590// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
13591// (if a response was returned at all) in
13592// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
13593// whether the returned error was because http.StatusNotModified was
13594// returned.
13595func (c *OrganizationsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
13596	gensupport.SetOptions(c.urlParams_, opts...)
13597	res, err := c.doRequest("json")
13598	if res != nil && res.StatusCode == http.StatusNotModified {
13599		if res.Body != nil {
13600			res.Body.Close()
13601		}
13602		return nil, &googleapi.Error{
13603			Code:   res.StatusCode,
13604			Header: res.Header,
13605		}
13606	}
13607	if err != nil {
13608		return nil, err
13609	}
13610	defer googleapi.CloseBody(res)
13611	if err := googleapi.CheckResponse(res); err != nil {
13612		return nil, err
13613	}
13614	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
13615		ServerResponse: googleapi.ServerResponse{
13616			Header:         res.Header,
13617			HTTPStatusCode: res.StatusCode,
13618		},
13619	}
13620	target := &ret
13621	if err := gensupport.DecodeResponse(target, res); err != nil {
13622		return nil, err
13623	}
13624	return ret, nil
13625	// {
13626	//   "description": "Lists all deployments of API proxies or shared flows.",
13627	//   "flatPath": "v1/organizations/{organizationsId}/deployments",
13628	//   "httpMethod": "GET",
13629	//   "id": "apigee.organizations.deployments.list",
13630	//   "parameterOrder": [
13631	//     "parent"
13632	//   ],
13633	//   "parameters": {
13634	//     "parent": {
13635	//       "description": "Required. Name of the organization for which to return deployment information in the\nfollowing format:\n `organizations/{org}`",
13636	//       "location": "path",
13637	//       "pattern": "^organizations/[^/]+$",
13638	//       "required": true,
13639	//       "type": "string"
13640	//     },
13641	//     "sharedFlows": {
13642	//       "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments.\nSet to `true` to return shared flow deployments; set to `false`\nto return API proxy deployments. Defaults to `false`.",
13643	//       "location": "query",
13644	//       "type": "boolean"
13645	//     }
13646	//   },
13647	//   "path": "v1/{+parent}/deployments",
13648	//   "response": {
13649	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
13650	//   },
13651	//   "scopes": [
13652	//     "https://www.googleapis.com/auth/cloud-platform"
13653	//   ]
13654	// }
13655
13656}
13657
13658// method id "apigee.organizations.developers.attributes":
13659
13660type OrganizationsDevelopersAttributesCall struct {
13661	s                             *Service
13662	parent                        string
13663	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
13664	urlParams_                    gensupport.URLParams
13665	ctx_                          context.Context
13666	header_                       http.Header
13667}
13668
13669// Attributes: Updates or creates developer attributes.This API replaces
13670// the current
13671// list of attributes with the attributes specified in the request
13672// body.
13673// This lets you update existing attributes, add new attributes, or
13674// delete
13675// existing attributes by omitting them from the request body. the
13676// attribute
13677// limit is 18. Core Persistence Services caching minimum: OAuth
13678// access
13679// tokens and Key Management Service (KMS) entities (Apps,
13680// Developers,
13681// API Products) are cached for 180 seconds.
13682// Any custom attributes associated with entities also get cached for at
13683// least
13684// 180 seconds after entity is accessed during runtime. This also means
13685// the
13686// ExpiresIn element on the OAuthV2 policy won't be able to expire an
13687// access
13688// token in less than 180 seconds.
13689func (r *OrganizationsDevelopersService) Attributes(parent string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAttributesCall {
13690	c := &OrganizationsDevelopersAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13691	c.parent = parent
13692	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
13693	return c
13694}
13695
13696// Fields allows partial responses to be retrieved. See
13697// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13698// for more information.
13699func (c *OrganizationsDevelopersAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesCall {
13700	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13701	return c
13702}
13703
13704// Context sets the context to be used in this call's Do method. Any
13705// pending HTTP request will be aborted if the provided context is
13706// canceled.
13707func (c *OrganizationsDevelopersAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesCall {
13708	c.ctx_ = ctx
13709	return c
13710}
13711
13712// Header returns an http.Header that can be modified by the caller to
13713// add HTTP headers to the request.
13714func (c *OrganizationsDevelopersAttributesCall) Header() http.Header {
13715	if c.header_ == nil {
13716		c.header_ = make(http.Header)
13717	}
13718	return c.header_
13719}
13720
13721func (c *OrganizationsDevelopersAttributesCall) doRequest(alt string) (*http.Response, error) {
13722	reqHeaders := make(http.Header)
13723	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13724	for k, v := range c.header_ {
13725		reqHeaders[k] = v
13726	}
13727	reqHeaders.Set("User-Agent", c.s.userAgent())
13728	var body io.Reader = nil
13729	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
13730	if err != nil {
13731		return nil, err
13732	}
13733	reqHeaders.Set("Content-Type", "application/json")
13734	c.urlParams_.Set("alt", alt)
13735	c.urlParams_.Set("prettyPrint", "false")
13736	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
13737	urls += "?" + c.urlParams_.Encode()
13738	req, err := http.NewRequest("POST", urls, body)
13739	if err != nil {
13740		return nil, err
13741	}
13742	req.Header = reqHeaders
13743	googleapi.Expand(req.URL, map[string]string{
13744		"parent": c.parent,
13745	})
13746	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13747}
13748
13749// Do executes the "apigee.organizations.developers.attributes" call.
13750// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
13751// non-nil. Any non-2xx status code is an error. Response headers are in
13752// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
13753// response was returned at all) in error.(*googleapi.Error).Header. Use
13754// googleapi.IsNotModified to check whether the returned error was
13755// because http.StatusNotModified was returned.
13756func (c *OrganizationsDevelopersAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
13757	gensupport.SetOptions(c.urlParams_, opts...)
13758	res, err := c.doRequest("json")
13759	if res != nil && res.StatusCode == http.StatusNotModified {
13760		if res.Body != nil {
13761			res.Body.Close()
13762		}
13763		return nil, &googleapi.Error{
13764			Code:   res.StatusCode,
13765			Header: res.Header,
13766		}
13767	}
13768	if err != nil {
13769		return nil, err
13770	}
13771	defer googleapi.CloseBody(res)
13772	if err := googleapi.CheckResponse(res); err != nil {
13773		return nil, err
13774	}
13775	ret := &GoogleCloudApigeeV1Attributes{
13776		ServerResponse: googleapi.ServerResponse{
13777			Header:         res.Header,
13778			HTTPStatusCode: res.StatusCode,
13779		},
13780	}
13781	target := &ret
13782	if err := gensupport.DecodeResponse(target, res); err != nil {
13783		return nil, err
13784	}
13785	return ret, nil
13786	// {
13787	//   "description": "Updates or creates developer attributes.This API replaces the current\nlist of attributes with the attributes specified in the request body.\nThis lets you update existing attributes, add new attributes, or delete\nexisting attributes by omitting them from the request body. the attribute\nlimit is 18. Core Persistence Services caching minimum: OAuth access\ntokens and Key Management Service (KMS) entities (Apps, Developers,\nAPI Products) are cached for 180 seconds.\nAny custom attributes associated with entities also get cached for at least\n180 seconds after entity is accessed during runtime. This also means the\nExpiresIn element on the OAuthV2 policy won't be able to expire an access\ntoken in less than 180 seconds.",
13788	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
13789	//   "httpMethod": "POST",
13790	//   "id": "apigee.organizations.developers.attributes",
13791	//   "parameterOrder": [
13792	//     "parent"
13793	//   ],
13794	//   "parameters": {
13795	//     "parent": {
13796	//       "description": "Required. The parent developer for which attributes are being updated.\nMust be of the form `organizations/{org}/developers/{developer}`",
13797	//       "location": "path",
13798	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
13799	//       "required": true,
13800	//       "type": "string"
13801	//     }
13802	//   },
13803	//   "path": "v1/{+parent}/attributes",
13804	//   "request": {
13805	//     "$ref": "GoogleCloudApigeeV1Attributes"
13806	//   },
13807	//   "response": {
13808	//     "$ref": "GoogleCloudApigeeV1Attributes"
13809	//   },
13810	//   "scopes": [
13811	//     "https://www.googleapis.com/auth/cloud-platform"
13812	//   ]
13813	// }
13814
13815}
13816
13817// method id "apigee.organizations.developers.create":
13818
13819type OrganizationsDevelopersCreateCall struct {
13820	s                            *Service
13821	parent                       string
13822	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
13823	urlParams_                   gensupport.URLParams
13824	ctx_                         context.Context
13825	header_                      http.Header
13826}
13827
13828// Create: Creates a profile for a developer in an organization. Once
13829// created, the
13830// developer can register an app and receive an API key. The developer
13831// is
13832// always created with a status of active. To set the status
13833// explicitly,
13834// use SetDeveloperStatus
13835func (r *OrganizationsDevelopersService) Create(parent string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersCreateCall {
13836	c := &OrganizationsDevelopersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13837	c.parent = parent
13838	c.googlecloudapigeev1developer = googlecloudapigeev1developer
13839	return c
13840}
13841
13842// Fields allows partial responses to be retrieved. See
13843// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13844// for more information.
13845func (c *OrganizationsDevelopersCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersCreateCall {
13846	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13847	return c
13848}
13849
13850// Context sets the context to be used in this call's Do method. Any
13851// pending HTTP request will be aborted if the provided context is
13852// canceled.
13853func (c *OrganizationsDevelopersCreateCall) Context(ctx context.Context) *OrganizationsDevelopersCreateCall {
13854	c.ctx_ = ctx
13855	return c
13856}
13857
13858// Header returns an http.Header that can be modified by the caller to
13859// add HTTP headers to the request.
13860func (c *OrganizationsDevelopersCreateCall) Header() http.Header {
13861	if c.header_ == nil {
13862		c.header_ = make(http.Header)
13863	}
13864	return c.header_
13865}
13866
13867func (c *OrganizationsDevelopersCreateCall) doRequest(alt string) (*http.Response, error) {
13868	reqHeaders := make(http.Header)
13869	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
13870	for k, v := range c.header_ {
13871		reqHeaders[k] = v
13872	}
13873	reqHeaders.Set("User-Agent", c.s.userAgent())
13874	var body io.Reader = nil
13875	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
13876	if err != nil {
13877		return nil, err
13878	}
13879	reqHeaders.Set("Content-Type", "application/json")
13880	c.urlParams_.Set("alt", alt)
13881	c.urlParams_.Set("prettyPrint", "false")
13882	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
13883	urls += "?" + c.urlParams_.Encode()
13884	req, err := http.NewRequest("POST", urls, body)
13885	if err != nil {
13886		return nil, err
13887	}
13888	req.Header = reqHeaders
13889	googleapi.Expand(req.URL, map[string]string{
13890		"parent": c.parent,
13891	})
13892	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13893}
13894
13895// Do executes the "apigee.organizations.developers.create" call.
13896// Exactly one of *GoogleCloudApigeeV1Developer or error will be
13897// non-nil. Any non-2xx status code is an error. Response headers are in
13898// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
13899// response was returned at all) in error.(*googleapi.Error).Header. Use
13900// googleapi.IsNotModified to check whether the returned error was
13901// because http.StatusNotModified was returned.
13902func (c *OrganizationsDevelopersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
13903	gensupport.SetOptions(c.urlParams_, opts...)
13904	res, err := c.doRequest("json")
13905	if res != nil && res.StatusCode == http.StatusNotModified {
13906		if res.Body != nil {
13907			res.Body.Close()
13908		}
13909		return nil, &googleapi.Error{
13910			Code:   res.StatusCode,
13911			Header: res.Header,
13912		}
13913	}
13914	if err != nil {
13915		return nil, err
13916	}
13917	defer googleapi.CloseBody(res)
13918	if err := googleapi.CheckResponse(res); err != nil {
13919		return nil, err
13920	}
13921	ret := &GoogleCloudApigeeV1Developer{
13922		ServerResponse: googleapi.ServerResponse{
13923			Header:         res.Header,
13924			HTTPStatusCode: res.StatusCode,
13925		},
13926	}
13927	target := &ret
13928	if err := gensupport.DecodeResponse(target, res); err != nil {
13929		return nil, err
13930	}
13931	return ret, nil
13932	// {
13933	//   "description": "Creates a profile for a developer in an organization. Once created, the\ndeveloper can register an app and receive an API key. The developer is\nalways created with a status of active. To set the status explicitly,\nuse SetDeveloperStatus",
13934	//   "flatPath": "v1/organizations/{organizationsId}/developers",
13935	//   "httpMethod": "POST",
13936	//   "id": "apigee.organizations.developers.create",
13937	//   "parameterOrder": [
13938	//     "parent"
13939	//   ],
13940	//   "parameters": {
13941	//     "parent": {
13942	//       "description": "Required. The parent organization name under which the Developer will\nbe created. Must be of the form `organizations/{org}`.",
13943	//       "location": "path",
13944	//       "pattern": "^organizations/[^/]+$",
13945	//       "required": true,
13946	//       "type": "string"
13947	//     }
13948	//   },
13949	//   "path": "v1/{+parent}/developers",
13950	//   "request": {
13951	//     "$ref": "GoogleCloudApigeeV1Developer"
13952	//   },
13953	//   "response": {
13954	//     "$ref": "GoogleCloudApigeeV1Developer"
13955	//   },
13956	//   "scopes": [
13957	//     "https://www.googleapis.com/auth/cloud-platform"
13958	//   ]
13959	// }
13960
13961}
13962
13963// method id "apigee.organizations.developers.delete":
13964
13965type OrganizationsDevelopersDeleteCall struct {
13966	s          *Service
13967	name       string
13968	urlParams_ gensupport.URLParams
13969	ctx_       context.Context
13970	header_    http.Header
13971}
13972
13973// Delete: Deletes a developer from an organization. All apps and API
13974// keys associated
13975// with the developer are also removed from the organization. All times
13976// in the
13977// response are UNIX times.
13978func (r *OrganizationsDevelopersService) Delete(name string) *OrganizationsDevelopersDeleteCall {
13979	c := &OrganizationsDevelopersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13980	c.name = name
13981	return c
13982}
13983
13984// Fields allows partial responses to be retrieved. See
13985// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13986// for more information.
13987func (c *OrganizationsDevelopersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersDeleteCall {
13988	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13989	return c
13990}
13991
13992// Context sets the context to be used in this call's Do method. Any
13993// pending HTTP request will be aborted if the provided context is
13994// canceled.
13995func (c *OrganizationsDevelopersDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersDeleteCall {
13996	c.ctx_ = ctx
13997	return c
13998}
13999
14000// Header returns an http.Header that can be modified by the caller to
14001// add HTTP headers to the request.
14002func (c *OrganizationsDevelopersDeleteCall) Header() http.Header {
14003	if c.header_ == nil {
14004		c.header_ = make(http.Header)
14005	}
14006	return c.header_
14007}
14008
14009func (c *OrganizationsDevelopersDeleteCall) doRequest(alt string) (*http.Response, error) {
14010	reqHeaders := make(http.Header)
14011	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14012	for k, v := range c.header_ {
14013		reqHeaders[k] = v
14014	}
14015	reqHeaders.Set("User-Agent", c.s.userAgent())
14016	var body io.Reader = nil
14017	c.urlParams_.Set("alt", alt)
14018	c.urlParams_.Set("prettyPrint", "false")
14019	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14020	urls += "?" + c.urlParams_.Encode()
14021	req, err := http.NewRequest("DELETE", urls, body)
14022	if err != nil {
14023		return nil, err
14024	}
14025	req.Header = reqHeaders
14026	googleapi.Expand(req.URL, map[string]string{
14027		"name": c.name,
14028	})
14029	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14030}
14031
14032// Do executes the "apigee.organizations.developers.delete" call.
14033// Exactly one of *GoogleCloudApigeeV1Developer or error will be
14034// non-nil. Any non-2xx status code is an error. Response headers are in
14035// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
14036// response was returned at all) in error.(*googleapi.Error).Header. Use
14037// googleapi.IsNotModified to check whether the returned error was
14038// because http.StatusNotModified was returned.
14039func (c *OrganizationsDevelopersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
14040	gensupport.SetOptions(c.urlParams_, opts...)
14041	res, err := c.doRequest("json")
14042	if res != nil && res.StatusCode == http.StatusNotModified {
14043		if res.Body != nil {
14044			res.Body.Close()
14045		}
14046		return nil, &googleapi.Error{
14047			Code:   res.StatusCode,
14048			Header: res.Header,
14049		}
14050	}
14051	if err != nil {
14052		return nil, err
14053	}
14054	defer googleapi.CloseBody(res)
14055	if err := googleapi.CheckResponse(res); err != nil {
14056		return nil, err
14057	}
14058	ret := &GoogleCloudApigeeV1Developer{
14059		ServerResponse: googleapi.ServerResponse{
14060			Header:         res.Header,
14061			HTTPStatusCode: res.StatusCode,
14062		},
14063	}
14064	target := &ret
14065	if err := gensupport.DecodeResponse(target, res); err != nil {
14066		return nil, err
14067	}
14068	return ret, nil
14069	// {
14070	//   "description": "Deletes a developer from an organization. All apps and API keys associated\nwith the developer are also removed from the organization. All times in the\nresponse are UNIX times.",
14071	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
14072	//   "httpMethod": "DELETE",
14073	//   "id": "apigee.organizations.developers.delete",
14074	//   "parameterOrder": [
14075	//     "name"
14076	//   ],
14077	//   "parameters": {
14078	//     "name": {
14079	//       "description": "Required. The name of the Developer to be deleted.\nMust be of the form `organizations/{org}/developers/{developer}`",
14080	//       "location": "path",
14081	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
14082	//       "required": true,
14083	//       "type": "string"
14084	//     }
14085	//   },
14086	//   "path": "v1/{+name}",
14087	//   "response": {
14088	//     "$ref": "GoogleCloudApigeeV1Developer"
14089	//   },
14090	//   "scopes": [
14091	//     "https://www.googleapis.com/auth/cloud-platform"
14092	//   ]
14093	// }
14094
14095}
14096
14097// method id "apigee.organizations.developers.get":
14098
14099type OrganizationsDevelopersGetCall struct {
14100	s            *Service
14101	name         string
14102	urlParams_   gensupport.URLParams
14103	ifNoneMatch_ string
14104	ctx_         context.Context
14105	header_      http.Header
14106}
14107
14108// Get: Returns the profile for a developer by email address or ID. All
14109// time values
14110// are UNIX time values. The profile includes the developer's email
14111// address,
14112// ID, name, and other information. Apigee recommends using the
14113// developer
14114// email in the API call. Developer ID is generated internally and is
14115// not
14116// guaranteed to stay the same over time. For example, Apigee could
14117// change
14118// the format or length of this variable.
14119func (r *OrganizationsDevelopersService) Get(name string) *OrganizationsDevelopersGetCall {
14120	c := &OrganizationsDevelopersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14121	c.name = name
14122	return c
14123}
14124
14125// Action sets the optional parameter "action": Status to set
14126// active/inactive
14127func (c *OrganizationsDevelopersGetCall) Action(action string) *OrganizationsDevelopersGetCall {
14128	c.urlParams_.Set("action", action)
14129	return c
14130}
14131
14132// Fields allows partial responses to be retrieved. See
14133// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14134// for more information.
14135func (c *OrganizationsDevelopersGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersGetCall {
14136	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14137	return c
14138}
14139
14140// IfNoneMatch sets the optional parameter which makes the operation
14141// fail if the object's ETag matches the given value. This is useful for
14142// getting updates only after the object has changed since the last
14143// request. Use googleapi.IsNotModified to check whether the response
14144// error from Do is the result of In-None-Match.
14145func (c *OrganizationsDevelopersGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersGetCall {
14146	c.ifNoneMatch_ = entityTag
14147	return c
14148}
14149
14150// Context sets the context to be used in this call's Do method. Any
14151// pending HTTP request will be aborted if the provided context is
14152// canceled.
14153func (c *OrganizationsDevelopersGetCall) Context(ctx context.Context) *OrganizationsDevelopersGetCall {
14154	c.ctx_ = ctx
14155	return c
14156}
14157
14158// Header returns an http.Header that can be modified by the caller to
14159// add HTTP headers to the request.
14160func (c *OrganizationsDevelopersGetCall) Header() http.Header {
14161	if c.header_ == nil {
14162		c.header_ = make(http.Header)
14163	}
14164	return c.header_
14165}
14166
14167func (c *OrganizationsDevelopersGetCall) doRequest(alt string) (*http.Response, error) {
14168	reqHeaders := make(http.Header)
14169	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14170	for k, v := range c.header_ {
14171		reqHeaders[k] = v
14172	}
14173	reqHeaders.Set("User-Agent", c.s.userAgent())
14174	if c.ifNoneMatch_ != "" {
14175		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14176	}
14177	var body io.Reader = nil
14178	c.urlParams_.Set("alt", alt)
14179	c.urlParams_.Set("prettyPrint", "false")
14180	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14181	urls += "?" + c.urlParams_.Encode()
14182	req, err := http.NewRequest("GET", urls, body)
14183	if err != nil {
14184		return nil, err
14185	}
14186	req.Header = reqHeaders
14187	googleapi.Expand(req.URL, map[string]string{
14188		"name": c.name,
14189	})
14190	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14191}
14192
14193// Do executes the "apigee.organizations.developers.get" call.
14194// Exactly one of *GoogleCloudApigeeV1Developer or error will be
14195// non-nil. Any non-2xx status code is an error. Response headers are in
14196// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
14197// response was returned at all) in error.(*googleapi.Error).Header. Use
14198// googleapi.IsNotModified to check whether the returned error was
14199// because http.StatusNotModified was returned.
14200func (c *OrganizationsDevelopersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
14201	gensupport.SetOptions(c.urlParams_, opts...)
14202	res, err := c.doRequest("json")
14203	if res != nil && res.StatusCode == http.StatusNotModified {
14204		if res.Body != nil {
14205			res.Body.Close()
14206		}
14207		return nil, &googleapi.Error{
14208			Code:   res.StatusCode,
14209			Header: res.Header,
14210		}
14211	}
14212	if err != nil {
14213		return nil, err
14214	}
14215	defer googleapi.CloseBody(res)
14216	if err := googleapi.CheckResponse(res); err != nil {
14217		return nil, err
14218	}
14219	ret := &GoogleCloudApigeeV1Developer{
14220		ServerResponse: googleapi.ServerResponse{
14221			Header:         res.Header,
14222			HTTPStatusCode: res.StatusCode,
14223		},
14224	}
14225	target := &ret
14226	if err := gensupport.DecodeResponse(target, res); err != nil {
14227		return nil, err
14228	}
14229	return ret, nil
14230	// {
14231	//   "description": "Returns the profile for a developer by email address or ID. All time values\nare UNIX time values. The profile includes the developer's email address,\nID, name, and other information. Apigee recommends using the developer\nemail in the API call. Developer ID is generated internally and is not\nguaranteed to stay the same over time. For example, Apigee could change\nthe format or length of this variable.",
14232	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
14233	//   "httpMethod": "GET",
14234	//   "id": "apigee.organizations.developers.get",
14235	//   "parameterOrder": [
14236	//     "name"
14237	//   ],
14238	//   "parameters": {
14239	//     "action": {
14240	//       "description": "Status to set active/inactive",
14241	//       "location": "query",
14242	//       "type": "string"
14243	//     },
14244	//     "name": {
14245	//       "description": "Required. The name of the Developer to be get.\nMust be of the form `organizations/{org}/developers/{developer}`",
14246	//       "location": "path",
14247	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
14248	//       "required": true,
14249	//       "type": "string"
14250	//     }
14251	//   },
14252	//   "path": "v1/{+name}",
14253	//   "response": {
14254	//     "$ref": "GoogleCloudApigeeV1Developer"
14255	//   },
14256	//   "scopes": [
14257	//     "https://www.googleapis.com/auth/cloud-platform"
14258	//   ]
14259	// }
14260
14261}
14262
14263// method id "apigee.organizations.developers.list":
14264
14265type OrganizationsDevelopersListCall struct {
14266	s            *Service
14267	parent       string
14268	urlParams_   gensupport.URLParams
14269	ifNoneMatch_ string
14270	ctx_         context.Context
14271	header_      http.Header
14272}
14273
14274// List: Lists all developers in an organization by email address. This
14275// call does
14276// not list any company developers who are a part of the
14277// designated
14278// organization.
14279func (r *OrganizationsDevelopersService) List(parent string) *OrganizationsDevelopersListCall {
14280	c := &OrganizationsDevelopersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14281	c.parent = parent
14282	return c
14283}
14284
14285// Count sets the optional parameter "count": Enter the number of
14286// developers you want returned in the API call. The
14287// limit is 1000.
14288func (c *OrganizationsDevelopersListCall) Count(count int64) *OrganizationsDevelopersListCall {
14289	c.urlParams_.Set("count", fmt.Sprint(count))
14290	return c
14291}
14292
14293// Expand sets the optional parameter "expand": For Verbose response
14294func (c *OrganizationsDevelopersListCall) Expand(expand bool) *OrganizationsDevelopersListCall {
14295	c.urlParams_.Set("expand", fmt.Sprint(expand))
14296	return c
14297}
14298
14299// Ids sets the optional parameter "ids": Filtery by id, accepts list of
14300// ids with comma seperation.
14301func (c *OrganizationsDevelopersListCall) Ids(ids string) *OrganizationsDevelopersListCall {
14302	c.urlParams_.Set("ids", ids)
14303	return c
14304}
14305
14306// IncludeCompany sets the optional parameter "includeCompany": Filter
14307// to incude company details in the response.
14308func (c *OrganizationsDevelopersListCall) IncludeCompany(includeCompany bool) *OrganizationsDevelopersListCall {
14309	c.urlParams_.Set("includeCompany", fmt.Sprint(includeCompany))
14310	return c
14311}
14312
14313// StartKey sets the optional parameter "startKey": Lets you return a
14314// list of developers starting with a specific developer
14315// in the list.
14316func (c *OrganizationsDevelopersListCall) StartKey(startKey string) *OrganizationsDevelopersListCall {
14317	c.urlParams_.Set("startKey", startKey)
14318	return c
14319}
14320
14321// Fields allows partial responses to be retrieved. See
14322// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14323// for more information.
14324func (c *OrganizationsDevelopersListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersListCall {
14325	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14326	return c
14327}
14328
14329// IfNoneMatch sets the optional parameter which makes the operation
14330// fail if the object's ETag matches the given value. This is useful for
14331// getting updates only after the object has changed since the last
14332// request. Use googleapi.IsNotModified to check whether the response
14333// error from Do is the result of In-None-Match.
14334func (c *OrganizationsDevelopersListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersListCall {
14335	c.ifNoneMatch_ = entityTag
14336	return c
14337}
14338
14339// Context sets the context to be used in this call's Do method. Any
14340// pending HTTP request will be aborted if the provided context is
14341// canceled.
14342func (c *OrganizationsDevelopersListCall) Context(ctx context.Context) *OrganizationsDevelopersListCall {
14343	c.ctx_ = ctx
14344	return c
14345}
14346
14347// Header returns an http.Header that can be modified by the caller to
14348// add HTTP headers to the request.
14349func (c *OrganizationsDevelopersListCall) Header() http.Header {
14350	if c.header_ == nil {
14351		c.header_ = make(http.Header)
14352	}
14353	return c.header_
14354}
14355
14356func (c *OrganizationsDevelopersListCall) doRequest(alt string) (*http.Response, error) {
14357	reqHeaders := make(http.Header)
14358	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14359	for k, v := range c.header_ {
14360		reqHeaders[k] = v
14361	}
14362	reqHeaders.Set("User-Agent", c.s.userAgent())
14363	if c.ifNoneMatch_ != "" {
14364		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14365	}
14366	var body io.Reader = nil
14367	c.urlParams_.Set("alt", alt)
14368	c.urlParams_.Set("prettyPrint", "false")
14369	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/developers")
14370	urls += "?" + c.urlParams_.Encode()
14371	req, err := http.NewRequest("GET", urls, body)
14372	if err != nil {
14373		return nil, err
14374	}
14375	req.Header = reqHeaders
14376	googleapi.Expand(req.URL, map[string]string{
14377		"parent": c.parent,
14378	})
14379	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14380}
14381
14382// Do executes the "apigee.organizations.developers.list" call.
14383// Exactly one of *GoogleCloudApigeeV1ListOfDevelopersResponse or error
14384// will be non-nil. Any non-2xx status code is an error. Response
14385// headers are in either
14386// *GoogleCloudApigeeV1ListOfDevelopersResponse.ServerResponse.Header or
14387// (if a response was returned at all) in
14388// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14389// whether the returned error was because http.StatusNotModified was
14390// returned.
14391func (c *OrganizationsDevelopersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListOfDevelopersResponse, error) {
14392	gensupport.SetOptions(c.urlParams_, opts...)
14393	res, err := c.doRequest("json")
14394	if res != nil && res.StatusCode == http.StatusNotModified {
14395		if res.Body != nil {
14396			res.Body.Close()
14397		}
14398		return nil, &googleapi.Error{
14399			Code:   res.StatusCode,
14400			Header: res.Header,
14401		}
14402	}
14403	if err != nil {
14404		return nil, err
14405	}
14406	defer googleapi.CloseBody(res)
14407	if err := googleapi.CheckResponse(res); err != nil {
14408		return nil, err
14409	}
14410	ret := &GoogleCloudApigeeV1ListOfDevelopersResponse{
14411		ServerResponse: googleapi.ServerResponse{
14412			Header:         res.Header,
14413			HTTPStatusCode: res.StatusCode,
14414		},
14415	}
14416	target := &ret
14417	if err := gensupport.DecodeResponse(target, res); err != nil {
14418		return nil, err
14419	}
14420	return ret, nil
14421	// {
14422	//   "description": "Lists all developers in an organization by email address. This call does\nnot list any company developers who are a part of the designated\norganization.",
14423	//   "flatPath": "v1/organizations/{organizationsId}/developers",
14424	//   "httpMethod": "GET",
14425	//   "id": "apigee.organizations.developers.list",
14426	//   "parameterOrder": [
14427	//     "parent"
14428	//   ],
14429	//   "parameters": {
14430	//     "count": {
14431	//       "description": "Enter the number of developers you want returned in the API call. The\nlimit is 1000.",
14432	//       "format": "int64",
14433	//       "location": "query",
14434	//       "type": "string"
14435	//     },
14436	//     "expand": {
14437	//       "description": "For Verbose response",
14438	//       "location": "query",
14439	//       "type": "boolean"
14440	//     },
14441	//     "ids": {
14442	//       "description": "Optional. Filtery by id, accepts list of ids with comma seperation.",
14443	//       "location": "query",
14444	//       "type": "string"
14445	//     },
14446	//     "includeCompany": {
14447	//       "description": "Optional. Filter to incude company details in the response.",
14448	//       "location": "query",
14449	//       "type": "boolean"
14450	//     },
14451	//     "parent": {
14452	//       "description": "Required. The parent organization name.\nMust be of the form `organizations/{org}`.",
14453	//       "location": "path",
14454	//       "pattern": "^organizations/[^/]+$",
14455	//       "required": true,
14456	//       "type": "string"
14457	//     },
14458	//     "startKey": {
14459	//       "description": "Lets you return a list of developers starting with a specific developer\nin the list.",
14460	//       "location": "query",
14461	//       "type": "string"
14462	//     }
14463	//   },
14464	//   "path": "v1/{+parent}/developers",
14465	//   "response": {
14466	//     "$ref": "GoogleCloudApigeeV1ListOfDevelopersResponse"
14467	//   },
14468	//   "scopes": [
14469	//     "https://www.googleapis.com/auth/cloud-platform"
14470	//   ]
14471	// }
14472
14473}
14474
14475// method id "apigee.organizations.developers.setDeveloperStatus":
14476
14477type OrganizationsDevelopersSetDeveloperStatusCall struct {
14478	s          *Service
14479	name       string
14480	urlParams_ gensupport.URLParams
14481	ctx_       context.Context
14482	header_    http.Header
14483}
14484
14485// SetDeveloperStatus: Sets a developer's status to active or inactive
14486// for a specific organization
14487// Run this API for each organization where you want to change the
14488// developer's
14489// status. By default, the status of a developer is set to active.
14490// Admins with
14491// proper permissions (such as Organization Administrator) can change
14492// a
14493// developer's status using this API call. If you set a developer's
14494// status to
14495// inactive, the API keys assigned to the developer's apps are no longer
14496// valid
14497// even though keys continue to show a status of "Approved" (in
14498// strikethrough
14499// text in the management UI). Inactive developers, however, can still
14500// log
14501// into the developer portal and create apps. The new keys that get
14502// created
14503// just won't work.Apigee recommends using the developer email in the
14504// API
14505// call. Developer ID is generated internally and is not guaranteed to
14506// stay
14507// the same over time. For example, Apigee could change the format or
14508// length
14509// of this variable. The HTTP status code for success is: 204 No
14510// Content.
14511func (r *OrganizationsDevelopersService) SetDeveloperStatus(name string) *OrganizationsDevelopersSetDeveloperStatusCall {
14512	c := &OrganizationsDevelopersSetDeveloperStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14513	c.name = name
14514	return c
14515}
14516
14517// Action sets the optional parameter "action": Status to set
14518// active/inactive
14519func (c *OrganizationsDevelopersSetDeveloperStatusCall) Action(action string) *OrganizationsDevelopersSetDeveloperStatusCall {
14520	c.urlParams_.Set("action", action)
14521	return c
14522}
14523
14524// Fields allows partial responses to be retrieved. See
14525// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14526// for more information.
14527func (c *OrganizationsDevelopersSetDeveloperStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersSetDeveloperStatusCall {
14528	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14529	return c
14530}
14531
14532// Context sets the context to be used in this call's Do method. Any
14533// pending HTTP request will be aborted if the provided context is
14534// canceled.
14535func (c *OrganizationsDevelopersSetDeveloperStatusCall) Context(ctx context.Context) *OrganizationsDevelopersSetDeveloperStatusCall {
14536	c.ctx_ = ctx
14537	return c
14538}
14539
14540// Header returns an http.Header that can be modified by the caller to
14541// add HTTP headers to the request.
14542func (c *OrganizationsDevelopersSetDeveloperStatusCall) Header() http.Header {
14543	if c.header_ == nil {
14544		c.header_ = make(http.Header)
14545	}
14546	return c.header_
14547}
14548
14549func (c *OrganizationsDevelopersSetDeveloperStatusCall) doRequest(alt string) (*http.Response, error) {
14550	reqHeaders := make(http.Header)
14551	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14552	for k, v := range c.header_ {
14553		reqHeaders[k] = v
14554	}
14555	reqHeaders.Set("User-Agent", c.s.userAgent())
14556	var body io.Reader = nil
14557	c.urlParams_.Set("alt", alt)
14558	c.urlParams_.Set("prettyPrint", "false")
14559	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14560	urls += "?" + c.urlParams_.Encode()
14561	req, err := http.NewRequest("POST", urls, body)
14562	if err != nil {
14563		return nil, err
14564	}
14565	req.Header = reqHeaders
14566	googleapi.Expand(req.URL, map[string]string{
14567		"name": c.name,
14568	})
14569	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14570}
14571
14572// Do executes the "apigee.organizations.developers.setDeveloperStatus" call.
14573// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
14574// non-2xx status code is an error. Response headers are in either
14575// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
14576// returned at all) in error.(*googleapi.Error).Header. Use
14577// googleapi.IsNotModified to check whether the returned error was
14578// because http.StatusNotModified was returned.
14579func (c *OrganizationsDevelopersSetDeveloperStatusCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
14580	gensupport.SetOptions(c.urlParams_, opts...)
14581	res, err := c.doRequest("json")
14582	if res != nil && res.StatusCode == http.StatusNotModified {
14583		if res.Body != nil {
14584			res.Body.Close()
14585		}
14586		return nil, &googleapi.Error{
14587			Code:   res.StatusCode,
14588			Header: res.Header,
14589		}
14590	}
14591	if err != nil {
14592		return nil, err
14593	}
14594	defer googleapi.CloseBody(res)
14595	if err := googleapi.CheckResponse(res); err != nil {
14596		return nil, err
14597	}
14598	ret := &GoogleProtobufEmpty{
14599		ServerResponse: googleapi.ServerResponse{
14600			Header:         res.Header,
14601			HTTPStatusCode: res.StatusCode,
14602		},
14603	}
14604	target := &ret
14605	if err := gensupport.DecodeResponse(target, res); err != nil {
14606		return nil, err
14607	}
14608	return ret, nil
14609	// {
14610	//   "description": "Sets a developer's status to active or inactive for a specific organization\nRun this API for each organization where you want to change the developer's\nstatus. By default, the status of a developer is set to active. Admins with\nproper permissions (such as Organization Administrator) can change a\ndeveloper's status using this API call. If you set a developer's status to\ninactive, the API keys assigned to the developer's apps are no longer valid\neven though keys continue to show a status of \"Approved\" (in strikethrough\ntext in the management UI). Inactive developers, however, can still log\ninto the developer portal and create apps. The new keys that get created\njust won't work.Apigee recommends using the developer email in the API\ncall. Developer ID is generated internally and is not guaranteed to stay\nthe same over time. For example, Apigee could change the format or length\nof this variable. The HTTP status code for success is: 204 No Content.",
14611	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
14612	//   "httpMethod": "POST",
14613	//   "id": "apigee.organizations.developers.setDeveloperStatus",
14614	//   "parameterOrder": [
14615	//     "name"
14616	//   ],
14617	//   "parameters": {
14618	//     "action": {
14619	//       "description": "Status to set active/inactive",
14620	//       "location": "query",
14621	//       "type": "string"
14622	//     },
14623	//     "name": {
14624	//       "description": "Required. The name of the Developer to be deleted.\nMust be of the form `organizations/{org}/developers/{developer}`",
14625	//       "location": "path",
14626	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
14627	//       "required": true,
14628	//       "type": "string"
14629	//     }
14630	//   },
14631	//   "path": "v1/{+name}",
14632	//   "response": {
14633	//     "$ref": "GoogleProtobufEmpty"
14634	//   },
14635	//   "scopes": [
14636	//     "https://www.googleapis.com/auth/cloud-platform"
14637	//   ]
14638	// }
14639
14640}
14641
14642// method id "apigee.organizations.developers.update":
14643
14644type OrganizationsDevelopersUpdateCall struct {
14645	s                            *Service
14646	name                         string
14647	googlecloudapigeev1developer *GoogleCloudApigeeV1Developer
14648	urlParams_                   gensupport.URLParams
14649	ctx_                         context.Context
14650	header_                      http.Header
14651}
14652
14653// Update: Update an existing developer profile. To add new values or
14654// update existing
14655// values, submit the new or updated portion of the developer profile
14656// along
14657// with the rest of the developer profile, even if no values are
14658// changing.
14659// To delete attributes from a developer profile, submit the entire
14660// profile
14661// without the attributes that you want to delete. Apigee recommends
14662// using
14663// the developer email in the API call. Developer ID is generated
14664// internally
14665// and is not guaranteed to stay the same over time. For example, Apigee
14666// could
14667// change the format or length of this variable. the custom attribute
14668// limit
14669// is 18. Core Persistence Services caching minimum: OAuth access tokens
14670// and
14671// Key Management Service (KMS) entities (Apps, Developers, API
14672// Products) are
14673// cached for 180 seconds (current default). Any custom attributes
14674// associated
14675// with entities also get cached for at least 180 seconds after entity
14676// is
14677// accessed during runtime. This also means the ExpiresIn element on
14678// the
14679// OAuthV2 policy won't be able to expire an access token in less than
14680// 180
14681// seconds.
14682func (r *OrganizationsDevelopersService) Update(name string, googlecloudapigeev1developer *GoogleCloudApigeeV1Developer) *OrganizationsDevelopersUpdateCall {
14683	c := &OrganizationsDevelopersUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14684	c.name = name
14685	c.googlecloudapigeev1developer = googlecloudapigeev1developer
14686	return c
14687}
14688
14689// Fields allows partial responses to be retrieved. See
14690// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14691// for more information.
14692func (c *OrganizationsDevelopersUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersUpdateCall {
14693	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14694	return c
14695}
14696
14697// Context sets the context to be used in this call's Do method. Any
14698// pending HTTP request will be aborted if the provided context is
14699// canceled.
14700func (c *OrganizationsDevelopersUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersUpdateCall {
14701	c.ctx_ = ctx
14702	return c
14703}
14704
14705// Header returns an http.Header that can be modified by the caller to
14706// add HTTP headers to the request.
14707func (c *OrganizationsDevelopersUpdateCall) Header() http.Header {
14708	if c.header_ == nil {
14709		c.header_ = make(http.Header)
14710	}
14711	return c.header_
14712}
14713
14714func (c *OrganizationsDevelopersUpdateCall) doRequest(alt string) (*http.Response, error) {
14715	reqHeaders := make(http.Header)
14716	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14717	for k, v := range c.header_ {
14718		reqHeaders[k] = v
14719	}
14720	reqHeaders.Set("User-Agent", c.s.userAgent())
14721	var body io.Reader = nil
14722	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developer)
14723	if err != nil {
14724		return nil, err
14725	}
14726	reqHeaders.Set("Content-Type", "application/json")
14727	c.urlParams_.Set("alt", alt)
14728	c.urlParams_.Set("prettyPrint", "false")
14729	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14730	urls += "?" + c.urlParams_.Encode()
14731	req, err := http.NewRequest("PUT", urls, body)
14732	if err != nil {
14733		return nil, err
14734	}
14735	req.Header = reqHeaders
14736	googleapi.Expand(req.URL, map[string]string{
14737		"name": c.name,
14738	})
14739	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14740}
14741
14742// Do executes the "apigee.organizations.developers.update" call.
14743// Exactly one of *GoogleCloudApigeeV1Developer or error will be
14744// non-nil. Any non-2xx status code is an error. Response headers are in
14745// either *GoogleCloudApigeeV1Developer.ServerResponse.Header or (if a
14746// response was returned at all) in error.(*googleapi.Error).Header. Use
14747// googleapi.IsNotModified to check whether the returned error was
14748// because http.StatusNotModified was returned.
14749func (c *OrganizationsDevelopersUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Developer, error) {
14750	gensupport.SetOptions(c.urlParams_, opts...)
14751	res, err := c.doRequest("json")
14752	if res != nil && res.StatusCode == http.StatusNotModified {
14753		if res.Body != nil {
14754			res.Body.Close()
14755		}
14756		return nil, &googleapi.Error{
14757			Code:   res.StatusCode,
14758			Header: res.Header,
14759		}
14760	}
14761	if err != nil {
14762		return nil, err
14763	}
14764	defer googleapi.CloseBody(res)
14765	if err := googleapi.CheckResponse(res); err != nil {
14766		return nil, err
14767	}
14768	ret := &GoogleCloudApigeeV1Developer{
14769		ServerResponse: googleapi.ServerResponse{
14770			Header:         res.Header,
14771			HTTPStatusCode: res.StatusCode,
14772		},
14773	}
14774	target := &ret
14775	if err := gensupport.DecodeResponse(target, res); err != nil {
14776		return nil, err
14777	}
14778	return ret, nil
14779	// {
14780	//   "description": "Update an existing developer profile. To add new values or update existing\nvalues, submit the new or updated portion of the developer profile along\nwith the rest of the developer profile, even if no values are changing.\nTo delete attributes from a developer profile, submit the entire profile\nwithout the attributes that you want to delete. Apigee recommends using\nthe developer email in the API call. Developer ID is generated internally\nand is not guaranteed to stay the same over time. For example, Apigee could\nchange the format or length of this variable. the custom attribute limit\nis 18. Core Persistence Services caching minimum: OAuth access tokens and\nKey Management Service (KMS) entities (Apps, Developers, API Products) are\ncached for 180 seconds (current default). Any custom attributes associated\nwith entities also get cached for at least 180 seconds after entity is\naccessed during runtime. This also means the ExpiresIn element on the\nOAuthV2 policy won't be able to expire an access token in less than 180\nseconds.",
14781	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}",
14782	//   "httpMethod": "PUT",
14783	//   "id": "apigee.organizations.developers.update",
14784	//   "parameterOrder": [
14785	//     "name"
14786	//   ],
14787	//   "parameters": {
14788	//     "name": {
14789	//       "description": "Required. The name of the Developer to be updated.\nMust be of the form `organizations/{org}/developers/{developer}`",
14790	//       "location": "path",
14791	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
14792	//       "required": true,
14793	//       "type": "string"
14794	//     }
14795	//   },
14796	//   "path": "v1/{+name}",
14797	//   "request": {
14798	//     "$ref": "GoogleCloudApigeeV1Developer"
14799	//   },
14800	//   "response": {
14801	//     "$ref": "GoogleCloudApigeeV1Developer"
14802	//   },
14803	//   "scopes": [
14804	//     "https://www.googleapis.com/auth/cloud-platform"
14805	//   ]
14806	// }
14807
14808}
14809
14810// method id "apigee.organizations.developers.apps.attributes":
14811
14812type OrganizationsDevelopersAppsAttributesCall struct {
14813	s                             *Service
14814	name                          string
14815	googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes
14816	urlParams_                    gensupport.URLParams
14817	ctx_                          context.Context
14818	header_                       http.Header
14819}
14820
14821// Attributes: Updates or creates app attributes. This API replaces the
14822// current list of
14823// attributes with the attributes specified in the request body. This
14824// lets you
14825// update existing attributes, add new attributes, or delete
14826// existing
14827// attributes by omitting them from the request body.
14828func (r *OrganizationsDevelopersAppsService) Attributes(name string, googlecloudapigeev1attributes *GoogleCloudApigeeV1Attributes) *OrganizationsDevelopersAppsAttributesCall {
14829	c := &OrganizationsDevelopersAppsAttributesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14830	c.name = name
14831	c.googlecloudapigeev1attributes = googlecloudapigeev1attributes
14832	return c
14833}
14834
14835// Fields allows partial responses to be retrieved. See
14836// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14837// for more information.
14838func (c *OrganizationsDevelopersAppsAttributesCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesCall {
14839	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14840	return c
14841}
14842
14843// Context sets the context to be used in this call's Do method. Any
14844// pending HTTP request will be aborted if the provided context is
14845// canceled.
14846func (c *OrganizationsDevelopersAppsAttributesCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesCall {
14847	c.ctx_ = ctx
14848	return c
14849}
14850
14851// Header returns an http.Header that can be modified by the caller to
14852// add HTTP headers to the request.
14853func (c *OrganizationsDevelopersAppsAttributesCall) Header() http.Header {
14854	if c.header_ == nil {
14855		c.header_ = make(http.Header)
14856	}
14857	return c.header_
14858}
14859
14860func (c *OrganizationsDevelopersAppsAttributesCall) doRequest(alt string) (*http.Response, error) {
14861	reqHeaders := make(http.Header)
14862	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
14863	for k, v := range c.header_ {
14864		reqHeaders[k] = v
14865	}
14866	reqHeaders.Set("User-Agent", c.s.userAgent())
14867	var body io.Reader = nil
14868	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attributes)
14869	if err != nil {
14870		return nil, err
14871	}
14872	reqHeaders.Set("Content-Type", "application/json")
14873	c.urlParams_.Set("alt", alt)
14874	c.urlParams_.Set("prettyPrint", "false")
14875	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/attributes")
14876	urls += "?" + c.urlParams_.Encode()
14877	req, err := http.NewRequest("POST", urls, body)
14878	if err != nil {
14879		return nil, err
14880	}
14881	req.Header = reqHeaders
14882	googleapi.Expand(req.URL, map[string]string{
14883		"name": c.name,
14884	})
14885	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14886}
14887
14888// Do executes the "apigee.organizations.developers.apps.attributes" call.
14889// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
14890// non-nil. Any non-2xx status code is an error. Response headers are in
14891// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
14892// response was returned at all) in error.(*googleapi.Error).Header. Use
14893// googleapi.IsNotModified to check whether the returned error was
14894// because http.StatusNotModified was returned.
14895func (c *OrganizationsDevelopersAppsAttributesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
14896	gensupport.SetOptions(c.urlParams_, opts...)
14897	res, err := c.doRequest("json")
14898	if res != nil && res.StatusCode == http.StatusNotModified {
14899		if res.Body != nil {
14900			res.Body.Close()
14901		}
14902		return nil, &googleapi.Error{
14903			Code:   res.StatusCode,
14904			Header: res.Header,
14905		}
14906	}
14907	if err != nil {
14908		return nil, err
14909	}
14910	defer googleapi.CloseBody(res)
14911	if err := googleapi.CheckResponse(res); err != nil {
14912		return nil, err
14913	}
14914	ret := &GoogleCloudApigeeV1Attributes{
14915		ServerResponse: googleapi.ServerResponse{
14916			Header:         res.Header,
14917			HTTPStatusCode: res.StatusCode,
14918		},
14919	}
14920	target := &ret
14921	if err := gensupport.DecodeResponse(target, res); err != nil {
14922		return nil, err
14923	}
14924	return ret, nil
14925	// {
14926	//   "description": "Updates or creates app attributes. This API replaces the current list of\nattributes with the attributes specified in the request body. This lets you\nupdate existing attributes, add new attributes, or delete existing\nattributes by omitting them from the request body.",
14927	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
14928	//   "httpMethod": "POST",
14929	//   "id": "apigee.organizations.developers.apps.attributes",
14930	//   "parameterOrder": [
14931	//     "name"
14932	//   ],
14933	//   "parameters": {
14934	//     "name": {
14935	//       "description": "Required. Developer App Attribute name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
14936	//       "location": "path",
14937	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
14938	//       "required": true,
14939	//       "type": "string"
14940	//     }
14941	//   },
14942	//   "path": "v1/{+name}/attributes",
14943	//   "request": {
14944	//     "$ref": "GoogleCloudApigeeV1Attributes"
14945	//   },
14946	//   "response": {
14947	//     "$ref": "GoogleCloudApigeeV1Attributes"
14948	//   },
14949	//   "scopes": [
14950	//     "https://www.googleapis.com/auth/cloud-platform"
14951	//   ]
14952	// }
14953
14954}
14955
14956// method id "apigee.organizations.developers.apps.create":
14957
14958type OrganizationsDevelopersAppsCreateCall struct {
14959	s                               *Service
14960	parent                          string
14961	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
14962	urlParams_                      gensupport.URLParams
14963	ctx_                            context.Context
14964	header_                         http.Header
14965}
14966
14967// Create: Creates an app associated with a developer, associates the
14968// app with an API
14969// product, and auto-generates an API key for the app to use in calls to
14970// API
14971// proxies inside the API product. The name is the unique ID of the app
14972// that
14973// you can use in management API calls. The DisplayName (set with
14974// an
14975// attribute) is what appears in the management UI. If you don't provide
14976// a
14977// DisplayName, the name is used. The keyExpiresIn property sets
14978// the
14979// expiration on the API key. If you don't set this, or set the value to
14980// -1,
14981// they API key never expires.
14982func (r *OrganizationsDevelopersAppsService) Create(parent string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsCreateCall {
14983	c := &OrganizationsDevelopersAppsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14984	c.parent = parent
14985	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
14986	return c
14987}
14988
14989// Fields allows partial responses to be retrieved. See
14990// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14991// for more information.
14992func (c *OrganizationsDevelopersAppsCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsCreateCall {
14993	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14994	return c
14995}
14996
14997// Context sets the context to be used in this call's Do method. Any
14998// pending HTTP request will be aborted if the provided context is
14999// canceled.
15000func (c *OrganizationsDevelopersAppsCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsCreateCall {
15001	c.ctx_ = ctx
15002	return c
15003}
15004
15005// Header returns an http.Header that can be modified by the caller to
15006// add HTTP headers to the request.
15007func (c *OrganizationsDevelopersAppsCreateCall) Header() http.Header {
15008	if c.header_ == nil {
15009		c.header_ = make(http.Header)
15010	}
15011	return c.header_
15012}
15013
15014func (c *OrganizationsDevelopersAppsCreateCall) doRequest(alt string) (*http.Response, error) {
15015	reqHeaders := make(http.Header)
15016	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15017	for k, v := range c.header_ {
15018		reqHeaders[k] = v
15019	}
15020	reqHeaders.Set("User-Agent", c.s.userAgent())
15021	var body io.Reader = nil
15022	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
15023	if err != nil {
15024		return nil, err
15025	}
15026	reqHeaders.Set("Content-Type", "application/json")
15027	c.urlParams_.Set("alt", alt)
15028	c.urlParams_.Set("prettyPrint", "false")
15029	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
15030	urls += "?" + c.urlParams_.Encode()
15031	req, err := http.NewRequest("POST", urls, body)
15032	if err != nil {
15033		return nil, err
15034	}
15035	req.Header = reqHeaders
15036	googleapi.Expand(req.URL, map[string]string{
15037		"parent": c.parent,
15038	})
15039	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15040}
15041
15042// Do executes the "apigee.organizations.developers.apps.create" call.
15043// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
15044// non-nil. Any non-2xx status code is an error. Response headers are in
15045// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
15046// a response was returned at all) in error.(*googleapi.Error).Header.
15047// Use googleapi.IsNotModified to check whether the returned error was
15048// because http.StatusNotModified was returned.
15049func (c *OrganizationsDevelopersAppsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
15050	gensupport.SetOptions(c.urlParams_, opts...)
15051	res, err := c.doRequest("json")
15052	if res != nil && res.StatusCode == http.StatusNotModified {
15053		if res.Body != nil {
15054			res.Body.Close()
15055		}
15056		return nil, &googleapi.Error{
15057			Code:   res.StatusCode,
15058			Header: res.Header,
15059		}
15060	}
15061	if err != nil {
15062		return nil, err
15063	}
15064	defer googleapi.CloseBody(res)
15065	if err := googleapi.CheckResponse(res); err != nil {
15066		return nil, err
15067	}
15068	ret := &GoogleCloudApigeeV1DeveloperApp{
15069		ServerResponse: googleapi.ServerResponse{
15070			Header:         res.Header,
15071			HTTPStatusCode: res.StatusCode,
15072		},
15073	}
15074	target := &ret
15075	if err := gensupport.DecodeResponse(target, res); err != nil {
15076		return nil, err
15077	}
15078	return ret, nil
15079	// {
15080	//   "description": "Creates an app associated with a developer, associates the app with an API\nproduct, and auto-generates an API key for the app to use in calls to API\nproxies inside the API product. The name is the unique ID of the app that\nyou can use in management API calls. The DisplayName (set with an\nattribute) is what appears in the management UI. If you don't provide a\nDisplayName, the name is used. The keyExpiresIn property sets the\nexpiration on the API key. If you don't set this, or set the value to -1,\nthey API key never expires.",
15081	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
15082	//   "httpMethod": "POST",
15083	//   "id": "apigee.organizations.developers.apps.create",
15084	//   "parameterOrder": [
15085	//     "parent"
15086	//   ],
15087	//   "parameters": {
15088	//     "parent": {
15089	//       "description": "Required. The parent organization name under which the Developer App will\nbe created. Must be of the form:\n   `organizations/{organization_id}/developers/{developer_id}`",
15090	//       "location": "path",
15091	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
15092	//       "required": true,
15093	//       "type": "string"
15094	//     }
15095	//   },
15096	//   "path": "v1/{+parent}/apps",
15097	//   "request": {
15098	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15099	//   },
15100	//   "response": {
15101	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15102	//   },
15103	//   "scopes": [
15104	//     "https://www.googleapis.com/auth/cloud-platform"
15105	//   ]
15106	// }
15107
15108}
15109
15110// method id "apigee.organizations.developers.apps.delete":
15111
15112type OrganizationsDevelopersAppsDeleteCall struct {
15113	s          *Service
15114	name       string
15115	urlParams_ gensupport.URLParams
15116	ctx_       context.Context
15117	header_    http.Header
15118}
15119
15120// Delete: Deletes a developer app. This API returns the developer app
15121// that was
15122// deleted.
15123func (r *OrganizationsDevelopersAppsService) Delete(name string) *OrganizationsDevelopersAppsDeleteCall {
15124	c := &OrganizationsDevelopersAppsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15125	c.name = name
15126	return c
15127}
15128
15129// Fields allows partial responses to be retrieved. See
15130// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15131// for more information.
15132func (c *OrganizationsDevelopersAppsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsDeleteCall {
15133	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15134	return c
15135}
15136
15137// Context sets the context to be used in this call's Do method. Any
15138// pending HTTP request will be aborted if the provided context is
15139// canceled.
15140func (c *OrganizationsDevelopersAppsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsDeleteCall {
15141	c.ctx_ = ctx
15142	return c
15143}
15144
15145// Header returns an http.Header that can be modified by the caller to
15146// add HTTP headers to the request.
15147func (c *OrganizationsDevelopersAppsDeleteCall) Header() http.Header {
15148	if c.header_ == nil {
15149		c.header_ = make(http.Header)
15150	}
15151	return c.header_
15152}
15153
15154func (c *OrganizationsDevelopersAppsDeleteCall) doRequest(alt string) (*http.Response, error) {
15155	reqHeaders := make(http.Header)
15156	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15157	for k, v := range c.header_ {
15158		reqHeaders[k] = v
15159	}
15160	reqHeaders.Set("User-Agent", c.s.userAgent())
15161	var body io.Reader = nil
15162	c.urlParams_.Set("alt", alt)
15163	c.urlParams_.Set("prettyPrint", "false")
15164	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15165	urls += "?" + c.urlParams_.Encode()
15166	req, err := http.NewRequest("DELETE", urls, body)
15167	if err != nil {
15168		return nil, err
15169	}
15170	req.Header = reqHeaders
15171	googleapi.Expand(req.URL, map[string]string{
15172		"name": c.name,
15173	})
15174	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15175}
15176
15177// Do executes the "apigee.organizations.developers.apps.delete" call.
15178// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
15179// non-nil. Any non-2xx status code is an error. Response headers are in
15180// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
15181// a response was returned at all) in error.(*googleapi.Error).Header.
15182// Use googleapi.IsNotModified to check whether the returned error was
15183// because http.StatusNotModified was returned.
15184func (c *OrganizationsDevelopersAppsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
15185	gensupport.SetOptions(c.urlParams_, opts...)
15186	res, err := c.doRequest("json")
15187	if res != nil && res.StatusCode == http.StatusNotModified {
15188		if res.Body != nil {
15189			res.Body.Close()
15190		}
15191		return nil, &googleapi.Error{
15192			Code:   res.StatusCode,
15193			Header: res.Header,
15194		}
15195	}
15196	if err != nil {
15197		return nil, err
15198	}
15199	defer googleapi.CloseBody(res)
15200	if err := googleapi.CheckResponse(res); err != nil {
15201		return nil, err
15202	}
15203	ret := &GoogleCloudApigeeV1DeveloperApp{
15204		ServerResponse: googleapi.ServerResponse{
15205			Header:         res.Header,
15206			HTTPStatusCode: res.StatusCode,
15207		},
15208	}
15209	target := &ret
15210	if err := gensupport.DecodeResponse(target, res); err != nil {
15211		return nil, err
15212	}
15213	return ret, nil
15214	// {
15215	//   "description": "Deletes a developer app. This API returns the developer app that was\ndeleted.",
15216	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
15217	//   "httpMethod": "DELETE",
15218	//   "id": "apigee.organizations.developers.apps.delete",
15219	//   "parameterOrder": [
15220	//     "name"
15221	//   ],
15222	//   "parameters": {
15223	//     "name": {
15224	//       "description": "Required. Developer App name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
15225	//       "location": "path",
15226	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
15227	//       "required": true,
15228	//       "type": "string"
15229	//     }
15230	//   },
15231	//   "path": "v1/{+name}",
15232	//   "response": {
15233	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15234	//   },
15235	//   "scopes": [
15236	//     "https://www.googleapis.com/auth/cloud-platform"
15237	//   ]
15238	// }
15239
15240}
15241
15242// method id "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus":
15243
15244type OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall struct {
15245	s                               *Service
15246	name                            string
15247	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
15248	urlParams_                      gensupport.URLParams
15249	ctx_                            context.Context
15250	header_                         http.Header
15251}
15252
15253// GenerateKeyPairOrUpdateDeveloperAppStatus: (2) Create new developer
15254// KeyPairs
15255// Generates a new consumer key and consumer secret for the named
15256// developer
15257// app. Rather than replacing an existing key, this API call generates a
15258// new
15259// key. For example, if you're using API key rotation, you can generate
15260// new
15261// keys whose expiration overlaps keys that will be out of rotation when
15262// they
15263// expire. You might also generate a new key/secret if the security of
15264// the
15265// original key/secret is compromised. After using this API, multiple
15266// key
15267// pairs will be associated with a single app. Each key pair has
15268// an
15269// independent status (revoked or approved) and an independent expiry
15270// time.
15271// Any non-expired, approved key can be used in an API call. The
15272// keyExpiresIn
15273// value is in milliseconds. A value of -1 means the key/secret pair
15274// never
15275// expire.
15276func (r *OrganizationsDevelopersAppsService) GenerateKeyPairOrUpdateDeveloperAppStatus(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
15277	c := &OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15278	c.name = name
15279	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
15280	return c
15281}
15282
15283// Action sets the optional parameter "action": Set the action to
15284// approve or revoke.
15285func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Action(action string) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
15286	c.urlParams_.Set("action", action)
15287	return c
15288}
15289
15290// Fields allows partial responses to be retrieved. See
15291// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15292// for more information.
15293func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
15294	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15295	return c
15296}
15297
15298// Context sets the context to be used in this call's Do method. Any
15299// pending HTTP request will be aborted if the provided context is
15300// canceled.
15301func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall {
15302	c.ctx_ = ctx
15303	return c
15304}
15305
15306// Header returns an http.Header that can be modified by the caller to
15307// add HTTP headers to the request.
15308func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Header() http.Header {
15309	if c.header_ == nil {
15310		c.header_ = make(http.Header)
15311	}
15312	return c.header_
15313}
15314
15315func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) doRequest(alt string) (*http.Response, error) {
15316	reqHeaders := make(http.Header)
15317	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15318	for k, v := range c.header_ {
15319		reqHeaders[k] = v
15320	}
15321	reqHeaders.Set("User-Agent", c.s.userAgent())
15322	var body io.Reader = nil
15323	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
15324	if err != nil {
15325		return nil, err
15326	}
15327	reqHeaders.Set("Content-Type", "application/json")
15328	c.urlParams_.Set("alt", alt)
15329	c.urlParams_.Set("prettyPrint", "false")
15330	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15331	urls += "?" + c.urlParams_.Encode()
15332	req, err := http.NewRequest("POST", urls, body)
15333	if err != nil {
15334		return nil, err
15335	}
15336	req.Header = reqHeaders
15337	googleapi.Expand(req.URL, map[string]string{
15338		"name": c.name,
15339	})
15340	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15341}
15342
15343// Do executes the "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus" call.
15344// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
15345// non-nil. Any non-2xx status code is an error. Response headers are in
15346// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
15347// a response was returned at all) in error.(*googleapi.Error).Header.
15348// Use googleapi.IsNotModified to check whether the returned error was
15349// because http.StatusNotModified was returned.
15350func (c *OrganizationsDevelopersAppsGenerateKeyPairOrUpdateDeveloperAppStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
15351	gensupport.SetOptions(c.urlParams_, opts...)
15352	res, err := c.doRequest("json")
15353	if res != nil && res.StatusCode == http.StatusNotModified {
15354		if res.Body != nil {
15355			res.Body.Close()
15356		}
15357		return nil, &googleapi.Error{
15358			Code:   res.StatusCode,
15359			Header: res.Header,
15360		}
15361	}
15362	if err != nil {
15363		return nil, err
15364	}
15365	defer googleapi.CloseBody(res)
15366	if err := googleapi.CheckResponse(res); err != nil {
15367		return nil, err
15368	}
15369	ret := &GoogleCloudApigeeV1DeveloperApp{
15370		ServerResponse: googleapi.ServerResponse{
15371			Header:         res.Header,
15372			HTTPStatusCode: res.StatusCode,
15373		},
15374	}
15375	target := &ret
15376	if err := gensupport.DecodeResponse(target, res); err != nil {
15377		return nil, err
15378	}
15379	return ret, nil
15380	// {
15381	//   "description": "(2) Create new developer KeyPairs\nGenerates a new consumer key and consumer secret for the named developer\napp. Rather than replacing an existing key, this API call generates a new\nkey. For example, if you're using API key rotation, you can generate new\nkeys whose expiration overlaps keys that will be out of rotation when they\nexpire. You might also generate a new key/secret if the security of the\noriginal key/secret is compromised. After using this API, multiple key\npairs will be associated with a single app. Each key pair has an\nindependent status (revoked or approved) and an independent expiry time.\nAny non-expired, approved key can be used in an API call. The keyExpiresIn\nvalue is in milliseconds. A value of -1 means the key/secret pair never\nexpire.",
15382	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
15383	//   "httpMethod": "POST",
15384	//   "id": "apigee.organizations.developers.apps.generateKeyPairOrUpdateDeveloperAppStatus",
15385	//   "parameterOrder": [
15386	//     "name"
15387	//   ],
15388	//   "parameters": {
15389	//     "action": {
15390	//       "description": "Set the action to approve or revoke.",
15391	//       "location": "query",
15392	//       "type": "string"
15393	//     },
15394	//     "name": {
15395	//       "description": "Required. Developer App name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
15396	//       "location": "path",
15397	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
15398	//       "required": true,
15399	//       "type": "string"
15400	//     }
15401	//   },
15402	//   "path": "v1/{+name}",
15403	//   "request": {
15404	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15405	//   },
15406	//   "response": {
15407	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15408	//   },
15409	//   "scopes": [
15410	//     "https://www.googleapis.com/auth/cloud-platform"
15411	//   ]
15412	// }
15413
15414}
15415
15416// method id "apigee.organizations.developers.apps.get":
15417
15418type OrganizationsDevelopersAppsGetCall struct {
15419	s            *Service
15420	name         string
15421	urlParams_   gensupport.URLParams
15422	ifNoneMatch_ string
15423	ctx_         context.Context
15424	header_      http.Header
15425}
15426
15427// Get: Get the profile of a specific developer app. All times in the
15428// response are
15429// UNIX times. Note that the response contains a top-level attribute
15430// named
15431// accessType that is no longer used by Apigee.
15432func (r *OrganizationsDevelopersAppsService) Get(name string) *OrganizationsDevelopersAppsGetCall {
15433	c := &OrganizationsDevelopersAppsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15434	c.name = name
15435	return c
15436}
15437
15438// Entity sets the optional parameter "entity": Entity.
15439func (c *OrganizationsDevelopersAppsGetCall) Entity(entity string) *OrganizationsDevelopersAppsGetCall {
15440	c.urlParams_.Set("entity", entity)
15441	return c
15442}
15443
15444// Query sets the optional parameter "query": Query.
15445func (c *OrganizationsDevelopersAppsGetCall) Query(query string) *OrganizationsDevelopersAppsGetCall {
15446	c.urlParams_.Set("query", query)
15447	return c
15448}
15449
15450// Fields allows partial responses to be retrieved. See
15451// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15452// for more information.
15453func (c *OrganizationsDevelopersAppsGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsGetCall {
15454	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15455	return c
15456}
15457
15458// IfNoneMatch sets the optional parameter which makes the operation
15459// fail if the object's ETag matches the given value. This is useful for
15460// getting updates only after the object has changed since the last
15461// request. Use googleapi.IsNotModified to check whether the response
15462// error from Do is the result of In-None-Match.
15463func (c *OrganizationsDevelopersAppsGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsGetCall {
15464	c.ifNoneMatch_ = entityTag
15465	return c
15466}
15467
15468// Context sets the context to be used in this call's Do method. Any
15469// pending HTTP request will be aborted if the provided context is
15470// canceled.
15471func (c *OrganizationsDevelopersAppsGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsGetCall {
15472	c.ctx_ = ctx
15473	return c
15474}
15475
15476// Header returns an http.Header that can be modified by the caller to
15477// add HTTP headers to the request.
15478func (c *OrganizationsDevelopersAppsGetCall) Header() http.Header {
15479	if c.header_ == nil {
15480		c.header_ = make(http.Header)
15481	}
15482	return c.header_
15483}
15484
15485func (c *OrganizationsDevelopersAppsGetCall) doRequest(alt string) (*http.Response, error) {
15486	reqHeaders := make(http.Header)
15487	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15488	for k, v := range c.header_ {
15489		reqHeaders[k] = v
15490	}
15491	reqHeaders.Set("User-Agent", c.s.userAgent())
15492	if c.ifNoneMatch_ != "" {
15493		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15494	}
15495	var body io.Reader = nil
15496	c.urlParams_.Set("alt", alt)
15497	c.urlParams_.Set("prettyPrint", "false")
15498	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15499	urls += "?" + c.urlParams_.Encode()
15500	req, err := http.NewRequest("GET", urls, body)
15501	if err != nil {
15502		return nil, err
15503	}
15504	req.Header = reqHeaders
15505	googleapi.Expand(req.URL, map[string]string{
15506		"name": c.name,
15507	})
15508	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15509}
15510
15511// Do executes the "apigee.organizations.developers.apps.get" call.
15512// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
15513// non-nil. Any non-2xx status code is an error. Response headers are in
15514// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
15515// a response was returned at all) in error.(*googleapi.Error).Header.
15516// Use googleapi.IsNotModified to check whether the returned error was
15517// because http.StatusNotModified was returned.
15518func (c *OrganizationsDevelopersAppsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
15519	gensupport.SetOptions(c.urlParams_, opts...)
15520	res, err := c.doRequest("json")
15521	if res != nil && res.StatusCode == http.StatusNotModified {
15522		if res.Body != nil {
15523			res.Body.Close()
15524		}
15525		return nil, &googleapi.Error{
15526			Code:   res.StatusCode,
15527			Header: res.Header,
15528		}
15529	}
15530	if err != nil {
15531		return nil, err
15532	}
15533	defer googleapi.CloseBody(res)
15534	if err := googleapi.CheckResponse(res); err != nil {
15535		return nil, err
15536	}
15537	ret := &GoogleCloudApigeeV1DeveloperApp{
15538		ServerResponse: googleapi.ServerResponse{
15539			Header:         res.Header,
15540			HTTPStatusCode: res.StatusCode,
15541		},
15542	}
15543	target := &ret
15544	if err := gensupport.DecodeResponse(target, res); err != nil {
15545		return nil, err
15546	}
15547	return ret, nil
15548	// {
15549	//   "description": "Get the profile of a specific developer app. All times in the response are\nUNIX times. Note that the response contains a top-level attribute named\naccessType that is no longer used by Apigee.",
15550	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
15551	//   "httpMethod": "GET",
15552	//   "id": "apigee.organizations.developers.apps.get",
15553	//   "parameterOrder": [
15554	//     "name"
15555	//   ],
15556	//   "parameters": {
15557	//     "entity": {
15558	//       "description": "Entity.",
15559	//       "location": "query",
15560	//       "type": "string"
15561	//     },
15562	//     "name": {
15563	//       "description": "Required. Developer App name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
15564	//       "location": "path",
15565	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
15566	//       "required": true,
15567	//       "type": "string"
15568	//     },
15569	//     "query": {
15570	//       "description": "Query.",
15571	//       "location": "query",
15572	//       "type": "string"
15573	//     }
15574	//   },
15575	//   "path": "v1/{+name}",
15576	//   "response": {
15577	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15578	//   },
15579	//   "scopes": [
15580	//     "https://www.googleapis.com/auth/cloud-platform"
15581	//   ]
15582	// }
15583
15584}
15585
15586// method id "apigee.organizations.developers.apps.list":
15587
15588type OrganizationsDevelopersAppsListCall struct {
15589	s            *Service
15590	parent       string
15591	urlParams_   gensupport.URLParams
15592	ifNoneMatch_ string
15593	ctx_         context.Context
15594	header_      http.Header
15595}
15596
15597// List: Lists all apps created by a developer in an organization, and
15598// optionally
15599// provides an expanded view of the apps. All time values in the
15600// response are
15601// UNIX times. You can specify either the developer's email address or
15602// Edge
15603// ID.
15604func (r *OrganizationsDevelopersAppsService) List(parent string) *OrganizationsDevelopersAppsListCall {
15605	c := &OrganizationsDevelopersAppsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15606	c.parent = parent
15607	return c
15608}
15609
15610// Count sets the optional parameter "count": Limits the list to the
15611// number you specify.
15612func (c *OrganizationsDevelopersAppsListCall) Count(count int64) *OrganizationsDevelopersAppsListCall {
15613	c.urlParams_.Set("count", fmt.Sprint(count))
15614	return c
15615}
15616
15617// Expand sets the optional parameter "expand": Set to true to expand
15618// the results. This query parameter does not
15619// work if you use the count or startKey query parameters.
15620func (c *OrganizationsDevelopersAppsListCall) Expand(expand bool) *OrganizationsDevelopersAppsListCall {
15621	c.urlParams_.Set("expand", fmt.Sprint(expand))
15622	return c
15623}
15624
15625// ShallowExpand sets the optional parameter "shallowExpand": Set to
15626// true to expand the results in shallow.
15627func (c *OrganizationsDevelopersAppsListCall) ShallowExpand(shallowExpand bool) *OrganizationsDevelopersAppsListCall {
15628	c.urlParams_.Set("shallowExpand", fmt.Sprint(shallowExpand))
15629	return c
15630}
15631
15632// StartKey sets the optional parameter "startKey": To filter the keys
15633// that are returned, enter the name of a company app that
15634// the list will start with.
15635func (c *OrganizationsDevelopersAppsListCall) StartKey(startKey string) *OrganizationsDevelopersAppsListCall {
15636	c.urlParams_.Set("startKey", startKey)
15637	return c
15638}
15639
15640// Fields allows partial responses to be retrieved. See
15641// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15642// for more information.
15643func (c *OrganizationsDevelopersAppsListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsListCall {
15644	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15645	return c
15646}
15647
15648// IfNoneMatch sets the optional parameter which makes the operation
15649// fail if the object's ETag matches the given value. This is useful for
15650// getting updates only after the object has changed since the last
15651// request. Use googleapi.IsNotModified to check whether the response
15652// error from Do is the result of In-None-Match.
15653func (c *OrganizationsDevelopersAppsListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsListCall {
15654	c.ifNoneMatch_ = entityTag
15655	return c
15656}
15657
15658// Context sets the context to be used in this call's Do method. Any
15659// pending HTTP request will be aborted if the provided context is
15660// canceled.
15661func (c *OrganizationsDevelopersAppsListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsListCall {
15662	c.ctx_ = ctx
15663	return c
15664}
15665
15666// Header returns an http.Header that can be modified by the caller to
15667// add HTTP headers to the request.
15668func (c *OrganizationsDevelopersAppsListCall) Header() http.Header {
15669	if c.header_ == nil {
15670		c.header_ = make(http.Header)
15671	}
15672	return c.header_
15673}
15674
15675func (c *OrganizationsDevelopersAppsListCall) doRequest(alt string) (*http.Response, error) {
15676	reqHeaders := make(http.Header)
15677	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15678	for k, v := range c.header_ {
15679		reqHeaders[k] = v
15680	}
15681	reqHeaders.Set("User-Agent", c.s.userAgent())
15682	if c.ifNoneMatch_ != "" {
15683		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15684	}
15685	var body io.Reader = nil
15686	c.urlParams_.Set("alt", alt)
15687	c.urlParams_.Set("prettyPrint", "false")
15688	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/apps")
15689	urls += "?" + c.urlParams_.Encode()
15690	req, err := http.NewRequest("GET", urls, body)
15691	if err != nil {
15692		return nil, err
15693	}
15694	req.Header = reqHeaders
15695	googleapi.Expand(req.URL, map[string]string{
15696		"parent": c.parent,
15697	})
15698	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15699}
15700
15701// Do executes the "apigee.organizations.developers.apps.list" call.
15702// Exactly one of *GoogleCloudApigeeV1ListDeveloperAppsResponse or error
15703// will be non-nil. Any non-2xx status code is an error. Response
15704// headers are in either
15705// *GoogleCloudApigeeV1ListDeveloperAppsResponse.ServerResponse.Header
15706// or (if a response was returned at all) in
15707// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15708// whether the returned error was because http.StatusNotModified was
15709// returned.
15710func (c *OrganizationsDevelopersAppsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeveloperAppsResponse, error) {
15711	gensupport.SetOptions(c.urlParams_, opts...)
15712	res, err := c.doRequest("json")
15713	if res != nil && res.StatusCode == http.StatusNotModified {
15714		if res.Body != nil {
15715			res.Body.Close()
15716		}
15717		return nil, &googleapi.Error{
15718			Code:   res.StatusCode,
15719			Header: res.Header,
15720		}
15721	}
15722	if err != nil {
15723		return nil, err
15724	}
15725	defer googleapi.CloseBody(res)
15726	if err := googleapi.CheckResponse(res); err != nil {
15727		return nil, err
15728	}
15729	ret := &GoogleCloudApigeeV1ListDeveloperAppsResponse{
15730		ServerResponse: googleapi.ServerResponse{
15731			Header:         res.Header,
15732			HTTPStatusCode: res.StatusCode,
15733		},
15734	}
15735	target := &ret
15736	if err := gensupport.DecodeResponse(target, res); err != nil {
15737		return nil, err
15738	}
15739	return ret, nil
15740	// {
15741	//   "description": "Lists all apps created by a developer in an organization, and optionally\nprovides an expanded view of the apps. All time values in the response are\nUNIX times. You can specify either the developer's email address or Edge\nID.",
15742	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps",
15743	//   "httpMethod": "GET",
15744	//   "id": "apigee.organizations.developers.apps.list",
15745	//   "parameterOrder": [
15746	//     "parent"
15747	//   ],
15748	//   "parameters": {
15749	//     "count": {
15750	//       "description": "Limits the list to the number you specify.",
15751	//       "format": "int64",
15752	//       "location": "query",
15753	//       "type": "string"
15754	//     },
15755	//     "expand": {
15756	//       "description": "Optional. Set to true to expand the results. This query parameter does not\nwork if you use the count or startKey query parameters.",
15757	//       "location": "query",
15758	//       "type": "boolean"
15759	//     },
15760	//     "parent": {
15761	//       "description": "Required. The parent organization name. Must be of the form:\n  `organizations/{organization_id}/developers/{developer_id}`",
15762	//       "location": "path",
15763	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
15764	//       "required": true,
15765	//       "type": "string"
15766	//     },
15767	//     "shallowExpand": {
15768	//       "description": "Optional. Set to true to expand the results in shallow.",
15769	//       "location": "query",
15770	//       "type": "boolean"
15771	//     },
15772	//     "startKey": {
15773	//       "description": "To filter the keys that are returned, enter the name of a company app that\nthe list will start with.",
15774	//       "location": "query",
15775	//       "type": "string"
15776	//     }
15777	//   },
15778	//   "path": "v1/{+parent}/apps",
15779	//   "response": {
15780	//     "$ref": "GoogleCloudApigeeV1ListDeveloperAppsResponse"
15781	//   },
15782	//   "scopes": [
15783	//     "https://www.googleapis.com/auth/cloud-platform"
15784	//   ]
15785	// }
15786
15787}
15788
15789// method id "apigee.organizations.developers.apps.update":
15790
15791type OrganizationsDevelopersAppsUpdateCall struct {
15792	s                               *Service
15793	name                            string
15794	googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp
15795	urlParams_                      gensupport.URLParams
15796	ctx_                            context.Context
15797	header_                         http.Header
15798}
15799
15800// Update: Updates a developer app. You can also add an app to an API
15801// product with
15802// this call, which automatically generates an API key for the app to
15803// use when
15804// calling APIs in the product. (If you want to use an existing API key
15805// for
15806// another API product as well, see Add API Product to Key.) Be sure
15807// to
15808// include all existing attributes in the request body. Note that you
15809// cannot
15810// update the scopes associated with the app by using this API. Instead,
15811// use
15812// "Update the Scope of an App". The app name is the primary key used by
15813// Edge
15814// to identify the app. Therefore, you cannot change the app name
15815// after
15816// creating it.
15817func (r *OrganizationsDevelopersAppsService) Update(name string, googlecloudapigeev1developerapp *GoogleCloudApigeeV1DeveloperApp) *OrganizationsDevelopersAppsUpdateCall {
15818	c := &OrganizationsDevelopersAppsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15819	c.name = name
15820	c.googlecloudapigeev1developerapp = googlecloudapigeev1developerapp
15821	return c
15822}
15823
15824// Fields allows partial responses to be retrieved. See
15825// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15826// for more information.
15827func (c *OrganizationsDevelopersAppsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsUpdateCall {
15828	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15829	return c
15830}
15831
15832// Context sets the context to be used in this call's Do method. Any
15833// pending HTTP request will be aborted if the provided context is
15834// canceled.
15835func (c *OrganizationsDevelopersAppsUpdateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsUpdateCall {
15836	c.ctx_ = ctx
15837	return c
15838}
15839
15840// Header returns an http.Header that can be modified by the caller to
15841// add HTTP headers to the request.
15842func (c *OrganizationsDevelopersAppsUpdateCall) Header() http.Header {
15843	if c.header_ == nil {
15844		c.header_ = make(http.Header)
15845	}
15846	return c.header_
15847}
15848
15849func (c *OrganizationsDevelopersAppsUpdateCall) doRequest(alt string) (*http.Response, error) {
15850	reqHeaders := make(http.Header)
15851	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15852	for k, v := range c.header_ {
15853		reqHeaders[k] = v
15854	}
15855	reqHeaders.Set("User-Agent", c.s.userAgent())
15856	var body io.Reader = nil
15857	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerapp)
15858	if err != nil {
15859		return nil, err
15860	}
15861	reqHeaders.Set("Content-Type", "application/json")
15862	c.urlParams_.Set("alt", alt)
15863	c.urlParams_.Set("prettyPrint", "false")
15864	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15865	urls += "?" + c.urlParams_.Encode()
15866	req, err := http.NewRequest("PUT", urls, body)
15867	if err != nil {
15868		return nil, err
15869	}
15870	req.Header = reqHeaders
15871	googleapi.Expand(req.URL, map[string]string{
15872		"name": c.name,
15873	})
15874	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15875}
15876
15877// Do executes the "apigee.organizations.developers.apps.update" call.
15878// Exactly one of *GoogleCloudApigeeV1DeveloperApp or error will be
15879// non-nil. Any non-2xx status code is an error. Response headers are in
15880// either *GoogleCloudApigeeV1DeveloperApp.ServerResponse.Header or (if
15881// a response was returned at all) in error.(*googleapi.Error).Header.
15882// Use googleapi.IsNotModified to check whether the returned error was
15883// because http.StatusNotModified was returned.
15884func (c *OrganizationsDevelopersAppsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperApp, error) {
15885	gensupport.SetOptions(c.urlParams_, opts...)
15886	res, err := c.doRequest("json")
15887	if res != nil && res.StatusCode == http.StatusNotModified {
15888		if res.Body != nil {
15889			res.Body.Close()
15890		}
15891		return nil, &googleapi.Error{
15892			Code:   res.StatusCode,
15893			Header: res.Header,
15894		}
15895	}
15896	if err != nil {
15897		return nil, err
15898	}
15899	defer googleapi.CloseBody(res)
15900	if err := googleapi.CheckResponse(res); err != nil {
15901		return nil, err
15902	}
15903	ret := &GoogleCloudApigeeV1DeveloperApp{
15904		ServerResponse: googleapi.ServerResponse{
15905			Header:         res.Header,
15906			HTTPStatusCode: res.StatusCode,
15907		},
15908	}
15909	target := &ret
15910	if err := gensupport.DecodeResponse(target, res); err != nil {
15911		return nil, err
15912	}
15913	return ret, nil
15914	// {
15915	//   "description": "Updates a developer app. You can also add an app to an API product with\nthis call, which automatically generates an API key for the app to use when\ncalling APIs in the product. (If you want to use an existing API key for\nanother API product as well, see Add API Product to Key.) Be sure to\ninclude all existing attributes in the request body. Note that you cannot\nupdate the scopes associated with the app by using this API. Instead, use\n\"Update the Scope of an App\". The app name is the primary key used by Edge\nto identify the app. Therefore, you cannot change the app name after\ncreating it.",
15916	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}",
15917	//   "httpMethod": "PUT",
15918	//   "id": "apigee.organizations.developers.apps.update",
15919	//   "parameterOrder": [
15920	//     "name"
15921	//   ],
15922	//   "parameters": {
15923	//     "name": {
15924	//       "description": "Required. Developer App name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
15925	//       "location": "path",
15926	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
15927	//       "required": true,
15928	//       "type": "string"
15929	//     }
15930	//   },
15931	//   "path": "v1/{+name}",
15932	//   "request": {
15933	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15934	//   },
15935	//   "response": {
15936	//     "$ref": "GoogleCloudApigeeV1DeveloperApp"
15937	//   },
15938	//   "scopes": [
15939	//     "https://www.googleapis.com/auth/cloud-platform"
15940	//   ]
15941	// }
15942
15943}
15944
15945// method id "apigee.organizations.developers.apps.attributes.delete":
15946
15947type OrganizationsDevelopersAppsAttributesDeleteCall struct {
15948	s          *Service
15949	name       string
15950	urlParams_ gensupport.URLParams
15951	ctx_       context.Context
15952	header_    http.Header
15953}
15954
15955// Delete: Deletes an app attribute.
15956func (r *OrganizationsDevelopersAppsAttributesService) Delete(name string) *OrganizationsDevelopersAppsAttributesDeleteCall {
15957	c := &OrganizationsDevelopersAppsAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15958	c.name = name
15959	return c
15960}
15961
15962// Fields allows partial responses to be retrieved. See
15963// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15964// for more information.
15965func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesDeleteCall {
15966	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15967	return c
15968}
15969
15970// Context sets the context to be used in this call's Do method. Any
15971// pending HTTP request will be aborted if the provided context is
15972// canceled.
15973func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesDeleteCall {
15974	c.ctx_ = ctx
15975	return c
15976}
15977
15978// Header returns an http.Header that can be modified by the caller to
15979// add HTTP headers to the request.
15980func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Header() http.Header {
15981	if c.header_ == nil {
15982		c.header_ = make(http.Header)
15983	}
15984	return c.header_
15985}
15986
15987func (c *OrganizationsDevelopersAppsAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
15988	reqHeaders := make(http.Header)
15989	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
15990	for k, v := range c.header_ {
15991		reqHeaders[k] = v
15992	}
15993	reqHeaders.Set("User-Agent", c.s.userAgent())
15994	var body io.Reader = nil
15995	c.urlParams_.Set("alt", alt)
15996	c.urlParams_.Set("prettyPrint", "false")
15997	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15998	urls += "?" + c.urlParams_.Encode()
15999	req, err := http.NewRequest("DELETE", urls, body)
16000	if err != nil {
16001		return nil, err
16002	}
16003	req.Header = reqHeaders
16004	googleapi.Expand(req.URL, map[string]string{
16005		"name": c.name,
16006	})
16007	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16008}
16009
16010// Do executes the "apigee.organizations.developers.apps.attributes.delete" call.
16011// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
16012// non-nil. Any non-2xx status code is an error. Response headers are in
16013// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
16014// response was returned at all) in error.(*googleapi.Error).Header. Use
16015// googleapi.IsNotModified to check whether the returned error was
16016// because http.StatusNotModified was returned.
16017func (c *OrganizationsDevelopersAppsAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
16018	gensupport.SetOptions(c.urlParams_, opts...)
16019	res, err := c.doRequest("json")
16020	if res != nil && res.StatusCode == http.StatusNotModified {
16021		if res.Body != nil {
16022			res.Body.Close()
16023		}
16024		return nil, &googleapi.Error{
16025			Code:   res.StatusCode,
16026			Header: res.Header,
16027		}
16028	}
16029	if err != nil {
16030		return nil, err
16031	}
16032	defer googleapi.CloseBody(res)
16033	if err := googleapi.CheckResponse(res); err != nil {
16034		return nil, err
16035	}
16036	ret := &GoogleCloudApigeeV1Attribute{
16037		ServerResponse: googleapi.ServerResponse{
16038			Header:         res.Header,
16039			HTTPStatusCode: res.StatusCode,
16040		},
16041	}
16042	target := &ret
16043	if err := gensupport.DecodeResponse(target, res); err != nil {
16044		return nil, err
16045	}
16046	return ret, nil
16047	// {
16048	//   "description": "Deletes an app attribute.",
16049	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
16050	//   "httpMethod": "DELETE",
16051	//   "id": "apigee.organizations.developers.apps.attributes.delete",
16052	//   "parameterOrder": [
16053	//     "name"
16054	//   ],
16055	//   "parameters": {
16056	//     "name": {
16057	//       "description": "Required. Developer App Attribute name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}/attributes/{attribute_name}`",
16058	//       "location": "path",
16059	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
16060	//       "required": true,
16061	//       "type": "string"
16062	//     }
16063	//   },
16064	//   "path": "v1/{+name}",
16065	//   "response": {
16066	//     "$ref": "GoogleCloudApigeeV1Attribute"
16067	//   },
16068	//   "scopes": [
16069	//     "https://www.googleapis.com/auth/cloud-platform"
16070	//   ]
16071	// }
16072
16073}
16074
16075// method id "apigee.organizations.developers.apps.attributes.get":
16076
16077type OrganizationsDevelopersAppsAttributesGetCall struct {
16078	s            *Service
16079	name         string
16080	urlParams_   gensupport.URLParams
16081	ifNoneMatch_ string
16082	ctx_         context.Context
16083	header_      http.Header
16084}
16085
16086// Get: Returns the value of an app attribute.
16087func (r *OrganizationsDevelopersAppsAttributesService) Get(name string) *OrganizationsDevelopersAppsAttributesGetCall {
16088	c := &OrganizationsDevelopersAppsAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16089	c.name = name
16090	return c
16091}
16092
16093// Fields allows partial responses to be retrieved. See
16094// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16095// for more information.
16096func (c *OrganizationsDevelopersAppsAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesGetCall {
16097	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16098	return c
16099}
16100
16101// IfNoneMatch sets the optional parameter which makes the operation
16102// fail if the object's ETag matches the given value. This is useful for
16103// getting updates only after the object has changed since the last
16104// request. Use googleapi.IsNotModified to check whether the response
16105// error from Do is the result of In-None-Match.
16106func (c *OrganizationsDevelopersAppsAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesGetCall {
16107	c.ifNoneMatch_ = entityTag
16108	return c
16109}
16110
16111// Context sets the context to be used in this call's Do method. Any
16112// pending HTTP request will be aborted if the provided context is
16113// canceled.
16114func (c *OrganizationsDevelopersAppsAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesGetCall {
16115	c.ctx_ = ctx
16116	return c
16117}
16118
16119// Header returns an http.Header that can be modified by the caller to
16120// add HTTP headers to the request.
16121func (c *OrganizationsDevelopersAppsAttributesGetCall) Header() http.Header {
16122	if c.header_ == nil {
16123		c.header_ = make(http.Header)
16124	}
16125	return c.header_
16126}
16127
16128func (c *OrganizationsDevelopersAppsAttributesGetCall) doRequest(alt string) (*http.Response, error) {
16129	reqHeaders := make(http.Header)
16130	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16131	for k, v := range c.header_ {
16132		reqHeaders[k] = v
16133	}
16134	reqHeaders.Set("User-Agent", c.s.userAgent())
16135	if c.ifNoneMatch_ != "" {
16136		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16137	}
16138	var body io.Reader = nil
16139	c.urlParams_.Set("alt", alt)
16140	c.urlParams_.Set("prettyPrint", "false")
16141	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16142	urls += "?" + c.urlParams_.Encode()
16143	req, err := http.NewRequest("GET", urls, body)
16144	if err != nil {
16145		return nil, err
16146	}
16147	req.Header = reqHeaders
16148	googleapi.Expand(req.URL, map[string]string{
16149		"name": c.name,
16150	})
16151	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16152}
16153
16154// Do executes the "apigee.organizations.developers.apps.attributes.get" call.
16155// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
16156// non-nil. Any non-2xx status code is an error. Response headers are in
16157// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
16158// response was returned at all) in error.(*googleapi.Error).Header. Use
16159// googleapi.IsNotModified to check whether the returned error was
16160// because http.StatusNotModified was returned.
16161func (c *OrganizationsDevelopersAppsAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
16162	gensupport.SetOptions(c.urlParams_, opts...)
16163	res, err := c.doRequest("json")
16164	if res != nil && res.StatusCode == http.StatusNotModified {
16165		if res.Body != nil {
16166			res.Body.Close()
16167		}
16168		return nil, &googleapi.Error{
16169			Code:   res.StatusCode,
16170			Header: res.Header,
16171		}
16172	}
16173	if err != nil {
16174		return nil, err
16175	}
16176	defer googleapi.CloseBody(res)
16177	if err := googleapi.CheckResponse(res); err != nil {
16178		return nil, err
16179	}
16180	ret := &GoogleCloudApigeeV1Attribute{
16181		ServerResponse: googleapi.ServerResponse{
16182			Header:         res.Header,
16183			HTTPStatusCode: res.StatusCode,
16184		},
16185	}
16186	target := &ret
16187	if err := gensupport.DecodeResponse(target, res); err != nil {
16188		return nil, err
16189	}
16190	return ret, nil
16191	// {
16192	//   "description": "Returns the value of an app attribute.",
16193	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
16194	//   "httpMethod": "GET",
16195	//   "id": "apigee.organizations.developers.apps.attributes.get",
16196	//   "parameterOrder": [
16197	//     "name"
16198	//   ],
16199	//   "parameters": {
16200	//     "name": {
16201	//       "description": "Required. Developer App Attribute name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}/attributes/{attribute_name}`",
16202	//       "location": "path",
16203	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
16204	//       "required": true,
16205	//       "type": "string"
16206	//     }
16207	//   },
16208	//   "path": "v1/{+name}",
16209	//   "response": {
16210	//     "$ref": "GoogleCloudApigeeV1Attribute"
16211	//   },
16212	//   "scopes": [
16213	//     "https://www.googleapis.com/auth/cloud-platform"
16214	//   ]
16215	// }
16216
16217}
16218
16219// method id "apigee.organizations.developers.apps.attributes.list":
16220
16221type OrganizationsDevelopersAppsAttributesListCall struct {
16222	s            *Service
16223	parent       string
16224	urlParams_   gensupport.URLParams
16225	ifNoneMatch_ string
16226	ctx_         context.Context
16227	header_      http.Header
16228}
16229
16230// List: Returns a list of all app attributes.
16231func (r *OrganizationsDevelopersAppsAttributesService) List(parent string) *OrganizationsDevelopersAppsAttributesListCall {
16232	c := &OrganizationsDevelopersAppsAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16233	c.parent = parent
16234	return c
16235}
16236
16237// Fields allows partial responses to be retrieved. See
16238// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16239// for more information.
16240func (c *OrganizationsDevelopersAppsAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesListCall {
16241	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16242	return c
16243}
16244
16245// IfNoneMatch sets the optional parameter which makes the operation
16246// fail if the object's ETag matches the given value. This is useful for
16247// getting updates only after the object has changed since the last
16248// request. Use googleapi.IsNotModified to check whether the response
16249// error from Do is the result of In-None-Match.
16250func (c *OrganizationsDevelopersAppsAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsAttributesListCall {
16251	c.ifNoneMatch_ = entityTag
16252	return c
16253}
16254
16255// Context sets the context to be used in this call's Do method. Any
16256// pending HTTP request will be aborted if the provided context is
16257// canceled.
16258func (c *OrganizationsDevelopersAppsAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesListCall {
16259	c.ctx_ = ctx
16260	return c
16261}
16262
16263// Header returns an http.Header that can be modified by the caller to
16264// add HTTP headers to the request.
16265func (c *OrganizationsDevelopersAppsAttributesListCall) Header() http.Header {
16266	if c.header_ == nil {
16267		c.header_ = make(http.Header)
16268	}
16269	return c.header_
16270}
16271
16272func (c *OrganizationsDevelopersAppsAttributesListCall) doRequest(alt string) (*http.Response, error) {
16273	reqHeaders := make(http.Header)
16274	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16275	for k, v := range c.header_ {
16276		reqHeaders[k] = v
16277	}
16278	reqHeaders.Set("User-Agent", c.s.userAgent())
16279	if c.ifNoneMatch_ != "" {
16280		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16281	}
16282	var body io.Reader = nil
16283	c.urlParams_.Set("alt", alt)
16284	c.urlParams_.Set("prettyPrint", "false")
16285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
16286	urls += "?" + c.urlParams_.Encode()
16287	req, err := http.NewRequest("GET", urls, body)
16288	if err != nil {
16289		return nil, err
16290	}
16291	req.Header = reqHeaders
16292	googleapi.Expand(req.URL, map[string]string{
16293		"parent": c.parent,
16294	})
16295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16296}
16297
16298// Do executes the "apigee.organizations.developers.apps.attributes.list" call.
16299// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
16300// non-nil. Any non-2xx status code is an error. Response headers are in
16301// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
16302// response was returned at all) in error.(*googleapi.Error).Header. Use
16303// googleapi.IsNotModified to check whether the returned error was
16304// because http.StatusNotModified was returned.
16305func (c *OrganizationsDevelopersAppsAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
16306	gensupport.SetOptions(c.urlParams_, opts...)
16307	res, err := c.doRequest("json")
16308	if res != nil && res.StatusCode == http.StatusNotModified {
16309		if res.Body != nil {
16310			res.Body.Close()
16311		}
16312		return nil, &googleapi.Error{
16313			Code:   res.StatusCode,
16314			Header: res.Header,
16315		}
16316	}
16317	if err != nil {
16318		return nil, err
16319	}
16320	defer googleapi.CloseBody(res)
16321	if err := googleapi.CheckResponse(res); err != nil {
16322		return nil, err
16323	}
16324	ret := &GoogleCloudApigeeV1Attributes{
16325		ServerResponse: googleapi.ServerResponse{
16326			Header:         res.Header,
16327			HTTPStatusCode: res.StatusCode,
16328		},
16329	}
16330	target := &ret
16331	if err := gensupport.DecodeResponse(target, res); err != nil {
16332		return nil, err
16333	}
16334	return ret, nil
16335	// {
16336	//   "description": "Returns a list of all app attributes.",
16337	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes",
16338	//   "httpMethod": "GET",
16339	//   "id": "apigee.organizations.developers.apps.attributes.list",
16340	//   "parameterOrder": [
16341	//     "parent"
16342	//   ],
16343	//   "parameters": {
16344	//     "parent": {
16345	//       "description": "Required. The parent organization name. Must be of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}`",
16346	//       "location": "path",
16347	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
16348	//       "required": true,
16349	//       "type": "string"
16350	//     }
16351	//   },
16352	//   "path": "v1/{+parent}/attributes",
16353	//   "response": {
16354	//     "$ref": "GoogleCloudApigeeV1Attributes"
16355	//   },
16356	//   "scopes": [
16357	//     "https://www.googleapis.com/auth/cloud-platform"
16358	//   ]
16359	// }
16360
16361}
16362
16363// method id "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute":
16364
16365type OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall struct {
16366	s                            *Service
16367	name                         string
16368	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
16369	urlParams_                   gensupport.URLParams
16370	ctx_                         context.Context
16371	header_                      http.Header
16372}
16373
16374// UpdateDeveloperAppAttribute: Updates an app attribute
16375func (r *OrganizationsDevelopersAppsAttributesService) UpdateDeveloperAppAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
16376	c := &OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16377	c.name = name
16378	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
16379	return c
16380}
16381
16382// Fields allows partial responses to be retrieved. See
16383// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16384// for more information.
16385func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
16386	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16387	return c
16388}
16389
16390// Context sets the context to be used in this call's Do method. Any
16391// pending HTTP request will be aborted if the provided context is
16392// canceled.
16393func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall {
16394	c.ctx_ = ctx
16395	return c
16396}
16397
16398// Header returns an http.Header that can be modified by the caller to
16399// add HTTP headers to the request.
16400func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Header() http.Header {
16401	if c.header_ == nil {
16402		c.header_ = make(http.Header)
16403	}
16404	return c.header_
16405}
16406
16407func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) doRequest(alt string) (*http.Response, error) {
16408	reqHeaders := make(http.Header)
16409	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16410	for k, v := range c.header_ {
16411		reqHeaders[k] = v
16412	}
16413	reqHeaders.Set("User-Agent", c.s.userAgent())
16414	var body io.Reader = nil
16415	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
16416	if err != nil {
16417		return nil, err
16418	}
16419	reqHeaders.Set("Content-Type", "application/json")
16420	c.urlParams_.Set("alt", alt)
16421	c.urlParams_.Set("prettyPrint", "false")
16422	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16423	urls += "?" + c.urlParams_.Encode()
16424	req, err := http.NewRequest("POST", urls, body)
16425	if err != nil {
16426		return nil, err
16427	}
16428	req.Header = reqHeaders
16429	googleapi.Expand(req.URL, map[string]string{
16430		"name": c.name,
16431	})
16432	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16433}
16434
16435// Do executes the "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute" call.
16436// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
16437// non-nil. Any non-2xx status code is an error. Response headers are in
16438// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
16439// response was returned at all) in error.(*googleapi.Error).Header. Use
16440// googleapi.IsNotModified to check whether the returned error was
16441// because http.StatusNotModified was returned.
16442func (c *OrganizationsDevelopersAppsAttributesUpdateDeveloperAppAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
16443	gensupport.SetOptions(c.urlParams_, opts...)
16444	res, err := c.doRequest("json")
16445	if res != nil && res.StatusCode == http.StatusNotModified {
16446		if res.Body != nil {
16447			res.Body.Close()
16448		}
16449		return nil, &googleapi.Error{
16450			Code:   res.StatusCode,
16451			Header: res.Header,
16452		}
16453	}
16454	if err != nil {
16455		return nil, err
16456	}
16457	defer googleapi.CloseBody(res)
16458	if err := googleapi.CheckResponse(res); err != nil {
16459		return nil, err
16460	}
16461	ret := &GoogleCloudApigeeV1Attribute{
16462		ServerResponse: googleapi.ServerResponse{
16463			Header:         res.Header,
16464			HTTPStatusCode: res.StatusCode,
16465		},
16466	}
16467	target := &ret
16468	if err := gensupport.DecodeResponse(target, res); err != nil {
16469		return nil, err
16470	}
16471	return ret, nil
16472	// {
16473	//   "description": "Updates an app attribute",
16474	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/attributes/{attributesId}",
16475	//   "httpMethod": "POST",
16476	//   "id": "apigee.organizations.developers.apps.attributes.updateDeveloperAppAttribute",
16477	//   "parameterOrder": [
16478	//     "name"
16479	//   ],
16480	//   "parameters": {
16481	//     "name": {
16482	//       "description": "Required. Developer App Attribute name of the form:\n  `organizations/{organization_id}/developers/{developer_id}/apps/{app_name}/attributes/{attribute_name}`",
16483	//       "location": "path",
16484	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/attributes/[^/]+$",
16485	//       "required": true,
16486	//       "type": "string"
16487	//     }
16488	//   },
16489	//   "path": "v1/{+name}",
16490	//   "request": {
16491	//     "$ref": "GoogleCloudApigeeV1Attribute"
16492	//   },
16493	//   "response": {
16494	//     "$ref": "GoogleCloudApigeeV1Attribute"
16495	//   },
16496	//   "scopes": [
16497	//     "https://www.googleapis.com/auth/cloud-platform"
16498	//   ]
16499	// }
16500
16501}
16502
16503// method id "apigee.organizations.developers.apps.keys.create":
16504
16505type OrganizationsDevelopersAppsKeysCreateCall struct {
16506	s                                  *Service
16507	parent                             string
16508	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
16509	urlParams_                         gensupport.URLParams
16510	ctx_                               context.Context
16511	header_                            http.Header
16512}
16513
16514// Create: Creates a custom consumer key and secret for a developer app.
16515// This is
16516// particularly useful if you want to migrate existing consumer
16517// keys/secrets
16518// to Edge from another system.
16519// Be aware of the following size limits on API keys. By staying within
16520// these
16521// limits, you help avoid service disruptions (2KB each for Consumer Key
16522// and
16523// Secret). After creating the consumer key and secret, associate the
16524// key with
16525// an API product using the API
16526// UpdateDeveloperAppKey
16527// If a consumer key and secret already exist, you can either keep them
16528// or
16529// delete them with this API
16530// DeleteKeyFromDeveloperApp
16531// Consumer keys and secrets can contain letters, numbers, underscores,
16532// and
16533// hyphens. No other special characters are allowed.
16534func (r *OrganizationsDevelopersAppsKeysService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCall {
16535	c := &OrganizationsDevelopersAppsKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16536	c.parent = parent
16537	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
16538	return c
16539}
16540
16541// Fields allows partial responses to be retrieved. See
16542// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16543// for more information.
16544func (c *OrganizationsDevelopersAppsKeysCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCall {
16545	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16546	return c
16547}
16548
16549// Context sets the context to be used in this call's Do method. Any
16550// pending HTTP request will be aborted if the provided context is
16551// canceled.
16552func (c *OrganizationsDevelopersAppsKeysCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCall {
16553	c.ctx_ = ctx
16554	return c
16555}
16556
16557// Header returns an http.Header that can be modified by the caller to
16558// add HTTP headers to the request.
16559func (c *OrganizationsDevelopersAppsKeysCreateCall) Header() http.Header {
16560	if c.header_ == nil {
16561		c.header_ = make(http.Header)
16562	}
16563	return c.header_
16564}
16565
16566func (c *OrganizationsDevelopersAppsKeysCreateCall) doRequest(alt string) (*http.Response, error) {
16567	reqHeaders := make(http.Header)
16568	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16569	for k, v := range c.header_ {
16570		reqHeaders[k] = v
16571	}
16572	reqHeaders.Set("User-Agent", c.s.userAgent())
16573	var body io.Reader = nil
16574	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
16575	if err != nil {
16576		return nil, err
16577	}
16578	reqHeaders.Set("Content-Type", "application/json")
16579	c.urlParams_.Set("alt", alt)
16580	c.urlParams_.Set("prettyPrint", "false")
16581	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys")
16582	urls += "?" + c.urlParams_.Encode()
16583	req, err := http.NewRequest("POST", urls, body)
16584	if err != nil {
16585		return nil, err
16586	}
16587	req.Header = reqHeaders
16588	googleapi.Expand(req.URL, map[string]string{
16589		"parent": c.parent,
16590	})
16591	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16592}
16593
16594// Do executes the "apigee.organizations.developers.apps.keys.create" call.
16595// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
16596// non-nil. Any non-2xx status code is an error. Response headers are in
16597// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
16598// (if a response was returned at all) in
16599// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16600// whether the returned error was because http.StatusNotModified was
16601// returned.
16602func (c *OrganizationsDevelopersAppsKeysCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
16603	gensupport.SetOptions(c.urlParams_, opts...)
16604	res, err := c.doRequest("json")
16605	if res != nil && res.StatusCode == http.StatusNotModified {
16606		if res.Body != nil {
16607			res.Body.Close()
16608		}
16609		return nil, &googleapi.Error{
16610			Code:   res.StatusCode,
16611			Header: res.Header,
16612		}
16613	}
16614	if err != nil {
16615		return nil, err
16616	}
16617	defer googleapi.CloseBody(res)
16618	if err := googleapi.CheckResponse(res); err != nil {
16619		return nil, err
16620	}
16621	ret := &GoogleCloudApigeeV1DeveloperAppKey{
16622		ServerResponse: googleapi.ServerResponse{
16623			Header:         res.Header,
16624			HTTPStatusCode: res.StatusCode,
16625		},
16626	}
16627	target := &ret
16628	if err := gensupport.DecodeResponse(target, res); err != nil {
16629		return nil, err
16630	}
16631	return ret, nil
16632	// {
16633	//   "description": "Creates a custom consumer key and secret for a developer app. This is\nparticularly useful if you want to migrate existing consumer keys/secrets\nto Edge from another system.\nBe aware of the following size limits on API keys. By staying within these\nlimits, you help avoid service disruptions (2KB each for Consumer Key and\nSecret). After creating the consumer key and secret, associate the key with\nan API product using the API\nUpdateDeveloperAppKey\nIf a consumer key and secret already exist, you can either keep them or\ndelete them with this API\nDeleteKeyFromDeveloperApp\nConsumer keys and secrets can contain letters, numbers, underscores, and\nhyphens. No other special characters are allowed.",
16634	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys",
16635	//   "httpMethod": "POST",
16636	//   "id": "apigee.organizations.developers.apps.keys.create",
16637	//   "parameterOrder": [
16638	//     "parent"
16639	//   ],
16640	//   "parameters": {
16641	//     "parent": {
16642	//       "description": "Parent of a developer app key in the form\n`organizations/{org}/developers/{developer}/apps`",
16643	//       "location": "path",
16644	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
16645	//       "required": true,
16646	//       "type": "string"
16647	//     }
16648	//   },
16649	//   "path": "v1/{+parent}/keys",
16650	//   "request": {
16651	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
16652	//   },
16653	//   "response": {
16654	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
16655	//   },
16656	//   "scopes": [
16657	//     "https://www.googleapis.com/auth/cloud-platform"
16658	//   ]
16659	// }
16660
16661}
16662
16663// method id "apigee.organizations.developers.apps.keys.delete":
16664
16665type OrganizationsDevelopersAppsKeysDeleteCall struct {
16666	s          *Service
16667	name       string
16668	urlParams_ gensupport.URLParams
16669	ctx_       context.Context
16670	header_    http.Header
16671}
16672
16673// Delete: Deletes a consumer key that belongs to an app, and removes
16674// all API products
16675// associated with the app. Once deleted, the consumer key cannot be
16676// used to
16677// access any APIs.
16678// Note: After you delete a consumer key, you may want to:
16679// 1. Create a new consumer key and secret for the developer app,
16680// and
16681// subsequently add an API product to the key.
16682// 2. Delete the developer app, if it is no longer required.
16683func (r *OrganizationsDevelopersAppsKeysService) Delete(name string) *OrganizationsDevelopersAppsKeysDeleteCall {
16684	c := &OrganizationsDevelopersAppsKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16685	c.name = name
16686	return c
16687}
16688
16689// Fields allows partial responses to be retrieved. See
16690// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16691// for more information.
16692func (c *OrganizationsDevelopersAppsKeysDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysDeleteCall {
16693	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16694	return c
16695}
16696
16697// Context sets the context to be used in this call's Do method. Any
16698// pending HTTP request will be aborted if the provided context is
16699// canceled.
16700func (c *OrganizationsDevelopersAppsKeysDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysDeleteCall {
16701	c.ctx_ = ctx
16702	return c
16703}
16704
16705// Header returns an http.Header that can be modified by the caller to
16706// add HTTP headers to the request.
16707func (c *OrganizationsDevelopersAppsKeysDeleteCall) Header() http.Header {
16708	if c.header_ == nil {
16709		c.header_ = make(http.Header)
16710	}
16711	return c.header_
16712}
16713
16714func (c *OrganizationsDevelopersAppsKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
16715	reqHeaders := make(http.Header)
16716	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16717	for k, v := range c.header_ {
16718		reqHeaders[k] = v
16719	}
16720	reqHeaders.Set("User-Agent", c.s.userAgent())
16721	var body io.Reader = nil
16722	c.urlParams_.Set("alt", alt)
16723	c.urlParams_.Set("prettyPrint", "false")
16724	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16725	urls += "?" + c.urlParams_.Encode()
16726	req, err := http.NewRequest("DELETE", urls, body)
16727	if err != nil {
16728		return nil, err
16729	}
16730	req.Header = reqHeaders
16731	googleapi.Expand(req.URL, map[string]string{
16732		"name": c.name,
16733	})
16734	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16735}
16736
16737// Do executes the "apigee.organizations.developers.apps.keys.delete" call.
16738// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
16739// non-nil. Any non-2xx status code is an error. Response headers are in
16740// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
16741// (if a response was returned at all) in
16742// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16743// whether the returned error was because http.StatusNotModified was
16744// returned.
16745func (c *OrganizationsDevelopersAppsKeysDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
16746	gensupport.SetOptions(c.urlParams_, opts...)
16747	res, err := c.doRequest("json")
16748	if res != nil && res.StatusCode == http.StatusNotModified {
16749		if res.Body != nil {
16750			res.Body.Close()
16751		}
16752		return nil, &googleapi.Error{
16753			Code:   res.StatusCode,
16754			Header: res.Header,
16755		}
16756	}
16757	if err != nil {
16758		return nil, err
16759	}
16760	defer googleapi.CloseBody(res)
16761	if err := googleapi.CheckResponse(res); err != nil {
16762		return nil, err
16763	}
16764	ret := &GoogleCloudApigeeV1DeveloperAppKey{
16765		ServerResponse: googleapi.ServerResponse{
16766			Header:         res.Header,
16767			HTTPStatusCode: res.StatusCode,
16768		},
16769	}
16770	target := &ret
16771	if err := gensupport.DecodeResponse(target, res); err != nil {
16772		return nil, err
16773	}
16774	return ret, nil
16775	// {
16776	//   "description": "Deletes a consumer key that belongs to an app, and removes all API products\nassociated with the app. Once deleted, the consumer key cannot be used to\naccess any APIs.\nNote: After you delete a consumer key, you may want to:\n1. Create a new consumer key and secret for the developer app, and\nsubsequently add an API product to the key.\n2. Delete the developer app, if it is no longer required.",
16777	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
16778	//   "httpMethod": "DELETE",
16779	//   "id": "apigee.organizations.developers.apps.keys.delete",
16780	//   "parameterOrder": [
16781	//     "name"
16782	//   ],
16783	//   "parameters": {
16784	//     "name": {
16785	//       "description": "Resource name of a developer app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}`",
16786	//       "location": "path",
16787	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
16788	//       "required": true,
16789	//       "type": "string"
16790	//     }
16791	//   },
16792	//   "path": "v1/{+name}",
16793	//   "response": {
16794	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
16795	//   },
16796	//   "scopes": [
16797	//     "https://www.googleapis.com/auth/cloud-platform"
16798	//   ]
16799	// }
16800
16801}
16802
16803// method id "apigee.organizations.developers.apps.keys.get":
16804
16805type OrganizationsDevelopersAppsKeysGetCall struct {
16806	s            *Service
16807	name         string
16808	urlParams_   gensupport.URLParams
16809	ifNoneMatch_ string
16810	ctx_         context.Context
16811	header_      http.Header
16812}
16813
16814// Get: Returns details for a consumer key for a developer app,
16815// including the key
16816// and secret value, associated API products, and other information. All
16817// times
16818// are displayed as UNIX times.
16819func (r *OrganizationsDevelopersAppsKeysService) Get(name string) *OrganizationsDevelopersAppsKeysGetCall {
16820	c := &OrganizationsDevelopersAppsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16821	c.name = name
16822	return c
16823}
16824
16825// Fields allows partial responses to be retrieved. See
16826// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16827// for more information.
16828func (c *OrganizationsDevelopersAppsKeysGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysGetCall {
16829	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16830	return c
16831}
16832
16833// IfNoneMatch sets the optional parameter which makes the operation
16834// fail if the object's ETag matches the given value. This is useful for
16835// getting updates only after the object has changed since the last
16836// request. Use googleapi.IsNotModified to check whether the response
16837// error from Do is the result of In-None-Match.
16838func (c *OrganizationsDevelopersAppsKeysGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAppsKeysGetCall {
16839	c.ifNoneMatch_ = entityTag
16840	return c
16841}
16842
16843// Context sets the context to be used in this call's Do method. Any
16844// pending HTTP request will be aborted if the provided context is
16845// canceled.
16846func (c *OrganizationsDevelopersAppsKeysGetCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysGetCall {
16847	c.ctx_ = ctx
16848	return c
16849}
16850
16851// Header returns an http.Header that can be modified by the caller to
16852// add HTTP headers to the request.
16853func (c *OrganizationsDevelopersAppsKeysGetCall) Header() http.Header {
16854	if c.header_ == nil {
16855		c.header_ = make(http.Header)
16856	}
16857	return c.header_
16858}
16859
16860func (c *OrganizationsDevelopersAppsKeysGetCall) doRequest(alt string) (*http.Response, error) {
16861	reqHeaders := make(http.Header)
16862	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
16863	for k, v := range c.header_ {
16864		reqHeaders[k] = v
16865	}
16866	reqHeaders.Set("User-Agent", c.s.userAgent())
16867	if c.ifNoneMatch_ != "" {
16868		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16869	}
16870	var body io.Reader = nil
16871	c.urlParams_.Set("alt", alt)
16872	c.urlParams_.Set("prettyPrint", "false")
16873	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16874	urls += "?" + c.urlParams_.Encode()
16875	req, err := http.NewRequest("GET", urls, body)
16876	if err != nil {
16877		return nil, err
16878	}
16879	req.Header = reqHeaders
16880	googleapi.Expand(req.URL, map[string]string{
16881		"name": c.name,
16882	})
16883	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16884}
16885
16886// Do executes the "apigee.organizations.developers.apps.keys.get" call.
16887// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
16888// non-nil. Any non-2xx status code is an error. Response headers are in
16889// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
16890// (if a response was returned at all) in
16891// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
16892// whether the returned error was because http.StatusNotModified was
16893// returned.
16894func (c *OrganizationsDevelopersAppsKeysGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
16895	gensupport.SetOptions(c.urlParams_, opts...)
16896	res, err := c.doRequest("json")
16897	if res != nil && res.StatusCode == http.StatusNotModified {
16898		if res.Body != nil {
16899			res.Body.Close()
16900		}
16901		return nil, &googleapi.Error{
16902			Code:   res.StatusCode,
16903			Header: res.Header,
16904		}
16905	}
16906	if err != nil {
16907		return nil, err
16908	}
16909	defer googleapi.CloseBody(res)
16910	if err := googleapi.CheckResponse(res); err != nil {
16911		return nil, err
16912	}
16913	ret := &GoogleCloudApigeeV1DeveloperAppKey{
16914		ServerResponse: googleapi.ServerResponse{
16915			Header:         res.Header,
16916			HTTPStatusCode: res.StatusCode,
16917		},
16918	}
16919	target := &ret
16920	if err := gensupport.DecodeResponse(target, res); err != nil {
16921		return nil, err
16922	}
16923	return ret, nil
16924	// {
16925	//   "description": "Returns details for a consumer key for a developer app, including the key\nand secret value, associated API products, and other information. All times\nare displayed as UNIX times.",
16926	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
16927	//   "httpMethod": "GET",
16928	//   "id": "apigee.organizations.developers.apps.keys.get",
16929	//   "parameterOrder": [
16930	//     "name"
16931	//   ],
16932	//   "parameters": {
16933	//     "name": {
16934	//       "description": "Resource name of a developer app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}`",
16935	//       "location": "path",
16936	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
16937	//       "required": true,
16938	//       "type": "string"
16939	//     }
16940	//   },
16941	//   "path": "v1/{+name}",
16942	//   "response": {
16943	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
16944	//   },
16945	//   "scopes": [
16946	//     "https://www.googleapis.com/auth/cloud-platform"
16947	//   ]
16948	// }
16949
16950}
16951
16952// method id "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey":
16953
16954type OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall struct {
16955	s                                  *Service
16956	name                               string
16957	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
16958	urlParams_                         gensupport.URLParams
16959	ctx_                               context.Context
16960	header_                            http.Header
16961}
16962
16963// ReplaceDeveloperAppKey: Updates the scope of an app. Note that this
16964// API sets the scopes element
16965// under the apiProducts element in the attributes of the app.
16966func (r *OrganizationsDevelopersAppsKeysService) ReplaceDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
16967	c := &OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16968	c.name = name
16969	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
16970	return c
16971}
16972
16973// Fields allows partial responses to be retrieved. See
16974// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16975// for more information.
16976func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
16977	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16978	return c
16979}
16980
16981// Context sets the context to be used in this call's Do method. Any
16982// pending HTTP request will be aborted if the provided context is
16983// canceled.
16984func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall {
16985	c.ctx_ = ctx
16986	return c
16987}
16988
16989// Header returns an http.Header that can be modified by the caller to
16990// add HTTP headers to the request.
16991func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Header() http.Header {
16992	if c.header_ == nil {
16993		c.header_ = make(http.Header)
16994	}
16995	return c.header_
16996}
16997
16998func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
16999	reqHeaders := make(http.Header)
17000	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17001	for k, v := range c.header_ {
17002		reqHeaders[k] = v
17003	}
17004	reqHeaders.Set("User-Agent", c.s.userAgent())
17005	var body io.Reader = nil
17006	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
17007	if err != nil {
17008		return nil, err
17009	}
17010	reqHeaders.Set("Content-Type", "application/json")
17011	c.urlParams_.Set("alt", alt)
17012	c.urlParams_.Set("prettyPrint", "false")
17013	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17014	urls += "?" + c.urlParams_.Encode()
17015	req, err := http.NewRequest("PUT", urls, body)
17016	if err != nil {
17017		return nil, err
17018	}
17019	req.Header = reqHeaders
17020	googleapi.Expand(req.URL, map[string]string{
17021		"name": c.name,
17022	})
17023	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17024}
17025
17026// Do executes the "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey" call.
17027// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
17028// non-nil. Any non-2xx status code is an error. Response headers are in
17029// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
17030// (if a response was returned at all) in
17031// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17032// whether the returned error was because http.StatusNotModified was
17033// returned.
17034func (c *OrganizationsDevelopersAppsKeysReplaceDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
17035	gensupport.SetOptions(c.urlParams_, opts...)
17036	res, err := c.doRequest("json")
17037	if res != nil && res.StatusCode == http.StatusNotModified {
17038		if res.Body != nil {
17039			res.Body.Close()
17040		}
17041		return nil, &googleapi.Error{
17042			Code:   res.StatusCode,
17043			Header: res.Header,
17044		}
17045	}
17046	if err != nil {
17047		return nil, err
17048	}
17049	defer googleapi.CloseBody(res)
17050	if err := googleapi.CheckResponse(res); err != nil {
17051		return nil, err
17052	}
17053	ret := &GoogleCloudApigeeV1DeveloperAppKey{
17054		ServerResponse: googleapi.ServerResponse{
17055			Header:         res.Header,
17056			HTTPStatusCode: res.StatusCode,
17057		},
17058	}
17059	target := &ret
17060	if err := gensupport.DecodeResponse(target, res); err != nil {
17061		return nil, err
17062	}
17063	return ret, nil
17064	// {
17065	//   "description": "Updates the scope of an app. Note that this API sets the scopes element\nunder the apiProducts element in the attributes of the app.",
17066	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
17067	//   "httpMethod": "PUT",
17068	//   "id": "apigee.organizations.developers.apps.keys.replaceDeveloperAppKey",
17069	//   "parameterOrder": [
17070	//     "name"
17071	//   ],
17072	//   "parameters": {
17073	//     "name": {
17074	//       "description": "Resource name of a company app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}`",
17075	//       "location": "path",
17076	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
17077	//       "required": true,
17078	//       "type": "string"
17079	//     }
17080	//   },
17081	//   "path": "v1/{+name}",
17082	//   "request": {
17083	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17084	//   },
17085	//   "response": {
17086	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17087	//   },
17088	//   "scopes": [
17089	//     "https://www.googleapis.com/auth/cloud-platform"
17090	//   ]
17091	// }
17092
17093}
17094
17095// method id "apigee.organizations.developers.apps.keys.updateDeveloperAppKey":
17096
17097type OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall struct {
17098	s                                  *Service
17099	name                               string
17100	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
17101	urlParams_                         gensupport.URLParams
17102	ctx_                               context.Context
17103	header_                            http.Header
17104}
17105
17106// UpdateDeveloperAppKey: Adds an API product to a developer app key,
17107// enabling the app that holds
17108// the key to access the API resources bundled in the API product. You
17109// can
17110// also use this API to add attributes to the key.
17111// Use this API to add a new API product to an existing app. After
17112// adding the
17113// API product, you can use the same key to access all API
17114// products
17115// associated with the app. You must include all existing
17116// attributes,
17117// whether or not you are updating them, as well as any new attributes
17118// that
17119// you are adding.
17120func (r *OrganizationsDevelopersAppsKeysService) UpdateDeveloperAppKey(name string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
17121	c := &OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17122	c.name = name
17123	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
17124	return c
17125}
17126
17127// Action sets the optional parameter "action": Set the action to
17128// approve or revoke.
17129func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Action(action string) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
17130	c.urlParams_.Set("action", action)
17131	return c
17132}
17133
17134// Fields allows partial responses to be retrieved. See
17135// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17136// for more information.
17137func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
17138	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17139	return c
17140}
17141
17142// Context sets the context to be used in this call's Do method. Any
17143// pending HTTP request will be aborted if the provided context is
17144// canceled.
17145func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall {
17146	c.ctx_ = ctx
17147	return c
17148}
17149
17150// Header returns an http.Header that can be modified by the caller to
17151// add HTTP headers to the request.
17152func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Header() http.Header {
17153	if c.header_ == nil {
17154		c.header_ = make(http.Header)
17155	}
17156	return c.header_
17157}
17158
17159func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) doRequest(alt string) (*http.Response, error) {
17160	reqHeaders := make(http.Header)
17161	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17162	for k, v := range c.header_ {
17163		reqHeaders[k] = v
17164	}
17165	reqHeaders.Set("User-Agent", c.s.userAgent())
17166	var body io.Reader = nil
17167	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
17168	if err != nil {
17169		return nil, err
17170	}
17171	reqHeaders.Set("Content-Type", "application/json")
17172	c.urlParams_.Set("alt", alt)
17173	c.urlParams_.Set("prettyPrint", "false")
17174	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17175	urls += "?" + c.urlParams_.Encode()
17176	req, err := http.NewRequest("POST", urls, body)
17177	if err != nil {
17178		return nil, err
17179	}
17180	req.Header = reqHeaders
17181	googleapi.Expand(req.URL, map[string]string{
17182		"name": c.name,
17183	})
17184	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17185}
17186
17187// Do executes the "apigee.organizations.developers.apps.keys.updateDeveloperAppKey" call.
17188// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
17189// non-nil. Any non-2xx status code is an error. Response headers are in
17190// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
17191// (if a response was returned at all) in
17192// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17193// whether the returned error was because http.StatusNotModified was
17194// returned.
17195func (c *OrganizationsDevelopersAppsKeysUpdateDeveloperAppKeyCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
17196	gensupport.SetOptions(c.urlParams_, opts...)
17197	res, err := c.doRequest("json")
17198	if res != nil && res.StatusCode == http.StatusNotModified {
17199		if res.Body != nil {
17200			res.Body.Close()
17201		}
17202		return nil, &googleapi.Error{
17203			Code:   res.StatusCode,
17204			Header: res.Header,
17205		}
17206	}
17207	if err != nil {
17208		return nil, err
17209	}
17210	defer googleapi.CloseBody(res)
17211	if err := googleapi.CheckResponse(res); err != nil {
17212		return nil, err
17213	}
17214	ret := &GoogleCloudApigeeV1DeveloperAppKey{
17215		ServerResponse: googleapi.ServerResponse{
17216			Header:         res.Header,
17217			HTTPStatusCode: res.StatusCode,
17218		},
17219	}
17220	target := &ret
17221	if err := gensupport.DecodeResponse(target, res); err != nil {
17222		return nil, err
17223	}
17224	return ret, nil
17225	// {
17226	//   "description": "Adds an API product to a developer app key, enabling the app that holds\nthe key to access the API resources bundled in the API product. You can\nalso use this API to add attributes to the key.\nUse this API to add a new API product to an existing app. After adding the\nAPI product, you can use the same key to access all API products\nassociated with the app. You must include all existing attributes,\nwhether or not you are updating them, as well as any new attributes that\nyou are adding.",
17227	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}",
17228	//   "httpMethod": "POST",
17229	//   "id": "apigee.organizations.developers.apps.keys.updateDeveloperAppKey",
17230	//   "parameterOrder": [
17231	//     "name"
17232	//   ],
17233	//   "parameters": {
17234	//     "action": {
17235	//       "description": "Set the action to approve or revoke.",
17236	//       "location": "query",
17237	//       "type": "string"
17238	//     },
17239	//     "name": {
17240	//       "description": "Resource name of a company app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}`",
17241	//       "location": "path",
17242	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+$",
17243	//       "required": true,
17244	//       "type": "string"
17245	//     }
17246	//   },
17247	//   "path": "v1/{+name}",
17248	//   "request": {
17249	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17250	//   },
17251	//   "response": {
17252	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17253	//   },
17254	//   "scopes": [
17255	//     "https://www.googleapis.com/auth/cloud-platform"
17256	//   ]
17257	// }
17258
17259}
17260
17261// method id "apigee.organizations.developers.apps.keys.apiproducts.delete":
17262
17263type OrganizationsDevelopersAppsKeysApiproductsDeleteCall struct {
17264	s          *Service
17265	name       string
17266	urlParams_ gensupport.URLParams
17267	ctx_       context.Context
17268	header_    http.Header
17269}
17270
17271// Delete: Removes an API product from an app's consumer key, and
17272// thereby renders the
17273// app unable to access the API resources defined in that API
17274// product.
17275// Note : The consumer key itself still exists after this call. Only
17276// the
17277// association of the key with the API product is removed.
17278func (r *OrganizationsDevelopersAppsKeysApiproductsService) Delete(name string) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
17279	c := &OrganizationsDevelopersAppsKeysApiproductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17280	c.name = name
17281	return c
17282}
17283
17284// Fields allows partial responses to be retrieved. See
17285// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17286// for more information.
17287func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
17288	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17289	return c
17290}
17291
17292// Context sets the context to be used in this call's Do method. Any
17293// pending HTTP request will be aborted if the provided context is
17294// canceled.
17295func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsDeleteCall {
17296	c.ctx_ = ctx
17297	return c
17298}
17299
17300// Header returns an http.Header that can be modified by the caller to
17301// add HTTP headers to the request.
17302func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Header() http.Header {
17303	if c.header_ == nil {
17304		c.header_ = make(http.Header)
17305	}
17306	return c.header_
17307}
17308
17309func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) doRequest(alt string) (*http.Response, error) {
17310	reqHeaders := make(http.Header)
17311	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17312	for k, v := range c.header_ {
17313		reqHeaders[k] = v
17314	}
17315	reqHeaders.Set("User-Agent", c.s.userAgent())
17316	var body io.Reader = nil
17317	c.urlParams_.Set("alt", alt)
17318	c.urlParams_.Set("prettyPrint", "false")
17319	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17320	urls += "?" + c.urlParams_.Encode()
17321	req, err := http.NewRequest("DELETE", urls, body)
17322	if err != nil {
17323		return nil, err
17324	}
17325	req.Header = reqHeaders
17326	googleapi.Expand(req.URL, map[string]string{
17327		"name": c.name,
17328	})
17329	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17330}
17331
17332// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.delete" call.
17333// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
17334// non-nil. Any non-2xx status code is an error. Response headers are in
17335// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
17336// (if a response was returned at all) in
17337// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17338// whether the returned error was because http.StatusNotModified was
17339// returned.
17340func (c *OrganizationsDevelopersAppsKeysApiproductsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
17341	gensupport.SetOptions(c.urlParams_, opts...)
17342	res, err := c.doRequest("json")
17343	if res != nil && res.StatusCode == http.StatusNotModified {
17344		if res.Body != nil {
17345			res.Body.Close()
17346		}
17347		return nil, &googleapi.Error{
17348			Code:   res.StatusCode,
17349			Header: res.Header,
17350		}
17351	}
17352	if err != nil {
17353		return nil, err
17354	}
17355	defer googleapi.CloseBody(res)
17356	if err := googleapi.CheckResponse(res); err != nil {
17357		return nil, err
17358	}
17359	ret := &GoogleCloudApigeeV1DeveloperAppKey{
17360		ServerResponse: googleapi.ServerResponse{
17361			Header:         res.Header,
17362			HTTPStatusCode: res.StatusCode,
17363		},
17364	}
17365	target := &ret
17366	if err := gensupport.DecodeResponse(target, res); err != nil {
17367		return nil, err
17368	}
17369	return ret, nil
17370	// {
17371	//   "description": "Removes an API product from an app's consumer key, and thereby renders the\napp unable to access the API resources defined in that API product.\nNote : The consumer key itself still exists after this call. Only the\nassociation of the key with the API product is removed.",
17372	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
17373	//   "httpMethod": "DELETE",
17374	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.delete",
17375	//   "parameterOrder": [
17376	//     "name"
17377	//   ],
17378	//   "parameters": {
17379	//     "name": {
17380	//       "description": "Resource name of a api product in a developer app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`",
17381	//       "location": "path",
17382	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
17383	//       "required": true,
17384	//       "type": "string"
17385	//     }
17386	//   },
17387	//   "path": "v1/{+name}",
17388	//   "response": {
17389	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17390	//   },
17391	//   "scopes": [
17392	//     "https://www.googleapis.com/auth/cloud-platform"
17393	//   ]
17394	// }
17395
17396}
17397
17398// method id "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct":
17399
17400type OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall struct {
17401	s          *Service
17402	name       string
17403	urlParams_ gensupport.URLParams
17404	ctx_       context.Context
17405	header_    http.Header
17406}
17407
17408// UpdateDeveloperAppKeyApiProduct: Approve or Revoke the key for a
17409// given api product.
17410func (r *OrganizationsDevelopersAppsKeysApiproductsService) UpdateDeveloperAppKeyApiProduct(name string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
17411	c := &OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17412	c.name = name
17413	return c
17414}
17415
17416// Action sets the optional parameter "action": Set the action to
17417// approve or revoke.
17418func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Action(action string) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
17419	c.urlParams_.Set("action", action)
17420	return c
17421}
17422
17423// Fields allows partial responses to be retrieved. See
17424// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17425// for more information.
17426func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
17427	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17428	return c
17429}
17430
17431// Context sets the context to be used in this call's Do method. Any
17432// pending HTTP request will be aborted if the provided context is
17433// canceled.
17434func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall {
17435	c.ctx_ = ctx
17436	return c
17437}
17438
17439// Header returns an http.Header that can be modified by the caller to
17440// add HTTP headers to the request.
17441func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Header() http.Header {
17442	if c.header_ == nil {
17443		c.header_ = make(http.Header)
17444	}
17445	return c.header_
17446}
17447
17448func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) doRequest(alt string) (*http.Response, error) {
17449	reqHeaders := make(http.Header)
17450	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17451	for k, v := range c.header_ {
17452		reqHeaders[k] = v
17453	}
17454	reqHeaders.Set("User-Agent", c.s.userAgent())
17455	var body io.Reader = nil
17456	c.urlParams_.Set("alt", alt)
17457	c.urlParams_.Set("prettyPrint", "false")
17458	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17459	urls += "?" + c.urlParams_.Encode()
17460	req, err := http.NewRequest("POST", urls, body)
17461	if err != nil {
17462		return nil, err
17463	}
17464	req.Header = reqHeaders
17465	googleapi.Expand(req.URL, map[string]string{
17466		"name": c.name,
17467	})
17468	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17469}
17470
17471// Do executes the "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct" call.
17472// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
17473// non-2xx status code is an error. Response headers are in either
17474// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
17475// returned at all) in error.(*googleapi.Error).Header. Use
17476// googleapi.IsNotModified to check whether the returned error was
17477// because http.StatusNotModified was returned.
17478func (c *OrganizationsDevelopersAppsKeysApiproductsUpdateDeveloperAppKeyApiProductCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17479	gensupport.SetOptions(c.urlParams_, opts...)
17480	res, err := c.doRequest("json")
17481	if res != nil && res.StatusCode == http.StatusNotModified {
17482		if res.Body != nil {
17483			res.Body.Close()
17484		}
17485		return nil, &googleapi.Error{
17486			Code:   res.StatusCode,
17487			Header: res.Header,
17488		}
17489	}
17490	if err != nil {
17491		return nil, err
17492	}
17493	defer googleapi.CloseBody(res)
17494	if err := googleapi.CheckResponse(res); err != nil {
17495		return nil, err
17496	}
17497	ret := &GoogleProtobufEmpty{
17498		ServerResponse: googleapi.ServerResponse{
17499			Header:         res.Header,
17500			HTTPStatusCode: res.StatusCode,
17501		},
17502	}
17503	target := &ret
17504	if err := gensupport.DecodeResponse(target, res); err != nil {
17505		return nil, err
17506	}
17507	return ret, nil
17508	// {
17509	//   "description": "Approve or Revoke the key for a given api product.",
17510	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/{keysId}/apiproducts/{apiproductsId}",
17511	//   "httpMethod": "POST",
17512	//   "id": "apigee.organizations.developers.apps.keys.apiproducts.updateDeveloperAppKeyApiProduct",
17513	//   "parameterOrder": [
17514	//     "name"
17515	//   ],
17516	//   "parameters": {
17517	//     "action": {
17518	//       "description": "Set the action to approve or revoke.",
17519	//       "location": "query",
17520	//       "type": "string"
17521	//     },
17522	//     "name": {
17523	//       "description": "Resource name of a api product in a developer app key\n`organizations/{org}/developers/{developer}/apps/{app}/keys/{key}/apiproducts/{apiproduct}`",
17524	//       "location": "path",
17525	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+/keys/[^/]+/apiproducts/[^/]+$",
17526	//       "required": true,
17527	//       "type": "string"
17528	//     }
17529	//   },
17530	//   "path": "v1/{+name}",
17531	//   "response": {
17532	//     "$ref": "GoogleProtobufEmpty"
17533	//   },
17534	//   "scopes": [
17535	//     "https://www.googleapis.com/auth/cloud-platform"
17536	//   ]
17537	// }
17538
17539}
17540
17541// method id "apigee.organizations.developers.apps.keys.create.create":
17542
17543type OrganizationsDevelopersAppsKeysCreateCreateCall struct {
17544	s                                  *Service
17545	parent                             string
17546	googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey
17547	urlParams_                         gensupport.URLParams
17548	ctx_                               context.Context
17549	header_                            http.Header
17550}
17551
17552// Create: Creates a custom consumer key and secret for a developer app.
17553// This is
17554// particularly useful if you want to migrate existing consumer
17555// keys/secrets
17556// to Edge from another system.
17557// Be aware of the following size limits on API keys. By staying within
17558// these
17559// limits, you help avoid service disruptions (2KB each for Consumer Key
17560// and
17561// Secret). After creating the consumer key and secret, associate the
17562// key with
17563// an API product using the API
17564// UpdateDeveloperAppKey
17565// If a consumer key and secret already exist, you can either keep them
17566// or
17567// delete them with this API
17568// DeleteKeyFromDeveloperApp
17569// Consumer keys and secrets can contain letters, numbers, underscores,
17570// and
17571// hyphens. No other special characters are allowed.
17572func (r *OrganizationsDevelopersAppsKeysCreateService) Create(parent string, googlecloudapigeev1developerappkey *GoogleCloudApigeeV1DeveloperAppKey) *OrganizationsDevelopersAppsKeysCreateCreateCall {
17573	c := &OrganizationsDevelopersAppsKeysCreateCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17574	c.parent = parent
17575	c.googlecloudapigeev1developerappkey = googlecloudapigeev1developerappkey
17576	return c
17577}
17578
17579// Fields allows partial responses to be retrieved. See
17580// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17581// for more information.
17582func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAppsKeysCreateCreateCall {
17583	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17584	return c
17585}
17586
17587// Context sets the context to be used in this call's Do method. Any
17588// pending HTTP request will be aborted if the provided context is
17589// canceled.
17590func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Context(ctx context.Context) *OrganizationsDevelopersAppsKeysCreateCreateCall {
17591	c.ctx_ = ctx
17592	return c
17593}
17594
17595// Header returns an http.Header that can be modified by the caller to
17596// add HTTP headers to the request.
17597func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Header() http.Header {
17598	if c.header_ == nil {
17599		c.header_ = make(http.Header)
17600	}
17601	return c.header_
17602}
17603
17604func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) doRequest(alt string) (*http.Response, error) {
17605	reqHeaders := make(http.Header)
17606	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17607	for k, v := range c.header_ {
17608		reqHeaders[k] = v
17609	}
17610	reqHeaders.Set("User-Agent", c.s.userAgent())
17611	var body io.Reader = nil
17612	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1developerappkey)
17613	if err != nil {
17614		return nil, err
17615	}
17616	reqHeaders.Set("Content-Type", "application/json")
17617	c.urlParams_.Set("alt", alt)
17618	c.urlParams_.Set("prettyPrint", "false")
17619	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keys/create")
17620	urls += "?" + c.urlParams_.Encode()
17621	req, err := http.NewRequest("POST", urls, body)
17622	if err != nil {
17623		return nil, err
17624	}
17625	req.Header = reqHeaders
17626	googleapi.Expand(req.URL, map[string]string{
17627		"parent": c.parent,
17628	})
17629	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17630}
17631
17632// Do executes the "apigee.organizations.developers.apps.keys.create.create" call.
17633// Exactly one of *GoogleCloudApigeeV1DeveloperAppKey or error will be
17634// non-nil. Any non-2xx status code is an error. Response headers are in
17635// either *GoogleCloudApigeeV1DeveloperAppKey.ServerResponse.Header or
17636// (if a response was returned at all) in
17637// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
17638// whether the returned error was because http.StatusNotModified was
17639// returned.
17640func (c *OrganizationsDevelopersAppsKeysCreateCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeveloperAppKey, error) {
17641	gensupport.SetOptions(c.urlParams_, opts...)
17642	res, err := c.doRequest("json")
17643	if res != nil && res.StatusCode == http.StatusNotModified {
17644		if res.Body != nil {
17645			res.Body.Close()
17646		}
17647		return nil, &googleapi.Error{
17648			Code:   res.StatusCode,
17649			Header: res.Header,
17650		}
17651	}
17652	if err != nil {
17653		return nil, err
17654	}
17655	defer googleapi.CloseBody(res)
17656	if err := googleapi.CheckResponse(res); err != nil {
17657		return nil, err
17658	}
17659	ret := &GoogleCloudApigeeV1DeveloperAppKey{
17660		ServerResponse: googleapi.ServerResponse{
17661			Header:         res.Header,
17662			HTTPStatusCode: res.StatusCode,
17663		},
17664	}
17665	target := &ret
17666	if err := gensupport.DecodeResponse(target, res); err != nil {
17667		return nil, err
17668	}
17669	return ret, nil
17670	// {
17671	//   "description": "Creates a custom consumer key and secret for a developer app. This is\nparticularly useful if you want to migrate existing consumer keys/secrets\nto Edge from another system.\nBe aware of the following size limits on API keys. By staying within these\nlimits, you help avoid service disruptions (2KB each for Consumer Key and\nSecret). After creating the consumer key and secret, associate the key with\nan API product using the API\nUpdateDeveloperAppKey\nIf a consumer key and secret already exist, you can either keep them or\ndelete them with this API\nDeleteKeyFromDeveloperApp\nConsumer keys and secrets can contain letters, numbers, underscores, and\nhyphens. No other special characters are allowed.",
17672	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/apps/{appsId}/keys/create",
17673	//   "httpMethod": "POST",
17674	//   "id": "apigee.organizations.developers.apps.keys.create.create",
17675	//   "parameterOrder": [
17676	//     "parent"
17677	//   ],
17678	//   "parameters": {
17679	//     "parent": {
17680	//       "description": "Parent of a developer app key in the form\n`organizations/{org}/developers/{developer}/apps`",
17681	//       "location": "path",
17682	//       "pattern": "^organizations/[^/]+/developers/[^/]+/apps/[^/]+$",
17683	//       "required": true,
17684	//       "type": "string"
17685	//     }
17686	//   },
17687	//   "path": "v1/{+parent}/keys/create",
17688	//   "request": {
17689	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17690	//   },
17691	//   "response": {
17692	//     "$ref": "GoogleCloudApigeeV1DeveloperAppKey"
17693	//   },
17694	//   "scopes": [
17695	//     "https://www.googleapis.com/auth/cloud-platform"
17696	//   ]
17697	// }
17698
17699}
17700
17701// method id "apigee.organizations.developers.attributes.delete":
17702
17703type OrganizationsDevelopersAttributesDeleteCall struct {
17704	s          *Service
17705	name       string
17706	urlParams_ gensupport.URLParams
17707	ctx_       context.Context
17708	header_    http.Header
17709}
17710
17711// Delete: Deletes an attribute of a Developer resource
17712// Apigee recommends using the developer email in the API call.
17713// Developer ID
17714// is generated internally and is not guaranteed to stay the same over
17715// time.
17716// For example, Apigee could change the format or length of this
17717// variable.
17718func (r *OrganizationsDevelopersAttributesService) Delete(name string) *OrganizationsDevelopersAttributesDeleteCall {
17719	c := &OrganizationsDevelopersAttributesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17720	c.name = name
17721	return c
17722}
17723
17724// Fields allows partial responses to be retrieved. See
17725// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17726// for more information.
17727func (c *OrganizationsDevelopersAttributesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesDeleteCall {
17728	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17729	return c
17730}
17731
17732// Context sets the context to be used in this call's Do method. Any
17733// pending HTTP request will be aborted if the provided context is
17734// canceled.
17735func (c *OrganizationsDevelopersAttributesDeleteCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesDeleteCall {
17736	c.ctx_ = ctx
17737	return c
17738}
17739
17740// Header returns an http.Header that can be modified by the caller to
17741// add HTTP headers to the request.
17742func (c *OrganizationsDevelopersAttributesDeleteCall) Header() http.Header {
17743	if c.header_ == nil {
17744		c.header_ = make(http.Header)
17745	}
17746	return c.header_
17747}
17748
17749func (c *OrganizationsDevelopersAttributesDeleteCall) doRequest(alt string) (*http.Response, error) {
17750	reqHeaders := make(http.Header)
17751	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17752	for k, v := range c.header_ {
17753		reqHeaders[k] = v
17754	}
17755	reqHeaders.Set("User-Agent", c.s.userAgent())
17756	var body io.Reader = nil
17757	c.urlParams_.Set("alt", alt)
17758	c.urlParams_.Set("prettyPrint", "false")
17759	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17760	urls += "?" + c.urlParams_.Encode()
17761	req, err := http.NewRequest("DELETE", urls, body)
17762	if err != nil {
17763		return nil, err
17764	}
17765	req.Header = reqHeaders
17766	googleapi.Expand(req.URL, map[string]string{
17767		"name": c.name,
17768	})
17769	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17770}
17771
17772// Do executes the "apigee.organizations.developers.attributes.delete" call.
17773// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
17774// non-nil. Any non-2xx status code is an error. Response headers are in
17775// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
17776// response was returned at all) in error.(*googleapi.Error).Header. Use
17777// googleapi.IsNotModified to check whether the returned error was
17778// because http.StatusNotModified was returned.
17779func (c *OrganizationsDevelopersAttributesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
17780	gensupport.SetOptions(c.urlParams_, opts...)
17781	res, err := c.doRequest("json")
17782	if res != nil && res.StatusCode == http.StatusNotModified {
17783		if res.Body != nil {
17784			res.Body.Close()
17785		}
17786		return nil, &googleapi.Error{
17787			Code:   res.StatusCode,
17788			Header: res.Header,
17789		}
17790	}
17791	if err != nil {
17792		return nil, err
17793	}
17794	defer googleapi.CloseBody(res)
17795	if err := googleapi.CheckResponse(res); err != nil {
17796		return nil, err
17797	}
17798	ret := &GoogleCloudApigeeV1Attribute{
17799		ServerResponse: googleapi.ServerResponse{
17800			Header:         res.Header,
17801			HTTPStatusCode: res.StatusCode,
17802		},
17803	}
17804	target := &ret
17805	if err := gensupport.DecodeResponse(target, res); err != nil {
17806		return nil, err
17807	}
17808	return ret, nil
17809	// {
17810	//   "description": "Deletes an attribute of a Developer resource\nApigee recommends using the developer email in the API call. Developer ID\nis generated internally and is not guaranteed to stay the same over time.\nFor example, Apigee could change the format or length of this variable.",
17811	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
17812	//   "httpMethod": "DELETE",
17813	//   "id": "apigee.organizations.developers.attributes.delete",
17814	//   "parameterOrder": [
17815	//     "name"
17816	//   ],
17817	//   "parameters": {
17818	//     "name": {
17819	//       "description": "Required. The name of the attribute for a developer.\nMust be of the form\n`organizations/{org}/developers/{developer}/attributes/{attribute}`",
17820	//       "location": "path",
17821	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
17822	//       "required": true,
17823	//       "type": "string"
17824	//     }
17825	//   },
17826	//   "path": "v1/{+name}",
17827	//   "response": {
17828	//     "$ref": "GoogleCloudApigeeV1Attribute"
17829	//   },
17830	//   "scopes": [
17831	//     "https://www.googleapis.com/auth/cloud-platform"
17832	//   ]
17833	// }
17834
17835}
17836
17837// method id "apigee.organizations.developers.attributes.get":
17838
17839type OrganizationsDevelopersAttributesGetCall struct {
17840	s            *Service
17841	name         string
17842	urlParams_   gensupport.URLParams
17843	ifNoneMatch_ string
17844	ctx_         context.Context
17845	header_      http.Header
17846}
17847
17848// Get: Get developer attributes. Apigee recommends using the developer
17849// email in
17850// the API call. Developer ID is generated internally and is not
17851// guaranteed
17852// to stay the same over time. For example, Apigee could change the
17853// format or
17854// length of this variable.
17855func (r *OrganizationsDevelopersAttributesService) Get(name string) *OrganizationsDevelopersAttributesGetCall {
17856	c := &OrganizationsDevelopersAttributesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17857	c.name = name
17858	return c
17859}
17860
17861// Fields allows partial responses to be retrieved. See
17862// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17863// for more information.
17864func (c *OrganizationsDevelopersAttributesGetCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesGetCall {
17865	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17866	return c
17867}
17868
17869// IfNoneMatch sets the optional parameter which makes the operation
17870// fail if the object's ETag matches the given value. This is useful for
17871// getting updates only after the object has changed since the last
17872// request. Use googleapi.IsNotModified to check whether the response
17873// error from Do is the result of In-None-Match.
17874func (c *OrganizationsDevelopersAttributesGetCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesGetCall {
17875	c.ifNoneMatch_ = entityTag
17876	return c
17877}
17878
17879// Context sets the context to be used in this call's Do method. Any
17880// pending HTTP request will be aborted if the provided context is
17881// canceled.
17882func (c *OrganizationsDevelopersAttributesGetCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesGetCall {
17883	c.ctx_ = ctx
17884	return c
17885}
17886
17887// Header returns an http.Header that can be modified by the caller to
17888// add HTTP headers to the request.
17889func (c *OrganizationsDevelopersAttributesGetCall) Header() http.Header {
17890	if c.header_ == nil {
17891		c.header_ = make(http.Header)
17892	}
17893	return c.header_
17894}
17895
17896func (c *OrganizationsDevelopersAttributesGetCall) doRequest(alt string) (*http.Response, error) {
17897	reqHeaders := make(http.Header)
17898	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
17899	for k, v := range c.header_ {
17900		reqHeaders[k] = v
17901	}
17902	reqHeaders.Set("User-Agent", c.s.userAgent())
17903	if c.ifNoneMatch_ != "" {
17904		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17905	}
17906	var body io.Reader = nil
17907	c.urlParams_.Set("alt", alt)
17908	c.urlParams_.Set("prettyPrint", "false")
17909	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17910	urls += "?" + c.urlParams_.Encode()
17911	req, err := http.NewRequest("GET", urls, body)
17912	if err != nil {
17913		return nil, err
17914	}
17915	req.Header = reqHeaders
17916	googleapi.Expand(req.URL, map[string]string{
17917		"name": c.name,
17918	})
17919	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17920}
17921
17922// Do executes the "apigee.organizations.developers.attributes.get" call.
17923// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
17924// non-nil. Any non-2xx status code is an error. Response headers are in
17925// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
17926// response was returned at all) in error.(*googleapi.Error).Header. Use
17927// googleapi.IsNotModified to check whether the returned error was
17928// because http.StatusNotModified was returned.
17929func (c *OrganizationsDevelopersAttributesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
17930	gensupport.SetOptions(c.urlParams_, opts...)
17931	res, err := c.doRequest("json")
17932	if res != nil && res.StatusCode == http.StatusNotModified {
17933		if res.Body != nil {
17934			res.Body.Close()
17935		}
17936		return nil, &googleapi.Error{
17937			Code:   res.StatusCode,
17938			Header: res.Header,
17939		}
17940	}
17941	if err != nil {
17942		return nil, err
17943	}
17944	defer googleapi.CloseBody(res)
17945	if err := googleapi.CheckResponse(res); err != nil {
17946		return nil, err
17947	}
17948	ret := &GoogleCloudApigeeV1Attribute{
17949		ServerResponse: googleapi.ServerResponse{
17950			Header:         res.Header,
17951			HTTPStatusCode: res.StatusCode,
17952		},
17953	}
17954	target := &ret
17955	if err := gensupport.DecodeResponse(target, res); err != nil {
17956		return nil, err
17957	}
17958	return ret, nil
17959	// {
17960	//   "description": "Get developer attributes. Apigee recommends using the developer email in\nthe API call. Developer ID is generated internally and is not guaranteed\nto stay the same over time. For example, Apigee could change the format or\nlength of this variable.",
17961	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
17962	//   "httpMethod": "GET",
17963	//   "id": "apigee.organizations.developers.attributes.get",
17964	//   "parameterOrder": [
17965	//     "name"
17966	//   ],
17967	//   "parameters": {
17968	//     "name": {
17969	//       "description": "Required. The name of the attribute for a developer.\nMust be of the form\n`organizations/{org}/developers/{developer}/attributes/{attribute}`",
17970	//       "location": "path",
17971	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
17972	//       "required": true,
17973	//       "type": "string"
17974	//     }
17975	//   },
17976	//   "path": "v1/{+name}",
17977	//   "response": {
17978	//     "$ref": "GoogleCloudApigeeV1Attribute"
17979	//   },
17980	//   "scopes": [
17981	//     "https://www.googleapis.com/auth/cloud-platform"
17982	//   ]
17983	// }
17984
17985}
17986
17987// method id "apigee.organizations.developers.attributes.list":
17988
17989type OrganizationsDevelopersAttributesListCall struct {
17990	s            *Service
17991	parent       string
17992	urlParams_   gensupport.URLParams
17993	ifNoneMatch_ string
17994	ctx_         context.Context
17995	header_      http.Header
17996}
17997
17998// List: Returns a list of all developer attributes. Apigee recommends
17999// using the
18000// developer email in the API call. Developer ID is generated internally
18001// and
18002// is not guaranteed to stay the same over time. For example, Apigee
18003// could
18004// change the format or length of this variable.
18005func (r *OrganizationsDevelopersAttributesService) List(parent string) *OrganizationsDevelopersAttributesListCall {
18006	c := &OrganizationsDevelopersAttributesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18007	c.parent = parent
18008	return c
18009}
18010
18011// Fields allows partial responses to be retrieved. See
18012// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18013// for more information.
18014func (c *OrganizationsDevelopersAttributesListCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesListCall {
18015	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18016	return c
18017}
18018
18019// IfNoneMatch sets the optional parameter which makes the operation
18020// fail if the object's ETag matches the given value. This is useful for
18021// getting updates only after the object has changed since the last
18022// request. Use googleapi.IsNotModified to check whether the response
18023// error from Do is the result of In-None-Match.
18024func (c *OrganizationsDevelopersAttributesListCall) IfNoneMatch(entityTag string) *OrganizationsDevelopersAttributesListCall {
18025	c.ifNoneMatch_ = entityTag
18026	return c
18027}
18028
18029// Context sets the context to be used in this call's Do method. Any
18030// pending HTTP request will be aborted if the provided context is
18031// canceled.
18032func (c *OrganizationsDevelopersAttributesListCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesListCall {
18033	c.ctx_ = ctx
18034	return c
18035}
18036
18037// Header returns an http.Header that can be modified by the caller to
18038// add HTTP headers to the request.
18039func (c *OrganizationsDevelopersAttributesListCall) Header() http.Header {
18040	if c.header_ == nil {
18041		c.header_ = make(http.Header)
18042	}
18043	return c.header_
18044}
18045
18046func (c *OrganizationsDevelopersAttributesListCall) doRequest(alt string) (*http.Response, error) {
18047	reqHeaders := make(http.Header)
18048	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18049	for k, v := range c.header_ {
18050		reqHeaders[k] = v
18051	}
18052	reqHeaders.Set("User-Agent", c.s.userAgent())
18053	if c.ifNoneMatch_ != "" {
18054		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18055	}
18056	var body io.Reader = nil
18057	c.urlParams_.Set("alt", alt)
18058	c.urlParams_.Set("prettyPrint", "false")
18059	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/attributes")
18060	urls += "?" + c.urlParams_.Encode()
18061	req, err := http.NewRequest("GET", urls, body)
18062	if err != nil {
18063		return nil, err
18064	}
18065	req.Header = reqHeaders
18066	googleapi.Expand(req.URL, map[string]string{
18067		"parent": c.parent,
18068	})
18069	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18070}
18071
18072// Do executes the "apigee.organizations.developers.attributes.list" call.
18073// Exactly one of *GoogleCloudApigeeV1Attributes or error will be
18074// non-nil. Any non-2xx status code is an error. Response headers are in
18075// either *GoogleCloudApigeeV1Attributes.ServerResponse.Header or (if a
18076// response was returned at all) in error.(*googleapi.Error).Header. Use
18077// googleapi.IsNotModified to check whether the returned error was
18078// because http.StatusNotModified was returned.
18079func (c *OrganizationsDevelopersAttributesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attributes, error) {
18080	gensupport.SetOptions(c.urlParams_, opts...)
18081	res, err := c.doRequest("json")
18082	if res != nil && res.StatusCode == http.StatusNotModified {
18083		if res.Body != nil {
18084			res.Body.Close()
18085		}
18086		return nil, &googleapi.Error{
18087			Code:   res.StatusCode,
18088			Header: res.Header,
18089		}
18090	}
18091	if err != nil {
18092		return nil, err
18093	}
18094	defer googleapi.CloseBody(res)
18095	if err := googleapi.CheckResponse(res); err != nil {
18096		return nil, err
18097	}
18098	ret := &GoogleCloudApigeeV1Attributes{
18099		ServerResponse: googleapi.ServerResponse{
18100			Header:         res.Header,
18101			HTTPStatusCode: res.StatusCode,
18102		},
18103	}
18104	target := &ret
18105	if err := gensupport.DecodeResponse(target, res); err != nil {
18106		return nil, err
18107	}
18108	return ret, nil
18109	// {
18110	//   "description": "Returns a list of all developer attributes. Apigee recommends using the\ndeveloper email in the API call. Developer ID is generated internally and\nis not guaranteed to stay the same over time. For example, Apigee could\nchange the format or length of this variable.",
18111	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes",
18112	//   "httpMethod": "GET",
18113	//   "id": "apigee.organizations.developers.attributes.list",
18114	//   "parameterOrder": [
18115	//     "parent"
18116	//   ],
18117	//   "parameters": {
18118	//     "parent": {
18119	//       "description": "Required. The parent developer for which attributes are being listed.\nMust be of the form `organizations/{org}/developers/{developer}`",
18120	//       "location": "path",
18121	//       "pattern": "^organizations/[^/]+/developers/[^/]+$",
18122	//       "required": true,
18123	//       "type": "string"
18124	//     }
18125	//   },
18126	//   "path": "v1/{+parent}/attributes",
18127	//   "response": {
18128	//     "$ref": "GoogleCloudApigeeV1Attributes"
18129	//   },
18130	//   "scopes": [
18131	//     "https://www.googleapis.com/auth/cloud-platform"
18132	//   ]
18133	// }
18134
18135}
18136
18137// method id "apigee.organizations.developers.attributes.updateDeveloperAttribute":
18138
18139type OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall struct {
18140	s                            *Service
18141	name                         string
18142	googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute
18143	urlParams_                   gensupport.URLParams
18144	ctx_                         context.Context
18145	header_                      http.Header
18146}
18147
18148// UpdateDeveloperAttribute: Update developer attribute. OAuth access
18149// tokens and Key Management Service
18150// (KMS) entities (Apps, Developers, API Products) are cached for 180
18151// seconds
18152// (current default). Any custom attributes associated with entities
18153// also get
18154// cached for at least 180 seconds after entity is accessed during
18155// runtime.
18156// This also means the ExpiresIn element on the OAuthV2 policy won't be
18157// able
18158// to expire an access token in less than 180 seconds. Apigee
18159// recommends
18160// using the developer email in the API call. Developer ID is
18161// generated
18162// internally and is not guaranteed to stay the same over time. For
18163// example,
18164// Apigee could change the format or length of this variable.
18165func (r *OrganizationsDevelopersAttributesService) UpdateDeveloperAttribute(name string, googlecloudapigeev1attribute *GoogleCloudApigeeV1Attribute) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
18166	c := &OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18167	c.name = name
18168	c.googlecloudapigeev1attribute = googlecloudapigeev1attribute
18169	return c
18170}
18171
18172// Fields allows partial responses to be retrieved. See
18173// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18174// for more information.
18175func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Fields(s ...googleapi.Field) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
18176	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18177	return c
18178}
18179
18180// Context sets the context to be used in this call's Do method. Any
18181// pending HTTP request will be aborted if the provided context is
18182// canceled.
18183func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Context(ctx context.Context) *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall {
18184	c.ctx_ = ctx
18185	return c
18186}
18187
18188// Header returns an http.Header that can be modified by the caller to
18189// add HTTP headers to the request.
18190func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Header() http.Header {
18191	if c.header_ == nil {
18192		c.header_ = make(http.Header)
18193	}
18194	return c.header_
18195}
18196
18197func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) doRequest(alt string) (*http.Response, error) {
18198	reqHeaders := make(http.Header)
18199	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18200	for k, v := range c.header_ {
18201		reqHeaders[k] = v
18202	}
18203	reqHeaders.Set("User-Agent", c.s.userAgent())
18204	var body io.Reader = nil
18205	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1attribute)
18206	if err != nil {
18207		return nil, err
18208	}
18209	reqHeaders.Set("Content-Type", "application/json")
18210	c.urlParams_.Set("alt", alt)
18211	c.urlParams_.Set("prettyPrint", "false")
18212	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18213	urls += "?" + c.urlParams_.Encode()
18214	req, err := http.NewRequest("POST", urls, body)
18215	if err != nil {
18216		return nil, err
18217	}
18218	req.Header = reqHeaders
18219	googleapi.Expand(req.URL, map[string]string{
18220		"name": c.name,
18221	})
18222	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18223}
18224
18225// Do executes the "apigee.organizations.developers.attributes.updateDeveloperAttribute" call.
18226// Exactly one of *GoogleCloudApigeeV1Attribute or error will be
18227// non-nil. Any non-2xx status code is an error. Response headers are in
18228// either *GoogleCloudApigeeV1Attribute.ServerResponse.Header or (if a
18229// response was returned at all) in error.(*googleapi.Error).Header. Use
18230// googleapi.IsNotModified to check whether the returned error was
18231// because http.StatusNotModified was returned.
18232func (c *OrganizationsDevelopersAttributesUpdateDeveloperAttributeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Attribute, error) {
18233	gensupport.SetOptions(c.urlParams_, opts...)
18234	res, err := c.doRequest("json")
18235	if res != nil && res.StatusCode == http.StatusNotModified {
18236		if res.Body != nil {
18237			res.Body.Close()
18238		}
18239		return nil, &googleapi.Error{
18240			Code:   res.StatusCode,
18241			Header: res.Header,
18242		}
18243	}
18244	if err != nil {
18245		return nil, err
18246	}
18247	defer googleapi.CloseBody(res)
18248	if err := googleapi.CheckResponse(res); err != nil {
18249		return nil, err
18250	}
18251	ret := &GoogleCloudApigeeV1Attribute{
18252		ServerResponse: googleapi.ServerResponse{
18253			Header:         res.Header,
18254			HTTPStatusCode: res.StatusCode,
18255		},
18256	}
18257	target := &ret
18258	if err := gensupport.DecodeResponse(target, res); err != nil {
18259		return nil, err
18260	}
18261	return ret, nil
18262	// {
18263	//   "description": "Update developer attribute. OAuth access tokens and Key Management Service\n(KMS) entities (Apps, Developers, API Products) are cached for 180 seconds\n(current default). Any custom attributes associated with entities also get\ncached for at least 180 seconds after entity is accessed during runtime.\nThis also means the ExpiresIn element on the OAuthV2 policy won't be able\nto expire an access token in less than 180 seconds. Apigee recommends\nusing the developer email in the API call. Developer ID is generated\ninternally and is not guaranteed to stay the same over time. For example,\nApigee could change the format or length of this variable.",
18264	//   "flatPath": "v1/organizations/{organizationsId}/developers/{developersId}/attributes/{attributesId}",
18265	//   "httpMethod": "POST",
18266	//   "id": "apigee.organizations.developers.attributes.updateDeveloperAttribute",
18267	//   "parameterOrder": [
18268	//     "name"
18269	//   ],
18270	//   "parameters": {
18271	//     "name": {
18272	//       "description": "Required. The name of the attribute for a developer.\nMust be of the form\n`organizations/{org}/developers/{developer}/attributes/{attribute}`",
18273	//       "location": "path",
18274	//       "pattern": "^organizations/[^/]+/developers/[^/]+/attributes/[^/]+$",
18275	//       "required": true,
18276	//       "type": "string"
18277	//     }
18278	//   },
18279	//   "path": "v1/{+name}",
18280	//   "request": {
18281	//     "$ref": "GoogleCloudApigeeV1Attribute"
18282	//   },
18283	//   "response": {
18284	//     "$ref": "GoogleCloudApigeeV1Attribute"
18285	//   },
18286	//   "scopes": [
18287	//     "https://www.googleapis.com/auth/cloud-platform"
18288	//   ]
18289	// }
18290
18291}
18292
18293// method id "apigee.organizations.environments.create":
18294
18295type OrganizationsEnvironmentsCreateCall struct {
18296	s                              *Service
18297	parent                         string
18298	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
18299	urlParams_                     gensupport.URLParams
18300	ctx_                           context.Context
18301	header_                        http.Header
18302}
18303
18304// Create: Creates an Environment in the specified organization.
18305func (r *OrganizationsEnvironmentsService) Create(parent string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsCreateCall {
18306	c := &OrganizationsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18307	c.parent = parent
18308	c.googlecloudapigeev1environment = googlecloudapigeev1environment
18309	return c
18310}
18311
18312// Name sets the optional parameter "name": The ID to give the new
18313// Environment. The Environment ID may
18314// alternatively be specified in the request body in the
18315// environment_id field.
18316func (c *OrganizationsEnvironmentsCreateCall) Name(name string) *OrganizationsEnvironmentsCreateCall {
18317	c.urlParams_.Set("name", name)
18318	return c
18319}
18320
18321// Fields allows partial responses to be retrieved. See
18322// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18323// for more information.
18324func (c *OrganizationsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCreateCall {
18325	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18326	return c
18327}
18328
18329// Context sets the context to be used in this call's Do method. Any
18330// pending HTTP request will be aborted if the provided context is
18331// canceled.
18332func (c *OrganizationsEnvironmentsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsCreateCall {
18333	c.ctx_ = ctx
18334	return c
18335}
18336
18337// Header returns an http.Header that can be modified by the caller to
18338// add HTTP headers to the request.
18339func (c *OrganizationsEnvironmentsCreateCall) Header() http.Header {
18340	if c.header_ == nil {
18341		c.header_ = make(http.Header)
18342	}
18343	return c.header_
18344}
18345
18346func (c *OrganizationsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
18347	reqHeaders := make(http.Header)
18348	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18349	for k, v := range c.header_ {
18350		reqHeaders[k] = v
18351	}
18352	reqHeaders.Set("User-Agent", c.s.userAgent())
18353	var body io.Reader = nil
18354	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
18355	if err != nil {
18356		return nil, err
18357	}
18358	reqHeaders.Set("Content-Type", "application/json")
18359	c.urlParams_.Set("alt", alt)
18360	c.urlParams_.Set("prettyPrint", "false")
18361	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
18362	urls += "?" + c.urlParams_.Encode()
18363	req, err := http.NewRequest("POST", urls, body)
18364	if err != nil {
18365		return nil, err
18366	}
18367	req.Header = reqHeaders
18368	googleapi.Expand(req.URL, map[string]string{
18369		"parent": c.parent,
18370	})
18371	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18372}
18373
18374// Do executes the "apigee.organizations.environments.create" call.
18375// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
18376// Any non-2xx status code is an error. Response headers are in either
18377// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
18378// was returned at all) in error.(*googleapi.Error).Header. Use
18379// googleapi.IsNotModified to check whether the returned error was
18380// because http.StatusNotModified was returned.
18381func (c *OrganizationsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18382	gensupport.SetOptions(c.urlParams_, opts...)
18383	res, err := c.doRequest("json")
18384	if res != nil && res.StatusCode == http.StatusNotModified {
18385		if res.Body != nil {
18386			res.Body.Close()
18387		}
18388		return nil, &googleapi.Error{
18389			Code:   res.StatusCode,
18390			Header: res.Header,
18391		}
18392	}
18393	if err != nil {
18394		return nil, err
18395	}
18396	defer googleapi.CloseBody(res)
18397	if err := googleapi.CheckResponse(res); err != nil {
18398		return nil, err
18399	}
18400	ret := &GoogleLongrunningOperation{
18401		ServerResponse: googleapi.ServerResponse{
18402			Header:         res.Header,
18403			HTTPStatusCode: res.StatusCode,
18404		},
18405	}
18406	target := &ret
18407	if err := gensupport.DecodeResponse(target, res); err != nil {
18408		return nil, err
18409	}
18410	return ret, nil
18411	// {
18412	//   "description": "Creates an Environment in the specified organization.",
18413	//   "flatPath": "v1/organizations/{organizationsId}/environments",
18414	//   "httpMethod": "POST",
18415	//   "id": "apigee.organizations.environments.create",
18416	//   "parameterOrder": [
18417	//     "parent"
18418	//   ],
18419	//   "parameters": {
18420	//     "name": {
18421	//       "description": "Optional. The ID to give the new Environment. The Environment ID may\nalternatively be specified in the request body in the\nenvironment_id field.",
18422	//       "location": "query",
18423	//       "type": "string"
18424	//     },
18425	//     "parent": {
18426	//       "description": "Required. The parent organization name under which the Environment will\nbe created. Must be of the form `organizations/{org}`.",
18427	//       "location": "path",
18428	//       "pattern": "^organizations/[^/]+$",
18429	//       "required": true,
18430	//       "type": "string"
18431	//     }
18432	//   },
18433	//   "path": "v1/{+parent}/environments",
18434	//   "request": {
18435	//     "$ref": "GoogleCloudApigeeV1Environment"
18436	//   },
18437	//   "response": {
18438	//     "$ref": "GoogleLongrunningOperation"
18439	//   },
18440	//   "scopes": [
18441	//     "https://www.googleapis.com/auth/cloud-platform"
18442	//   ]
18443	// }
18444
18445}
18446
18447// method id "apigee.organizations.environments.delete":
18448
18449type OrganizationsEnvironmentsDeleteCall struct {
18450	s          *Service
18451	name       string
18452	urlParams_ gensupport.URLParams
18453	ctx_       context.Context
18454	header_    http.Header
18455}
18456
18457// Delete: Deletes an Environment from an organization. Returns the
18458// deleted
18459// Environment resource.
18460func (r *OrganizationsEnvironmentsService) Delete(name string) *OrganizationsEnvironmentsDeleteCall {
18461	c := &OrganizationsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18462	c.name = name
18463	return c
18464}
18465
18466// Fields allows partial responses to be retrieved. See
18467// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18468// for more information.
18469func (c *OrganizationsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeleteCall {
18470	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18471	return c
18472}
18473
18474// Context sets the context to be used in this call's Do method. Any
18475// pending HTTP request will be aborted if the provided context is
18476// canceled.
18477func (c *OrganizationsEnvironmentsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeleteCall {
18478	c.ctx_ = ctx
18479	return c
18480}
18481
18482// Header returns an http.Header that can be modified by the caller to
18483// add HTTP headers to the request.
18484func (c *OrganizationsEnvironmentsDeleteCall) Header() http.Header {
18485	if c.header_ == nil {
18486		c.header_ = make(http.Header)
18487	}
18488	return c.header_
18489}
18490
18491func (c *OrganizationsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
18492	reqHeaders := make(http.Header)
18493	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18494	for k, v := range c.header_ {
18495		reqHeaders[k] = v
18496	}
18497	reqHeaders.Set("User-Agent", c.s.userAgent())
18498	var body io.Reader = nil
18499	c.urlParams_.Set("alt", alt)
18500	c.urlParams_.Set("prettyPrint", "false")
18501	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18502	urls += "?" + c.urlParams_.Encode()
18503	req, err := http.NewRequest("DELETE", urls, body)
18504	if err != nil {
18505		return nil, err
18506	}
18507	req.Header = reqHeaders
18508	googleapi.Expand(req.URL, map[string]string{
18509		"name": c.name,
18510	})
18511	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18512}
18513
18514// Do executes the "apigee.organizations.environments.delete" call.
18515// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
18516// Any non-2xx status code is an error. Response headers are in either
18517// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
18518// was returned at all) in error.(*googleapi.Error).Header. Use
18519// googleapi.IsNotModified to check whether the returned error was
18520// because http.StatusNotModified was returned.
18521func (c *OrganizationsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18522	gensupport.SetOptions(c.urlParams_, opts...)
18523	res, err := c.doRequest("json")
18524	if res != nil && res.StatusCode == http.StatusNotModified {
18525		if res.Body != nil {
18526			res.Body.Close()
18527		}
18528		return nil, &googleapi.Error{
18529			Code:   res.StatusCode,
18530			Header: res.Header,
18531		}
18532	}
18533	if err != nil {
18534		return nil, err
18535	}
18536	defer googleapi.CloseBody(res)
18537	if err := googleapi.CheckResponse(res); err != nil {
18538		return nil, err
18539	}
18540	ret := &GoogleLongrunningOperation{
18541		ServerResponse: googleapi.ServerResponse{
18542			Header:         res.Header,
18543			HTTPStatusCode: res.StatusCode,
18544		},
18545	}
18546	target := &ret
18547	if err := gensupport.DecodeResponse(target, res); err != nil {
18548		return nil, err
18549	}
18550	return ret, nil
18551	// {
18552	//   "description": "Deletes an Environment from an organization. Returns the deleted\nEnvironment resource.",
18553	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
18554	//   "httpMethod": "DELETE",
18555	//   "id": "apigee.organizations.environments.delete",
18556	//   "parameterOrder": [
18557	//     "name"
18558	//   ],
18559	//   "parameters": {
18560	//     "name": {
18561	//       "description": "Required. The name of the Environment to delete. Must be\nof the form `organizations/{org}/environments/{env}`.",
18562	//       "location": "path",
18563	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
18564	//       "required": true,
18565	//       "type": "string"
18566	//     }
18567	//   },
18568	//   "path": "v1/{+name}",
18569	//   "response": {
18570	//     "$ref": "GoogleLongrunningOperation"
18571	//   },
18572	//   "scopes": [
18573	//     "https://www.googleapis.com/auth/cloud-platform"
18574	//   ]
18575	// }
18576
18577}
18578
18579// method id "apigee.organizations.environments.get":
18580
18581type OrganizationsEnvironmentsGetCall struct {
18582	s            *Service
18583	name         string
18584	urlParams_   gensupport.URLParams
18585	ifNoneMatch_ string
18586	ctx_         context.Context
18587	header_      http.Header
18588}
18589
18590// Get: Gets an Environment.
18591func (r *OrganizationsEnvironmentsService) Get(name string) *OrganizationsEnvironmentsGetCall {
18592	c := &OrganizationsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18593	c.name = name
18594	return c
18595}
18596
18597// Fields allows partial responses to be retrieved. See
18598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18599// for more information.
18600func (c *OrganizationsEnvironmentsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetCall {
18601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18602	return c
18603}
18604
18605// IfNoneMatch sets the optional parameter which makes the operation
18606// fail if the object's ETag matches the given value. This is useful for
18607// getting updates only after the object has changed since the last
18608// request. Use googleapi.IsNotModified to check whether the response
18609// error from Do is the result of In-None-Match.
18610func (c *OrganizationsEnvironmentsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetCall {
18611	c.ifNoneMatch_ = entityTag
18612	return c
18613}
18614
18615// Context sets the context to be used in this call's Do method. Any
18616// pending HTTP request will be aborted if the provided context is
18617// canceled.
18618func (c *OrganizationsEnvironmentsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetCall {
18619	c.ctx_ = ctx
18620	return c
18621}
18622
18623// Header returns an http.Header that can be modified by the caller to
18624// add HTTP headers to the request.
18625func (c *OrganizationsEnvironmentsGetCall) Header() http.Header {
18626	if c.header_ == nil {
18627		c.header_ = make(http.Header)
18628	}
18629	return c.header_
18630}
18631
18632func (c *OrganizationsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
18633	reqHeaders := make(http.Header)
18634	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18635	for k, v := range c.header_ {
18636		reqHeaders[k] = v
18637	}
18638	reqHeaders.Set("User-Agent", c.s.userAgent())
18639	if c.ifNoneMatch_ != "" {
18640		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18641	}
18642	var body io.Reader = nil
18643	c.urlParams_.Set("alt", alt)
18644	c.urlParams_.Set("prettyPrint", "false")
18645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18646	urls += "?" + c.urlParams_.Encode()
18647	req, err := http.NewRequest("GET", urls, body)
18648	if err != nil {
18649		return nil, err
18650	}
18651	req.Header = reqHeaders
18652	googleapi.Expand(req.URL, map[string]string{
18653		"name": c.name,
18654	})
18655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18656}
18657
18658// Do executes the "apigee.organizations.environments.get" call.
18659// Exactly one of *GoogleCloudApigeeV1Environment or error will be
18660// non-nil. Any non-2xx status code is an error. Response headers are in
18661// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
18662// response was returned at all) in error.(*googleapi.Error).Header. Use
18663// googleapi.IsNotModified to check whether the returned error was
18664// because http.StatusNotModified was returned.
18665func (c *OrganizationsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
18666	gensupport.SetOptions(c.urlParams_, opts...)
18667	res, err := c.doRequest("json")
18668	if res != nil && res.StatusCode == http.StatusNotModified {
18669		if res.Body != nil {
18670			res.Body.Close()
18671		}
18672		return nil, &googleapi.Error{
18673			Code:   res.StatusCode,
18674			Header: res.Header,
18675		}
18676	}
18677	if err != nil {
18678		return nil, err
18679	}
18680	defer googleapi.CloseBody(res)
18681	if err := googleapi.CheckResponse(res); err != nil {
18682		return nil, err
18683	}
18684	ret := &GoogleCloudApigeeV1Environment{
18685		ServerResponse: googleapi.ServerResponse{
18686			Header:         res.Header,
18687			HTTPStatusCode: res.StatusCode,
18688		},
18689	}
18690	target := &ret
18691	if err := gensupport.DecodeResponse(target, res); err != nil {
18692		return nil, err
18693	}
18694	return ret, nil
18695	// {
18696	//   "description": "Gets an Environment.",
18697	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
18698	//   "httpMethod": "GET",
18699	//   "id": "apigee.organizations.environments.get",
18700	//   "parameterOrder": [
18701	//     "name"
18702	//   ],
18703	//   "parameters": {
18704	//     "name": {
18705	//       "description": "Required. The name of the Environment to get. Must be of the form\n`organizations/{org}/environments/{env}`.",
18706	//       "location": "path",
18707	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
18708	//       "required": true,
18709	//       "type": "string"
18710	//     }
18711	//   },
18712	//   "path": "v1/{+name}",
18713	//   "response": {
18714	//     "$ref": "GoogleCloudApigeeV1Environment"
18715	//   },
18716	//   "scopes": [
18717	//     "https://www.googleapis.com/auth/cloud-platform"
18718	//   ]
18719	// }
18720
18721}
18722
18723// method id "apigee.organizations.environments.getDatalocation":
18724
18725type OrganizationsEnvironmentsGetDatalocationCall struct {
18726	s            *Service
18727	name         string
18728	urlParams_   gensupport.URLParams
18729	ifNoneMatch_ string
18730	ctx_         context.Context
18731	header_      http.Header
18732}
18733
18734// GetDatalocation: Get Google Cloud Storage (GCS) signed url for
18735// specific organization and
18736// environment. Collection agent uses this signed url to upload data
18737// to GCS bucket.
18738func (r *OrganizationsEnvironmentsService) GetDatalocation(name string) *OrganizationsEnvironmentsGetDatalocationCall {
18739	c := &OrganizationsEnvironmentsGetDatalocationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18740	c.name = name
18741	return c
18742}
18743
18744// ContentType sets the optional parameter "contentType": Content-Type
18745// for uploaded file.
18746func (c *OrganizationsEnvironmentsGetDatalocationCall) ContentType(contentType string) *OrganizationsEnvironmentsGetDatalocationCall {
18747	c.urlParams_.Set("contentType", contentType)
18748	return c
18749}
18750
18751// Dataset sets the optional parameter "dataset": Required. Dataset
18752// could be one of `api`, `mint`, `trace` and `event`
18753func (c *OrganizationsEnvironmentsGetDatalocationCall) Dataset(dataset string) *OrganizationsEnvironmentsGetDatalocationCall {
18754	c.urlParams_.Set("dataset", dataset)
18755	return c
18756}
18757
18758// RelativeFilePath sets the optional parameter "relativeFilePath":
18759// Required. Relative path to the GCS bucket
18760func (c *OrganizationsEnvironmentsGetDatalocationCall) RelativeFilePath(relativeFilePath string) *OrganizationsEnvironmentsGetDatalocationCall {
18761	c.urlParams_.Set("relativeFilePath", relativeFilePath)
18762	return c
18763}
18764
18765// Repo sets the optional parameter "repo": Required. Repository name
18766func (c *OrganizationsEnvironmentsGetDatalocationCall) Repo(repo string) *OrganizationsEnvironmentsGetDatalocationCall {
18767	c.urlParams_.Set("repo", repo)
18768	return c
18769}
18770
18771// Fields allows partial responses to be retrieved. See
18772// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18773// for more information.
18774func (c *OrganizationsEnvironmentsGetDatalocationCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDatalocationCall {
18775	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18776	return c
18777}
18778
18779// IfNoneMatch sets the optional parameter which makes the operation
18780// fail if the object's ETag matches the given value. This is useful for
18781// getting updates only after the object has changed since the last
18782// request. Use googleapi.IsNotModified to check whether the response
18783// error from Do is the result of In-None-Match.
18784func (c *OrganizationsEnvironmentsGetDatalocationCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDatalocationCall {
18785	c.ifNoneMatch_ = entityTag
18786	return c
18787}
18788
18789// Context sets the context to be used in this call's Do method. Any
18790// pending HTTP request will be aborted if the provided context is
18791// canceled.
18792func (c *OrganizationsEnvironmentsGetDatalocationCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDatalocationCall {
18793	c.ctx_ = ctx
18794	return c
18795}
18796
18797// Header returns an http.Header that can be modified by the caller to
18798// add HTTP headers to the request.
18799func (c *OrganizationsEnvironmentsGetDatalocationCall) Header() http.Header {
18800	if c.header_ == nil {
18801		c.header_ = make(http.Header)
18802	}
18803	return c.header_
18804}
18805
18806func (c *OrganizationsEnvironmentsGetDatalocationCall) doRequest(alt string) (*http.Response, error) {
18807	reqHeaders := make(http.Header)
18808	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18809	for k, v := range c.header_ {
18810		reqHeaders[k] = v
18811	}
18812	reqHeaders.Set("User-Agent", c.s.userAgent())
18813	if c.ifNoneMatch_ != "" {
18814		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18815	}
18816	var body io.Reader = nil
18817	c.urlParams_.Set("alt", alt)
18818	c.urlParams_.Set("prettyPrint", "false")
18819	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18820	urls += "?" + c.urlParams_.Encode()
18821	req, err := http.NewRequest("GET", urls, body)
18822	if err != nil {
18823		return nil, err
18824	}
18825	req.Header = reqHeaders
18826	googleapi.Expand(req.URL, map[string]string{
18827		"name": c.name,
18828	})
18829	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18830}
18831
18832// Do executes the "apigee.organizations.environments.getDatalocation" call.
18833// Exactly one of *GoogleCloudApigeeV1DataLocation or error will be
18834// non-nil. Any non-2xx status code is an error. Response headers are in
18835// either *GoogleCloudApigeeV1DataLocation.ServerResponse.Header or (if
18836// a response was returned at all) in error.(*googleapi.Error).Header.
18837// Use googleapi.IsNotModified to check whether the returned error was
18838// because http.StatusNotModified was returned.
18839func (c *OrganizationsEnvironmentsGetDatalocationCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DataLocation, error) {
18840	gensupport.SetOptions(c.urlParams_, opts...)
18841	res, err := c.doRequest("json")
18842	if res != nil && res.StatusCode == http.StatusNotModified {
18843		if res.Body != nil {
18844			res.Body.Close()
18845		}
18846		return nil, &googleapi.Error{
18847			Code:   res.StatusCode,
18848			Header: res.Header,
18849		}
18850	}
18851	if err != nil {
18852		return nil, err
18853	}
18854	defer googleapi.CloseBody(res)
18855	if err := googleapi.CheckResponse(res); err != nil {
18856		return nil, err
18857	}
18858	ret := &GoogleCloudApigeeV1DataLocation{
18859		ServerResponse: googleapi.ServerResponse{
18860			Header:         res.Header,
18861			HTTPStatusCode: res.StatusCode,
18862		},
18863	}
18864	target := &ret
18865	if err := gensupport.DecodeResponse(target, res); err != nil {
18866		return nil, err
18867	}
18868	return ret, nil
18869	// {
18870	//   "description": "Get Google Cloud Storage (GCS) signed url for specific organization and\nenvironment. Collection agent uses this signed url to upload data\nto GCS bucket.",
18871	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/datalocation",
18872	//   "httpMethod": "GET",
18873	//   "id": "apigee.organizations.environments.getDatalocation",
18874	//   "parameterOrder": [
18875	//     "name"
18876	//   ],
18877	//   "parameters": {
18878	//     "contentType": {
18879	//       "description": "Content-Type for uploaded file.",
18880	//       "location": "query",
18881	//       "type": "string"
18882	//     },
18883	//     "dataset": {
18884	//       "description": "Required. Dataset could be one of `api`, `mint`, `trace` and `event`",
18885	//       "location": "query",
18886	//       "type": "string"
18887	//     },
18888	//     "name": {
18889	//       "description": "Required. The parent organization and environment names. Must be of the\nform `organizations/{org}/environments/{env}/datalocation`.",
18890	//       "location": "path",
18891	//       "pattern": "^organizations/[^/]+/environments/[^/]+/datalocation$",
18892	//       "required": true,
18893	//       "type": "string"
18894	//     },
18895	//     "relativeFilePath": {
18896	//       "description": "Required. Relative path to the GCS bucket",
18897	//       "location": "query",
18898	//       "type": "string"
18899	//     },
18900	//     "repo": {
18901	//       "description": "Required. Repository name",
18902	//       "location": "query",
18903	//       "type": "string"
18904	//     }
18905	//   },
18906	//   "path": "v1/{+name}",
18907	//   "response": {
18908	//     "$ref": "GoogleCloudApigeeV1DataLocation"
18909	//   },
18910	//   "scopes": [
18911	//     "https://www.googleapis.com/auth/cloud-platform"
18912	//   ]
18913	// }
18914
18915}
18916
18917// method id "apigee.organizations.environments.getDebugmask":
18918
18919type OrganizationsEnvironmentsGetDebugmaskCall struct {
18920	s            *Service
18921	name         string
18922	urlParams_   gensupport.URLParams
18923	ifNoneMatch_ string
18924	ctx_         context.Context
18925	header_      http.Header
18926}
18927
18928// GetDebugmask: Gets the debug mask singleton resource for an
18929// Environment.
18930func (r *OrganizationsEnvironmentsService) GetDebugmask(name string) *OrganizationsEnvironmentsGetDebugmaskCall {
18931	c := &OrganizationsEnvironmentsGetDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18932	c.name = name
18933	return c
18934}
18935
18936// Fields allows partial responses to be retrieved. See
18937// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18938// for more information.
18939func (c *OrganizationsEnvironmentsGetDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDebugmaskCall {
18940	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18941	return c
18942}
18943
18944// IfNoneMatch sets the optional parameter which makes the operation
18945// fail if the object's ETag matches the given value. This is useful for
18946// getting updates only after the object has changed since the last
18947// request. Use googleapi.IsNotModified to check whether the response
18948// error from Do is the result of In-None-Match.
18949func (c *OrganizationsEnvironmentsGetDebugmaskCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDebugmaskCall {
18950	c.ifNoneMatch_ = entityTag
18951	return c
18952}
18953
18954// Context sets the context to be used in this call's Do method. Any
18955// pending HTTP request will be aborted if the provided context is
18956// canceled.
18957func (c *OrganizationsEnvironmentsGetDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDebugmaskCall {
18958	c.ctx_ = ctx
18959	return c
18960}
18961
18962// Header returns an http.Header that can be modified by the caller to
18963// add HTTP headers to the request.
18964func (c *OrganizationsEnvironmentsGetDebugmaskCall) Header() http.Header {
18965	if c.header_ == nil {
18966		c.header_ = make(http.Header)
18967	}
18968	return c.header_
18969}
18970
18971func (c *OrganizationsEnvironmentsGetDebugmaskCall) doRequest(alt string) (*http.Response, error) {
18972	reqHeaders := make(http.Header)
18973	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
18974	for k, v := range c.header_ {
18975		reqHeaders[k] = v
18976	}
18977	reqHeaders.Set("User-Agent", c.s.userAgent())
18978	if c.ifNoneMatch_ != "" {
18979		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18980	}
18981	var body io.Reader = nil
18982	c.urlParams_.Set("alt", alt)
18983	c.urlParams_.Set("prettyPrint", "false")
18984	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18985	urls += "?" + c.urlParams_.Encode()
18986	req, err := http.NewRequest("GET", urls, body)
18987	if err != nil {
18988		return nil, err
18989	}
18990	req.Header = reqHeaders
18991	googleapi.Expand(req.URL, map[string]string{
18992		"name": c.name,
18993	})
18994	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18995}
18996
18997// Do executes the "apigee.organizations.environments.getDebugmask" call.
18998// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
18999// non-nil. Any non-2xx status code is an error. Response headers are in
19000// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
19001// response was returned at all) in error.(*googleapi.Error).Header. Use
19002// googleapi.IsNotModified to check whether the returned error was
19003// because http.StatusNotModified was returned.
19004func (c *OrganizationsEnvironmentsGetDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
19005	gensupport.SetOptions(c.urlParams_, opts...)
19006	res, err := c.doRequest("json")
19007	if res != nil && res.StatusCode == http.StatusNotModified {
19008		if res.Body != nil {
19009			res.Body.Close()
19010		}
19011		return nil, &googleapi.Error{
19012			Code:   res.StatusCode,
19013			Header: res.Header,
19014		}
19015	}
19016	if err != nil {
19017		return nil, err
19018	}
19019	defer googleapi.CloseBody(res)
19020	if err := googleapi.CheckResponse(res); err != nil {
19021		return nil, err
19022	}
19023	ret := &GoogleCloudApigeeV1DebugMask{
19024		ServerResponse: googleapi.ServerResponse{
19025			Header:         res.Header,
19026			HTTPStatusCode: res.StatusCode,
19027		},
19028	}
19029	target := &ret
19030	if err := gensupport.DecodeResponse(target, res); err != nil {
19031		return nil, err
19032	}
19033	return ret, nil
19034	// {
19035	//   "description": "Gets the debug mask singleton resource for an Environment.",
19036	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
19037	//   "httpMethod": "GET",
19038	//   "id": "apigee.organizations.environments.getDebugmask",
19039	//   "parameterOrder": [
19040	//     "name"
19041	//   ],
19042	//   "parameters": {
19043	//     "name": {
19044	//       "description": "Required. The name of the Environment debug mask to get. Must be of the\nform `organizations/{org}/environments/{env}/debugmask`.",
19045	//       "location": "path",
19046	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
19047	//       "required": true,
19048	//       "type": "string"
19049	//     }
19050	//   },
19051	//   "path": "v1/{+name}",
19052	//   "response": {
19053	//     "$ref": "GoogleCloudApigeeV1DebugMask"
19054	//   },
19055	//   "scopes": [
19056	//     "https://www.googleapis.com/auth/cloud-platform"
19057	//   ]
19058	// }
19059
19060}
19061
19062// method id "apigee.organizations.environments.getDeployedConfig":
19063
19064type OrganizationsEnvironmentsGetDeployedConfigCall struct {
19065	s            *Service
19066	name         string
19067	urlParams_   gensupport.URLParams
19068	ifNoneMatch_ string
19069	ctx_         context.Context
19070	header_      http.Header
19071}
19072
19073// GetDeployedConfig: Gets the deployed config (aka env.json) for an
19074// Environment.
19075func (r *OrganizationsEnvironmentsService) GetDeployedConfig(name string) *OrganizationsEnvironmentsGetDeployedConfigCall {
19076	c := &OrganizationsEnvironmentsGetDeployedConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19077	c.name = name
19078	return c
19079}
19080
19081// Fields allows partial responses to be retrieved. See
19082// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19083// for more information.
19084func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetDeployedConfigCall {
19085	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19086	return c
19087}
19088
19089// IfNoneMatch sets the optional parameter which makes the operation
19090// fail if the object's ETag matches the given value. This is useful for
19091// getting updates only after the object has changed since the last
19092// request. Use googleapi.IsNotModified to check whether the response
19093// error from Do is the result of In-None-Match.
19094func (c *OrganizationsEnvironmentsGetDeployedConfigCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetDeployedConfigCall {
19095	c.ifNoneMatch_ = entityTag
19096	return c
19097}
19098
19099// Context sets the context to be used in this call's Do method. Any
19100// pending HTTP request will be aborted if the provided context is
19101// canceled.
19102func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetDeployedConfigCall {
19103	c.ctx_ = ctx
19104	return c
19105}
19106
19107// Header returns an http.Header that can be modified by the caller to
19108// add HTTP headers to the request.
19109func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Header() http.Header {
19110	if c.header_ == nil {
19111		c.header_ = make(http.Header)
19112	}
19113	return c.header_
19114}
19115
19116func (c *OrganizationsEnvironmentsGetDeployedConfigCall) doRequest(alt string) (*http.Response, error) {
19117	reqHeaders := make(http.Header)
19118	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19119	for k, v := range c.header_ {
19120		reqHeaders[k] = v
19121	}
19122	reqHeaders.Set("User-Agent", c.s.userAgent())
19123	if c.ifNoneMatch_ != "" {
19124		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19125	}
19126	var body io.Reader = nil
19127	c.urlParams_.Set("alt", alt)
19128	c.urlParams_.Set("prettyPrint", "false")
19129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19130	urls += "?" + c.urlParams_.Encode()
19131	req, err := http.NewRequest("GET", urls, body)
19132	if err != nil {
19133		return nil, err
19134	}
19135	req.Header = reqHeaders
19136	googleapi.Expand(req.URL, map[string]string{
19137		"name": c.name,
19138	})
19139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19140}
19141
19142// Do executes the "apigee.organizations.environments.getDeployedConfig" call.
19143// Exactly one of *GoogleCloudApigeeV1EnvironmentConfig or error will be
19144// non-nil. Any non-2xx status code is an error. Response headers are in
19145// either *GoogleCloudApigeeV1EnvironmentConfig.ServerResponse.Header or
19146// (if a response was returned at all) in
19147// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
19148// whether the returned error was because http.StatusNotModified was
19149// returned.
19150func (c *OrganizationsEnvironmentsGetDeployedConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1EnvironmentConfig, error) {
19151	gensupport.SetOptions(c.urlParams_, opts...)
19152	res, err := c.doRequest("json")
19153	if res != nil && res.StatusCode == http.StatusNotModified {
19154		if res.Body != nil {
19155			res.Body.Close()
19156		}
19157		return nil, &googleapi.Error{
19158			Code:   res.StatusCode,
19159			Header: res.Header,
19160		}
19161	}
19162	if err != nil {
19163		return nil, err
19164	}
19165	defer googleapi.CloseBody(res)
19166	if err := googleapi.CheckResponse(res); err != nil {
19167		return nil, err
19168	}
19169	ret := &GoogleCloudApigeeV1EnvironmentConfig{
19170		ServerResponse: googleapi.ServerResponse{
19171			Header:         res.Header,
19172			HTTPStatusCode: res.StatusCode,
19173		},
19174	}
19175	target := &ret
19176	if err := gensupport.DecodeResponse(target, res); err != nil {
19177		return nil, err
19178	}
19179	return ret, nil
19180	// {
19181	//   "description": "Gets the deployed config (aka env.json) for an Environment.",
19182	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployedConfig",
19183	//   "httpMethod": "GET",
19184	//   "id": "apigee.organizations.environments.getDeployedConfig",
19185	//   "parameterOrder": [
19186	//     "name"
19187	//   ],
19188	//   "parameters": {
19189	//     "name": {
19190	//       "description": "Required. The name of the Environment deployed config resource. Must be of\nthe form `organizations/{org}/environments/{env}/deployedConfig`.",
19191	//       "location": "path",
19192	//       "pattern": "^organizations/[^/]+/environments/[^/]+/deployedConfig$",
19193	//       "required": true,
19194	//       "type": "string"
19195	//     }
19196	//   },
19197	//   "path": "v1/{+name}",
19198	//   "response": {
19199	//     "$ref": "GoogleCloudApigeeV1EnvironmentConfig"
19200	//   },
19201	//   "scopes": [
19202	//     "https://www.googleapis.com/auth/cloud-platform"
19203	//   ]
19204	// }
19205
19206}
19207
19208// method id "apigee.organizations.environments.getIamPolicy":
19209
19210type OrganizationsEnvironmentsGetIamPolicyCall struct {
19211	s            *Service
19212	resource     string
19213	urlParams_   gensupport.URLParams
19214	ifNoneMatch_ string
19215	ctx_         context.Context
19216	header_      http.Header
19217}
19218
19219// GetIamPolicy: Gets the IAM policy on an Environment.
19220// Callers must have the permission apigee.environments.getIamPolicy.
19221func (r *OrganizationsEnvironmentsService) GetIamPolicy(resource string) *OrganizationsEnvironmentsGetIamPolicyCall {
19222	c := &OrganizationsEnvironmentsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19223	c.resource = resource
19224	return c
19225}
19226
19227// OptionsRequestedPolicyVersion sets the optional parameter
19228// "options.requestedPolicyVersion": The policy format version to be
19229// returned.
19230//
19231// Valid values are 0, 1, and 3. Requests specifying an invalid value
19232// will be
19233// rejected.
19234//
19235// Requests for policies with any conditional bindings must specify
19236// version 3.
19237// Policies without any conditional bindings may specify any valid value
19238// or
19239// leave the field unset.
19240func (c *OrganizationsEnvironmentsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *OrganizationsEnvironmentsGetIamPolicyCall {
19241	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
19242	return c
19243}
19244
19245// Fields allows partial responses to be retrieved. See
19246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19247// for more information.
19248func (c *OrganizationsEnvironmentsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsGetIamPolicyCall {
19249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19250	return c
19251}
19252
19253// IfNoneMatch sets the optional parameter which makes the operation
19254// fail if the object's ETag matches the given value. This is useful for
19255// getting updates only after the object has changed since the last
19256// request. Use googleapi.IsNotModified to check whether the response
19257// error from Do is the result of In-None-Match.
19258func (c *OrganizationsEnvironmentsGetIamPolicyCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsGetIamPolicyCall {
19259	c.ifNoneMatch_ = entityTag
19260	return c
19261}
19262
19263// Context sets the context to be used in this call's Do method. Any
19264// pending HTTP request will be aborted if the provided context is
19265// canceled.
19266func (c *OrganizationsEnvironmentsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsGetIamPolicyCall {
19267	c.ctx_ = ctx
19268	return c
19269}
19270
19271// Header returns an http.Header that can be modified by the caller to
19272// add HTTP headers to the request.
19273func (c *OrganizationsEnvironmentsGetIamPolicyCall) Header() http.Header {
19274	if c.header_ == nil {
19275		c.header_ = make(http.Header)
19276	}
19277	return c.header_
19278}
19279
19280func (c *OrganizationsEnvironmentsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19281	reqHeaders := make(http.Header)
19282	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19283	for k, v := range c.header_ {
19284		reqHeaders[k] = v
19285	}
19286	reqHeaders.Set("User-Agent", c.s.userAgent())
19287	if c.ifNoneMatch_ != "" {
19288		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19289	}
19290	var body io.Reader = nil
19291	c.urlParams_.Set("alt", alt)
19292	c.urlParams_.Set("prettyPrint", "false")
19293	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy")
19294	urls += "?" + c.urlParams_.Encode()
19295	req, err := http.NewRequest("GET", urls, body)
19296	if err != nil {
19297		return nil, err
19298	}
19299	req.Header = reqHeaders
19300	googleapi.Expand(req.URL, map[string]string{
19301		"resource": c.resource,
19302	})
19303	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19304}
19305
19306// Do executes the "apigee.organizations.environments.getIamPolicy" call.
19307// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
19308// non-2xx status code is an error. Response headers are in either
19309// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
19310// returned at all) in error.(*googleapi.Error).Header. Use
19311// googleapi.IsNotModified to check whether the returned error was
19312// because http.StatusNotModified was returned.
19313func (c *OrganizationsEnvironmentsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
19314	gensupport.SetOptions(c.urlParams_, opts...)
19315	res, err := c.doRequest("json")
19316	if res != nil && res.StatusCode == http.StatusNotModified {
19317		if res.Body != nil {
19318			res.Body.Close()
19319		}
19320		return nil, &googleapi.Error{
19321			Code:   res.StatusCode,
19322			Header: res.Header,
19323		}
19324	}
19325	if err != nil {
19326		return nil, err
19327	}
19328	defer googleapi.CloseBody(res)
19329	if err := googleapi.CheckResponse(res); err != nil {
19330		return nil, err
19331	}
19332	ret := &GoogleIamV1Policy{
19333		ServerResponse: googleapi.ServerResponse{
19334			Header:         res.Header,
19335			HTTPStatusCode: res.StatusCode,
19336		},
19337	}
19338	target := &ret
19339	if err := gensupport.DecodeResponse(target, res); err != nil {
19340		return nil, err
19341	}
19342	return ret, nil
19343	// {
19344	//   "description": "Gets the IAM policy on an Environment.\nCallers must have the permission apigee.environments.getIamPolicy.",
19345	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:getIamPolicy",
19346	//   "httpMethod": "GET",
19347	//   "id": "apigee.organizations.environments.getIamPolicy",
19348	//   "parameterOrder": [
19349	//     "resource"
19350	//   ],
19351	//   "parameters": {
19352	//     "options.requestedPolicyVersion": {
19353	//       "description": "Optional. The policy format version to be returned.\n\nValid values are 0, 1, and 3. Requests specifying an invalid value will be\nrejected.\n\nRequests for policies with any conditional bindings must specify version 3.\nPolicies without any conditional bindings may specify any valid value or\nleave the field unset.",
19354	//       "format": "int32",
19355	//       "location": "query",
19356	//       "type": "integer"
19357	//     },
19358	//     "resource": {
19359	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
19360	//       "location": "path",
19361	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
19362	//       "required": true,
19363	//       "type": "string"
19364	//     }
19365	//   },
19366	//   "path": "v1/{+resource}:getIamPolicy",
19367	//   "response": {
19368	//     "$ref": "GoogleIamV1Policy"
19369	//   },
19370	//   "scopes": [
19371	//     "https://www.googleapis.com/auth/cloud-platform"
19372	//   ]
19373	// }
19374
19375}
19376
19377// method id "apigee.organizations.environments.list":
19378
19379type OrganizationsEnvironmentsListCall struct {
19380	s            *Service
19381	parent       string
19382	urlParams_   gensupport.URLParams
19383	ifNoneMatch_ string
19384	ctx_         context.Context
19385	header_      http.Header
19386}
19387
19388// List: Lists all Environments in an organization.
19389func (r *OrganizationsEnvironmentsService) List(parent string) *OrganizationsEnvironmentsListCall {
19390	c := &OrganizationsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19391	c.parent = parent
19392	return c
19393}
19394
19395// Fields allows partial responses to be retrieved. See
19396// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19397// for more information.
19398func (c *OrganizationsEnvironmentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsListCall {
19399	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19400	return c
19401}
19402
19403// IfNoneMatch sets the optional parameter which makes the operation
19404// fail if the object's ETag matches the given value. This is useful for
19405// getting updates only after the object has changed since the last
19406// request. Use googleapi.IsNotModified to check whether the response
19407// error from Do is the result of In-None-Match.
19408func (c *OrganizationsEnvironmentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsListCall {
19409	c.ifNoneMatch_ = entityTag
19410	return c
19411}
19412
19413// Context sets the context to be used in this call's Do method. Any
19414// pending HTTP request will be aborted if the provided context is
19415// canceled.
19416func (c *OrganizationsEnvironmentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsListCall {
19417	c.ctx_ = ctx
19418	return c
19419}
19420
19421// Header returns an http.Header that can be modified by the caller to
19422// add HTTP headers to the request.
19423func (c *OrganizationsEnvironmentsListCall) Header() http.Header {
19424	if c.header_ == nil {
19425		c.header_ = make(http.Header)
19426	}
19427	return c.header_
19428}
19429
19430func (c *OrganizationsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
19431	reqHeaders := make(http.Header)
19432	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19433	for k, v := range c.header_ {
19434		reqHeaders[k] = v
19435	}
19436	reqHeaders.Set("User-Agent", c.s.userAgent())
19437	if c.ifNoneMatch_ != "" {
19438		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19439	}
19440	var body io.Reader = nil
19441	c.urlParams_.Set("alt", alt)
19442	c.urlParams_.Set("prettyPrint", "false")
19443	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/environments")
19444	urls += "?" + c.urlParams_.Encode()
19445	req, err := http.NewRequest("GET", urls, body)
19446	if err != nil {
19447		return nil, err
19448	}
19449	req.Header = reqHeaders
19450	googleapi.Expand(req.URL, map[string]string{
19451		"parent": c.parent,
19452	})
19453	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19454}
19455
19456// Do executes the "apigee.organizations.environments.list" call.
19457func (c *OrganizationsEnvironmentsListCall) Do(opts ...googleapi.CallOption) error {
19458	gensupport.SetOptions(c.urlParams_, opts...)
19459	res, err := c.doRequest("json")
19460	if err != nil {
19461		return err
19462	}
19463	defer googleapi.CloseBody(res)
19464	if err := googleapi.CheckResponse(res); err != nil {
19465		return err
19466	}
19467	return nil
19468	// {
19469	//   "description": "Lists all Environments in an organization.",
19470	//   "flatPath": "v1/organizations/{organizationsId}/environments",
19471	//   "httpMethod": "GET",
19472	//   "id": "apigee.organizations.environments.list",
19473	//   "parameterOrder": [
19474	//     "parent"
19475	//   ],
19476	//   "parameters": {
19477	//     "parent": {
19478	//       "description": "Required. The parent organization name. Must be of the form\n`organizations/{org}`.",
19479	//       "location": "path",
19480	//       "pattern": "^organizations/[^/]+$",
19481	//       "required": true,
19482	//       "type": "string"
19483	//     }
19484	//   },
19485	//   "path": "v1/{+parent}/environments",
19486	//   "response": {
19487	//     "items": {
19488	//       "type": "any"
19489	//     },
19490	//     "type": "array"
19491	//   },
19492	//   "scopes": [
19493	//     "https://www.googleapis.com/auth/cloud-platform"
19494	//   ]
19495	// }
19496
19497}
19498
19499// method id "apigee.organizations.environments.setIamPolicy":
19500
19501type OrganizationsEnvironmentsSetIamPolicyCall struct {
19502	s                              *Service
19503	resource                       string
19504	googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest
19505	urlParams_                     gensupport.URLParams
19506	ctx_                           context.Context
19507	header_                        http.Header
19508}
19509
19510// SetIamPolicy: Sets the IAM policy on an Environment, if the policy
19511// already
19512// exists it will be replaced.
19513// Callers must have the permission apigee.environments.setIamPolicy.
19514func (r *OrganizationsEnvironmentsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *OrganizationsEnvironmentsSetIamPolicyCall {
19515	c := &OrganizationsEnvironmentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19516	c.resource = resource
19517	c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest
19518	return c
19519}
19520
19521// Fields allows partial responses to be retrieved. See
19522// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19523// for more information.
19524func (c *OrganizationsEnvironmentsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSetIamPolicyCall {
19525	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19526	return c
19527}
19528
19529// Context sets the context to be used in this call's Do method. Any
19530// pending HTTP request will be aborted if the provided context is
19531// canceled.
19532func (c *OrganizationsEnvironmentsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsEnvironmentsSetIamPolicyCall {
19533	c.ctx_ = ctx
19534	return c
19535}
19536
19537// Header returns an http.Header that can be modified by the caller to
19538// add HTTP headers to the request.
19539func (c *OrganizationsEnvironmentsSetIamPolicyCall) Header() http.Header {
19540	if c.header_ == nil {
19541		c.header_ = make(http.Header)
19542	}
19543	return c.header_
19544}
19545
19546func (c *OrganizationsEnvironmentsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19547	reqHeaders := make(http.Header)
19548	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19549	for k, v := range c.header_ {
19550		reqHeaders[k] = v
19551	}
19552	reqHeaders.Set("User-Agent", c.s.userAgent())
19553	var body io.Reader = nil
19554	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest)
19555	if err != nil {
19556		return nil, err
19557	}
19558	reqHeaders.Set("Content-Type", "application/json")
19559	c.urlParams_.Set("alt", alt)
19560	c.urlParams_.Set("prettyPrint", "false")
19561	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy")
19562	urls += "?" + c.urlParams_.Encode()
19563	req, err := http.NewRequest("POST", urls, body)
19564	if err != nil {
19565		return nil, err
19566	}
19567	req.Header = reqHeaders
19568	googleapi.Expand(req.URL, map[string]string{
19569		"resource": c.resource,
19570	})
19571	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19572}
19573
19574// Do executes the "apigee.organizations.environments.setIamPolicy" call.
19575// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any
19576// non-2xx status code is an error. Response headers are in either
19577// *GoogleIamV1Policy.ServerResponse.Header or (if a response was
19578// returned at all) in error.(*googleapi.Error).Header. Use
19579// googleapi.IsNotModified to check whether the returned error was
19580// because http.StatusNotModified was returned.
19581func (c *OrganizationsEnvironmentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) {
19582	gensupport.SetOptions(c.urlParams_, opts...)
19583	res, err := c.doRequest("json")
19584	if res != nil && res.StatusCode == http.StatusNotModified {
19585		if res.Body != nil {
19586			res.Body.Close()
19587		}
19588		return nil, &googleapi.Error{
19589			Code:   res.StatusCode,
19590			Header: res.Header,
19591		}
19592	}
19593	if err != nil {
19594		return nil, err
19595	}
19596	defer googleapi.CloseBody(res)
19597	if err := googleapi.CheckResponse(res); err != nil {
19598		return nil, err
19599	}
19600	ret := &GoogleIamV1Policy{
19601		ServerResponse: googleapi.ServerResponse{
19602			Header:         res.Header,
19603			HTTPStatusCode: res.StatusCode,
19604		},
19605	}
19606	target := &ret
19607	if err := gensupport.DecodeResponse(target, res); err != nil {
19608		return nil, err
19609	}
19610	return ret, nil
19611	// {
19612	//   "description": "Sets the IAM policy on an Environment, if the policy already\nexists it will be replaced.\nCallers must have the permission apigee.environments.setIamPolicy.",
19613	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:setIamPolicy",
19614	//   "httpMethod": "POST",
19615	//   "id": "apigee.organizations.environments.setIamPolicy",
19616	//   "parameterOrder": [
19617	//     "resource"
19618	//   ],
19619	//   "parameters": {
19620	//     "resource": {
19621	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
19622	//       "location": "path",
19623	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
19624	//       "required": true,
19625	//       "type": "string"
19626	//     }
19627	//   },
19628	//   "path": "v1/{+resource}:setIamPolicy",
19629	//   "request": {
19630	//     "$ref": "GoogleIamV1SetIamPolicyRequest"
19631	//   },
19632	//   "response": {
19633	//     "$ref": "GoogleIamV1Policy"
19634	//   },
19635	//   "scopes": [
19636	//     "https://www.googleapis.com/auth/cloud-platform"
19637	//   ]
19638	// }
19639
19640}
19641
19642// method id "apigee.organizations.environments.subscribe":
19643
19644type OrganizationsEnvironmentsSubscribeCall struct {
19645	s          *Service
19646	parent     string
19647	urlParams_ gensupport.URLParams
19648	ctx_       context.Context
19649	header_    http.Header
19650}
19651
19652// Subscribe: Creates a subscription for the environment's pubsub
19653// topic.
19654// The server will assign a random name for this subscription.
19655// The "name" and "push_config" must *not* be specified.
19656func (r *OrganizationsEnvironmentsService) Subscribe(parent string) *OrganizationsEnvironmentsSubscribeCall {
19657	c := &OrganizationsEnvironmentsSubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19658	c.parent = parent
19659	return c
19660}
19661
19662// Fields allows partial responses to be retrieved. See
19663// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19664// for more information.
19665func (c *OrganizationsEnvironmentsSubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSubscribeCall {
19666	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19667	return c
19668}
19669
19670// Context sets the context to be used in this call's Do method. Any
19671// pending HTTP request will be aborted if the provided context is
19672// canceled.
19673func (c *OrganizationsEnvironmentsSubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsSubscribeCall {
19674	c.ctx_ = ctx
19675	return c
19676}
19677
19678// Header returns an http.Header that can be modified by the caller to
19679// add HTTP headers to the request.
19680func (c *OrganizationsEnvironmentsSubscribeCall) Header() http.Header {
19681	if c.header_ == nil {
19682		c.header_ = make(http.Header)
19683	}
19684	return c.header_
19685}
19686
19687func (c *OrganizationsEnvironmentsSubscribeCall) doRequest(alt string) (*http.Response, error) {
19688	reqHeaders := make(http.Header)
19689	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19690	for k, v := range c.header_ {
19691		reqHeaders[k] = v
19692	}
19693	reqHeaders.Set("User-Agent", c.s.userAgent())
19694	var body io.Reader = nil
19695	c.urlParams_.Set("alt", alt)
19696	c.urlParams_.Set("prettyPrint", "false")
19697	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:subscribe")
19698	urls += "?" + c.urlParams_.Encode()
19699	req, err := http.NewRequest("POST", urls, body)
19700	if err != nil {
19701		return nil, err
19702	}
19703	req.Header = reqHeaders
19704	googleapi.Expand(req.URL, map[string]string{
19705		"parent": c.parent,
19706	})
19707	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19708}
19709
19710// Do executes the "apigee.organizations.environments.subscribe" call.
19711// Exactly one of *GoogleCloudApigeeV1Subscription or error will be
19712// non-nil. Any non-2xx status code is an error. Response headers are in
19713// either *GoogleCloudApigeeV1Subscription.ServerResponse.Header or (if
19714// a response was returned at all) in error.(*googleapi.Error).Header.
19715// Use googleapi.IsNotModified to check whether the returned error was
19716// because http.StatusNotModified was returned.
19717func (c *OrganizationsEnvironmentsSubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Subscription, error) {
19718	gensupport.SetOptions(c.urlParams_, opts...)
19719	res, err := c.doRequest("json")
19720	if res != nil && res.StatusCode == http.StatusNotModified {
19721		if res.Body != nil {
19722			res.Body.Close()
19723		}
19724		return nil, &googleapi.Error{
19725			Code:   res.StatusCode,
19726			Header: res.Header,
19727		}
19728	}
19729	if err != nil {
19730		return nil, err
19731	}
19732	defer googleapi.CloseBody(res)
19733	if err := googleapi.CheckResponse(res); err != nil {
19734		return nil, err
19735	}
19736	ret := &GoogleCloudApigeeV1Subscription{
19737		ServerResponse: googleapi.ServerResponse{
19738			Header:         res.Header,
19739			HTTPStatusCode: res.StatusCode,
19740		},
19741	}
19742	target := &ret
19743	if err := gensupport.DecodeResponse(target, res); err != nil {
19744		return nil, err
19745	}
19746	return ret, nil
19747	// {
19748	//   "description": "Creates a subscription for the environment's pubsub topic.\nThe server will assign a random name for this subscription.\nThe \"name\" and \"push_config\" must *not* be specified.",
19749	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:subscribe",
19750	//   "httpMethod": "POST",
19751	//   "id": "apigee.organizations.environments.subscribe",
19752	//   "parameterOrder": [
19753	//     "parent"
19754	//   ],
19755	//   "parameters": {
19756	//     "parent": {
19757	//       "description": "Required. The name of the environment to subscribe. Must be of the form\n`organizations/{org}/environments/{env}`.",
19758	//       "location": "path",
19759	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
19760	//       "required": true,
19761	//       "type": "string"
19762	//     }
19763	//   },
19764	//   "path": "v1/{+parent}:subscribe",
19765	//   "response": {
19766	//     "$ref": "GoogleCloudApigeeV1Subscription"
19767	//   },
19768	//   "scopes": [
19769	//     "https://www.googleapis.com/auth/cloud-platform"
19770	//   ]
19771	// }
19772
19773}
19774
19775// method id "apigee.organizations.environments.testIamPermissions":
19776
19777type OrganizationsEnvironmentsTestIamPermissionsCall struct {
19778	s                                    *Service
19779	resource                             string
19780	googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest
19781	urlParams_                           gensupport.URLParams
19782	ctx_                                 context.Context
19783	header_                              http.Header
19784}
19785
19786// TestIamPermissions: Tests the permissions of a user on an
19787// Environment,
19788// and returns a subset of permissions that the user has on the
19789// Environment
19790// If the environment does not exist an empty permission set is
19791// returned
19792// (a NOT_FOUND error is not returned).
19793func (r *OrganizationsEnvironmentsService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *OrganizationsEnvironmentsTestIamPermissionsCall {
19794	c := &OrganizationsEnvironmentsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19795	c.resource = resource
19796	c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest
19797	return c
19798}
19799
19800// Fields allows partial responses to be retrieved. See
19801// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19802// for more information.
19803func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTestIamPermissionsCall {
19804	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19805	return c
19806}
19807
19808// Context sets the context to be used in this call's Do method. Any
19809// pending HTTP request will be aborted if the provided context is
19810// canceled.
19811func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsEnvironmentsTestIamPermissionsCall {
19812	c.ctx_ = ctx
19813	return c
19814}
19815
19816// Header returns an http.Header that can be modified by the caller to
19817// add HTTP headers to the request.
19818func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Header() http.Header {
19819	if c.header_ == nil {
19820		c.header_ = make(http.Header)
19821	}
19822	return c.header_
19823}
19824
19825func (c *OrganizationsEnvironmentsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
19826	reqHeaders := make(http.Header)
19827	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19828	for k, v := range c.header_ {
19829		reqHeaders[k] = v
19830	}
19831	reqHeaders.Set("User-Agent", c.s.userAgent())
19832	var body io.Reader = nil
19833	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest)
19834	if err != nil {
19835		return nil, err
19836	}
19837	reqHeaders.Set("Content-Type", "application/json")
19838	c.urlParams_.Set("alt", alt)
19839	c.urlParams_.Set("prettyPrint", "false")
19840	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions")
19841	urls += "?" + c.urlParams_.Encode()
19842	req, err := http.NewRequest("POST", urls, body)
19843	if err != nil {
19844		return nil, err
19845	}
19846	req.Header = reqHeaders
19847	googleapi.Expand(req.URL, map[string]string{
19848		"resource": c.resource,
19849	})
19850	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19851}
19852
19853// Do executes the "apigee.organizations.environments.testIamPermissions" call.
19854// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will
19855// be non-nil. Any non-2xx status code is an error. Response headers are
19856// in either
19857// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a
19858// response was returned at all) in error.(*googleapi.Error).Header. Use
19859// googleapi.IsNotModified to check whether the returned error was
19860// because http.StatusNotModified was returned.
19861func (c *OrganizationsEnvironmentsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) {
19862	gensupport.SetOptions(c.urlParams_, opts...)
19863	res, err := c.doRequest("json")
19864	if res != nil && res.StatusCode == http.StatusNotModified {
19865		if res.Body != nil {
19866			res.Body.Close()
19867		}
19868		return nil, &googleapi.Error{
19869			Code:   res.StatusCode,
19870			Header: res.Header,
19871		}
19872	}
19873	if err != nil {
19874		return nil, err
19875	}
19876	defer googleapi.CloseBody(res)
19877	if err := googleapi.CheckResponse(res); err != nil {
19878		return nil, err
19879	}
19880	ret := &GoogleIamV1TestIamPermissionsResponse{
19881		ServerResponse: googleapi.ServerResponse{
19882			Header:         res.Header,
19883			HTTPStatusCode: res.StatusCode,
19884		},
19885	}
19886	target := &ret
19887	if err := gensupport.DecodeResponse(target, res); err != nil {
19888		return nil, err
19889	}
19890	return ret, nil
19891	// {
19892	//   "description": "Tests the permissions of a user on an Environment,\nand returns a subset of permissions that the user has on the Environment\nIf the environment does not exist an empty permission set is returned\n(a NOT_FOUND error is not returned).",
19893	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:testIamPermissions",
19894	//   "httpMethod": "POST",
19895	//   "id": "apigee.organizations.environments.testIamPermissions",
19896	//   "parameterOrder": [
19897	//     "resource"
19898	//   ],
19899	//   "parameters": {
19900	//     "resource": {
19901	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
19902	//       "location": "path",
19903	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
19904	//       "required": true,
19905	//       "type": "string"
19906	//     }
19907	//   },
19908	//   "path": "v1/{+resource}:testIamPermissions",
19909	//   "request": {
19910	//     "$ref": "GoogleIamV1TestIamPermissionsRequest"
19911	//   },
19912	//   "response": {
19913	//     "$ref": "GoogleIamV1TestIamPermissionsResponse"
19914	//   },
19915	//   "scopes": [
19916	//     "https://www.googleapis.com/auth/cloud-platform"
19917	//   ]
19918	// }
19919
19920}
19921
19922// method id "apigee.organizations.environments.unsubscribe":
19923
19924type OrganizationsEnvironmentsUnsubscribeCall struct {
19925	s                               *Service
19926	parent                          string
19927	googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription
19928	urlParams_                      gensupport.URLParams
19929	ctx_                            context.Context
19930	header_                         http.Header
19931}
19932
19933// Unsubscribe: Deletes a subscription for the environment's pubsub
19934// topic.
19935func (r *OrganizationsEnvironmentsService) Unsubscribe(parent string, googlecloudapigeev1subscription *GoogleCloudApigeeV1Subscription) *OrganizationsEnvironmentsUnsubscribeCall {
19936	c := &OrganizationsEnvironmentsUnsubscribeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19937	c.parent = parent
19938	c.googlecloudapigeev1subscription = googlecloudapigeev1subscription
19939	return c
19940}
19941
19942// Fields allows partial responses to be retrieved. See
19943// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19944// for more information.
19945func (c *OrganizationsEnvironmentsUnsubscribeCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUnsubscribeCall {
19946	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19947	return c
19948}
19949
19950// Context sets the context to be used in this call's Do method. Any
19951// pending HTTP request will be aborted if the provided context is
19952// canceled.
19953func (c *OrganizationsEnvironmentsUnsubscribeCall) Context(ctx context.Context) *OrganizationsEnvironmentsUnsubscribeCall {
19954	c.ctx_ = ctx
19955	return c
19956}
19957
19958// Header returns an http.Header that can be modified by the caller to
19959// add HTTP headers to the request.
19960func (c *OrganizationsEnvironmentsUnsubscribeCall) Header() http.Header {
19961	if c.header_ == nil {
19962		c.header_ = make(http.Header)
19963	}
19964	return c.header_
19965}
19966
19967func (c *OrganizationsEnvironmentsUnsubscribeCall) doRequest(alt string) (*http.Response, error) {
19968	reqHeaders := make(http.Header)
19969	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
19970	for k, v := range c.header_ {
19971		reqHeaders[k] = v
19972	}
19973	reqHeaders.Set("User-Agent", c.s.userAgent())
19974	var body io.Reader = nil
19975	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1subscription)
19976	if err != nil {
19977		return nil, err
19978	}
19979	reqHeaders.Set("Content-Type", "application/json")
19980	c.urlParams_.Set("alt", alt)
19981	c.urlParams_.Set("prettyPrint", "false")
19982	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:unsubscribe")
19983	urls += "?" + c.urlParams_.Encode()
19984	req, err := http.NewRequest("POST", urls, body)
19985	if err != nil {
19986		return nil, err
19987	}
19988	req.Header = reqHeaders
19989	googleapi.Expand(req.URL, map[string]string{
19990		"parent": c.parent,
19991	})
19992	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19993}
19994
19995// Do executes the "apigee.organizations.environments.unsubscribe" call.
19996// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
19997// non-2xx status code is an error. Response headers are in either
19998// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
19999// returned at all) in error.(*googleapi.Error).Header. Use
20000// googleapi.IsNotModified to check whether the returned error was
20001// because http.StatusNotModified was returned.
20002func (c *OrganizationsEnvironmentsUnsubscribeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20003	gensupport.SetOptions(c.urlParams_, opts...)
20004	res, err := c.doRequest("json")
20005	if res != nil && res.StatusCode == http.StatusNotModified {
20006		if res.Body != nil {
20007			res.Body.Close()
20008		}
20009		return nil, &googleapi.Error{
20010			Code:   res.StatusCode,
20011			Header: res.Header,
20012		}
20013	}
20014	if err != nil {
20015		return nil, err
20016	}
20017	defer googleapi.CloseBody(res)
20018	if err := googleapi.CheckResponse(res); err != nil {
20019		return nil, err
20020	}
20021	ret := &GoogleProtobufEmpty{
20022		ServerResponse: googleapi.ServerResponse{
20023			Header:         res.Header,
20024			HTTPStatusCode: res.StatusCode,
20025		},
20026	}
20027	target := &ret
20028	if err := gensupport.DecodeResponse(target, res); err != nil {
20029		return nil, err
20030	}
20031	return ret, nil
20032	// {
20033	//   "description": "Deletes a subscription for the environment's pubsub topic.",
20034	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}:unsubscribe",
20035	//   "httpMethod": "POST",
20036	//   "id": "apigee.organizations.environments.unsubscribe",
20037	//   "parameterOrder": [
20038	//     "parent"
20039	//   ],
20040	//   "parameters": {
20041	//     "parent": {
20042	//       "description": "Required. The name of the environment to subscribe. Must be of the form\n`organizations/{org}/environments/{env}`.",
20043	//       "location": "path",
20044	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
20045	//       "required": true,
20046	//       "type": "string"
20047	//     }
20048	//   },
20049	//   "path": "v1/{+parent}:unsubscribe",
20050	//   "request": {
20051	//     "$ref": "GoogleCloudApigeeV1Subscription"
20052	//   },
20053	//   "response": {
20054	//     "$ref": "GoogleProtobufEmpty"
20055	//   },
20056	//   "scopes": [
20057	//     "https://www.googleapis.com/auth/cloud-platform"
20058	//   ]
20059	// }
20060
20061}
20062
20063// method id "apigee.organizations.environments.update":
20064
20065type OrganizationsEnvironmentsUpdateCall struct {
20066	s                              *Service
20067	name                           string
20068	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
20069	urlParams_                     gensupport.URLParams
20070	ctx_                           context.Context
20071	header_                        http.Header
20072}
20073
20074// Update: Updates an existing Environment. Note that this operation has
20075// PUT
20076// semantics despite using POST; it will replace the entirety of the
20077// existing
20078// Environment with the resource in the request body. A PUT mapping for
20079// the
20080// same operation at the same URI is also defined.
20081func (r *OrganizationsEnvironmentsService) Update(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateCall {
20082	c := &OrganizationsEnvironmentsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20083	c.name = name
20084	c.googlecloudapigeev1environment = googlecloudapigeev1environment
20085	return c
20086}
20087
20088// Fields allows partial responses to be retrieved. See
20089// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20090// for more information.
20091func (c *OrganizationsEnvironmentsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateCall {
20092	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20093	return c
20094}
20095
20096// Context sets the context to be used in this call's Do method. Any
20097// pending HTTP request will be aborted if the provided context is
20098// canceled.
20099func (c *OrganizationsEnvironmentsUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateCall {
20100	c.ctx_ = ctx
20101	return c
20102}
20103
20104// Header returns an http.Header that can be modified by the caller to
20105// add HTTP headers to the request.
20106func (c *OrganizationsEnvironmentsUpdateCall) Header() http.Header {
20107	if c.header_ == nil {
20108		c.header_ = make(http.Header)
20109	}
20110	return c.header_
20111}
20112
20113func (c *OrganizationsEnvironmentsUpdateCall) doRequest(alt string) (*http.Response, error) {
20114	reqHeaders := make(http.Header)
20115	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20116	for k, v := range c.header_ {
20117		reqHeaders[k] = v
20118	}
20119	reqHeaders.Set("User-Agent", c.s.userAgent())
20120	var body io.Reader = nil
20121	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
20122	if err != nil {
20123		return nil, err
20124	}
20125	reqHeaders.Set("Content-Type", "application/json")
20126	c.urlParams_.Set("alt", alt)
20127	c.urlParams_.Set("prettyPrint", "false")
20128	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20129	urls += "?" + c.urlParams_.Encode()
20130	req, err := http.NewRequest("PUT", urls, body)
20131	if err != nil {
20132		return nil, err
20133	}
20134	req.Header = reqHeaders
20135	googleapi.Expand(req.URL, map[string]string{
20136		"name": c.name,
20137	})
20138	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20139}
20140
20141// Do executes the "apigee.organizations.environments.update" call.
20142// Exactly one of *GoogleCloudApigeeV1Environment or error will be
20143// non-nil. Any non-2xx status code is an error. Response headers are in
20144// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
20145// response was returned at all) in error.(*googleapi.Error).Header. Use
20146// googleapi.IsNotModified to check whether the returned error was
20147// because http.StatusNotModified was returned.
20148func (c *OrganizationsEnvironmentsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
20149	gensupport.SetOptions(c.urlParams_, opts...)
20150	res, err := c.doRequest("json")
20151	if res != nil && res.StatusCode == http.StatusNotModified {
20152		if res.Body != nil {
20153			res.Body.Close()
20154		}
20155		return nil, &googleapi.Error{
20156			Code:   res.StatusCode,
20157			Header: res.Header,
20158		}
20159	}
20160	if err != nil {
20161		return nil, err
20162	}
20163	defer googleapi.CloseBody(res)
20164	if err := googleapi.CheckResponse(res); err != nil {
20165		return nil, err
20166	}
20167	ret := &GoogleCloudApigeeV1Environment{
20168		ServerResponse: googleapi.ServerResponse{
20169			Header:         res.Header,
20170			HTTPStatusCode: res.StatusCode,
20171		},
20172	}
20173	target := &ret
20174	if err := gensupport.DecodeResponse(target, res); err != nil {
20175		return nil, err
20176	}
20177	return ret, nil
20178	// {
20179	//   "description": "Updates an existing Environment. Note that this operation has PUT\nsemantics despite using POST; it will replace the entirety of the existing\nEnvironment with the resource in the request body. A PUT mapping for the\nsame operation at the same URI is also defined.",
20180	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
20181	//   "httpMethod": "PUT",
20182	//   "id": "apigee.organizations.environments.update",
20183	//   "parameterOrder": [
20184	//     "name"
20185	//   ],
20186	//   "parameters": {
20187	//     "name": {
20188	//       "description": "Required. The name of the Environment to replace. Must be of the form\n`organizations/{org}/environments/{env}`.",
20189	//       "location": "path",
20190	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
20191	//       "required": true,
20192	//       "type": "string"
20193	//     }
20194	//   },
20195	//   "path": "v1/{+name}",
20196	//   "request": {
20197	//     "$ref": "GoogleCloudApigeeV1Environment"
20198	//   },
20199	//   "response": {
20200	//     "$ref": "GoogleCloudApigeeV1Environment"
20201	//   },
20202	//   "scopes": [
20203	//     "https://www.googleapis.com/auth/cloud-platform"
20204	//   ]
20205	// }
20206
20207}
20208
20209// method id "apigee.organizations.environments.updateDebugmask":
20210
20211type OrganizationsEnvironmentsUpdateDebugmaskCall struct {
20212	s                            *Service
20213	name                         string
20214	googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask
20215	urlParams_                   gensupport.URLParams
20216	ctx_                         context.Context
20217	header_                      http.Header
20218}
20219
20220// UpdateDebugmask: Updates the debug mask singleton resource for an
20221// environment.
20222func (r *OrganizationsEnvironmentsService) UpdateDebugmask(name string, googlecloudapigeev1debugmask *GoogleCloudApigeeV1DebugMask) *OrganizationsEnvironmentsUpdateDebugmaskCall {
20223	c := &OrganizationsEnvironmentsUpdateDebugmaskCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20224	c.name = name
20225	c.googlecloudapigeev1debugmask = googlecloudapigeev1debugmask
20226	return c
20227}
20228
20229// ReplaceRepeatedFields sets the optional parameter
20230// "replaceRepeatedFields": If true, repeated fields covered by the
20231// update_mask will replace
20232// the existing values. The default behavior is to append.
20233func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) ReplaceRepeatedFields(replaceRepeatedFields bool) *OrganizationsEnvironmentsUpdateDebugmaskCall {
20234	c.urlParams_.Set("replaceRepeatedFields", fmt.Sprint(replaceRepeatedFields))
20235	return c
20236}
20237
20238// UpdateMask sets the optional parameter "updateMask": Field mask to
20239// support partial updates.
20240func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) UpdateMask(updateMask string) *OrganizationsEnvironmentsUpdateDebugmaskCall {
20241	c.urlParams_.Set("updateMask", updateMask)
20242	return c
20243}
20244
20245// Fields allows partial responses to be retrieved. See
20246// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20247// for more information.
20248func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateDebugmaskCall {
20249	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20250	return c
20251}
20252
20253// Context sets the context to be used in this call's Do method. Any
20254// pending HTTP request will be aborted if the provided context is
20255// canceled.
20256func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateDebugmaskCall {
20257	c.ctx_ = ctx
20258	return c
20259}
20260
20261// Header returns an http.Header that can be modified by the caller to
20262// add HTTP headers to the request.
20263func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Header() http.Header {
20264	if c.header_ == nil {
20265		c.header_ = make(http.Header)
20266	}
20267	return c.header_
20268}
20269
20270func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) doRequest(alt string) (*http.Response, error) {
20271	reqHeaders := make(http.Header)
20272	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20273	for k, v := range c.header_ {
20274		reqHeaders[k] = v
20275	}
20276	reqHeaders.Set("User-Agent", c.s.userAgent())
20277	var body io.Reader = nil
20278	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugmask)
20279	if err != nil {
20280		return nil, err
20281	}
20282	reqHeaders.Set("Content-Type", "application/json")
20283	c.urlParams_.Set("alt", alt)
20284	c.urlParams_.Set("prettyPrint", "false")
20285	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20286	urls += "?" + c.urlParams_.Encode()
20287	req, err := http.NewRequest("PATCH", urls, body)
20288	if err != nil {
20289		return nil, err
20290	}
20291	req.Header = reqHeaders
20292	googleapi.Expand(req.URL, map[string]string{
20293		"name": c.name,
20294	})
20295	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20296}
20297
20298// Do executes the "apigee.organizations.environments.updateDebugmask" call.
20299// Exactly one of *GoogleCloudApigeeV1DebugMask or error will be
20300// non-nil. Any non-2xx status code is an error. Response headers are in
20301// either *GoogleCloudApigeeV1DebugMask.ServerResponse.Header or (if a
20302// response was returned at all) in error.(*googleapi.Error).Header. Use
20303// googleapi.IsNotModified to check whether the returned error was
20304// because http.StatusNotModified was returned.
20305func (c *OrganizationsEnvironmentsUpdateDebugmaskCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugMask, error) {
20306	gensupport.SetOptions(c.urlParams_, opts...)
20307	res, err := c.doRequest("json")
20308	if res != nil && res.StatusCode == http.StatusNotModified {
20309		if res.Body != nil {
20310			res.Body.Close()
20311		}
20312		return nil, &googleapi.Error{
20313			Code:   res.StatusCode,
20314			Header: res.Header,
20315		}
20316	}
20317	if err != nil {
20318		return nil, err
20319	}
20320	defer googleapi.CloseBody(res)
20321	if err := googleapi.CheckResponse(res); err != nil {
20322		return nil, err
20323	}
20324	ret := &GoogleCloudApigeeV1DebugMask{
20325		ServerResponse: googleapi.ServerResponse{
20326			Header:         res.Header,
20327			HTTPStatusCode: res.StatusCode,
20328		},
20329	}
20330	target := &ret
20331	if err := gensupport.DecodeResponse(target, res); err != nil {
20332		return nil, err
20333	}
20334	return ret, nil
20335	// {
20336	//   "description": "Updates the debug mask singleton resource for an environment.",
20337	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/debugmask",
20338	//   "httpMethod": "PATCH",
20339	//   "id": "apigee.organizations.environments.updateDebugmask",
20340	//   "parameterOrder": [
20341	//     "name"
20342	//   ],
20343	//   "parameters": {
20344	//     "name": {
20345	//       "description": "The DebugMask resource name.",
20346	//       "location": "path",
20347	//       "pattern": "^organizations/[^/]+/environments/[^/]+/debugmask$",
20348	//       "required": true,
20349	//       "type": "string"
20350	//     },
20351	//     "replaceRepeatedFields": {
20352	//       "description": "If true, repeated fields covered by the update_mask will replace\nthe existing values. The default behavior is to append.",
20353	//       "location": "query",
20354	//       "type": "boolean"
20355	//     },
20356	//     "updateMask": {
20357	//       "description": "Field mask to support partial updates.",
20358	//       "format": "google-fieldmask",
20359	//       "location": "query",
20360	//       "type": "string"
20361	//     }
20362	//   },
20363	//   "path": "v1/{+name}",
20364	//   "request": {
20365	//     "$ref": "GoogleCloudApigeeV1DebugMask"
20366	//   },
20367	//   "response": {
20368	//     "$ref": "GoogleCloudApigeeV1DebugMask"
20369	//   },
20370	//   "scopes": [
20371	//     "https://www.googleapis.com/auth/cloud-platform"
20372	//   ]
20373	// }
20374
20375}
20376
20377// method id "apigee.organizations.environments.updateEnvironment":
20378
20379type OrganizationsEnvironmentsUpdateEnvironmentCall struct {
20380	s                              *Service
20381	name                           string
20382	googlecloudapigeev1environment *GoogleCloudApigeeV1Environment
20383	urlParams_                     gensupport.URLParams
20384	ctx_                           context.Context
20385	header_                        http.Header
20386}
20387
20388// UpdateEnvironment: Updates an existing Environment. Note that this
20389// operation has PUT
20390// semantics despite using POST; it will replace the entirety of the
20391// existing
20392// Environment with the resource in the request body. A PUT mapping for
20393// the
20394// same operation at the same URI is also defined.
20395func (r *OrganizationsEnvironmentsService) UpdateEnvironment(name string, googlecloudapigeev1environment *GoogleCloudApigeeV1Environment) *OrganizationsEnvironmentsUpdateEnvironmentCall {
20396	c := &OrganizationsEnvironmentsUpdateEnvironmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20397	c.name = name
20398	c.googlecloudapigeev1environment = googlecloudapigeev1environment
20399	return c
20400}
20401
20402// Fields allows partial responses to be retrieved. See
20403// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20404// for more information.
20405func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsUpdateEnvironmentCall {
20406	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20407	return c
20408}
20409
20410// Context sets the context to be used in this call's Do method. Any
20411// pending HTTP request will be aborted if the provided context is
20412// canceled.
20413func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Context(ctx context.Context) *OrganizationsEnvironmentsUpdateEnvironmentCall {
20414	c.ctx_ = ctx
20415	return c
20416}
20417
20418// Header returns an http.Header that can be modified by the caller to
20419// add HTTP headers to the request.
20420func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Header() http.Header {
20421	if c.header_ == nil {
20422		c.header_ = make(http.Header)
20423	}
20424	return c.header_
20425}
20426
20427func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) doRequest(alt string) (*http.Response, error) {
20428	reqHeaders := make(http.Header)
20429	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20430	for k, v := range c.header_ {
20431		reqHeaders[k] = v
20432	}
20433	reqHeaders.Set("User-Agent", c.s.userAgent())
20434	var body io.Reader = nil
20435	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1environment)
20436	if err != nil {
20437		return nil, err
20438	}
20439	reqHeaders.Set("Content-Type", "application/json")
20440	c.urlParams_.Set("alt", alt)
20441	c.urlParams_.Set("prettyPrint", "false")
20442	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20443	urls += "?" + c.urlParams_.Encode()
20444	req, err := http.NewRequest("POST", urls, body)
20445	if err != nil {
20446		return nil, err
20447	}
20448	req.Header = reqHeaders
20449	googleapi.Expand(req.URL, map[string]string{
20450		"name": c.name,
20451	})
20452	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20453}
20454
20455// Do executes the "apigee.organizations.environments.updateEnvironment" call.
20456// Exactly one of *GoogleCloudApigeeV1Environment or error will be
20457// non-nil. Any non-2xx status code is an error. Response headers are in
20458// either *GoogleCloudApigeeV1Environment.ServerResponse.Header or (if a
20459// response was returned at all) in error.(*googleapi.Error).Header. Use
20460// googleapi.IsNotModified to check whether the returned error was
20461// because http.StatusNotModified was returned.
20462func (c *OrganizationsEnvironmentsUpdateEnvironmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Environment, error) {
20463	gensupport.SetOptions(c.urlParams_, opts...)
20464	res, err := c.doRequest("json")
20465	if res != nil && res.StatusCode == http.StatusNotModified {
20466		if res.Body != nil {
20467			res.Body.Close()
20468		}
20469		return nil, &googleapi.Error{
20470			Code:   res.StatusCode,
20471			Header: res.Header,
20472		}
20473	}
20474	if err != nil {
20475		return nil, err
20476	}
20477	defer googleapi.CloseBody(res)
20478	if err := googleapi.CheckResponse(res); err != nil {
20479		return nil, err
20480	}
20481	ret := &GoogleCloudApigeeV1Environment{
20482		ServerResponse: googleapi.ServerResponse{
20483			Header:         res.Header,
20484			HTTPStatusCode: res.StatusCode,
20485		},
20486	}
20487	target := &ret
20488	if err := gensupport.DecodeResponse(target, res); err != nil {
20489		return nil, err
20490	}
20491	return ret, nil
20492	// {
20493	//   "description": "Updates an existing Environment. Note that this operation has PUT\nsemantics despite using POST; it will replace the entirety of the existing\nEnvironment with the resource in the request body. A PUT mapping for the\nsame operation at the same URI is also defined.",
20494	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}",
20495	//   "httpMethod": "POST",
20496	//   "id": "apigee.organizations.environments.updateEnvironment",
20497	//   "parameterOrder": [
20498	//     "name"
20499	//   ],
20500	//   "parameters": {
20501	//     "name": {
20502	//       "description": "Required. The name of the Environment to replace. Must be of the form\n`organizations/{org}/environments/{env}`.",
20503	//       "location": "path",
20504	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
20505	//       "required": true,
20506	//       "type": "string"
20507	//     }
20508	//   },
20509	//   "path": "v1/{+name}",
20510	//   "request": {
20511	//     "$ref": "GoogleCloudApigeeV1Environment"
20512	//   },
20513	//   "response": {
20514	//     "$ref": "GoogleCloudApigeeV1Environment"
20515	//   },
20516	//   "scopes": [
20517	//     "https://www.googleapis.com/auth/cloud-platform"
20518	//   ]
20519	// }
20520
20521}
20522
20523// method id "apigee.organizations.environments.analytics.admin.getSchemav2":
20524
20525type OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call struct {
20526	s            *Service
20527	name         string
20528	urlParams_   gensupport.URLParams
20529	ifNoneMatch_ string
20530	ctx_         context.Context
20531	header_      http.Header
20532}
20533
20534// GetSchemav2: Get a list of metrics and dimensions which can be used
20535// for creating
20536// analytics queries and reports.
20537// Each schema element contains the name of the field with its
20538// associated type
20539// and if it is either custom field or standard field.
20540func (r *OrganizationsEnvironmentsAnalyticsAdminService) GetSchemav2(name string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
20541	c := &OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call{s: r.s, urlParams_: make(gensupport.URLParams)}
20542	c.name = name
20543	return c
20544}
20545
20546// Type sets the optional parameter "type": Required. Type refers to the
20547// dataset name whose schema needs to be
20548// retrieved E.g. type=fact or type=agg_cus1
20549func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Type(type_ string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
20550	c.urlParams_.Set("type", type_)
20551	return c
20552}
20553
20554// Fields allows partial responses to be retrieved. See
20555// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20556// for more information.
20557func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
20558	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20559	return c
20560}
20561
20562// IfNoneMatch sets the optional parameter which makes the operation
20563// fail if the object's ETag matches the given value. This is useful for
20564// getting updates only after the object has changed since the last
20565// request. Use googleapi.IsNotModified to check whether the response
20566// error from Do is the result of In-None-Match.
20567func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
20568	c.ifNoneMatch_ = entityTag
20569	return c
20570}
20571
20572// Context sets the context to be used in this call's Do method. Any
20573// pending HTTP request will be aborted if the provided context is
20574// canceled.
20575func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Context(ctx context.Context) *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call {
20576	c.ctx_ = ctx
20577	return c
20578}
20579
20580// Header returns an http.Header that can be modified by the caller to
20581// add HTTP headers to the request.
20582func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Header() http.Header {
20583	if c.header_ == nil {
20584		c.header_ = make(http.Header)
20585	}
20586	return c.header_
20587}
20588
20589func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) doRequest(alt string) (*http.Response, error) {
20590	reqHeaders := make(http.Header)
20591	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20592	for k, v := range c.header_ {
20593		reqHeaders[k] = v
20594	}
20595	reqHeaders.Set("User-Agent", c.s.userAgent())
20596	if c.ifNoneMatch_ != "" {
20597		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20598	}
20599	var body io.Reader = nil
20600	c.urlParams_.Set("alt", alt)
20601	c.urlParams_.Set("prettyPrint", "false")
20602	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20603	urls += "?" + c.urlParams_.Encode()
20604	req, err := http.NewRequest("GET", urls, body)
20605	if err != nil {
20606		return nil, err
20607	}
20608	req.Header = reqHeaders
20609	googleapi.Expand(req.URL, map[string]string{
20610		"name": c.name,
20611	})
20612	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20613}
20614
20615// Do executes the "apigee.organizations.environments.analytics.admin.getSchemav2" call.
20616// Exactly one of *GoogleCloudApigeeV1Schema or error will be non-nil.
20617// Any non-2xx status code is an error. Response headers are in either
20618// *GoogleCloudApigeeV1Schema.ServerResponse.Header or (if a response
20619// was returned at all) in error.(*googleapi.Error).Header. Use
20620// googleapi.IsNotModified to check whether the returned error was
20621// because http.StatusNotModified was returned.
20622func (c *OrganizationsEnvironmentsAnalyticsAdminGetSchemav2Call) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Schema, error) {
20623	gensupport.SetOptions(c.urlParams_, opts...)
20624	res, err := c.doRequest("json")
20625	if res != nil && res.StatusCode == http.StatusNotModified {
20626		if res.Body != nil {
20627			res.Body.Close()
20628		}
20629		return nil, &googleapi.Error{
20630			Code:   res.StatusCode,
20631			Header: res.Header,
20632		}
20633	}
20634	if err != nil {
20635		return nil, err
20636	}
20637	defer googleapi.CloseBody(res)
20638	if err := googleapi.CheckResponse(res); err != nil {
20639		return nil, err
20640	}
20641	ret := &GoogleCloudApigeeV1Schema{
20642		ServerResponse: googleapi.ServerResponse{
20643			Header:         res.Header,
20644			HTTPStatusCode: res.StatusCode,
20645		},
20646	}
20647	target := &ret
20648	if err := gensupport.DecodeResponse(target, res); err != nil {
20649		return nil, err
20650	}
20651	return ret, nil
20652	// {
20653	//   "description": "Get a list of metrics and dimensions which can be used for creating\nanalytics queries and reports.\nEach schema element contains the name of the field with its associated type\nand if it is either custom field or standard field.",
20654	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/analytics/admin/schemav2",
20655	//   "httpMethod": "GET",
20656	//   "id": "apigee.organizations.environments.analytics.admin.getSchemav2",
20657	//   "parameterOrder": [
20658	//     "name"
20659	//   ],
20660	//   "parameters": {
20661	//     "name": {
20662	//       "description": "Required. The parent organization and environment names. Must be of the\nform `organizations/{org}/environments/{env}/analytics/admin/schemav2`.",
20663	//       "location": "path",
20664	//       "pattern": "^organizations/[^/]+/environments/[^/]+/analytics/admin/schemav2$",
20665	//       "required": true,
20666	//       "type": "string"
20667	//     },
20668	//     "type": {
20669	//       "description": "Required. Type refers to the dataset name whose schema needs to be\nretrieved E.g. type=fact or type=agg_cus1",
20670	//       "location": "query",
20671	//       "type": "string"
20672	//     }
20673	//   },
20674	//   "path": "v1/{+name}",
20675	//   "response": {
20676	//     "$ref": "GoogleCloudApigeeV1Schema"
20677	//   },
20678	//   "scopes": [
20679	//     "https://www.googleapis.com/auth/cloud-platform"
20680	//   ]
20681	// }
20682
20683}
20684
20685// method id "apigee.organizations.environments.apis.deployments.list":
20686
20687type OrganizationsEnvironmentsApisDeploymentsListCall struct {
20688	s            *Service
20689	parent       string
20690	urlParams_   gensupport.URLParams
20691	ifNoneMatch_ string
20692	ctx_         context.Context
20693	header_      http.Header
20694}
20695
20696// List: Lists all deployments of an API proxy in an environment.
20697func (r *OrganizationsEnvironmentsApisDeploymentsService) List(parent string) *OrganizationsEnvironmentsApisDeploymentsListCall {
20698	c := &OrganizationsEnvironmentsApisDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20699	c.parent = parent
20700	return c
20701}
20702
20703// Fields allows partial responses to be retrieved. See
20704// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20705// for more information.
20706func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisDeploymentsListCall {
20707	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20708	return c
20709}
20710
20711// IfNoneMatch sets the optional parameter which makes the operation
20712// fail if the object's ETag matches the given value. This is useful for
20713// getting updates only after the object has changed since the last
20714// request. Use googleapi.IsNotModified to check whether the response
20715// error from Do is the result of In-None-Match.
20716func (c *OrganizationsEnvironmentsApisDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisDeploymentsListCall {
20717	c.ifNoneMatch_ = entityTag
20718	return c
20719}
20720
20721// Context sets the context to be used in this call's Do method. Any
20722// pending HTTP request will be aborted if the provided context is
20723// canceled.
20724func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisDeploymentsListCall {
20725	c.ctx_ = ctx
20726	return c
20727}
20728
20729// Header returns an http.Header that can be modified by the caller to
20730// add HTTP headers to the request.
20731func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Header() http.Header {
20732	if c.header_ == nil {
20733		c.header_ = make(http.Header)
20734	}
20735	return c.header_
20736}
20737
20738func (c *OrganizationsEnvironmentsApisDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
20739	reqHeaders := make(http.Header)
20740	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20741	for k, v := range c.header_ {
20742		reqHeaders[k] = v
20743	}
20744	reqHeaders.Set("User-Agent", c.s.userAgent())
20745	if c.ifNoneMatch_ != "" {
20746		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20747	}
20748	var body io.Reader = nil
20749	c.urlParams_.Set("alt", alt)
20750	c.urlParams_.Set("prettyPrint", "false")
20751	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
20752	urls += "?" + c.urlParams_.Encode()
20753	req, err := http.NewRequest("GET", urls, body)
20754	if err != nil {
20755		return nil, err
20756	}
20757	req.Header = reqHeaders
20758	googleapi.Expand(req.URL, map[string]string{
20759		"parent": c.parent,
20760	})
20761	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20762}
20763
20764// Do executes the "apigee.organizations.environments.apis.deployments.list" call.
20765// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
20766// will be non-nil. Any non-2xx status code is an error. Response
20767// headers are in either
20768// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
20769// (if a response was returned at all) in
20770// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
20771// whether the returned error was because http.StatusNotModified was
20772// returned.
20773func (c *OrganizationsEnvironmentsApisDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
20774	gensupport.SetOptions(c.urlParams_, opts...)
20775	res, err := c.doRequest("json")
20776	if res != nil && res.StatusCode == http.StatusNotModified {
20777		if res.Body != nil {
20778			res.Body.Close()
20779		}
20780		return nil, &googleapi.Error{
20781			Code:   res.StatusCode,
20782			Header: res.Header,
20783		}
20784	}
20785	if err != nil {
20786		return nil, err
20787	}
20788	defer googleapi.CloseBody(res)
20789	if err := googleapi.CheckResponse(res); err != nil {
20790		return nil, err
20791	}
20792	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
20793		ServerResponse: googleapi.ServerResponse{
20794			Header:         res.Header,
20795			HTTPStatusCode: res.StatusCode,
20796		},
20797	}
20798	target := &ret
20799	if err := gensupport.DecodeResponse(target, res); err != nil {
20800		return nil, err
20801	}
20802	return ret, nil
20803	// {
20804	//   "description": "Lists all deployments of an API proxy in an environment.",
20805	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/deployments",
20806	//   "httpMethod": "GET",
20807	//   "id": "apigee.organizations.environments.apis.deployments.list",
20808	//   "parameterOrder": [
20809	//     "parent"
20810	//   ],
20811	//   "parameters": {
20812	//     "parent": {
20813	//       "description": "Required. Name representing an API proxy in an environment in the following\nformat:\n  `organizations/{org}/environments/{env}/apis/{api}`",
20814	//       "location": "path",
20815	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+$",
20816	//       "required": true,
20817	//       "type": "string"
20818	//     }
20819	//   },
20820	//   "path": "v1/{+parent}/deployments",
20821	//   "response": {
20822	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
20823	//   },
20824	//   "scopes": [
20825	//     "https://www.googleapis.com/auth/cloud-platform"
20826	//   ]
20827	// }
20828
20829}
20830
20831// method id "apigee.organizations.environments.apis.revisions.deployments":
20832
20833type OrganizationsEnvironmentsApisRevisionsDeploymentsCall struct {
20834	s          *Service
20835	name       string
20836	urlParams_ gensupport.URLParams
20837	ctx_       context.Context
20838	header_    http.Header
20839}
20840
20841// Deployments: Undeploys an API proxy revision from an
20842// environment.
20843//
20844// Because multiple revisions of the same API proxy can be deployed
20845// in
20846// the same environment if the base paths are different, you must
20847// specify the
20848// revision number of the API proxy.
20849func (r *OrganizationsEnvironmentsApisRevisionsService) Deployments(name string) *OrganizationsEnvironmentsApisRevisionsDeploymentsCall {
20850	c := &OrganizationsEnvironmentsApisRevisionsDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20851	c.name = name
20852	return c
20853}
20854
20855// Fields allows partial responses to be retrieved. See
20856// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20857// for more information.
20858func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDeploymentsCall {
20859	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20860	return c
20861}
20862
20863// Context sets the context to be used in this call's Do method. Any
20864// pending HTTP request will be aborted if the provided context is
20865// canceled.
20866func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDeploymentsCall {
20867	c.ctx_ = ctx
20868	return c
20869}
20870
20871// Header returns an http.Header that can be modified by the caller to
20872// add HTTP headers to the request.
20873func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsCall) Header() http.Header {
20874	if c.header_ == nil {
20875		c.header_ = make(http.Header)
20876	}
20877	return c.header_
20878}
20879
20880func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsCall) doRequest(alt string) (*http.Response, error) {
20881	reqHeaders := make(http.Header)
20882	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
20883	for k, v := range c.header_ {
20884		reqHeaders[k] = v
20885	}
20886	reqHeaders.Set("User-Agent", c.s.userAgent())
20887	var body io.Reader = nil
20888	c.urlParams_.Set("alt", alt)
20889	c.urlParams_.Set("prettyPrint", "false")
20890	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
20891	urls += "?" + c.urlParams_.Encode()
20892	req, err := http.NewRequest("DELETE", urls, body)
20893	if err != nil {
20894		return nil, err
20895	}
20896	req.Header = reqHeaders
20897	googleapi.Expand(req.URL, map[string]string{
20898		"name": c.name,
20899	})
20900	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20901}
20902
20903// Do executes the "apigee.organizations.environments.apis.revisions.deployments" call.
20904// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
20905// non-2xx status code is an error. Response headers are in either
20906// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
20907// returned at all) in error.(*googleapi.Error).Header. Use
20908// googleapi.IsNotModified to check whether the returned error was
20909// because http.StatusNotModified was returned.
20910func (c *OrganizationsEnvironmentsApisRevisionsDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20911	gensupport.SetOptions(c.urlParams_, opts...)
20912	res, err := c.doRequest("json")
20913	if res != nil && res.StatusCode == http.StatusNotModified {
20914		if res.Body != nil {
20915			res.Body.Close()
20916		}
20917		return nil, &googleapi.Error{
20918			Code:   res.StatusCode,
20919			Header: res.Header,
20920		}
20921	}
20922	if err != nil {
20923		return nil, err
20924	}
20925	defer googleapi.CloseBody(res)
20926	if err := googleapi.CheckResponse(res); err != nil {
20927		return nil, err
20928	}
20929	ret := &GoogleProtobufEmpty{
20930		ServerResponse: googleapi.ServerResponse{
20931			Header:         res.Header,
20932			HTTPStatusCode: res.StatusCode,
20933		},
20934	}
20935	target := &ret
20936	if err := gensupport.DecodeResponse(target, res); err != nil {
20937		return nil, err
20938	}
20939	return ret, nil
20940	// {
20941	//   "description": "Undeploys an API proxy revision from an environment.\n\nBecause multiple revisions of the same API proxy can be deployed in\nthe same environment if the base paths are different, you must specify the\nrevision number of the API proxy.",
20942	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
20943	//   "httpMethod": "DELETE",
20944	//   "id": "apigee.organizations.environments.apis.revisions.deployments",
20945	//   "parameterOrder": [
20946	//     "name"
20947	//   ],
20948	//   "parameters": {
20949	//     "name": {
20950	//       "description": "Required. Name of the API proxy revision deployment in the following format:\n  `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
20951	//       "location": "path",
20952	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
20953	//       "required": true,
20954	//       "type": "string"
20955	//     }
20956	//   },
20957	//   "path": "v1/{+name}/deployments",
20958	//   "response": {
20959	//     "$ref": "GoogleProtobufEmpty"
20960	//   },
20961	//   "scopes": [
20962	//     "https://www.googleapis.com/auth/cloud-platform"
20963	//   ]
20964	// }
20965
20966}
20967
20968// method id "apigee.organizations.environments.apis.revisions.getDeployments":
20969
20970type OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall struct {
20971	s            *Service
20972	name         string
20973	urlParams_   gensupport.URLParams
20974	ifNoneMatch_ string
20975	ctx_         context.Context
20976	header_      http.Header
20977}
20978
20979// GetDeployments: Gets the deployment of an API proxy revision and
20980// actual state reported by
20981// runtime pods.
20982func (r *OrganizationsEnvironmentsApisRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
20983	c := &OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20984	c.name = name
20985	return c
20986}
20987
20988// Fields allows partial responses to be retrieved. See
20989// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20990// for more information.
20991func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
20992	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20993	return c
20994}
20995
20996// IfNoneMatch sets the optional parameter which makes the operation
20997// fail if the object's ETag matches the given value. This is useful for
20998// getting updates only after the object has changed since the last
20999// request. Use googleapi.IsNotModified to check whether the response
21000// error from Do is the result of In-None-Match.
21001func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
21002	c.ifNoneMatch_ = entityTag
21003	return c
21004}
21005
21006// Context sets the context to be used in this call's Do method. Any
21007// pending HTTP request will be aborted if the provided context is
21008// canceled.
21009func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall {
21010	c.ctx_ = ctx
21011	return c
21012}
21013
21014// Header returns an http.Header that can be modified by the caller to
21015// add HTTP headers to the request.
21016func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Header() http.Header {
21017	if c.header_ == nil {
21018		c.header_ = make(http.Header)
21019	}
21020	return c.header_
21021}
21022
21023func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
21024	reqHeaders := make(http.Header)
21025	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21026	for k, v := range c.header_ {
21027		reqHeaders[k] = v
21028	}
21029	reqHeaders.Set("User-Agent", c.s.userAgent())
21030	if c.ifNoneMatch_ != "" {
21031		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21032	}
21033	var body io.Reader = nil
21034	c.urlParams_.Set("alt", alt)
21035	c.urlParams_.Set("prettyPrint", "false")
21036	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
21037	urls += "?" + c.urlParams_.Encode()
21038	req, err := http.NewRequest("GET", urls, body)
21039	if err != nil {
21040		return nil, err
21041	}
21042	req.Header = reqHeaders
21043	googleapi.Expand(req.URL, map[string]string{
21044		"name": c.name,
21045	})
21046	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21047}
21048
21049// Do executes the "apigee.organizations.environments.apis.revisions.getDeployments" call.
21050// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
21051// non-nil. Any non-2xx status code is an error. Response headers are in
21052// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
21053// response was returned at all) in error.(*googleapi.Error).Header. Use
21054// googleapi.IsNotModified to check whether the returned error was
21055// because http.StatusNotModified was returned.
21056func (c *OrganizationsEnvironmentsApisRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
21057	gensupport.SetOptions(c.urlParams_, opts...)
21058	res, err := c.doRequest("json")
21059	if res != nil && res.StatusCode == http.StatusNotModified {
21060		if res.Body != nil {
21061			res.Body.Close()
21062		}
21063		return nil, &googleapi.Error{
21064			Code:   res.StatusCode,
21065			Header: res.Header,
21066		}
21067	}
21068	if err != nil {
21069		return nil, err
21070	}
21071	defer googleapi.CloseBody(res)
21072	if err := googleapi.CheckResponse(res); err != nil {
21073		return nil, err
21074	}
21075	ret := &GoogleCloudApigeeV1Deployment{
21076		ServerResponse: googleapi.ServerResponse{
21077			Header:         res.Header,
21078			HTTPStatusCode: res.StatusCode,
21079		},
21080	}
21081	target := &ret
21082	if err := gensupport.DecodeResponse(target, res); err != nil {
21083		return nil, err
21084	}
21085	return ret, nil
21086	// {
21087	//   "description": "Gets the deployment of an API proxy revision and actual state reported by\nruntime pods.",
21088	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/deployments",
21089	//   "httpMethod": "GET",
21090	//   "id": "apigee.organizations.environments.apis.revisions.getDeployments",
21091	//   "parameterOrder": [
21092	//     "name"
21093	//   ],
21094	//   "parameters": {
21095	//     "name": {
21096	//       "description": "Required. Name representing an API proxy revision in an\nenvironment in the following format:\n  `organizations/{org}/environments/{env}/apis/{api}/revisions/{rev}`",
21097	//       "location": "path",
21098	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
21099	//       "required": true,
21100	//       "type": "string"
21101	//     }
21102	//   },
21103	//   "path": "v1/{+name}/deployments",
21104	//   "response": {
21105	//     "$ref": "GoogleCloudApigeeV1Deployment"
21106	//   },
21107	//   "scopes": [
21108	//     "https://www.googleapis.com/auth/cloud-platform"
21109	//   ]
21110	// }
21111
21112}
21113
21114// method id "apigee.organizations.environments.apis.revisions.debugsessions.create":
21115
21116type OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall struct {
21117	s                               *Service
21118	parent                          string
21119	googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession
21120	urlParams_                      gensupport.URLParams
21121	ctx_                            context.Context
21122	header_                         http.Header
21123}
21124
21125// Create: Creates a debug session for a deployed API Proxy revision.
21126func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) Create(parent string, googlecloudapigeev1debugsession *GoogleCloudApigeeV1DebugSession) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
21127	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21128	c.parent = parent
21129	c.googlecloudapigeev1debugsession = googlecloudapigeev1debugsession
21130	return c
21131}
21132
21133// Timeout sets the optional parameter "timeout": The time in seconds
21134// after which this DebugSession should end.
21135// A timeout specified in DebugSession will overwrite this value.
21136func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Timeout(timeout int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
21137	c.urlParams_.Set("timeout", fmt.Sprint(timeout))
21138	return c
21139}
21140
21141// Fields allows partial responses to be retrieved. See
21142// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21143// for more information.
21144func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
21145	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21146	return c
21147}
21148
21149// Context sets the context to be used in this call's Do method. Any
21150// pending HTTP request will be aborted if the provided context is
21151// canceled.
21152func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall {
21153	c.ctx_ = ctx
21154	return c
21155}
21156
21157// Header returns an http.Header that can be modified by the caller to
21158// add HTTP headers to the request.
21159func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Header() http.Header {
21160	if c.header_ == nil {
21161		c.header_ = make(http.Header)
21162	}
21163	return c.header_
21164}
21165
21166func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) doRequest(alt string) (*http.Response, error) {
21167	reqHeaders := make(http.Header)
21168	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21169	for k, v := range c.header_ {
21170		reqHeaders[k] = v
21171	}
21172	reqHeaders.Set("User-Agent", c.s.userAgent())
21173	var body io.Reader = nil
21174	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1debugsession)
21175	if err != nil {
21176		return nil, err
21177	}
21178	reqHeaders.Set("Content-Type", "application/json")
21179	c.urlParams_.Set("alt", alt)
21180	c.urlParams_.Set("prettyPrint", "false")
21181	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
21182	urls += "?" + c.urlParams_.Encode()
21183	req, err := http.NewRequest("POST", urls, body)
21184	if err != nil {
21185		return nil, err
21186	}
21187	req.Header = reqHeaders
21188	googleapi.Expand(req.URL, map[string]string{
21189		"parent": c.parent,
21190	})
21191	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21192}
21193
21194// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.create" call.
21195// Exactly one of *GoogleCloudApigeeV1DebugSession or error will be
21196// non-nil. Any non-2xx status code is an error. Response headers are in
21197// either *GoogleCloudApigeeV1DebugSession.ServerResponse.Header or (if
21198// a response was returned at all) in error.(*googleapi.Error).Header.
21199// Use googleapi.IsNotModified to check whether the returned error was
21200// because http.StatusNotModified was returned.
21201func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSession, error) {
21202	gensupport.SetOptions(c.urlParams_, opts...)
21203	res, err := c.doRequest("json")
21204	if res != nil && res.StatusCode == http.StatusNotModified {
21205		if res.Body != nil {
21206			res.Body.Close()
21207		}
21208		return nil, &googleapi.Error{
21209			Code:   res.StatusCode,
21210			Header: res.Header,
21211		}
21212	}
21213	if err != nil {
21214		return nil, err
21215	}
21216	defer googleapi.CloseBody(res)
21217	if err := googleapi.CheckResponse(res); err != nil {
21218		return nil, err
21219	}
21220	ret := &GoogleCloudApigeeV1DebugSession{
21221		ServerResponse: googleapi.ServerResponse{
21222			Header:         res.Header,
21223			HTTPStatusCode: res.StatusCode,
21224		},
21225	}
21226	target := &ret
21227	if err := gensupport.DecodeResponse(target, res); err != nil {
21228		return nil, err
21229	}
21230	return ret, nil
21231	// {
21232	//   "description": "Creates a debug session for a deployed API Proxy revision.",
21233	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
21234	//   "httpMethod": "POST",
21235	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.create",
21236	//   "parameterOrder": [
21237	//     "parent"
21238	//   ],
21239	//   "parameters": {
21240	//     "parent": {
21241	//       "description": "Required. The resource name of the API Proxy revision deployment for which\nto create the DebugSession. Must be of the form\n `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.",
21242	//       "location": "path",
21243	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
21244	//       "required": true,
21245	//       "type": "string"
21246	//     },
21247	//     "timeout": {
21248	//       "description": "Optional. The time in seconds after which this DebugSession should end.\nA timeout specified in DebugSession will overwrite this value.",
21249	//       "format": "int64",
21250	//       "location": "query",
21251	//       "type": "string"
21252	//     }
21253	//   },
21254	//   "path": "v1/{+parent}/debugsessions",
21255	//   "request": {
21256	//     "$ref": "GoogleCloudApigeeV1DebugSession"
21257	//   },
21258	//   "response": {
21259	//     "$ref": "GoogleCloudApigeeV1DebugSession"
21260	//   },
21261	//   "scopes": [
21262	//     "https://www.googleapis.com/auth/cloud-platform"
21263	//   ]
21264	// }
21265
21266}
21267
21268// method id "apigee.organizations.environments.apis.revisions.debugsessions.deleteData":
21269
21270type OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall struct {
21271	s          *Service
21272	name       string
21273	urlParams_ gensupport.URLParams
21274	ctx_       context.Context
21275	header_    http.Header
21276}
21277
21278// DeleteData: Deletes the data from a debug session. This does not
21279// cancel the debug
21280// session or prevent further data from being collected if the session
21281// is
21282// still active in runtime pods.
21283func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) DeleteData(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
21284	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21285	c.name = name
21286	return c
21287}
21288
21289// Fields allows partial responses to be retrieved. See
21290// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21291// for more information.
21292func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
21293	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21294	return c
21295}
21296
21297// Context sets the context to be used in this call's Do method. Any
21298// pending HTTP request will be aborted if the provided context is
21299// canceled.
21300func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall {
21301	c.ctx_ = ctx
21302	return c
21303}
21304
21305// Header returns an http.Header that can be modified by the caller to
21306// add HTTP headers to the request.
21307func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Header() http.Header {
21308	if c.header_ == nil {
21309		c.header_ = make(http.Header)
21310	}
21311	return c.header_
21312}
21313
21314func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) doRequest(alt string) (*http.Response, error) {
21315	reqHeaders := make(http.Header)
21316	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21317	for k, v := range c.header_ {
21318		reqHeaders[k] = v
21319	}
21320	reqHeaders.Set("User-Agent", c.s.userAgent())
21321	var body io.Reader = nil
21322	c.urlParams_.Set("alt", alt)
21323	c.urlParams_.Set("prettyPrint", "false")
21324	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/data")
21325	urls += "?" + c.urlParams_.Encode()
21326	req, err := http.NewRequest("DELETE", urls, body)
21327	if err != nil {
21328		return nil, err
21329	}
21330	req.Header = reqHeaders
21331	googleapi.Expand(req.URL, map[string]string{
21332		"name": c.name,
21333	})
21334	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21335}
21336
21337// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.deleteData" call.
21338// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21339// non-2xx status code is an error. Response headers are in either
21340// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21341// returned at all) in error.(*googleapi.Error).Header. Use
21342// googleapi.IsNotModified to check whether the returned error was
21343// because http.StatusNotModified was returned.
21344func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDeleteDataCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21345	gensupport.SetOptions(c.urlParams_, opts...)
21346	res, err := c.doRequest("json")
21347	if res != nil && res.StatusCode == http.StatusNotModified {
21348		if res.Body != nil {
21349			res.Body.Close()
21350		}
21351		return nil, &googleapi.Error{
21352			Code:   res.StatusCode,
21353			Header: res.Header,
21354		}
21355	}
21356	if err != nil {
21357		return nil, err
21358	}
21359	defer googleapi.CloseBody(res)
21360	if err := googleapi.CheckResponse(res); err != nil {
21361		return nil, err
21362	}
21363	ret := &GoogleProtobufEmpty{
21364		ServerResponse: googleapi.ServerResponse{
21365			Header:         res.Header,
21366			HTTPStatusCode: res.StatusCode,
21367		},
21368	}
21369	target := &ret
21370	if err := gensupport.DecodeResponse(target, res); err != nil {
21371		return nil, err
21372	}
21373	return ret, nil
21374	// {
21375	//   "description": "Deletes the data from a debug session. This does not cancel the debug\nsession or prevent further data from being collected if the session is\nstill active in runtime pods.",
21376	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
21377	//   "httpMethod": "DELETE",
21378	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.deleteData",
21379	//   "parameterOrder": [
21380	//     "name"
21381	//   ],
21382	//   "parameters": {
21383	//     "name": {
21384	//       "description": "Required. The name of the debug session to delete.\nMust be of the form:\n `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{debugsession}`.",
21385	//       "location": "path",
21386	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
21387	//       "required": true,
21388	//       "type": "string"
21389	//     }
21390	//   },
21391	//   "path": "v1/{+name}/data",
21392	//   "response": {
21393	//     "$ref": "GoogleProtobufEmpty"
21394	//   },
21395	//   "scopes": [
21396	//     "https://www.googleapis.com/auth/cloud-platform"
21397	//   ]
21398	// }
21399
21400}
21401
21402// method id "apigee.organizations.environments.apis.revisions.debugsessions.list":
21403
21404type OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall struct {
21405	s            *Service
21406	parent       string
21407	urlParams_   gensupport.URLParams
21408	ifNoneMatch_ string
21409	ctx_         context.Context
21410	header_      http.Header
21411}
21412
21413// List: Lists debug sessions that are currently active in the given API
21414// Proxy
21415// revision.
21416func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
21417	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21418	c.parent = parent
21419	return c
21420}
21421
21422// Fields allows partial responses to be retrieved. See
21423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21424// for more information.
21425func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
21426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21427	return c
21428}
21429
21430// IfNoneMatch sets the optional parameter which makes the operation
21431// fail if the object's ETag matches the given value. This is useful for
21432// getting updates only after the object has changed since the last
21433// request. Use googleapi.IsNotModified to check whether the response
21434// error from Do is the result of In-None-Match.
21435func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
21436	c.ifNoneMatch_ = entityTag
21437	return c
21438}
21439
21440// Context sets the context to be used in this call's Do method. Any
21441// pending HTTP request will be aborted if the provided context is
21442// canceled.
21443func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall {
21444	c.ctx_ = ctx
21445	return c
21446}
21447
21448// Header returns an http.Header that can be modified by the caller to
21449// add HTTP headers to the request.
21450func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Header() http.Header {
21451	if c.header_ == nil {
21452		c.header_ = make(http.Header)
21453	}
21454	return c.header_
21455}
21456
21457func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) doRequest(alt string) (*http.Response, error) {
21458	reqHeaders := make(http.Header)
21459	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21460	for k, v := range c.header_ {
21461		reqHeaders[k] = v
21462	}
21463	reqHeaders.Set("User-Agent", c.s.userAgent())
21464	if c.ifNoneMatch_ != "" {
21465		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21466	}
21467	var body io.Reader = nil
21468	c.urlParams_.Set("alt", alt)
21469	c.urlParams_.Set("prettyPrint", "false")
21470	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/debugsessions")
21471	urls += "?" + c.urlParams_.Encode()
21472	req, err := http.NewRequest("GET", urls, body)
21473	if err != nil {
21474		return nil, err
21475	}
21476	req.Header = reqHeaders
21477	googleapi.Expand(req.URL, map[string]string{
21478		"parent": c.parent,
21479	})
21480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21481}
21482
21483// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.list" call.
21484// Exactly one of *GoogleCloudApigeeV1ListDebugSessionsResponse or error
21485// will be non-nil. Any non-2xx status code is an error. Response
21486// headers are in either
21487// *GoogleCloudApigeeV1ListDebugSessionsResponse.ServerResponse.Header
21488// or (if a response was returned at all) in
21489// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21490// whether the returned error was because http.StatusNotModified was
21491// returned.
21492func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDebugSessionsResponse, error) {
21493	gensupport.SetOptions(c.urlParams_, opts...)
21494	res, err := c.doRequest("json")
21495	if res != nil && res.StatusCode == http.StatusNotModified {
21496		if res.Body != nil {
21497			res.Body.Close()
21498		}
21499		return nil, &googleapi.Error{
21500			Code:   res.StatusCode,
21501			Header: res.Header,
21502		}
21503	}
21504	if err != nil {
21505		return nil, err
21506	}
21507	defer googleapi.CloseBody(res)
21508	if err := googleapi.CheckResponse(res); err != nil {
21509		return nil, err
21510	}
21511	ret := &GoogleCloudApigeeV1ListDebugSessionsResponse{
21512		ServerResponse: googleapi.ServerResponse{
21513			Header:         res.Header,
21514			HTTPStatusCode: res.StatusCode,
21515		},
21516	}
21517	target := &ret
21518	if err := gensupport.DecodeResponse(target, res); err != nil {
21519		return nil, err
21520	}
21521	return ret, nil
21522	// {
21523	//   "description": "Lists debug sessions that are currently active in the given API Proxy\nrevision.",
21524	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions",
21525	//   "httpMethod": "GET",
21526	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.list",
21527	//   "parameterOrder": [
21528	//     "parent"
21529	//   ],
21530	//   "parameters": {
21531	//     "parent": {
21532	//       "description": "Required. The name of the API Proxy revision deployment for which\nto list debug sessions. Must be of the form:\n `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}`.",
21533	//       "location": "path",
21534	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+$",
21535	//       "required": true,
21536	//       "type": "string"
21537	//     }
21538	//   },
21539	//   "path": "v1/{+parent}/debugsessions",
21540	//   "response": {
21541	//     "$ref": "GoogleCloudApigeeV1ListDebugSessionsResponse"
21542	//   },
21543	//   "scopes": [
21544	//     "https://www.googleapis.com/auth/cloud-platform"
21545	//   ]
21546	// }
21547
21548}
21549
21550// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.get":
21551
21552type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall struct {
21553	s            *Service
21554	name         string
21555	urlParams_   gensupport.URLParams
21556	ifNoneMatch_ string
21557	ctx_         context.Context
21558	header_      http.Header
21559}
21560
21561// Get: Gets the debug data from a transaction.
21562func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) Get(name string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
21563	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21564	c.name = name
21565	return c
21566}
21567
21568// Fields allows partial responses to be retrieved. See
21569// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21570// for more information.
21571func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
21572	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21573	return c
21574}
21575
21576// IfNoneMatch sets the optional parameter which makes the operation
21577// fail if the object's ETag matches the given value. This is useful for
21578// getting updates only after the object has changed since the last
21579// request. Use googleapi.IsNotModified to check whether the response
21580// error from Do is the result of In-None-Match.
21581func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
21582	c.ifNoneMatch_ = entityTag
21583	return c
21584}
21585
21586// Context sets the context to be used in this call's Do method. Any
21587// pending HTTP request will be aborted if the provided context is
21588// canceled.
21589func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall {
21590	c.ctx_ = ctx
21591	return c
21592}
21593
21594// Header returns an http.Header that can be modified by the caller to
21595// add HTTP headers to the request.
21596func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Header() http.Header {
21597	if c.header_ == nil {
21598		c.header_ = make(http.Header)
21599	}
21600	return c.header_
21601}
21602
21603func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) doRequest(alt string) (*http.Response, error) {
21604	reqHeaders := make(http.Header)
21605	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21606	for k, v := range c.header_ {
21607		reqHeaders[k] = v
21608	}
21609	reqHeaders.Set("User-Agent", c.s.userAgent())
21610	if c.ifNoneMatch_ != "" {
21611		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21612	}
21613	var body io.Reader = nil
21614	c.urlParams_.Set("alt", alt)
21615	c.urlParams_.Set("prettyPrint", "false")
21616	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21617	urls += "?" + c.urlParams_.Encode()
21618	req, err := http.NewRequest("GET", urls, body)
21619	if err != nil {
21620		return nil, err
21621	}
21622	req.Header = reqHeaders
21623	googleapi.Expand(req.URL, map[string]string{
21624		"name": c.name,
21625	})
21626	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21627}
21628
21629// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.get" call.
21630// Exactly one of *GoogleCloudApigeeV1DebugSessionTransaction or error
21631// will be non-nil. Any non-2xx status code is an error. Response
21632// headers are in either
21633// *GoogleCloudApigeeV1DebugSessionTransaction.ServerResponse.Header or
21634// (if a response was returned at all) in
21635// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
21636// whether the returned error was because http.StatusNotModified was
21637// returned.
21638func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DebugSessionTransaction, error) {
21639	gensupport.SetOptions(c.urlParams_, opts...)
21640	res, err := c.doRequest("json")
21641	if res != nil && res.StatusCode == http.StatusNotModified {
21642		if res.Body != nil {
21643			res.Body.Close()
21644		}
21645		return nil, &googleapi.Error{
21646			Code:   res.StatusCode,
21647			Header: res.Header,
21648		}
21649	}
21650	if err != nil {
21651		return nil, err
21652	}
21653	defer googleapi.CloseBody(res)
21654	if err := googleapi.CheckResponse(res); err != nil {
21655		return nil, err
21656	}
21657	ret := &GoogleCloudApigeeV1DebugSessionTransaction{
21658		ServerResponse: googleapi.ServerResponse{
21659			Header:         res.Header,
21660			HTTPStatusCode: res.StatusCode,
21661		},
21662	}
21663	target := &ret
21664	if err := gensupport.DecodeResponse(target, res); err != nil {
21665		return nil, err
21666	}
21667	return ret, nil
21668	// {
21669	//   "description": "Gets the debug data from a transaction.",
21670	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data/{dataId}",
21671	//   "httpMethod": "GET",
21672	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.get",
21673	//   "parameterOrder": [
21674	//     "name"
21675	//   ],
21676	//   "parameters": {
21677	//     "name": {
21678	//       "description": "Required. The name of the debug session transaction. Must be of the form:\n `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}/data/{transaction}`.",
21679	//       "location": "path",
21680	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+/data/[^/]+$",
21681	//       "required": true,
21682	//       "type": "string"
21683	//     }
21684	//   },
21685	//   "path": "v1/{+name}",
21686	//   "response": {
21687	//     "$ref": "GoogleCloudApigeeV1DebugSessionTransaction"
21688	//   },
21689	//   "scopes": [
21690	//     "https://www.googleapis.com/auth/cloud-platform"
21691	//   ]
21692	// }
21693
21694}
21695
21696// method id "apigee.organizations.environments.apis.revisions.debugsessions.data.list":
21697
21698type OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall struct {
21699	s            *Service
21700	parent       string
21701	urlParams_   gensupport.URLParams
21702	ifNoneMatch_ string
21703	ctx_         context.Context
21704	header_      http.Header
21705}
21706
21707// List: Lists the transaction IDs from a debug session.
21708func (r *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataService) List(parent string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall {
21709	c := &OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21710	c.parent = parent
21711	return c
21712}
21713
21714// Limit sets the optional parameter "limit": A http query parameter
21715// that can control the maximum number of
21716// debug session transactions that can be returned by UAP.
21717func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) Limit(limit int64) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall {
21718	c.urlParams_.Set("limit", fmt.Sprint(limit))
21719	return c
21720}
21721
21722// Fields allows partial responses to be retrieved. See
21723// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21724// for more information.
21725func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall {
21726	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21727	return c
21728}
21729
21730// IfNoneMatch sets the optional parameter which makes the operation
21731// fail if the object's ETag matches the given value. This is useful for
21732// getting updates only after the object has changed since the last
21733// request. Use googleapi.IsNotModified to check whether the response
21734// error from Do is the result of In-None-Match.
21735func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall {
21736	c.ifNoneMatch_ = entityTag
21737	return c
21738}
21739
21740// Context sets the context to be used in this call's Do method. Any
21741// pending HTTP request will be aborted if the provided context is
21742// canceled.
21743func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) Context(ctx context.Context) *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall {
21744	c.ctx_ = ctx
21745	return c
21746}
21747
21748// Header returns an http.Header that can be modified by the caller to
21749// add HTTP headers to the request.
21750func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) Header() http.Header {
21751	if c.header_ == nil {
21752		c.header_ = make(http.Header)
21753	}
21754	return c.header_
21755}
21756
21757func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) doRequest(alt string) (*http.Response, error) {
21758	reqHeaders := make(http.Header)
21759	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21760	for k, v := range c.header_ {
21761		reqHeaders[k] = v
21762	}
21763	reqHeaders.Set("User-Agent", c.s.userAgent())
21764	if c.ifNoneMatch_ != "" {
21765		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21766	}
21767	var body io.Reader = nil
21768	c.urlParams_.Set("alt", alt)
21769	c.urlParams_.Set("prettyPrint", "false")
21770	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/data")
21771	urls += "?" + c.urlParams_.Encode()
21772	req, err := http.NewRequest("GET", urls, body)
21773	if err != nil {
21774		return nil, err
21775	}
21776	req.Header = reqHeaders
21777	googleapi.Expand(req.URL, map[string]string{
21778		"parent": c.parent,
21779	})
21780	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21781}
21782
21783// Do executes the "apigee.organizations.environments.apis.revisions.debugsessions.data.list" call.
21784func (c *OrganizationsEnvironmentsApisRevisionsDebugsessionsDataListCall) Do(opts ...googleapi.CallOption) error {
21785	gensupport.SetOptions(c.urlParams_, opts...)
21786	res, err := c.doRequest("json")
21787	if err != nil {
21788		return err
21789	}
21790	defer googleapi.CloseBody(res)
21791	if err := googleapi.CheckResponse(res); err != nil {
21792		return err
21793	}
21794	return nil
21795	// {
21796	//   "description": "Lists the transaction IDs from a debug session.",
21797	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/apis/{apisId}/revisions/{revisionsId}/debugsessions/{debugsessionsId}/data",
21798	//   "httpMethod": "GET",
21799	//   "id": "apigee.organizations.environments.apis.revisions.debugsessions.data.list",
21800	//   "parameterOrder": [
21801	//     "parent"
21802	//   ],
21803	//   "parameters": {
21804	//     "limit": {
21805	//       "description": "Optional. A http query parameter that can control the maximum number of\ndebug session transactions that can be returned by UAP.",
21806	//       "format": "int32",
21807	//       "location": "query",
21808	//       "type": "integer"
21809	//     },
21810	//     "parent": {
21811	//       "description": "Required. The name of the debug sessions for which to list transactions.\nMust be of the form:\n `organizations/{organization}/environments/{environment}/apis/{api}/revisions/{revision}/debugsessions/{session}`.",
21812	//       "location": "path",
21813	//       "pattern": "^organizations/[^/]+/environments/[^/]+/apis/[^/]+/revisions/[^/]+/debugsessions/[^/]+$",
21814	//       "required": true,
21815	//       "type": "string"
21816	//     }
21817	//   },
21818	//   "path": "v1/{+parent}/data",
21819	//   "response": {
21820	//     "items": {
21821	//       "type": "any"
21822	//     },
21823	//     "type": "array"
21824	//   },
21825	//   "scopes": [
21826	//     "https://www.googleapis.com/auth/cloud-platform"
21827	//   ]
21828	// }
21829
21830}
21831
21832// method id "apigee.organizations.environments.caches.delete":
21833
21834type OrganizationsEnvironmentsCachesDeleteCall struct {
21835	s          *Service
21836	name       string
21837	urlParams_ gensupport.URLParams
21838	ctx_       context.Context
21839	header_    http.Header
21840}
21841
21842// Delete: Deletes a cache.
21843func (r *OrganizationsEnvironmentsCachesService) Delete(name string) *OrganizationsEnvironmentsCachesDeleteCall {
21844	c := &OrganizationsEnvironmentsCachesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21845	c.name = name
21846	return c
21847}
21848
21849// Fields allows partial responses to be retrieved. See
21850// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21851// for more information.
21852func (c *OrganizationsEnvironmentsCachesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesDeleteCall {
21853	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21854	return c
21855}
21856
21857// Context sets the context to be used in this call's Do method. Any
21858// pending HTTP request will be aborted if the provided context is
21859// canceled.
21860func (c *OrganizationsEnvironmentsCachesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesDeleteCall {
21861	c.ctx_ = ctx
21862	return c
21863}
21864
21865// Header returns an http.Header that can be modified by the caller to
21866// add HTTP headers to the request.
21867func (c *OrganizationsEnvironmentsCachesDeleteCall) Header() http.Header {
21868	if c.header_ == nil {
21869		c.header_ = make(http.Header)
21870	}
21871	return c.header_
21872}
21873
21874func (c *OrganizationsEnvironmentsCachesDeleteCall) doRequest(alt string) (*http.Response, error) {
21875	reqHeaders := make(http.Header)
21876	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
21877	for k, v := range c.header_ {
21878		reqHeaders[k] = v
21879	}
21880	reqHeaders.Set("User-Agent", c.s.userAgent())
21881	var body io.Reader = nil
21882	c.urlParams_.Set("alt", alt)
21883	c.urlParams_.Set("prettyPrint", "false")
21884	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21885	urls += "?" + c.urlParams_.Encode()
21886	req, err := http.NewRequest("DELETE", urls, body)
21887	if err != nil {
21888		return nil, err
21889	}
21890	req.Header = reqHeaders
21891	googleapi.Expand(req.URL, map[string]string{
21892		"name": c.name,
21893	})
21894	return gensupport.SendRequest(c.ctx_, c.s.client, req)
21895}
21896
21897// Do executes the "apigee.organizations.environments.caches.delete" call.
21898// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
21899// non-2xx status code is an error. Response headers are in either
21900// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
21901// returned at all) in error.(*googleapi.Error).Header. Use
21902// googleapi.IsNotModified to check whether the returned error was
21903// because http.StatusNotModified was returned.
21904func (c *OrganizationsEnvironmentsCachesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21905	gensupport.SetOptions(c.urlParams_, opts...)
21906	res, err := c.doRequest("json")
21907	if res != nil && res.StatusCode == http.StatusNotModified {
21908		if res.Body != nil {
21909			res.Body.Close()
21910		}
21911		return nil, &googleapi.Error{
21912			Code:   res.StatusCode,
21913			Header: res.Header,
21914		}
21915	}
21916	if err != nil {
21917		return nil, err
21918	}
21919	defer googleapi.CloseBody(res)
21920	if err := googleapi.CheckResponse(res); err != nil {
21921		return nil, err
21922	}
21923	ret := &GoogleProtobufEmpty{
21924		ServerResponse: googleapi.ServerResponse{
21925			Header:         res.Header,
21926			HTTPStatusCode: res.StatusCode,
21927		},
21928	}
21929	target := &ret
21930	if err := gensupport.DecodeResponse(target, res); err != nil {
21931		return nil, err
21932	}
21933	return ret, nil
21934	// {
21935	//   "description": "Deletes a cache.",
21936	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches/{cachesId}",
21937	//   "httpMethod": "DELETE",
21938	//   "id": "apigee.organizations.environments.caches.delete",
21939	//   "parameterOrder": [
21940	//     "name"
21941	//   ],
21942	//   "parameters": {
21943	//     "name": {
21944	//       "description": "Required. Cache resource name of the form:\n    `organizations/{organization_id}/environments/{environment_id}/caches/{cache_id}`",
21945	//       "location": "path",
21946	//       "pattern": "^organizations/[^/]+/environments/[^/]+/caches/[^/]+$",
21947	//       "required": true,
21948	//       "type": "string"
21949	//     }
21950	//   },
21951	//   "path": "v1/{+name}",
21952	//   "response": {
21953	//     "$ref": "GoogleProtobufEmpty"
21954	//   },
21955	//   "scopes": [
21956	//     "https://www.googleapis.com/auth/cloud-platform"
21957	//   ]
21958	// }
21959
21960}
21961
21962// method id "apigee.organizations.environments.caches.list":
21963
21964type OrganizationsEnvironmentsCachesListCall struct {
21965	s            *Service
21966	parent       string
21967	urlParams_   gensupport.URLParams
21968	ifNoneMatch_ string
21969	ctx_         context.Context
21970	header_      http.Header
21971}
21972
21973// List: Lists all caches in an environment.
21974func (r *OrganizationsEnvironmentsCachesService) List(parent string) *OrganizationsEnvironmentsCachesListCall {
21975	c := &OrganizationsEnvironmentsCachesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21976	c.parent = parent
21977	return c
21978}
21979
21980// Fields allows partial responses to be retrieved. See
21981// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
21982// for more information.
21983func (c *OrganizationsEnvironmentsCachesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsCachesListCall {
21984	c.urlParams_.Set("fields", googleapi.CombineFields(s))
21985	return c
21986}
21987
21988// IfNoneMatch sets the optional parameter which makes the operation
21989// fail if the object's ETag matches the given value. This is useful for
21990// getting updates only after the object has changed since the last
21991// request. Use googleapi.IsNotModified to check whether the response
21992// error from Do is the result of In-None-Match.
21993func (c *OrganizationsEnvironmentsCachesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsCachesListCall {
21994	c.ifNoneMatch_ = entityTag
21995	return c
21996}
21997
21998// Context sets the context to be used in this call's Do method. Any
21999// pending HTTP request will be aborted if the provided context is
22000// canceled.
22001func (c *OrganizationsEnvironmentsCachesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsCachesListCall {
22002	c.ctx_ = ctx
22003	return c
22004}
22005
22006// Header returns an http.Header that can be modified by the caller to
22007// add HTTP headers to the request.
22008func (c *OrganizationsEnvironmentsCachesListCall) Header() http.Header {
22009	if c.header_ == nil {
22010		c.header_ = make(http.Header)
22011	}
22012	return c.header_
22013}
22014
22015func (c *OrganizationsEnvironmentsCachesListCall) doRequest(alt string) (*http.Response, error) {
22016	reqHeaders := make(http.Header)
22017	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22018	for k, v := range c.header_ {
22019		reqHeaders[k] = v
22020	}
22021	reqHeaders.Set("User-Agent", c.s.userAgent())
22022	if c.ifNoneMatch_ != "" {
22023		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22024	}
22025	var body io.Reader = nil
22026	c.urlParams_.Set("alt", alt)
22027	c.urlParams_.Set("prettyPrint", "false")
22028	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/caches")
22029	urls += "?" + c.urlParams_.Encode()
22030	req, err := http.NewRequest("GET", urls, body)
22031	if err != nil {
22032		return nil, err
22033	}
22034	req.Header = reqHeaders
22035	googleapi.Expand(req.URL, map[string]string{
22036		"parent": c.parent,
22037	})
22038	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22039}
22040
22041// Do executes the "apigee.organizations.environments.caches.list" call.
22042func (c *OrganizationsEnvironmentsCachesListCall) Do(opts ...googleapi.CallOption) error {
22043	gensupport.SetOptions(c.urlParams_, opts...)
22044	res, err := c.doRequest("json")
22045	if err != nil {
22046		return err
22047	}
22048	defer googleapi.CloseBody(res)
22049	if err := googleapi.CheckResponse(res); err != nil {
22050		return err
22051	}
22052	return nil
22053	// {
22054	//   "description": "Lists all caches in an environment.",
22055	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/caches",
22056	//   "httpMethod": "GET",
22057	//   "id": "apigee.organizations.environments.caches.list",
22058	//   "parameterOrder": [
22059	//     "parent"
22060	//   ],
22061	//   "parameters": {
22062	//     "parent": {
22063	//       "description": "Required. The name of the parent environment under which to get caches.\nMust be of the form:\n    `organizations/{organization_id}/environments/{environment_id}`",
22064	//       "location": "path",
22065	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22066	//       "required": true,
22067	//       "type": "string"
22068	//     }
22069	//   },
22070	//   "path": "v1/{+parent}/caches",
22071	//   "response": {
22072	//     "items": {
22073	//       "type": "any"
22074	//     },
22075	//     "type": "array"
22076	//   },
22077	//   "scopes": [
22078	//     "https://www.googleapis.com/auth/cloud-platform"
22079	//   ]
22080	// }
22081
22082}
22083
22084// method id "apigee.organizations.environments.deployments.list":
22085
22086type OrganizationsEnvironmentsDeploymentsListCall struct {
22087	s            *Service
22088	parent       string
22089	urlParams_   gensupport.URLParams
22090	ifNoneMatch_ string
22091	ctx_         context.Context
22092	header_      http.Header
22093}
22094
22095// List: Lists all deployments of API proxies or shared flows in an
22096// environment.
22097func (r *OrganizationsEnvironmentsDeploymentsService) List(parent string) *OrganizationsEnvironmentsDeploymentsListCall {
22098	c := &OrganizationsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22099	c.parent = parent
22100	return c
22101}
22102
22103// SharedFlows sets the optional parameter "sharedFlows": Flag that
22104// specifies whether to return shared flow or API proxy deployments.
22105// Set to `true` to return shared flow deployments; set to `false`
22106// to return API proxy deployments. Defaults to `false`.
22107func (c *OrganizationsEnvironmentsDeploymentsListCall) SharedFlows(sharedFlows bool) *OrganizationsEnvironmentsDeploymentsListCall {
22108	c.urlParams_.Set("sharedFlows", fmt.Sprint(sharedFlows))
22109	return c
22110}
22111
22112// Fields allows partial responses to be retrieved. See
22113// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22114// for more information.
22115func (c *OrganizationsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsDeploymentsListCall {
22116	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22117	return c
22118}
22119
22120// IfNoneMatch sets the optional parameter which makes the operation
22121// fail if the object's ETag matches the given value. This is useful for
22122// getting updates only after the object has changed since the last
22123// request. Use googleapi.IsNotModified to check whether the response
22124// error from Do is the result of In-None-Match.
22125func (c *OrganizationsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsDeploymentsListCall {
22126	c.ifNoneMatch_ = entityTag
22127	return c
22128}
22129
22130// Context sets the context to be used in this call's Do method. Any
22131// pending HTTP request will be aborted if the provided context is
22132// canceled.
22133func (c *OrganizationsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsDeploymentsListCall {
22134	c.ctx_ = ctx
22135	return c
22136}
22137
22138// Header returns an http.Header that can be modified by the caller to
22139// add HTTP headers to the request.
22140func (c *OrganizationsEnvironmentsDeploymentsListCall) Header() http.Header {
22141	if c.header_ == nil {
22142		c.header_ = make(http.Header)
22143	}
22144	return c.header_
22145}
22146
22147func (c *OrganizationsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
22148	reqHeaders := make(http.Header)
22149	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22150	for k, v := range c.header_ {
22151		reqHeaders[k] = v
22152	}
22153	reqHeaders.Set("User-Agent", c.s.userAgent())
22154	if c.ifNoneMatch_ != "" {
22155		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22156	}
22157	var body io.Reader = nil
22158	c.urlParams_.Set("alt", alt)
22159	c.urlParams_.Set("prettyPrint", "false")
22160	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
22161	urls += "?" + c.urlParams_.Encode()
22162	req, err := http.NewRequest("GET", urls, body)
22163	if err != nil {
22164		return nil, err
22165	}
22166	req.Header = reqHeaders
22167	googleapi.Expand(req.URL, map[string]string{
22168		"parent": c.parent,
22169	})
22170	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22171}
22172
22173// Do executes the "apigee.organizations.environments.deployments.list" call.
22174// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
22175// will be non-nil. Any non-2xx status code is an error. Response
22176// headers are in either
22177// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
22178// (if a response was returned at all) in
22179// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
22180// whether the returned error was because http.StatusNotModified was
22181// returned.
22182func (c *OrganizationsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
22183	gensupport.SetOptions(c.urlParams_, opts...)
22184	res, err := c.doRequest("json")
22185	if res != nil && res.StatusCode == http.StatusNotModified {
22186		if res.Body != nil {
22187			res.Body.Close()
22188		}
22189		return nil, &googleapi.Error{
22190			Code:   res.StatusCode,
22191			Header: res.Header,
22192		}
22193	}
22194	if err != nil {
22195		return nil, err
22196	}
22197	defer googleapi.CloseBody(res)
22198	if err := googleapi.CheckResponse(res); err != nil {
22199		return nil, err
22200	}
22201	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
22202		ServerResponse: googleapi.ServerResponse{
22203			Header:         res.Header,
22204			HTTPStatusCode: res.StatusCode,
22205		},
22206	}
22207	target := &ret
22208	if err := gensupport.DecodeResponse(target, res); err != nil {
22209		return nil, err
22210	}
22211	return ret, nil
22212	// {
22213	//   "description": "Lists all deployments of API proxies or shared flows in an environment.",
22214	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/deployments",
22215	//   "httpMethod": "GET",
22216	//   "id": "apigee.organizations.environments.deployments.list",
22217	//   "parameterOrder": [
22218	//     "parent"
22219	//   ],
22220	//   "parameters": {
22221	//     "parent": {
22222	//       "description": "Required. Name of the environment for which to return deployment information in the\nfollowing format:\n  `organizations/{org}/environments/{env}`",
22223	//       "location": "path",
22224	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22225	//       "required": true,
22226	//       "type": "string"
22227	//     },
22228	//     "sharedFlows": {
22229	//       "description": "Optional. Flag that specifies whether to return shared flow or API proxy deployments.\nSet to `true` to return shared flow deployments; set to `false`\nto return API proxy deployments. Defaults to `false`.",
22230	//       "location": "query",
22231	//       "type": "boolean"
22232	//     }
22233	//   },
22234	//   "path": "v1/{+parent}/deployments",
22235	//   "response": {
22236	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
22237	//   },
22238	//   "scopes": [
22239	//     "https://www.googleapis.com/auth/cloud-platform"
22240	//   ]
22241	// }
22242
22243}
22244
22245// method id "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook":
22246
22247type OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall struct {
22248	s                           *Service
22249	name                        string
22250	googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook
22251	urlParams_                  gensupport.URLParams
22252	ctx_                        context.Context
22253	header_                     http.Header
22254}
22255
22256// AttachSharedFlowToFlowHook: Attaches a shared flow to a flow hook.
22257func (r *OrganizationsEnvironmentsFlowhooksService) AttachSharedFlowToFlowHook(name string, googlecloudapigeev1flowhook *GoogleCloudApigeeV1FlowHook) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
22258	c := &OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22259	c.name = name
22260	c.googlecloudapigeev1flowhook = googlecloudapigeev1flowhook
22261	return c
22262}
22263
22264// Fields allows partial responses to be retrieved. See
22265// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22266// for more information.
22267func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
22268	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22269	return c
22270}
22271
22272// Context sets the context to be used in this call's Do method. Any
22273// pending HTTP request will be aborted if the provided context is
22274// canceled.
22275func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall {
22276	c.ctx_ = ctx
22277	return c
22278}
22279
22280// Header returns an http.Header that can be modified by the caller to
22281// add HTTP headers to the request.
22282func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Header() http.Header {
22283	if c.header_ == nil {
22284		c.header_ = make(http.Header)
22285	}
22286	return c.header_
22287}
22288
22289func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) doRequest(alt string) (*http.Response, error) {
22290	reqHeaders := make(http.Header)
22291	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22292	for k, v := range c.header_ {
22293		reqHeaders[k] = v
22294	}
22295	reqHeaders.Set("User-Agent", c.s.userAgent())
22296	var body io.Reader = nil
22297	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1flowhook)
22298	if err != nil {
22299		return nil, err
22300	}
22301	reqHeaders.Set("Content-Type", "application/json")
22302	c.urlParams_.Set("alt", alt)
22303	c.urlParams_.Set("prettyPrint", "false")
22304	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22305	urls += "?" + c.urlParams_.Encode()
22306	req, err := http.NewRequest("PUT", urls, body)
22307	if err != nil {
22308		return nil, err
22309	}
22310	req.Header = reqHeaders
22311	googleapi.Expand(req.URL, map[string]string{
22312		"name": c.name,
22313	})
22314	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22315}
22316
22317// Do executes the "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook" call.
22318// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
22319// Any non-2xx status code is an error. Response headers are in either
22320// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
22321// was returned at all) in error.(*googleapi.Error).Header. Use
22322// googleapi.IsNotModified to check whether the returned error was
22323// because http.StatusNotModified was returned.
22324func (c *OrganizationsEnvironmentsFlowhooksAttachSharedFlowToFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
22325	gensupport.SetOptions(c.urlParams_, opts...)
22326	res, err := c.doRequest("json")
22327	if res != nil && res.StatusCode == http.StatusNotModified {
22328		if res.Body != nil {
22329			res.Body.Close()
22330		}
22331		return nil, &googleapi.Error{
22332			Code:   res.StatusCode,
22333			Header: res.Header,
22334		}
22335	}
22336	if err != nil {
22337		return nil, err
22338	}
22339	defer googleapi.CloseBody(res)
22340	if err := googleapi.CheckResponse(res); err != nil {
22341		return nil, err
22342	}
22343	ret := &GoogleCloudApigeeV1FlowHook{
22344		ServerResponse: googleapi.ServerResponse{
22345			Header:         res.Header,
22346			HTTPStatusCode: res.StatusCode,
22347		},
22348	}
22349	target := &ret
22350	if err := gensupport.DecodeResponse(target, res); err != nil {
22351		return nil, err
22352	}
22353	return ret, nil
22354	// {
22355	//   "description": "Attaches a shared flow to a flow hook.",
22356	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
22357	//   "httpMethod": "PUT",
22358	//   "id": "apigee.organizations.environments.flowhooks.attachSharedFlowToFlowHook",
22359	//   "parameterOrder": [
22360	//     "name"
22361	//   ],
22362	//   "parameters": {
22363	//     "name": {
22364	//       "description": "Required. Name of the flow hook to which the shared flow should be\nattached in the following format:\n  `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
22365	//       "location": "path",
22366	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
22367	//       "required": true,
22368	//       "type": "string"
22369	//     }
22370	//   },
22371	//   "path": "v1/{+name}",
22372	//   "request": {
22373	//     "$ref": "GoogleCloudApigeeV1FlowHook"
22374	//   },
22375	//   "response": {
22376	//     "$ref": "GoogleCloudApigeeV1FlowHook"
22377	//   },
22378	//   "scopes": [
22379	//     "https://www.googleapis.com/auth/cloud-platform"
22380	//   ]
22381	// }
22382
22383}
22384
22385// method id "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook":
22386
22387type OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall struct {
22388	s          *Service
22389	name       string
22390	urlParams_ gensupport.URLParams
22391	ctx_       context.Context
22392	header_    http.Header
22393}
22394
22395// DetachSharedFlowFromFlowHook: Detaches a shared flow from a flow
22396// hook.
22397func (r *OrganizationsEnvironmentsFlowhooksService) DetachSharedFlowFromFlowHook(name string) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
22398	c := &OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22399	c.name = name
22400	return c
22401}
22402
22403// Fields allows partial responses to be retrieved. See
22404// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22405// for more information.
22406func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
22407	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22408	return c
22409}
22410
22411// Context sets the context to be used in this call's Do method. Any
22412// pending HTTP request will be aborted if the provided context is
22413// canceled.
22414func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall {
22415	c.ctx_ = ctx
22416	return c
22417}
22418
22419// Header returns an http.Header that can be modified by the caller to
22420// add HTTP headers to the request.
22421func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Header() http.Header {
22422	if c.header_ == nil {
22423		c.header_ = make(http.Header)
22424	}
22425	return c.header_
22426}
22427
22428func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) doRequest(alt string) (*http.Response, error) {
22429	reqHeaders := make(http.Header)
22430	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22431	for k, v := range c.header_ {
22432		reqHeaders[k] = v
22433	}
22434	reqHeaders.Set("User-Agent", c.s.userAgent())
22435	var body io.Reader = nil
22436	c.urlParams_.Set("alt", alt)
22437	c.urlParams_.Set("prettyPrint", "false")
22438	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22439	urls += "?" + c.urlParams_.Encode()
22440	req, err := http.NewRequest("DELETE", urls, body)
22441	if err != nil {
22442		return nil, err
22443	}
22444	req.Header = reqHeaders
22445	googleapi.Expand(req.URL, map[string]string{
22446		"name": c.name,
22447	})
22448	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22449}
22450
22451// Do executes the "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook" call.
22452// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
22453// Any non-2xx status code is an error. Response headers are in either
22454// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
22455// was returned at all) in error.(*googleapi.Error).Header. Use
22456// googleapi.IsNotModified to check whether the returned error was
22457// because http.StatusNotModified was returned.
22458func (c *OrganizationsEnvironmentsFlowhooksDetachSharedFlowFromFlowHookCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
22459	gensupport.SetOptions(c.urlParams_, opts...)
22460	res, err := c.doRequest("json")
22461	if res != nil && res.StatusCode == http.StatusNotModified {
22462		if res.Body != nil {
22463			res.Body.Close()
22464		}
22465		return nil, &googleapi.Error{
22466			Code:   res.StatusCode,
22467			Header: res.Header,
22468		}
22469	}
22470	if err != nil {
22471		return nil, err
22472	}
22473	defer googleapi.CloseBody(res)
22474	if err := googleapi.CheckResponse(res); err != nil {
22475		return nil, err
22476	}
22477	ret := &GoogleCloudApigeeV1FlowHook{
22478		ServerResponse: googleapi.ServerResponse{
22479			Header:         res.Header,
22480			HTTPStatusCode: res.StatusCode,
22481		},
22482	}
22483	target := &ret
22484	if err := gensupport.DecodeResponse(target, res); err != nil {
22485		return nil, err
22486	}
22487	return ret, nil
22488	// {
22489	//   "description": "Detaches a shared flow from a flow hook.",
22490	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
22491	//   "httpMethod": "DELETE",
22492	//   "id": "apigee.organizations.environments.flowhooks.detachSharedFlowFromFlowHook",
22493	//   "parameterOrder": [
22494	//     "name"
22495	//   ],
22496	//   "parameters": {
22497	//     "name": {
22498	//       "description": "Required. Name of the flow hook to detach in the following format:\n  `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
22499	//       "location": "path",
22500	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
22501	//       "required": true,
22502	//       "type": "string"
22503	//     }
22504	//   },
22505	//   "path": "v1/{+name}",
22506	//   "response": {
22507	//     "$ref": "GoogleCloudApigeeV1FlowHook"
22508	//   },
22509	//   "scopes": [
22510	//     "https://www.googleapis.com/auth/cloud-platform"
22511	//   ]
22512	// }
22513
22514}
22515
22516// method id "apigee.organizations.environments.flowhooks.get":
22517
22518type OrganizationsEnvironmentsFlowhooksGetCall struct {
22519	s            *Service
22520	name         string
22521	urlParams_   gensupport.URLParams
22522	ifNoneMatch_ string
22523	ctx_         context.Context
22524	header_      http.Header
22525}
22526
22527// Get: Returns the name of the shared flow attached to the specified
22528// flow hook. If
22529// there's no shared flow attached to the flow hook, the API does not
22530// return
22531// an error; it simply does not return a name in the response.
22532func (r *OrganizationsEnvironmentsFlowhooksService) Get(name string) *OrganizationsEnvironmentsFlowhooksGetCall {
22533	c := &OrganizationsEnvironmentsFlowhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22534	c.name = name
22535	return c
22536}
22537
22538// Fields allows partial responses to be retrieved. See
22539// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22540// for more information.
22541func (c *OrganizationsEnvironmentsFlowhooksGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksGetCall {
22542	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22543	return c
22544}
22545
22546// IfNoneMatch sets the optional parameter which makes the operation
22547// fail if the object's ETag matches the given value. This is useful for
22548// getting updates only after the object has changed since the last
22549// request. Use googleapi.IsNotModified to check whether the response
22550// error from Do is the result of In-None-Match.
22551func (c *OrganizationsEnvironmentsFlowhooksGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksGetCall {
22552	c.ifNoneMatch_ = entityTag
22553	return c
22554}
22555
22556// Context sets the context to be used in this call's Do method. Any
22557// pending HTTP request will be aborted if the provided context is
22558// canceled.
22559func (c *OrganizationsEnvironmentsFlowhooksGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksGetCall {
22560	c.ctx_ = ctx
22561	return c
22562}
22563
22564// Header returns an http.Header that can be modified by the caller to
22565// add HTTP headers to the request.
22566func (c *OrganizationsEnvironmentsFlowhooksGetCall) Header() http.Header {
22567	if c.header_ == nil {
22568		c.header_ = make(http.Header)
22569	}
22570	return c.header_
22571}
22572
22573func (c *OrganizationsEnvironmentsFlowhooksGetCall) doRequest(alt string) (*http.Response, error) {
22574	reqHeaders := make(http.Header)
22575	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22576	for k, v := range c.header_ {
22577		reqHeaders[k] = v
22578	}
22579	reqHeaders.Set("User-Agent", c.s.userAgent())
22580	if c.ifNoneMatch_ != "" {
22581		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22582	}
22583	var body io.Reader = nil
22584	c.urlParams_.Set("alt", alt)
22585	c.urlParams_.Set("prettyPrint", "false")
22586	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22587	urls += "?" + c.urlParams_.Encode()
22588	req, err := http.NewRequest("GET", urls, body)
22589	if err != nil {
22590		return nil, err
22591	}
22592	req.Header = reqHeaders
22593	googleapi.Expand(req.URL, map[string]string{
22594		"name": c.name,
22595	})
22596	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22597}
22598
22599// Do executes the "apigee.organizations.environments.flowhooks.get" call.
22600// Exactly one of *GoogleCloudApigeeV1FlowHook or error will be non-nil.
22601// Any non-2xx status code is an error. Response headers are in either
22602// *GoogleCloudApigeeV1FlowHook.ServerResponse.Header or (if a response
22603// was returned at all) in error.(*googleapi.Error).Header. Use
22604// googleapi.IsNotModified to check whether the returned error was
22605// because http.StatusNotModified was returned.
22606func (c *OrganizationsEnvironmentsFlowhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1FlowHook, error) {
22607	gensupport.SetOptions(c.urlParams_, opts...)
22608	res, err := c.doRequest("json")
22609	if res != nil && res.StatusCode == http.StatusNotModified {
22610		if res.Body != nil {
22611			res.Body.Close()
22612		}
22613		return nil, &googleapi.Error{
22614			Code:   res.StatusCode,
22615			Header: res.Header,
22616		}
22617	}
22618	if err != nil {
22619		return nil, err
22620	}
22621	defer googleapi.CloseBody(res)
22622	if err := googleapi.CheckResponse(res); err != nil {
22623		return nil, err
22624	}
22625	ret := &GoogleCloudApigeeV1FlowHook{
22626		ServerResponse: googleapi.ServerResponse{
22627			Header:         res.Header,
22628			HTTPStatusCode: res.StatusCode,
22629		},
22630	}
22631	target := &ret
22632	if err := gensupport.DecodeResponse(target, res); err != nil {
22633		return nil, err
22634	}
22635	return ret, nil
22636	// {
22637	//   "description": "Returns the name of the shared flow attached to the specified flow hook. If\nthere's no shared flow attached to the flow hook, the API does not return\nan error; it simply does not return a name in the response.",
22638	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks/{flowhooksId}",
22639	//   "httpMethod": "GET",
22640	//   "id": "apigee.organizations.environments.flowhooks.get",
22641	//   "parameterOrder": [
22642	//     "name"
22643	//   ],
22644	//   "parameters": {
22645	//     "name": {
22646	//       "description": "Required. Name of the flow hook in the following format:\n  `organizations/{org}/environments/{env}/flowhooks/{flowhook}`",
22647	//       "location": "path",
22648	//       "pattern": "^organizations/[^/]+/environments/[^/]+/flowhooks/[^/]+$",
22649	//       "required": true,
22650	//       "type": "string"
22651	//     }
22652	//   },
22653	//   "path": "v1/{+name}",
22654	//   "response": {
22655	//     "$ref": "GoogleCloudApigeeV1FlowHook"
22656	//   },
22657	//   "scopes": [
22658	//     "https://www.googleapis.com/auth/cloud-platform"
22659	//   ]
22660	// }
22661
22662}
22663
22664// method id "apigee.organizations.environments.flowhooks.list":
22665
22666type OrganizationsEnvironmentsFlowhooksListCall struct {
22667	s            *Service
22668	parent       string
22669	urlParams_   gensupport.URLParams
22670	ifNoneMatch_ string
22671	ctx_         context.Context
22672	header_      http.Header
22673}
22674
22675// List: Lists the flow hooks attached to an environment. This API
22676// always
22677// returns: `["PreProxyFlowHook", "PostProxyFlowHook",
22678// "PreTargetFlowHook",
22679// "PostTargetFlowHook"]`
22680func (r *OrganizationsEnvironmentsFlowhooksService) List(parent string) *OrganizationsEnvironmentsFlowhooksListCall {
22681	c := &OrganizationsEnvironmentsFlowhooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22682	c.parent = parent
22683	return c
22684}
22685
22686// Fields allows partial responses to be retrieved. See
22687// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22688// for more information.
22689func (c *OrganizationsEnvironmentsFlowhooksListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsFlowhooksListCall {
22690	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22691	return c
22692}
22693
22694// IfNoneMatch sets the optional parameter which makes the operation
22695// fail if the object's ETag matches the given value. This is useful for
22696// getting updates only after the object has changed since the last
22697// request. Use googleapi.IsNotModified to check whether the response
22698// error from Do is the result of In-None-Match.
22699func (c *OrganizationsEnvironmentsFlowhooksListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsFlowhooksListCall {
22700	c.ifNoneMatch_ = entityTag
22701	return c
22702}
22703
22704// Context sets the context to be used in this call's Do method. Any
22705// pending HTTP request will be aborted if the provided context is
22706// canceled.
22707func (c *OrganizationsEnvironmentsFlowhooksListCall) Context(ctx context.Context) *OrganizationsEnvironmentsFlowhooksListCall {
22708	c.ctx_ = ctx
22709	return c
22710}
22711
22712// Header returns an http.Header that can be modified by the caller to
22713// add HTTP headers to the request.
22714func (c *OrganizationsEnvironmentsFlowhooksListCall) Header() http.Header {
22715	if c.header_ == nil {
22716		c.header_ = make(http.Header)
22717	}
22718	return c.header_
22719}
22720
22721func (c *OrganizationsEnvironmentsFlowhooksListCall) doRequest(alt string) (*http.Response, error) {
22722	reqHeaders := make(http.Header)
22723	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22724	for k, v := range c.header_ {
22725		reqHeaders[k] = v
22726	}
22727	reqHeaders.Set("User-Agent", c.s.userAgent())
22728	if c.ifNoneMatch_ != "" {
22729		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22730	}
22731	var body io.Reader = nil
22732	c.urlParams_.Set("alt", alt)
22733	c.urlParams_.Set("prettyPrint", "false")
22734	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/flowhooks")
22735	urls += "?" + c.urlParams_.Encode()
22736	req, err := http.NewRequest("GET", urls, body)
22737	if err != nil {
22738		return nil, err
22739	}
22740	req.Header = reqHeaders
22741	googleapi.Expand(req.URL, map[string]string{
22742		"parent": c.parent,
22743	})
22744	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22745}
22746
22747// Do executes the "apigee.organizations.environments.flowhooks.list" call.
22748func (c *OrganizationsEnvironmentsFlowhooksListCall) Do(opts ...googleapi.CallOption) error {
22749	gensupport.SetOptions(c.urlParams_, opts...)
22750	res, err := c.doRequest("json")
22751	if err != nil {
22752		return err
22753	}
22754	defer googleapi.CloseBody(res)
22755	if err := googleapi.CheckResponse(res); err != nil {
22756		return err
22757	}
22758	return nil
22759	// {
22760	//   "description": "Lists the flow hooks attached to an environment. This API always\nreturns: `[\"PreProxyFlowHook\", \"PostProxyFlowHook\", \"PreTargetFlowHook\",\n\"PostTargetFlowHook\"]`",
22761	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/flowhooks",
22762	//   "httpMethod": "GET",
22763	//   "id": "apigee.organizations.environments.flowhooks.list",
22764	//   "parameterOrder": [
22765	//     "parent"
22766	//   ],
22767	//   "parameters": {
22768	//     "parent": {
22769	//       "description": "Required. Name of the environment for which to display flow hooks in the following\nformat:\n  `organizations/{org}/environments/{env}`",
22770	//       "location": "path",
22771	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22772	//       "required": true,
22773	//       "type": "string"
22774	//     }
22775	//   },
22776	//   "path": "v1/{+parent}/flowhooks",
22777	//   "response": {
22778	//     "items": {
22779	//       "type": "any"
22780	//     },
22781	//     "type": "array"
22782	//   },
22783	//   "scopes": [
22784	//     "https://www.googleapis.com/auth/cloud-platform"
22785	//   ]
22786	// }
22787
22788}
22789
22790// method id "apigee.organizations.environments.keystores.create":
22791
22792type OrganizationsEnvironmentsKeystoresCreateCall struct {
22793	s                           *Service
22794	parent                      string
22795	googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore
22796	urlParams_                  gensupport.URLParams
22797	ctx_                        context.Context
22798	header_                     http.Header
22799}
22800
22801// Create: Creates a keystore or truststore:
22802//  * Keystore: Contains certificates and their associated keys.
22803//  * Truststore: Contains trusted certificates used to validate a
22804//  server's certificate. These certificates are typically self-signed
22805//  certificates or certificates that are not signed by a trusted CA.
22806func (r *OrganizationsEnvironmentsKeystoresService) Create(parent string, googlecloudapigeev1keystore *GoogleCloudApigeeV1Keystore) *OrganizationsEnvironmentsKeystoresCreateCall {
22807	c := &OrganizationsEnvironmentsKeystoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22808	c.parent = parent
22809	c.googlecloudapigeev1keystore = googlecloudapigeev1keystore
22810	return c
22811}
22812
22813// Name sets the optional parameter "name": Overrides the value in
22814// Keystore.
22815func (c *OrganizationsEnvironmentsKeystoresCreateCall) Name(name string) *OrganizationsEnvironmentsKeystoresCreateCall {
22816	c.urlParams_.Set("name", name)
22817	return c
22818}
22819
22820// Fields allows partial responses to be retrieved. See
22821// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22822// for more information.
22823func (c *OrganizationsEnvironmentsKeystoresCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresCreateCall {
22824	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22825	return c
22826}
22827
22828// Context sets the context to be used in this call's Do method. Any
22829// pending HTTP request will be aborted if the provided context is
22830// canceled.
22831func (c *OrganizationsEnvironmentsKeystoresCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresCreateCall {
22832	c.ctx_ = ctx
22833	return c
22834}
22835
22836// Header returns an http.Header that can be modified by the caller to
22837// add HTTP headers to the request.
22838func (c *OrganizationsEnvironmentsKeystoresCreateCall) Header() http.Header {
22839	if c.header_ == nil {
22840		c.header_ = make(http.Header)
22841	}
22842	return c.header_
22843}
22844
22845func (c *OrganizationsEnvironmentsKeystoresCreateCall) doRequest(alt string) (*http.Response, error) {
22846	reqHeaders := make(http.Header)
22847	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22848	for k, v := range c.header_ {
22849		reqHeaders[k] = v
22850	}
22851	reqHeaders.Set("User-Agent", c.s.userAgent())
22852	var body io.Reader = nil
22853	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keystore)
22854	if err != nil {
22855		return nil, err
22856	}
22857	reqHeaders.Set("Content-Type", "application/json")
22858	c.urlParams_.Set("alt", alt)
22859	c.urlParams_.Set("prettyPrint", "false")
22860	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
22861	urls += "?" + c.urlParams_.Encode()
22862	req, err := http.NewRequest("POST", urls, body)
22863	if err != nil {
22864		return nil, err
22865	}
22866	req.Header = reqHeaders
22867	googleapi.Expand(req.URL, map[string]string{
22868		"parent": c.parent,
22869	})
22870	return gensupport.SendRequest(c.ctx_, c.s.client, req)
22871}
22872
22873// Do executes the "apigee.organizations.environments.keystores.create" call.
22874// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
22875// Any non-2xx status code is an error. Response headers are in either
22876// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
22877// was returned at all) in error.(*googleapi.Error).Header. Use
22878// googleapi.IsNotModified to check whether the returned error was
22879// because http.StatusNotModified was returned.
22880func (c *OrganizationsEnvironmentsKeystoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
22881	gensupport.SetOptions(c.urlParams_, opts...)
22882	res, err := c.doRequest("json")
22883	if res != nil && res.StatusCode == http.StatusNotModified {
22884		if res.Body != nil {
22885			res.Body.Close()
22886		}
22887		return nil, &googleapi.Error{
22888			Code:   res.StatusCode,
22889			Header: res.Header,
22890		}
22891	}
22892	if err != nil {
22893		return nil, err
22894	}
22895	defer googleapi.CloseBody(res)
22896	if err := googleapi.CheckResponse(res); err != nil {
22897		return nil, err
22898	}
22899	ret := &GoogleCloudApigeeV1Keystore{
22900		ServerResponse: googleapi.ServerResponse{
22901			Header:         res.Header,
22902			HTTPStatusCode: res.StatusCode,
22903		},
22904	}
22905	target := &ret
22906	if err := gensupport.DecodeResponse(target, res); err != nil {
22907		return nil, err
22908	}
22909	return ret, nil
22910	// {
22911	//   "description": "Creates a keystore or truststore:\n * Keystore: Contains certificates and their associated keys.\n * Truststore: Contains trusted certificates used to validate a\n server's certificate. These certificates are typically self-signed\n certificates or certificates that are not signed by a trusted CA.",
22912	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
22913	//   "httpMethod": "POST",
22914	//   "id": "apigee.organizations.environments.keystores.create",
22915	//   "parameterOrder": [
22916	//     "parent"
22917	//   ],
22918	//   "parameters": {
22919	//     "name": {
22920	//       "description": "Optional. Overrides the value in Keystore.",
22921	//       "location": "query",
22922	//       "type": "string"
22923	//     },
22924	//     "parent": {
22925	//       "description": "Required. The name of the environment in which to create the keystore.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
22926	//       "location": "path",
22927	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
22928	//       "required": true,
22929	//       "type": "string"
22930	//     }
22931	//   },
22932	//   "path": "v1/{+parent}/keystores",
22933	//   "request": {
22934	//     "$ref": "GoogleCloudApigeeV1Keystore"
22935	//   },
22936	//   "response": {
22937	//     "$ref": "GoogleCloudApigeeV1Keystore"
22938	//   },
22939	//   "scopes": [
22940	//     "https://www.googleapis.com/auth/cloud-platform"
22941	//   ]
22942	// }
22943
22944}
22945
22946// method id "apigee.organizations.environments.keystores.delete":
22947
22948type OrganizationsEnvironmentsKeystoresDeleteCall struct {
22949	s          *Service
22950	name       string
22951	urlParams_ gensupport.URLParams
22952	ctx_       context.Context
22953	header_    http.Header
22954}
22955
22956// Delete: Deletes a keystore or truststore.
22957func (r *OrganizationsEnvironmentsKeystoresService) Delete(name string) *OrganizationsEnvironmentsKeystoresDeleteCall {
22958	c := &OrganizationsEnvironmentsKeystoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22959	c.name = name
22960	return c
22961}
22962
22963// Fields allows partial responses to be retrieved. See
22964// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
22965// for more information.
22966func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresDeleteCall {
22967	c.urlParams_.Set("fields", googleapi.CombineFields(s))
22968	return c
22969}
22970
22971// Context sets the context to be used in this call's Do method. Any
22972// pending HTTP request will be aborted if the provided context is
22973// canceled.
22974func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresDeleteCall {
22975	c.ctx_ = ctx
22976	return c
22977}
22978
22979// Header returns an http.Header that can be modified by the caller to
22980// add HTTP headers to the request.
22981func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Header() http.Header {
22982	if c.header_ == nil {
22983		c.header_ = make(http.Header)
22984	}
22985	return c.header_
22986}
22987
22988func (c *OrganizationsEnvironmentsKeystoresDeleteCall) doRequest(alt string) (*http.Response, error) {
22989	reqHeaders := make(http.Header)
22990	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
22991	for k, v := range c.header_ {
22992		reqHeaders[k] = v
22993	}
22994	reqHeaders.Set("User-Agent", c.s.userAgent())
22995	var body io.Reader = nil
22996	c.urlParams_.Set("alt", alt)
22997	c.urlParams_.Set("prettyPrint", "false")
22998	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22999	urls += "?" + c.urlParams_.Encode()
23000	req, err := http.NewRequest("DELETE", urls, body)
23001	if err != nil {
23002		return nil, err
23003	}
23004	req.Header = reqHeaders
23005	googleapi.Expand(req.URL, map[string]string{
23006		"name": c.name,
23007	})
23008	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23009}
23010
23011// Do executes the "apigee.organizations.environments.keystores.delete" call.
23012// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
23013// Any non-2xx status code is an error. Response headers are in either
23014// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
23015// was returned at all) in error.(*googleapi.Error).Header. Use
23016// googleapi.IsNotModified to check whether the returned error was
23017// because http.StatusNotModified was returned.
23018func (c *OrganizationsEnvironmentsKeystoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
23019	gensupport.SetOptions(c.urlParams_, opts...)
23020	res, err := c.doRequest("json")
23021	if res != nil && res.StatusCode == http.StatusNotModified {
23022		if res.Body != nil {
23023			res.Body.Close()
23024		}
23025		return nil, &googleapi.Error{
23026			Code:   res.StatusCode,
23027			Header: res.Header,
23028		}
23029	}
23030	if err != nil {
23031		return nil, err
23032	}
23033	defer googleapi.CloseBody(res)
23034	if err := googleapi.CheckResponse(res); err != nil {
23035		return nil, err
23036	}
23037	ret := &GoogleCloudApigeeV1Keystore{
23038		ServerResponse: googleapi.ServerResponse{
23039			Header:         res.Header,
23040			HTTPStatusCode: res.StatusCode,
23041		},
23042	}
23043	target := &ret
23044	if err := gensupport.DecodeResponse(target, res); err != nil {
23045		return nil, err
23046	}
23047	return ret, nil
23048	// {
23049	//   "description": "Deletes a keystore or truststore.",
23050	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
23051	//   "httpMethod": "DELETE",
23052	//   "id": "apigee.organizations.environments.keystores.delete",
23053	//   "parameterOrder": [
23054	//     "name"
23055	//   ],
23056	//   "parameters": {
23057	//     "name": {
23058	//       "description": "Required. The name of keystore to delete. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}`.",
23059	//       "location": "path",
23060	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
23061	//       "required": true,
23062	//       "type": "string"
23063	//     }
23064	//   },
23065	//   "path": "v1/{+name}",
23066	//   "response": {
23067	//     "$ref": "GoogleCloudApigeeV1Keystore"
23068	//   },
23069	//   "scopes": [
23070	//     "https://www.googleapis.com/auth/cloud-platform"
23071	//   ]
23072	// }
23073
23074}
23075
23076// method id "apigee.organizations.environments.keystores.get":
23077
23078type OrganizationsEnvironmentsKeystoresGetCall struct {
23079	s            *Service
23080	name         string
23081	urlParams_   gensupport.URLParams
23082	ifNoneMatch_ string
23083	ctx_         context.Context
23084	header_      http.Header
23085}
23086
23087// Get: Gets a keystore or truststore.
23088func (r *OrganizationsEnvironmentsKeystoresService) Get(name string) *OrganizationsEnvironmentsKeystoresGetCall {
23089	c := &OrganizationsEnvironmentsKeystoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23090	c.name = name
23091	return c
23092}
23093
23094// Fields allows partial responses to be retrieved. See
23095// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23096// for more information.
23097func (c *OrganizationsEnvironmentsKeystoresGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresGetCall {
23098	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23099	return c
23100}
23101
23102// IfNoneMatch sets the optional parameter which makes the operation
23103// fail if the object's ETag matches the given value. This is useful for
23104// getting updates only after the object has changed since the last
23105// request. Use googleapi.IsNotModified to check whether the response
23106// error from Do is the result of In-None-Match.
23107func (c *OrganizationsEnvironmentsKeystoresGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresGetCall {
23108	c.ifNoneMatch_ = entityTag
23109	return c
23110}
23111
23112// Context sets the context to be used in this call's Do method. Any
23113// pending HTTP request will be aborted if the provided context is
23114// canceled.
23115func (c *OrganizationsEnvironmentsKeystoresGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresGetCall {
23116	c.ctx_ = ctx
23117	return c
23118}
23119
23120// Header returns an http.Header that can be modified by the caller to
23121// add HTTP headers to the request.
23122func (c *OrganizationsEnvironmentsKeystoresGetCall) Header() http.Header {
23123	if c.header_ == nil {
23124		c.header_ = make(http.Header)
23125	}
23126	return c.header_
23127}
23128
23129func (c *OrganizationsEnvironmentsKeystoresGetCall) doRequest(alt string) (*http.Response, error) {
23130	reqHeaders := make(http.Header)
23131	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23132	for k, v := range c.header_ {
23133		reqHeaders[k] = v
23134	}
23135	reqHeaders.Set("User-Agent", c.s.userAgent())
23136	if c.ifNoneMatch_ != "" {
23137		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23138	}
23139	var body io.Reader = nil
23140	c.urlParams_.Set("alt", alt)
23141	c.urlParams_.Set("prettyPrint", "false")
23142	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23143	urls += "?" + c.urlParams_.Encode()
23144	req, err := http.NewRequest("GET", urls, body)
23145	if err != nil {
23146		return nil, err
23147	}
23148	req.Header = reqHeaders
23149	googleapi.Expand(req.URL, map[string]string{
23150		"name": c.name,
23151	})
23152	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23153}
23154
23155// Do executes the "apigee.organizations.environments.keystores.get" call.
23156// Exactly one of *GoogleCloudApigeeV1Keystore or error will be non-nil.
23157// Any non-2xx status code is an error. Response headers are in either
23158// *GoogleCloudApigeeV1Keystore.ServerResponse.Header or (if a response
23159// was returned at all) in error.(*googleapi.Error).Header. Use
23160// googleapi.IsNotModified to check whether the returned error was
23161// because http.StatusNotModified was returned.
23162func (c *OrganizationsEnvironmentsKeystoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Keystore, error) {
23163	gensupport.SetOptions(c.urlParams_, opts...)
23164	res, err := c.doRequest("json")
23165	if res != nil && res.StatusCode == http.StatusNotModified {
23166		if res.Body != nil {
23167			res.Body.Close()
23168		}
23169		return nil, &googleapi.Error{
23170			Code:   res.StatusCode,
23171			Header: res.Header,
23172		}
23173	}
23174	if err != nil {
23175		return nil, err
23176	}
23177	defer googleapi.CloseBody(res)
23178	if err := googleapi.CheckResponse(res); err != nil {
23179		return nil, err
23180	}
23181	ret := &GoogleCloudApigeeV1Keystore{
23182		ServerResponse: googleapi.ServerResponse{
23183			Header:         res.Header,
23184			HTTPStatusCode: res.StatusCode,
23185		},
23186	}
23187	target := &ret
23188	if err := gensupport.DecodeResponse(target, res); err != nil {
23189		return nil, err
23190	}
23191	return ret, nil
23192	// {
23193	//   "description": "Gets a keystore or truststore.",
23194	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}",
23195	//   "httpMethod": "GET",
23196	//   "id": "apigee.organizations.environments.keystores.get",
23197	//   "parameterOrder": [
23198	//     "name"
23199	//   ],
23200	//   "parameters": {
23201	//     "name": {
23202	//       "description": "Required. The name of keystore. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}`.",
23203	//       "location": "path",
23204	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
23205	//       "required": true,
23206	//       "type": "string"
23207	//     }
23208	//   },
23209	//   "path": "v1/{+name}",
23210	//   "response": {
23211	//     "$ref": "GoogleCloudApigeeV1Keystore"
23212	//   },
23213	//   "scopes": [
23214	//     "https://www.googleapis.com/auth/cloud-platform"
23215	//   ]
23216	// }
23217
23218}
23219
23220// method id "apigee.organizations.environments.keystores.list":
23221
23222type OrganizationsEnvironmentsKeystoresListCall struct {
23223	s            *Service
23224	parent       string
23225	urlParams_   gensupport.URLParams
23226	ifNoneMatch_ string
23227	ctx_         context.Context
23228	header_      http.Header
23229}
23230
23231// List: Lists all keystores and truststores.
23232func (r *OrganizationsEnvironmentsKeystoresService) List(parent string) *OrganizationsEnvironmentsKeystoresListCall {
23233	c := &OrganizationsEnvironmentsKeystoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23234	c.parent = parent
23235	return c
23236}
23237
23238// Fields allows partial responses to be retrieved. See
23239// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23240// for more information.
23241func (c *OrganizationsEnvironmentsKeystoresListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresListCall {
23242	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23243	return c
23244}
23245
23246// IfNoneMatch sets the optional parameter which makes the operation
23247// fail if the object's ETag matches the given value. This is useful for
23248// getting updates only after the object has changed since the last
23249// request. Use googleapi.IsNotModified to check whether the response
23250// error from Do is the result of In-None-Match.
23251func (c *OrganizationsEnvironmentsKeystoresListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresListCall {
23252	c.ifNoneMatch_ = entityTag
23253	return c
23254}
23255
23256// Context sets the context to be used in this call's Do method. Any
23257// pending HTTP request will be aborted if the provided context is
23258// canceled.
23259func (c *OrganizationsEnvironmentsKeystoresListCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresListCall {
23260	c.ctx_ = ctx
23261	return c
23262}
23263
23264// Header returns an http.Header that can be modified by the caller to
23265// add HTTP headers to the request.
23266func (c *OrganizationsEnvironmentsKeystoresListCall) Header() http.Header {
23267	if c.header_ == nil {
23268		c.header_ = make(http.Header)
23269	}
23270	return c.header_
23271}
23272
23273func (c *OrganizationsEnvironmentsKeystoresListCall) doRequest(alt string) (*http.Response, error) {
23274	reqHeaders := make(http.Header)
23275	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23276	for k, v := range c.header_ {
23277		reqHeaders[k] = v
23278	}
23279	reqHeaders.Set("User-Agent", c.s.userAgent())
23280	if c.ifNoneMatch_ != "" {
23281		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23282	}
23283	var body io.Reader = nil
23284	c.urlParams_.Set("alt", alt)
23285	c.urlParams_.Set("prettyPrint", "false")
23286	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keystores")
23287	urls += "?" + c.urlParams_.Encode()
23288	req, err := http.NewRequest("GET", urls, body)
23289	if err != nil {
23290		return nil, err
23291	}
23292	req.Header = reqHeaders
23293	googleapi.Expand(req.URL, map[string]string{
23294		"parent": c.parent,
23295	})
23296	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23297}
23298
23299// Do executes the "apigee.organizations.environments.keystores.list" call.
23300func (c *OrganizationsEnvironmentsKeystoresListCall) Do(opts ...googleapi.CallOption) error {
23301	gensupport.SetOptions(c.urlParams_, opts...)
23302	res, err := c.doRequest("json")
23303	if err != nil {
23304		return err
23305	}
23306	defer googleapi.CloseBody(res)
23307	if err := googleapi.CheckResponse(res); err != nil {
23308		return err
23309	}
23310	return nil
23311	// {
23312	//   "description": "Lists all keystores and truststores.",
23313	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores",
23314	//   "httpMethod": "GET",
23315	//   "id": "apigee.organizations.environments.keystores.list",
23316	//   "parameterOrder": [
23317	//     "parent"
23318	//   ],
23319	//   "parameters": {
23320	//     "parent": {
23321	//       "description": "Required. The name of the environment in which list keystores.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
23322	//       "location": "path",
23323	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
23324	//       "required": true,
23325	//       "type": "string"
23326	//     }
23327	//   },
23328	//   "path": "v1/{+parent}/keystores",
23329	//   "response": {
23330	//     "items": {
23331	//       "type": "any"
23332	//     },
23333	//     "type": "array"
23334	//   },
23335	//   "scopes": [
23336	//     "https://www.googleapis.com/auth/cloud-platform"
23337	//   ]
23338	// }
23339
23340}
23341
23342// method id "apigee.organizations.environments.keystores.aliases.create":
23343
23344type OrganizationsEnvironmentsKeystoresAliasesCreateCall struct {
23345	s                 *Service
23346	parent            string
23347	googleapihttpbody *GoogleApiHttpBody
23348	urlParams_        gensupport.URLParams
23349	ctx_              context.Context
23350	header_           http.Header
23351}
23352
23353// Create: Creates an alias from a key, certificate pair.
23354// The structure of the request is controlled by the `format` query
23355// parameter:
23356//  * `keycertfile` - Separate PEM-encoded key and certificate files
23357// are
23358//  uploaded. The request must have `Content-Type: multipart/form-data`
23359// and
23360//  include fields `keyFile` and `certFile`. If uploading to a
23361// truststore,
23362//  omit `keyFile`.
23363// * `pkcs12` - A PKCS12 file is uploaded. The request must
23364// have
23365// `Content-Type: multipart/form-data` with the file provided in the
23366// only
23367// field.
23368// * `selfsignedcert` - A new private key and certificate are generated.
23369// The
23370// request must have `Content-Type: application/json` and a body
23371// of
23372// CertificateGenerationSpec.
23373func (r *OrganizationsEnvironmentsKeystoresAliasesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23374	c := &OrganizationsEnvironmentsKeystoresAliasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23375	c.parent = parent
23376	c.googleapihttpbody = googleapihttpbody
23377	return c
23378}
23379
23380// Password sets the optional parameter "_password": The password for
23381// the private key file, if it exists.
23382func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Password(Password string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23383	c.urlParams_.Set("_password", Password)
23384	return c
23385}
23386
23387// Alias sets the optional parameter "alias": The alias for the key,
23388// certificate pair. Values must match
23389// regular expression `[\w\s-.]{1,255}`. This must be provided for all
23390// formats
23391// except 'selfsignedcert'; self-signed certs may specify the alias in
23392// either
23393// this parameter or the JSON body.
23394func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Alias(alias string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23395	c.urlParams_.Set("alias", alias)
23396	return c
23397}
23398
23399// Format sets the optional parameter "format": Required. The format of
23400// the data. Must be either `selfsignedcert`,
23401// `keycertfile`, or `pkcs12`.
23402func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Format(format string) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23403	c.urlParams_.Set("format", format)
23404	return c
23405}
23406
23407// IgnoreExpiryValidation sets the optional parameter
23408// "ignoreExpiryValidation": If `true`, no expiry validation will be
23409// performed.
23410func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23411	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
23412	return c
23413}
23414
23415// IgnoreNewlineValidation sets the optional parameter
23416// "ignoreNewlineValidation": If `true`, do not throw an error when the
23417// file contains a chain with no
23418// newline between each certificate. By default, a newline is needed
23419// between
23420// each certificate in a chain.
23421func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23422	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
23423	return c
23424}
23425
23426// Fields allows partial responses to be retrieved. See
23427// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23428// for more information.
23429func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23430	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23431	return c
23432}
23433
23434// Context sets the context to be used in this call's Do method. Any
23435// pending HTTP request will be aborted if the provided context is
23436// canceled.
23437func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCreateCall {
23438	c.ctx_ = ctx
23439	return c
23440}
23441
23442// Header returns an http.Header that can be modified by the caller to
23443// add HTTP headers to the request.
23444func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Header() http.Header {
23445	if c.header_ == nil {
23446		c.header_ = make(http.Header)
23447	}
23448	return c.header_
23449}
23450
23451func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) doRequest(alt string) (*http.Response, error) {
23452	reqHeaders := make(http.Header)
23453	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23454	for k, v := range c.header_ {
23455		reqHeaders[k] = v
23456	}
23457	reqHeaders.Set("User-Agent", c.s.userAgent())
23458	var body io.Reader = nil
23459	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
23460	if err != nil {
23461		return nil, err
23462	}
23463	reqHeaders.Set("Content-Type", "application/json")
23464	c.urlParams_.Set("alt", alt)
23465	c.urlParams_.Set("prettyPrint", "false")
23466	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
23467	urls += "?" + c.urlParams_.Encode()
23468	req, err := http.NewRequest("POST", urls, body)
23469	if err != nil {
23470		return nil, err
23471	}
23472	req.Header = reqHeaders
23473	googleapi.Expand(req.URL, map[string]string{
23474		"parent": c.parent,
23475	})
23476	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23477}
23478
23479// Do executes the "apigee.organizations.environments.keystores.aliases.create" call.
23480// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
23481// Any non-2xx status code is an error. Response headers are in either
23482// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
23483// returned at all) in error.(*googleapi.Error).Header. Use
23484// googleapi.IsNotModified to check whether the returned error was
23485// because http.StatusNotModified was returned.
23486func (c *OrganizationsEnvironmentsKeystoresAliasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
23487	gensupport.SetOptions(c.urlParams_, opts...)
23488	res, err := c.doRequest("json")
23489	if res != nil && res.StatusCode == http.StatusNotModified {
23490		if res.Body != nil {
23491			res.Body.Close()
23492		}
23493		return nil, &googleapi.Error{
23494			Code:   res.StatusCode,
23495			Header: res.Header,
23496		}
23497	}
23498	if err != nil {
23499		return nil, err
23500	}
23501	defer googleapi.CloseBody(res)
23502	if err := googleapi.CheckResponse(res); err != nil {
23503		return nil, err
23504	}
23505	ret := &GoogleCloudApigeeV1Alias{
23506		ServerResponse: googleapi.ServerResponse{
23507			Header:         res.Header,
23508			HTTPStatusCode: res.StatusCode,
23509		},
23510	}
23511	target := &ret
23512	if err := gensupport.DecodeResponse(target, res); err != nil {
23513		return nil, err
23514	}
23515	return ret, nil
23516	// {
23517	//   "description": "Creates an alias from a key, certificate pair.\nThe structure of the request is controlled by the `format` query parameter:\n * `keycertfile` - Separate PEM-encoded key and certificate files are\n uploaded. The request must have `Content-Type: multipart/form-data` and\n include fields `keyFile` and `certFile`. If uploading to a truststore,\n omit `keyFile`.\n* `pkcs12` - A PKCS12 file is uploaded. The request must have\n`Content-Type: multipart/form-data` with the file provided in the only\nfield.\n* `selfsignedcert` - A new private key and certificate are generated. The\nrequest must have `Content-Type: application/json` and a body of\nCertificateGenerationSpec.",
23518	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
23519	//   "httpMethod": "POST",
23520	//   "id": "apigee.organizations.environments.keystores.aliases.create",
23521	//   "parameterOrder": [
23522	//     "parent"
23523	//   ],
23524	//   "parameters": {
23525	//     "_password": {
23526	//       "description": "The password for the private key file, if it exists.",
23527	//       "location": "query",
23528	//       "type": "string"
23529	//     },
23530	//     "alias": {
23531	//       "description": "The alias for the key, certificate pair. Values must match\nregular expression `[\\w\\s-.]{1,255}`. This must be provided for all formats\nexcept 'selfsignedcert'; self-signed certs may specify the alias in either\nthis parameter or the JSON body.",
23532	//       "location": "query",
23533	//       "type": "string"
23534	//     },
23535	//     "format": {
23536	//       "description": "Required. The format of the data. Must be either `selfsignedcert`,\n`keycertfile`, or `pkcs12`.",
23537	//       "location": "query",
23538	//       "type": "string"
23539	//     },
23540	//     "ignoreExpiryValidation": {
23541	//       "description": "If `true`, no expiry validation will be performed.",
23542	//       "location": "query",
23543	//       "type": "boolean"
23544	//     },
23545	//     "ignoreNewlineValidation": {
23546	//       "description": "If `true`, do not throw an error when the file contains a chain with no\nnewline between each certificate. By default, a newline is needed between\neach certificate in a chain.",
23547	//       "location": "query",
23548	//       "type": "boolean"
23549	//     },
23550	//     "parent": {
23551	//       "description": "Required. The name of the keystore. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}`.",
23552	//       "location": "path",
23553	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
23554	//       "required": true,
23555	//       "type": "string"
23556	//     }
23557	//   },
23558	//   "path": "v1/{+parent}/aliases",
23559	//   "request": {
23560	//     "$ref": "GoogleApiHttpBody"
23561	//   },
23562	//   "response": {
23563	//     "$ref": "GoogleCloudApigeeV1Alias"
23564	//   },
23565	//   "scopes": [
23566	//     "https://www.googleapis.com/auth/cloud-platform"
23567	//   ]
23568	// }
23569
23570}
23571
23572// method id "apigee.organizations.environments.keystores.aliases.csr":
23573
23574type OrganizationsEnvironmentsKeystoresAliasesCsrCall struct {
23575	s            *Service
23576	name         string
23577	urlParams_   gensupport.URLParams
23578	ifNoneMatch_ string
23579	ctx_         context.Context
23580	header_      http.Header
23581}
23582
23583// Csr: Generates a PKCS #10 Certificate Signing Request for the private
23584// key in
23585// an alias.
23586func (r *OrganizationsEnvironmentsKeystoresAliasesService) Csr(name string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
23587	c := &OrganizationsEnvironmentsKeystoresAliasesCsrCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23588	c.name = name
23589	return c
23590}
23591
23592// Fields allows partial responses to be retrieved. See
23593// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23594// for more information.
23595func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
23596	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23597	return c
23598}
23599
23600// IfNoneMatch sets the optional parameter which makes the operation
23601// fail if the object's ETag matches the given value. This is useful for
23602// getting updates only after the object has changed since the last
23603// request. Use googleapi.IsNotModified to check whether the response
23604// error from Do is the result of In-None-Match.
23605func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
23606	c.ifNoneMatch_ = entityTag
23607	return c
23608}
23609
23610// Context sets the context to be used in this call's Do method. Any
23611// pending HTTP request will be aborted if the provided context is
23612// canceled.
23613func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesCsrCall {
23614	c.ctx_ = ctx
23615	return c
23616}
23617
23618// Header returns an http.Header that can be modified by the caller to
23619// add HTTP headers to the request.
23620func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Header() http.Header {
23621	if c.header_ == nil {
23622		c.header_ = make(http.Header)
23623	}
23624	return c.header_
23625}
23626
23627func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) doRequest(alt string) (*http.Response, error) {
23628	reqHeaders := make(http.Header)
23629	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23630	for k, v := range c.header_ {
23631		reqHeaders[k] = v
23632	}
23633	reqHeaders.Set("User-Agent", c.s.userAgent())
23634	if c.ifNoneMatch_ != "" {
23635		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23636	}
23637	var body io.Reader = nil
23638	c.urlParams_.Set("alt", alt)
23639	c.urlParams_.Set("prettyPrint", "false")
23640	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/csr")
23641	urls += "?" + c.urlParams_.Encode()
23642	req, err := http.NewRequest("GET", urls, body)
23643	if err != nil {
23644		return nil, err
23645	}
23646	req.Header = reqHeaders
23647	googleapi.Expand(req.URL, map[string]string{
23648		"name": c.name,
23649	})
23650	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23651}
23652
23653// Do executes the "apigee.organizations.environments.keystores.aliases.csr" call.
23654// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
23655// non-2xx status code is an error. Response headers are in either
23656// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
23657// returned at all) in error.(*googleapi.Error).Header. Use
23658// googleapi.IsNotModified to check whether the returned error was
23659// because http.StatusNotModified was returned.
23660func (c *OrganizationsEnvironmentsKeystoresAliasesCsrCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
23661	gensupport.SetOptions(c.urlParams_, opts...)
23662	res, err := c.doRequest("json")
23663	if res != nil && res.StatusCode == http.StatusNotModified {
23664		if res.Body != nil {
23665			res.Body.Close()
23666		}
23667		return nil, &googleapi.Error{
23668			Code:   res.StatusCode,
23669			Header: res.Header,
23670		}
23671	}
23672	if err != nil {
23673		return nil, err
23674	}
23675	defer googleapi.CloseBody(res)
23676	if err := googleapi.CheckResponse(res); err != nil {
23677		return nil, err
23678	}
23679	ret := &GoogleApiHttpBody{
23680		ServerResponse: googleapi.ServerResponse{
23681			Header:         res.Header,
23682			HTTPStatusCode: res.StatusCode,
23683		},
23684	}
23685	target := &ret
23686	if err := gensupport.DecodeResponse(target, res); err != nil {
23687		return nil, err
23688	}
23689	return ret, nil
23690	// {
23691	//   "description": "Generates a PKCS #10 Certificate Signing Request for the private key in\nan alias.",
23692	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/csr",
23693	//   "httpMethod": "GET",
23694	//   "id": "apigee.organizations.environments.keystores.aliases.csr",
23695	//   "parameterOrder": [
23696	//     "name"
23697	//   ],
23698	//   "parameters": {
23699	//     "name": {
23700	//       "description": "Required. The name of the alias. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.",
23701	//       "location": "path",
23702	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
23703	//       "required": true,
23704	//       "type": "string"
23705	//     }
23706	//   },
23707	//   "path": "v1/{+name}/csr",
23708	//   "response": {
23709	//     "$ref": "GoogleApiHttpBody"
23710	//   },
23711	//   "scopes": [
23712	//     "https://www.googleapis.com/auth/cloud-platform"
23713	//   ]
23714	// }
23715
23716}
23717
23718// method id "apigee.organizations.environments.keystores.aliases.delete":
23719
23720type OrganizationsEnvironmentsKeystoresAliasesDeleteCall struct {
23721	s          *Service
23722	name       string
23723	urlParams_ gensupport.URLParams
23724	ctx_       context.Context
23725	header_    http.Header
23726}
23727
23728// Delete: Deletes an alias.
23729func (r *OrganizationsEnvironmentsKeystoresAliasesService) Delete(name string) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
23730	c := &OrganizationsEnvironmentsKeystoresAliasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23731	c.name = name
23732	return c
23733}
23734
23735// Fields allows partial responses to be retrieved. See
23736// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23737// for more information.
23738func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
23739	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23740	return c
23741}
23742
23743// Context sets the context to be used in this call's Do method. Any
23744// pending HTTP request will be aborted if the provided context is
23745// canceled.
23746func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesDeleteCall {
23747	c.ctx_ = ctx
23748	return c
23749}
23750
23751// Header returns an http.Header that can be modified by the caller to
23752// add HTTP headers to the request.
23753func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Header() http.Header {
23754	if c.header_ == nil {
23755		c.header_ = make(http.Header)
23756	}
23757	return c.header_
23758}
23759
23760func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) doRequest(alt string) (*http.Response, error) {
23761	reqHeaders := make(http.Header)
23762	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23763	for k, v := range c.header_ {
23764		reqHeaders[k] = v
23765	}
23766	reqHeaders.Set("User-Agent", c.s.userAgent())
23767	var body io.Reader = nil
23768	c.urlParams_.Set("alt", alt)
23769	c.urlParams_.Set("prettyPrint", "false")
23770	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23771	urls += "?" + c.urlParams_.Encode()
23772	req, err := http.NewRequest("DELETE", urls, body)
23773	if err != nil {
23774		return nil, err
23775	}
23776	req.Header = reqHeaders
23777	googleapi.Expand(req.URL, map[string]string{
23778		"name": c.name,
23779	})
23780	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23781}
23782
23783// Do executes the "apigee.organizations.environments.keystores.aliases.delete" call.
23784// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
23785// Any non-2xx status code is an error. Response headers are in either
23786// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
23787// returned at all) in error.(*googleapi.Error).Header. Use
23788// googleapi.IsNotModified to check whether the returned error was
23789// because http.StatusNotModified was returned.
23790func (c *OrganizationsEnvironmentsKeystoresAliasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
23791	gensupport.SetOptions(c.urlParams_, opts...)
23792	res, err := c.doRequest("json")
23793	if res != nil && res.StatusCode == http.StatusNotModified {
23794		if res.Body != nil {
23795			res.Body.Close()
23796		}
23797		return nil, &googleapi.Error{
23798			Code:   res.StatusCode,
23799			Header: res.Header,
23800		}
23801	}
23802	if err != nil {
23803		return nil, err
23804	}
23805	defer googleapi.CloseBody(res)
23806	if err := googleapi.CheckResponse(res); err != nil {
23807		return nil, err
23808	}
23809	ret := &GoogleCloudApigeeV1Alias{
23810		ServerResponse: googleapi.ServerResponse{
23811			Header:         res.Header,
23812			HTTPStatusCode: res.StatusCode,
23813		},
23814	}
23815	target := &ret
23816	if err := gensupport.DecodeResponse(target, res); err != nil {
23817		return nil, err
23818	}
23819	return ret, nil
23820	// {
23821	//   "description": "Deletes an alias.",
23822	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
23823	//   "httpMethod": "DELETE",
23824	//   "id": "apigee.organizations.environments.keystores.aliases.delete",
23825	//   "parameterOrder": [
23826	//     "name"
23827	//   ],
23828	//   "parameters": {
23829	//     "name": {
23830	//       "description": "Required. The name of the alias. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.",
23831	//       "location": "path",
23832	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
23833	//       "required": true,
23834	//       "type": "string"
23835	//     }
23836	//   },
23837	//   "path": "v1/{+name}",
23838	//   "response": {
23839	//     "$ref": "GoogleCloudApigeeV1Alias"
23840	//   },
23841	//   "scopes": [
23842	//     "https://www.googleapis.com/auth/cloud-platform"
23843	//   ]
23844	// }
23845
23846}
23847
23848// method id "apigee.organizations.environments.keystores.aliases.get":
23849
23850type OrganizationsEnvironmentsKeystoresAliasesGetCall struct {
23851	s            *Service
23852	name         string
23853	urlParams_   gensupport.URLParams
23854	ifNoneMatch_ string
23855	ctx_         context.Context
23856	header_      http.Header
23857}
23858
23859// Get: Gets an alias.
23860func (r *OrganizationsEnvironmentsKeystoresAliasesService) Get(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
23861	c := &OrganizationsEnvironmentsKeystoresAliasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23862	c.name = name
23863	return c
23864}
23865
23866// Fields allows partial responses to be retrieved. See
23867// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
23868// for more information.
23869func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
23870	c.urlParams_.Set("fields", googleapi.CombineFields(s))
23871	return c
23872}
23873
23874// IfNoneMatch sets the optional parameter which makes the operation
23875// fail if the object's ETag matches the given value. This is useful for
23876// getting updates only after the object has changed since the last
23877// request. Use googleapi.IsNotModified to check whether the response
23878// error from Do is the result of In-None-Match.
23879func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
23880	c.ifNoneMatch_ = entityTag
23881	return c
23882}
23883
23884// Context sets the context to be used in this call's Do method. Any
23885// pending HTTP request will be aborted if the provided context is
23886// canceled.
23887func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCall {
23888	c.ctx_ = ctx
23889	return c
23890}
23891
23892// Header returns an http.Header that can be modified by the caller to
23893// add HTTP headers to the request.
23894func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Header() http.Header {
23895	if c.header_ == nil {
23896		c.header_ = make(http.Header)
23897	}
23898	return c.header_
23899}
23900
23901func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) doRequest(alt string) (*http.Response, error) {
23902	reqHeaders := make(http.Header)
23903	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
23904	for k, v := range c.header_ {
23905		reqHeaders[k] = v
23906	}
23907	reqHeaders.Set("User-Agent", c.s.userAgent())
23908	if c.ifNoneMatch_ != "" {
23909		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23910	}
23911	var body io.Reader = nil
23912	c.urlParams_.Set("alt", alt)
23913	c.urlParams_.Set("prettyPrint", "false")
23914	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23915	urls += "?" + c.urlParams_.Encode()
23916	req, err := http.NewRequest("GET", urls, body)
23917	if err != nil {
23918		return nil, err
23919	}
23920	req.Header = reqHeaders
23921	googleapi.Expand(req.URL, map[string]string{
23922		"name": c.name,
23923	})
23924	return gensupport.SendRequest(c.ctx_, c.s.client, req)
23925}
23926
23927// Do executes the "apigee.organizations.environments.keystores.aliases.get" call.
23928// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
23929// Any non-2xx status code is an error. Response headers are in either
23930// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
23931// returned at all) in error.(*googleapi.Error).Header. Use
23932// googleapi.IsNotModified to check whether the returned error was
23933// because http.StatusNotModified was returned.
23934func (c *OrganizationsEnvironmentsKeystoresAliasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
23935	gensupport.SetOptions(c.urlParams_, opts...)
23936	res, err := c.doRequest("json")
23937	if res != nil && res.StatusCode == http.StatusNotModified {
23938		if res.Body != nil {
23939			res.Body.Close()
23940		}
23941		return nil, &googleapi.Error{
23942			Code:   res.StatusCode,
23943			Header: res.Header,
23944		}
23945	}
23946	if err != nil {
23947		return nil, err
23948	}
23949	defer googleapi.CloseBody(res)
23950	if err := googleapi.CheckResponse(res); err != nil {
23951		return nil, err
23952	}
23953	ret := &GoogleCloudApigeeV1Alias{
23954		ServerResponse: googleapi.ServerResponse{
23955			Header:         res.Header,
23956			HTTPStatusCode: res.StatusCode,
23957		},
23958	}
23959	target := &ret
23960	if err := gensupport.DecodeResponse(target, res); err != nil {
23961		return nil, err
23962	}
23963	return ret, nil
23964	// {
23965	//   "description": "Gets an alias.",
23966	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
23967	//   "httpMethod": "GET",
23968	//   "id": "apigee.organizations.environments.keystores.aliases.get",
23969	//   "parameterOrder": [
23970	//     "name"
23971	//   ],
23972	//   "parameters": {
23973	//     "name": {
23974	//       "description": "Required. The name of the alias. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.",
23975	//       "location": "path",
23976	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
23977	//       "required": true,
23978	//       "type": "string"
23979	//     }
23980	//   },
23981	//   "path": "v1/{+name}",
23982	//   "response": {
23983	//     "$ref": "GoogleCloudApigeeV1Alias"
23984	//   },
23985	//   "scopes": [
23986	//     "https://www.googleapis.com/auth/cloud-platform"
23987	//   ]
23988	// }
23989
23990}
23991
23992// method id "apigee.organizations.environments.keystores.aliases.getCertificate":
23993
23994type OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall struct {
23995	s            *Service
23996	name         string
23997	urlParams_   gensupport.URLParams
23998	ifNoneMatch_ string
23999	ctx_         context.Context
24000	header_      http.Header
24001}
24002
24003// GetCertificate: Gets the certificate from an alias in PEM-encoded
24004// form.
24005func (r *OrganizationsEnvironmentsKeystoresAliasesService) GetCertificate(name string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
24006	c := &OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24007	c.name = name
24008	return c
24009}
24010
24011// Fields allows partial responses to be retrieved. See
24012// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24013// for more information.
24014func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
24015	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24016	return c
24017}
24018
24019// IfNoneMatch sets the optional parameter which makes the operation
24020// fail if the object's ETag matches the given value. This is useful for
24021// getting updates only after the object has changed since the last
24022// request. Use googleapi.IsNotModified to check whether the response
24023// error from Do is the result of In-None-Match.
24024func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
24025	c.ifNoneMatch_ = entityTag
24026	return c
24027}
24028
24029// Context sets the context to be used in this call's Do method. Any
24030// pending HTTP request will be aborted if the provided context is
24031// canceled.
24032func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall {
24033	c.ctx_ = ctx
24034	return c
24035}
24036
24037// Header returns an http.Header that can be modified by the caller to
24038// add HTTP headers to the request.
24039func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Header() http.Header {
24040	if c.header_ == nil {
24041		c.header_ = make(http.Header)
24042	}
24043	return c.header_
24044}
24045
24046func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) doRequest(alt string) (*http.Response, error) {
24047	reqHeaders := make(http.Header)
24048	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24049	for k, v := range c.header_ {
24050		reqHeaders[k] = v
24051	}
24052	reqHeaders.Set("User-Agent", c.s.userAgent())
24053	if c.ifNoneMatch_ != "" {
24054		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24055	}
24056	var body io.Reader = nil
24057	c.urlParams_.Set("alt", alt)
24058	c.urlParams_.Set("prettyPrint", "false")
24059	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/certificate")
24060	urls += "?" + c.urlParams_.Encode()
24061	req, err := http.NewRequest("GET", urls, body)
24062	if err != nil {
24063		return nil, err
24064	}
24065	req.Header = reqHeaders
24066	googleapi.Expand(req.URL, map[string]string{
24067		"name": c.name,
24068	})
24069	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24070}
24071
24072// Do executes the "apigee.organizations.environments.keystores.aliases.getCertificate" call.
24073// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
24074// non-2xx status code is an error. Response headers are in either
24075// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
24076// returned at all) in error.(*googleapi.Error).Header. Use
24077// googleapi.IsNotModified to check whether the returned error was
24078// because http.StatusNotModified was returned.
24079func (c *OrganizationsEnvironmentsKeystoresAliasesGetCertificateCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
24080	gensupport.SetOptions(c.urlParams_, opts...)
24081	res, err := c.doRequest("json")
24082	if res != nil && res.StatusCode == http.StatusNotModified {
24083		if res.Body != nil {
24084			res.Body.Close()
24085		}
24086		return nil, &googleapi.Error{
24087			Code:   res.StatusCode,
24088			Header: res.Header,
24089		}
24090	}
24091	if err != nil {
24092		return nil, err
24093	}
24094	defer googleapi.CloseBody(res)
24095	if err := googleapi.CheckResponse(res); err != nil {
24096		return nil, err
24097	}
24098	ret := &GoogleApiHttpBody{
24099		ServerResponse: googleapi.ServerResponse{
24100			Header:         res.Header,
24101			HTTPStatusCode: res.StatusCode,
24102		},
24103	}
24104	target := &ret
24105	if err := gensupport.DecodeResponse(target, res); err != nil {
24106		return nil, err
24107	}
24108	return ret, nil
24109	// {
24110	//   "description": "Gets the certificate from an alias in PEM-encoded form.",
24111	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}/certificate",
24112	//   "httpMethod": "GET",
24113	//   "id": "apigee.organizations.environments.keystores.aliases.getCertificate",
24114	//   "parameterOrder": [
24115	//     "name"
24116	//   ],
24117	//   "parameters": {
24118	//     "name": {
24119	//       "description": "Required. The name of the alias. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.",
24120	//       "location": "path",
24121	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
24122	//       "required": true,
24123	//       "type": "string"
24124	//     }
24125	//   },
24126	//   "path": "v1/{+name}/certificate",
24127	//   "response": {
24128	//     "$ref": "GoogleApiHttpBody"
24129	//   },
24130	//   "scopes": [
24131	//     "https://www.googleapis.com/auth/cloud-platform"
24132	//   ]
24133	// }
24134
24135}
24136
24137// method id "apigee.organizations.environments.keystores.aliases.list":
24138
24139type OrganizationsEnvironmentsKeystoresAliasesListCall struct {
24140	s            *Service
24141	parent       string
24142	urlParams_   gensupport.URLParams
24143	ifNoneMatch_ string
24144	ctx_         context.Context
24145	header_      http.Header
24146}
24147
24148// List: Lists all aliases.
24149func (r *OrganizationsEnvironmentsKeystoresAliasesService) List(parent string) *OrganizationsEnvironmentsKeystoresAliasesListCall {
24150	c := &OrganizationsEnvironmentsKeystoresAliasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24151	c.parent = parent
24152	return c
24153}
24154
24155// Fields allows partial responses to be retrieved. See
24156// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24157// for more information.
24158func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesListCall {
24159	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24160	return c
24161}
24162
24163// IfNoneMatch sets the optional parameter which makes the operation
24164// fail if the object's ETag matches the given value. This is useful for
24165// getting updates only after the object has changed since the last
24166// request. Use googleapi.IsNotModified to check whether the response
24167// error from Do is the result of In-None-Match.
24168func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeystoresAliasesListCall {
24169	c.ifNoneMatch_ = entityTag
24170	return c
24171}
24172
24173// Context sets the context to be used in this call's Do method. Any
24174// pending HTTP request will be aborted if the provided context is
24175// canceled.
24176func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesListCall {
24177	c.ctx_ = ctx
24178	return c
24179}
24180
24181// Header returns an http.Header that can be modified by the caller to
24182// add HTTP headers to the request.
24183func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) Header() http.Header {
24184	if c.header_ == nil {
24185		c.header_ = make(http.Header)
24186	}
24187	return c.header_
24188}
24189
24190func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) doRequest(alt string) (*http.Response, error) {
24191	reqHeaders := make(http.Header)
24192	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24193	for k, v := range c.header_ {
24194		reqHeaders[k] = v
24195	}
24196	reqHeaders.Set("User-Agent", c.s.userAgent())
24197	if c.ifNoneMatch_ != "" {
24198		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24199	}
24200	var body io.Reader = nil
24201	c.urlParams_.Set("alt", alt)
24202	c.urlParams_.Set("prettyPrint", "false")
24203	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/aliases")
24204	urls += "?" + c.urlParams_.Encode()
24205	req, err := http.NewRequest("GET", urls, body)
24206	if err != nil {
24207		return nil, err
24208	}
24209	req.Header = reqHeaders
24210	googleapi.Expand(req.URL, map[string]string{
24211		"parent": c.parent,
24212	})
24213	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24214}
24215
24216// Do executes the "apigee.organizations.environments.keystores.aliases.list" call.
24217func (c *OrganizationsEnvironmentsKeystoresAliasesListCall) Do(opts ...googleapi.CallOption) error {
24218	gensupport.SetOptions(c.urlParams_, opts...)
24219	res, err := c.doRequest("json")
24220	if err != nil {
24221		return err
24222	}
24223	defer googleapi.CloseBody(res)
24224	if err := googleapi.CheckResponse(res); err != nil {
24225		return err
24226	}
24227	return nil
24228	// {
24229	//   "description": "Lists all aliases.",
24230	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases",
24231	//   "httpMethod": "GET",
24232	//   "id": "apigee.organizations.environments.keystores.aliases.list",
24233	//   "parameterOrder": [
24234	//     "parent"
24235	//   ],
24236	//   "parameters": {
24237	//     "parent": {
24238	//       "description": "Required. The name of the keystore. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}`.",
24239	//       "location": "path",
24240	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+$",
24241	//       "required": true,
24242	//       "type": "string"
24243	//     }
24244	//   },
24245	//   "path": "v1/{+parent}/aliases",
24246	//   "response": {
24247	//     "items": {
24248	//       "type": "any"
24249	//     },
24250	//     "type": "array"
24251	//   },
24252	//   "scopes": [
24253	//     "https://www.googleapis.com/auth/cloud-platform"
24254	//   ]
24255	// }
24256
24257}
24258
24259// method id "apigee.organizations.environments.keystores.aliases.update":
24260
24261type OrganizationsEnvironmentsKeystoresAliasesUpdateCall struct {
24262	s                 *Service
24263	name              string
24264	googleapihttpbody *GoogleApiHttpBody
24265	urlParams_        gensupport.URLParams
24266	ctx_              context.Context
24267	header_           http.Header
24268}
24269
24270// Update: Updates the certificate in an alias.
24271func (r *OrganizationsEnvironmentsKeystoresAliasesService) Update(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
24272	c := &OrganizationsEnvironmentsKeystoresAliasesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24273	c.name = name
24274	c.googleapihttpbody = googleapihttpbody
24275	return c
24276}
24277
24278// IgnoreExpiryValidation sets the optional parameter
24279// "ignoreExpiryValidation": Required. If `true`, no expiry validation
24280// will be performed.
24281func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreExpiryValidation(ignoreExpiryValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
24282	c.urlParams_.Set("ignoreExpiryValidation", fmt.Sprint(ignoreExpiryValidation))
24283	return c
24284}
24285
24286// IgnoreNewlineValidation sets the optional parameter
24287// "ignoreNewlineValidation": If `true`, do not throw an error when the
24288// file contains a chain with no
24289// newline between each certificate. By default, a newline is needed
24290// between
24291// each certificate in a chain.
24292func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) IgnoreNewlineValidation(ignoreNewlineValidation bool) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
24293	c.urlParams_.Set("ignoreNewlineValidation", fmt.Sprint(ignoreNewlineValidation))
24294	return c
24295}
24296
24297// Fields allows partial responses to be retrieved. See
24298// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24299// for more information.
24300func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
24301	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24302	return c
24303}
24304
24305// Context sets the context to be used in this call's Do method. Any
24306// pending HTTP request will be aborted if the provided context is
24307// canceled.
24308func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeystoresAliasesUpdateCall {
24309	c.ctx_ = ctx
24310	return c
24311}
24312
24313// Header returns an http.Header that can be modified by the caller to
24314// add HTTP headers to the request.
24315func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Header() http.Header {
24316	if c.header_ == nil {
24317		c.header_ = make(http.Header)
24318	}
24319	return c.header_
24320}
24321
24322func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) doRequest(alt string) (*http.Response, error) {
24323	reqHeaders := make(http.Header)
24324	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24325	for k, v := range c.header_ {
24326		reqHeaders[k] = v
24327	}
24328	reqHeaders.Set("User-Agent", c.s.userAgent())
24329	var body io.Reader = nil
24330	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
24331	if err != nil {
24332		return nil, err
24333	}
24334	reqHeaders.Set("Content-Type", "application/json")
24335	c.urlParams_.Set("alt", alt)
24336	c.urlParams_.Set("prettyPrint", "false")
24337	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24338	urls += "?" + c.urlParams_.Encode()
24339	req, err := http.NewRequest("PUT", urls, body)
24340	if err != nil {
24341		return nil, err
24342	}
24343	req.Header = reqHeaders
24344	googleapi.Expand(req.URL, map[string]string{
24345		"name": c.name,
24346	})
24347	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24348}
24349
24350// Do executes the "apigee.organizations.environments.keystores.aliases.update" call.
24351// Exactly one of *GoogleCloudApigeeV1Alias or error will be non-nil.
24352// Any non-2xx status code is an error. Response headers are in either
24353// *GoogleCloudApigeeV1Alias.ServerResponse.Header or (if a response was
24354// returned at all) in error.(*googleapi.Error).Header. Use
24355// googleapi.IsNotModified to check whether the returned error was
24356// because http.StatusNotModified was returned.
24357func (c *OrganizationsEnvironmentsKeystoresAliasesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Alias, error) {
24358	gensupport.SetOptions(c.urlParams_, opts...)
24359	res, err := c.doRequest("json")
24360	if res != nil && res.StatusCode == http.StatusNotModified {
24361		if res.Body != nil {
24362			res.Body.Close()
24363		}
24364		return nil, &googleapi.Error{
24365			Code:   res.StatusCode,
24366			Header: res.Header,
24367		}
24368	}
24369	if err != nil {
24370		return nil, err
24371	}
24372	defer googleapi.CloseBody(res)
24373	if err := googleapi.CheckResponse(res); err != nil {
24374		return nil, err
24375	}
24376	ret := &GoogleCloudApigeeV1Alias{
24377		ServerResponse: googleapi.ServerResponse{
24378			Header:         res.Header,
24379			HTTPStatusCode: res.StatusCode,
24380		},
24381	}
24382	target := &ret
24383	if err := gensupport.DecodeResponse(target, res); err != nil {
24384		return nil, err
24385	}
24386	return ret, nil
24387	// {
24388	//   "description": "Updates the certificate in an alias.",
24389	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keystores/{keystoresId}/aliases/{aliasesId}",
24390	//   "httpMethod": "PUT",
24391	//   "id": "apigee.organizations.environments.keystores.aliases.update",
24392	//   "parameterOrder": [
24393	//     "name"
24394	//   ],
24395	//   "parameters": {
24396	//     "ignoreExpiryValidation": {
24397	//       "description": "Required. If `true`, no expiry validation will be performed.",
24398	//       "location": "query",
24399	//       "type": "boolean"
24400	//     },
24401	//     "ignoreNewlineValidation": {
24402	//       "description": "If `true`, do not throw an error when the file contains a chain with no\nnewline between each certificate. By default, a newline is needed between\neach certificate in a chain.",
24403	//       "location": "query",
24404	//       "type": "boolean"
24405	//     },
24406	//     "name": {
24407	//       "description": "Required. The name of the alias. Must be of the form\n`organizations/{organization}/environments/{environment}/keystores/{keystore}/aliases/{alias}`.",
24408	//       "location": "path",
24409	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keystores/[^/]+/aliases/[^/]+$",
24410	//       "required": true,
24411	//       "type": "string"
24412	//     }
24413	//   },
24414	//   "path": "v1/{+name}",
24415	//   "request": {
24416	//     "$ref": "GoogleApiHttpBody"
24417	//   },
24418	//   "response": {
24419	//     "$ref": "GoogleCloudApigeeV1Alias"
24420	//   },
24421	//   "scopes": [
24422	//     "https://www.googleapis.com/auth/cloud-platform"
24423	//   ]
24424	// }
24425
24426}
24427
24428// method id "apigee.organizations.environments.keyvaluemaps.create":
24429
24430type OrganizationsEnvironmentsKeyvaluemapsCreateCall struct {
24431	s                              *Service
24432	parent                         string
24433	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
24434	urlParams_                     gensupport.URLParams
24435	ctx_                           context.Context
24436	header_                        http.Header
24437}
24438
24439// Create: Creates a key value map in an environment.
24440func (r *OrganizationsEnvironmentsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
24441	c := &OrganizationsEnvironmentsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24442	c.parent = parent
24443	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
24444	return c
24445}
24446
24447// Fields allows partial responses to be retrieved. See
24448// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24449// for more information.
24450func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
24451	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24452	return c
24453}
24454
24455// Context sets the context to be used in this call's Do method. Any
24456// pending HTTP request will be aborted if the provided context is
24457// canceled.
24458func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsCreateCall {
24459	c.ctx_ = ctx
24460	return c
24461}
24462
24463// Header returns an http.Header that can be modified by the caller to
24464// add HTTP headers to the request.
24465func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Header() http.Header {
24466	if c.header_ == nil {
24467		c.header_ = make(http.Header)
24468	}
24469	return c.header_
24470}
24471
24472func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
24473	reqHeaders := make(http.Header)
24474	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24475	for k, v := range c.header_ {
24476		reqHeaders[k] = v
24477	}
24478	reqHeaders.Set("User-Agent", c.s.userAgent())
24479	var body io.Reader = nil
24480	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
24481	if err != nil {
24482		return nil, err
24483	}
24484	reqHeaders.Set("Content-Type", "application/json")
24485	c.urlParams_.Set("alt", alt)
24486	c.urlParams_.Set("prettyPrint", "false")
24487	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
24488	urls += "?" + c.urlParams_.Encode()
24489	req, err := http.NewRequest("POST", urls, body)
24490	if err != nil {
24491		return nil, err
24492	}
24493	req.Header = reqHeaders
24494	googleapi.Expand(req.URL, map[string]string{
24495		"parent": c.parent,
24496	})
24497	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24498}
24499
24500// Do executes the "apigee.organizations.environments.keyvaluemaps.create" call.
24501// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
24502// non-nil. Any non-2xx status code is an error. Response headers are in
24503// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
24504// response was returned at all) in error.(*googleapi.Error).Header. Use
24505// googleapi.IsNotModified to check whether the returned error was
24506// because http.StatusNotModified was returned.
24507func (c *OrganizationsEnvironmentsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
24508	gensupport.SetOptions(c.urlParams_, opts...)
24509	res, err := c.doRequest("json")
24510	if res != nil && res.StatusCode == http.StatusNotModified {
24511		if res.Body != nil {
24512			res.Body.Close()
24513		}
24514		return nil, &googleapi.Error{
24515			Code:   res.StatusCode,
24516			Header: res.Header,
24517		}
24518	}
24519	if err != nil {
24520		return nil, err
24521	}
24522	defer googleapi.CloseBody(res)
24523	if err := googleapi.CheckResponse(res); err != nil {
24524		return nil, err
24525	}
24526	ret := &GoogleCloudApigeeV1KeyValueMap{
24527		ServerResponse: googleapi.ServerResponse{
24528			Header:         res.Header,
24529			HTTPStatusCode: res.StatusCode,
24530		},
24531	}
24532	target := &ret
24533	if err := gensupport.DecodeResponse(target, res); err != nil {
24534		return nil, err
24535	}
24536	return ret, nil
24537	// {
24538	//   "description": "Creates a key value map in an environment.",
24539	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
24540	//   "httpMethod": "POST",
24541	//   "id": "apigee.organizations.environments.keyvaluemaps.create",
24542	//   "parameterOrder": [
24543	//     "parent"
24544	//   ],
24545	//   "parameters": {
24546	//     "parent": {
24547	//       "description": "Required. The name of the environment in which to create the key value map.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
24548	//       "location": "path",
24549	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24550	//       "required": true,
24551	//       "type": "string"
24552	//     }
24553	//   },
24554	//   "path": "v1/{+parent}/keyvaluemaps",
24555	//   "request": {
24556	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
24557	//   },
24558	//   "response": {
24559	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
24560	//   },
24561	//   "scopes": [
24562	//     "https://www.googleapis.com/auth/cloud-platform"
24563	//   ]
24564	// }
24565
24566}
24567
24568// method id "apigee.organizations.environments.keyvaluemaps.delete":
24569
24570type OrganizationsEnvironmentsKeyvaluemapsDeleteCall struct {
24571	s          *Service
24572	name       string
24573	urlParams_ gensupport.URLParams
24574	ctx_       context.Context
24575	header_    http.Header
24576}
24577
24578// Delete: Delete a key value map in an environment.
24579func (r *OrganizationsEnvironmentsKeyvaluemapsService) Delete(name string) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
24580	c := &OrganizationsEnvironmentsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24581	c.name = name
24582	return c
24583}
24584
24585// Fields allows partial responses to be retrieved. See
24586// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24587// for more information.
24588func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
24589	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24590	return c
24591}
24592
24593// Context sets the context to be used in this call's Do method. Any
24594// pending HTTP request will be aborted if the provided context is
24595// canceled.
24596func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsDeleteCall {
24597	c.ctx_ = ctx
24598	return c
24599}
24600
24601// Header returns an http.Header that can be modified by the caller to
24602// add HTTP headers to the request.
24603func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Header() http.Header {
24604	if c.header_ == nil {
24605		c.header_ = make(http.Header)
24606	}
24607	return c.header_
24608}
24609
24610func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
24611	reqHeaders := make(http.Header)
24612	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24613	for k, v := range c.header_ {
24614		reqHeaders[k] = v
24615	}
24616	reqHeaders.Set("User-Agent", c.s.userAgent())
24617	var body io.Reader = nil
24618	c.urlParams_.Set("alt", alt)
24619	c.urlParams_.Set("prettyPrint", "false")
24620	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24621	urls += "?" + c.urlParams_.Encode()
24622	req, err := http.NewRequest("DELETE", urls, body)
24623	if err != nil {
24624		return nil, err
24625	}
24626	req.Header = reqHeaders
24627	googleapi.Expand(req.URL, map[string]string{
24628		"name": c.name,
24629	})
24630	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24631}
24632
24633// Do executes the "apigee.organizations.environments.keyvaluemaps.delete" call.
24634// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
24635// non-nil. Any non-2xx status code is an error. Response headers are in
24636// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
24637// response was returned at all) in error.(*googleapi.Error).Header. Use
24638// googleapi.IsNotModified to check whether the returned error was
24639// because http.StatusNotModified was returned.
24640func (c *OrganizationsEnvironmentsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
24641	gensupport.SetOptions(c.urlParams_, opts...)
24642	res, err := c.doRequest("json")
24643	if res != nil && res.StatusCode == http.StatusNotModified {
24644		if res.Body != nil {
24645			res.Body.Close()
24646		}
24647		return nil, &googleapi.Error{
24648			Code:   res.StatusCode,
24649			Header: res.Header,
24650		}
24651	}
24652	if err != nil {
24653		return nil, err
24654	}
24655	defer googleapi.CloseBody(res)
24656	if err := googleapi.CheckResponse(res); err != nil {
24657		return nil, err
24658	}
24659	ret := &GoogleCloudApigeeV1KeyValueMap{
24660		ServerResponse: googleapi.ServerResponse{
24661			Header:         res.Header,
24662			HTTPStatusCode: res.StatusCode,
24663		},
24664	}
24665	target := &ret
24666	if err := gensupport.DecodeResponse(target, res); err != nil {
24667		return nil, err
24668	}
24669	return ret, nil
24670	// {
24671	//   "description": "Delete a key value map in an environment.",
24672	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps/{keyvaluemapsId}",
24673	//   "httpMethod": "DELETE",
24674	//   "id": "apigee.organizations.environments.keyvaluemaps.delete",
24675	//   "parameterOrder": [
24676	//     "name"
24677	//   ],
24678	//   "parameters": {
24679	//     "name": {
24680	//       "description": "Required. The name of the key value map.\nMust be of the form\n`organizations/{organization}/environments/{environment}/keyvaluemaps/{keyvaluemap}`.",
24681	//       "location": "path",
24682	//       "pattern": "^organizations/[^/]+/environments/[^/]+/keyvaluemaps/[^/]+$",
24683	//       "required": true,
24684	//       "type": "string"
24685	//     }
24686	//   },
24687	//   "path": "v1/{+name}",
24688	//   "response": {
24689	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
24690	//   },
24691	//   "scopes": [
24692	//     "https://www.googleapis.com/auth/cloud-platform"
24693	//   ]
24694	// }
24695
24696}
24697
24698// method id "apigee.organizations.environments.keyvaluemaps.list":
24699
24700type OrganizationsEnvironmentsKeyvaluemapsListCall struct {
24701	s            *Service
24702	parent       string
24703	urlParams_   gensupport.URLParams
24704	ifNoneMatch_ string
24705	ctx_         context.Context
24706	header_      http.Header
24707}
24708
24709// List: List key value maps in an environment.
24710func (r *OrganizationsEnvironmentsKeyvaluemapsService) List(parent string) *OrganizationsEnvironmentsKeyvaluemapsListCall {
24711	c := &OrganizationsEnvironmentsKeyvaluemapsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24712	c.parent = parent
24713	return c
24714}
24715
24716// Fields allows partial responses to be retrieved. See
24717// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24718// for more information.
24719func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsKeyvaluemapsListCall {
24720	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24721	return c
24722}
24723
24724// IfNoneMatch sets the optional parameter which makes the operation
24725// fail if the object's ETag matches the given value. This is useful for
24726// getting updates only after the object has changed since the last
24727// request. Use googleapi.IsNotModified to check whether the response
24728// error from Do is the result of In-None-Match.
24729func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsKeyvaluemapsListCall {
24730	c.ifNoneMatch_ = entityTag
24731	return c
24732}
24733
24734// Context sets the context to be used in this call's Do method. Any
24735// pending HTTP request will be aborted if the provided context is
24736// canceled.
24737func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsKeyvaluemapsListCall {
24738	c.ctx_ = ctx
24739	return c
24740}
24741
24742// Header returns an http.Header that can be modified by the caller to
24743// add HTTP headers to the request.
24744func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) Header() http.Header {
24745	if c.header_ == nil {
24746		c.header_ = make(http.Header)
24747	}
24748	return c.header_
24749}
24750
24751func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) doRequest(alt string) (*http.Response, error) {
24752	reqHeaders := make(http.Header)
24753	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
24754	for k, v := range c.header_ {
24755		reqHeaders[k] = v
24756	}
24757	reqHeaders.Set("User-Agent", c.s.userAgent())
24758	if c.ifNoneMatch_ != "" {
24759		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24760	}
24761	var body io.Reader = nil
24762	c.urlParams_.Set("alt", alt)
24763	c.urlParams_.Set("prettyPrint", "false")
24764	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
24765	urls += "?" + c.urlParams_.Encode()
24766	req, err := http.NewRequest("GET", urls, body)
24767	if err != nil {
24768		return nil, err
24769	}
24770	req.Header = reqHeaders
24771	googleapi.Expand(req.URL, map[string]string{
24772		"parent": c.parent,
24773	})
24774	return gensupport.SendRequest(c.ctx_, c.s.client, req)
24775}
24776
24777// Do executes the "apigee.organizations.environments.keyvaluemaps.list" call.
24778func (c *OrganizationsEnvironmentsKeyvaluemapsListCall) Do(opts ...googleapi.CallOption) error {
24779	gensupport.SetOptions(c.urlParams_, opts...)
24780	res, err := c.doRequest("json")
24781	if err != nil {
24782		return err
24783	}
24784	defer googleapi.CloseBody(res)
24785	if err := googleapi.CheckResponse(res); err != nil {
24786		return err
24787	}
24788	return nil
24789	// {
24790	//   "description": "List key value maps in an environment.",
24791	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/keyvaluemaps",
24792	//   "httpMethod": "GET",
24793	//   "id": "apigee.organizations.environments.keyvaluemaps.list",
24794	//   "parameterOrder": [
24795	//     "parent"
24796	//   ],
24797	//   "parameters": {
24798	//     "parent": {
24799	//       "description": "Required. The name of the environment in which to list key value maps.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
24800	//       "location": "path",
24801	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
24802	//       "required": true,
24803	//       "type": "string"
24804	//     }
24805	//   },
24806	//   "path": "v1/{+parent}/keyvaluemaps",
24807	//   "response": {
24808	//     "items": {
24809	//       "type": "any"
24810	//     },
24811	//     "type": "array"
24812	//   },
24813	//   "scopes": [
24814	//     "https://www.googleapis.com/auth/cloud-platform"
24815	//   ]
24816	// }
24817
24818}
24819
24820// method id "apigee.organizations.environments.optimizedStats.get":
24821
24822type OrganizationsEnvironmentsOptimizedStatsGetCall struct {
24823	s            *Service
24824	name         string
24825	urlParams_   gensupport.URLParams
24826	ifNoneMatch_ string
24827	ctx_         context.Context
24828	header_      http.Header
24829}
24830
24831// Get: This api is similar to GetStats
24832// except that the response is less verbose.
24833// In the current scheme, a query parameter _optimized instructs
24834// Edge Analytics to change the response but since this behavior
24835// is not possible with protocol buffer and since this parameter
24836// is
24837// predominantly used by Edge UI, we are introducing a separate api.
24838func (r *OrganizationsEnvironmentsOptimizedStatsService) Get(name string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24839	c := &OrganizationsEnvironmentsOptimizedStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24840	c.name = name
24841	return c
24842}
24843
24844// Accuracy sets the optional parameter "accuracy": Legacy field. not
24845// used anymore
24846func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24847	c.urlParams_.Set("accuracy", accuracy)
24848	return c
24849}
24850
24851// AggTable sets the optional parameter "aggTable": If customers want to
24852// query custom aggregate tables, then this parameter
24853// can be used to specify the table name. If this parameter is skipped,
24854// then
24855// Edge Query will try to retrieve the data from fact tables which will
24856// be
24857// expensive.
24858func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24859	c.urlParams_.Set("aggTable", aggTable)
24860	return c
24861}
24862
24863// Filter sets the optional parameter "filter": Enables drill-down on
24864// specific dimension values
24865func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24866	c.urlParams_.Set("filter", filter)
24867	return c
24868}
24869
24870// Limit sets the optional parameter "limit": This parameter is used to
24871// limit the number of result items.
24872// Default and the max value is 14400
24873func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24874	c.urlParams_.Set("limit", limit)
24875	return c
24876}
24877
24878// Offset sets the optional parameter "offset": Use offset with limit to
24879// enable pagination of results. For example,
24880// to display results 11-20, set limit to '10' and offset to '10'.
24881func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24882	c.urlParams_.Set("offset", offset)
24883	return c
24884}
24885
24886// Realtime sets the optional parameter "realtime": Legacy field: not
24887// used anymore
24888func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24889	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
24890	return c
24891}
24892
24893// Select sets the optional parameter "select": Required. The select
24894// parameter contains a comma separated list of metrics
24895// E.g. sum(message_count),sum(error_count)
24896func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24897	c.urlParams_.Set("select", select_)
24898	return c
24899}
24900
24901// Sonar sets the optional parameter "sonar": This parameter routes the
24902// query to api monitoring service for last hour
24903func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24904	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
24905	return c
24906}
24907
24908// Sort sets the optional parameter "sort": This parameter specifies if
24909// the sort order should be ascending or
24910// descending Supported values are DESC and ASC.
24911func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24912	c.urlParams_.Set("sort", sort)
24913	return c
24914}
24915
24916// Sortby sets the optional parameter "sortby": Comma separated list of
24917// columns to sort the final result.
24918func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24919	c.urlParams_.Set("sortby", sortby)
24920	return c
24921}
24922
24923// TimeRange sets the optional parameter "timeRange": Required. Time
24924// interval for the interactive query.
24925// Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017
24926// 23:59
24927func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24928	c.urlParams_.Set("timeRange", timeRange)
24929	return c
24930}
24931
24932// TimeUnit sets the optional parameter "timeUnit": A value of second,
24933// minute, hour, day, week, month.
24934// Time Unit specifies the granularity of metrics returned.
24935func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24936	c.urlParams_.Set("timeUnit", timeUnit)
24937	return c
24938}
24939
24940// Topk sets the optional parameter "topk": Take 'top k' results from
24941// results, for example, to return the top 5
24942// results 'topk=5'.
24943func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24944	c.urlParams_.Set("topk", topk)
24945	return c
24946}
24947
24948// TsAscending sets the optional parameter "tsAscending": Lists
24949// timestamps in ascending order if set to true. Recommend setting
24950// this value to true if you are using sortby with sort=DESC.
24951func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24952	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
24953	return c
24954}
24955
24956// Tzo sets the optional parameter "tzo": This parameters contains the
24957// timezone offset value
24958func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24959	c.urlParams_.Set("tzo", tzo)
24960	return c
24961}
24962
24963// Fields allows partial responses to be retrieved. See
24964// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
24965// for more information.
24966func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24967	c.urlParams_.Set("fields", googleapi.CombineFields(s))
24968	return c
24969}
24970
24971// IfNoneMatch sets the optional parameter which makes the operation
24972// fail if the object's ETag matches the given value. This is useful for
24973// getting updates only after the object has changed since the last
24974// request. Use googleapi.IsNotModified to check whether the response
24975// error from Do is the result of In-None-Match.
24976func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24977	c.ifNoneMatch_ = entityTag
24978	return c
24979}
24980
24981// Context sets the context to be used in this call's Do method. Any
24982// pending HTTP request will be aborted if the provided context is
24983// canceled.
24984func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsOptimizedStatsGetCall {
24985	c.ctx_ = ctx
24986	return c
24987}
24988
24989// Header returns an http.Header that can be modified by the caller to
24990// add HTTP headers to the request.
24991func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Header() http.Header {
24992	if c.header_ == nil {
24993		c.header_ = make(http.Header)
24994	}
24995	return c.header_
24996}
24997
24998func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) doRequest(alt string) (*http.Response, error) {
24999	reqHeaders := make(http.Header)
25000	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25001	for k, v := range c.header_ {
25002		reqHeaders[k] = v
25003	}
25004	reqHeaders.Set("User-Agent", c.s.userAgent())
25005	if c.ifNoneMatch_ != "" {
25006		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25007	}
25008	var body io.Reader = nil
25009	c.urlParams_.Set("alt", alt)
25010	c.urlParams_.Set("prettyPrint", "false")
25011	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25012	urls += "?" + c.urlParams_.Encode()
25013	req, err := http.NewRequest("GET", urls, body)
25014	if err != nil {
25015		return nil, err
25016	}
25017	req.Header = reqHeaders
25018	googleapi.Expand(req.URL, map[string]string{
25019		"name": c.name,
25020	})
25021	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25022}
25023
25024// Do executes the "apigee.organizations.environments.optimizedStats.get" call.
25025// Exactly one of *GoogleCloudApigeeV1OptimizedStats or error will be
25026// non-nil. Any non-2xx status code is an error. Response headers are in
25027// either *GoogleCloudApigeeV1OptimizedStats.ServerResponse.Header or
25028// (if a response was returned at all) in
25029// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25030// whether the returned error was because http.StatusNotModified was
25031// returned.
25032func (c *OrganizationsEnvironmentsOptimizedStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1OptimizedStats, error) {
25033	gensupport.SetOptions(c.urlParams_, opts...)
25034	res, err := c.doRequest("json")
25035	if res != nil && res.StatusCode == http.StatusNotModified {
25036		if res.Body != nil {
25037			res.Body.Close()
25038		}
25039		return nil, &googleapi.Error{
25040			Code:   res.StatusCode,
25041			Header: res.Header,
25042		}
25043	}
25044	if err != nil {
25045		return nil, err
25046	}
25047	defer googleapi.CloseBody(res)
25048	if err := googleapi.CheckResponse(res); err != nil {
25049		return nil, err
25050	}
25051	ret := &GoogleCloudApigeeV1OptimizedStats{
25052		ServerResponse: googleapi.ServerResponse{
25053			Header:         res.Header,
25054			HTTPStatusCode: res.StatusCode,
25055		},
25056	}
25057	target := &ret
25058	if err := gensupport.DecodeResponse(target, res); err != nil {
25059		return nil, err
25060	}
25061	return ret, nil
25062	// {
25063	//   "description": "This api is similar to GetStats\nexcept that the response is less verbose.\nIn the current scheme, a query parameter _optimized instructs\nEdge Analytics to change the response but since this behavior\nis not possible with protocol buffer and since this parameter is\npredominantly used by Edge UI, we are introducing a separate api.",
25064	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/optimizedStats/{optimizedStatsId}",
25065	//   "httpMethod": "GET",
25066	//   "id": "apigee.organizations.environments.optimizedStats.get",
25067	//   "parameterOrder": [
25068	//     "name"
25069	//   ],
25070	//   "parameters": {
25071	//     "accuracy": {
25072	//       "description": "Legacy field. not used anymore",
25073	//       "location": "query",
25074	//       "type": "string"
25075	//     },
25076	//     "aggTable": {
25077	//       "description": "If customers want to query custom aggregate tables, then this parameter\ncan be used to specify the table name. If this parameter is skipped, then\nEdge Query will try to retrieve the data from fact tables which will be\nexpensive.",
25078	//       "location": "query",
25079	//       "type": "string"
25080	//     },
25081	//     "filter": {
25082	//       "description": "Enables drill-down on specific dimension values",
25083	//       "location": "query",
25084	//       "type": "string"
25085	//     },
25086	//     "limit": {
25087	//       "description": "This parameter is used to limit the number of result items.\nDefault and the max value is 14400",
25088	//       "location": "query",
25089	//       "type": "string"
25090	//     },
25091	//     "name": {
25092	//       "description": "Required. The organization and environment name for which the interactive\nquery will be executed. Must be of the form\n  `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}`\nDimensions let you view metrics in meaningful groupings. E.g. apiproxy,\ntarget_host. The value of dimensions should be comma separated list as\nshown below\n`organizations/{org}/environments/{env}/stats/apiproxy,request_verb`",
25093	//       "location": "path",
25094	//       "pattern": "^organizations/[^/]+/environments/[^/]+/optimizedStats/.+$",
25095	//       "required": true,
25096	//       "type": "string"
25097	//     },
25098	//     "offset": {
25099	//       "description": "Use offset with limit to enable pagination of results. For example,\nto display results 11-20, set limit to '10' and offset to '10'.",
25100	//       "location": "query",
25101	//       "type": "string"
25102	//     },
25103	//     "realtime": {
25104	//       "description": "Legacy field: not used anymore",
25105	//       "location": "query",
25106	//       "type": "boolean"
25107	//     },
25108	//     "select": {
25109	//       "description": "Required. The select parameter contains a comma separated list of metrics\nE.g. sum(message_count),sum(error_count)",
25110	//       "location": "query",
25111	//       "type": "string"
25112	//     },
25113	//     "sonar": {
25114	//       "description": "This parameter routes the query to api monitoring service for last hour",
25115	//       "location": "query",
25116	//       "type": "boolean"
25117	//     },
25118	//     "sort": {
25119	//       "description": "This parameter specifies if the sort order should be ascending or\ndescending Supported values are DESC and ASC.",
25120	//       "location": "query",
25121	//       "type": "string"
25122	//     },
25123	//     "sortby": {
25124	//       "description": "Comma separated list of columns to sort the final result.",
25125	//       "location": "query",
25126	//       "type": "string"
25127	//     },
25128	//     "timeRange": {
25129	//       "description": "Required. Time interval for the interactive query.\nTime range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59",
25130	//       "location": "query",
25131	//       "type": "string"
25132	//     },
25133	//     "timeUnit": {
25134	//       "description": "A value of second, minute, hour, day, week, month.\nTime Unit specifies the granularity of metrics returned.",
25135	//       "location": "query",
25136	//       "type": "string"
25137	//     },
25138	//     "topk": {
25139	//       "description": "Take 'top k' results from results, for example, to return the top 5\nresults 'topk=5'.",
25140	//       "location": "query",
25141	//       "type": "string"
25142	//     },
25143	//     "tsAscending": {
25144	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting\nthis value to true if you are using sortby with sort=DESC.",
25145	//       "location": "query",
25146	//       "type": "boolean"
25147	//     },
25148	//     "tzo": {
25149	//       "description": "This parameters contains the timezone offset value",
25150	//       "location": "query",
25151	//       "type": "string"
25152	//     }
25153	//   },
25154	//   "path": "v1/{+name}",
25155	//   "response": {
25156	//     "$ref": "GoogleCloudApigeeV1OptimizedStats"
25157	//   },
25158	//   "scopes": [
25159	//     "https://www.googleapis.com/auth/cloud-platform"
25160	//   ]
25161	// }
25162
25163}
25164
25165// method id "apigee.organizations.environments.queries.create":
25166
25167type OrganizationsEnvironmentsQueriesCreateCall struct {
25168	s                        *Service
25169	parent                   string
25170	googlecloudapigeev1query *GoogleCloudApigeeV1Query
25171	urlParams_               gensupport.URLParams
25172	ctx_                     context.Context
25173	header_                  http.Header
25174}
25175
25176// Create: Submit a query to be processed in the background.
25177// If the submission of the query succeeds, the API returns a 201 status
25178// and
25179// an ID that refer to the query. In addition to the HTTP status 201,
25180// the
25181// `state` of "enqueued" means that the request succeeded.
25182func (r *OrganizationsEnvironmentsQueriesService) Create(parent string, googlecloudapigeev1query *GoogleCloudApigeeV1Query) *OrganizationsEnvironmentsQueriesCreateCall {
25183	c := &OrganizationsEnvironmentsQueriesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25184	c.parent = parent
25185	c.googlecloudapigeev1query = googlecloudapigeev1query
25186	return c
25187}
25188
25189// Fields allows partial responses to be retrieved. See
25190// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25191// for more information.
25192func (c *OrganizationsEnvironmentsQueriesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesCreateCall {
25193	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25194	return c
25195}
25196
25197// Context sets the context to be used in this call's Do method. Any
25198// pending HTTP request will be aborted if the provided context is
25199// canceled.
25200func (c *OrganizationsEnvironmentsQueriesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesCreateCall {
25201	c.ctx_ = ctx
25202	return c
25203}
25204
25205// Header returns an http.Header that can be modified by the caller to
25206// add HTTP headers to the request.
25207func (c *OrganizationsEnvironmentsQueriesCreateCall) Header() http.Header {
25208	if c.header_ == nil {
25209		c.header_ = make(http.Header)
25210	}
25211	return c.header_
25212}
25213
25214func (c *OrganizationsEnvironmentsQueriesCreateCall) doRequest(alt string) (*http.Response, error) {
25215	reqHeaders := make(http.Header)
25216	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25217	for k, v := range c.header_ {
25218		reqHeaders[k] = v
25219	}
25220	reqHeaders.Set("User-Agent", c.s.userAgent())
25221	var body io.Reader = nil
25222	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1query)
25223	if err != nil {
25224		return nil, err
25225	}
25226	reqHeaders.Set("Content-Type", "application/json")
25227	c.urlParams_.Set("alt", alt)
25228	c.urlParams_.Set("prettyPrint", "false")
25229	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
25230	urls += "?" + c.urlParams_.Encode()
25231	req, err := http.NewRequest("POST", urls, body)
25232	if err != nil {
25233		return nil, err
25234	}
25235	req.Header = reqHeaders
25236	googleapi.Expand(req.URL, map[string]string{
25237		"parent": c.parent,
25238	})
25239	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25240}
25241
25242// Do executes the "apigee.organizations.environments.queries.create" call.
25243// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
25244// non-nil. Any non-2xx status code is an error. Response headers are in
25245// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
25246// response was returned at all) in error.(*googleapi.Error).Header. Use
25247// googleapi.IsNotModified to check whether the returned error was
25248// because http.StatusNotModified was returned.
25249func (c *OrganizationsEnvironmentsQueriesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
25250	gensupport.SetOptions(c.urlParams_, opts...)
25251	res, err := c.doRequest("json")
25252	if res != nil && res.StatusCode == http.StatusNotModified {
25253		if res.Body != nil {
25254			res.Body.Close()
25255		}
25256		return nil, &googleapi.Error{
25257			Code:   res.StatusCode,
25258			Header: res.Header,
25259		}
25260	}
25261	if err != nil {
25262		return nil, err
25263	}
25264	defer googleapi.CloseBody(res)
25265	if err := googleapi.CheckResponse(res); err != nil {
25266		return nil, err
25267	}
25268	ret := &GoogleCloudApigeeV1AsyncQuery{
25269		ServerResponse: googleapi.ServerResponse{
25270			Header:         res.Header,
25271			HTTPStatusCode: res.StatusCode,
25272		},
25273	}
25274	target := &ret
25275	if err := gensupport.DecodeResponse(target, res); err != nil {
25276		return nil, err
25277	}
25278	return ret, nil
25279	// {
25280	//   "description": "Submit a query to be processed in the background.\nIf the submission of the query succeeds, the API returns a 201 status and\nan ID that refer to the query. In addition to the HTTP status 201, the\n`state` of \"enqueued\" means that the request succeeded.",
25281	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
25282	//   "httpMethod": "POST",
25283	//   "id": "apigee.organizations.environments.queries.create",
25284	//   "parameterOrder": [
25285	//     "parent"
25286	//   ],
25287	//   "parameters": {
25288	//     "parent": {
25289	//       "description": "Required. The parent organization and environment names.\nMust be of the form `organizations/{org}/environments/{env}`.",
25290	//       "location": "path",
25291	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25292	//       "required": true,
25293	//       "type": "string"
25294	//     }
25295	//   },
25296	//   "path": "v1/{+parent}/queries",
25297	//   "request": {
25298	//     "$ref": "GoogleCloudApigeeV1Query"
25299	//   },
25300	//   "response": {
25301	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
25302	//   },
25303	//   "scopes": [
25304	//     "https://www.googleapis.com/auth/cloud-platform"
25305	//   ]
25306	// }
25307
25308}
25309
25310// method id "apigee.organizations.environments.queries.get":
25311
25312type OrganizationsEnvironmentsQueriesGetCall struct {
25313	s            *Service
25314	name         string
25315	urlParams_   gensupport.URLParams
25316	ifNoneMatch_ string
25317	ctx_         context.Context
25318	header_      http.Header
25319}
25320
25321// Get: Get query status
25322// If the query is still in progress, the `state` is set to
25323// "running"
25324// After the query has completed successfully, `state` is set to
25325// "completed"
25326func (r *OrganizationsEnvironmentsQueriesService) Get(name string) *OrganizationsEnvironmentsQueriesGetCall {
25327	c := &OrganizationsEnvironmentsQueriesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25328	c.name = name
25329	return c
25330}
25331
25332// Fields allows partial responses to be retrieved. See
25333// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25334// for more information.
25335func (c *OrganizationsEnvironmentsQueriesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetCall {
25336	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25337	return c
25338}
25339
25340// IfNoneMatch sets the optional parameter which makes the operation
25341// fail if the object's ETag matches the given value. This is useful for
25342// getting updates only after the object has changed since the last
25343// request. Use googleapi.IsNotModified to check whether the response
25344// error from Do is the result of In-None-Match.
25345func (c *OrganizationsEnvironmentsQueriesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetCall {
25346	c.ifNoneMatch_ = entityTag
25347	return c
25348}
25349
25350// Context sets the context to be used in this call's Do method. Any
25351// pending HTTP request will be aborted if the provided context is
25352// canceled.
25353func (c *OrganizationsEnvironmentsQueriesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetCall {
25354	c.ctx_ = ctx
25355	return c
25356}
25357
25358// Header returns an http.Header that can be modified by the caller to
25359// add HTTP headers to the request.
25360func (c *OrganizationsEnvironmentsQueriesGetCall) Header() http.Header {
25361	if c.header_ == nil {
25362		c.header_ = make(http.Header)
25363	}
25364	return c.header_
25365}
25366
25367func (c *OrganizationsEnvironmentsQueriesGetCall) doRequest(alt string) (*http.Response, error) {
25368	reqHeaders := make(http.Header)
25369	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25370	for k, v := range c.header_ {
25371		reqHeaders[k] = v
25372	}
25373	reqHeaders.Set("User-Agent", c.s.userAgent())
25374	if c.ifNoneMatch_ != "" {
25375		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25376	}
25377	var body io.Reader = nil
25378	c.urlParams_.Set("alt", alt)
25379	c.urlParams_.Set("prettyPrint", "false")
25380	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25381	urls += "?" + c.urlParams_.Encode()
25382	req, err := http.NewRequest("GET", urls, body)
25383	if err != nil {
25384		return nil, err
25385	}
25386	req.Header = reqHeaders
25387	googleapi.Expand(req.URL, map[string]string{
25388		"name": c.name,
25389	})
25390	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25391}
25392
25393// Do executes the "apigee.organizations.environments.queries.get" call.
25394// Exactly one of *GoogleCloudApigeeV1AsyncQuery or error will be
25395// non-nil. Any non-2xx status code is an error. Response headers are in
25396// either *GoogleCloudApigeeV1AsyncQuery.ServerResponse.Header or (if a
25397// response was returned at all) in error.(*googleapi.Error).Header. Use
25398// googleapi.IsNotModified to check whether the returned error was
25399// because http.StatusNotModified was returned.
25400func (c *OrganizationsEnvironmentsQueriesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQuery, error) {
25401	gensupport.SetOptions(c.urlParams_, opts...)
25402	res, err := c.doRequest("json")
25403	if res != nil && res.StatusCode == http.StatusNotModified {
25404		if res.Body != nil {
25405			res.Body.Close()
25406		}
25407		return nil, &googleapi.Error{
25408			Code:   res.StatusCode,
25409			Header: res.Header,
25410		}
25411	}
25412	if err != nil {
25413		return nil, err
25414	}
25415	defer googleapi.CloseBody(res)
25416	if err := googleapi.CheckResponse(res); err != nil {
25417		return nil, err
25418	}
25419	ret := &GoogleCloudApigeeV1AsyncQuery{
25420		ServerResponse: googleapi.ServerResponse{
25421			Header:         res.Header,
25422			HTTPStatusCode: res.StatusCode,
25423		},
25424	}
25425	target := &ret
25426	if err := gensupport.DecodeResponse(target, res); err != nil {
25427		return nil, err
25428	}
25429	return ret, nil
25430	// {
25431	//   "description": "Get query status\nIf the query is still in progress, the `state` is set to \"running\"\nAfter the query has completed successfully, `state` is set to \"completed\"",
25432	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}",
25433	//   "httpMethod": "GET",
25434	//   "id": "apigee.organizations.environments.queries.get",
25435	//   "parameterOrder": [
25436	//     "name"
25437	//   ],
25438	//   "parameters": {
25439	//     "name": {
25440	//       "description": "Required. Name of the asynchronous query to get. Must be of the form\n`organizations/{org}/environments/{env}/queries/{queryId}`.",
25441	//       "location": "path",
25442	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+$",
25443	//       "required": true,
25444	//       "type": "string"
25445	//     }
25446	//   },
25447	//   "path": "v1/{+name}",
25448	//   "response": {
25449	//     "$ref": "GoogleCloudApigeeV1AsyncQuery"
25450	//   },
25451	//   "scopes": [
25452	//     "https://www.googleapis.com/auth/cloud-platform"
25453	//   ]
25454	// }
25455
25456}
25457
25458// method id "apigee.organizations.environments.queries.getResult":
25459
25460type OrganizationsEnvironmentsQueriesGetResultCall struct {
25461	s            *Service
25462	name         string
25463	urlParams_   gensupport.URLParams
25464	ifNoneMatch_ string
25465	ctx_         context.Context
25466	header_      http.Header
25467}
25468
25469// GetResult: After the query is completed, use this API to retrieve the
25470// results.
25471// If the request succeeds, and there is a non-zero result set, the
25472// result is
25473// downloaded to the client as a zipped JSON file.
25474// The name of the downloaded file will be:
25475//   OfflineQueryResult-<query-id>.zip
25476//
25477// Example:
25478// `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`
25479func (r *OrganizationsEnvironmentsQueriesService) GetResult(name string) *OrganizationsEnvironmentsQueriesGetResultCall {
25480	c := &OrganizationsEnvironmentsQueriesGetResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25481	c.name = name
25482	return c
25483}
25484
25485// Fields allows partial responses to be retrieved. See
25486// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25487// for more information.
25488func (c *OrganizationsEnvironmentsQueriesGetResultCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultCall {
25489	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25490	return c
25491}
25492
25493// IfNoneMatch sets the optional parameter which makes the operation
25494// fail if the object's ETag matches the given value. This is useful for
25495// getting updates only after the object has changed since the last
25496// request. Use googleapi.IsNotModified to check whether the response
25497// error from Do is the result of In-None-Match.
25498func (c *OrganizationsEnvironmentsQueriesGetResultCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultCall {
25499	c.ifNoneMatch_ = entityTag
25500	return c
25501}
25502
25503// Context sets the context to be used in this call's Do method. Any
25504// pending HTTP request will be aborted if the provided context is
25505// canceled.
25506func (c *OrganizationsEnvironmentsQueriesGetResultCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultCall {
25507	c.ctx_ = ctx
25508	return c
25509}
25510
25511// Header returns an http.Header that can be modified by the caller to
25512// add HTTP headers to the request.
25513func (c *OrganizationsEnvironmentsQueriesGetResultCall) Header() http.Header {
25514	if c.header_ == nil {
25515		c.header_ = make(http.Header)
25516	}
25517	return c.header_
25518}
25519
25520func (c *OrganizationsEnvironmentsQueriesGetResultCall) doRequest(alt string) (*http.Response, error) {
25521	reqHeaders := make(http.Header)
25522	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25523	for k, v := range c.header_ {
25524		reqHeaders[k] = v
25525	}
25526	reqHeaders.Set("User-Agent", c.s.userAgent())
25527	if c.ifNoneMatch_ != "" {
25528		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25529	}
25530	var body io.Reader = nil
25531	c.urlParams_.Set("alt", alt)
25532	c.urlParams_.Set("prettyPrint", "false")
25533	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25534	urls += "?" + c.urlParams_.Encode()
25535	req, err := http.NewRequest("GET", urls, body)
25536	if err != nil {
25537		return nil, err
25538	}
25539	req.Header = reqHeaders
25540	googleapi.Expand(req.URL, map[string]string{
25541		"name": c.name,
25542	})
25543	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25544}
25545
25546// Do executes the "apigee.organizations.environments.queries.getResult" call.
25547// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
25548// non-2xx status code is an error. Response headers are in either
25549// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
25550// returned at all) in error.(*googleapi.Error).Header. Use
25551// googleapi.IsNotModified to check whether the returned error was
25552// because http.StatusNotModified was returned.
25553func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
25554	gensupport.SetOptions(c.urlParams_, opts...)
25555	res, err := c.doRequest("json")
25556	if res != nil && res.StatusCode == http.StatusNotModified {
25557		if res.Body != nil {
25558			res.Body.Close()
25559		}
25560		return nil, &googleapi.Error{
25561			Code:   res.StatusCode,
25562			Header: res.Header,
25563		}
25564	}
25565	if err != nil {
25566		return nil, err
25567	}
25568	defer googleapi.CloseBody(res)
25569	if err := googleapi.CheckResponse(res); err != nil {
25570		return nil, err
25571	}
25572	ret := &GoogleApiHttpBody{
25573		ServerResponse: googleapi.ServerResponse{
25574			Header:         res.Header,
25575			HTTPStatusCode: res.StatusCode,
25576		},
25577	}
25578	target := &ret
25579	if err := gensupport.DecodeResponse(target, res); err != nil {
25580		return nil, err
25581	}
25582	return ret, nil
25583	// {
25584	//   "description": "After the query is completed, use this API to retrieve the results.\nIf the request succeeds, and there is a non-zero result set, the result is\ndownloaded to the client as a zipped JSON file.\nThe name of the downloaded file will be:\n  OfflineQueryResult-\u003cquery-id\u003e.zip\n\nExample: `OfflineQueryResult-9cfc0d85-0f30-46d6-ae6f-318d0cb961bd.zip`",
25585	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/result",
25586	//   "httpMethod": "GET",
25587	//   "id": "apigee.organizations.environments.queries.getResult",
25588	//   "parameterOrder": [
25589	//     "name"
25590	//   ],
25591	//   "parameters": {
25592	//     "name": {
25593	//       "description": "Required. Name of the asynchronous query result to get. Must be of the\nform `organizations/{org}/environments/{env}/queries/{queryId}/result`.",
25594	//       "location": "path",
25595	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/result$",
25596	//       "required": true,
25597	//       "type": "string"
25598	//     }
25599	//   },
25600	//   "path": "v1/{+name}",
25601	//   "response": {
25602	//     "$ref": "GoogleApiHttpBody"
25603	//   },
25604	//   "scopes": [
25605	//     "https://www.googleapis.com/auth/cloud-platform"
25606	//   ]
25607	// }
25608
25609}
25610
25611// method id "apigee.organizations.environments.queries.getResultView":
25612
25613type OrganizationsEnvironmentsQueriesGetResultViewCall struct {
25614	s            *Service
25615	name         string
25616	urlParams_   gensupport.URLParams
25617	ifNoneMatch_ string
25618	ctx_         context.Context
25619	header_      http.Header
25620}
25621
25622// GetResultView:
25623func (r *OrganizationsEnvironmentsQueriesService) GetResultView(name string) *OrganizationsEnvironmentsQueriesGetResultViewCall {
25624	c := &OrganizationsEnvironmentsQueriesGetResultViewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25625	c.name = name
25626	return c
25627}
25628
25629// Fields allows partial responses to be retrieved. See
25630// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25631// for more information.
25632func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResultViewCall {
25633	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25634	return c
25635}
25636
25637// IfNoneMatch sets the optional parameter which makes the operation
25638// fail if the object's ETag matches the given value. This is useful for
25639// getting updates only after the object has changed since the last
25640// request. Use googleapi.IsNotModified to check whether the response
25641// error from Do is the result of In-None-Match.
25642func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResultViewCall {
25643	c.ifNoneMatch_ = entityTag
25644	return c
25645}
25646
25647// Context sets the context to be used in this call's Do method. Any
25648// pending HTTP request will be aborted if the provided context is
25649// canceled.
25650func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResultViewCall {
25651	c.ctx_ = ctx
25652	return c
25653}
25654
25655// Header returns an http.Header that can be modified by the caller to
25656// add HTTP headers to the request.
25657func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) Header() http.Header {
25658	if c.header_ == nil {
25659		c.header_ = make(http.Header)
25660	}
25661	return c.header_
25662}
25663
25664func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) doRequest(alt string) (*http.Response, error) {
25665	reqHeaders := make(http.Header)
25666	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25667	for k, v := range c.header_ {
25668		reqHeaders[k] = v
25669	}
25670	reqHeaders.Set("User-Agent", c.s.userAgent())
25671	if c.ifNoneMatch_ != "" {
25672		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25673	}
25674	var body io.Reader = nil
25675	c.urlParams_.Set("alt", alt)
25676	c.urlParams_.Set("prettyPrint", "false")
25677	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25678	urls += "?" + c.urlParams_.Encode()
25679	req, err := http.NewRequest("GET", urls, body)
25680	if err != nil {
25681		return nil, err
25682	}
25683	req.Header = reqHeaders
25684	googleapi.Expand(req.URL, map[string]string{
25685		"name": c.name,
25686	})
25687	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25688}
25689
25690// Do executes the "apigee.organizations.environments.queries.getResultView" call.
25691// Exactly one of *GoogleCloudApigeeV1AsyncQueryResultView or error will
25692// be non-nil. Any non-2xx status code is an error. Response headers are
25693// in either
25694// *GoogleCloudApigeeV1AsyncQueryResultView.ServerResponse.Header or (if
25695// a response was returned at all) in error.(*googleapi.Error).Header.
25696// Use googleapi.IsNotModified to check whether the returned error was
25697// because http.StatusNotModified was returned.
25698func (c *OrganizationsEnvironmentsQueriesGetResultViewCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1AsyncQueryResultView, error) {
25699	gensupport.SetOptions(c.urlParams_, opts...)
25700	res, err := c.doRequest("json")
25701	if res != nil && res.StatusCode == http.StatusNotModified {
25702		if res.Body != nil {
25703			res.Body.Close()
25704		}
25705		return nil, &googleapi.Error{
25706			Code:   res.StatusCode,
25707			Header: res.Header,
25708		}
25709	}
25710	if err != nil {
25711		return nil, err
25712	}
25713	defer googleapi.CloseBody(res)
25714	if err := googleapi.CheckResponse(res); err != nil {
25715		return nil, err
25716	}
25717	ret := &GoogleCloudApigeeV1AsyncQueryResultView{
25718		ServerResponse: googleapi.ServerResponse{
25719			Header:         res.Header,
25720			HTTPStatusCode: res.StatusCode,
25721		},
25722	}
25723	target := &ret
25724	if err := gensupport.DecodeResponse(target, res); err != nil {
25725		return nil, err
25726	}
25727	return ret, nil
25728	// {
25729	//   "description": "",
25730	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/resultView",
25731	//   "httpMethod": "GET",
25732	//   "id": "apigee.organizations.environments.queries.getResultView",
25733	//   "parameterOrder": [
25734	//     "name"
25735	//   ],
25736	//   "parameters": {
25737	//     "name": {
25738	//       "description": "Required. Name of the asynchronous query result view to get. Must be of the\nform `organizations/{org}/environments/{env}/queries/{queryId}/resultView`.",
25739	//       "location": "path",
25740	//       "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/resultView$",
25741	//       "required": true,
25742	//       "type": "string"
25743	//     }
25744	//   },
25745	//   "path": "v1/{+name}",
25746	//   "response": {
25747	//     "$ref": "GoogleCloudApigeeV1AsyncQueryResultView"
25748	//   },
25749	//   "scopes": [
25750	//     "https://www.googleapis.com/auth/cloud-platform"
25751	//   ]
25752	// }
25753
25754}
25755
25756// method id "apigee.organizations.environments.queries.list":
25757
25758type OrganizationsEnvironmentsQueriesListCall struct {
25759	s            *Service
25760	parent       string
25761	urlParams_   gensupport.URLParams
25762	ifNoneMatch_ string
25763	ctx_         context.Context
25764	header_      http.Header
25765}
25766
25767// List: Return a list of Asynchronous Queries
25768func (r *OrganizationsEnvironmentsQueriesService) List(parent string) *OrganizationsEnvironmentsQueriesListCall {
25769	c := &OrganizationsEnvironmentsQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25770	c.parent = parent
25771	return c
25772}
25773
25774// Dataset sets the optional parameter "dataset": Filter response list
25775// by dataset.
25776//
25777// Example: `api`, `mint`
25778func (c *OrganizationsEnvironmentsQueriesListCall) Dataset(dataset string) *OrganizationsEnvironmentsQueriesListCall {
25779	c.urlParams_.Set("dataset", dataset)
25780	return c
25781}
25782
25783// From sets the optional parameter "from": Filter response list by
25784// returning asynchronous queries that
25785// created after this date time.
25786// Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.
25787func (c *OrganizationsEnvironmentsQueriesListCall) From(from string) *OrganizationsEnvironmentsQueriesListCall {
25788	c.urlParams_.Set("from", from)
25789	return c
25790}
25791
25792// InclQueriesWithoutReport sets the optional parameter
25793// "inclQueriesWithoutReport": Flag to include asynchronous queries that
25794// don't have a report
25795// denifition.
25796func (c *OrganizationsEnvironmentsQueriesListCall) InclQueriesWithoutReport(inclQueriesWithoutReport string) *OrganizationsEnvironmentsQueriesListCall {
25797	c.urlParams_.Set("inclQueriesWithoutReport", inclQueriesWithoutReport)
25798	return c
25799}
25800
25801// Status sets the optional parameter "status": Filter response list by
25802// asynchronous query status
25803func (c *OrganizationsEnvironmentsQueriesListCall) Status(status string) *OrganizationsEnvironmentsQueriesListCall {
25804	c.urlParams_.Set("status", status)
25805	return c
25806}
25807
25808// SubmittedBy sets the optional parameter "submittedBy": Filter
25809// response list by user who submitted queries
25810func (c *OrganizationsEnvironmentsQueriesListCall) SubmittedBy(submittedBy string) *OrganizationsEnvironmentsQueriesListCall {
25811	c.urlParams_.Set("submittedBy", submittedBy)
25812	return c
25813}
25814
25815// To sets the optional parameter "to": Filter response list by
25816// returning asynchronous queries that
25817// created before this date time.
25818// Time must be in ISO date-time format like '2011-12-03T10:16:30Z'.
25819func (c *OrganizationsEnvironmentsQueriesListCall) To(to string) *OrganizationsEnvironmentsQueriesListCall {
25820	c.urlParams_.Set("to", to)
25821	return c
25822}
25823
25824// Fields allows partial responses to be retrieved. See
25825// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
25826// for more information.
25827func (c *OrganizationsEnvironmentsQueriesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesListCall {
25828	c.urlParams_.Set("fields", googleapi.CombineFields(s))
25829	return c
25830}
25831
25832// IfNoneMatch sets the optional parameter which makes the operation
25833// fail if the object's ETag matches the given value. This is useful for
25834// getting updates only after the object has changed since the last
25835// request. Use googleapi.IsNotModified to check whether the response
25836// error from Do is the result of In-None-Match.
25837func (c *OrganizationsEnvironmentsQueriesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesListCall {
25838	c.ifNoneMatch_ = entityTag
25839	return c
25840}
25841
25842// Context sets the context to be used in this call's Do method. Any
25843// pending HTTP request will be aborted if the provided context is
25844// canceled.
25845func (c *OrganizationsEnvironmentsQueriesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesListCall {
25846	c.ctx_ = ctx
25847	return c
25848}
25849
25850// Header returns an http.Header that can be modified by the caller to
25851// add HTTP headers to the request.
25852func (c *OrganizationsEnvironmentsQueriesListCall) Header() http.Header {
25853	if c.header_ == nil {
25854		c.header_ = make(http.Header)
25855	}
25856	return c.header_
25857}
25858
25859func (c *OrganizationsEnvironmentsQueriesListCall) doRequest(alt string) (*http.Response, error) {
25860	reqHeaders := make(http.Header)
25861	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
25862	for k, v := range c.header_ {
25863		reqHeaders[k] = v
25864	}
25865	reqHeaders.Set("User-Agent", c.s.userAgent())
25866	if c.ifNoneMatch_ != "" {
25867		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25868	}
25869	var body io.Reader = nil
25870	c.urlParams_.Set("alt", alt)
25871	c.urlParams_.Set("prettyPrint", "false")
25872	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/queries")
25873	urls += "?" + c.urlParams_.Encode()
25874	req, err := http.NewRequest("GET", urls, body)
25875	if err != nil {
25876		return nil, err
25877	}
25878	req.Header = reqHeaders
25879	googleapi.Expand(req.URL, map[string]string{
25880		"parent": c.parent,
25881	})
25882	return gensupport.SendRequest(c.ctx_, c.s.client, req)
25883}
25884
25885// Do executes the "apigee.organizations.environments.queries.list" call.
25886// Exactly one of *GoogleCloudApigeeV1ListAsyncQueriesResponse or error
25887// will be non-nil. Any non-2xx status code is an error. Response
25888// headers are in either
25889// *GoogleCloudApigeeV1ListAsyncQueriesResponse.ServerResponse.Header or
25890// (if a response was returned at all) in
25891// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
25892// whether the returned error was because http.StatusNotModified was
25893// returned.
25894func (c *OrganizationsEnvironmentsQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListAsyncQueriesResponse, error) {
25895	gensupport.SetOptions(c.urlParams_, opts...)
25896	res, err := c.doRequest("json")
25897	if res != nil && res.StatusCode == http.StatusNotModified {
25898		if res.Body != nil {
25899			res.Body.Close()
25900		}
25901		return nil, &googleapi.Error{
25902			Code:   res.StatusCode,
25903			Header: res.Header,
25904		}
25905	}
25906	if err != nil {
25907		return nil, err
25908	}
25909	defer googleapi.CloseBody(res)
25910	if err := googleapi.CheckResponse(res); err != nil {
25911		return nil, err
25912	}
25913	ret := &GoogleCloudApigeeV1ListAsyncQueriesResponse{
25914		ServerResponse: googleapi.ServerResponse{
25915			Header:         res.Header,
25916			HTTPStatusCode: res.StatusCode,
25917		},
25918	}
25919	target := &ret
25920	if err := gensupport.DecodeResponse(target, res); err != nil {
25921		return nil, err
25922	}
25923	return ret, nil
25924	// {
25925	//   "description": "Return a list of Asynchronous Queries",
25926	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries",
25927	//   "httpMethod": "GET",
25928	//   "id": "apigee.organizations.environments.queries.list",
25929	//   "parameterOrder": [
25930	//     "parent"
25931	//   ],
25932	//   "parameters": {
25933	//     "dataset": {
25934	//       "description": "Filter response list by dataset.\n\nExample: `api`, `mint`",
25935	//       "location": "query",
25936	//       "type": "string"
25937	//     },
25938	//     "from": {
25939	//       "description": "Filter response list by returning asynchronous queries that\ncreated after this date time.\nTime must be in ISO date-time format like '2011-12-03T10:15:30Z'.",
25940	//       "location": "query",
25941	//       "type": "string"
25942	//     },
25943	//     "inclQueriesWithoutReport": {
25944	//       "description": "Flag to include asynchronous queries that don't have a report\ndenifition.",
25945	//       "location": "query",
25946	//       "type": "string"
25947	//     },
25948	//     "parent": {
25949	//       "description": "Required. The parent organization and environment names.\nMust be of the form `organizations/{org}/environments/{env}`.",
25950	//       "location": "path",
25951	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
25952	//       "required": true,
25953	//       "type": "string"
25954	//     },
25955	//     "status": {
25956	//       "description": "Filter response list by asynchronous query status",
25957	//       "location": "query",
25958	//       "type": "string"
25959	//     },
25960	//     "submittedBy": {
25961	//       "description": "Filter response list by user who submitted queries",
25962	//       "location": "query",
25963	//       "type": "string"
25964	//     },
25965	//     "to": {
25966	//       "description": "Filter response list by returning asynchronous queries that\ncreated before this date time.\nTime must be in ISO date-time format like '2011-12-03T10:16:30Z'.",
25967	//       "location": "query",
25968	//       "type": "string"
25969	//     }
25970	//   },
25971	//   "path": "v1/{+parent}/queries",
25972	//   "response": {
25973	//     "$ref": "GoogleCloudApigeeV1ListAsyncQueriesResponse"
25974	//   },
25975	//   "scopes": [
25976	//     "https://www.googleapis.com/auth/cloud-platform"
25977	//   ]
25978	// }
25979
25980}
25981
25982// method id "apigee.organizations.environments.references.create":
25983
25984type OrganizationsEnvironmentsReferencesCreateCall struct {
25985	s                            *Service
25986	parent                       string
25987	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
25988	urlParams_                   gensupport.URLParams
25989	ctx_                         context.Context
25990	header_                      http.Header
25991}
25992
25993// Create: Creates a Reference in the specified environment.
25994func (r *OrganizationsEnvironmentsReferencesService) Create(parent string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesCreateCall {
25995	c := &OrganizationsEnvironmentsReferencesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25996	c.parent = parent
25997	c.googlecloudapigeev1reference = googlecloudapigeev1reference
25998	return c
25999}
26000
26001// Fields allows partial responses to be retrieved. See
26002// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26003// for more information.
26004func (c *OrganizationsEnvironmentsReferencesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesCreateCall {
26005	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26006	return c
26007}
26008
26009// Context sets the context to be used in this call's Do method. Any
26010// pending HTTP request will be aborted if the provided context is
26011// canceled.
26012func (c *OrganizationsEnvironmentsReferencesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesCreateCall {
26013	c.ctx_ = ctx
26014	return c
26015}
26016
26017// Header returns an http.Header that can be modified by the caller to
26018// add HTTP headers to the request.
26019func (c *OrganizationsEnvironmentsReferencesCreateCall) Header() http.Header {
26020	if c.header_ == nil {
26021		c.header_ = make(http.Header)
26022	}
26023	return c.header_
26024}
26025
26026func (c *OrganizationsEnvironmentsReferencesCreateCall) doRequest(alt string) (*http.Response, error) {
26027	reqHeaders := make(http.Header)
26028	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26029	for k, v := range c.header_ {
26030		reqHeaders[k] = v
26031	}
26032	reqHeaders.Set("User-Agent", c.s.userAgent())
26033	var body io.Reader = nil
26034	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
26035	if err != nil {
26036		return nil, err
26037	}
26038	reqHeaders.Set("Content-Type", "application/json")
26039	c.urlParams_.Set("alt", alt)
26040	c.urlParams_.Set("prettyPrint", "false")
26041	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
26042	urls += "?" + c.urlParams_.Encode()
26043	req, err := http.NewRequest("POST", urls, body)
26044	if err != nil {
26045		return nil, err
26046	}
26047	req.Header = reqHeaders
26048	googleapi.Expand(req.URL, map[string]string{
26049		"parent": c.parent,
26050	})
26051	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26052}
26053
26054// Do executes the "apigee.organizations.environments.references.create" call.
26055// Exactly one of *GoogleCloudApigeeV1Reference or error will be
26056// non-nil. Any non-2xx status code is an error. Response headers are in
26057// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
26058// response was returned at all) in error.(*googleapi.Error).Header. Use
26059// googleapi.IsNotModified to check whether the returned error was
26060// because http.StatusNotModified was returned.
26061func (c *OrganizationsEnvironmentsReferencesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
26062	gensupport.SetOptions(c.urlParams_, opts...)
26063	res, err := c.doRequest("json")
26064	if res != nil && res.StatusCode == http.StatusNotModified {
26065		if res.Body != nil {
26066			res.Body.Close()
26067		}
26068		return nil, &googleapi.Error{
26069			Code:   res.StatusCode,
26070			Header: res.Header,
26071		}
26072	}
26073	if err != nil {
26074		return nil, err
26075	}
26076	defer googleapi.CloseBody(res)
26077	if err := googleapi.CheckResponse(res); err != nil {
26078		return nil, err
26079	}
26080	ret := &GoogleCloudApigeeV1Reference{
26081		ServerResponse: googleapi.ServerResponse{
26082			Header:         res.Header,
26083			HTTPStatusCode: res.StatusCode,
26084		},
26085	}
26086	target := &ret
26087	if err := gensupport.DecodeResponse(target, res); err != nil {
26088		return nil, err
26089	}
26090	return ret, nil
26091	// {
26092	//   "description": "Creates a Reference in the specified environment.",
26093	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
26094	//   "httpMethod": "POST",
26095	//   "id": "apigee.organizations.environments.references.create",
26096	//   "parameterOrder": [
26097	//     "parent"
26098	//   ],
26099	//   "parameters": {
26100	//     "parent": {
26101	//       "description": "Required. The parent environment name under which the Reference will\nbe created. Must be of the form `organizations/{org}/environments/{env}`.",
26102	//       "location": "path",
26103	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26104	//       "required": true,
26105	//       "type": "string"
26106	//     }
26107	//   },
26108	//   "path": "v1/{+parent}/references",
26109	//   "request": {
26110	//     "$ref": "GoogleCloudApigeeV1Reference"
26111	//   },
26112	//   "response": {
26113	//     "$ref": "GoogleCloudApigeeV1Reference"
26114	//   },
26115	//   "scopes": [
26116	//     "https://www.googleapis.com/auth/cloud-platform"
26117	//   ]
26118	// }
26119
26120}
26121
26122// method id "apigee.organizations.environments.references.delete":
26123
26124type OrganizationsEnvironmentsReferencesDeleteCall struct {
26125	s          *Service
26126	name       string
26127	urlParams_ gensupport.URLParams
26128	ctx_       context.Context
26129	header_    http.Header
26130}
26131
26132// Delete: Deletes a Reference from an environment. Returns the
26133// deleted
26134// Reference resource.
26135func (r *OrganizationsEnvironmentsReferencesService) Delete(name string) *OrganizationsEnvironmentsReferencesDeleteCall {
26136	c := &OrganizationsEnvironmentsReferencesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26137	c.name = name
26138	return c
26139}
26140
26141// Fields allows partial responses to be retrieved. See
26142// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26143// for more information.
26144func (c *OrganizationsEnvironmentsReferencesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesDeleteCall {
26145	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26146	return c
26147}
26148
26149// Context sets the context to be used in this call's Do method. Any
26150// pending HTTP request will be aborted if the provided context is
26151// canceled.
26152func (c *OrganizationsEnvironmentsReferencesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesDeleteCall {
26153	c.ctx_ = ctx
26154	return c
26155}
26156
26157// Header returns an http.Header that can be modified by the caller to
26158// add HTTP headers to the request.
26159func (c *OrganizationsEnvironmentsReferencesDeleteCall) Header() http.Header {
26160	if c.header_ == nil {
26161		c.header_ = make(http.Header)
26162	}
26163	return c.header_
26164}
26165
26166func (c *OrganizationsEnvironmentsReferencesDeleteCall) doRequest(alt string) (*http.Response, error) {
26167	reqHeaders := make(http.Header)
26168	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26169	for k, v := range c.header_ {
26170		reqHeaders[k] = v
26171	}
26172	reqHeaders.Set("User-Agent", c.s.userAgent())
26173	var body io.Reader = nil
26174	c.urlParams_.Set("alt", alt)
26175	c.urlParams_.Set("prettyPrint", "false")
26176	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26177	urls += "?" + c.urlParams_.Encode()
26178	req, err := http.NewRequest("DELETE", urls, body)
26179	if err != nil {
26180		return nil, err
26181	}
26182	req.Header = reqHeaders
26183	googleapi.Expand(req.URL, map[string]string{
26184		"name": c.name,
26185	})
26186	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26187}
26188
26189// Do executes the "apigee.organizations.environments.references.delete" call.
26190// Exactly one of *GoogleCloudApigeeV1Reference or error will be
26191// non-nil. Any non-2xx status code is an error. Response headers are in
26192// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
26193// response was returned at all) in error.(*googleapi.Error).Header. Use
26194// googleapi.IsNotModified to check whether the returned error was
26195// because http.StatusNotModified was returned.
26196func (c *OrganizationsEnvironmentsReferencesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
26197	gensupport.SetOptions(c.urlParams_, opts...)
26198	res, err := c.doRequest("json")
26199	if res != nil && res.StatusCode == http.StatusNotModified {
26200		if res.Body != nil {
26201			res.Body.Close()
26202		}
26203		return nil, &googleapi.Error{
26204			Code:   res.StatusCode,
26205			Header: res.Header,
26206		}
26207	}
26208	if err != nil {
26209		return nil, err
26210	}
26211	defer googleapi.CloseBody(res)
26212	if err := googleapi.CheckResponse(res); err != nil {
26213		return nil, err
26214	}
26215	ret := &GoogleCloudApigeeV1Reference{
26216		ServerResponse: googleapi.ServerResponse{
26217			Header:         res.Header,
26218			HTTPStatusCode: res.StatusCode,
26219		},
26220	}
26221	target := &ret
26222	if err := gensupport.DecodeResponse(target, res); err != nil {
26223		return nil, err
26224	}
26225	return ret, nil
26226	// {
26227	//   "description": "Deletes a Reference from an environment. Returns the deleted\nReference resource.",
26228	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
26229	//   "httpMethod": "DELETE",
26230	//   "id": "apigee.organizations.environments.references.delete",
26231	//   "parameterOrder": [
26232	//     "name"
26233	//   ],
26234	//   "parameters": {
26235	//     "name": {
26236	//       "description": "Required. The name of the Reference to delete. Must be\nof the form `organizations/{org}/environments/{env}/references/{ref}`.",
26237	//       "location": "path",
26238	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
26239	//       "required": true,
26240	//       "type": "string"
26241	//     }
26242	//   },
26243	//   "path": "v1/{+name}",
26244	//   "response": {
26245	//     "$ref": "GoogleCloudApigeeV1Reference"
26246	//   },
26247	//   "scopes": [
26248	//     "https://www.googleapis.com/auth/cloud-platform"
26249	//   ]
26250	// }
26251
26252}
26253
26254// method id "apigee.organizations.environments.references.get":
26255
26256type OrganizationsEnvironmentsReferencesGetCall struct {
26257	s            *Service
26258	name         string
26259	urlParams_   gensupport.URLParams
26260	ifNoneMatch_ string
26261	ctx_         context.Context
26262	header_      http.Header
26263}
26264
26265// Get: Gets a Reference resource.
26266func (r *OrganizationsEnvironmentsReferencesService) Get(name string) *OrganizationsEnvironmentsReferencesGetCall {
26267	c := &OrganizationsEnvironmentsReferencesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26268	c.name = name
26269	return c
26270}
26271
26272// Fields allows partial responses to be retrieved. See
26273// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26274// for more information.
26275func (c *OrganizationsEnvironmentsReferencesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesGetCall {
26276	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26277	return c
26278}
26279
26280// IfNoneMatch sets the optional parameter which makes the operation
26281// fail if the object's ETag matches the given value. This is useful for
26282// getting updates only after the object has changed since the last
26283// request. Use googleapi.IsNotModified to check whether the response
26284// error from Do is the result of In-None-Match.
26285func (c *OrganizationsEnvironmentsReferencesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesGetCall {
26286	c.ifNoneMatch_ = entityTag
26287	return c
26288}
26289
26290// Context sets the context to be used in this call's Do method. Any
26291// pending HTTP request will be aborted if the provided context is
26292// canceled.
26293func (c *OrganizationsEnvironmentsReferencesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesGetCall {
26294	c.ctx_ = ctx
26295	return c
26296}
26297
26298// Header returns an http.Header that can be modified by the caller to
26299// add HTTP headers to the request.
26300func (c *OrganizationsEnvironmentsReferencesGetCall) Header() http.Header {
26301	if c.header_ == nil {
26302		c.header_ = make(http.Header)
26303	}
26304	return c.header_
26305}
26306
26307func (c *OrganizationsEnvironmentsReferencesGetCall) doRequest(alt string) (*http.Response, error) {
26308	reqHeaders := make(http.Header)
26309	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26310	for k, v := range c.header_ {
26311		reqHeaders[k] = v
26312	}
26313	reqHeaders.Set("User-Agent", c.s.userAgent())
26314	if c.ifNoneMatch_ != "" {
26315		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26316	}
26317	var body io.Reader = nil
26318	c.urlParams_.Set("alt", alt)
26319	c.urlParams_.Set("prettyPrint", "false")
26320	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26321	urls += "?" + c.urlParams_.Encode()
26322	req, err := http.NewRequest("GET", urls, body)
26323	if err != nil {
26324		return nil, err
26325	}
26326	req.Header = reqHeaders
26327	googleapi.Expand(req.URL, map[string]string{
26328		"name": c.name,
26329	})
26330	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26331}
26332
26333// Do executes the "apigee.organizations.environments.references.get" call.
26334// Exactly one of *GoogleCloudApigeeV1Reference or error will be
26335// non-nil. Any non-2xx status code is an error. Response headers are in
26336// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
26337// response was returned at all) in error.(*googleapi.Error).Header. Use
26338// googleapi.IsNotModified to check whether the returned error was
26339// because http.StatusNotModified was returned.
26340func (c *OrganizationsEnvironmentsReferencesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
26341	gensupport.SetOptions(c.urlParams_, opts...)
26342	res, err := c.doRequest("json")
26343	if res != nil && res.StatusCode == http.StatusNotModified {
26344		if res.Body != nil {
26345			res.Body.Close()
26346		}
26347		return nil, &googleapi.Error{
26348			Code:   res.StatusCode,
26349			Header: res.Header,
26350		}
26351	}
26352	if err != nil {
26353		return nil, err
26354	}
26355	defer googleapi.CloseBody(res)
26356	if err := googleapi.CheckResponse(res); err != nil {
26357		return nil, err
26358	}
26359	ret := &GoogleCloudApigeeV1Reference{
26360		ServerResponse: googleapi.ServerResponse{
26361			Header:         res.Header,
26362			HTTPStatusCode: res.StatusCode,
26363		},
26364	}
26365	target := &ret
26366	if err := gensupport.DecodeResponse(target, res); err != nil {
26367		return nil, err
26368	}
26369	return ret, nil
26370	// {
26371	//   "description": "Gets a Reference resource.",
26372	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
26373	//   "httpMethod": "GET",
26374	//   "id": "apigee.organizations.environments.references.get",
26375	//   "parameterOrder": [
26376	//     "name"
26377	//   ],
26378	//   "parameters": {
26379	//     "name": {
26380	//       "description": "Required. The name of the Reference to get. Must be of the form\n`organizations/{org}/environments/{env}/references/{ref}`.",
26381	//       "location": "path",
26382	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
26383	//       "required": true,
26384	//       "type": "string"
26385	//     }
26386	//   },
26387	//   "path": "v1/{+name}",
26388	//   "response": {
26389	//     "$ref": "GoogleCloudApigeeV1Reference"
26390	//   },
26391	//   "scopes": [
26392	//     "https://www.googleapis.com/auth/cloud-platform"
26393	//   ]
26394	// }
26395
26396}
26397
26398// method id "apigee.organizations.environments.references.list":
26399
26400type OrganizationsEnvironmentsReferencesListCall struct {
26401	s            *Service
26402	parent       string
26403	urlParams_   gensupport.URLParams
26404	ifNoneMatch_ string
26405	ctx_         context.Context
26406	header_      http.Header
26407}
26408
26409// List: Lists all References in an environment as a JSON array.
26410func (r *OrganizationsEnvironmentsReferencesService) List(parent string) *OrganizationsEnvironmentsReferencesListCall {
26411	c := &OrganizationsEnvironmentsReferencesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26412	c.parent = parent
26413	return c
26414}
26415
26416// Fields allows partial responses to be retrieved. See
26417// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26418// for more information.
26419func (c *OrganizationsEnvironmentsReferencesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesListCall {
26420	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26421	return c
26422}
26423
26424// IfNoneMatch sets the optional parameter which makes the operation
26425// fail if the object's ETag matches the given value. This is useful for
26426// getting updates only after the object has changed since the last
26427// request. Use googleapi.IsNotModified to check whether the response
26428// error from Do is the result of In-None-Match.
26429func (c *OrganizationsEnvironmentsReferencesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsReferencesListCall {
26430	c.ifNoneMatch_ = entityTag
26431	return c
26432}
26433
26434// Context sets the context to be used in this call's Do method. Any
26435// pending HTTP request will be aborted if the provided context is
26436// canceled.
26437func (c *OrganizationsEnvironmentsReferencesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesListCall {
26438	c.ctx_ = ctx
26439	return c
26440}
26441
26442// Header returns an http.Header that can be modified by the caller to
26443// add HTTP headers to the request.
26444func (c *OrganizationsEnvironmentsReferencesListCall) Header() http.Header {
26445	if c.header_ == nil {
26446		c.header_ = make(http.Header)
26447	}
26448	return c.header_
26449}
26450
26451func (c *OrganizationsEnvironmentsReferencesListCall) doRequest(alt string) (*http.Response, error) {
26452	reqHeaders := make(http.Header)
26453	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26454	for k, v := range c.header_ {
26455		reqHeaders[k] = v
26456	}
26457	reqHeaders.Set("User-Agent", c.s.userAgent())
26458	if c.ifNoneMatch_ != "" {
26459		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26460	}
26461	var body io.Reader = nil
26462	c.urlParams_.Set("alt", alt)
26463	c.urlParams_.Set("prettyPrint", "false")
26464	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/references")
26465	urls += "?" + c.urlParams_.Encode()
26466	req, err := http.NewRequest("GET", urls, body)
26467	if err != nil {
26468		return nil, err
26469	}
26470	req.Header = reqHeaders
26471	googleapi.Expand(req.URL, map[string]string{
26472		"parent": c.parent,
26473	})
26474	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26475}
26476
26477// Do executes the "apigee.organizations.environments.references.list" call.
26478func (c *OrganizationsEnvironmentsReferencesListCall) Do(opts ...googleapi.CallOption) error {
26479	gensupport.SetOptions(c.urlParams_, opts...)
26480	res, err := c.doRequest("json")
26481	if err != nil {
26482		return err
26483	}
26484	defer googleapi.CloseBody(res)
26485	if err := googleapi.CheckResponse(res); err != nil {
26486		return err
26487	}
26488	return nil
26489	// {
26490	//   "description": "Lists all References in an environment as a JSON array.",
26491	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references",
26492	//   "httpMethod": "GET",
26493	//   "id": "apigee.organizations.environments.references.list",
26494	//   "parameterOrder": [
26495	//     "parent"
26496	//   ],
26497	//   "parameters": {
26498	//     "parent": {
26499	//       "description": "Required. The parent environment name. Must be of the form\n`organizations/{org}/environments/{env}`.",
26500	//       "location": "path",
26501	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26502	//       "required": true,
26503	//       "type": "string"
26504	//     }
26505	//   },
26506	//   "path": "v1/{+parent}/references",
26507	//   "response": {
26508	//     "items": {
26509	//       "type": "any"
26510	//     },
26511	//     "type": "array"
26512	//   },
26513	//   "scopes": [
26514	//     "https://www.googleapis.com/auth/cloud-platform"
26515	//   ]
26516	// }
26517
26518}
26519
26520// method id "apigee.organizations.environments.references.update":
26521
26522type OrganizationsEnvironmentsReferencesUpdateCall struct {
26523	s                            *Service
26524	name                         string
26525	googlecloudapigeev1reference *GoogleCloudApigeeV1Reference
26526	urlParams_                   gensupport.URLParams
26527	ctx_                         context.Context
26528	header_                      http.Header
26529}
26530
26531// Update: Updates an existing Reference. Note that this operation has
26532// PUT
26533// semantics; it will replace the entirety of the existing Reference
26534// with
26535// the resource in the request body.
26536func (r *OrganizationsEnvironmentsReferencesService) Update(name string, googlecloudapigeev1reference *GoogleCloudApigeeV1Reference) *OrganizationsEnvironmentsReferencesUpdateCall {
26537	c := &OrganizationsEnvironmentsReferencesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26538	c.name = name
26539	c.googlecloudapigeev1reference = googlecloudapigeev1reference
26540	return c
26541}
26542
26543// Fields allows partial responses to be retrieved. See
26544// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26545// for more information.
26546func (c *OrganizationsEnvironmentsReferencesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsReferencesUpdateCall {
26547	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26548	return c
26549}
26550
26551// Context sets the context to be used in this call's Do method. Any
26552// pending HTTP request will be aborted if the provided context is
26553// canceled.
26554func (c *OrganizationsEnvironmentsReferencesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsReferencesUpdateCall {
26555	c.ctx_ = ctx
26556	return c
26557}
26558
26559// Header returns an http.Header that can be modified by the caller to
26560// add HTTP headers to the request.
26561func (c *OrganizationsEnvironmentsReferencesUpdateCall) Header() http.Header {
26562	if c.header_ == nil {
26563		c.header_ = make(http.Header)
26564	}
26565	return c.header_
26566}
26567
26568func (c *OrganizationsEnvironmentsReferencesUpdateCall) doRequest(alt string) (*http.Response, error) {
26569	reqHeaders := make(http.Header)
26570	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26571	for k, v := range c.header_ {
26572		reqHeaders[k] = v
26573	}
26574	reqHeaders.Set("User-Agent", c.s.userAgent())
26575	var body io.Reader = nil
26576	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1reference)
26577	if err != nil {
26578		return nil, err
26579	}
26580	reqHeaders.Set("Content-Type", "application/json")
26581	c.urlParams_.Set("alt", alt)
26582	c.urlParams_.Set("prettyPrint", "false")
26583	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
26584	urls += "?" + c.urlParams_.Encode()
26585	req, err := http.NewRequest("PUT", urls, body)
26586	if err != nil {
26587		return nil, err
26588	}
26589	req.Header = reqHeaders
26590	googleapi.Expand(req.URL, map[string]string{
26591		"name": c.name,
26592	})
26593	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26594}
26595
26596// Do executes the "apigee.organizations.environments.references.update" call.
26597// Exactly one of *GoogleCloudApigeeV1Reference or error will be
26598// non-nil. Any non-2xx status code is an error. Response headers are in
26599// either *GoogleCloudApigeeV1Reference.ServerResponse.Header or (if a
26600// response was returned at all) in error.(*googleapi.Error).Header. Use
26601// googleapi.IsNotModified to check whether the returned error was
26602// because http.StatusNotModified was returned.
26603func (c *OrganizationsEnvironmentsReferencesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Reference, error) {
26604	gensupport.SetOptions(c.urlParams_, opts...)
26605	res, err := c.doRequest("json")
26606	if res != nil && res.StatusCode == http.StatusNotModified {
26607		if res.Body != nil {
26608			res.Body.Close()
26609		}
26610		return nil, &googleapi.Error{
26611			Code:   res.StatusCode,
26612			Header: res.Header,
26613		}
26614	}
26615	if err != nil {
26616		return nil, err
26617	}
26618	defer googleapi.CloseBody(res)
26619	if err := googleapi.CheckResponse(res); err != nil {
26620		return nil, err
26621	}
26622	ret := &GoogleCloudApigeeV1Reference{
26623		ServerResponse: googleapi.ServerResponse{
26624			Header:         res.Header,
26625			HTTPStatusCode: res.StatusCode,
26626		},
26627	}
26628	target := &ret
26629	if err := gensupport.DecodeResponse(target, res); err != nil {
26630		return nil, err
26631	}
26632	return ret, nil
26633	// {
26634	//   "description": "Updates an existing Reference. Note that this operation has PUT\nsemantics; it will replace the entirety of the existing Reference with\nthe resource in the request body.",
26635	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/references/{referencesId}",
26636	//   "httpMethod": "PUT",
26637	//   "id": "apigee.organizations.environments.references.update",
26638	//   "parameterOrder": [
26639	//     "name"
26640	//   ],
26641	//   "parameters": {
26642	//     "name": {
26643	//       "description": "Required. The name of the Reference to update. Must be of the form\n`organizations/{org}/environments/{env}/references/{ref}`.",
26644	//       "location": "path",
26645	//       "pattern": "^organizations/[^/]+/environments/[^/]+/references/[^/]+$",
26646	//       "required": true,
26647	//       "type": "string"
26648	//     }
26649	//   },
26650	//   "path": "v1/{+name}",
26651	//   "request": {
26652	//     "$ref": "GoogleCloudApigeeV1Reference"
26653	//   },
26654	//   "response": {
26655	//     "$ref": "GoogleCloudApigeeV1Reference"
26656	//   },
26657	//   "scopes": [
26658	//     "https://www.googleapis.com/auth/cloud-platform"
26659	//   ]
26660	// }
26661
26662}
26663
26664// method id "apigee.organizations.environments.resourcefiles.create":
26665
26666type OrganizationsEnvironmentsResourcefilesCreateCall struct {
26667	s                 *Service
26668	parent            string
26669	googleapihttpbody *GoogleApiHttpBody
26670	urlParams_        gensupport.URLParams
26671	ctx_              context.Context
26672	header_           http.Header
26673}
26674
26675// Create: Creates a resource file in an environment.
26676// `Content-Type` must be either `multipart/form-data` with the resource
26677// file
26678// provided in the only field, or 'application/octet-stream'.
26679func (r *OrganizationsEnvironmentsResourcefilesService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesCreateCall {
26680	c := &OrganizationsEnvironmentsResourcefilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26681	c.parent = parent
26682	c.googleapihttpbody = googleapihttpbody
26683	return c
26684}
26685
26686// Name sets the optional parameter "name": Required. The id of the
26687// resource file.  Must match the regular
26688// expression
26689// [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255}
26690func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Name(name string) *OrganizationsEnvironmentsResourcefilesCreateCall {
26691	c.urlParams_.Set("name", name)
26692	return c
26693}
26694
26695// Type sets the optional parameter "type": Required. The resource file
26696// type, must be `js`, `jsc`, `java`,
26697// `properties`, `py`, `xsl`, `wsdl`, or `xsd`.
26698func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesCreateCall {
26699	c.urlParams_.Set("type", type_)
26700	return c
26701}
26702
26703// Fields allows partial responses to be retrieved. See
26704// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26705// for more information.
26706func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesCreateCall {
26707	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26708	return c
26709}
26710
26711// Context sets the context to be used in this call's Do method. Any
26712// pending HTTP request will be aborted if the provided context is
26713// canceled.
26714func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesCreateCall {
26715	c.ctx_ = ctx
26716	return c
26717}
26718
26719// Header returns an http.Header that can be modified by the caller to
26720// add HTTP headers to the request.
26721func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Header() http.Header {
26722	if c.header_ == nil {
26723		c.header_ = make(http.Header)
26724	}
26725	return c.header_
26726}
26727
26728func (c *OrganizationsEnvironmentsResourcefilesCreateCall) doRequest(alt string) (*http.Response, error) {
26729	reqHeaders := make(http.Header)
26730	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26731	for k, v := range c.header_ {
26732		reqHeaders[k] = v
26733	}
26734	reqHeaders.Set("User-Agent", c.s.userAgent())
26735	var body io.Reader = nil
26736	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
26737	if err != nil {
26738		return nil, err
26739	}
26740	reqHeaders.Set("Content-Type", "application/json")
26741	c.urlParams_.Set("alt", alt)
26742	c.urlParams_.Set("prettyPrint", "false")
26743	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
26744	urls += "?" + c.urlParams_.Encode()
26745	req, err := http.NewRequest("POST", urls, body)
26746	if err != nil {
26747		return nil, err
26748	}
26749	req.Header = reqHeaders
26750	googleapi.Expand(req.URL, map[string]string{
26751		"parent": c.parent,
26752	})
26753	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26754}
26755
26756// Do executes the "apigee.organizations.environments.resourcefiles.create" call.
26757// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
26758// non-nil. Any non-2xx status code is an error. Response headers are in
26759// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
26760// a response was returned at all) in error.(*googleapi.Error).Header.
26761// Use googleapi.IsNotModified to check whether the returned error was
26762// because http.StatusNotModified was returned.
26763func (c *OrganizationsEnvironmentsResourcefilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
26764	gensupport.SetOptions(c.urlParams_, opts...)
26765	res, err := c.doRequest("json")
26766	if res != nil && res.StatusCode == http.StatusNotModified {
26767		if res.Body != nil {
26768			res.Body.Close()
26769		}
26770		return nil, &googleapi.Error{
26771			Code:   res.StatusCode,
26772			Header: res.Header,
26773		}
26774	}
26775	if err != nil {
26776		return nil, err
26777	}
26778	defer googleapi.CloseBody(res)
26779	if err := googleapi.CheckResponse(res); err != nil {
26780		return nil, err
26781	}
26782	ret := &GoogleCloudApigeeV1ResourceFile{
26783		ServerResponse: googleapi.ServerResponse{
26784			Header:         res.Header,
26785			HTTPStatusCode: res.StatusCode,
26786		},
26787	}
26788	target := &ret
26789	if err := gensupport.DecodeResponse(target, res); err != nil {
26790		return nil, err
26791	}
26792	return ret, nil
26793	// {
26794	//   "description": "Creates a resource file in an environment.\n`Content-Type` must be either `multipart/form-data` with the resource file\nprovided in the only field, or 'application/octet-stream'.",
26795	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
26796	//   "httpMethod": "POST",
26797	//   "id": "apigee.organizations.environments.resourcefiles.create",
26798	//   "parameterOrder": [
26799	//     "parent"
26800	//   ],
26801	//   "parameters": {
26802	//     "name": {
26803	//       "description": "Required. The id of the resource file.  Must match the regular expression\n[a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
26804	//       "location": "query",
26805	//       "type": "string"
26806	//     },
26807	//     "parent": {
26808	//       "description": "Required. The name of the environment in which to create the resource file.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
26809	//       "location": "path",
26810	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26811	//       "required": true,
26812	//       "type": "string"
26813	//     },
26814	//     "type": {
26815	//       "description": "Required. The resource file type, must be `js`, `jsc`, `java`,\n`properties`, `py`, `xsl`, `wsdl`, or `xsd`.",
26816	//       "location": "query",
26817	//       "type": "string"
26818	//     }
26819	//   },
26820	//   "path": "v1/{+parent}/resourcefiles",
26821	//   "request": {
26822	//     "$ref": "GoogleApiHttpBody"
26823	//   },
26824	//   "response": {
26825	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
26826	//   },
26827	//   "scopes": [
26828	//     "https://www.googleapis.com/auth/cloud-platform"
26829	//   ]
26830	// }
26831
26832}
26833
26834// method id "apigee.organizations.environments.resourcefiles.delete":
26835
26836type OrganizationsEnvironmentsResourcefilesDeleteCall struct {
26837	s              *Service
26838	parent         string
26839	type_          string
26840	resourceFileId string
26841	urlParams_     gensupport.URLParams
26842	ctx_           context.Context
26843	header_        http.Header
26844}
26845
26846// Delete: Deletes a resource file in an environment.
26847func (r *OrganizationsEnvironmentsResourcefilesService) Delete(parent string, type_ string, resourceFileId string) *OrganizationsEnvironmentsResourcefilesDeleteCall {
26848	c := &OrganizationsEnvironmentsResourcefilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26849	c.parent = parent
26850	c.type_ = type_
26851	c.resourceFileId = resourceFileId
26852	return c
26853}
26854
26855// Fields allows partial responses to be retrieved. See
26856// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
26857// for more information.
26858func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesDeleteCall {
26859	c.urlParams_.Set("fields", googleapi.CombineFields(s))
26860	return c
26861}
26862
26863// Context sets the context to be used in this call's Do method. Any
26864// pending HTTP request will be aborted if the provided context is
26865// canceled.
26866func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesDeleteCall {
26867	c.ctx_ = ctx
26868	return c
26869}
26870
26871// Header returns an http.Header that can be modified by the caller to
26872// add HTTP headers to the request.
26873func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Header() http.Header {
26874	if c.header_ == nil {
26875		c.header_ = make(http.Header)
26876	}
26877	return c.header_
26878}
26879
26880func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) doRequest(alt string) (*http.Response, error) {
26881	reqHeaders := make(http.Header)
26882	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
26883	for k, v := range c.header_ {
26884		reqHeaders[k] = v
26885	}
26886	reqHeaders.Set("User-Agent", c.s.userAgent())
26887	var body io.Reader = nil
26888	c.urlParams_.Set("alt", alt)
26889	c.urlParams_.Set("prettyPrint", "false")
26890	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{resourceFileId}")
26891	urls += "?" + c.urlParams_.Encode()
26892	req, err := http.NewRequest("DELETE", urls, body)
26893	if err != nil {
26894		return nil, err
26895	}
26896	req.Header = reqHeaders
26897	googleapi.Expand(req.URL, map[string]string{
26898		"parent":         c.parent,
26899		"type":           c.type_,
26900		"resourceFileId": c.resourceFileId,
26901	})
26902	return gensupport.SendRequest(c.ctx_, c.s.client, req)
26903}
26904
26905// Do executes the "apigee.organizations.environments.resourcefiles.delete" call.
26906// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
26907// non-nil. Any non-2xx status code is an error. Response headers are in
26908// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
26909// a response was returned at all) in error.(*googleapi.Error).Header.
26910// Use googleapi.IsNotModified to check whether the returned error was
26911// because http.StatusNotModified was returned.
26912func (c *OrganizationsEnvironmentsResourcefilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
26913	gensupport.SetOptions(c.urlParams_, opts...)
26914	res, err := c.doRequest("json")
26915	if res != nil && res.StatusCode == http.StatusNotModified {
26916		if res.Body != nil {
26917			res.Body.Close()
26918		}
26919		return nil, &googleapi.Error{
26920			Code:   res.StatusCode,
26921			Header: res.Header,
26922		}
26923	}
26924	if err != nil {
26925		return nil, err
26926	}
26927	defer googleapi.CloseBody(res)
26928	if err := googleapi.CheckResponse(res); err != nil {
26929		return nil, err
26930	}
26931	ret := &GoogleCloudApigeeV1ResourceFile{
26932		ServerResponse: googleapi.ServerResponse{
26933			Header:         res.Header,
26934			HTTPStatusCode: res.StatusCode,
26935		},
26936	}
26937	target := &ret
26938	if err := gensupport.DecodeResponse(target, res); err != nil {
26939		return nil, err
26940	}
26941	return ret, nil
26942	// {
26943	//   "description": "Deletes a resource file in an environment.",
26944	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{resourceFileId}",
26945	//   "httpMethod": "DELETE",
26946	//   "id": "apigee.organizations.environments.resourcefiles.delete",
26947	//   "parameterOrder": [
26948	//     "parent",
26949	//     "type",
26950	//     "resourceFileId"
26951	//   ],
26952	//   "parameters": {
26953	//     "parent": {
26954	//       "description": "Required. The name of the parent environment.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
26955	//       "location": "path",
26956	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
26957	//       "required": true,
26958	//       "type": "string"
26959	//     },
26960	//     "resourceFileId": {
26961	//       "description": "Required. The id of the resource file to delete. Must match the regular\nexpression [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
26962	//       "location": "path",
26963	//       "required": true,
26964	//       "type": "string"
26965	//     },
26966	//     "type": {
26967	//       "description": "Required. The resource file type, must be `js`, `jsc`, `java`,\n`properties`, `py`, `xsl`, `wsdl`, or `xsd`.",
26968	//       "location": "path",
26969	//       "required": true,
26970	//       "type": "string"
26971	//     }
26972	//   },
26973	//   "path": "v1/{+parent}/resourcefiles/{type}/{resourceFileId}",
26974	//   "response": {
26975	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
26976	//   },
26977	//   "scopes": [
26978	//     "https://www.googleapis.com/auth/cloud-platform"
26979	//   ]
26980	// }
26981
26982}
26983
26984// method id "apigee.organizations.environments.resourcefiles.get":
26985
26986type OrganizationsEnvironmentsResourcefilesGetCall struct {
26987	s              *Service
26988	parent         string
26989	type_          string
26990	resourceFileId string
26991	urlParams_     gensupport.URLParams
26992	ifNoneMatch_   string
26993	ctx_           context.Context
26994	header_        http.Header
26995}
26996
26997// Get: Gets a resource file in an environment.
26998func (r *OrganizationsEnvironmentsResourcefilesService) Get(parent string, type_ string, resourceFileId string) *OrganizationsEnvironmentsResourcefilesGetCall {
26999	c := &OrganizationsEnvironmentsResourcefilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27000	c.parent = parent
27001	c.type_ = type_
27002	c.resourceFileId = resourceFileId
27003	return c
27004}
27005
27006// Fields allows partial responses to be retrieved. See
27007// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27008// for more information.
27009func (c *OrganizationsEnvironmentsResourcefilesGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesGetCall {
27010	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27011	return c
27012}
27013
27014// IfNoneMatch sets the optional parameter which makes the operation
27015// fail if the object's ETag matches the given value. This is useful for
27016// getting updates only after the object has changed since the last
27017// request. Use googleapi.IsNotModified to check whether the response
27018// error from Do is the result of In-None-Match.
27019func (c *OrganizationsEnvironmentsResourcefilesGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesGetCall {
27020	c.ifNoneMatch_ = entityTag
27021	return c
27022}
27023
27024// Context sets the context to be used in this call's Do method. Any
27025// pending HTTP request will be aborted if the provided context is
27026// canceled.
27027func (c *OrganizationsEnvironmentsResourcefilesGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesGetCall {
27028	c.ctx_ = ctx
27029	return c
27030}
27031
27032// Header returns an http.Header that can be modified by the caller to
27033// add HTTP headers to the request.
27034func (c *OrganizationsEnvironmentsResourcefilesGetCall) Header() http.Header {
27035	if c.header_ == nil {
27036		c.header_ = make(http.Header)
27037	}
27038	return c.header_
27039}
27040
27041func (c *OrganizationsEnvironmentsResourcefilesGetCall) doRequest(alt string) (*http.Response, error) {
27042	reqHeaders := make(http.Header)
27043	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27044	for k, v := range c.header_ {
27045		reqHeaders[k] = v
27046	}
27047	reqHeaders.Set("User-Agent", c.s.userAgent())
27048	if c.ifNoneMatch_ != "" {
27049		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27050	}
27051	var body io.Reader = nil
27052	c.urlParams_.Set("alt", alt)
27053	c.urlParams_.Set("prettyPrint", "false")
27054	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{resourceFileId}")
27055	urls += "?" + c.urlParams_.Encode()
27056	req, err := http.NewRequest("GET", urls, body)
27057	if err != nil {
27058		return nil, err
27059	}
27060	req.Header = reqHeaders
27061	googleapi.Expand(req.URL, map[string]string{
27062		"parent":         c.parent,
27063		"type":           c.type_,
27064		"resourceFileId": c.resourceFileId,
27065	})
27066	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27067}
27068
27069// Do executes the "apigee.organizations.environments.resourcefiles.get" call.
27070// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
27071// non-2xx status code is an error. Response headers are in either
27072// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
27073// returned at all) in error.(*googleapi.Error).Header. Use
27074// googleapi.IsNotModified to check whether the returned error was
27075// because http.StatusNotModified was returned.
27076func (c *OrganizationsEnvironmentsResourcefilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
27077	gensupport.SetOptions(c.urlParams_, opts...)
27078	res, err := c.doRequest("json")
27079	if res != nil && res.StatusCode == http.StatusNotModified {
27080		if res.Body != nil {
27081			res.Body.Close()
27082		}
27083		return nil, &googleapi.Error{
27084			Code:   res.StatusCode,
27085			Header: res.Header,
27086		}
27087	}
27088	if err != nil {
27089		return nil, err
27090	}
27091	defer googleapi.CloseBody(res)
27092	if err := googleapi.CheckResponse(res); err != nil {
27093		return nil, err
27094	}
27095	ret := &GoogleApiHttpBody{
27096		ServerResponse: googleapi.ServerResponse{
27097			Header:         res.Header,
27098			HTTPStatusCode: res.StatusCode,
27099		},
27100	}
27101	target := &ret
27102	if err := gensupport.DecodeResponse(target, res); err != nil {
27103		return nil, err
27104	}
27105	return ret, nil
27106	// {
27107	//   "description": "Gets a resource file in an environment.",
27108	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{resourceFileId}",
27109	//   "httpMethod": "GET",
27110	//   "id": "apigee.organizations.environments.resourcefiles.get",
27111	//   "parameterOrder": [
27112	//     "parent",
27113	//     "type",
27114	//     "resourceFileId"
27115	//   ],
27116	//   "parameters": {
27117	//     "parent": {
27118	//       "description": "Required. The name of the parent environment.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
27119	//       "location": "path",
27120	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27121	//       "required": true,
27122	//       "type": "string"
27123	//     },
27124	//     "resourceFileId": {
27125	//       "description": "Required. The id of the resource file to get. Must match the regular\nexpression [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
27126	//       "location": "path",
27127	//       "required": true,
27128	//       "type": "string"
27129	//     },
27130	//     "type": {
27131	//       "description": "Required. The resource file type, must be `js`, `jsc`, `java`,\n`properties`, `py`, `xsl`, `wsdl`, or `xsd`.",
27132	//       "location": "path",
27133	//       "required": true,
27134	//       "type": "string"
27135	//     }
27136	//   },
27137	//   "path": "v1/{+parent}/resourcefiles/{type}/{resourceFileId}",
27138	//   "response": {
27139	//     "$ref": "GoogleApiHttpBody"
27140	//   },
27141	//   "scopes": [
27142	//     "https://www.googleapis.com/auth/cloud-platform"
27143	//   ]
27144	// }
27145
27146}
27147
27148// method id "apigee.organizations.environments.resourcefiles.list":
27149
27150type OrganizationsEnvironmentsResourcefilesListCall struct {
27151	s            *Service
27152	parent       string
27153	urlParams_   gensupport.URLParams
27154	ifNoneMatch_ string
27155	ctx_         context.Context
27156	header_      http.Header
27157}
27158
27159// List: Lists all resource files in an environment.
27160func (r *OrganizationsEnvironmentsResourcefilesService) List(parent string) *OrganizationsEnvironmentsResourcefilesListCall {
27161	c := &OrganizationsEnvironmentsResourcefilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27162	c.parent = parent
27163	return c
27164}
27165
27166// Type sets the optional parameter "type": Restricts the response to
27167// resources of the given type.
27168func (c *OrganizationsEnvironmentsResourcefilesListCall) Type(type_ string) *OrganizationsEnvironmentsResourcefilesListCall {
27169	c.urlParams_.Set("type", type_)
27170	return c
27171}
27172
27173// Fields allows partial responses to be retrieved. See
27174// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27175// for more information.
27176func (c *OrganizationsEnvironmentsResourcefilesListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListCall {
27177	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27178	return c
27179}
27180
27181// IfNoneMatch sets the optional parameter which makes the operation
27182// fail if the object's ETag matches the given value. This is useful for
27183// getting updates only after the object has changed since the last
27184// request. Use googleapi.IsNotModified to check whether the response
27185// error from Do is the result of In-None-Match.
27186func (c *OrganizationsEnvironmentsResourcefilesListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListCall {
27187	c.ifNoneMatch_ = entityTag
27188	return c
27189}
27190
27191// Context sets the context to be used in this call's Do method. Any
27192// pending HTTP request will be aborted if the provided context is
27193// canceled.
27194func (c *OrganizationsEnvironmentsResourcefilesListCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListCall {
27195	c.ctx_ = ctx
27196	return c
27197}
27198
27199// Header returns an http.Header that can be modified by the caller to
27200// add HTTP headers to the request.
27201func (c *OrganizationsEnvironmentsResourcefilesListCall) Header() http.Header {
27202	if c.header_ == nil {
27203		c.header_ = make(http.Header)
27204	}
27205	return c.header_
27206}
27207
27208func (c *OrganizationsEnvironmentsResourcefilesListCall) doRequest(alt string) (*http.Response, error) {
27209	reqHeaders := make(http.Header)
27210	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27211	for k, v := range c.header_ {
27212		reqHeaders[k] = v
27213	}
27214	reqHeaders.Set("User-Agent", c.s.userAgent())
27215	if c.ifNoneMatch_ != "" {
27216		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27217	}
27218	var body io.Reader = nil
27219	c.urlParams_.Set("alt", alt)
27220	c.urlParams_.Set("prettyPrint", "false")
27221	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles")
27222	urls += "?" + c.urlParams_.Encode()
27223	req, err := http.NewRequest("GET", urls, body)
27224	if err != nil {
27225		return nil, err
27226	}
27227	req.Header = reqHeaders
27228	googleapi.Expand(req.URL, map[string]string{
27229		"parent": c.parent,
27230	})
27231	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27232}
27233
27234// Do executes the "apigee.organizations.environments.resourcefiles.list" call.
27235// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
27236// or error will be non-nil. Any non-2xx status code is an error.
27237// Response headers are in either
27238// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
27239// ader or (if a response was returned at all) in
27240// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27241// whether the returned error was because http.StatusNotModified was
27242// returned.
27243func (c *OrganizationsEnvironmentsResourcefilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
27244	gensupport.SetOptions(c.urlParams_, opts...)
27245	res, err := c.doRequest("json")
27246	if res != nil && res.StatusCode == http.StatusNotModified {
27247		if res.Body != nil {
27248			res.Body.Close()
27249		}
27250		return nil, &googleapi.Error{
27251			Code:   res.StatusCode,
27252			Header: res.Header,
27253		}
27254	}
27255	if err != nil {
27256		return nil, err
27257	}
27258	defer googleapi.CloseBody(res)
27259	if err := googleapi.CheckResponse(res); err != nil {
27260		return nil, err
27261	}
27262	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
27263		ServerResponse: googleapi.ServerResponse{
27264			Header:         res.Header,
27265			HTTPStatusCode: res.StatusCode,
27266		},
27267	}
27268	target := &ret
27269	if err := gensupport.DecodeResponse(target, res); err != nil {
27270		return nil, err
27271	}
27272	return ret, nil
27273	// {
27274	//   "description": "Lists all resource files in an environment.",
27275	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles",
27276	//   "httpMethod": "GET",
27277	//   "id": "apigee.organizations.environments.resourcefiles.list",
27278	//   "parameterOrder": [
27279	//     "parent"
27280	//   ],
27281	//   "parameters": {
27282	//     "parent": {
27283	//       "description": "Required. The name of the environment in which to list resource files.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
27284	//       "location": "path",
27285	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27286	//       "required": true,
27287	//       "type": "string"
27288	//     },
27289	//     "type": {
27290	//       "description": "Optional. Restricts the response to resources of the given type.",
27291	//       "location": "query",
27292	//       "type": "string"
27293	//     }
27294	//   },
27295	//   "path": "v1/{+parent}/resourcefiles",
27296	//   "response": {
27297	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
27298	//   },
27299	//   "scopes": [
27300	//     "https://www.googleapis.com/auth/cloud-platform"
27301	//   ]
27302	// }
27303
27304}
27305
27306// method id "apigee.organizations.environments.resourcefiles.listEnvironmentResources":
27307
27308type OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall struct {
27309	s            *Service
27310	parent       string
27311	type_        string
27312	urlParams_   gensupport.URLParams
27313	ifNoneMatch_ string
27314	ctx_         context.Context
27315	header_      http.Header
27316}
27317
27318// ListEnvironmentResources: Lists all resource files in an environment.
27319func (r *OrganizationsEnvironmentsResourcefilesService) ListEnvironmentResources(parent string, type_ string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
27320	c := &OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27321	c.parent = parent
27322	c.type_ = type_
27323	return c
27324}
27325
27326// Fields allows partial responses to be retrieved. See
27327// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27328// for more information.
27329func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
27330	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27331	return c
27332}
27333
27334// IfNoneMatch sets the optional parameter which makes the operation
27335// fail if the object's ETag matches the given value. This is useful for
27336// getting updates only after the object has changed since the last
27337// request. Use googleapi.IsNotModified to check whether the response
27338// error from Do is the result of In-None-Match.
27339func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
27340	c.ifNoneMatch_ = entityTag
27341	return c
27342}
27343
27344// Context sets the context to be used in this call's Do method. Any
27345// pending HTTP request will be aborted if the provided context is
27346// canceled.
27347func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall {
27348	c.ctx_ = ctx
27349	return c
27350}
27351
27352// Header returns an http.Header that can be modified by the caller to
27353// add HTTP headers to the request.
27354func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Header() http.Header {
27355	if c.header_ == nil {
27356		c.header_ = make(http.Header)
27357	}
27358	return c.header_
27359}
27360
27361func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) doRequest(alt string) (*http.Response, error) {
27362	reqHeaders := make(http.Header)
27363	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27364	for k, v := range c.header_ {
27365		reqHeaders[k] = v
27366	}
27367	reqHeaders.Set("User-Agent", c.s.userAgent())
27368	if c.ifNoneMatch_ != "" {
27369		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27370	}
27371	var body io.Reader = nil
27372	c.urlParams_.Set("alt", alt)
27373	c.urlParams_.Set("prettyPrint", "false")
27374	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}")
27375	urls += "?" + c.urlParams_.Encode()
27376	req, err := http.NewRequest("GET", urls, body)
27377	if err != nil {
27378		return nil, err
27379	}
27380	req.Header = reqHeaders
27381	googleapi.Expand(req.URL, map[string]string{
27382		"parent": c.parent,
27383		"type":   c.type_,
27384	})
27385	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27386}
27387
27388// Do executes the "apigee.organizations.environments.resourcefiles.listEnvironmentResources" call.
27389// Exactly one of *GoogleCloudApigeeV1ListEnvironmentResourcesResponse
27390// or error will be non-nil. Any non-2xx status code is an error.
27391// Response headers are in either
27392// *GoogleCloudApigeeV1ListEnvironmentResourcesResponse.ServerResponse.He
27393// ader or (if a response was returned at all) in
27394// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27395// whether the returned error was because http.StatusNotModified was
27396// returned.
27397func (c *OrganizationsEnvironmentsResourcefilesListEnvironmentResourcesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListEnvironmentResourcesResponse, error) {
27398	gensupport.SetOptions(c.urlParams_, opts...)
27399	res, err := c.doRequest("json")
27400	if res != nil && res.StatusCode == http.StatusNotModified {
27401		if res.Body != nil {
27402			res.Body.Close()
27403		}
27404		return nil, &googleapi.Error{
27405			Code:   res.StatusCode,
27406			Header: res.Header,
27407		}
27408	}
27409	if err != nil {
27410		return nil, err
27411	}
27412	defer googleapi.CloseBody(res)
27413	if err := googleapi.CheckResponse(res); err != nil {
27414		return nil, err
27415	}
27416	ret := &GoogleCloudApigeeV1ListEnvironmentResourcesResponse{
27417		ServerResponse: googleapi.ServerResponse{
27418			Header:         res.Header,
27419			HTTPStatusCode: res.StatusCode,
27420		},
27421	}
27422	target := &ret
27423	if err := gensupport.DecodeResponse(target, res); err != nil {
27424		return nil, err
27425	}
27426	return ret, nil
27427	// {
27428	//   "description": "Lists all resource files in an environment.",
27429	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}",
27430	//   "httpMethod": "GET",
27431	//   "id": "apigee.organizations.environments.resourcefiles.listEnvironmentResources",
27432	//   "parameterOrder": [
27433	//     "parent",
27434	//     "type"
27435	//   ],
27436	//   "parameters": {
27437	//     "parent": {
27438	//       "description": "Required. The name of the environment in which to list resource files.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
27439	//       "location": "path",
27440	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27441	//       "required": true,
27442	//       "type": "string"
27443	//     },
27444	//     "type": {
27445	//       "description": "Optional. Restricts the response to resources of the given type.",
27446	//       "location": "path",
27447	//       "required": true,
27448	//       "type": "string"
27449	//     }
27450	//   },
27451	//   "path": "v1/{+parent}/resourcefiles/{type}",
27452	//   "response": {
27453	//     "$ref": "GoogleCloudApigeeV1ListEnvironmentResourcesResponse"
27454	//   },
27455	//   "scopes": [
27456	//     "https://www.googleapis.com/auth/cloud-platform"
27457	//   ]
27458	// }
27459
27460}
27461
27462// method id "apigee.organizations.environments.resourcefiles.update":
27463
27464type OrganizationsEnvironmentsResourcefilesUpdateCall struct {
27465	s                 *Service
27466	parent            string
27467	type_             string
27468	resourceFileId    string
27469	googleapihttpbody *GoogleApiHttpBody
27470	urlParams_        gensupport.URLParams
27471	ctx_              context.Context
27472	header_           http.Header
27473}
27474
27475// Update: Updates a resource file in an environment.
27476// `Content-Type` must be either `multipart/form-data` with the resource
27477// file
27478// provided in the only field, or 'application/octet-stream'.
27479func (r *OrganizationsEnvironmentsResourcefilesService) Update(parent string, type_ string, resourceFileId string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsEnvironmentsResourcefilesUpdateCall {
27480	c := &OrganizationsEnvironmentsResourcefilesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27481	c.parent = parent
27482	c.type_ = type_
27483	c.resourceFileId = resourceFileId
27484	c.googleapihttpbody = googleapihttpbody
27485	return c
27486}
27487
27488// Fields allows partial responses to be retrieved. See
27489// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27490// for more information.
27491func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsResourcefilesUpdateCall {
27492	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27493	return c
27494}
27495
27496// Context sets the context to be used in this call's Do method. Any
27497// pending HTTP request will be aborted if the provided context is
27498// canceled.
27499func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsResourcefilesUpdateCall {
27500	c.ctx_ = ctx
27501	return c
27502}
27503
27504// Header returns an http.Header that can be modified by the caller to
27505// add HTTP headers to the request.
27506func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Header() http.Header {
27507	if c.header_ == nil {
27508		c.header_ = make(http.Header)
27509	}
27510	return c.header_
27511}
27512
27513func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) doRequest(alt string) (*http.Response, error) {
27514	reqHeaders := make(http.Header)
27515	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27516	for k, v := range c.header_ {
27517		reqHeaders[k] = v
27518	}
27519	reqHeaders.Set("User-Agent", c.s.userAgent())
27520	var body io.Reader = nil
27521	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
27522	if err != nil {
27523		return nil, err
27524	}
27525	reqHeaders.Set("Content-Type", "application/json")
27526	c.urlParams_.Set("alt", alt)
27527	c.urlParams_.Set("prettyPrint", "false")
27528	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcefiles/{type}/{resourceFileId}")
27529	urls += "?" + c.urlParams_.Encode()
27530	req, err := http.NewRequest("PUT", urls, body)
27531	if err != nil {
27532		return nil, err
27533	}
27534	req.Header = reqHeaders
27535	googleapi.Expand(req.URL, map[string]string{
27536		"parent":         c.parent,
27537		"type":           c.type_,
27538		"resourceFileId": c.resourceFileId,
27539	})
27540	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27541}
27542
27543// Do executes the "apigee.organizations.environments.resourcefiles.update" call.
27544// Exactly one of *GoogleCloudApigeeV1ResourceFile or error will be
27545// non-nil. Any non-2xx status code is an error. Response headers are in
27546// either *GoogleCloudApigeeV1ResourceFile.ServerResponse.Header or (if
27547// a response was returned at all) in error.(*googleapi.Error).Header.
27548// Use googleapi.IsNotModified to check whether the returned error was
27549// because http.StatusNotModified was returned.
27550func (c *OrganizationsEnvironmentsResourcefilesUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ResourceFile, error) {
27551	gensupport.SetOptions(c.urlParams_, opts...)
27552	res, err := c.doRequest("json")
27553	if res != nil && res.StatusCode == http.StatusNotModified {
27554		if res.Body != nil {
27555			res.Body.Close()
27556		}
27557		return nil, &googleapi.Error{
27558			Code:   res.StatusCode,
27559			Header: res.Header,
27560		}
27561	}
27562	if err != nil {
27563		return nil, err
27564	}
27565	defer googleapi.CloseBody(res)
27566	if err := googleapi.CheckResponse(res); err != nil {
27567		return nil, err
27568	}
27569	ret := &GoogleCloudApigeeV1ResourceFile{
27570		ServerResponse: googleapi.ServerResponse{
27571			Header:         res.Header,
27572			HTTPStatusCode: res.StatusCode,
27573		},
27574	}
27575	target := &ret
27576	if err := gensupport.DecodeResponse(target, res); err != nil {
27577		return nil, err
27578	}
27579	return ret, nil
27580	// {
27581	//   "description": "Updates a resource file in an environment.\n`Content-Type` must be either `multipart/form-data` with the resource file\nprovided in the only field, or 'application/octet-stream'.",
27582	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/resourcefiles/{type}/{resourceFileId}",
27583	//   "httpMethod": "PUT",
27584	//   "id": "apigee.organizations.environments.resourcefiles.update",
27585	//   "parameterOrder": [
27586	//     "parent",
27587	//     "type",
27588	//     "resourceFileId"
27589	//   ],
27590	//   "parameters": {
27591	//     "parent": {
27592	//       "description": "Required. The name of the parent environment.\nMust be of the form\n`organizations/{organization}/environments/{environment}`.",
27593	//       "location": "path",
27594	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
27595	//       "required": true,
27596	//       "type": "string"
27597	//     },
27598	//     "resourceFileId": {
27599	//       "description": "Required. The id of the resource file to update. Must match the regular\nexpression [a-zA-Z0-9:/\\\\!@#$%^\u0026{}\\[\\]()+\\-=,.~'` ]{1,255}",
27600	//       "location": "path",
27601	//       "required": true,
27602	//       "type": "string"
27603	//     },
27604	//     "type": {
27605	//       "description": "Required. The resource file type, must be `js`, `jsc`, `java`,\n`properties`, `py`, `xsl`, `wsdl`, or `xsd`.",
27606	//       "location": "path",
27607	//       "required": true,
27608	//       "type": "string"
27609	//     }
27610	//   },
27611	//   "path": "v1/{+parent}/resourcefiles/{type}/{resourceFileId}",
27612	//   "request": {
27613	//     "$ref": "GoogleApiHttpBody"
27614	//   },
27615	//   "response": {
27616	//     "$ref": "GoogleCloudApigeeV1ResourceFile"
27617	//   },
27618	//   "scopes": [
27619	//     "https://www.googleapis.com/auth/cloud-platform"
27620	//   ]
27621	// }
27622
27623}
27624
27625// method id "apigee.organizations.environments.sharedflows.deployments.list":
27626
27627type OrganizationsEnvironmentsSharedflowsDeploymentsListCall struct {
27628	s            *Service
27629	parent       string
27630	urlParams_   gensupport.URLParams
27631	ifNoneMatch_ string
27632	ctx_         context.Context
27633	header_      http.Header
27634}
27635
27636// List: Lists all deployments of a shared flow in an environment.
27637func (r *OrganizationsEnvironmentsSharedflowsDeploymentsService) List(parent string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
27638	c := &OrganizationsEnvironmentsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27639	c.parent = parent
27640	return c
27641}
27642
27643// Fields allows partial responses to be retrieved. See
27644// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27645// for more information.
27646func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
27647	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27648	return c
27649}
27650
27651// IfNoneMatch sets the optional parameter which makes the operation
27652// fail if the object's ETag matches the given value. This is useful for
27653// getting updates only after the object has changed since the last
27654// request. Use googleapi.IsNotModified to check whether the response
27655// error from Do is the result of In-None-Match.
27656func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
27657	c.ifNoneMatch_ = entityTag
27658	return c
27659}
27660
27661// Context sets the context to be used in this call's Do method. Any
27662// pending HTTP request will be aborted if the provided context is
27663// canceled.
27664func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsDeploymentsListCall {
27665	c.ctx_ = ctx
27666	return c
27667}
27668
27669// Header returns an http.Header that can be modified by the caller to
27670// add HTTP headers to the request.
27671func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Header() http.Header {
27672	if c.header_ == nil {
27673		c.header_ = make(http.Header)
27674	}
27675	return c.header_
27676}
27677
27678func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
27679	reqHeaders := make(http.Header)
27680	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27681	for k, v := range c.header_ {
27682		reqHeaders[k] = v
27683	}
27684	reqHeaders.Set("User-Agent", c.s.userAgent())
27685	if c.ifNoneMatch_ != "" {
27686		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27687	}
27688	var body io.Reader = nil
27689	c.urlParams_.Set("alt", alt)
27690	c.urlParams_.Set("prettyPrint", "false")
27691	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
27692	urls += "?" + c.urlParams_.Encode()
27693	req, err := http.NewRequest("GET", urls, body)
27694	if err != nil {
27695		return nil, err
27696	}
27697	req.Header = reqHeaders
27698	googleapi.Expand(req.URL, map[string]string{
27699		"parent": c.parent,
27700	})
27701	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27702}
27703
27704// Do executes the "apigee.organizations.environments.sharedflows.deployments.list" call.
27705// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
27706// will be non-nil. Any non-2xx status code is an error. Response
27707// headers are in either
27708// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
27709// (if a response was returned at all) in
27710// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
27711// whether the returned error was because http.StatusNotModified was
27712// returned.
27713func (c *OrganizationsEnvironmentsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
27714	gensupport.SetOptions(c.urlParams_, opts...)
27715	res, err := c.doRequest("json")
27716	if res != nil && res.StatusCode == http.StatusNotModified {
27717		if res.Body != nil {
27718			res.Body.Close()
27719		}
27720		return nil, &googleapi.Error{
27721			Code:   res.StatusCode,
27722			Header: res.Header,
27723		}
27724	}
27725	if err != nil {
27726		return nil, err
27727	}
27728	defer googleapi.CloseBody(res)
27729	if err := googleapi.CheckResponse(res); err != nil {
27730		return nil, err
27731	}
27732	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
27733		ServerResponse: googleapi.ServerResponse{
27734			Header:         res.Header,
27735			HTTPStatusCode: res.StatusCode,
27736		},
27737	}
27738	target := &ret
27739	if err := gensupport.DecodeResponse(target, res); err != nil {
27740		return nil, err
27741	}
27742	return ret, nil
27743	// {
27744	//   "description": "Lists all deployments of a shared flow in an environment.",
27745	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/deployments",
27746	//   "httpMethod": "GET",
27747	//   "id": "apigee.organizations.environments.sharedflows.deployments.list",
27748	//   "parameterOrder": [
27749	//     "parent"
27750	//   ],
27751	//   "parameters": {
27752	//     "parent": {
27753	//       "description": "Required. Name representing a shared flow in an environment in the following\nformat:\n  `organizations/{org}/environments/{env}/sharedflows/{sharedflow}`",
27754	//       "location": "path",
27755	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+$",
27756	//       "required": true,
27757	//       "type": "string"
27758	//     }
27759	//   },
27760	//   "path": "v1/{+parent}/deployments",
27761	//   "response": {
27762	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
27763	//   },
27764	//   "scopes": [
27765	//     "https://www.googleapis.com/auth/cloud-platform"
27766	//   ]
27767	// }
27768
27769}
27770
27771// method id "apigee.organizations.environments.sharedflows.revisions.deployments":
27772
27773type OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall struct {
27774	s          *Service
27775	name       string
27776	urlParams_ gensupport.URLParams
27777	ctx_       context.Context
27778	header_    http.Header
27779}
27780
27781// Deployments: Undeploys a shared flow revision from an environment.
27782func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) Deployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall {
27783	c := &OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27784	c.name = name
27785	return c
27786}
27787
27788// Fields allows partial responses to be retrieved. See
27789// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27790// for more information.
27791func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall {
27792	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27793	return c
27794}
27795
27796// Context sets the context to be used in this call's Do method. Any
27797// pending HTTP request will be aborted if the provided context is
27798// canceled.
27799func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall {
27800	c.ctx_ = ctx
27801	return c
27802}
27803
27804// Header returns an http.Header that can be modified by the caller to
27805// add HTTP headers to the request.
27806func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall) Header() http.Header {
27807	if c.header_ == nil {
27808		c.header_ = make(http.Header)
27809	}
27810	return c.header_
27811}
27812
27813func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall) doRequest(alt string) (*http.Response, error) {
27814	reqHeaders := make(http.Header)
27815	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27816	for k, v := range c.header_ {
27817		reqHeaders[k] = v
27818	}
27819	reqHeaders.Set("User-Agent", c.s.userAgent())
27820	var body io.Reader = nil
27821	c.urlParams_.Set("alt", alt)
27822	c.urlParams_.Set("prettyPrint", "false")
27823	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27824	urls += "?" + c.urlParams_.Encode()
27825	req, err := http.NewRequest("DELETE", urls, body)
27826	if err != nil {
27827		return nil, err
27828	}
27829	req.Header = reqHeaders
27830	googleapi.Expand(req.URL, map[string]string{
27831		"name": c.name,
27832	})
27833	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27834}
27835
27836// Do executes the "apigee.organizations.environments.sharedflows.revisions.deployments" call.
27837// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
27838// non-2xx status code is an error. Response headers are in either
27839// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
27840// returned at all) in error.(*googleapi.Error).Header. Use
27841// googleapi.IsNotModified to check whether the returned error was
27842// because http.StatusNotModified was returned.
27843func (c *OrganizationsEnvironmentsSharedflowsRevisionsDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27844	gensupport.SetOptions(c.urlParams_, opts...)
27845	res, err := c.doRequest("json")
27846	if res != nil && res.StatusCode == http.StatusNotModified {
27847		if res.Body != nil {
27848			res.Body.Close()
27849		}
27850		return nil, &googleapi.Error{
27851			Code:   res.StatusCode,
27852			Header: res.Header,
27853		}
27854	}
27855	if err != nil {
27856		return nil, err
27857	}
27858	defer googleapi.CloseBody(res)
27859	if err := googleapi.CheckResponse(res); err != nil {
27860		return nil, err
27861	}
27862	ret := &GoogleProtobufEmpty{
27863		ServerResponse: googleapi.ServerResponse{
27864			Header:         res.Header,
27865			HTTPStatusCode: res.StatusCode,
27866		},
27867	}
27868	target := &ret
27869	if err := gensupport.DecodeResponse(target, res); err != nil {
27870		return nil, err
27871	}
27872	return ret, nil
27873	// {
27874	//   "description": "Undeploys a shared flow revision from an environment.",
27875	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
27876	//   "httpMethod": "DELETE",
27877	//   "id": "apigee.organizations.environments.sharedflows.revisions.deployments",
27878	//   "parameterOrder": [
27879	//     "name"
27880	//   ],
27881	//   "parameters": {
27882	//     "name": {
27883	//       "description": "Required. Name of the shared flow revision to undeploy in the following format:\n  `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
27884	//       "location": "path",
27885	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
27886	//       "required": true,
27887	//       "type": "string"
27888	//     }
27889	//   },
27890	//   "path": "v1/{+name}/deployments",
27891	//   "response": {
27892	//     "$ref": "GoogleProtobufEmpty"
27893	//   },
27894	//   "scopes": [
27895	//     "https://www.googleapis.com/auth/cloud-platform"
27896	//   ]
27897	// }
27898
27899}
27900
27901// method id "apigee.organizations.environments.sharedflows.revisions.getDeployments":
27902
27903type OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall struct {
27904	s            *Service
27905	name         string
27906	urlParams_   gensupport.URLParams
27907	ifNoneMatch_ string
27908	ctx_         context.Context
27909	header_      http.Header
27910}
27911
27912// GetDeployments: Gets the deployment of a shared flow revision and
27913// actual state reported by
27914// runtime pods.
27915func (r *OrganizationsEnvironmentsSharedflowsRevisionsService) GetDeployments(name string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
27916	c := &OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27917	c.name = name
27918	return c
27919}
27920
27921// Fields allows partial responses to be retrieved. See
27922// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
27923// for more information.
27924func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
27925	c.urlParams_.Set("fields", googleapi.CombineFields(s))
27926	return c
27927}
27928
27929// IfNoneMatch sets the optional parameter which makes the operation
27930// fail if the object's ETag matches the given value. This is useful for
27931// getting updates only after the object has changed since the last
27932// request. Use googleapi.IsNotModified to check whether the response
27933// error from Do is the result of In-None-Match.
27934func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
27935	c.ifNoneMatch_ = entityTag
27936	return c
27937}
27938
27939// Context sets the context to be used in this call's Do method. Any
27940// pending HTTP request will be aborted if the provided context is
27941// canceled.
27942func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Context(ctx context.Context) *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall {
27943	c.ctx_ = ctx
27944	return c
27945}
27946
27947// Header returns an http.Header that can be modified by the caller to
27948// add HTTP headers to the request.
27949func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Header() http.Header {
27950	if c.header_ == nil {
27951		c.header_ = make(http.Header)
27952	}
27953	return c.header_
27954}
27955
27956func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) doRequest(alt string) (*http.Response, error) {
27957	reqHeaders := make(http.Header)
27958	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
27959	for k, v := range c.header_ {
27960		reqHeaders[k] = v
27961	}
27962	reqHeaders.Set("User-Agent", c.s.userAgent())
27963	if c.ifNoneMatch_ != "" {
27964		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27965	}
27966	var body io.Reader = nil
27967	c.urlParams_.Set("alt", alt)
27968	c.urlParams_.Set("prettyPrint", "false")
27969	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/deployments")
27970	urls += "?" + c.urlParams_.Encode()
27971	req, err := http.NewRequest("GET", urls, body)
27972	if err != nil {
27973		return nil, err
27974	}
27975	req.Header = reqHeaders
27976	googleapi.Expand(req.URL, map[string]string{
27977		"name": c.name,
27978	})
27979	return gensupport.SendRequest(c.ctx_, c.s.client, req)
27980}
27981
27982// Do executes the "apigee.organizations.environments.sharedflows.revisions.getDeployments" call.
27983// Exactly one of *GoogleCloudApigeeV1Deployment or error will be
27984// non-nil. Any non-2xx status code is an error. Response headers are in
27985// either *GoogleCloudApigeeV1Deployment.ServerResponse.Header or (if a
27986// response was returned at all) in error.(*googleapi.Error).Header. Use
27987// googleapi.IsNotModified to check whether the returned error was
27988// because http.StatusNotModified was returned.
27989func (c *OrganizationsEnvironmentsSharedflowsRevisionsGetDeploymentsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Deployment, error) {
27990	gensupport.SetOptions(c.urlParams_, opts...)
27991	res, err := c.doRequest("json")
27992	if res != nil && res.StatusCode == http.StatusNotModified {
27993		if res.Body != nil {
27994			res.Body.Close()
27995		}
27996		return nil, &googleapi.Error{
27997			Code:   res.StatusCode,
27998			Header: res.Header,
27999		}
28000	}
28001	if err != nil {
28002		return nil, err
28003	}
28004	defer googleapi.CloseBody(res)
28005	if err := googleapi.CheckResponse(res); err != nil {
28006		return nil, err
28007	}
28008	ret := &GoogleCloudApigeeV1Deployment{
28009		ServerResponse: googleapi.ServerResponse{
28010			Header:         res.Header,
28011			HTTPStatusCode: res.StatusCode,
28012		},
28013	}
28014	target := &ret
28015	if err := gensupport.DecodeResponse(target, res); err != nil {
28016		return nil, err
28017	}
28018	return ret, nil
28019	// {
28020	//   "description": "Gets the deployment of a shared flow revision and actual state reported by\nruntime pods.",
28021	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
28022	//   "httpMethod": "GET",
28023	//   "id": "apigee.organizations.environments.sharedflows.revisions.getDeployments",
28024	//   "parameterOrder": [
28025	//     "name"
28026	//   ],
28027	//   "parameters": {
28028	//     "name": {
28029	//       "description": "Required. Name representing a shared flow in an environment in the following\nformat:\n  `organizations/{org}/environments/{env}/sharedflows/{sharedflow}/revisions/{rev}`",
28030	//       "location": "path",
28031	//       "pattern": "^organizations/[^/]+/environments/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
28032	//       "required": true,
28033	//       "type": "string"
28034	//     }
28035	//   },
28036	//   "path": "v1/{+name}/deployments",
28037	//   "response": {
28038	//     "$ref": "GoogleCloudApigeeV1Deployment"
28039	//   },
28040	//   "scopes": [
28041	//     "https://www.googleapis.com/auth/cloud-platform"
28042	//   ]
28043	// }
28044
28045}
28046
28047// method id "apigee.organizations.environments.stats.get":
28048
28049type OrganizationsEnvironmentsStatsGetCall struct {
28050	s            *Service
28051	name         string
28052	urlParams_   gensupport.URLParams
28053	ifNoneMatch_ string
28054	ctx_         context.Context
28055	header_      http.Header
28056}
28057
28058// Get: Retrieve metrics grouped by dimensions.
28059// The types of metrics you can retrieve include traffic, message
28060// counts,
28061// API call latency, response size, and cache hits and
28062// counts.
28063// Dimensions let you view metrics in meaningful groups.
28064// The stats api does accept dimensions as path params. The dimensions
28065// are
28066// optional in which case the metrics are computed on the entire
28067// data
28068// for the given timerange.
28069func (r *OrganizationsEnvironmentsStatsService) Get(name string) *OrganizationsEnvironmentsStatsGetCall {
28070	c := &OrganizationsEnvironmentsStatsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28071	c.name = name
28072	return c
28073}
28074
28075// Accuracy sets the optional parameter "accuracy": Legacy field. not
28076// used anymore
28077// This field is present to support UI calls which still use this
28078// parameter
28079func (c *OrganizationsEnvironmentsStatsGetCall) Accuracy(accuracy string) *OrganizationsEnvironmentsStatsGetCall {
28080	c.urlParams_.Set("accuracy", accuracy)
28081	return c
28082}
28083
28084// AggTable sets the optional parameter "aggTable": If customers want to
28085// query custom aggregate tables, then this parameter
28086// can be used to specify the table name. If this parameter is skipped,
28087// then
28088// Edge Query will try to retrieve the data from fact tables which will
28089// be
28090// expensive.
28091func (c *OrganizationsEnvironmentsStatsGetCall) AggTable(aggTable string) *OrganizationsEnvironmentsStatsGetCall {
28092	c.urlParams_.Set("aggTable", aggTable)
28093	return c
28094}
28095
28096// Filter sets the optional parameter "filter": Enables drill-down on
28097// specific dimension values
28098func (c *OrganizationsEnvironmentsStatsGetCall) Filter(filter string) *OrganizationsEnvironmentsStatsGetCall {
28099	c.urlParams_.Set("filter", filter)
28100	return c
28101}
28102
28103// Limit sets the optional parameter "limit": This parameter is used to
28104// limit the number of result items.
28105// Default and the max value is 14400
28106func (c *OrganizationsEnvironmentsStatsGetCall) Limit(limit string) *OrganizationsEnvironmentsStatsGetCall {
28107	c.urlParams_.Set("limit", limit)
28108	return c
28109}
28110
28111// Offset sets the optional parameter "offset": Use offset with limit to
28112// enable pagination of results. For example,
28113// to display results 11-20, set limit to '10' and offset to '10'.
28114func (c *OrganizationsEnvironmentsStatsGetCall) Offset(offset string) *OrganizationsEnvironmentsStatsGetCall {
28115	c.urlParams_.Set("offset", offset)
28116	return c
28117}
28118
28119// Realtime sets the optional parameter "realtime": Legacy field: not
28120// used anymore
28121func (c *OrganizationsEnvironmentsStatsGetCall) Realtime(realtime bool) *OrganizationsEnvironmentsStatsGetCall {
28122	c.urlParams_.Set("realtime", fmt.Sprint(realtime))
28123	return c
28124}
28125
28126// Select sets the optional parameter "select": The select parameter
28127// contains a comma separated list of metrics
28128// E.g. sum(message_count),sum(error_count)
28129func (c *OrganizationsEnvironmentsStatsGetCall) Select(select_ string) *OrganizationsEnvironmentsStatsGetCall {
28130	c.urlParams_.Set("select", select_)
28131	return c
28132}
28133
28134// Sonar sets the optional parameter "sonar": This parameter routes the
28135// query to api monitoring service for last hour
28136func (c *OrganizationsEnvironmentsStatsGetCall) Sonar(sonar bool) *OrganizationsEnvironmentsStatsGetCall {
28137	c.urlParams_.Set("sonar", fmt.Sprint(sonar))
28138	return c
28139}
28140
28141// Sort sets the optional parameter "sort": This parameter specifies if
28142// the sort order should be ascending or
28143// descending Supported values are DESC and ASC.
28144func (c *OrganizationsEnvironmentsStatsGetCall) Sort(sort string) *OrganizationsEnvironmentsStatsGetCall {
28145	c.urlParams_.Set("sort", sort)
28146	return c
28147}
28148
28149// Sortby sets the optional parameter "sortby": Comma separated list of
28150// columns to sort the final result.
28151func (c *OrganizationsEnvironmentsStatsGetCall) Sortby(sortby string) *OrganizationsEnvironmentsStatsGetCall {
28152	c.urlParams_.Set("sortby", sortby)
28153	return c
28154}
28155
28156// TimeRange sets the optional parameter "timeRange": Time interval for
28157// the interactive query.
28158// Time range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017
28159// 23:59
28160func (c *OrganizationsEnvironmentsStatsGetCall) TimeRange(timeRange string) *OrganizationsEnvironmentsStatsGetCall {
28161	c.urlParams_.Set("timeRange", timeRange)
28162	return c
28163}
28164
28165// TimeUnit sets the optional parameter "timeUnit": A value of second,
28166// minute, hour, day, week, month.
28167// Time Unit specifies the granularity of metrics returned.
28168func (c *OrganizationsEnvironmentsStatsGetCall) TimeUnit(timeUnit string) *OrganizationsEnvironmentsStatsGetCall {
28169	c.urlParams_.Set("timeUnit", timeUnit)
28170	return c
28171}
28172
28173// Topk sets the optional parameter "topk": Take 'top k' results from
28174// results, for example, to return the top 5
28175// results 'topk=5'.
28176func (c *OrganizationsEnvironmentsStatsGetCall) Topk(topk string) *OrganizationsEnvironmentsStatsGetCall {
28177	c.urlParams_.Set("topk", topk)
28178	return c
28179}
28180
28181// TsAscending sets the optional parameter "tsAscending": Lists
28182// timestamps in ascending order if set to true. Recommend setting
28183// this value to true if you are using sortby with sort=DESC.
28184func (c *OrganizationsEnvironmentsStatsGetCall) TsAscending(tsAscending bool) *OrganizationsEnvironmentsStatsGetCall {
28185	c.urlParams_.Set("tsAscending", fmt.Sprint(tsAscending))
28186	return c
28187}
28188
28189// Tzo sets the optional parameter "tzo": This parameters contains the
28190// timezone offset value
28191func (c *OrganizationsEnvironmentsStatsGetCall) Tzo(tzo string) *OrganizationsEnvironmentsStatsGetCall {
28192	c.urlParams_.Set("tzo", tzo)
28193	return c
28194}
28195
28196// Fields allows partial responses to be retrieved. See
28197// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28198// for more information.
28199func (c *OrganizationsEnvironmentsStatsGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsStatsGetCall {
28200	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28201	return c
28202}
28203
28204// IfNoneMatch sets the optional parameter which makes the operation
28205// fail if the object's ETag matches the given value. This is useful for
28206// getting updates only after the object has changed since the last
28207// request. Use googleapi.IsNotModified to check whether the response
28208// error from Do is the result of In-None-Match.
28209func (c *OrganizationsEnvironmentsStatsGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsStatsGetCall {
28210	c.ifNoneMatch_ = entityTag
28211	return c
28212}
28213
28214// Context sets the context to be used in this call's Do method. Any
28215// pending HTTP request will be aborted if the provided context is
28216// canceled.
28217func (c *OrganizationsEnvironmentsStatsGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsStatsGetCall {
28218	c.ctx_ = ctx
28219	return c
28220}
28221
28222// Header returns an http.Header that can be modified by the caller to
28223// add HTTP headers to the request.
28224func (c *OrganizationsEnvironmentsStatsGetCall) Header() http.Header {
28225	if c.header_ == nil {
28226		c.header_ = make(http.Header)
28227	}
28228	return c.header_
28229}
28230
28231func (c *OrganizationsEnvironmentsStatsGetCall) doRequest(alt string) (*http.Response, error) {
28232	reqHeaders := make(http.Header)
28233	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28234	for k, v := range c.header_ {
28235		reqHeaders[k] = v
28236	}
28237	reqHeaders.Set("User-Agent", c.s.userAgent())
28238	if c.ifNoneMatch_ != "" {
28239		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28240	}
28241	var body io.Reader = nil
28242	c.urlParams_.Set("alt", alt)
28243	c.urlParams_.Set("prettyPrint", "false")
28244	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28245	urls += "?" + c.urlParams_.Encode()
28246	req, err := http.NewRequest("GET", urls, body)
28247	if err != nil {
28248		return nil, err
28249	}
28250	req.Header = reqHeaders
28251	googleapi.Expand(req.URL, map[string]string{
28252		"name": c.name,
28253	})
28254	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28255}
28256
28257// Do executes the "apigee.organizations.environments.stats.get" call.
28258// Exactly one of *GoogleCloudApigeeV1Stats or error will be non-nil.
28259// Any non-2xx status code is an error. Response headers are in either
28260// *GoogleCloudApigeeV1Stats.ServerResponse.Header or (if a response was
28261// returned at all) in error.(*googleapi.Error).Header. Use
28262// googleapi.IsNotModified to check whether the returned error was
28263// because http.StatusNotModified was returned.
28264func (c *OrganizationsEnvironmentsStatsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1Stats, error) {
28265	gensupport.SetOptions(c.urlParams_, opts...)
28266	res, err := c.doRequest("json")
28267	if res != nil && res.StatusCode == http.StatusNotModified {
28268		if res.Body != nil {
28269			res.Body.Close()
28270		}
28271		return nil, &googleapi.Error{
28272			Code:   res.StatusCode,
28273			Header: res.Header,
28274		}
28275	}
28276	if err != nil {
28277		return nil, err
28278	}
28279	defer googleapi.CloseBody(res)
28280	if err := googleapi.CheckResponse(res); err != nil {
28281		return nil, err
28282	}
28283	ret := &GoogleCloudApigeeV1Stats{
28284		ServerResponse: googleapi.ServerResponse{
28285			Header:         res.Header,
28286			HTTPStatusCode: res.StatusCode,
28287		},
28288	}
28289	target := &ret
28290	if err := gensupport.DecodeResponse(target, res); err != nil {
28291		return nil, err
28292	}
28293	return ret, nil
28294	// {
28295	//   "description": "Retrieve metrics grouped by dimensions.\nThe types of metrics you can retrieve include traffic, message counts,\nAPI call latency, response size, and cache hits and counts.\nDimensions let you view metrics in meaningful groups.\nThe stats api does accept dimensions as path params. The dimensions are\noptional in which case the metrics are computed on the entire data\nfor the given timerange.",
28296	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/stats/{statsId}",
28297	//   "httpMethod": "GET",
28298	//   "id": "apigee.organizations.environments.stats.get",
28299	//   "parameterOrder": [
28300	//     "name"
28301	//   ],
28302	//   "parameters": {
28303	//     "accuracy": {
28304	//       "description": "Legacy field. not used anymore\nThis field is present to support UI calls which still use this parameter",
28305	//       "location": "query",
28306	//       "type": "string"
28307	//     },
28308	//     "aggTable": {
28309	//       "description": "If customers want to query custom aggregate tables, then this parameter\ncan be used to specify the table name. If this parameter is skipped, then\nEdge Query will try to retrieve the data from fact tables which will be\nexpensive.",
28310	//       "location": "query",
28311	//       "type": "string"
28312	//     },
28313	//     "filter": {
28314	//       "description": "Enables drill-down on specific dimension values",
28315	//       "location": "query",
28316	//       "type": "string"
28317	//     },
28318	//     "limit": {
28319	//       "description": "This parameter is used to limit the number of result items.\nDefault and the max value is 14400",
28320	//       "location": "query",
28321	//       "type": "string"
28322	//     },
28323	//     "name": {
28324	//       "description": "Required. The organization and environment name for which the interactive\nquery will be executed. Must be of the form\n  `organizations/{organization_id}/environments/{environment_id/stats/{dimensions}`\nDimensions let you view metrics in meaningful groupings. E.g. apiproxy,\ntarget_host. The value of dimensions should be comma separated list as\nshown below\n`organizations/{org}/environments/{env}/stats/apiproxy,request_verb`",
28325	//       "location": "path",
28326	//       "pattern": "^organizations/[^/]+/environments/[^/]+/stats/.+$",
28327	//       "required": true,
28328	//       "type": "string"
28329	//     },
28330	//     "offset": {
28331	//       "description": "Use offset with limit to enable pagination of results. For example,\nto display results 11-20, set limit to '10' and offset to '10'.",
28332	//       "location": "query",
28333	//       "type": "string"
28334	//     },
28335	//     "realtime": {
28336	//       "description": "Legacy field: not used anymore",
28337	//       "location": "query",
28338	//       "type": "boolean"
28339	//     },
28340	//     "select": {
28341	//       "description": "The select parameter contains a comma separated list of metrics\nE.g. sum(message_count),sum(error_count)",
28342	//       "location": "query",
28343	//       "type": "string"
28344	//     },
28345	//     "sonar": {
28346	//       "description": "This parameter routes the query to api monitoring service for last hour",
28347	//       "location": "query",
28348	//       "type": "boolean"
28349	//     },
28350	//     "sort": {
28351	//       "description": "This parameter specifies if the sort order should be ascending or\ndescending Supported values are DESC and ASC.",
28352	//       "location": "query",
28353	//       "type": "string"
28354	//     },
28355	//     "sortby": {
28356	//       "description": "Comma separated list of columns to sort the final result.",
28357	//       "location": "query",
28358	//       "type": "string"
28359	//     },
28360	//     "timeRange": {
28361	//       "description": "Time interval for the interactive query.\nTime range is specified as start~end E.g. 04/15/2017 00:00~05/15/2017 23:59",
28362	//       "location": "query",
28363	//       "type": "string"
28364	//     },
28365	//     "timeUnit": {
28366	//       "description": "A value of second, minute, hour, day, week, month.\nTime Unit specifies the granularity of metrics returned.",
28367	//       "location": "query",
28368	//       "type": "string"
28369	//     },
28370	//     "topk": {
28371	//       "description": "Take 'top k' results from results, for example, to return the top 5\nresults 'topk=5'.",
28372	//       "location": "query",
28373	//       "type": "string"
28374	//     },
28375	//     "tsAscending": {
28376	//       "description": "Lists timestamps in ascending order if set to true. Recommend setting\nthis value to true if you are using sortby with sort=DESC.",
28377	//       "location": "query",
28378	//       "type": "boolean"
28379	//     },
28380	//     "tzo": {
28381	//       "description": "This parameters contains the timezone offset value",
28382	//       "location": "query",
28383	//       "type": "string"
28384	//     }
28385	//   },
28386	//   "path": "v1/{+name}",
28387	//   "response": {
28388	//     "$ref": "GoogleCloudApigeeV1Stats"
28389	//   },
28390	//   "scopes": [
28391	//     "https://www.googleapis.com/auth/cloud-platform"
28392	//   ]
28393	// }
28394
28395}
28396
28397// method id "apigee.organizations.environments.targetservers.create":
28398
28399type OrganizationsEnvironmentsTargetserversCreateCall struct {
28400	s                               *Service
28401	parent                          string
28402	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
28403	urlParams_                      gensupport.URLParams
28404	ctx_                            context.Context
28405	header_                         http.Header
28406}
28407
28408// Create: Creates a TargetServer in the specified environment.
28409func (r *OrganizationsEnvironmentsTargetserversService) Create(parent string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversCreateCall {
28410	c := &OrganizationsEnvironmentsTargetserversCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28411	c.parent = parent
28412	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
28413	return c
28414}
28415
28416// Name sets the optional parameter "name": The ID to give the
28417// TargetServer. This will overwrite the
28418// value in TargetServer.
28419func (c *OrganizationsEnvironmentsTargetserversCreateCall) Name(name string) *OrganizationsEnvironmentsTargetserversCreateCall {
28420	c.urlParams_.Set("name", name)
28421	return c
28422}
28423
28424// Fields allows partial responses to be retrieved. See
28425// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28426// for more information.
28427func (c *OrganizationsEnvironmentsTargetserversCreateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversCreateCall {
28428	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28429	return c
28430}
28431
28432// Context sets the context to be used in this call's Do method. Any
28433// pending HTTP request will be aborted if the provided context is
28434// canceled.
28435func (c *OrganizationsEnvironmentsTargetserversCreateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversCreateCall {
28436	c.ctx_ = ctx
28437	return c
28438}
28439
28440// Header returns an http.Header that can be modified by the caller to
28441// add HTTP headers to the request.
28442func (c *OrganizationsEnvironmentsTargetserversCreateCall) Header() http.Header {
28443	if c.header_ == nil {
28444		c.header_ = make(http.Header)
28445	}
28446	return c.header_
28447}
28448
28449func (c *OrganizationsEnvironmentsTargetserversCreateCall) doRequest(alt string) (*http.Response, error) {
28450	reqHeaders := make(http.Header)
28451	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28452	for k, v := range c.header_ {
28453		reqHeaders[k] = v
28454	}
28455	reqHeaders.Set("User-Agent", c.s.userAgent())
28456	var body io.Reader = nil
28457	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
28458	if err != nil {
28459		return nil, err
28460	}
28461	reqHeaders.Set("Content-Type", "application/json")
28462	c.urlParams_.Set("alt", alt)
28463	c.urlParams_.Set("prettyPrint", "false")
28464	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
28465	urls += "?" + c.urlParams_.Encode()
28466	req, err := http.NewRequest("POST", urls, body)
28467	if err != nil {
28468		return nil, err
28469	}
28470	req.Header = reqHeaders
28471	googleapi.Expand(req.URL, map[string]string{
28472		"parent": c.parent,
28473	})
28474	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28475}
28476
28477// Do executes the "apigee.organizations.environments.targetservers.create" call.
28478// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
28479// non-nil. Any non-2xx status code is an error. Response headers are in
28480// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
28481// a response was returned at all) in error.(*googleapi.Error).Header.
28482// Use googleapi.IsNotModified to check whether the returned error was
28483// because http.StatusNotModified was returned.
28484func (c *OrganizationsEnvironmentsTargetserversCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
28485	gensupport.SetOptions(c.urlParams_, opts...)
28486	res, err := c.doRequest("json")
28487	if res != nil && res.StatusCode == http.StatusNotModified {
28488		if res.Body != nil {
28489			res.Body.Close()
28490		}
28491		return nil, &googleapi.Error{
28492			Code:   res.StatusCode,
28493			Header: res.Header,
28494		}
28495	}
28496	if err != nil {
28497		return nil, err
28498	}
28499	defer googleapi.CloseBody(res)
28500	if err := googleapi.CheckResponse(res); err != nil {
28501		return nil, err
28502	}
28503	ret := &GoogleCloudApigeeV1TargetServer{
28504		ServerResponse: googleapi.ServerResponse{
28505			Header:         res.Header,
28506			HTTPStatusCode: res.StatusCode,
28507		},
28508	}
28509	target := &ret
28510	if err := gensupport.DecodeResponse(target, res); err != nil {
28511		return nil, err
28512	}
28513	return ret, nil
28514	// {
28515	//   "description": "Creates a TargetServer in the specified environment.",
28516	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
28517	//   "httpMethod": "POST",
28518	//   "id": "apigee.organizations.environments.targetservers.create",
28519	//   "parameterOrder": [
28520	//     "parent"
28521	//   ],
28522	//   "parameters": {
28523	//     "name": {
28524	//       "description": "Optional. The ID to give the TargetServer. This will overwrite the\nvalue in TargetServer.",
28525	//       "location": "query",
28526	//       "type": "string"
28527	//     },
28528	//     "parent": {
28529	//       "description": "Required. The parent environment name under which the TargetServer will\nbe created. Must be of the form `organizations/{org}/environments/{env}`.",
28530	//       "location": "path",
28531	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28532	//       "required": true,
28533	//       "type": "string"
28534	//     }
28535	//   },
28536	//   "path": "v1/{+parent}/targetservers",
28537	//   "request": {
28538	//     "$ref": "GoogleCloudApigeeV1TargetServer"
28539	//   },
28540	//   "response": {
28541	//     "$ref": "GoogleCloudApigeeV1TargetServer"
28542	//   },
28543	//   "scopes": [
28544	//     "https://www.googleapis.com/auth/cloud-platform"
28545	//   ]
28546	// }
28547
28548}
28549
28550// method id "apigee.organizations.environments.targetservers.delete":
28551
28552type OrganizationsEnvironmentsTargetserversDeleteCall struct {
28553	s          *Service
28554	name       string
28555	urlParams_ gensupport.URLParams
28556	ctx_       context.Context
28557	header_    http.Header
28558}
28559
28560// Delete: Deletes a TargetServer from an environment. Returns the
28561// deleted
28562// TargetServer resource.
28563func (r *OrganizationsEnvironmentsTargetserversService) Delete(name string) *OrganizationsEnvironmentsTargetserversDeleteCall {
28564	c := &OrganizationsEnvironmentsTargetserversDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28565	c.name = name
28566	return c
28567}
28568
28569// Fields allows partial responses to be retrieved. See
28570// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28571// for more information.
28572func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversDeleteCall {
28573	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28574	return c
28575}
28576
28577// Context sets the context to be used in this call's Do method. Any
28578// pending HTTP request will be aborted if the provided context is
28579// canceled.
28580func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversDeleteCall {
28581	c.ctx_ = ctx
28582	return c
28583}
28584
28585// Header returns an http.Header that can be modified by the caller to
28586// add HTTP headers to the request.
28587func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Header() http.Header {
28588	if c.header_ == nil {
28589		c.header_ = make(http.Header)
28590	}
28591	return c.header_
28592}
28593
28594func (c *OrganizationsEnvironmentsTargetserversDeleteCall) doRequest(alt string) (*http.Response, error) {
28595	reqHeaders := make(http.Header)
28596	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28597	for k, v := range c.header_ {
28598		reqHeaders[k] = v
28599	}
28600	reqHeaders.Set("User-Agent", c.s.userAgent())
28601	var body io.Reader = nil
28602	c.urlParams_.Set("alt", alt)
28603	c.urlParams_.Set("prettyPrint", "false")
28604	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28605	urls += "?" + c.urlParams_.Encode()
28606	req, err := http.NewRequest("DELETE", urls, body)
28607	if err != nil {
28608		return nil, err
28609	}
28610	req.Header = reqHeaders
28611	googleapi.Expand(req.URL, map[string]string{
28612		"name": c.name,
28613	})
28614	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28615}
28616
28617// Do executes the "apigee.organizations.environments.targetservers.delete" call.
28618// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
28619// non-nil. Any non-2xx status code is an error. Response headers are in
28620// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
28621// a response was returned at all) in error.(*googleapi.Error).Header.
28622// Use googleapi.IsNotModified to check whether the returned error was
28623// because http.StatusNotModified was returned.
28624func (c *OrganizationsEnvironmentsTargetserversDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
28625	gensupport.SetOptions(c.urlParams_, opts...)
28626	res, err := c.doRequest("json")
28627	if res != nil && res.StatusCode == http.StatusNotModified {
28628		if res.Body != nil {
28629			res.Body.Close()
28630		}
28631		return nil, &googleapi.Error{
28632			Code:   res.StatusCode,
28633			Header: res.Header,
28634		}
28635	}
28636	if err != nil {
28637		return nil, err
28638	}
28639	defer googleapi.CloseBody(res)
28640	if err := googleapi.CheckResponse(res); err != nil {
28641		return nil, err
28642	}
28643	ret := &GoogleCloudApigeeV1TargetServer{
28644		ServerResponse: googleapi.ServerResponse{
28645			Header:         res.Header,
28646			HTTPStatusCode: res.StatusCode,
28647		},
28648	}
28649	target := &ret
28650	if err := gensupport.DecodeResponse(target, res); err != nil {
28651		return nil, err
28652	}
28653	return ret, nil
28654	// {
28655	//   "description": "Deletes a TargetServer from an environment. Returns the deleted\nTargetServer resource.",
28656	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
28657	//   "httpMethod": "DELETE",
28658	//   "id": "apigee.organizations.environments.targetservers.delete",
28659	//   "parameterOrder": [
28660	//     "name"
28661	//   ],
28662	//   "parameters": {
28663	//     "name": {
28664	//       "description": "Required. The name of the TargetServer to delete. Must be\nof the form\n`organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
28665	//       "location": "path",
28666	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
28667	//       "required": true,
28668	//       "type": "string"
28669	//     }
28670	//   },
28671	//   "path": "v1/{+name}",
28672	//   "response": {
28673	//     "$ref": "GoogleCloudApigeeV1TargetServer"
28674	//   },
28675	//   "scopes": [
28676	//     "https://www.googleapis.com/auth/cloud-platform"
28677	//   ]
28678	// }
28679
28680}
28681
28682// method id "apigee.organizations.environments.targetservers.get":
28683
28684type OrganizationsEnvironmentsTargetserversGetCall struct {
28685	s            *Service
28686	name         string
28687	urlParams_   gensupport.URLParams
28688	ifNoneMatch_ string
28689	ctx_         context.Context
28690	header_      http.Header
28691}
28692
28693// Get: Gets a TargetServer resource.
28694func (r *OrganizationsEnvironmentsTargetserversService) Get(name string) *OrganizationsEnvironmentsTargetserversGetCall {
28695	c := &OrganizationsEnvironmentsTargetserversGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28696	c.name = name
28697	return c
28698}
28699
28700// Fields allows partial responses to be retrieved. See
28701// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28702// for more information.
28703func (c *OrganizationsEnvironmentsTargetserversGetCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversGetCall {
28704	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28705	return c
28706}
28707
28708// IfNoneMatch sets the optional parameter which makes the operation
28709// fail if the object's ETag matches the given value. This is useful for
28710// getting updates only after the object has changed since the last
28711// request. Use googleapi.IsNotModified to check whether the response
28712// error from Do is the result of In-None-Match.
28713func (c *OrganizationsEnvironmentsTargetserversGetCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversGetCall {
28714	c.ifNoneMatch_ = entityTag
28715	return c
28716}
28717
28718// Context sets the context to be used in this call's Do method. Any
28719// pending HTTP request will be aborted if the provided context is
28720// canceled.
28721func (c *OrganizationsEnvironmentsTargetserversGetCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversGetCall {
28722	c.ctx_ = ctx
28723	return c
28724}
28725
28726// Header returns an http.Header that can be modified by the caller to
28727// add HTTP headers to the request.
28728func (c *OrganizationsEnvironmentsTargetserversGetCall) Header() http.Header {
28729	if c.header_ == nil {
28730		c.header_ = make(http.Header)
28731	}
28732	return c.header_
28733}
28734
28735func (c *OrganizationsEnvironmentsTargetserversGetCall) doRequest(alt string) (*http.Response, error) {
28736	reqHeaders := make(http.Header)
28737	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28738	for k, v := range c.header_ {
28739		reqHeaders[k] = v
28740	}
28741	reqHeaders.Set("User-Agent", c.s.userAgent())
28742	if c.ifNoneMatch_ != "" {
28743		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28744	}
28745	var body io.Reader = nil
28746	c.urlParams_.Set("alt", alt)
28747	c.urlParams_.Set("prettyPrint", "false")
28748	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
28749	urls += "?" + c.urlParams_.Encode()
28750	req, err := http.NewRequest("GET", urls, body)
28751	if err != nil {
28752		return nil, err
28753	}
28754	req.Header = reqHeaders
28755	googleapi.Expand(req.URL, map[string]string{
28756		"name": c.name,
28757	})
28758	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28759}
28760
28761// Do executes the "apigee.organizations.environments.targetservers.get" call.
28762// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
28763// non-nil. Any non-2xx status code is an error. Response headers are in
28764// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
28765// a response was returned at all) in error.(*googleapi.Error).Header.
28766// Use googleapi.IsNotModified to check whether the returned error was
28767// because http.StatusNotModified was returned.
28768func (c *OrganizationsEnvironmentsTargetserversGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
28769	gensupport.SetOptions(c.urlParams_, opts...)
28770	res, err := c.doRequest("json")
28771	if res != nil && res.StatusCode == http.StatusNotModified {
28772		if res.Body != nil {
28773			res.Body.Close()
28774		}
28775		return nil, &googleapi.Error{
28776			Code:   res.StatusCode,
28777			Header: res.Header,
28778		}
28779	}
28780	if err != nil {
28781		return nil, err
28782	}
28783	defer googleapi.CloseBody(res)
28784	if err := googleapi.CheckResponse(res); err != nil {
28785		return nil, err
28786	}
28787	ret := &GoogleCloudApigeeV1TargetServer{
28788		ServerResponse: googleapi.ServerResponse{
28789			Header:         res.Header,
28790			HTTPStatusCode: res.StatusCode,
28791		},
28792	}
28793	target := &ret
28794	if err := gensupport.DecodeResponse(target, res); err != nil {
28795		return nil, err
28796	}
28797	return ret, nil
28798	// {
28799	//   "description": "Gets a TargetServer resource.",
28800	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
28801	//   "httpMethod": "GET",
28802	//   "id": "apigee.organizations.environments.targetservers.get",
28803	//   "parameterOrder": [
28804	//     "name"
28805	//   ],
28806	//   "parameters": {
28807	//     "name": {
28808	//       "description": "Required. The name of the TargetServer to get. Must be of the form\n`organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
28809	//       "location": "path",
28810	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
28811	//       "required": true,
28812	//       "type": "string"
28813	//     }
28814	//   },
28815	//   "path": "v1/{+name}",
28816	//   "response": {
28817	//     "$ref": "GoogleCloudApigeeV1TargetServer"
28818	//   },
28819	//   "scopes": [
28820	//     "https://www.googleapis.com/auth/cloud-platform"
28821	//   ]
28822	// }
28823
28824}
28825
28826// method id "apigee.organizations.environments.targetservers.list":
28827
28828type OrganizationsEnvironmentsTargetserversListCall struct {
28829	s            *Service
28830	parent       string
28831	urlParams_   gensupport.URLParams
28832	ifNoneMatch_ string
28833	ctx_         context.Context
28834	header_      http.Header
28835}
28836
28837// List: Lists all TargetServers in an environment as a JSON array.
28838func (r *OrganizationsEnvironmentsTargetserversService) List(parent string) *OrganizationsEnvironmentsTargetserversListCall {
28839	c := &OrganizationsEnvironmentsTargetserversListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28840	c.parent = parent
28841	return c
28842}
28843
28844// Fields allows partial responses to be retrieved. See
28845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28846// for more information.
28847func (c *OrganizationsEnvironmentsTargetserversListCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversListCall {
28848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28849	return c
28850}
28851
28852// IfNoneMatch sets the optional parameter which makes the operation
28853// fail if the object's ETag matches the given value. This is useful for
28854// getting updates only after the object has changed since the last
28855// request. Use googleapi.IsNotModified to check whether the response
28856// error from Do is the result of In-None-Match.
28857func (c *OrganizationsEnvironmentsTargetserversListCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsTargetserversListCall {
28858	c.ifNoneMatch_ = entityTag
28859	return c
28860}
28861
28862// Context sets the context to be used in this call's Do method. Any
28863// pending HTTP request will be aborted if the provided context is
28864// canceled.
28865func (c *OrganizationsEnvironmentsTargetserversListCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversListCall {
28866	c.ctx_ = ctx
28867	return c
28868}
28869
28870// Header returns an http.Header that can be modified by the caller to
28871// add HTTP headers to the request.
28872func (c *OrganizationsEnvironmentsTargetserversListCall) Header() http.Header {
28873	if c.header_ == nil {
28874		c.header_ = make(http.Header)
28875	}
28876	return c.header_
28877}
28878
28879func (c *OrganizationsEnvironmentsTargetserversListCall) doRequest(alt string) (*http.Response, error) {
28880	reqHeaders := make(http.Header)
28881	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28882	for k, v := range c.header_ {
28883		reqHeaders[k] = v
28884	}
28885	reqHeaders.Set("User-Agent", c.s.userAgent())
28886	if c.ifNoneMatch_ != "" {
28887		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28888	}
28889	var body io.Reader = nil
28890	c.urlParams_.Set("alt", alt)
28891	c.urlParams_.Set("prettyPrint", "false")
28892	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetservers")
28893	urls += "?" + c.urlParams_.Encode()
28894	req, err := http.NewRequest("GET", urls, body)
28895	if err != nil {
28896		return nil, err
28897	}
28898	req.Header = reqHeaders
28899	googleapi.Expand(req.URL, map[string]string{
28900		"parent": c.parent,
28901	})
28902	return gensupport.SendRequest(c.ctx_, c.s.client, req)
28903}
28904
28905// Do executes the "apigee.organizations.environments.targetservers.list" call.
28906func (c *OrganizationsEnvironmentsTargetserversListCall) Do(opts ...googleapi.CallOption) error {
28907	gensupport.SetOptions(c.urlParams_, opts...)
28908	res, err := c.doRequest("json")
28909	if err != nil {
28910		return err
28911	}
28912	defer googleapi.CloseBody(res)
28913	if err := googleapi.CheckResponse(res); err != nil {
28914		return err
28915	}
28916	return nil
28917	// {
28918	//   "description": "Lists all TargetServers in an environment as a JSON array.",
28919	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers",
28920	//   "httpMethod": "GET",
28921	//   "id": "apigee.organizations.environments.targetservers.list",
28922	//   "parameterOrder": [
28923	//     "parent"
28924	//   ],
28925	//   "parameters": {
28926	//     "parent": {
28927	//       "description": "Required. The parent environment name. Must be of the form\n`organizations/{org}/environments/{env}`.",
28928	//       "location": "path",
28929	//       "pattern": "^organizations/[^/]+/environments/[^/]+$",
28930	//       "required": true,
28931	//       "type": "string"
28932	//     }
28933	//   },
28934	//   "path": "v1/{+parent}/targetservers",
28935	//   "response": {
28936	//     "items": {
28937	//       "type": "any"
28938	//     },
28939	//     "type": "array"
28940	//   },
28941	//   "scopes": [
28942	//     "https://www.googleapis.com/auth/cloud-platform"
28943	//   ]
28944	// }
28945
28946}
28947
28948// method id "apigee.organizations.environments.targetservers.update":
28949
28950type OrganizationsEnvironmentsTargetserversUpdateCall struct {
28951	s                               *Service
28952	name                            string
28953	googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer
28954	urlParams_                      gensupport.URLParams
28955	ctx_                            context.Context
28956	header_                         http.Header
28957}
28958
28959// Update: Updates an existing TargetServer. Note that this operation
28960// has PUT
28961// semantics; it will replace the entirety of the existing TargetServer
28962// with
28963// the resource in the request body.
28964func (r *OrganizationsEnvironmentsTargetserversService) Update(name string, googlecloudapigeev1targetserver *GoogleCloudApigeeV1TargetServer) *OrganizationsEnvironmentsTargetserversUpdateCall {
28965	c := &OrganizationsEnvironmentsTargetserversUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28966	c.name = name
28967	c.googlecloudapigeev1targetserver = googlecloudapigeev1targetserver
28968	return c
28969}
28970
28971// Fields allows partial responses to be retrieved. See
28972// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
28973// for more information.
28974func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsTargetserversUpdateCall {
28975	c.urlParams_.Set("fields", googleapi.CombineFields(s))
28976	return c
28977}
28978
28979// Context sets the context to be used in this call's Do method. Any
28980// pending HTTP request will be aborted if the provided context is
28981// canceled.
28982func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Context(ctx context.Context) *OrganizationsEnvironmentsTargetserversUpdateCall {
28983	c.ctx_ = ctx
28984	return c
28985}
28986
28987// Header returns an http.Header that can be modified by the caller to
28988// add HTTP headers to the request.
28989func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Header() http.Header {
28990	if c.header_ == nil {
28991		c.header_ = make(http.Header)
28992	}
28993	return c.header_
28994}
28995
28996func (c *OrganizationsEnvironmentsTargetserversUpdateCall) doRequest(alt string) (*http.Response, error) {
28997	reqHeaders := make(http.Header)
28998	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
28999	for k, v := range c.header_ {
29000		reqHeaders[k] = v
29001	}
29002	reqHeaders.Set("User-Agent", c.s.userAgent())
29003	var body io.Reader = nil
29004	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1targetserver)
29005	if err != nil {
29006		return nil, err
29007	}
29008	reqHeaders.Set("Content-Type", "application/json")
29009	c.urlParams_.Set("alt", alt)
29010	c.urlParams_.Set("prettyPrint", "false")
29011	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29012	urls += "?" + c.urlParams_.Encode()
29013	req, err := http.NewRequest("PUT", urls, body)
29014	if err != nil {
29015		return nil, err
29016	}
29017	req.Header = reqHeaders
29018	googleapi.Expand(req.URL, map[string]string{
29019		"name": c.name,
29020	})
29021	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29022}
29023
29024// Do executes the "apigee.organizations.environments.targetservers.update" call.
29025// Exactly one of *GoogleCloudApigeeV1TargetServer or error will be
29026// non-nil. Any non-2xx status code is an error. Response headers are in
29027// either *GoogleCloudApigeeV1TargetServer.ServerResponse.Header or (if
29028// a response was returned at all) in error.(*googleapi.Error).Header.
29029// Use googleapi.IsNotModified to check whether the returned error was
29030// because http.StatusNotModified was returned.
29031func (c *OrganizationsEnvironmentsTargetserversUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1TargetServer, error) {
29032	gensupport.SetOptions(c.urlParams_, opts...)
29033	res, err := c.doRequest("json")
29034	if res != nil && res.StatusCode == http.StatusNotModified {
29035		if res.Body != nil {
29036			res.Body.Close()
29037		}
29038		return nil, &googleapi.Error{
29039			Code:   res.StatusCode,
29040			Header: res.Header,
29041		}
29042	}
29043	if err != nil {
29044		return nil, err
29045	}
29046	defer googleapi.CloseBody(res)
29047	if err := googleapi.CheckResponse(res); err != nil {
29048		return nil, err
29049	}
29050	ret := &GoogleCloudApigeeV1TargetServer{
29051		ServerResponse: googleapi.ServerResponse{
29052			Header:         res.Header,
29053			HTTPStatusCode: res.StatusCode,
29054		},
29055	}
29056	target := &ret
29057	if err := gensupport.DecodeResponse(target, res); err != nil {
29058		return nil, err
29059	}
29060	return ret, nil
29061	// {
29062	//   "description": "Updates an existing TargetServer. Note that this operation has PUT\nsemantics; it will replace the entirety of the existing TargetServer with\nthe resource in the request body.",
29063	//   "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/targetservers/{targetserversId}",
29064	//   "httpMethod": "PUT",
29065	//   "id": "apigee.organizations.environments.targetservers.update",
29066	//   "parameterOrder": [
29067	//     "name"
29068	//   ],
29069	//   "parameters": {
29070	//     "name": {
29071	//       "description": "Required. The name of the TargetServer to replace. Must be of the form\n`organizations/{org}/environments/{env}/targetservers/{target_server_id}`.",
29072	//       "location": "path",
29073	//       "pattern": "^organizations/[^/]+/environments/[^/]+/targetservers/[^/]+$",
29074	//       "required": true,
29075	//       "type": "string"
29076	//     }
29077	//   },
29078	//   "path": "v1/{+name}",
29079	//   "request": {
29080	//     "$ref": "GoogleCloudApigeeV1TargetServer"
29081	//   },
29082	//   "response": {
29083	//     "$ref": "GoogleCloudApigeeV1TargetServer"
29084	//   },
29085	//   "scopes": [
29086	//     "https://www.googleapis.com/auth/cloud-platform"
29087	//   ]
29088	// }
29089
29090}
29091
29092// method id "apigee.organizations.keyvaluemaps.create":
29093
29094type OrganizationsKeyvaluemapsCreateCall struct {
29095	s                              *Service
29096	parent                         string
29097	googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap
29098	urlParams_                     gensupport.URLParams
29099	ctx_                           context.Context
29100	header_                        http.Header
29101}
29102
29103// Create: Creates a key value map in an organization.
29104func (r *OrganizationsKeyvaluemapsService) Create(parent string, googlecloudapigeev1keyvaluemap *GoogleCloudApigeeV1KeyValueMap) *OrganizationsKeyvaluemapsCreateCall {
29105	c := &OrganizationsKeyvaluemapsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29106	c.parent = parent
29107	c.googlecloudapigeev1keyvaluemap = googlecloudapigeev1keyvaluemap
29108	return c
29109}
29110
29111// Fields allows partial responses to be retrieved. See
29112// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29113// for more information.
29114func (c *OrganizationsKeyvaluemapsCreateCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsCreateCall {
29115	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29116	return c
29117}
29118
29119// Context sets the context to be used in this call's Do method. Any
29120// pending HTTP request will be aborted if the provided context is
29121// canceled.
29122func (c *OrganizationsKeyvaluemapsCreateCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsCreateCall {
29123	c.ctx_ = ctx
29124	return c
29125}
29126
29127// Header returns an http.Header that can be modified by the caller to
29128// add HTTP headers to the request.
29129func (c *OrganizationsKeyvaluemapsCreateCall) Header() http.Header {
29130	if c.header_ == nil {
29131		c.header_ = make(http.Header)
29132	}
29133	return c.header_
29134}
29135
29136func (c *OrganizationsKeyvaluemapsCreateCall) doRequest(alt string) (*http.Response, error) {
29137	reqHeaders := make(http.Header)
29138	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29139	for k, v := range c.header_ {
29140		reqHeaders[k] = v
29141	}
29142	reqHeaders.Set("User-Agent", c.s.userAgent())
29143	var body io.Reader = nil
29144	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1keyvaluemap)
29145	if err != nil {
29146		return nil, err
29147	}
29148	reqHeaders.Set("Content-Type", "application/json")
29149	c.urlParams_.Set("alt", alt)
29150	c.urlParams_.Set("prettyPrint", "false")
29151	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
29152	urls += "?" + c.urlParams_.Encode()
29153	req, err := http.NewRequest("POST", urls, body)
29154	if err != nil {
29155		return nil, err
29156	}
29157	req.Header = reqHeaders
29158	googleapi.Expand(req.URL, map[string]string{
29159		"parent": c.parent,
29160	})
29161	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29162}
29163
29164// Do executes the "apigee.organizations.keyvaluemaps.create" call.
29165// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
29166// non-nil. Any non-2xx status code is an error. Response headers are in
29167// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
29168// response was returned at all) in error.(*googleapi.Error).Header. Use
29169// googleapi.IsNotModified to check whether the returned error was
29170// because http.StatusNotModified was returned.
29171func (c *OrganizationsKeyvaluemapsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
29172	gensupport.SetOptions(c.urlParams_, opts...)
29173	res, err := c.doRequest("json")
29174	if res != nil && res.StatusCode == http.StatusNotModified {
29175		if res.Body != nil {
29176			res.Body.Close()
29177		}
29178		return nil, &googleapi.Error{
29179			Code:   res.StatusCode,
29180			Header: res.Header,
29181		}
29182	}
29183	if err != nil {
29184		return nil, err
29185	}
29186	defer googleapi.CloseBody(res)
29187	if err := googleapi.CheckResponse(res); err != nil {
29188		return nil, err
29189	}
29190	ret := &GoogleCloudApigeeV1KeyValueMap{
29191		ServerResponse: googleapi.ServerResponse{
29192			Header:         res.Header,
29193			HTTPStatusCode: res.StatusCode,
29194		},
29195	}
29196	target := &ret
29197	if err := gensupport.DecodeResponse(target, res); err != nil {
29198		return nil, err
29199	}
29200	return ret, nil
29201	// {
29202	//   "description": "Creates a key value map in an organization.",
29203	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
29204	//   "httpMethod": "POST",
29205	//   "id": "apigee.organizations.keyvaluemaps.create",
29206	//   "parameterOrder": [
29207	//     "parent"
29208	//   ],
29209	//   "parameters": {
29210	//     "parent": {
29211	//       "description": "Required. The name of the organization in which to create the key value map\nfile. Must be of the form `organizations/{organization}`.",
29212	//       "location": "path",
29213	//       "pattern": "^organizations/[^/]+$",
29214	//       "required": true,
29215	//       "type": "string"
29216	//     }
29217	//   },
29218	//   "path": "v1/{+parent}/keyvaluemaps",
29219	//   "request": {
29220	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
29221	//   },
29222	//   "response": {
29223	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
29224	//   },
29225	//   "scopes": [
29226	//     "https://www.googleapis.com/auth/cloud-platform"
29227	//   ]
29228	// }
29229
29230}
29231
29232// method id "apigee.organizations.keyvaluemaps.delete":
29233
29234type OrganizationsKeyvaluemapsDeleteCall struct {
29235	s          *Service
29236	name       string
29237	urlParams_ gensupport.URLParams
29238	ctx_       context.Context
29239	header_    http.Header
29240}
29241
29242// Delete: Delete a key value map in an organization.
29243func (r *OrganizationsKeyvaluemapsService) Delete(name string) *OrganizationsKeyvaluemapsDeleteCall {
29244	c := &OrganizationsKeyvaluemapsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29245	c.name = name
29246	return c
29247}
29248
29249// Fields allows partial responses to be retrieved. See
29250// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29251// for more information.
29252func (c *OrganizationsKeyvaluemapsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsDeleteCall {
29253	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29254	return c
29255}
29256
29257// Context sets the context to be used in this call's Do method. Any
29258// pending HTTP request will be aborted if the provided context is
29259// canceled.
29260func (c *OrganizationsKeyvaluemapsDeleteCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsDeleteCall {
29261	c.ctx_ = ctx
29262	return c
29263}
29264
29265// Header returns an http.Header that can be modified by the caller to
29266// add HTTP headers to the request.
29267func (c *OrganizationsKeyvaluemapsDeleteCall) Header() http.Header {
29268	if c.header_ == nil {
29269		c.header_ = make(http.Header)
29270	}
29271	return c.header_
29272}
29273
29274func (c *OrganizationsKeyvaluemapsDeleteCall) doRequest(alt string) (*http.Response, error) {
29275	reqHeaders := make(http.Header)
29276	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29277	for k, v := range c.header_ {
29278		reqHeaders[k] = v
29279	}
29280	reqHeaders.Set("User-Agent", c.s.userAgent())
29281	var body io.Reader = nil
29282	c.urlParams_.Set("alt", alt)
29283	c.urlParams_.Set("prettyPrint", "false")
29284	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29285	urls += "?" + c.urlParams_.Encode()
29286	req, err := http.NewRequest("DELETE", urls, body)
29287	if err != nil {
29288		return nil, err
29289	}
29290	req.Header = reqHeaders
29291	googleapi.Expand(req.URL, map[string]string{
29292		"name": c.name,
29293	})
29294	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29295}
29296
29297// Do executes the "apigee.organizations.keyvaluemaps.delete" call.
29298// Exactly one of *GoogleCloudApigeeV1KeyValueMap or error will be
29299// non-nil. Any non-2xx status code is an error. Response headers are in
29300// either *GoogleCloudApigeeV1KeyValueMap.ServerResponse.Header or (if a
29301// response was returned at all) in error.(*googleapi.Error).Header. Use
29302// googleapi.IsNotModified to check whether the returned error was
29303// because http.StatusNotModified was returned.
29304func (c *OrganizationsKeyvaluemapsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1KeyValueMap, error) {
29305	gensupport.SetOptions(c.urlParams_, opts...)
29306	res, err := c.doRequest("json")
29307	if res != nil && res.StatusCode == http.StatusNotModified {
29308		if res.Body != nil {
29309			res.Body.Close()
29310		}
29311		return nil, &googleapi.Error{
29312			Code:   res.StatusCode,
29313			Header: res.Header,
29314		}
29315	}
29316	if err != nil {
29317		return nil, err
29318	}
29319	defer googleapi.CloseBody(res)
29320	if err := googleapi.CheckResponse(res); err != nil {
29321		return nil, err
29322	}
29323	ret := &GoogleCloudApigeeV1KeyValueMap{
29324		ServerResponse: googleapi.ServerResponse{
29325			Header:         res.Header,
29326			HTTPStatusCode: res.StatusCode,
29327		},
29328	}
29329	target := &ret
29330	if err := gensupport.DecodeResponse(target, res); err != nil {
29331		return nil, err
29332	}
29333	return ret, nil
29334	// {
29335	//   "description": "Delete a key value map in an organization.",
29336	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps/{keyvaluemapsId}",
29337	//   "httpMethod": "DELETE",
29338	//   "id": "apigee.organizations.keyvaluemaps.delete",
29339	//   "parameterOrder": [
29340	//     "name"
29341	//   ],
29342	//   "parameters": {
29343	//     "name": {
29344	//       "description": "Required. The name of the key value map.\nMust be of the form\n`organizations/{organization}/keyvaluemaps/{keyvaluemap}`.",
29345	//       "location": "path",
29346	//       "pattern": "^organizations/[^/]+/keyvaluemaps/[^/]+$",
29347	//       "required": true,
29348	//       "type": "string"
29349	//     }
29350	//   },
29351	//   "path": "v1/{+name}",
29352	//   "response": {
29353	//     "$ref": "GoogleCloudApigeeV1KeyValueMap"
29354	//   },
29355	//   "scopes": [
29356	//     "https://www.googleapis.com/auth/cloud-platform"
29357	//   ]
29358	// }
29359
29360}
29361
29362// method id "apigee.organizations.keyvaluemaps.list":
29363
29364type OrganizationsKeyvaluemapsListCall struct {
29365	s            *Service
29366	parent       string
29367	urlParams_   gensupport.URLParams
29368	ifNoneMatch_ string
29369	ctx_         context.Context
29370	header_      http.Header
29371}
29372
29373// List: List key value maps in an organization.
29374func (r *OrganizationsKeyvaluemapsService) List(parent string) *OrganizationsKeyvaluemapsListCall {
29375	c := &OrganizationsKeyvaluemapsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29376	c.parent = parent
29377	return c
29378}
29379
29380// Fields allows partial responses to be retrieved. See
29381// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29382// for more information.
29383func (c *OrganizationsKeyvaluemapsListCall) Fields(s ...googleapi.Field) *OrganizationsKeyvaluemapsListCall {
29384	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29385	return c
29386}
29387
29388// IfNoneMatch sets the optional parameter which makes the operation
29389// fail if the object's ETag matches the given value. This is useful for
29390// getting updates only after the object has changed since the last
29391// request. Use googleapi.IsNotModified to check whether the response
29392// error from Do is the result of In-None-Match.
29393func (c *OrganizationsKeyvaluemapsListCall) IfNoneMatch(entityTag string) *OrganizationsKeyvaluemapsListCall {
29394	c.ifNoneMatch_ = entityTag
29395	return c
29396}
29397
29398// Context sets the context to be used in this call's Do method. Any
29399// pending HTTP request will be aborted if the provided context is
29400// canceled.
29401func (c *OrganizationsKeyvaluemapsListCall) Context(ctx context.Context) *OrganizationsKeyvaluemapsListCall {
29402	c.ctx_ = ctx
29403	return c
29404}
29405
29406// Header returns an http.Header that can be modified by the caller to
29407// add HTTP headers to the request.
29408func (c *OrganizationsKeyvaluemapsListCall) Header() http.Header {
29409	if c.header_ == nil {
29410		c.header_ = make(http.Header)
29411	}
29412	return c.header_
29413}
29414
29415func (c *OrganizationsKeyvaluemapsListCall) doRequest(alt string) (*http.Response, error) {
29416	reqHeaders := make(http.Header)
29417	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29418	for k, v := range c.header_ {
29419		reqHeaders[k] = v
29420	}
29421	reqHeaders.Set("User-Agent", c.s.userAgent())
29422	if c.ifNoneMatch_ != "" {
29423		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29424	}
29425	var body io.Reader = nil
29426	c.urlParams_.Set("alt", alt)
29427	c.urlParams_.Set("prettyPrint", "false")
29428	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/keyvaluemaps")
29429	urls += "?" + c.urlParams_.Encode()
29430	req, err := http.NewRequest("GET", urls, body)
29431	if err != nil {
29432		return nil, err
29433	}
29434	req.Header = reqHeaders
29435	googleapi.Expand(req.URL, map[string]string{
29436		"parent": c.parent,
29437	})
29438	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29439}
29440
29441// Do executes the "apigee.organizations.keyvaluemaps.list" call.
29442func (c *OrganizationsKeyvaluemapsListCall) Do(opts ...googleapi.CallOption) error {
29443	gensupport.SetOptions(c.urlParams_, opts...)
29444	res, err := c.doRequest("json")
29445	if err != nil {
29446		return err
29447	}
29448	defer googleapi.CloseBody(res)
29449	if err := googleapi.CheckResponse(res); err != nil {
29450		return err
29451	}
29452	return nil
29453	// {
29454	//   "description": "List key value maps in an organization.",
29455	//   "flatPath": "v1/organizations/{organizationsId}/keyvaluemaps",
29456	//   "httpMethod": "GET",
29457	//   "id": "apigee.organizations.keyvaluemaps.list",
29458	//   "parameterOrder": [
29459	//     "parent"
29460	//   ],
29461	//   "parameters": {
29462	//     "parent": {
29463	//       "description": "Required. The name of the organization in which to list key value maps.\nMust be of the form\n`organizations/{organization}`.",
29464	//       "location": "path",
29465	//       "pattern": "^organizations/[^/]+$",
29466	//       "required": true,
29467	//       "type": "string"
29468	//     }
29469	//   },
29470	//   "path": "v1/{+parent}/keyvaluemaps",
29471	//   "response": {
29472	//     "items": {
29473	//       "type": "any"
29474	//     },
29475	//     "type": "array"
29476	//   },
29477	//   "scopes": [
29478	//     "https://www.googleapis.com/auth/cloud-platform"
29479	//   ]
29480	// }
29481
29482}
29483
29484// method id "apigee.organizations.operations.cancel":
29485
29486type OrganizationsOperationsCancelCall struct {
29487	s                                       *Service
29488	name                                    string
29489	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
29490	urlParams_                              gensupport.URLParams
29491	ctx_                                    context.Context
29492	header_                                 http.Header
29493}
29494
29495// Cancel: Starts asynchronous cancellation on a long-running operation.
29496//  The server
29497// makes a best effort to cancel the operation, but success is
29498// not
29499// guaranteed.  If the server doesn't support this method, it
29500// returns
29501// `google.rpc.Code.UNIMPLEMENTED`.  Clients can
29502// use
29503// Operations.GetOperation or
29504// other methods to check whether the cancellation succeeded or whether
29505// the
29506// operation completed despite cancellation. On successful
29507// cancellation,
29508// the operation is not deleted; instead, it becomes an operation
29509// with
29510// an Operation.error value with a google.rpc.Status.code of
29511// 1,
29512// corresponding to `Code.CANCELLED`.
29513func (r *OrganizationsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *OrganizationsOperationsCancelCall {
29514	c := &OrganizationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29515	c.name = name
29516	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
29517	return c
29518}
29519
29520// Fields allows partial responses to be retrieved. See
29521// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29522// for more information.
29523func (c *OrganizationsOperationsCancelCall) Fields(s ...googleapi.Field) *OrganizationsOperationsCancelCall {
29524	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29525	return c
29526}
29527
29528// Context sets the context to be used in this call's Do method. Any
29529// pending HTTP request will be aborted if the provided context is
29530// canceled.
29531func (c *OrganizationsOperationsCancelCall) Context(ctx context.Context) *OrganizationsOperationsCancelCall {
29532	c.ctx_ = ctx
29533	return c
29534}
29535
29536// Header returns an http.Header that can be modified by the caller to
29537// add HTTP headers to the request.
29538func (c *OrganizationsOperationsCancelCall) Header() http.Header {
29539	if c.header_ == nil {
29540		c.header_ = make(http.Header)
29541	}
29542	return c.header_
29543}
29544
29545func (c *OrganizationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
29546	reqHeaders := make(http.Header)
29547	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29548	for k, v := range c.header_ {
29549		reqHeaders[k] = v
29550	}
29551	reqHeaders.Set("User-Agent", c.s.userAgent())
29552	var body io.Reader = nil
29553	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
29554	if err != nil {
29555		return nil, err
29556	}
29557	reqHeaders.Set("Content-Type", "application/json")
29558	c.urlParams_.Set("alt", alt)
29559	c.urlParams_.Set("prettyPrint", "false")
29560	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
29561	urls += "?" + c.urlParams_.Encode()
29562	req, err := http.NewRequest("POST", urls, body)
29563	if err != nil {
29564		return nil, err
29565	}
29566	req.Header = reqHeaders
29567	googleapi.Expand(req.URL, map[string]string{
29568		"name": c.name,
29569	})
29570	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29571}
29572
29573// Do executes the "apigee.organizations.operations.cancel" call.
29574// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29575// non-2xx status code is an error. Response headers are in either
29576// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29577// returned at all) in error.(*googleapi.Error).Header. Use
29578// googleapi.IsNotModified to check whether the returned error was
29579// because http.StatusNotModified was returned.
29580func (c *OrganizationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29581	gensupport.SetOptions(c.urlParams_, opts...)
29582	res, err := c.doRequest("json")
29583	if res != nil && res.StatusCode == http.StatusNotModified {
29584		if res.Body != nil {
29585			res.Body.Close()
29586		}
29587		return nil, &googleapi.Error{
29588			Code:   res.StatusCode,
29589			Header: res.Header,
29590		}
29591	}
29592	if err != nil {
29593		return nil, err
29594	}
29595	defer googleapi.CloseBody(res)
29596	if err := googleapi.CheckResponse(res); err != nil {
29597		return nil, err
29598	}
29599	ret := &GoogleProtobufEmpty{
29600		ServerResponse: googleapi.ServerResponse{
29601			Header:         res.Header,
29602			HTTPStatusCode: res.StatusCode,
29603		},
29604	}
29605	target := &ret
29606	if err := gensupport.DecodeResponse(target, res); err != nil {
29607		return nil, err
29608	}
29609	return ret, nil
29610	// {
29611	//   "description": "Starts asynchronous cancellation on a long-running operation.  The server\nmakes a best effort to cancel the operation, but success is not\nguaranteed.  If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.  Clients can use\nOperations.GetOperation or\nother methods to check whether the cancellation succeeded or whether the\noperation completed despite cancellation. On successful cancellation,\nthe operation is not deleted; instead, it becomes an operation with\nan Operation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CANCELLED`.",
29612	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}:cancel",
29613	//   "httpMethod": "POST",
29614	//   "id": "apigee.organizations.operations.cancel",
29615	//   "parameterOrder": [
29616	//     "name"
29617	//   ],
29618	//   "parameters": {
29619	//     "name": {
29620	//       "description": "The name of the operation resource to be cancelled.",
29621	//       "location": "path",
29622	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
29623	//       "required": true,
29624	//       "type": "string"
29625	//     }
29626	//   },
29627	//   "path": "v1/{+name}:cancel",
29628	//   "request": {
29629	//     "$ref": "GoogleLongrunningCancelOperationRequest"
29630	//   },
29631	//   "response": {
29632	//     "$ref": "GoogleProtobufEmpty"
29633	//   },
29634	//   "scopes": [
29635	//     "https://www.googleapis.com/auth/cloud-platform"
29636	//   ]
29637	// }
29638
29639}
29640
29641// method id "apigee.organizations.operations.delete":
29642
29643type OrganizationsOperationsDeleteCall struct {
29644	s          *Service
29645	name       string
29646	urlParams_ gensupport.URLParams
29647	ctx_       context.Context
29648	header_    http.Header
29649}
29650
29651// Delete: Deletes a long-running operation. This method indicates that
29652// the client is
29653// no longer interested in the operation result. It does not cancel
29654// the
29655// operation. If the server doesn't support this method, it
29656// returns
29657// `google.rpc.Code.UNIMPLEMENTED`.
29658func (r *OrganizationsOperationsService) Delete(name string) *OrganizationsOperationsDeleteCall {
29659	c := &OrganizationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29660	c.name = name
29661	return c
29662}
29663
29664// Fields allows partial responses to be retrieved. See
29665// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29666// for more information.
29667func (c *OrganizationsOperationsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsOperationsDeleteCall {
29668	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29669	return c
29670}
29671
29672// Context sets the context to be used in this call's Do method. Any
29673// pending HTTP request will be aborted if the provided context is
29674// canceled.
29675func (c *OrganizationsOperationsDeleteCall) Context(ctx context.Context) *OrganizationsOperationsDeleteCall {
29676	c.ctx_ = ctx
29677	return c
29678}
29679
29680// Header returns an http.Header that can be modified by the caller to
29681// add HTTP headers to the request.
29682func (c *OrganizationsOperationsDeleteCall) Header() http.Header {
29683	if c.header_ == nil {
29684		c.header_ = make(http.Header)
29685	}
29686	return c.header_
29687}
29688
29689func (c *OrganizationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
29690	reqHeaders := make(http.Header)
29691	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29692	for k, v := range c.header_ {
29693		reqHeaders[k] = v
29694	}
29695	reqHeaders.Set("User-Agent", c.s.userAgent())
29696	var body io.Reader = nil
29697	c.urlParams_.Set("alt", alt)
29698	c.urlParams_.Set("prettyPrint", "false")
29699	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29700	urls += "?" + c.urlParams_.Encode()
29701	req, err := http.NewRequest("DELETE", urls, body)
29702	if err != nil {
29703		return nil, err
29704	}
29705	req.Header = reqHeaders
29706	googleapi.Expand(req.URL, map[string]string{
29707		"name": c.name,
29708	})
29709	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29710}
29711
29712// Do executes the "apigee.organizations.operations.delete" call.
29713// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any
29714// non-2xx status code is an error. Response headers are in either
29715// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was
29716// returned at all) in error.(*googleapi.Error).Header. Use
29717// googleapi.IsNotModified to check whether the returned error was
29718// because http.StatusNotModified was returned.
29719func (c *OrganizationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29720	gensupport.SetOptions(c.urlParams_, opts...)
29721	res, err := c.doRequest("json")
29722	if res != nil && res.StatusCode == http.StatusNotModified {
29723		if res.Body != nil {
29724			res.Body.Close()
29725		}
29726		return nil, &googleapi.Error{
29727			Code:   res.StatusCode,
29728			Header: res.Header,
29729		}
29730	}
29731	if err != nil {
29732		return nil, err
29733	}
29734	defer googleapi.CloseBody(res)
29735	if err := googleapi.CheckResponse(res); err != nil {
29736		return nil, err
29737	}
29738	ret := &GoogleProtobufEmpty{
29739		ServerResponse: googleapi.ServerResponse{
29740			Header:         res.Header,
29741			HTTPStatusCode: res.StatusCode,
29742		},
29743	}
29744	target := &ret
29745	if err := gensupport.DecodeResponse(target, res); err != nil {
29746		return nil, err
29747	}
29748	return ret, nil
29749	// {
29750	//   "description": "Deletes a long-running operation. This method indicates that the client is\nno longer interested in the operation result. It does not cancel the\noperation. If the server doesn't support this method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.",
29751	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
29752	//   "httpMethod": "DELETE",
29753	//   "id": "apigee.organizations.operations.delete",
29754	//   "parameterOrder": [
29755	//     "name"
29756	//   ],
29757	//   "parameters": {
29758	//     "name": {
29759	//       "description": "The name of the operation resource to be deleted.",
29760	//       "location": "path",
29761	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
29762	//       "required": true,
29763	//       "type": "string"
29764	//     }
29765	//   },
29766	//   "path": "v1/{+name}",
29767	//   "response": {
29768	//     "$ref": "GoogleProtobufEmpty"
29769	//   },
29770	//   "scopes": [
29771	//     "https://www.googleapis.com/auth/cloud-platform"
29772	//   ]
29773	// }
29774
29775}
29776
29777// method id "apigee.organizations.operations.get":
29778
29779type OrganizationsOperationsGetCall struct {
29780	s            *Service
29781	name         string
29782	urlParams_   gensupport.URLParams
29783	ifNoneMatch_ string
29784	ctx_         context.Context
29785	header_      http.Header
29786}
29787
29788// Get: Gets the latest state of a long-running operation.  Clients can
29789// use this
29790// method to poll the operation result at intervals as recommended by
29791// the API
29792// service.
29793func (r *OrganizationsOperationsService) Get(name string) *OrganizationsOperationsGetCall {
29794	c := &OrganizationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29795	c.name = name
29796	return c
29797}
29798
29799// Fields allows partial responses to be retrieved. See
29800// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29801// for more information.
29802func (c *OrganizationsOperationsGetCall) Fields(s ...googleapi.Field) *OrganizationsOperationsGetCall {
29803	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29804	return c
29805}
29806
29807// IfNoneMatch sets the optional parameter which makes the operation
29808// fail if the object's ETag matches the given value. This is useful for
29809// getting updates only after the object has changed since the last
29810// request. Use googleapi.IsNotModified to check whether the response
29811// error from Do is the result of In-None-Match.
29812func (c *OrganizationsOperationsGetCall) IfNoneMatch(entityTag string) *OrganizationsOperationsGetCall {
29813	c.ifNoneMatch_ = entityTag
29814	return c
29815}
29816
29817// Context sets the context to be used in this call's Do method. Any
29818// pending HTTP request will be aborted if the provided context is
29819// canceled.
29820func (c *OrganizationsOperationsGetCall) Context(ctx context.Context) *OrganizationsOperationsGetCall {
29821	c.ctx_ = ctx
29822	return c
29823}
29824
29825// Header returns an http.Header that can be modified by the caller to
29826// add HTTP headers to the request.
29827func (c *OrganizationsOperationsGetCall) Header() http.Header {
29828	if c.header_ == nil {
29829		c.header_ = make(http.Header)
29830	}
29831	return c.header_
29832}
29833
29834func (c *OrganizationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
29835	reqHeaders := make(http.Header)
29836	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
29837	for k, v := range c.header_ {
29838		reqHeaders[k] = v
29839	}
29840	reqHeaders.Set("User-Agent", c.s.userAgent())
29841	if c.ifNoneMatch_ != "" {
29842		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29843	}
29844	var body io.Reader = nil
29845	c.urlParams_.Set("alt", alt)
29846	c.urlParams_.Set("prettyPrint", "false")
29847	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
29848	urls += "?" + c.urlParams_.Encode()
29849	req, err := http.NewRequest("GET", urls, body)
29850	if err != nil {
29851		return nil, err
29852	}
29853	req.Header = reqHeaders
29854	googleapi.Expand(req.URL, map[string]string{
29855		"name": c.name,
29856	})
29857	return gensupport.SendRequest(c.ctx_, c.s.client, req)
29858}
29859
29860// Do executes the "apigee.organizations.operations.get" call.
29861// Exactly one of *GoogleLongrunningOperation or error will be non-nil.
29862// Any non-2xx status code is an error. Response headers are in either
29863// *GoogleLongrunningOperation.ServerResponse.Header or (if a response
29864// was returned at all) in error.(*googleapi.Error).Header. Use
29865// googleapi.IsNotModified to check whether the returned error was
29866// because http.StatusNotModified was returned.
29867func (c *OrganizationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29868	gensupport.SetOptions(c.urlParams_, opts...)
29869	res, err := c.doRequest("json")
29870	if res != nil && res.StatusCode == http.StatusNotModified {
29871		if res.Body != nil {
29872			res.Body.Close()
29873		}
29874		return nil, &googleapi.Error{
29875			Code:   res.StatusCode,
29876			Header: res.Header,
29877		}
29878	}
29879	if err != nil {
29880		return nil, err
29881	}
29882	defer googleapi.CloseBody(res)
29883	if err := googleapi.CheckResponse(res); err != nil {
29884		return nil, err
29885	}
29886	ret := &GoogleLongrunningOperation{
29887		ServerResponse: googleapi.ServerResponse{
29888			Header:         res.Header,
29889			HTTPStatusCode: res.StatusCode,
29890		},
29891	}
29892	target := &ret
29893	if err := gensupport.DecodeResponse(target, res); err != nil {
29894		return nil, err
29895	}
29896	return ret, nil
29897	// {
29898	//   "description": "Gets the latest state of a long-running operation.  Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
29899	//   "flatPath": "v1/organizations/{organizationsId}/operations/{operationsId}",
29900	//   "httpMethod": "GET",
29901	//   "id": "apigee.organizations.operations.get",
29902	//   "parameterOrder": [
29903	//     "name"
29904	//   ],
29905	//   "parameters": {
29906	//     "name": {
29907	//       "description": "The name of the operation resource.",
29908	//       "location": "path",
29909	//       "pattern": "^organizations/[^/]+/operations/[^/]+$",
29910	//       "required": true,
29911	//       "type": "string"
29912	//     }
29913	//   },
29914	//   "path": "v1/{+name}",
29915	//   "response": {
29916	//     "$ref": "GoogleLongrunningOperation"
29917	//   },
29918	//   "scopes": [
29919	//     "https://www.googleapis.com/auth/cloud-platform"
29920	//   ]
29921	// }
29922
29923}
29924
29925// method id "apigee.organizations.operations.list":
29926
29927type OrganizationsOperationsListCall struct {
29928	s            *Service
29929	name         string
29930	urlParams_   gensupport.URLParams
29931	ifNoneMatch_ string
29932	ctx_         context.Context
29933	header_      http.Header
29934}
29935
29936// List: Lists operations that match the specified filter in the
29937// request. If the
29938// server doesn't support this method, it returns
29939// `UNIMPLEMENTED`.
29940//
29941// NOTE: the `name` binding allows API services to override the
29942// binding
29943// to use different resource name schemes, such as `users/*/operations`.
29944// To
29945// override the binding, API services can add a binding such
29946// as
29947// "/v1/{name=users/*}/operations" to their service configuration.
29948// For backwards compatibility, the default name includes the
29949// operations
29950// collection id, however overriding users must ensure the name
29951// binding
29952// is the parent resource, without the operations collection id.
29953func (r *OrganizationsOperationsService) List(name string) *OrganizationsOperationsListCall {
29954	c := &OrganizationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29955	c.name = name
29956	return c
29957}
29958
29959// Filter sets the optional parameter "filter": The standard list
29960// filter.
29961func (c *OrganizationsOperationsListCall) Filter(filter string) *OrganizationsOperationsListCall {
29962	c.urlParams_.Set("filter", filter)
29963	return c
29964}
29965
29966// PageSize sets the optional parameter "pageSize": The standard list
29967// page size.
29968func (c *OrganizationsOperationsListCall) PageSize(pageSize int64) *OrganizationsOperationsListCall {
29969	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29970	return c
29971}
29972
29973// PageToken sets the optional parameter "pageToken": The standard list
29974// page token.
29975func (c *OrganizationsOperationsListCall) PageToken(pageToken string) *OrganizationsOperationsListCall {
29976	c.urlParams_.Set("pageToken", pageToken)
29977	return c
29978}
29979
29980// Fields allows partial responses to be retrieved. See
29981// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
29982// for more information.
29983func (c *OrganizationsOperationsListCall) Fields(s ...googleapi.Field) *OrganizationsOperationsListCall {
29984	c.urlParams_.Set("fields", googleapi.CombineFields(s))
29985	return c
29986}
29987
29988// IfNoneMatch sets the optional parameter which makes the operation
29989// fail if the object's ETag matches the given value. This is useful for
29990// getting updates only after the object has changed since the last
29991// request. Use googleapi.IsNotModified to check whether the response
29992// error from Do is the result of In-None-Match.
29993func (c *OrganizationsOperationsListCall) IfNoneMatch(entityTag string) *OrganizationsOperationsListCall {
29994	c.ifNoneMatch_ = entityTag
29995	return c
29996}
29997
29998// Context sets the context to be used in this call's Do method. Any
29999// pending HTTP request will be aborted if the provided context is
30000// canceled.
30001func (c *OrganizationsOperationsListCall) Context(ctx context.Context) *OrganizationsOperationsListCall {
30002	c.ctx_ = ctx
30003	return c
30004}
30005
30006// Header returns an http.Header that can be modified by the caller to
30007// add HTTP headers to the request.
30008func (c *OrganizationsOperationsListCall) Header() http.Header {
30009	if c.header_ == nil {
30010		c.header_ = make(http.Header)
30011	}
30012	return c.header_
30013}
30014
30015func (c *OrganizationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
30016	reqHeaders := make(http.Header)
30017	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30018	for k, v := range c.header_ {
30019		reqHeaders[k] = v
30020	}
30021	reqHeaders.Set("User-Agent", c.s.userAgent())
30022	if c.ifNoneMatch_ != "" {
30023		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30024	}
30025	var body io.Reader = nil
30026	c.urlParams_.Set("alt", alt)
30027	c.urlParams_.Set("prettyPrint", "false")
30028	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
30029	urls += "?" + c.urlParams_.Encode()
30030	req, err := http.NewRequest("GET", urls, body)
30031	if err != nil {
30032		return nil, err
30033	}
30034	req.Header = reqHeaders
30035	googleapi.Expand(req.URL, map[string]string{
30036		"name": c.name,
30037	})
30038	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30039}
30040
30041// Do executes the "apigee.organizations.operations.list" call.
30042// Exactly one of *GoogleLongrunningListOperationsResponse or error will
30043// be non-nil. Any non-2xx status code is an error. Response headers are
30044// in either
30045// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if
30046// a response was returned at all) in error.(*googleapi.Error).Header.
30047// Use googleapi.IsNotModified to check whether the returned error was
30048// because http.StatusNotModified was returned.
30049func (c *OrganizationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
30050	gensupport.SetOptions(c.urlParams_, opts...)
30051	res, err := c.doRequest("json")
30052	if res != nil && res.StatusCode == http.StatusNotModified {
30053		if res.Body != nil {
30054			res.Body.Close()
30055		}
30056		return nil, &googleapi.Error{
30057			Code:   res.StatusCode,
30058			Header: res.Header,
30059		}
30060	}
30061	if err != nil {
30062		return nil, err
30063	}
30064	defer googleapi.CloseBody(res)
30065	if err := googleapi.CheckResponse(res); err != nil {
30066		return nil, err
30067	}
30068	ret := &GoogleLongrunningListOperationsResponse{
30069		ServerResponse: googleapi.ServerResponse{
30070			Header:         res.Header,
30071			HTTPStatusCode: res.StatusCode,
30072		},
30073	}
30074	target := &ret
30075	if err := gensupport.DecodeResponse(target, res); err != nil {
30076		return nil, err
30077	}
30078	return ret, nil
30079	// {
30080	//   "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`. To\noverride the binding, API services can add a binding such as\n`\"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards compatibility, the default name includes the operations\ncollection id, however overriding users must ensure the name binding\nis the parent resource, without the operations collection id.",
30081	//   "flatPath": "v1/organizations/{organizationsId}/operations",
30082	//   "httpMethod": "GET",
30083	//   "id": "apigee.organizations.operations.list",
30084	//   "parameterOrder": [
30085	//     "name"
30086	//   ],
30087	//   "parameters": {
30088	//     "filter": {
30089	//       "description": "The standard list filter.",
30090	//       "location": "query",
30091	//       "type": "string"
30092	//     },
30093	//     "name": {
30094	//       "description": "The name of the operation's parent resource.",
30095	//       "location": "path",
30096	//       "pattern": "^organizations/[^/]+$",
30097	//       "required": true,
30098	//       "type": "string"
30099	//     },
30100	//     "pageSize": {
30101	//       "description": "The standard list page size.",
30102	//       "format": "int32",
30103	//       "location": "query",
30104	//       "type": "integer"
30105	//     },
30106	//     "pageToken": {
30107	//       "description": "The standard list page token.",
30108	//       "location": "query",
30109	//       "type": "string"
30110	//     }
30111	//   },
30112	//   "path": "v1/{+name}/operations",
30113	//   "response": {
30114	//     "$ref": "GoogleLongrunningListOperationsResponse"
30115	//   },
30116	//   "scopes": [
30117	//     "https://www.googleapis.com/auth/cloud-platform"
30118	//   ]
30119	// }
30120
30121}
30122
30123// Pages invokes f for each page of results.
30124// A non-nil error returned from f will halt the iteration.
30125// The provided context supersedes any context provided to the Context method.
30126func (c *OrganizationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
30127	c.ctx_ = ctx
30128	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
30129	for {
30130		x, err := c.Do()
30131		if err != nil {
30132			return err
30133		}
30134		if err := f(x); err != nil {
30135			return err
30136		}
30137		if x.NextPageToken == "" {
30138			return nil
30139		}
30140		c.PageToken(x.NextPageToken)
30141	}
30142}
30143
30144// method id "apigee.organizations.reports.create":
30145
30146type OrganizationsReportsCreateCall struct {
30147	s                               *Service
30148	parent                          string
30149	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
30150	urlParams_                      gensupport.URLParams
30151	ctx_                            context.Context
30152	header_                         http.Header
30153}
30154
30155// Create: Creates a Custom Report for an Organization. A Custom
30156// Report
30157// provides Apigee Customers to create custom dashboards in addition
30158// to the standard dashboards which are provided. The Custom Report in
30159// its
30160// simplest form contains specifications about metrics, dimensions
30161// and
30162// filters. It is important to note that the custom report by itself
30163// does not
30164// provide an executable entity. The Edge UI converts the custom
30165// report
30166// definition into an analytics query and displays the result in a
30167// chart.
30168func (r *OrganizationsReportsService) Create(parent string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsCreateCall {
30169	c := &OrganizationsReportsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30170	c.parent = parent
30171	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
30172	return c
30173}
30174
30175// Fields allows partial responses to be retrieved. See
30176// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30177// for more information.
30178func (c *OrganizationsReportsCreateCall) Fields(s ...googleapi.Field) *OrganizationsReportsCreateCall {
30179	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30180	return c
30181}
30182
30183// Context sets the context to be used in this call's Do method. Any
30184// pending HTTP request will be aborted if the provided context is
30185// canceled.
30186func (c *OrganizationsReportsCreateCall) Context(ctx context.Context) *OrganizationsReportsCreateCall {
30187	c.ctx_ = ctx
30188	return c
30189}
30190
30191// Header returns an http.Header that can be modified by the caller to
30192// add HTTP headers to the request.
30193func (c *OrganizationsReportsCreateCall) Header() http.Header {
30194	if c.header_ == nil {
30195		c.header_ = make(http.Header)
30196	}
30197	return c.header_
30198}
30199
30200func (c *OrganizationsReportsCreateCall) doRequest(alt string) (*http.Response, error) {
30201	reqHeaders := make(http.Header)
30202	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30203	for k, v := range c.header_ {
30204		reqHeaders[k] = v
30205	}
30206	reqHeaders.Set("User-Agent", c.s.userAgent())
30207	var body io.Reader = nil
30208	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
30209	if err != nil {
30210		return nil, err
30211	}
30212	reqHeaders.Set("Content-Type", "application/json")
30213	c.urlParams_.Set("alt", alt)
30214	c.urlParams_.Set("prettyPrint", "false")
30215	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
30216	urls += "?" + c.urlParams_.Encode()
30217	req, err := http.NewRequest("POST", urls, body)
30218	if err != nil {
30219		return nil, err
30220	}
30221	req.Header = reqHeaders
30222	googleapi.Expand(req.URL, map[string]string{
30223		"parent": c.parent,
30224	})
30225	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30226}
30227
30228// Do executes the "apigee.organizations.reports.create" call.
30229// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
30230// non-nil. Any non-2xx status code is an error. Response headers are in
30231// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
30232// a response was returned at all) in error.(*googleapi.Error).Header.
30233// Use googleapi.IsNotModified to check whether the returned error was
30234// because http.StatusNotModified was returned.
30235func (c *OrganizationsReportsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
30236	gensupport.SetOptions(c.urlParams_, opts...)
30237	res, err := c.doRequest("json")
30238	if res != nil && res.StatusCode == http.StatusNotModified {
30239		if res.Body != nil {
30240			res.Body.Close()
30241		}
30242		return nil, &googleapi.Error{
30243			Code:   res.StatusCode,
30244			Header: res.Header,
30245		}
30246	}
30247	if err != nil {
30248		return nil, err
30249	}
30250	defer googleapi.CloseBody(res)
30251	if err := googleapi.CheckResponse(res); err != nil {
30252		return nil, err
30253	}
30254	ret := &GoogleCloudApigeeV1CustomReport{
30255		ServerResponse: googleapi.ServerResponse{
30256			Header:         res.Header,
30257			HTTPStatusCode: res.StatusCode,
30258		},
30259	}
30260	target := &ret
30261	if err := gensupport.DecodeResponse(target, res); err != nil {
30262		return nil, err
30263	}
30264	return ret, nil
30265	// {
30266	//   "description": "Creates a Custom Report for an Organization. A Custom Report\nprovides Apigee Customers to create custom dashboards in addition\nto the standard dashboards which are provided. The Custom Report in its\nsimplest form contains specifications about metrics, dimensions and\nfilters. It is important to note that the custom report by itself does not\nprovide an executable entity. The Edge UI converts the custom report\ndefinition into an analytics query and displays the result in a chart.",
30267	//   "flatPath": "v1/organizations/{organizationsId}/reports",
30268	//   "httpMethod": "POST",
30269	//   "id": "apigee.organizations.reports.create",
30270	//   "parameterOrder": [
30271	//     "parent"
30272	//   ],
30273	//   "parameters": {
30274	//     "parent": {
30275	//       "description": "Required. The parent organization name under which the Custom Report will\nbe created. Must be of the form:\n  `organizations/{organization_id}/reports`",
30276	//       "location": "path",
30277	//       "pattern": "^organizations/[^/]+$",
30278	//       "required": true,
30279	//       "type": "string"
30280	//     }
30281	//   },
30282	//   "path": "v1/{+parent}/reports",
30283	//   "request": {
30284	//     "$ref": "GoogleCloudApigeeV1CustomReport"
30285	//   },
30286	//   "response": {
30287	//     "$ref": "GoogleCloudApigeeV1CustomReport"
30288	//   },
30289	//   "scopes": [
30290	//     "https://www.googleapis.com/auth/cloud-platform"
30291	//   ]
30292	// }
30293
30294}
30295
30296// method id "apigee.organizations.reports.delete":
30297
30298type OrganizationsReportsDeleteCall struct {
30299	s          *Service
30300	name       string
30301	urlParams_ gensupport.URLParams
30302	ctx_       context.Context
30303	header_    http.Header
30304}
30305
30306// Delete: Deletes an existing custom report definition
30307func (r *OrganizationsReportsService) Delete(name string) *OrganizationsReportsDeleteCall {
30308	c := &OrganizationsReportsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30309	c.name = name
30310	return c
30311}
30312
30313// Fields allows partial responses to be retrieved. See
30314// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30315// for more information.
30316func (c *OrganizationsReportsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsReportsDeleteCall {
30317	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30318	return c
30319}
30320
30321// Context sets the context to be used in this call's Do method. Any
30322// pending HTTP request will be aborted if the provided context is
30323// canceled.
30324func (c *OrganizationsReportsDeleteCall) Context(ctx context.Context) *OrganizationsReportsDeleteCall {
30325	c.ctx_ = ctx
30326	return c
30327}
30328
30329// Header returns an http.Header that can be modified by the caller to
30330// add HTTP headers to the request.
30331func (c *OrganizationsReportsDeleteCall) Header() http.Header {
30332	if c.header_ == nil {
30333		c.header_ = make(http.Header)
30334	}
30335	return c.header_
30336}
30337
30338func (c *OrganizationsReportsDeleteCall) doRequest(alt string) (*http.Response, error) {
30339	reqHeaders := make(http.Header)
30340	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30341	for k, v := range c.header_ {
30342		reqHeaders[k] = v
30343	}
30344	reqHeaders.Set("User-Agent", c.s.userAgent())
30345	var body io.Reader = nil
30346	c.urlParams_.Set("alt", alt)
30347	c.urlParams_.Set("prettyPrint", "false")
30348	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30349	urls += "?" + c.urlParams_.Encode()
30350	req, err := http.NewRequest("DELETE", urls, body)
30351	if err != nil {
30352		return nil, err
30353	}
30354	req.Header = reqHeaders
30355	googleapi.Expand(req.URL, map[string]string{
30356		"name": c.name,
30357	})
30358	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30359}
30360
30361// Do executes the "apigee.organizations.reports.delete" call.
30362// Exactly one of *GoogleCloudApigeeV1DeleteCustomReportResponse or
30363// error will be non-nil. Any non-2xx status code is an error. Response
30364// headers are in either
30365// *GoogleCloudApigeeV1DeleteCustomReportResponse.ServerResponse.Header
30366// or (if a response was returned at all) in
30367// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30368// whether the returned error was because http.StatusNotModified was
30369// returned.
30370func (c *OrganizationsReportsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1DeleteCustomReportResponse, error) {
30371	gensupport.SetOptions(c.urlParams_, opts...)
30372	res, err := c.doRequest("json")
30373	if res != nil && res.StatusCode == http.StatusNotModified {
30374		if res.Body != nil {
30375			res.Body.Close()
30376		}
30377		return nil, &googleapi.Error{
30378			Code:   res.StatusCode,
30379			Header: res.Header,
30380		}
30381	}
30382	if err != nil {
30383		return nil, err
30384	}
30385	defer googleapi.CloseBody(res)
30386	if err := googleapi.CheckResponse(res); err != nil {
30387		return nil, err
30388	}
30389	ret := &GoogleCloudApigeeV1DeleteCustomReportResponse{
30390		ServerResponse: googleapi.ServerResponse{
30391			Header:         res.Header,
30392			HTTPStatusCode: res.StatusCode,
30393		},
30394	}
30395	target := &ret
30396	if err := gensupport.DecodeResponse(target, res); err != nil {
30397		return nil, err
30398	}
30399	return ret, nil
30400	// {
30401	//   "description": "Deletes an existing custom report definition",
30402	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
30403	//   "httpMethod": "DELETE",
30404	//   "id": "apigee.organizations.reports.delete",
30405	//   "parameterOrder": [
30406	//     "name"
30407	//   ],
30408	//   "parameters": {
30409	//     "name": {
30410	//       "description": "Required. Custom Report name of the form:\n  `organizations/{organization_id}/reports/{report_name}`",
30411	//       "location": "path",
30412	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
30413	//       "required": true,
30414	//       "type": "string"
30415	//     }
30416	//   },
30417	//   "path": "v1/{+name}",
30418	//   "response": {
30419	//     "$ref": "GoogleCloudApigeeV1DeleteCustomReportResponse"
30420	//   },
30421	//   "scopes": [
30422	//     "https://www.googleapis.com/auth/cloud-platform"
30423	//   ]
30424	// }
30425
30426}
30427
30428// method id "apigee.organizations.reports.get":
30429
30430type OrganizationsReportsGetCall struct {
30431	s            *Service
30432	name         string
30433	urlParams_   gensupport.URLParams
30434	ifNoneMatch_ string
30435	ctx_         context.Context
30436	header_      http.Header
30437}
30438
30439// Get: Retrieve a custom report definition.
30440func (r *OrganizationsReportsService) Get(name string) *OrganizationsReportsGetCall {
30441	c := &OrganizationsReportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30442	c.name = name
30443	return c
30444}
30445
30446// Fields allows partial responses to be retrieved. See
30447// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30448// for more information.
30449func (c *OrganizationsReportsGetCall) Fields(s ...googleapi.Field) *OrganizationsReportsGetCall {
30450	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30451	return c
30452}
30453
30454// IfNoneMatch sets the optional parameter which makes the operation
30455// fail if the object's ETag matches the given value. This is useful for
30456// getting updates only after the object has changed since the last
30457// request. Use googleapi.IsNotModified to check whether the response
30458// error from Do is the result of In-None-Match.
30459func (c *OrganizationsReportsGetCall) IfNoneMatch(entityTag string) *OrganizationsReportsGetCall {
30460	c.ifNoneMatch_ = entityTag
30461	return c
30462}
30463
30464// Context sets the context to be used in this call's Do method. Any
30465// pending HTTP request will be aborted if the provided context is
30466// canceled.
30467func (c *OrganizationsReportsGetCall) Context(ctx context.Context) *OrganizationsReportsGetCall {
30468	c.ctx_ = ctx
30469	return c
30470}
30471
30472// Header returns an http.Header that can be modified by the caller to
30473// add HTTP headers to the request.
30474func (c *OrganizationsReportsGetCall) Header() http.Header {
30475	if c.header_ == nil {
30476		c.header_ = make(http.Header)
30477	}
30478	return c.header_
30479}
30480
30481func (c *OrganizationsReportsGetCall) doRequest(alt string) (*http.Response, error) {
30482	reqHeaders := make(http.Header)
30483	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30484	for k, v := range c.header_ {
30485		reqHeaders[k] = v
30486	}
30487	reqHeaders.Set("User-Agent", c.s.userAgent())
30488	if c.ifNoneMatch_ != "" {
30489		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30490	}
30491	var body io.Reader = nil
30492	c.urlParams_.Set("alt", alt)
30493	c.urlParams_.Set("prettyPrint", "false")
30494	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30495	urls += "?" + c.urlParams_.Encode()
30496	req, err := http.NewRequest("GET", urls, body)
30497	if err != nil {
30498		return nil, err
30499	}
30500	req.Header = reqHeaders
30501	googleapi.Expand(req.URL, map[string]string{
30502		"name": c.name,
30503	})
30504	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30505}
30506
30507// Do executes the "apigee.organizations.reports.get" call.
30508// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
30509// non-nil. Any non-2xx status code is an error. Response headers are in
30510// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
30511// a response was returned at all) in error.(*googleapi.Error).Header.
30512// Use googleapi.IsNotModified to check whether the returned error was
30513// because http.StatusNotModified was returned.
30514func (c *OrganizationsReportsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
30515	gensupport.SetOptions(c.urlParams_, opts...)
30516	res, err := c.doRequest("json")
30517	if res != nil && res.StatusCode == http.StatusNotModified {
30518		if res.Body != nil {
30519			res.Body.Close()
30520		}
30521		return nil, &googleapi.Error{
30522			Code:   res.StatusCode,
30523			Header: res.Header,
30524		}
30525	}
30526	if err != nil {
30527		return nil, err
30528	}
30529	defer googleapi.CloseBody(res)
30530	if err := googleapi.CheckResponse(res); err != nil {
30531		return nil, err
30532	}
30533	ret := &GoogleCloudApigeeV1CustomReport{
30534		ServerResponse: googleapi.ServerResponse{
30535			Header:         res.Header,
30536			HTTPStatusCode: res.StatusCode,
30537		},
30538	}
30539	target := &ret
30540	if err := gensupport.DecodeResponse(target, res); err != nil {
30541		return nil, err
30542	}
30543	return ret, nil
30544	// {
30545	//   "description": "Retrieve a custom report definition.",
30546	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
30547	//   "httpMethod": "GET",
30548	//   "id": "apigee.organizations.reports.get",
30549	//   "parameterOrder": [
30550	//     "name"
30551	//   ],
30552	//   "parameters": {
30553	//     "name": {
30554	//       "description": "Required. Custom Report name of the form:\n  `organizations/{organization_id}/reports/{report_name}`",
30555	//       "location": "path",
30556	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
30557	//       "required": true,
30558	//       "type": "string"
30559	//     }
30560	//   },
30561	//   "path": "v1/{+name}",
30562	//   "response": {
30563	//     "$ref": "GoogleCloudApigeeV1CustomReport"
30564	//   },
30565	//   "scopes": [
30566	//     "https://www.googleapis.com/auth/cloud-platform"
30567	//   ]
30568	// }
30569
30570}
30571
30572// method id "apigee.organizations.reports.list":
30573
30574type OrganizationsReportsListCall struct {
30575	s            *Service
30576	parent       string
30577	urlParams_   gensupport.URLParams
30578	ifNoneMatch_ string
30579	ctx_         context.Context
30580	header_      http.Header
30581}
30582
30583// List: Return a list of Custom Reports
30584func (r *OrganizationsReportsService) List(parent string) *OrganizationsReportsListCall {
30585	c := &OrganizationsReportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30586	c.parent = parent
30587	return c
30588}
30589
30590// Expand sets the optional parameter "expand": Set to 'true' to get
30591// expanded details about each custom report.
30592func (c *OrganizationsReportsListCall) Expand(expand bool) *OrganizationsReportsListCall {
30593	c.urlParams_.Set("expand", fmt.Sprint(expand))
30594	return c
30595}
30596
30597// Fields allows partial responses to be retrieved. See
30598// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30599// for more information.
30600func (c *OrganizationsReportsListCall) Fields(s ...googleapi.Field) *OrganizationsReportsListCall {
30601	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30602	return c
30603}
30604
30605// IfNoneMatch sets the optional parameter which makes the operation
30606// fail if the object's ETag matches the given value. This is useful for
30607// getting updates only after the object has changed since the last
30608// request. Use googleapi.IsNotModified to check whether the response
30609// error from Do is the result of In-None-Match.
30610func (c *OrganizationsReportsListCall) IfNoneMatch(entityTag string) *OrganizationsReportsListCall {
30611	c.ifNoneMatch_ = entityTag
30612	return c
30613}
30614
30615// Context sets the context to be used in this call's Do method. Any
30616// pending HTTP request will be aborted if the provided context is
30617// canceled.
30618func (c *OrganizationsReportsListCall) Context(ctx context.Context) *OrganizationsReportsListCall {
30619	c.ctx_ = ctx
30620	return c
30621}
30622
30623// Header returns an http.Header that can be modified by the caller to
30624// add HTTP headers to the request.
30625func (c *OrganizationsReportsListCall) Header() http.Header {
30626	if c.header_ == nil {
30627		c.header_ = make(http.Header)
30628	}
30629	return c.header_
30630}
30631
30632func (c *OrganizationsReportsListCall) doRequest(alt string) (*http.Response, error) {
30633	reqHeaders := make(http.Header)
30634	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30635	for k, v := range c.header_ {
30636		reqHeaders[k] = v
30637	}
30638	reqHeaders.Set("User-Agent", c.s.userAgent())
30639	if c.ifNoneMatch_ != "" {
30640		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30641	}
30642	var body io.Reader = nil
30643	c.urlParams_.Set("alt", alt)
30644	c.urlParams_.Set("prettyPrint", "false")
30645	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/reports")
30646	urls += "?" + c.urlParams_.Encode()
30647	req, err := http.NewRequest("GET", urls, body)
30648	if err != nil {
30649		return nil, err
30650	}
30651	req.Header = reqHeaders
30652	googleapi.Expand(req.URL, map[string]string{
30653		"parent": c.parent,
30654	})
30655	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30656}
30657
30658// Do executes the "apigee.organizations.reports.list" call.
30659// Exactly one of *GoogleCloudApigeeV1ListCustomReportsResponse or error
30660// will be non-nil. Any non-2xx status code is an error. Response
30661// headers are in either
30662// *GoogleCloudApigeeV1ListCustomReportsResponse.ServerResponse.Header
30663// or (if a response was returned at all) in
30664// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
30665// whether the returned error was because http.StatusNotModified was
30666// returned.
30667func (c *OrganizationsReportsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListCustomReportsResponse, error) {
30668	gensupport.SetOptions(c.urlParams_, opts...)
30669	res, err := c.doRequest("json")
30670	if res != nil && res.StatusCode == http.StatusNotModified {
30671		if res.Body != nil {
30672			res.Body.Close()
30673		}
30674		return nil, &googleapi.Error{
30675			Code:   res.StatusCode,
30676			Header: res.Header,
30677		}
30678	}
30679	if err != nil {
30680		return nil, err
30681	}
30682	defer googleapi.CloseBody(res)
30683	if err := googleapi.CheckResponse(res); err != nil {
30684		return nil, err
30685	}
30686	ret := &GoogleCloudApigeeV1ListCustomReportsResponse{
30687		ServerResponse: googleapi.ServerResponse{
30688			Header:         res.Header,
30689			HTTPStatusCode: res.StatusCode,
30690		},
30691	}
30692	target := &ret
30693	if err := gensupport.DecodeResponse(target, res); err != nil {
30694		return nil, err
30695	}
30696	return ret, nil
30697	// {
30698	//   "description": "Return a list of Custom Reports",
30699	//   "flatPath": "v1/organizations/{organizationsId}/reports",
30700	//   "httpMethod": "GET",
30701	//   "id": "apigee.organizations.reports.list",
30702	//   "parameterOrder": [
30703	//     "parent"
30704	//   ],
30705	//   "parameters": {
30706	//     "expand": {
30707	//       "description": "Set to 'true' to get expanded details about each custom report.",
30708	//       "location": "query",
30709	//       "type": "boolean"
30710	//     },
30711	//     "parent": {
30712	//       "description": "Required. The parent organization name under which the API product will\nbe listed\n  `organizations/{organization_id}/reports`",
30713	//       "location": "path",
30714	//       "pattern": "^organizations/[^/]+$",
30715	//       "required": true,
30716	//       "type": "string"
30717	//     }
30718	//   },
30719	//   "path": "v1/{+parent}/reports",
30720	//   "response": {
30721	//     "$ref": "GoogleCloudApigeeV1ListCustomReportsResponse"
30722	//   },
30723	//   "scopes": [
30724	//     "https://www.googleapis.com/auth/cloud-platform"
30725	//   ]
30726	// }
30727
30728}
30729
30730// method id "apigee.organizations.reports.update":
30731
30732type OrganizationsReportsUpdateCall struct {
30733	s                               *Service
30734	name                            string
30735	googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport
30736	urlParams_                      gensupport.URLParams
30737	ctx_                            context.Context
30738	header_                         http.Header
30739}
30740
30741// Update: Update an existing custom report definition
30742func (r *OrganizationsReportsService) Update(name string, googlecloudapigeev1customreport *GoogleCloudApigeeV1CustomReport) *OrganizationsReportsUpdateCall {
30743	c := &OrganizationsReportsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30744	c.name = name
30745	c.googlecloudapigeev1customreport = googlecloudapigeev1customreport
30746	return c
30747}
30748
30749// Fields allows partial responses to be retrieved. See
30750// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30751// for more information.
30752func (c *OrganizationsReportsUpdateCall) Fields(s ...googleapi.Field) *OrganizationsReportsUpdateCall {
30753	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30754	return c
30755}
30756
30757// Context sets the context to be used in this call's Do method. Any
30758// pending HTTP request will be aborted if the provided context is
30759// canceled.
30760func (c *OrganizationsReportsUpdateCall) Context(ctx context.Context) *OrganizationsReportsUpdateCall {
30761	c.ctx_ = ctx
30762	return c
30763}
30764
30765// Header returns an http.Header that can be modified by the caller to
30766// add HTTP headers to the request.
30767func (c *OrganizationsReportsUpdateCall) Header() http.Header {
30768	if c.header_ == nil {
30769		c.header_ = make(http.Header)
30770	}
30771	return c.header_
30772}
30773
30774func (c *OrganizationsReportsUpdateCall) doRequest(alt string) (*http.Response, error) {
30775	reqHeaders := make(http.Header)
30776	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30777	for k, v := range c.header_ {
30778		reqHeaders[k] = v
30779	}
30780	reqHeaders.Set("User-Agent", c.s.userAgent())
30781	var body io.Reader = nil
30782	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudapigeev1customreport)
30783	if err != nil {
30784		return nil, err
30785	}
30786	reqHeaders.Set("Content-Type", "application/json")
30787	c.urlParams_.Set("alt", alt)
30788	c.urlParams_.Set("prettyPrint", "false")
30789	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
30790	urls += "?" + c.urlParams_.Encode()
30791	req, err := http.NewRequest("PUT", urls, body)
30792	if err != nil {
30793		return nil, err
30794	}
30795	req.Header = reqHeaders
30796	googleapi.Expand(req.URL, map[string]string{
30797		"name": c.name,
30798	})
30799	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30800}
30801
30802// Do executes the "apigee.organizations.reports.update" call.
30803// Exactly one of *GoogleCloudApigeeV1CustomReport or error will be
30804// non-nil. Any non-2xx status code is an error. Response headers are in
30805// either *GoogleCloudApigeeV1CustomReport.ServerResponse.Header or (if
30806// a response was returned at all) in error.(*googleapi.Error).Header.
30807// Use googleapi.IsNotModified to check whether the returned error was
30808// because http.StatusNotModified was returned.
30809func (c *OrganizationsReportsUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1CustomReport, error) {
30810	gensupport.SetOptions(c.urlParams_, opts...)
30811	res, err := c.doRequest("json")
30812	if res != nil && res.StatusCode == http.StatusNotModified {
30813		if res.Body != nil {
30814			res.Body.Close()
30815		}
30816		return nil, &googleapi.Error{
30817			Code:   res.StatusCode,
30818			Header: res.Header,
30819		}
30820	}
30821	if err != nil {
30822		return nil, err
30823	}
30824	defer googleapi.CloseBody(res)
30825	if err := googleapi.CheckResponse(res); err != nil {
30826		return nil, err
30827	}
30828	ret := &GoogleCloudApigeeV1CustomReport{
30829		ServerResponse: googleapi.ServerResponse{
30830			Header:         res.Header,
30831			HTTPStatusCode: res.StatusCode,
30832		},
30833	}
30834	target := &ret
30835	if err := gensupport.DecodeResponse(target, res); err != nil {
30836		return nil, err
30837	}
30838	return ret, nil
30839	// {
30840	//   "description": "Update an existing custom report definition",
30841	//   "flatPath": "v1/organizations/{organizationsId}/reports/{reportsId}",
30842	//   "httpMethod": "PUT",
30843	//   "id": "apigee.organizations.reports.update",
30844	//   "parameterOrder": [
30845	//     "name"
30846	//   ],
30847	//   "parameters": {
30848	//     "name": {
30849	//       "description": "Required. Custom Report name of the form:\n  `organizations/{organization_id}/reports/{report_name}`",
30850	//       "location": "path",
30851	//       "pattern": "^organizations/[^/]+/reports/[^/]+$",
30852	//       "required": true,
30853	//       "type": "string"
30854	//     }
30855	//   },
30856	//   "path": "v1/{+name}",
30857	//   "request": {
30858	//     "$ref": "GoogleCloudApigeeV1CustomReport"
30859	//   },
30860	//   "response": {
30861	//     "$ref": "GoogleCloudApigeeV1CustomReport"
30862	//   },
30863	//   "scopes": [
30864	//     "https://www.googleapis.com/auth/cloud-platform"
30865	//   ]
30866	// }
30867
30868}
30869
30870// method id "apigee.organizations.sharedflows.create":
30871
30872type OrganizationsSharedflowsCreateCall struct {
30873	s                 *Service
30874	parent            string
30875	googleapihttpbody *GoogleApiHttpBody
30876	urlParams_        gensupport.URLParams
30877	ctx_              context.Context
30878	header_           http.Header
30879}
30880
30881// Create: Uploads a ZIP-formatted shared flow configuration bundle to
30882// an
30883// organization. If the shared flow already exists, this creates a
30884// new
30885// revision of it. If the shared flow does not exist, this creates
30886// it.
30887//
30888// Once imported, the shared flow revision must be deployed before it
30889// can be
30890// accessed at runtime.
30891//
30892// The size limit of a shared flow bundle is 15 MB.
30893func (r *OrganizationsSharedflowsService) Create(parent string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsCreateCall {
30894	c := &OrganizationsSharedflowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30895	c.parent = parent
30896	c.googleapihttpbody = googleapihttpbody
30897	return c
30898}
30899
30900// Action sets the optional parameter "action": Required. Must be set to
30901// either `import` or `validate`.
30902func (c *OrganizationsSharedflowsCreateCall) Action(action string) *OrganizationsSharedflowsCreateCall {
30903	c.urlParams_.Set("action", action)
30904	return c
30905}
30906
30907// Name sets the optional parameter "name": Required. The name to give
30908// the shared flow
30909func (c *OrganizationsSharedflowsCreateCall) Name(name string) *OrganizationsSharedflowsCreateCall {
30910	c.urlParams_.Set("name", name)
30911	return c
30912}
30913
30914// Fields allows partial responses to be retrieved. See
30915// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
30916// for more information.
30917func (c *OrganizationsSharedflowsCreateCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsCreateCall {
30918	c.urlParams_.Set("fields", googleapi.CombineFields(s))
30919	return c
30920}
30921
30922// Context sets the context to be used in this call's Do method. Any
30923// pending HTTP request will be aborted if the provided context is
30924// canceled.
30925func (c *OrganizationsSharedflowsCreateCall) Context(ctx context.Context) *OrganizationsSharedflowsCreateCall {
30926	c.ctx_ = ctx
30927	return c
30928}
30929
30930// Header returns an http.Header that can be modified by the caller to
30931// add HTTP headers to the request.
30932func (c *OrganizationsSharedflowsCreateCall) Header() http.Header {
30933	if c.header_ == nil {
30934		c.header_ = make(http.Header)
30935	}
30936	return c.header_
30937}
30938
30939func (c *OrganizationsSharedflowsCreateCall) doRequest(alt string) (*http.Response, error) {
30940	reqHeaders := make(http.Header)
30941	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
30942	for k, v := range c.header_ {
30943		reqHeaders[k] = v
30944	}
30945	reqHeaders.Set("User-Agent", c.s.userAgent())
30946	var body io.Reader = nil
30947	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
30948	if err != nil {
30949		return nil, err
30950	}
30951	reqHeaders.Set("Content-Type", "application/json")
30952	c.urlParams_.Set("alt", alt)
30953	c.urlParams_.Set("prettyPrint", "false")
30954	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
30955	urls += "?" + c.urlParams_.Encode()
30956	req, err := http.NewRequest("POST", urls, body)
30957	if err != nil {
30958		return nil, err
30959	}
30960	req.Header = reqHeaders
30961	googleapi.Expand(req.URL, map[string]string{
30962		"parent": c.parent,
30963	})
30964	return gensupport.SendRequest(c.ctx_, c.s.client, req)
30965}
30966
30967// Do executes the "apigee.organizations.sharedflows.create" call.
30968// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
30969// be non-nil. Any non-2xx status code is an error. Response headers are
30970// in either
30971// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
30972// response was returned at all) in error.(*googleapi.Error).Header. Use
30973// googleapi.IsNotModified to check whether the returned error was
30974// because http.StatusNotModified was returned.
30975func (c *OrganizationsSharedflowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
30976	gensupport.SetOptions(c.urlParams_, opts...)
30977	res, err := c.doRequest("json")
30978	if res != nil && res.StatusCode == http.StatusNotModified {
30979		if res.Body != nil {
30980			res.Body.Close()
30981		}
30982		return nil, &googleapi.Error{
30983			Code:   res.StatusCode,
30984			Header: res.Header,
30985		}
30986	}
30987	if err != nil {
30988		return nil, err
30989	}
30990	defer googleapi.CloseBody(res)
30991	if err := googleapi.CheckResponse(res); err != nil {
30992		return nil, err
30993	}
30994	ret := &GoogleCloudApigeeV1SharedFlowRevision{
30995		ServerResponse: googleapi.ServerResponse{
30996			Header:         res.Header,
30997			HTTPStatusCode: res.StatusCode,
30998		},
30999	}
31000	target := &ret
31001	if err := gensupport.DecodeResponse(target, res); err != nil {
31002		return nil, err
31003	}
31004	return ret, nil
31005	// {
31006	//   "description": "Uploads a ZIP-formatted shared flow configuration bundle to an\norganization. If the shared flow already exists, this creates a new\nrevision of it. If the shared flow does not exist, this creates it.\n\nOnce imported, the shared flow revision must be deployed before it can be\naccessed at runtime.\n\nThe size limit of a shared flow bundle is 15 MB.",
31007	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
31008	//   "httpMethod": "POST",
31009	//   "id": "apigee.organizations.sharedflows.create",
31010	//   "parameterOrder": [
31011	//     "parent"
31012	//   ],
31013	//   "parameters": {
31014	//     "action": {
31015	//       "description": "Required. Must be set to either `import` or `validate`.",
31016	//       "location": "query",
31017	//       "type": "string"
31018	//     },
31019	//     "name": {
31020	//       "description": "Required. The name to give the shared flow",
31021	//       "location": "query",
31022	//       "type": "string"
31023	//     },
31024	//     "parent": {
31025	//       "description": "Required. The name of the parent organization under which to create the\nshared flow. Must be of the form:\n  `organizations/{organization_id}`",
31026	//       "location": "path",
31027	//       "pattern": "^organizations/[^/]+$",
31028	//       "required": true,
31029	//       "type": "string"
31030	//     }
31031	//   },
31032	//   "path": "v1/{+parent}/sharedflows",
31033	//   "request": {
31034	//     "$ref": "GoogleApiHttpBody"
31035	//   },
31036	//   "response": {
31037	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
31038	//   },
31039	//   "scopes": [
31040	//     "https://www.googleapis.com/auth/cloud-platform"
31041	//   ]
31042	// }
31043
31044}
31045
31046// method id "apigee.organizations.sharedflows.delete":
31047
31048type OrganizationsSharedflowsDeleteCall struct {
31049	s          *Service
31050	name       string
31051	urlParams_ gensupport.URLParams
31052	ctx_       context.Context
31053	header_    http.Header
31054}
31055
31056// Delete: Deletes a shared flow and all it's revisions. The shared flow
31057// must be
31058// undeployed before you can delete it.
31059func (r *OrganizationsSharedflowsService) Delete(name string) *OrganizationsSharedflowsDeleteCall {
31060	c := &OrganizationsSharedflowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31061	c.name = name
31062	return c
31063}
31064
31065// Fields allows partial responses to be retrieved. See
31066// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31067// for more information.
31068func (c *OrganizationsSharedflowsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeleteCall {
31069	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31070	return c
31071}
31072
31073// Context sets the context to be used in this call's Do method. Any
31074// pending HTTP request will be aborted if the provided context is
31075// canceled.
31076func (c *OrganizationsSharedflowsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsDeleteCall {
31077	c.ctx_ = ctx
31078	return c
31079}
31080
31081// Header returns an http.Header that can be modified by the caller to
31082// add HTTP headers to the request.
31083func (c *OrganizationsSharedflowsDeleteCall) Header() http.Header {
31084	if c.header_ == nil {
31085		c.header_ = make(http.Header)
31086	}
31087	return c.header_
31088}
31089
31090func (c *OrganizationsSharedflowsDeleteCall) doRequest(alt string) (*http.Response, error) {
31091	reqHeaders := make(http.Header)
31092	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31093	for k, v := range c.header_ {
31094		reqHeaders[k] = v
31095	}
31096	reqHeaders.Set("User-Agent", c.s.userAgent())
31097	var body io.Reader = nil
31098	c.urlParams_.Set("alt", alt)
31099	c.urlParams_.Set("prettyPrint", "false")
31100	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31101	urls += "?" + c.urlParams_.Encode()
31102	req, err := http.NewRequest("DELETE", urls, body)
31103	if err != nil {
31104		return nil, err
31105	}
31106	req.Header = reqHeaders
31107	googleapi.Expand(req.URL, map[string]string{
31108		"name": c.name,
31109	})
31110	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31111}
31112
31113// Do executes the "apigee.organizations.sharedflows.delete" call.
31114// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
31115// non-nil. Any non-2xx status code is an error. Response headers are in
31116// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
31117// response was returned at all) in error.(*googleapi.Error).Header. Use
31118// googleapi.IsNotModified to check whether the returned error was
31119// because http.StatusNotModified was returned.
31120func (c *OrganizationsSharedflowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
31121	gensupport.SetOptions(c.urlParams_, opts...)
31122	res, err := c.doRequest("json")
31123	if res != nil && res.StatusCode == http.StatusNotModified {
31124		if res.Body != nil {
31125			res.Body.Close()
31126		}
31127		return nil, &googleapi.Error{
31128			Code:   res.StatusCode,
31129			Header: res.Header,
31130		}
31131	}
31132	if err != nil {
31133		return nil, err
31134	}
31135	defer googleapi.CloseBody(res)
31136	if err := googleapi.CheckResponse(res); err != nil {
31137		return nil, err
31138	}
31139	ret := &GoogleCloudApigeeV1SharedFlow{
31140		ServerResponse: googleapi.ServerResponse{
31141			Header:         res.Header,
31142			HTTPStatusCode: res.StatusCode,
31143		},
31144	}
31145	target := &ret
31146	if err := gensupport.DecodeResponse(target, res); err != nil {
31147		return nil, err
31148	}
31149	return ret, nil
31150	// {
31151	//   "description": "Deletes a shared flow and all it's revisions. The shared flow must be\nundeployed before you can delete it.",
31152	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
31153	//   "httpMethod": "DELETE",
31154	//   "id": "apigee.organizations.sharedflows.delete",
31155	//   "parameterOrder": [
31156	//     "name"
31157	//   ],
31158	//   "parameters": {
31159	//     "name": {
31160	//       "description": "Required. shared flow name of the form:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
31161	//       "location": "path",
31162	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
31163	//       "required": true,
31164	//       "type": "string"
31165	//     }
31166	//   },
31167	//   "path": "v1/{+name}",
31168	//   "response": {
31169	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
31170	//   },
31171	//   "scopes": [
31172	//     "https://www.googleapis.com/auth/cloud-platform"
31173	//   ]
31174	// }
31175
31176}
31177
31178// method id "apigee.organizations.sharedflows.get":
31179
31180type OrganizationsSharedflowsGetCall struct {
31181	s            *Service
31182	name         string
31183	urlParams_   gensupport.URLParams
31184	ifNoneMatch_ string
31185	ctx_         context.Context
31186	header_      http.Header
31187}
31188
31189// Get: Gets a shared flow by name, including a list of its revisions.
31190func (r *OrganizationsSharedflowsService) Get(name string) *OrganizationsSharedflowsGetCall {
31191	c := &OrganizationsSharedflowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31192	c.name = name
31193	return c
31194}
31195
31196// Fields allows partial responses to be retrieved. See
31197// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31198// for more information.
31199func (c *OrganizationsSharedflowsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsGetCall {
31200	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31201	return c
31202}
31203
31204// IfNoneMatch sets the optional parameter which makes the operation
31205// fail if the object's ETag matches the given value. This is useful for
31206// getting updates only after the object has changed since the last
31207// request. Use googleapi.IsNotModified to check whether the response
31208// error from Do is the result of In-None-Match.
31209func (c *OrganizationsSharedflowsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsGetCall {
31210	c.ifNoneMatch_ = entityTag
31211	return c
31212}
31213
31214// Context sets the context to be used in this call's Do method. Any
31215// pending HTTP request will be aborted if the provided context is
31216// canceled.
31217func (c *OrganizationsSharedflowsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsGetCall {
31218	c.ctx_ = ctx
31219	return c
31220}
31221
31222// Header returns an http.Header that can be modified by the caller to
31223// add HTTP headers to the request.
31224func (c *OrganizationsSharedflowsGetCall) Header() http.Header {
31225	if c.header_ == nil {
31226		c.header_ = make(http.Header)
31227	}
31228	return c.header_
31229}
31230
31231func (c *OrganizationsSharedflowsGetCall) doRequest(alt string) (*http.Response, error) {
31232	reqHeaders := make(http.Header)
31233	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31234	for k, v := range c.header_ {
31235		reqHeaders[k] = v
31236	}
31237	reqHeaders.Set("User-Agent", c.s.userAgent())
31238	if c.ifNoneMatch_ != "" {
31239		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31240	}
31241	var body io.Reader = nil
31242	c.urlParams_.Set("alt", alt)
31243	c.urlParams_.Set("prettyPrint", "false")
31244	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31245	urls += "?" + c.urlParams_.Encode()
31246	req, err := http.NewRequest("GET", urls, body)
31247	if err != nil {
31248		return nil, err
31249	}
31250	req.Header = reqHeaders
31251	googleapi.Expand(req.URL, map[string]string{
31252		"name": c.name,
31253	})
31254	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31255}
31256
31257// Do executes the "apigee.organizations.sharedflows.get" call.
31258// Exactly one of *GoogleCloudApigeeV1SharedFlow or error will be
31259// non-nil. Any non-2xx status code is an error. Response headers are in
31260// either *GoogleCloudApigeeV1SharedFlow.ServerResponse.Header or (if a
31261// response was returned at all) in error.(*googleapi.Error).Header. Use
31262// googleapi.IsNotModified to check whether the returned error was
31263// because http.StatusNotModified was returned.
31264func (c *OrganizationsSharedflowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlow, error) {
31265	gensupport.SetOptions(c.urlParams_, opts...)
31266	res, err := c.doRequest("json")
31267	if res != nil && res.StatusCode == http.StatusNotModified {
31268		if res.Body != nil {
31269			res.Body.Close()
31270		}
31271		return nil, &googleapi.Error{
31272			Code:   res.StatusCode,
31273			Header: res.Header,
31274		}
31275	}
31276	if err != nil {
31277		return nil, err
31278	}
31279	defer googleapi.CloseBody(res)
31280	if err := googleapi.CheckResponse(res); err != nil {
31281		return nil, err
31282	}
31283	ret := &GoogleCloudApigeeV1SharedFlow{
31284		ServerResponse: googleapi.ServerResponse{
31285			Header:         res.Header,
31286			HTTPStatusCode: res.StatusCode,
31287		},
31288	}
31289	target := &ret
31290	if err := gensupport.DecodeResponse(target, res); err != nil {
31291		return nil, err
31292	}
31293	return ret, nil
31294	// {
31295	//   "description": "Gets a shared flow by name, including a list of its revisions.",
31296	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}",
31297	//   "httpMethod": "GET",
31298	//   "id": "apigee.organizations.sharedflows.get",
31299	//   "parameterOrder": [
31300	//     "name"
31301	//   ],
31302	//   "parameters": {
31303	//     "name": {
31304	//       "description": "Required. The name of the shared flow to get. Must be of the\nform:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
31305	//       "location": "path",
31306	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
31307	//       "required": true,
31308	//       "type": "string"
31309	//     }
31310	//   },
31311	//   "path": "v1/{+name}",
31312	//   "response": {
31313	//     "$ref": "GoogleCloudApigeeV1SharedFlow"
31314	//   },
31315	//   "scopes": [
31316	//     "https://www.googleapis.com/auth/cloud-platform"
31317	//   ]
31318	// }
31319
31320}
31321
31322// method id "apigee.organizations.sharedflows.list":
31323
31324type OrganizationsSharedflowsListCall struct {
31325	s            *Service
31326	parent       string
31327	urlParams_   gensupport.URLParams
31328	ifNoneMatch_ string
31329	ctx_         context.Context
31330	header_      http.Header
31331}
31332
31333// List: Lists all shared flows in the organization.
31334func (r *OrganizationsSharedflowsService) List(parent string) *OrganizationsSharedflowsListCall {
31335	c := &OrganizationsSharedflowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31336	c.parent = parent
31337	return c
31338}
31339
31340// IncludeMetaData sets the optional parameter "includeMetaData":
31341// Indicates whether to include shared flow metadata in the response.
31342func (c *OrganizationsSharedflowsListCall) IncludeMetaData(includeMetaData bool) *OrganizationsSharedflowsListCall {
31343	c.urlParams_.Set("includeMetaData", fmt.Sprint(includeMetaData))
31344	return c
31345}
31346
31347// IncludeRevisions sets the optional parameter "includeRevisions":
31348// Indicates whether to include a list of revisions in the response.
31349func (c *OrganizationsSharedflowsListCall) IncludeRevisions(includeRevisions bool) *OrganizationsSharedflowsListCall {
31350	c.urlParams_.Set("includeRevisions", fmt.Sprint(includeRevisions))
31351	return c
31352}
31353
31354// Fields allows partial responses to be retrieved. See
31355// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31356// for more information.
31357func (c *OrganizationsSharedflowsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsListCall {
31358	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31359	return c
31360}
31361
31362// IfNoneMatch sets the optional parameter which makes the operation
31363// fail if the object's ETag matches the given value. This is useful for
31364// getting updates only after the object has changed since the last
31365// request. Use googleapi.IsNotModified to check whether the response
31366// error from Do is the result of In-None-Match.
31367func (c *OrganizationsSharedflowsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsListCall {
31368	c.ifNoneMatch_ = entityTag
31369	return c
31370}
31371
31372// Context sets the context to be used in this call's Do method. Any
31373// pending HTTP request will be aborted if the provided context is
31374// canceled.
31375func (c *OrganizationsSharedflowsListCall) Context(ctx context.Context) *OrganizationsSharedflowsListCall {
31376	c.ctx_ = ctx
31377	return c
31378}
31379
31380// Header returns an http.Header that can be modified by the caller to
31381// add HTTP headers to the request.
31382func (c *OrganizationsSharedflowsListCall) Header() http.Header {
31383	if c.header_ == nil {
31384		c.header_ = make(http.Header)
31385	}
31386	return c.header_
31387}
31388
31389func (c *OrganizationsSharedflowsListCall) doRequest(alt string) (*http.Response, error) {
31390	reqHeaders := make(http.Header)
31391	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31392	for k, v := range c.header_ {
31393		reqHeaders[k] = v
31394	}
31395	reqHeaders.Set("User-Agent", c.s.userAgent())
31396	if c.ifNoneMatch_ != "" {
31397		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31398	}
31399	var body io.Reader = nil
31400	c.urlParams_.Set("alt", alt)
31401	c.urlParams_.Set("prettyPrint", "false")
31402	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/sharedflows")
31403	urls += "?" + c.urlParams_.Encode()
31404	req, err := http.NewRequest("GET", urls, body)
31405	if err != nil {
31406		return nil, err
31407	}
31408	req.Header = reqHeaders
31409	googleapi.Expand(req.URL, map[string]string{
31410		"parent": c.parent,
31411	})
31412	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31413}
31414
31415// Do executes the "apigee.organizations.sharedflows.list" call.
31416// Exactly one of *GoogleCloudApigeeV1ListSharedFlowsResponse or error
31417// will be non-nil. Any non-2xx status code is an error. Response
31418// headers are in either
31419// *GoogleCloudApigeeV1ListSharedFlowsResponse.ServerResponse.Header or
31420// (if a response was returned at all) in
31421// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31422// whether the returned error was because http.StatusNotModified was
31423// returned.
31424func (c *OrganizationsSharedflowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListSharedFlowsResponse, 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, &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, err
31442	}
31443	ret := &GoogleCloudApigeeV1ListSharedFlowsResponse{
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	//   "description": "Lists all shared flows in the organization.",
31456	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows",
31457	//   "httpMethod": "GET",
31458	//   "id": "apigee.organizations.sharedflows.list",
31459	//   "parameterOrder": [
31460	//     "parent"
31461	//   ],
31462	//   "parameters": {
31463	//     "includeMetaData": {
31464	//       "description": "Indicates whether to include shared flow metadata in the response.",
31465	//       "location": "query",
31466	//       "type": "boolean"
31467	//     },
31468	//     "includeRevisions": {
31469	//       "description": "Indicates whether to include a list of revisions in the response.",
31470	//       "location": "query",
31471	//       "type": "boolean"
31472	//     },
31473	//     "parent": {
31474	//       "description": "Required. The name of the parent organization under which to get shared\nflows. Must be of the form:\n  `organizations/{organization_id}`",
31475	//       "location": "path",
31476	//       "pattern": "^organizations/[^/]+$",
31477	//       "required": true,
31478	//       "type": "string"
31479	//     }
31480	//   },
31481	//   "path": "v1/{+parent}/sharedflows",
31482	//   "response": {
31483	//     "$ref": "GoogleCloudApigeeV1ListSharedFlowsResponse"
31484	//   },
31485	//   "scopes": [
31486	//     "https://www.googleapis.com/auth/cloud-platform"
31487	//   ]
31488	// }
31489
31490}
31491
31492// method id "apigee.organizations.sharedflows.deployments.list":
31493
31494type OrganizationsSharedflowsDeploymentsListCall struct {
31495	s            *Service
31496	parent       string
31497	urlParams_   gensupport.URLParams
31498	ifNoneMatch_ string
31499	ctx_         context.Context
31500	header_      http.Header
31501}
31502
31503// List: Lists all deployments of a shared flow.
31504func (r *OrganizationsSharedflowsDeploymentsService) List(parent string) *OrganizationsSharedflowsDeploymentsListCall {
31505	c := &OrganizationsSharedflowsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31506	c.parent = parent
31507	return c
31508}
31509
31510// Fields allows partial responses to be retrieved. See
31511// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31512// for more information.
31513func (c *OrganizationsSharedflowsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsDeploymentsListCall {
31514	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31515	return c
31516}
31517
31518// IfNoneMatch sets the optional parameter which makes the operation
31519// fail if the object's ETag matches the given value. This is useful for
31520// getting updates only after the object has changed since the last
31521// request. Use googleapi.IsNotModified to check whether the response
31522// error from Do is the result of In-None-Match.
31523func (c *OrganizationsSharedflowsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsDeploymentsListCall {
31524	c.ifNoneMatch_ = entityTag
31525	return c
31526}
31527
31528// Context sets the context to be used in this call's Do method. Any
31529// pending HTTP request will be aborted if the provided context is
31530// canceled.
31531func (c *OrganizationsSharedflowsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsDeploymentsListCall {
31532	c.ctx_ = ctx
31533	return c
31534}
31535
31536// Header returns an http.Header that can be modified by the caller to
31537// add HTTP headers to the request.
31538func (c *OrganizationsSharedflowsDeploymentsListCall) Header() http.Header {
31539	if c.header_ == nil {
31540		c.header_ = make(http.Header)
31541	}
31542	return c.header_
31543}
31544
31545func (c *OrganizationsSharedflowsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
31546	reqHeaders := make(http.Header)
31547	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31548	for k, v := range c.header_ {
31549		reqHeaders[k] = v
31550	}
31551	reqHeaders.Set("User-Agent", c.s.userAgent())
31552	if c.ifNoneMatch_ != "" {
31553		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31554	}
31555	var body io.Reader = nil
31556	c.urlParams_.Set("alt", alt)
31557	c.urlParams_.Set("prettyPrint", "false")
31558	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
31559	urls += "?" + c.urlParams_.Encode()
31560	req, err := http.NewRequest("GET", urls, body)
31561	if err != nil {
31562		return nil, err
31563	}
31564	req.Header = reqHeaders
31565	googleapi.Expand(req.URL, map[string]string{
31566		"parent": c.parent,
31567	})
31568	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31569}
31570
31571// Do executes the "apigee.organizations.sharedflows.deployments.list" call.
31572// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
31573// will be non-nil. Any non-2xx status code is an error. Response
31574// headers are in either
31575// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
31576// (if a response was returned at all) in
31577// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
31578// whether the returned error was because http.StatusNotModified was
31579// returned.
31580func (c *OrganizationsSharedflowsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
31581	gensupport.SetOptions(c.urlParams_, opts...)
31582	res, err := c.doRequest("json")
31583	if res != nil && res.StatusCode == http.StatusNotModified {
31584		if res.Body != nil {
31585			res.Body.Close()
31586		}
31587		return nil, &googleapi.Error{
31588			Code:   res.StatusCode,
31589			Header: res.Header,
31590		}
31591	}
31592	if err != nil {
31593		return nil, err
31594	}
31595	defer googleapi.CloseBody(res)
31596	if err := googleapi.CheckResponse(res); err != nil {
31597		return nil, err
31598	}
31599	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
31600		ServerResponse: googleapi.ServerResponse{
31601			Header:         res.Header,
31602			HTTPStatusCode: res.StatusCode,
31603		},
31604	}
31605	target := &ret
31606	if err := gensupport.DecodeResponse(target, res); err != nil {
31607		return nil, err
31608	}
31609	return ret, nil
31610	// {
31611	//   "description": "Lists all deployments of a shared flow.",
31612	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/deployments",
31613	//   "httpMethod": "GET",
31614	//   "id": "apigee.organizations.sharedflows.deployments.list",
31615	//   "parameterOrder": [
31616	//     "parent"
31617	//   ],
31618	//   "parameters": {
31619	//     "parent": {
31620	//       "description": "Required. Name of the shared flow for which to return deployment information in the\nfollowing format:\n  `organizations/{org}/sharedflows/{sharedflow}`",
31621	//       "location": "path",
31622	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
31623	//       "required": true,
31624	//       "type": "string"
31625	//     }
31626	//   },
31627	//   "path": "v1/{+parent}/deployments",
31628	//   "response": {
31629	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
31630	//   },
31631	//   "scopes": [
31632	//     "https://www.googleapis.com/auth/cloud-platform"
31633	//   ]
31634	// }
31635
31636}
31637
31638// method id "apigee.organizations.sharedflows.revisions.delete":
31639
31640type OrganizationsSharedflowsRevisionsDeleteCall struct {
31641	s          *Service
31642	name       string
31643	urlParams_ gensupport.URLParams
31644	ctx_       context.Context
31645	header_    http.Header
31646}
31647
31648// Delete: Deletes a shared flow and all associated policies, resources,
31649// and
31650// revisions. You must undeploy the shared flow before deleting it.
31651func (r *OrganizationsSharedflowsRevisionsService) Delete(name string) *OrganizationsSharedflowsRevisionsDeleteCall {
31652	c := &OrganizationsSharedflowsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31653	c.name = name
31654	return c
31655}
31656
31657// Fields allows partial responses to be retrieved. See
31658// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31659// for more information.
31660func (c *OrganizationsSharedflowsRevisionsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeleteCall {
31661	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31662	return c
31663}
31664
31665// Context sets the context to be used in this call's Do method. Any
31666// pending HTTP request will be aborted if the provided context is
31667// canceled.
31668func (c *OrganizationsSharedflowsRevisionsDeleteCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeleteCall {
31669	c.ctx_ = ctx
31670	return c
31671}
31672
31673// Header returns an http.Header that can be modified by the caller to
31674// add HTTP headers to the request.
31675func (c *OrganizationsSharedflowsRevisionsDeleteCall) Header() http.Header {
31676	if c.header_ == nil {
31677		c.header_ = make(http.Header)
31678	}
31679	return c.header_
31680}
31681
31682func (c *OrganizationsSharedflowsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
31683	reqHeaders := make(http.Header)
31684	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31685	for k, v := range c.header_ {
31686		reqHeaders[k] = v
31687	}
31688	reqHeaders.Set("User-Agent", c.s.userAgent())
31689	var body io.Reader = nil
31690	c.urlParams_.Set("alt", alt)
31691	c.urlParams_.Set("prettyPrint", "false")
31692	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31693	urls += "?" + c.urlParams_.Encode()
31694	req, err := http.NewRequest("DELETE", urls, body)
31695	if err != nil {
31696		return nil, err
31697	}
31698	req.Header = reqHeaders
31699	googleapi.Expand(req.URL, map[string]string{
31700		"name": c.name,
31701	})
31702	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31703}
31704
31705// Do executes the "apigee.organizations.sharedflows.revisions.delete" call.
31706// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
31707// be non-nil. Any non-2xx status code is an error. Response headers are
31708// in either
31709// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
31710// response was returned at all) in error.(*googleapi.Error).Header. Use
31711// googleapi.IsNotModified to check whether the returned error was
31712// because http.StatusNotModified was returned.
31713func (c *OrganizationsSharedflowsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
31714	gensupport.SetOptions(c.urlParams_, opts...)
31715	res, err := c.doRequest("json")
31716	if res != nil && res.StatusCode == http.StatusNotModified {
31717		if res.Body != nil {
31718			res.Body.Close()
31719		}
31720		return nil, &googleapi.Error{
31721			Code:   res.StatusCode,
31722			Header: res.Header,
31723		}
31724	}
31725	if err != nil {
31726		return nil, err
31727	}
31728	defer googleapi.CloseBody(res)
31729	if err := googleapi.CheckResponse(res); err != nil {
31730		return nil, err
31731	}
31732	ret := &GoogleCloudApigeeV1SharedFlowRevision{
31733		ServerResponse: googleapi.ServerResponse{
31734			Header:         res.Header,
31735			HTTPStatusCode: res.StatusCode,
31736		},
31737	}
31738	target := &ret
31739	if err := gensupport.DecodeResponse(target, res); err != nil {
31740		return nil, err
31741	}
31742	return ret, nil
31743	// {
31744	//   "description": "Deletes a shared flow and all associated policies, resources, and\nrevisions. You must undeploy the shared flow before deleting it.",
31745	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
31746	//   "httpMethod": "DELETE",
31747	//   "id": "apigee.organizations.sharedflows.revisions.delete",
31748	//   "parameterOrder": [
31749	//     "name"
31750	//   ],
31751	//   "parameters": {
31752	//     "name": {
31753	//       "description": "Required. The name of the shared flow revision to delete. Must be of the\nform:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
31754	//       "location": "path",
31755	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
31756	//       "required": true,
31757	//       "type": "string"
31758	//     }
31759	//   },
31760	//   "path": "v1/{+name}",
31761	//   "response": {
31762	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
31763	//   },
31764	//   "scopes": [
31765	//     "https://www.googleapis.com/auth/cloud-platform"
31766	//   ]
31767	// }
31768
31769}
31770
31771// method id "apigee.organizations.sharedflows.revisions.get":
31772
31773type OrganizationsSharedflowsRevisionsGetCall struct {
31774	s            *Service
31775	name         string
31776	urlParams_   gensupport.URLParams
31777	ifNoneMatch_ string
31778	ctx_         context.Context
31779	header_      http.Header
31780}
31781
31782// Get: Gets a revision of a shared flow.
31783//
31784// If `format=bundle` is passed, it instead outputs a shared flow
31785// revision as
31786// a ZIP-formatted bundle of code and config files.
31787func (r *OrganizationsSharedflowsRevisionsService) Get(name string) *OrganizationsSharedflowsRevisionsGetCall {
31788	c := &OrganizationsSharedflowsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31789	c.name = name
31790	return c
31791}
31792
31793// Format sets the optional parameter "format": Specify `bundle` to
31794// export the contents of the shared flow bundle.
31795// Otherwise, the bundle metadata is returned.
31796func (c *OrganizationsSharedflowsRevisionsGetCall) Format(format string) *OrganizationsSharedflowsRevisionsGetCall {
31797	c.urlParams_.Set("format", format)
31798	return c
31799}
31800
31801// Fields allows partial responses to be retrieved. See
31802// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31803// for more information.
31804func (c *OrganizationsSharedflowsRevisionsGetCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsGetCall {
31805	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31806	return c
31807}
31808
31809// IfNoneMatch sets the optional parameter which makes the operation
31810// fail if the object's ETag matches the given value. This is useful for
31811// getting updates only after the object has changed since the last
31812// request. Use googleapi.IsNotModified to check whether the response
31813// error from Do is the result of In-None-Match.
31814func (c *OrganizationsSharedflowsRevisionsGetCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsGetCall {
31815	c.ifNoneMatch_ = entityTag
31816	return c
31817}
31818
31819// Context sets the context to be used in this call's Do method. Any
31820// pending HTTP request will be aborted if the provided context is
31821// canceled.
31822func (c *OrganizationsSharedflowsRevisionsGetCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsGetCall {
31823	c.ctx_ = ctx
31824	return c
31825}
31826
31827// Header returns an http.Header that can be modified by the caller to
31828// add HTTP headers to the request.
31829func (c *OrganizationsSharedflowsRevisionsGetCall) Header() http.Header {
31830	if c.header_ == nil {
31831		c.header_ = make(http.Header)
31832	}
31833	return c.header_
31834}
31835
31836func (c *OrganizationsSharedflowsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
31837	reqHeaders := make(http.Header)
31838	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31839	for k, v := range c.header_ {
31840		reqHeaders[k] = v
31841	}
31842	reqHeaders.Set("User-Agent", c.s.userAgent())
31843	if c.ifNoneMatch_ != "" {
31844		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31845	}
31846	var body io.Reader = nil
31847	c.urlParams_.Set("alt", alt)
31848	c.urlParams_.Set("prettyPrint", "false")
31849	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
31850	urls += "?" + c.urlParams_.Encode()
31851	req, err := http.NewRequest("GET", urls, body)
31852	if err != nil {
31853		return nil, err
31854	}
31855	req.Header = reqHeaders
31856	googleapi.Expand(req.URL, map[string]string{
31857		"name": c.name,
31858	})
31859	return gensupport.SendRequest(c.ctx_, c.s.client, req)
31860}
31861
31862// Do executes the "apigee.organizations.sharedflows.revisions.get" call.
31863// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any
31864// non-2xx status code is an error. Response headers are in either
31865// *GoogleApiHttpBody.ServerResponse.Header or (if a response was
31866// returned at all) in error.(*googleapi.Error).Header. Use
31867// googleapi.IsNotModified to check whether the returned error was
31868// because http.StatusNotModified was returned.
31869func (c *OrganizationsSharedflowsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
31870	gensupport.SetOptions(c.urlParams_, opts...)
31871	res, err := c.doRequest("json")
31872	if res != nil && res.StatusCode == http.StatusNotModified {
31873		if res.Body != nil {
31874			res.Body.Close()
31875		}
31876		return nil, &googleapi.Error{
31877			Code:   res.StatusCode,
31878			Header: res.Header,
31879		}
31880	}
31881	if err != nil {
31882		return nil, err
31883	}
31884	defer googleapi.CloseBody(res)
31885	if err := googleapi.CheckResponse(res); err != nil {
31886		return nil, err
31887	}
31888	ret := &GoogleApiHttpBody{
31889		ServerResponse: googleapi.ServerResponse{
31890			Header:         res.Header,
31891			HTTPStatusCode: res.StatusCode,
31892		},
31893	}
31894	target := &ret
31895	if err := gensupport.DecodeResponse(target, res); err != nil {
31896		return nil, err
31897	}
31898	return ret, nil
31899	// {
31900	//   "description": "Gets a revision of a shared flow.\n\nIf `format=bundle` is passed, it instead outputs a shared flow revision as\na ZIP-formatted bundle of code and config files.",
31901	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
31902	//   "httpMethod": "GET",
31903	//   "id": "apigee.organizations.sharedflows.revisions.get",
31904	//   "parameterOrder": [
31905	//     "name"
31906	//   ],
31907	//   "parameters": {
31908	//     "format": {
31909	//       "description": "Specify `bundle` to export the contents of the shared flow bundle.\nOtherwise, the bundle metadata is returned.",
31910	//       "location": "query",
31911	//       "type": "string"
31912	//     },
31913	//     "name": {
31914	//       "description": "Required. The name of the shared flow revision to get. Must be of the\nform:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
31915	//       "location": "path",
31916	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
31917	//       "required": true,
31918	//       "type": "string"
31919	//     }
31920	//   },
31921	//   "path": "v1/{+name}",
31922	//   "response": {
31923	//     "$ref": "GoogleApiHttpBody"
31924	//   },
31925	//   "scopes": [
31926	//     "https://www.googleapis.com/auth/cloud-platform"
31927	//   ]
31928	// }
31929
31930}
31931
31932// method id "apigee.organizations.sharedflows.revisions.list":
31933
31934type OrganizationsSharedflowsRevisionsListCall struct {
31935	s            *Service
31936	parent       string
31937	urlParams_   gensupport.URLParams
31938	ifNoneMatch_ string
31939	ctx_         context.Context
31940	header_      http.Header
31941}
31942
31943// List: Lists all revisions for a shared flow.
31944func (r *OrganizationsSharedflowsRevisionsService) List(parent string) *OrganizationsSharedflowsRevisionsListCall {
31945	c := &OrganizationsSharedflowsRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31946	c.parent = parent
31947	return c
31948}
31949
31950// Fields allows partial responses to be retrieved. See
31951// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
31952// for more information.
31953func (c *OrganizationsSharedflowsRevisionsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsListCall {
31954	c.urlParams_.Set("fields", googleapi.CombineFields(s))
31955	return c
31956}
31957
31958// IfNoneMatch sets the optional parameter which makes the operation
31959// fail if the object's ETag matches the given value. This is useful for
31960// getting updates only after the object has changed since the last
31961// request. Use googleapi.IsNotModified to check whether the response
31962// error from Do is the result of In-None-Match.
31963func (c *OrganizationsSharedflowsRevisionsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsListCall {
31964	c.ifNoneMatch_ = entityTag
31965	return c
31966}
31967
31968// Context sets the context to be used in this call's Do method. Any
31969// pending HTTP request will be aborted if the provided context is
31970// canceled.
31971func (c *OrganizationsSharedflowsRevisionsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsListCall {
31972	c.ctx_ = ctx
31973	return c
31974}
31975
31976// Header returns an http.Header that can be modified by the caller to
31977// add HTTP headers to the request.
31978func (c *OrganizationsSharedflowsRevisionsListCall) Header() http.Header {
31979	if c.header_ == nil {
31980		c.header_ = make(http.Header)
31981	}
31982	return c.header_
31983}
31984
31985func (c *OrganizationsSharedflowsRevisionsListCall) doRequest(alt string) (*http.Response, error) {
31986	reqHeaders := make(http.Header)
31987	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
31988	for k, v := range c.header_ {
31989		reqHeaders[k] = v
31990	}
31991	reqHeaders.Set("User-Agent", c.s.userAgent())
31992	if c.ifNoneMatch_ != "" {
31993		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31994	}
31995	var body io.Reader = nil
31996	c.urlParams_.Set("alt", alt)
31997	c.urlParams_.Set("prettyPrint", "false")
31998	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/revisions")
31999	urls += "?" + c.urlParams_.Encode()
32000	req, err := http.NewRequest("GET", urls, body)
32001	if err != nil {
32002		return nil, err
32003	}
32004	req.Header = reqHeaders
32005	googleapi.Expand(req.URL, map[string]string{
32006		"parent": c.parent,
32007	})
32008	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32009}
32010
32011// Do executes the "apigee.organizations.sharedflows.revisions.list" call.
32012func (c *OrganizationsSharedflowsRevisionsListCall) Do(opts ...googleapi.CallOption) error {
32013	gensupport.SetOptions(c.urlParams_, opts...)
32014	res, err := c.doRequest("json")
32015	if err != nil {
32016		return err
32017	}
32018	defer googleapi.CloseBody(res)
32019	if err := googleapi.CheckResponse(res); err != nil {
32020		return err
32021	}
32022	return nil
32023	// {
32024	//   "description": "Lists all revisions for a shared flow.",
32025	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions",
32026	//   "httpMethod": "GET",
32027	//   "id": "apigee.organizations.sharedflows.revisions.list",
32028	//   "parameterOrder": [
32029	//     "parent"
32030	//   ],
32031	//   "parameters": {
32032	//     "parent": {
32033	//       "description": "Required. The name of the parent API proxy under which to get API proxy\nrevisions. Must be of the form:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}`",
32034	//       "location": "path",
32035	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+$",
32036	//       "required": true,
32037	//       "type": "string"
32038	//     }
32039	//   },
32040	//   "path": "v1/{+parent}/revisions",
32041	//   "response": {
32042	//     "items": {
32043	//       "type": "any"
32044	//     },
32045	//     "type": "array"
32046	//   },
32047	//   "scopes": [
32048	//     "https://www.googleapis.com/auth/cloud-platform"
32049	//   ]
32050	// }
32051
32052}
32053
32054// method id "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision":
32055
32056type OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall struct {
32057	s                 *Service
32058	name              string
32059	googleapihttpbody *GoogleApiHttpBody
32060	urlParams_        gensupport.URLParams
32061	ctx_              context.Context
32062	header_           http.Header
32063}
32064
32065// UpdateSharedFlowRevision: Updates a shared flow revision. This
32066// operation is only allowed on revisions
32067// which have never been deployed. After deployment a revision
32068// becomes
32069// immutable, even if it becomes undeployed.
32070//
32071// The payload is a ZIP-formatted shared flow.  Content type must be
32072// either
32073// multipart/form-data or application/octet-stream.
32074func (r *OrganizationsSharedflowsRevisionsService) UpdateSharedFlowRevision(name string, googleapihttpbody *GoogleApiHttpBody) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
32075	c := &OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32076	c.name = name
32077	c.googleapihttpbody = googleapihttpbody
32078	return c
32079}
32080
32081// Validate sets the optional parameter "validate": Ignored. All uploads
32082// are validated regardless of the value of this field.
32083// It is kept for compatibility with existing APIs. Must be `true` or
32084// `false`
32085// if provided.
32086func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Validate(validate bool) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
32087	c.urlParams_.Set("validate", fmt.Sprint(validate))
32088	return c
32089}
32090
32091// Fields allows partial responses to be retrieved. See
32092// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32093// for more information.
32094func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
32095	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32096	return c
32097}
32098
32099// Context sets the context to be used in this call's Do method. Any
32100// pending HTTP request will be aborted if the provided context is
32101// canceled.
32102func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall {
32103	c.ctx_ = ctx
32104	return c
32105}
32106
32107// Header returns an http.Header that can be modified by the caller to
32108// add HTTP headers to the request.
32109func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Header() http.Header {
32110	if c.header_ == nil {
32111		c.header_ = make(http.Header)
32112	}
32113	return c.header_
32114}
32115
32116func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) doRequest(alt string) (*http.Response, error) {
32117	reqHeaders := make(http.Header)
32118	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32119	for k, v := range c.header_ {
32120		reqHeaders[k] = v
32121	}
32122	reqHeaders.Set("User-Agent", c.s.userAgent())
32123	var body io.Reader = nil
32124	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleapihttpbody)
32125	if err != nil {
32126		return nil, err
32127	}
32128	reqHeaders.Set("Content-Type", "application/json")
32129	c.urlParams_.Set("alt", alt)
32130	c.urlParams_.Set("prettyPrint", "false")
32131	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
32132	urls += "?" + c.urlParams_.Encode()
32133	req, err := http.NewRequest("POST", urls, body)
32134	if err != nil {
32135		return nil, err
32136	}
32137	req.Header = reqHeaders
32138	googleapi.Expand(req.URL, map[string]string{
32139		"name": c.name,
32140	})
32141	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32142}
32143
32144// Do executes the "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision" call.
32145// Exactly one of *GoogleCloudApigeeV1SharedFlowRevision or error will
32146// be non-nil. Any non-2xx status code is an error. Response headers are
32147// in either
32148// *GoogleCloudApigeeV1SharedFlowRevision.ServerResponse.Header or (if a
32149// response was returned at all) in error.(*googleapi.Error).Header. Use
32150// googleapi.IsNotModified to check whether the returned error was
32151// because http.StatusNotModified was returned.
32152func (c *OrganizationsSharedflowsRevisionsUpdateSharedFlowRevisionCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1SharedFlowRevision, error) {
32153	gensupport.SetOptions(c.urlParams_, opts...)
32154	res, err := c.doRequest("json")
32155	if res != nil && res.StatusCode == http.StatusNotModified {
32156		if res.Body != nil {
32157			res.Body.Close()
32158		}
32159		return nil, &googleapi.Error{
32160			Code:   res.StatusCode,
32161			Header: res.Header,
32162		}
32163	}
32164	if err != nil {
32165		return nil, err
32166	}
32167	defer googleapi.CloseBody(res)
32168	if err := googleapi.CheckResponse(res); err != nil {
32169		return nil, err
32170	}
32171	ret := &GoogleCloudApigeeV1SharedFlowRevision{
32172		ServerResponse: googleapi.ServerResponse{
32173			Header:         res.Header,
32174			HTTPStatusCode: res.StatusCode,
32175		},
32176	}
32177	target := &ret
32178	if err := gensupport.DecodeResponse(target, res); err != nil {
32179		return nil, err
32180	}
32181	return ret, nil
32182	// {
32183	//   "description": "Updates a shared flow revision. This operation is only allowed on revisions\nwhich have never been deployed. After deployment a revision becomes\nimmutable, even if it becomes undeployed.\n\nThe payload is a ZIP-formatted shared flow.  Content type must be either\nmultipart/form-data or application/octet-stream.",
32184	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}",
32185	//   "httpMethod": "POST",
32186	//   "id": "apigee.organizations.sharedflows.revisions.updateSharedFlowRevision",
32187	//   "parameterOrder": [
32188	//     "name"
32189	//   ],
32190	//   "parameters": {
32191	//     "name": {
32192	//       "description": "Required. The name of the shared flow revision to update.\nMust be of the form:\n  `organizations/{organization_id}/sharedflows/{shared_flow_id}/revisions/{revision_id}`",
32193	//       "location": "path",
32194	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
32195	//       "required": true,
32196	//       "type": "string"
32197	//     },
32198	//     "validate": {
32199	//       "description": "Ignored. All uploads are validated regardless of the value of this field.\nIt is kept for compatibility with existing APIs. Must be `true` or `false`\nif provided.",
32200	//       "location": "query",
32201	//       "type": "boolean"
32202	//     }
32203	//   },
32204	//   "path": "v1/{+name}",
32205	//   "request": {
32206	//     "$ref": "GoogleApiHttpBody"
32207	//   },
32208	//   "response": {
32209	//     "$ref": "GoogleCloudApigeeV1SharedFlowRevision"
32210	//   },
32211	//   "scopes": [
32212	//     "https://www.googleapis.com/auth/cloud-platform"
32213	//   ]
32214	// }
32215
32216}
32217
32218// method id "apigee.organizations.sharedflows.revisions.deployments.list":
32219
32220type OrganizationsSharedflowsRevisionsDeploymentsListCall struct {
32221	s            *Service
32222	parent       string
32223	urlParams_   gensupport.URLParams
32224	ifNoneMatch_ string
32225	ctx_         context.Context
32226	header_      http.Header
32227}
32228
32229// List: Lists all deployments of a shared flow and actual state
32230// reported by runtime
32231// pods.
32232func (r *OrganizationsSharedflowsRevisionsDeploymentsService) List(parent string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
32233	c := &OrganizationsSharedflowsRevisionsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32234	c.parent = parent
32235	return c
32236}
32237
32238// Fields allows partial responses to be retrieved. See
32239// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
32240// for more information.
32241func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Fields(s ...googleapi.Field) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
32242	c.urlParams_.Set("fields", googleapi.CombineFields(s))
32243	return c
32244}
32245
32246// IfNoneMatch sets the optional parameter which makes the operation
32247// fail if the object's ETag matches the given value. This is useful for
32248// getting updates only after the object has changed since the last
32249// request. Use googleapi.IsNotModified to check whether the response
32250// error from Do is the result of In-None-Match.
32251func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) IfNoneMatch(entityTag string) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
32252	c.ifNoneMatch_ = entityTag
32253	return c
32254}
32255
32256// Context sets the context to be used in this call's Do method. Any
32257// pending HTTP request will be aborted if the provided context is
32258// canceled.
32259func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Context(ctx context.Context) *OrganizationsSharedflowsRevisionsDeploymentsListCall {
32260	c.ctx_ = ctx
32261	return c
32262}
32263
32264// Header returns an http.Header that can be modified by the caller to
32265// add HTTP headers to the request.
32266func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Header() http.Header {
32267	if c.header_ == nil {
32268		c.header_ = make(http.Header)
32269	}
32270	return c.header_
32271}
32272
32273func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
32274	reqHeaders := make(http.Header)
32275	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.7 gdcl/20200203")
32276	for k, v := range c.header_ {
32277		reqHeaders[k] = v
32278	}
32279	reqHeaders.Set("User-Agent", c.s.userAgent())
32280	if c.ifNoneMatch_ != "" {
32281		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32282	}
32283	var body io.Reader = nil
32284	c.urlParams_.Set("alt", alt)
32285	c.urlParams_.Set("prettyPrint", "false")
32286	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deployments")
32287	urls += "?" + c.urlParams_.Encode()
32288	req, err := http.NewRequest("GET", urls, body)
32289	if err != nil {
32290		return nil, err
32291	}
32292	req.Header = reqHeaders
32293	googleapi.Expand(req.URL, map[string]string{
32294		"parent": c.parent,
32295	})
32296	return gensupport.SendRequest(c.ctx_, c.s.client, req)
32297}
32298
32299// Do executes the "apigee.organizations.sharedflows.revisions.deployments.list" call.
32300// Exactly one of *GoogleCloudApigeeV1ListDeploymentsResponse or error
32301// will be non-nil. Any non-2xx status code is an error. Response
32302// headers are in either
32303// *GoogleCloudApigeeV1ListDeploymentsResponse.ServerResponse.Header or
32304// (if a response was returned at all) in
32305// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
32306// whether the returned error was because http.StatusNotModified was
32307// returned.
32308func (c *OrganizationsSharedflowsRevisionsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1ListDeploymentsResponse, error) {
32309	gensupport.SetOptions(c.urlParams_, opts...)
32310	res, err := c.doRequest("json")
32311	if res != nil && res.StatusCode == http.StatusNotModified {
32312		if res.Body != nil {
32313			res.Body.Close()
32314		}
32315		return nil, &googleapi.Error{
32316			Code:   res.StatusCode,
32317			Header: res.Header,
32318		}
32319	}
32320	if err != nil {
32321		return nil, err
32322	}
32323	defer googleapi.CloseBody(res)
32324	if err := googleapi.CheckResponse(res); err != nil {
32325		return nil, err
32326	}
32327	ret := &GoogleCloudApigeeV1ListDeploymentsResponse{
32328		ServerResponse: googleapi.ServerResponse{
32329			Header:         res.Header,
32330			HTTPStatusCode: res.StatusCode,
32331		},
32332	}
32333	target := &ret
32334	if err := gensupport.DecodeResponse(target, res); err != nil {
32335		return nil, err
32336	}
32337	return ret, nil
32338	// {
32339	//   "description": "Lists all deployments of a shared flow and actual state reported by runtime\npods.",
32340	//   "flatPath": "v1/organizations/{organizationsId}/sharedflows/{sharedflowsId}/revisions/{revisionsId}/deployments",
32341	//   "httpMethod": "GET",
32342	//   "id": "apigee.organizations.sharedflows.revisions.deployments.list",
32343	//   "parameterOrder": [
32344	//     "parent"
32345	//   ],
32346	//   "parameters": {
32347	//     "parent": {
32348	//       "description": "Required. Name of the API proxy revision for which to return deployment information\nin the following format:\n  `organizations/{org}/sharedflows/{sharedflow}/revisions/{rev}`.",
32349	//       "location": "path",
32350	//       "pattern": "^organizations/[^/]+/sharedflows/[^/]+/revisions/[^/]+$",
32351	//       "required": true,
32352	//       "type": "string"
32353	//     }
32354	//   },
32355	//   "path": "v1/{+parent}/deployments",
32356	//   "response": {
32357	//     "$ref": "GoogleCloudApigeeV1ListDeploymentsResponse"
32358	//   },
32359	//   "scopes": [
32360	//     "https://www.googleapis.com/auth/cloud-platform"
32361	//   ]
32362	// }
32363
32364}
32365