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 run provides access to the Cloud Run API.
8//
9// For product documentation, see: https://cloud.google.com/run/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/run/v1alpha1"
16//   ...
17//   ctx := context.Background()
18//   runService, err := run.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//   runService, err := run.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//   runService, err := run.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package run // import "google.golang.org/api/run/v1alpha1"
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	internaloption "google.golang.org/api/option/internaloption"
56	htransport "google.golang.org/api/transport/http"
57)
58
59// Always reference these packages, just in case the auto-generated code
60// below doesn't.
61var _ = bytes.NewBuffer
62var _ = strconv.Itoa
63var _ = fmt.Sprintf
64var _ = json.NewDecoder
65var _ = io.Copy
66var _ = url.Parse
67var _ = gensupport.MarshalJSON
68var _ = googleapi.Version
69var _ = errors.New
70var _ = strings.Replace
71var _ = context.Canceled
72var _ = internaloption.WithDefaultEndpoint
73
74const apiId = "run:v1alpha1"
75const apiName = "run"
76const apiVersion = "v1alpha1"
77const basePath = "https://run.googleapis.com/"
78
79// OAuth2 scopes used by this API.
80const (
81	// View and manage your data across Google Cloud Platform services
82	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
83)
84
85// NewService creates a new APIService.
86func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
87	scopesOption := option.WithScopes(
88		"https://www.googleapis.com/auth/cloud-platform",
89	)
90	// NOTE: prepend, so we don't override user-specified scopes.
91	opts = append([]option.ClientOption{scopesOption}, opts...)
92	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
93	client, endpoint, err := htransport.NewClient(ctx, opts...)
94	if err != nil {
95		return nil, err
96	}
97	s, err := New(client)
98	if err != nil {
99		return nil, err
100	}
101	if endpoint != "" {
102		s.BasePath = endpoint
103	}
104	return s, nil
105}
106
107// New creates a new APIService. It uses the provided http.Client for requests.
108//
109// Deprecated: please use NewService instead.
110// To provide a custom HTTP client, use option.WithHTTPClient.
111// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
112func New(client *http.Client) (*APIService, error) {
113	if client == nil {
114		return nil, errors.New("client is nil")
115	}
116	s := &APIService{client: client, BasePath: basePath}
117	s.Namespaces = NewNamespacesService(s)
118	s.Projects = NewProjectsService(s)
119	return s, nil
120}
121
122type APIService struct {
123	client    *http.Client
124	BasePath  string // API endpoint base URL
125	UserAgent string // optional additional User-Agent fragment
126
127	Namespaces *NamespacesService
128
129	Projects *ProjectsService
130}
131
132func (s *APIService) userAgent() string {
133	if s.UserAgent == "" {
134		return googleapi.UserAgent
135	}
136	return googleapi.UserAgent + " " + s.UserAgent
137}
138
139func NewNamespacesService(s *APIService) *NamespacesService {
140	rs := &NamespacesService{s: s}
141	rs.Authorizeddomains = NewNamespacesAuthorizeddomainsService(s)
142	rs.Cloudauditlogssources = NewNamespacesCloudauditlogssourcesService(s)
143	rs.Cloudpubsubsources = NewNamespacesCloudpubsubsourcesService(s)
144	rs.Cloudschedulersources = NewNamespacesCloudschedulersourcesService(s)
145	rs.Cloudstoragesources = NewNamespacesCloudstoragesourcesService(s)
146	rs.Configurations = NewNamespacesConfigurationsService(s)
147	rs.Domainmappings = NewNamespacesDomainmappingsService(s)
148	rs.Revisions = NewNamespacesRevisionsService(s)
149	rs.Routes = NewNamespacesRoutesService(s)
150	rs.Services = NewNamespacesServicesService(s)
151	rs.Triggers = NewNamespacesTriggersService(s)
152	return rs
153}
154
155type NamespacesService struct {
156	s *APIService
157
158	Authorizeddomains *NamespacesAuthorizeddomainsService
159
160	Cloudauditlogssources *NamespacesCloudauditlogssourcesService
161
162	Cloudpubsubsources *NamespacesCloudpubsubsourcesService
163
164	Cloudschedulersources *NamespacesCloudschedulersourcesService
165
166	Cloudstoragesources *NamespacesCloudstoragesourcesService
167
168	Configurations *NamespacesConfigurationsService
169
170	Domainmappings *NamespacesDomainmappingsService
171
172	Revisions *NamespacesRevisionsService
173
174	Routes *NamespacesRoutesService
175
176	Services *NamespacesServicesService
177
178	Triggers *NamespacesTriggersService
179}
180
181func NewNamespacesAuthorizeddomainsService(s *APIService) *NamespacesAuthorizeddomainsService {
182	rs := &NamespacesAuthorizeddomainsService{s: s}
183	return rs
184}
185
186type NamespacesAuthorizeddomainsService struct {
187	s *APIService
188}
189
190func NewNamespacesCloudauditlogssourcesService(s *APIService) *NamespacesCloudauditlogssourcesService {
191	rs := &NamespacesCloudauditlogssourcesService{s: s}
192	return rs
193}
194
195type NamespacesCloudauditlogssourcesService struct {
196	s *APIService
197}
198
199func NewNamespacesCloudpubsubsourcesService(s *APIService) *NamespacesCloudpubsubsourcesService {
200	rs := &NamespacesCloudpubsubsourcesService{s: s}
201	return rs
202}
203
204type NamespacesCloudpubsubsourcesService struct {
205	s *APIService
206}
207
208func NewNamespacesCloudschedulersourcesService(s *APIService) *NamespacesCloudschedulersourcesService {
209	rs := &NamespacesCloudschedulersourcesService{s: s}
210	return rs
211}
212
213type NamespacesCloudschedulersourcesService struct {
214	s *APIService
215}
216
217func NewNamespacesCloudstoragesourcesService(s *APIService) *NamespacesCloudstoragesourcesService {
218	rs := &NamespacesCloudstoragesourcesService{s: s}
219	return rs
220}
221
222type NamespacesCloudstoragesourcesService struct {
223	s *APIService
224}
225
226func NewNamespacesConfigurationsService(s *APIService) *NamespacesConfigurationsService {
227	rs := &NamespacesConfigurationsService{s: s}
228	return rs
229}
230
231type NamespacesConfigurationsService struct {
232	s *APIService
233}
234
235func NewNamespacesDomainmappingsService(s *APIService) *NamespacesDomainmappingsService {
236	rs := &NamespacesDomainmappingsService{s: s}
237	return rs
238}
239
240type NamespacesDomainmappingsService struct {
241	s *APIService
242}
243
244func NewNamespacesRevisionsService(s *APIService) *NamespacesRevisionsService {
245	rs := &NamespacesRevisionsService{s: s}
246	return rs
247}
248
249type NamespacesRevisionsService struct {
250	s *APIService
251}
252
253func NewNamespacesRoutesService(s *APIService) *NamespacesRoutesService {
254	rs := &NamespacesRoutesService{s: s}
255	return rs
256}
257
258type NamespacesRoutesService struct {
259	s *APIService
260}
261
262func NewNamespacesServicesService(s *APIService) *NamespacesServicesService {
263	rs := &NamespacesServicesService{s: s}
264	return rs
265}
266
267type NamespacesServicesService struct {
268	s *APIService
269}
270
271func NewNamespacesTriggersService(s *APIService) *NamespacesTriggersService {
272	rs := &NamespacesTriggersService{s: s}
273	return rs
274}
275
276type NamespacesTriggersService struct {
277	s *APIService
278}
279
280func NewProjectsService(s *APIService) *ProjectsService {
281	rs := &ProjectsService{s: s}
282	rs.Locations = NewProjectsLocationsService(s)
283	return rs
284}
285
286type ProjectsService struct {
287	s *APIService
288
289	Locations *ProjectsLocationsService
290}
291
292func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService {
293	rs := &ProjectsLocationsService{s: s}
294	rs.Authorizeddomains = NewProjectsLocationsAuthorizeddomainsService(s)
295	rs.Cloudauditlogssources = NewProjectsLocationsCloudauditlogssourcesService(s)
296	rs.Cloudpubsubsources = NewProjectsLocationsCloudpubsubsourcesService(s)
297	rs.Cloudschedulersources = NewProjectsLocationsCloudschedulersourcesService(s)
298	rs.Cloudstoragesources = NewProjectsLocationsCloudstoragesourcesService(s)
299	rs.Configurations = NewProjectsLocationsConfigurationsService(s)
300	rs.Domainmappings = NewProjectsLocationsDomainmappingsService(s)
301	rs.Revisions = NewProjectsLocationsRevisionsService(s)
302	rs.Routes = NewProjectsLocationsRoutesService(s)
303	rs.Services = NewProjectsLocationsServicesService(s)
304	rs.Triggers = NewProjectsLocationsTriggersService(s)
305	return rs
306}
307
308type ProjectsLocationsService struct {
309	s *APIService
310
311	Authorizeddomains *ProjectsLocationsAuthorizeddomainsService
312
313	Cloudauditlogssources *ProjectsLocationsCloudauditlogssourcesService
314
315	Cloudpubsubsources *ProjectsLocationsCloudpubsubsourcesService
316
317	Cloudschedulersources *ProjectsLocationsCloudschedulersourcesService
318
319	Cloudstoragesources *ProjectsLocationsCloudstoragesourcesService
320
321	Configurations *ProjectsLocationsConfigurationsService
322
323	Domainmappings *ProjectsLocationsDomainmappingsService
324
325	Revisions *ProjectsLocationsRevisionsService
326
327	Routes *ProjectsLocationsRoutesService
328
329	Services *ProjectsLocationsServicesService
330
331	Triggers *ProjectsLocationsTriggersService
332}
333
334func NewProjectsLocationsAuthorizeddomainsService(s *APIService) *ProjectsLocationsAuthorizeddomainsService {
335	rs := &ProjectsLocationsAuthorizeddomainsService{s: s}
336	return rs
337}
338
339type ProjectsLocationsAuthorizeddomainsService struct {
340	s *APIService
341}
342
343func NewProjectsLocationsCloudauditlogssourcesService(s *APIService) *ProjectsLocationsCloudauditlogssourcesService {
344	rs := &ProjectsLocationsCloudauditlogssourcesService{s: s}
345	return rs
346}
347
348type ProjectsLocationsCloudauditlogssourcesService struct {
349	s *APIService
350}
351
352func NewProjectsLocationsCloudpubsubsourcesService(s *APIService) *ProjectsLocationsCloudpubsubsourcesService {
353	rs := &ProjectsLocationsCloudpubsubsourcesService{s: s}
354	return rs
355}
356
357type ProjectsLocationsCloudpubsubsourcesService struct {
358	s *APIService
359}
360
361func NewProjectsLocationsCloudschedulersourcesService(s *APIService) *ProjectsLocationsCloudschedulersourcesService {
362	rs := &ProjectsLocationsCloudschedulersourcesService{s: s}
363	return rs
364}
365
366type ProjectsLocationsCloudschedulersourcesService struct {
367	s *APIService
368}
369
370func NewProjectsLocationsCloudstoragesourcesService(s *APIService) *ProjectsLocationsCloudstoragesourcesService {
371	rs := &ProjectsLocationsCloudstoragesourcesService{s: s}
372	return rs
373}
374
375type ProjectsLocationsCloudstoragesourcesService struct {
376	s *APIService
377}
378
379func NewProjectsLocationsConfigurationsService(s *APIService) *ProjectsLocationsConfigurationsService {
380	rs := &ProjectsLocationsConfigurationsService{s: s}
381	return rs
382}
383
384type ProjectsLocationsConfigurationsService struct {
385	s *APIService
386}
387
388func NewProjectsLocationsDomainmappingsService(s *APIService) *ProjectsLocationsDomainmappingsService {
389	rs := &ProjectsLocationsDomainmappingsService{s: s}
390	return rs
391}
392
393type ProjectsLocationsDomainmappingsService struct {
394	s *APIService
395}
396
397func NewProjectsLocationsRevisionsService(s *APIService) *ProjectsLocationsRevisionsService {
398	rs := &ProjectsLocationsRevisionsService{s: s}
399	return rs
400}
401
402type ProjectsLocationsRevisionsService struct {
403	s *APIService
404}
405
406func NewProjectsLocationsRoutesService(s *APIService) *ProjectsLocationsRoutesService {
407	rs := &ProjectsLocationsRoutesService{s: s}
408	return rs
409}
410
411type ProjectsLocationsRoutesService struct {
412	s *APIService
413}
414
415func NewProjectsLocationsServicesService(s *APIService) *ProjectsLocationsServicesService {
416	rs := &ProjectsLocationsServicesService{s: s}
417	return rs
418}
419
420type ProjectsLocationsServicesService struct {
421	s *APIService
422}
423
424func NewProjectsLocationsTriggersService(s *APIService) *ProjectsLocationsTriggersService {
425	rs := &ProjectsLocationsTriggersService{s: s}
426	return rs
427}
428
429type ProjectsLocationsTriggersService struct {
430	s *APIService
431}
432
433// Addressable: Information for connecting over HTTP(s).
434type Addressable struct {
435	// Hostname: Deprecated - use url instead.
436	Hostname string `json:"hostname,omitempty"`
437
438	Url string `json:"url,omitempty"`
439
440	// ForceSendFields is a list of field names (e.g. "Hostname") to
441	// unconditionally include in API requests. By default, fields with
442	// empty values are omitted from API requests. However, any non-pointer,
443	// non-interface field appearing in ForceSendFields will be sent to the
444	// server regardless of whether the field is empty or not. This may be
445	// used to include empty fields in Patch requests.
446	ForceSendFields []string `json:"-"`
447
448	// NullFields is a list of field names (e.g. "Hostname") to include in
449	// API requests with the JSON null value. By default, fields with empty
450	// values are omitted from API requests. However, any field with an
451	// empty value appearing in NullFields will be sent to the server as
452	// null. It is an error if a field in this list has a non-empty value.
453	// This may be used to include null fields in Patch requests.
454	NullFields []string `json:"-"`
455}
456
457func (s *Addressable) MarshalJSON() ([]byte, error) {
458	type NoMethod Addressable
459	raw := NoMethod(*s)
460	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
461}
462
463// AuditConfig: Specifies the audit configuration for a service.
464// The configuration determines which permission types are logged, and
465// what
466// identities, if any, are exempted from logging.
467// An AuditConfig must have one or more AuditLogConfigs.
468//
469// If there are AuditConfigs for both `allServices` and a specific
470// service,
471// the union of the two AuditConfigs is used for that service: the
472// log_types
473// specified in each AuditConfig are enabled, and the exempted_members
474// in each
475// AuditLogConfig are exempted.
476//
477// Example Policy with multiple AuditConfigs:
478//
479//     {
480//       "audit_configs": [
481//         {
482//           "service": "allServices"
483//           "audit_log_configs": [
484//             {
485//               "log_type": "DATA_READ",
486//               "exempted_members": [
487//                 "user:jose@example.com"
488//               ]
489//             },
490//             {
491//               "log_type": "DATA_WRITE",
492//             },
493//             {
494//               "log_type": "ADMIN_READ",
495//             }
496//           ]
497//         },
498//         {
499//           "service": "sampleservice.googleapis.com"
500//           "audit_log_configs": [
501//             {
502//               "log_type": "DATA_READ",
503//             },
504//             {
505//               "log_type": "DATA_WRITE",
506//               "exempted_members": [
507//                 "user:aliya@example.com"
508//               ]
509//             }
510//           ]
511//         }
512//       ]
513//     }
514//
515// For sampleservice, this policy enables DATA_READ, DATA_WRITE and
516// ADMIN_READ
517// logging. It also exempts jose@example.com from DATA_READ logging,
518// and
519// aliya@example.com from DATA_WRITE logging.
520type AuditConfig struct {
521	// AuditLogConfigs: The configuration for logging of each type of
522	// permission.
523	AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"`
524
525	// Service: Specifies a service that will be enabled for audit
526	// logging.
527	// For example, `storage.googleapis.com`,
528	// `cloudsql.googleapis.com`.
529	// `allServices` is a special value that covers all services.
530	Service string `json:"service,omitempty"`
531
532	// ForceSendFields is a list of field names (e.g. "AuditLogConfigs") to
533	// unconditionally include in API requests. By default, fields with
534	// empty values are omitted from API requests. However, any non-pointer,
535	// non-interface field appearing in ForceSendFields will be sent to the
536	// server regardless of whether the field is empty or not. This may be
537	// used to include empty fields in Patch requests.
538	ForceSendFields []string `json:"-"`
539
540	// NullFields is a list of field names (e.g. "AuditLogConfigs") to
541	// include in API requests with the JSON null value. By default, fields
542	// with empty values are omitted from API requests. However, any field
543	// with an empty value appearing in NullFields will be sent to the
544	// server as null. It is an error if a field in this list has a
545	// non-empty value. This may be used to include null fields in Patch
546	// requests.
547	NullFields []string `json:"-"`
548}
549
550func (s *AuditConfig) MarshalJSON() ([]byte, error) {
551	type NoMethod AuditConfig
552	raw := NoMethod(*s)
553	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
554}
555
556// AuditLogConfig: Provides the configuration for logging a type of
557// permissions.
558// Example:
559//
560//     {
561//       "audit_log_configs": [
562//         {
563//           "log_type": "DATA_READ",
564//           "exempted_members": [
565//             "user:jose@example.com"
566//           ]
567//         },
568//         {
569//           "log_type": "DATA_WRITE",
570//         }
571//       ]
572//     }
573//
574// This enables 'DATA_READ' and 'DATA_WRITE' logging, while
575// exempting
576// jose@example.com from DATA_READ logging.
577type AuditLogConfig struct {
578	// ExemptedMembers: Specifies the identities that do not cause logging
579	// for this type of
580	// permission.
581	// Follows the same format of Binding.members.
582	ExemptedMembers []string `json:"exemptedMembers,omitempty"`
583
584	// LogType: The log type that this config enables.
585	//
586	// Possible values:
587	//   "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this.
588	//   "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy
589	//   "DATA_WRITE" - Data writes. Example: CloudSQL Users create
590	//   "DATA_READ" - Data reads. Example: CloudSQL Users list
591	LogType string `json:"logType,omitempty"`
592
593	// ForceSendFields is a list of field names (e.g. "ExemptedMembers") to
594	// unconditionally include in API requests. By default, fields with
595	// empty values are omitted from API requests. However, any non-pointer,
596	// non-interface field appearing in ForceSendFields will be sent to the
597	// server regardless of whether the field is empty or not. This may be
598	// used to include empty fields in Patch requests.
599	ForceSendFields []string `json:"-"`
600
601	// NullFields is a list of field names (e.g. "ExemptedMembers") to
602	// include in API requests with the JSON null value. By default, fields
603	// with empty values are omitted from API requests. However, any field
604	// with an empty value appearing in NullFields will be sent to the
605	// server as null. It is an error if a field in this list has a
606	// non-empty value. This may be used to include null fields in Patch
607	// requests.
608	NullFields []string `json:"-"`
609}
610
611func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
612	type NoMethod AuditLogConfig
613	raw := NoMethod(*s)
614	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
615}
616
617// AuthorizedDomain: A domain that a user has been authorized to
618// administer. To authorize use
619// of a domain, verify ownership via
620// [Webmaster
621// Central](https://www.google.com/webmasters/verification/home).
622type AuthorizedDomain struct {
623	// Id: Relative name of the domain authorized for use. Example:
624	// `example.com`.
625	Id string `json:"id,omitempty"`
626
627	// Name: Read only. Full path to the `AuthorizedDomain` resource in the
628	// API.
629	// Example: `apps/myapp/authorizedDomains/example.com`.
630	Name string `json:"name,omitempty"`
631
632	// ForceSendFields is a list of field names (e.g. "Id") to
633	// unconditionally include in API requests. By default, fields with
634	// empty values are omitted from API requests. However, any non-pointer,
635	// non-interface field appearing in ForceSendFields will be sent to the
636	// server regardless of whether the field is empty or not. This may be
637	// used to include empty fields in Patch requests.
638	ForceSendFields []string `json:"-"`
639
640	// NullFields is a list of field names (e.g. "Id") to include in API
641	// requests with the JSON null value. By default, fields with empty
642	// values are omitted from API requests. However, any field with an
643	// empty value appearing in NullFields will be sent to the server as
644	// null. It is an error if a field in this list has a non-empty value.
645	// This may be used to include null fields in Patch requests.
646	NullFields []string `json:"-"`
647}
648
649func (s *AuthorizedDomain) MarshalJSON() ([]byte, error) {
650	type NoMethod AuthorizedDomain
651	raw := NoMethod(*s)
652	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
653}
654
655// Binding: Associates `members` with a `role`.
656type Binding struct {
657	// Condition: The condition that is associated with this binding.
658	// NOTE: An unsatisfied condition will not allow user access via
659	// current
660	// binding. Different bindings, including their conditions, are
661	// examined
662	// independently.
663	Condition *Expr `json:"condition,omitempty"`
664
665	// Members: Specifies the identities requesting access for a Cloud
666	// Platform resource.
667	// `members` can have the following values:
668	//
669	// * `allUsers`: A special identifier that represents anyone who is
670	//    on the internet; with or without a Google account.
671	//
672	// * `allAuthenticatedUsers`: A special identifier that represents
673	// anyone
674	//    who is authenticated with a Google account or a service
675	// account.
676	//
677	// * `user:{emailid}`: An email address that represents a specific
678	// Google
679	//    account. For example, `alice@example.com` .
680	//
681	//
682	// * `serviceAccount:{emailid}`: An email address that represents a
683	// service
684	//    account. For example,
685	// `my-other-app@appspot.gserviceaccount.com`.
686	//
687	// * `group:{emailid}`: An email address that represents a Google
688	// group.
689	//    For example, `admins@example.com`.
690	//
691	// * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus
692	// unique
693	//    identifier) representing a user that has been recently deleted.
694	// For
695	//    example, `alice@example.com?uid=123456789012345678901`. If the
696	// user is
697	//    recovered, this value reverts to `user:{emailid}` and the
698	// recovered user
699	//    retains the role in the binding.
700	//
701	// * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address
702	// (plus
703	//    unique identifier) representing a service account that has been
704	// recently
705	//    deleted. For example,
706	//
707	// `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
708	//
709	//    If the service account is undeleted, this value reverts to
710	//    `serviceAccount:{emailid}` and the undeleted service account
711	// retains the
712	//    role in the binding.
713	//
714	// * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus
715	// unique
716	//    identifier) representing a Google group that has been recently
717	//    deleted. For example,
718	// `admins@example.com?uid=123456789012345678901`. If
719	//    the group is recovered, this value reverts to `group:{emailid}`
720	// and the
721	//    recovered group retains the role in the binding.
722	//
723	//
724	// * `domain:{domain}`: The G Suite domain (primary) that represents all
725	// the
726	//    users of that domain. For example, `google.com` or
727	// `example.com`.
728	//
729	//
730	Members []string `json:"members,omitempty"`
731
732	// Role: Role that is assigned to `members`.
733	// For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
734	Role string `json:"role,omitempty"`
735
736	// ForceSendFields is a list of field names (e.g. "Condition") to
737	// unconditionally include in API requests. By default, fields with
738	// empty values are omitted from API requests. However, any non-pointer,
739	// non-interface field appearing in ForceSendFields will be sent to the
740	// server regardless of whether the field is empty or not. This may be
741	// used to include empty fields in Patch requests.
742	ForceSendFields []string `json:"-"`
743
744	// NullFields is a list of field names (e.g. "Condition") to include in
745	// API requests with the JSON null value. By default, fields with empty
746	// values are omitted from API requests. However, any field with an
747	// empty value appearing in NullFields will be sent to the server as
748	// null. It is an error if a field in this list has a non-empty value.
749	// This may be used to include null fields in Patch requests.
750	NullFields []string `json:"-"`
751}
752
753func (s *Binding) MarshalJSON() ([]byte, error) {
754	type NoMethod Binding
755	raw := NoMethod(*s)
756	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
757}
758
759// Capabilities: Adds and removes POSIX capabilities from running
760// containers.
761type Capabilities struct {
762	// Add: Added capabilities
763	// +optional
764	Add []string `json:"add,omitempty"`
765
766	// Drop: Removed capabilities
767	// +optional
768	Drop []string `json:"drop,omitempty"`
769
770	// ForceSendFields is a list of field names (e.g. "Add") to
771	// unconditionally include in API requests. By default, fields with
772	// empty values are omitted from API requests. However, any non-pointer,
773	// non-interface field appearing in ForceSendFields will be sent to the
774	// server regardless of whether the field is empty or not. This may be
775	// used to include empty fields in Patch requests.
776	ForceSendFields []string `json:"-"`
777
778	// NullFields is a list of field names (e.g. "Add") to include in API
779	// requests with the JSON null value. By default, fields with empty
780	// values are omitted from API requests. However, any field with an
781	// empty value appearing in NullFields will be sent to the server as
782	// null. It is an error if a field in this list has a non-empty value.
783	// This may be used to include null fields in Patch requests.
784	NullFields []string `json:"-"`
785}
786
787func (s *Capabilities) MarshalJSON() ([]byte, error) {
788	type NoMethod Capabilities
789	raw := NoMethod(*s)
790	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
791}
792
793type CloudAuditLogsSource struct {
794	// ApiVersion: The API version for this call such as
795	// "events.cloud.google.com/v1alpha1".
796	ApiVersion string `json:"apiVersion,omitempty"`
797
798	// Kind: The kind of resource, in this case "CloudAuditLogsSource".
799	Kind string `json:"kind,omitempty"`
800
801	// Metadata: Metadata associated with this CloudAuditLogsSource.
802	Metadata *ObjectMeta `json:"metadata,omitempty"`
803
804	// Spec: Spec defines the desired state of the CloudAuditLogsSource.
805	Spec *CloudAuditLogsSourceSpec `json:"spec,omitempty"`
806
807	// Status: Status represents the current state of the
808	// CloudAuditLogsSource. This data
809	// may be out of date. +optional
810	Status *CloudAuditLogsSourceStatus `json:"status,omitempty"`
811
812	// ServerResponse contains the HTTP response code and headers from the
813	// server.
814	googleapi.ServerResponse `json:"-"`
815
816	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
817	// unconditionally include in API requests. By default, fields with
818	// empty values are omitted from API requests. However, any non-pointer,
819	// non-interface field appearing in ForceSendFields will be sent to the
820	// server regardless of whether the field is empty or not. This may be
821	// used to include empty fields in Patch requests.
822	ForceSendFields []string `json:"-"`
823
824	// NullFields is a list of field names (e.g. "ApiVersion") to include in
825	// API requests with the JSON null value. By default, fields with empty
826	// values are omitted from API requests. However, any field with an
827	// empty value appearing in NullFields will be sent to the server as
828	// null. It is an error if a field in this list has a non-empty value.
829	// This may be used to include null fields in Patch requests.
830	NullFields []string `json:"-"`
831}
832
833func (s *CloudAuditLogsSource) MarshalJSON() ([]byte, error) {
834	type NoMethod CloudAuditLogsSource
835	raw := NoMethod(*s)
836	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
837}
838
839// CloudAuditLogsSourceSpec: The desired state of the
840// CloudAuditLogsSource.
841type CloudAuditLogsSourceSpec struct {
842	// CeOverrides: CloudEventOverrides defines overrides to control the
843	// output format and
844	// modifications of the event sent to the sink.
845	// +optional
846	CeOverrides *CloudEventOverrides `json:"ceOverrides,omitempty"`
847
848	// MethodName: Required. The method name at the service API. This must
849	// match "methodName" in Cloud
850	// Audit Logs. Regex or Wildcards (*) are not supported.
851	// Example: "google.cloud.bigquery.job.create".
852	MethodName string `json:"methodName,omitempty"`
853
854	// ResourceName: Optional. The resource specification. This must match
855	// "methodName"
856	// in Cloud Audit Logs. Regex or Wildcards (*) are not
857	// supported.
858	// Example: "projects/my-project/jobs/foo".
859	ResourceName string `json:"resourceName,omitempty"`
860
861	// ServiceAccountName: Optional. Email address of the IAM service
862	// account associated with the source. The
863	// service account represents the identity of the source, and determines
864	// what
865	// permissions the source has. If not provided, the source will use
866	// the
867	// project's default service account.
868	ServiceAccountName string `json:"serviceAccountName,omitempty"`
869
870	// ServiceName: Required. The GCP service name. This must match
871	// "serviceName" in Cloud Audit Logs.
872	// Regex or Wildcards (*) are not supported.
873	// Example: "bigquery.googleapis.com".
874	ServiceName string `json:"serviceName,omitempty"`
875
876	// Sink: Sink is a reference to an object that will resolve to a domain
877	// name or a
878	// URI directly to use as the sink.
879	Sink *Destination `json:"sink,omitempty"`
880
881	// ForceSendFields is a list of field names (e.g. "CeOverrides") to
882	// unconditionally include in API requests. By default, fields with
883	// empty values are omitted from API requests. However, any non-pointer,
884	// non-interface field appearing in ForceSendFields will be sent to the
885	// server regardless of whether the field is empty or not. This may be
886	// used to include empty fields in Patch requests.
887	ForceSendFields []string `json:"-"`
888
889	// NullFields is a list of field names (e.g. "CeOverrides") to include
890	// in API requests with the JSON null value. By default, fields with
891	// empty values are omitted from API requests. However, any field with
892	// an empty value appearing in NullFields will be sent to the server as
893	// null. It is an error if a field in this list has a non-empty value.
894	// This may be used to include null fields in Patch requests.
895	NullFields []string `json:"-"`
896}
897
898func (s *CloudAuditLogsSourceSpec) MarshalJSON() ([]byte, error) {
899	type NoMethod CloudAuditLogsSourceSpec
900	raw := NoMethod(*s)
901	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
902}
903
904// CloudAuditLogsSourceStatus: CloudAuditLogsSourceStatus represents the
905// current state of a
906// CloudAuditLogsSource.
907type CloudAuditLogsSourceStatus struct {
908	// Conditions: Array of observed CloudAuditLogsSourceConditions,
909	// indicating the current
910	// state of the CloudAuditLogsSource.
911	Conditions []*Condition `json:"conditions,omitempty"`
912
913	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
914	// CloudAuditLogsSource that
915	// was last processed by the controller.
916	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
917
918	// SinkUri: SinkURI is the current active sink URI that has been
919	// configured for the
920	// Source.
921	// +optional
922	SinkUri string `json:"sinkUri,omitempty"`
923
924	// ForceSendFields is a list of field names (e.g. "Conditions") to
925	// unconditionally include in API requests. By default, fields with
926	// empty values are omitted from API requests. However, any non-pointer,
927	// non-interface field appearing in ForceSendFields will be sent to the
928	// server regardless of whether the field is empty or not. This may be
929	// used to include empty fields in Patch requests.
930	ForceSendFields []string `json:"-"`
931
932	// NullFields is a list of field names (e.g. "Conditions") to include in
933	// API requests with the JSON null value. By default, fields with empty
934	// values are omitted from API requests. However, any field with an
935	// empty value appearing in NullFields will be sent to the server as
936	// null. It is an error if a field in this list has a non-empty value.
937	// This may be used to include null fields in Patch requests.
938	NullFields []string `json:"-"`
939}
940
941func (s *CloudAuditLogsSourceStatus) MarshalJSON() ([]byte, error) {
942	type NoMethod CloudAuditLogsSourceStatus
943	raw := NoMethod(*s)
944	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
945}
946
947// CloudEventOverrides: CloudEventOverrides defines arguments for a
948// Source that control the output
949// format of the CloudEvents produced by the Source.
950type CloudEventOverrides struct {
951	// Extensions: Extensions specify what attribute are added or overridden
952	// on the outbound
953	// event. Each `Extensions` key-value pair are set on the event as
954	// an
955	// attribute extension independently.
956	// +optional
957	Extensions map[string]string `json:"extensions,omitempty"`
958
959	// ForceSendFields is a list of field names (e.g. "Extensions") to
960	// unconditionally include in API requests. By default, fields with
961	// empty values are omitted from API requests. However, any non-pointer,
962	// non-interface field appearing in ForceSendFields will be sent to the
963	// server regardless of whether the field is empty or not. This may be
964	// used to include empty fields in Patch requests.
965	ForceSendFields []string `json:"-"`
966
967	// NullFields is a list of field names (e.g. "Extensions") to include in
968	// API requests with the JSON null value. By default, fields with empty
969	// values are omitted from API requests. However, any field with an
970	// empty value appearing in NullFields will be sent to the server as
971	// null. It is an error if a field in this list has a non-empty value.
972	// This may be used to include null fields in Patch requests.
973	NullFields []string `json:"-"`
974}
975
976func (s *CloudEventOverrides) MarshalJSON() ([]byte, error) {
977	type NoMethod CloudEventOverrides
978	raw := NoMethod(*s)
979	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
980}
981
982type CloudPubSubSource struct {
983	// ApiVersion: The API version for this call such as
984	// "events.cloud.google.com/v1alpha1".
985	ApiVersion string `json:"apiVersion,omitempty"`
986
987	// Kind: The kind of resource, in this case "CloudPubSubSource".
988	Kind string `json:"kind,omitempty"`
989
990	// Metadata: Metadata associated with this CloudPubSubSource.
991	Metadata *ObjectMeta `json:"metadata,omitempty"`
992
993	// Spec: Spec defines the desired state of the CloudPubSubSource.
994	Spec *CloudPubSubSourceSpec `json:"spec,omitempty"`
995
996	// Status: Status represents the current state of the CloudPubSubSource.
997	// This data may
998	// be out of date. +optional
999	Status *CloudPubSubSourceStatus `json:"status,omitempty"`
1000
1001	// ServerResponse contains the HTTP response code and headers from the
1002	// server.
1003	googleapi.ServerResponse `json:"-"`
1004
1005	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1006	// unconditionally include in API requests. By default, fields with
1007	// empty values are omitted from API requests. However, any non-pointer,
1008	// non-interface field appearing in ForceSendFields will be sent to the
1009	// server regardless of whether the field is empty or not. This may be
1010	// used to include empty fields in Patch requests.
1011	ForceSendFields []string `json:"-"`
1012
1013	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1014	// API requests with the JSON null value. By default, fields with empty
1015	// values are omitted from API requests. However, any field with an
1016	// empty value appearing in NullFields will be sent to the server as
1017	// null. It is an error if a field in this list has a non-empty value.
1018	// This may be used to include null fields in Patch requests.
1019	NullFields []string `json:"-"`
1020}
1021
1022func (s *CloudPubSubSource) MarshalJSON() ([]byte, error) {
1023	type NoMethod CloudPubSubSource
1024	raw := NoMethod(*s)
1025	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1026}
1027
1028// CloudPubSubSourceSpec: The desired state of the CloudPubSubSource.
1029type CloudPubSubSourceSpec struct {
1030	// AckDeadline: AckDeadline is the default maximum time after a
1031	// subscriber receives a
1032	// message before the subscriber should acknowledge the message.
1033	// Defaults
1034	// to 30 seconds ('30s').
1035	// +optional
1036	AckDeadline string `json:"ackDeadline,omitempty"`
1037
1038	// CeOverrides: CloudEventOverrides defines overrides to control the
1039	// output format and
1040	// modifications of the event sent to the sink.
1041	// +optional
1042	CeOverrides *CloudEventOverrides `json:"ceOverrides,omitempty"`
1043
1044	// Project: Project is the ID of the Google Cloud Project that the
1045	// CloudPubSubSource
1046	// Topic exists in. If omitted, defaults to same as the cluster.
1047	// +optional
1048	Project string `json:"project,omitempty"`
1049
1050	// PubsubSecret: CloudPubSubSourceSecret is the credential to use to
1051	// create
1052	// Topic / PullSubscription resources. If omitted, uses Secret.
1053	PubsubSecret *SecretKeySelector `json:"pubsubSecret,omitempty"`
1054
1055	// RetainAckedMessages: RetainAckedMessages defines whether to retain
1056	// acknowledged messages. If
1057	// true, acknowledged messages will not be expunged until they fall out
1058	// of
1059	// the RetentionDuration window.
1060	RetainAckedMessages bool `json:"retainAckedMessages,omitempty"`
1061
1062	// RetentionDuration: RetentionDuration defines how long to retain
1063	// messages in backlog, from
1064	// the time of publish. If RetainAckedMessages is true, this
1065	// duration
1066	// affects the retention of acknowledged messages, otherwise
1067	// only
1068	// unacknowledged messages are retained. Cannot be longer than 7 days
1069	// or
1070	// shorter than 10 minutes. Defaults to 7 days ('7d').
1071	// +optional
1072	RetentionDuration string `json:"retentionDuration,omitempty"`
1073
1074	// Secret: Secret is the credential to use to create the Scheduler
1075	// Job.
1076	// If not specified, defaults to:
1077	// Name: google-cloud-key
1078	// Key: key.json
1079	// +optional
1080	Secret *SecretKeySelector `json:"secret,omitempty"`
1081
1082	// Sink: Sink is a reference to an object that will resolve to a domain
1083	// name or a
1084	// URI directly to use as the sink.
1085	Sink *Destination `json:"sink,omitempty"`
1086
1087	// Topic: Topic is the ID of the CloudPubSubSource Topic to Subscribe
1088	// to. It must
1089	// be in the form of the unique identifier within the project, not
1090	// the
1091	// entire name. E.g. it must be 'laconia',
1092	// not
1093	// 'projects/my-proj/topics/laconia'.
1094	Topic string `json:"topic,omitempty"`
1095
1096	// ForceSendFields is a list of field names (e.g. "AckDeadline") to
1097	// unconditionally include in API requests. By default, fields with
1098	// empty values are omitted from API requests. However, any non-pointer,
1099	// non-interface field appearing in ForceSendFields will be sent to the
1100	// server regardless of whether the field is empty or not. This may be
1101	// used to include empty fields in Patch requests.
1102	ForceSendFields []string `json:"-"`
1103
1104	// NullFields is a list of field names (e.g. "AckDeadline") to include
1105	// in API requests with the JSON null value. By default, fields with
1106	// empty values are omitted from API requests. However, any field with
1107	// an empty value appearing in NullFields will be sent to the server as
1108	// null. It is an error if a field in this list has a non-empty value.
1109	// This may be used to include null fields in Patch requests.
1110	NullFields []string `json:"-"`
1111}
1112
1113func (s *CloudPubSubSourceSpec) MarshalJSON() ([]byte, error) {
1114	type NoMethod CloudPubSubSourceSpec
1115	raw := NoMethod(*s)
1116	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1117}
1118
1119// CloudPubSubSourceStatus: CloudPubSubSourceStatus represents the
1120// current state of a CloudPubSubSource.
1121type CloudPubSubSourceStatus struct {
1122	// Conditions: Array of observed CloudPubSubSourceConditions, indicating
1123	// the current state
1124	// of the CloudPubSubSource.
1125	Conditions []*Condition `json:"conditions,omitempty"`
1126
1127	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1128	// CloudPubSubSource that
1129	// was last processed by the controller.
1130	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1131
1132	// SinkUri: SinkURI is the current active sink URI that has been
1133	// configured for the
1134	// Source.
1135	// +optional
1136	SinkUri string `json:"sinkUri,omitempty"`
1137
1138	// ForceSendFields is a list of field names (e.g. "Conditions") to
1139	// unconditionally include in API requests. By default, fields with
1140	// empty values are omitted from API requests. However, any non-pointer,
1141	// non-interface field appearing in ForceSendFields will be sent to the
1142	// server regardless of whether the field is empty or not. This may be
1143	// used to include empty fields in Patch requests.
1144	ForceSendFields []string `json:"-"`
1145
1146	// NullFields is a list of field names (e.g. "Conditions") to include in
1147	// API requests with the JSON null value. By default, fields with empty
1148	// values are omitted from API requests. However, any field with an
1149	// empty value appearing in NullFields will be sent to the server as
1150	// null. It is an error if a field in this list has a non-empty value.
1151	// This may be used to include null fields in Patch requests.
1152	NullFields []string `json:"-"`
1153}
1154
1155func (s *CloudPubSubSourceStatus) MarshalJSON() ([]byte, error) {
1156	type NoMethod CloudPubSubSourceStatus
1157	raw := NoMethod(*s)
1158	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1159}
1160
1161// CloudSchedulerSource: The CloudSchedulerSource resource.
1162type CloudSchedulerSource struct {
1163	// ApiVersion: The API version for this call such as
1164	// "events.cloud.google.com/v1alpha1".
1165	ApiVersion string `json:"apiVersion,omitempty"`
1166
1167	// Kind: The kind of resource, in this case "CloudSchedulerSource".
1168	Kind string `json:"kind,omitempty"`
1169
1170	// Metadata: Metadata associated with this CloudSchedulerSource.
1171	Metadata *ObjectMeta `json:"metadata,omitempty"`
1172
1173	// Spec: Spec defines the desired state of the CloudSchedulerSource.
1174	Spec *CloudSchedulerSourceSpec `json:"spec,omitempty"`
1175
1176	// Status: Status represents the current state of the
1177	// CloudSchedulerSource. This data
1178	// may be out of date.
1179	Status *CloudSchedulerSourceStatus `json:"status,omitempty"`
1180
1181	// ServerResponse contains the HTTP response code and headers from the
1182	// server.
1183	googleapi.ServerResponse `json:"-"`
1184
1185	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1186	// unconditionally include in API requests. By default, fields with
1187	// empty values are omitted from API requests. However, any non-pointer,
1188	// non-interface field appearing in ForceSendFields will be sent to the
1189	// server regardless of whether the field is empty or not. This may be
1190	// used to include empty fields in Patch requests.
1191	ForceSendFields []string `json:"-"`
1192
1193	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1194	// API requests with the JSON null value. By default, fields with empty
1195	// values are omitted from API requests. However, any field with an
1196	// empty value appearing in NullFields will be sent to the server as
1197	// null. It is an error if a field in this list has a non-empty value.
1198	// This may be used to include null fields in Patch requests.
1199	NullFields []string `json:"-"`
1200}
1201
1202func (s *CloudSchedulerSource) MarshalJSON() ([]byte, error) {
1203	type NoMethod CloudSchedulerSource
1204	raw := NoMethod(*s)
1205	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1206}
1207
1208// CloudSchedulerSourceSpec: The desired state of the
1209// CloudSchedulerSource.
1210type CloudSchedulerSourceSpec struct {
1211	// CeOverrides: CloudEventOverrides defines overrides to control the
1212	// output format and
1213	// modifications of the event sent to the sink.
1214	CeOverrides *CloudEventOverrides `json:"ceOverrides,omitempty"`
1215
1216	// Data: Data to send in the payload of the Event.
1217	Data string `json:"data,omitempty"`
1218
1219	// Location: Location to create the Scheduler job in.
1220	Location string `json:"location,omitempty"`
1221
1222	// Project: Project is the ID of the Google Cloud Project that the
1223	// CloudPubSubSource
1224	// Topic exists in. If omitted, defaults to same as the cluster.
1225	Project string `json:"project,omitempty"`
1226
1227	// PubsubSecret: CloudPubSubSourceSecret is the credential to use to
1228	// create
1229	// Topic / PullSubscription resources. If omitted, uses Secret.
1230	PubsubSecret *SecretKeySelector `json:"pubsubSecret,omitempty"`
1231
1232	// Schedule: Schedule in cron format, for example: "* * * * *" would be
1233	// run
1234	// every minute.
1235	Schedule string `json:"schedule,omitempty"`
1236
1237	// Secret: Secret is the credential to use to create the Scheduler
1238	// Job.
1239	// If not specified, defaults to:
1240	// Name: google-cloud-key
1241	// Key: key.json
1242	Secret *SecretKeySelector `json:"secret,omitempty"`
1243
1244	// Sink: Sink is a reference to an object that will resolve to a domain
1245	// name or a
1246	// URI directly to use as the sink.
1247	Sink *Destination `json:"sink,omitempty"`
1248
1249	// ForceSendFields is a list of field names (e.g. "CeOverrides") to
1250	// unconditionally include in API requests. By default, fields with
1251	// empty values are omitted from API requests. However, any non-pointer,
1252	// non-interface field appearing in ForceSendFields will be sent to the
1253	// server regardless of whether the field is empty or not. This may be
1254	// used to include empty fields in Patch requests.
1255	ForceSendFields []string `json:"-"`
1256
1257	// NullFields is a list of field names (e.g. "CeOverrides") to include
1258	// in API requests with the JSON null value. By default, fields with
1259	// empty values are omitted from API requests. However, any field with
1260	// an empty value appearing in NullFields will be sent to the server as
1261	// null. It is an error if a field in this list has a non-empty value.
1262	// This may be used to include null fields in Patch requests.
1263	NullFields []string `json:"-"`
1264}
1265
1266func (s *CloudSchedulerSourceSpec) MarshalJSON() ([]byte, error) {
1267	type NoMethod CloudSchedulerSourceSpec
1268	raw := NoMethod(*s)
1269	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1270}
1271
1272// CloudSchedulerSourceStatus: CloudSchedulerSourceStatus represents the
1273// current state of a
1274// CloudSchedulerSource.
1275type CloudSchedulerSourceStatus struct {
1276	// Conditions: Array of observed CloudSchedulerSourceConditions,
1277	// indicating the current
1278	// state of the CloudSchedulerSource.
1279	Conditions []*Condition `json:"conditions,omitempty"`
1280
1281	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1282	// CloudSchedulerSource that
1283	// was last processed by the controller.
1284	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1285
1286	// SinkUri: SinkURI is the current active sink URI that has been
1287	// configured for the
1288	// Source.
1289	SinkUri string `json:"sinkUri,omitempty"`
1290
1291	// ForceSendFields is a list of field names (e.g. "Conditions") 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. "Conditions") 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 *CloudSchedulerSourceStatus) MarshalJSON() ([]byte, error) {
1309	type NoMethod CloudSchedulerSourceStatus
1310	raw := NoMethod(*s)
1311	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1312}
1313
1314// CloudStorageSource: The CloudStorageSource resource.
1315type CloudStorageSource struct {
1316	// ApiVersion: The API version for this call such as
1317	// "events.cloud.google.com/v1alpha1".
1318	ApiVersion string `json:"apiVersion,omitempty"`
1319
1320	// Kind: The kind of resource, in this case "CloudStorageSource".
1321	Kind string `json:"kind,omitempty"`
1322
1323	// Metadata: Metadata associated with this CloudStorageSource.
1324	Metadata *ObjectMeta `json:"metadata,omitempty"`
1325
1326	// Spec: Spec defines the desired state of the CloudStorageSource.
1327	Spec *CloudStorageSourceSpec `json:"spec,omitempty"`
1328
1329	// Status: Status represents the current state of the
1330	// CloudStorageSource. This data
1331	// may be out of date.
1332	Status *CloudStorageSourceStatus `json:"status,omitempty"`
1333
1334	// ServerResponse contains the HTTP response code and headers from the
1335	// server.
1336	googleapi.ServerResponse `json:"-"`
1337
1338	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1339	// unconditionally include in API requests. By default, fields with
1340	// empty values are omitted from API requests. However, any non-pointer,
1341	// non-interface field appearing in ForceSendFields will be sent to the
1342	// server regardless of whether the field is empty or not. This may be
1343	// used to include empty fields in Patch requests.
1344	ForceSendFields []string `json:"-"`
1345
1346	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1347	// API requests with the JSON null value. By default, fields with empty
1348	// values are omitted from API requests. However, any field with an
1349	// empty value appearing in NullFields will be sent to the server as
1350	// null. It is an error if a field in this list has a non-empty value.
1351	// This may be used to include null fields in Patch requests.
1352	NullFields []string `json:"-"`
1353}
1354
1355func (s *CloudStorageSource) MarshalJSON() ([]byte, error) {
1356	type NoMethod CloudStorageSource
1357	raw := NoMethod(*s)
1358	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1359}
1360
1361// CloudStorageSourceSpec: The desired state of the CloudStorageSource.
1362type CloudStorageSourceSpec struct {
1363	// Bucket: Bucket to subscribe to.
1364	Bucket string `json:"bucket,omitempty"`
1365
1366	// CeOverrides: CloudEventOverrides defines overrides to control the
1367	// output format and
1368	// modifications of the event sent to the sink.
1369	CeOverrides *CloudEventOverrides `json:"ceOverrides,omitempty"`
1370
1371	// EventTypes: EventTypes to subscribe to. If unspecified, then
1372	// subscribe to all events.
1373	EventTypes []string `json:"eventTypes,omitempty"`
1374
1375	// ObjectNamePrefix: ObjectNamePrefix limits the notifications to
1376	// objects with this prefix.
1377	ObjectNamePrefix string `json:"objectNamePrefix,omitempty"`
1378
1379	// PayloadFormat: PayloadFormat specifies the contents of the message
1380	// payload.
1381	// See
1382	// https://cloud.google.com/storage/docs/pubsub-notifications#payload.
1383	PayloadFormat string `json:"payloadFormat,omitempty"`
1384
1385	// Project: Project is the ID of the Google Cloud Project that the
1386	// PubSub Topic exists
1387	// in. If omitted, defaults to same as the cluster.
1388	Project string `json:"project,omitempty"`
1389
1390	// PubsubSecret: PubSubSecret is the credential to use to create
1391	// Topic / PullSubscription resources. If omitted, uses Secret.
1392	PubsubSecret *SecretKeySelector `json:"pubsubSecret,omitempty"`
1393
1394	// Secret: Secret is the credential to use to create the Scheduler
1395	// Job.
1396	// If not specified, defaults to:
1397	// Name: google-cloud-key
1398	// Key: key.json
1399	Secret *SecretKeySelector `json:"secret,omitempty"`
1400
1401	// ServiceAccountName: ServiceAccountName holds the name of the
1402	// Kubernetes service account
1403	// as which the underlying K8s resources should be run. If
1404	// unspecified
1405	// this will default to the "default" service account for the
1406	// namespace
1407	// in which the GCS exists.
1408	ServiceAccountName string `json:"serviceAccountName,omitempty"`
1409
1410	// Sink: Sink is a reference to an object that will resolve to a domain
1411	// name or a
1412	// URI directly to use as the sink.
1413	Sink *Destination `json:"sink,omitempty"`
1414
1415	// ForceSendFields is a list of field names (e.g. "Bucket") to
1416	// unconditionally include in API requests. By default, fields with
1417	// empty values are omitted from API requests. However, any non-pointer,
1418	// non-interface field appearing in ForceSendFields will be sent to the
1419	// server regardless of whether the field is empty or not. This may be
1420	// used to include empty fields in Patch requests.
1421	ForceSendFields []string `json:"-"`
1422
1423	// NullFields is a list of field names (e.g. "Bucket") to include in API
1424	// requests with the JSON null value. By default, fields with empty
1425	// values are omitted from API requests. However, any field with an
1426	// empty value appearing in NullFields will be sent to the server as
1427	// null. It is an error if a field in this list has a non-empty value.
1428	// This may be used to include null fields in Patch requests.
1429	NullFields []string `json:"-"`
1430}
1431
1432func (s *CloudStorageSourceSpec) MarshalJSON() ([]byte, error) {
1433	type NoMethod CloudStorageSourceSpec
1434	raw := NoMethod(*s)
1435	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1436}
1437
1438// CloudStorageSourceStatus: CloudStorageSourceStatus represents the
1439// current state of a
1440// CloudStorageSource.
1441type CloudStorageSourceStatus struct {
1442	// Conditions: Array of observed CloudStorageSourceConditions,
1443	// indicating the current
1444	// state of the CloudStorageSource.
1445	Conditions []*Condition `json:"conditions,omitempty"`
1446
1447	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1448	// CloudStorageSource that
1449	// was last processed by the controller.
1450	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1451
1452	// SinkUri: SinkURI is the current active sink URI that has been
1453	// configured for the
1454	// Source.
1455	SinkUri string `json:"sinkUri,omitempty"`
1456
1457	// ForceSendFields is a list of field names (e.g. "Conditions") to
1458	// unconditionally include in API requests. By default, fields with
1459	// empty values are omitted from API requests. However, any non-pointer,
1460	// non-interface field appearing in ForceSendFields will be sent to the
1461	// server regardless of whether the field is empty or not. This may be
1462	// used to include empty fields in Patch requests.
1463	ForceSendFields []string `json:"-"`
1464
1465	// NullFields is a list of field names (e.g. "Conditions") to include in
1466	// API requests with the JSON null value. By default, fields with empty
1467	// values are omitted from API requests. However, any field with an
1468	// empty value appearing in NullFields will be sent to the server as
1469	// null. It is an error if a field in this list has a non-empty value.
1470	// This may be used to include null fields in Patch requests.
1471	NullFields []string `json:"-"`
1472}
1473
1474func (s *CloudStorageSourceStatus) MarshalJSON() ([]byte, error) {
1475	type NoMethod CloudStorageSourceStatus
1476	raw := NoMethod(*s)
1477	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1478}
1479
1480// Condition: Condition defines a generic condition for a Resource
1481type Condition struct {
1482	// LastTransitionTime: Optional. Last time the condition transitioned
1483	// from one status to another.
1484	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
1485
1486	// Message: Optional. Human readable message indicating details about
1487	// the current status.
1488	Message string `json:"message,omitempty"`
1489
1490	// Reason: Optional. One-word CamelCase reason for the condition's last
1491	// transition.
1492	Reason string `json:"reason,omitempty"`
1493
1494	// Severity: Optional. How to interpret failures of this condition, one
1495	// of Error, Warning, Info
1496	Severity string `json:"severity,omitempty"`
1497
1498	// Status: Status of the condition, one of True, False, Unknown.
1499	Status string `json:"status,omitempty"`
1500
1501	// Type: type is used to communicate the status of the reconciliation
1502	// process.
1503	// See
1504	// also:
1505	// https://github.com/knative/serving/blob/master/docs/spec/errors.
1506	// md#error-conditions-and-reporting
1507	// Types common to all resources include:
1508	// * "Ready": True when the Resource is ready.
1509	Type string `json:"type,omitempty"`
1510
1511	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
1512	// to unconditionally include in API requests. By default, fields with
1513	// empty values are omitted from API requests. However, any non-pointer,
1514	// non-interface field appearing in ForceSendFields will be sent to the
1515	// server regardless of whether the field is empty or not. This may be
1516	// used to include empty fields in Patch requests.
1517	ForceSendFields []string `json:"-"`
1518
1519	// NullFields is a list of field names (e.g. "LastTransitionTime") to
1520	// include in API requests with the JSON null value. By default, fields
1521	// with empty values are omitted from API requests. However, any field
1522	// with an empty value appearing in NullFields will be sent to the
1523	// server as null. It is an error if a field in this list has a
1524	// non-empty value. This may be used to include null fields in Patch
1525	// requests.
1526	NullFields []string `json:"-"`
1527}
1528
1529func (s *Condition) MarshalJSON() ([]byte, error) {
1530	type NoMethod Condition
1531	raw := NoMethod(*s)
1532	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1533}
1534
1535// ConfigMapEnvSource: ConfigMapEnvSource selects a ConfigMap to
1536// populate the environment
1537// variables with.
1538//
1539// The contents of the target ConfigMap's Data field will represent
1540// the
1541// key-value pairs as environment variables.
1542type ConfigMapEnvSource struct {
1543	// LocalObjectReference: This field should not be used directly as it is
1544	// meant to be inlined
1545	// directly into the message. Use the "name" field instead.
1546	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
1547
1548	// Name: Cloud Run fully managed: not supported
1549	//
1550	// Cloud Run for Anthos: supported
1551	//
1552	// The ConfigMap to select from.
1553	Name string `json:"name,omitempty"`
1554
1555	// Optional: Cloud Run fully managed: not supported
1556	//
1557	// Cloud Run for Anthos: supported
1558	//
1559	// Specify whether the ConfigMap must be defined
1560	// +optional
1561	Optional bool `json:"optional,omitempty"`
1562
1563	// ForceSendFields is a list of field names (e.g.
1564	// "LocalObjectReference") to unconditionally include in API requests.
1565	// By default, fields with empty values are omitted from API requests.
1566	// However, any non-pointer, non-interface field appearing in
1567	// ForceSendFields will be sent to the server regardless of whether the
1568	// field is empty or not. This may be used to include empty fields in
1569	// Patch requests.
1570	ForceSendFields []string `json:"-"`
1571
1572	// NullFields is a list of field names (e.g. "LocalObjectReference") to
1573	// include in API requests with the JSON null value. By default, fields
1574	// with empty values are omitted from API requests. However, any field
1575	// with an empty value appearing in NullFields will be sent to the
1576	// server as null. It is an error if a field in this list has a
1577	// non-empty value. This may be used to include null fields in Patch
1578	// requests.
1579	NullFields []string `json:"-"`
1580}
1581
1582func (s *ConfigMapEnvSource) MarshalJSON() ([]byte, error) {
1583	type NoMethod ConfigMapEnvSource
1584	raw := NoMethod(*s)
1585	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1586}
1587
1588// ConfigMapKeySelector: Cloud Run fully managed: not supported
1589//
1590// Cloud Run on GKE: supported
1591//
1592// Selects a key from a ConfigMap.
1593type ConfigMapKeySelector struct {
1594	// Key: Cloud Run fully managed: not supported
1595	//
1596	// Cloud Run on GKE: supported
1597	//
1598	// The key to select.
1599	Key string `json:"key,omitempty"`
1600
1601	// LocalObjectReference: This field should not be used directly as it is
1602	// meant to be inlined
1603	// directly into the message. Use the "name" field instead.
1604	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
1605
1606	// Name: Cloud Run fully managed: not supported
1607	//
1608	// Cloud Run on GKE: supported
1609	//
1610	// The ConfigMap to select from.
1611	Name string `json:"name,omitempty"`
1612
1613	// Optional: Cloud Run fully managed: not supported
1614	//
1615	// Cloud Run on GKE: supported
1616	//
1617	// Specify whether the ConfigMap or its key must be defined
1618	// +optional
1619	Optional bool `json:"optional,omitempty"`
1620
1621	// ForceSendFields is a list of field names (e.g. "Key") to
1622	// unconditionally include in API requests. By default, fields with
1623	// empty values are omitted from API requests. However, any non-pointer,
1624	// non-interface field appearing in ForceSendFields will be sent to the
1625	// server regardless of whether the field is empty or not. This may be
1626	// used to include empty fields in Patch requests.
1627	ForceSendFields []string `json:"-"`
1628
1629	// NullFields is a list of field names (e.g. "Key") to include in API
1630	// requests with the JSON null value. By default, fields with empty
1631	// values are omitted from API requests. However, any field with an
1632	// empty value appearing in NullFields will be sent to the server as
1633	// null. It is an error if a field in this list has a non-empty value.
1634	// This may be used to include null fields in Patch requests.
1635	NullFields []string `json:"-"`
1636}
1637
1638func (s *ConfigMapKeySelector) MarshalJSON() ([]byte, error) {
1639	type NoMethod ConfigMapKeySelector
1640	raw := NoMethod(*s)
1641	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1642}
1643
1644// ConfigMapVolumeSource: Adapts a ConfigMap into a volume.
1645// The contents of the target ConfigMap's Data field will be presented
1646// in a
1647// volume as files using the keys in the Data field as the file names,
1648// unless
1649// the items element is populated with specific mappings of keys to
1650// paths.
1651type ConfigMapVolumeSource struct {
1652	// DefaultMode: Mode bits to use on created files by default. Must be a
1653	// value between 0 and
1654	// 0777. Defaults to 0644. Directories within the path are not affected
1655	// by
1656	// this setting. This might be in conflict with other options that
1657	// affect the
1658	// file mode, like fsGroup, and the result can be other mode bits set.
1659	DefaultMode int64 `json:"defaultMode,omitempty"`
1660
1661	// Items: If unspecified, each key-value pair in the Data field of the
1662	// referenced
1663	// Secret will be projected into the volume as a file whose name is
1664	// the
1665	// key and content is the value. If specified, the listed keys will
1666	// be
1667	// projected into the specified paths, and unlisted keys will not
1668	// be
1669	// present. If a key is specified which is not present in the
1670	// Secret,
1671	// the volume setup will error unless it is marked optional.
1672	Items []*KeyToPath `json:"items,omitempty"`
1673
1674	// Name: Name of the config.
1675	Name string `json:"name,omitempty"`
1676
1677	// Optional: Specify whether the Secret or its keys must be defined.
1678	Optional bool `json:"optional,omitempty"`
1679
1680	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
1681	// unconditionally include in API requests. By default, fields with
1682	// empty values are omitted from API requests. However, any non-pointer,
1683	// non-interface field appearing in ForceSendFields will be sent to the
1684	// server regardless of whether the field is empty or not. This may be
1685	// used to include empty fields in Patch requests.
1686	ForceSendFields []string `json:"-"`
1687
1688	// NullFields is a list of field names (e.g. "DefaultMode") to include
1689	// in API requests with the JSON null value. By default, fields with
1690	// empty values are omitted from API requests. However, any field with
1691	// an empty value appearing in NullFields will be sent to the server as
1692	// null. It is an error if a field in this list has a non-empty value.
1693	// This may be used to include null fields in Patch requests.
1694	NullFields []string `json:"-"`
1695}
1696
1697func (s *ConfigMapVolumeSource) MarshalJSON() ([]byte, error) {
1698	type NoMethod ConfigMapVolumeSource
1699	raw := NoMethod(*s)
1700	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1701}
1702
1703// Configuration: Configuration represents the "floating HEAD" of a
1704// linear history of
1705// Revisions, and optionally how the containers those revisions
1706// reference are
1707// built. Users create new Revisions by updating the Configuration's
1708// spec. The
1709// "latest created" revision's name is available under status, as is the
1710// "latest
1711// ready" revision's name. See
1712// also:
1713// https://github.com/knative/serving/blob/master/docs/spec/overvie
1714// w.md#configuration
1715type Configuration struct {
1716	// ApiVersion: The API version for this call such as
1717	// "serving.knative.dev/v1alpha1".
1718	ApiVersion string `json:"apiVersion,omitempty"`
1719
1720	// Kind: The kind of resource, in this case always "Configuration".
1721	Kind string `json:"kind,omitempty"`
1722
1723	// Metadata: Metadata associated with this Configuration, including
1724	// name, namespace,
1725	// labels, and annotations.
1726	Metadata *ObjectMeta `json:"metadata,omitempty"`
1727
1728	// Spec: Spec holds the desired state of the Configuration (from the
1729	// client).
1730	Spec *ConfigurationSpec `json:"spec,omitempty"`
1731
1732	// Status: Status communicates the observed state of the Configuration
1733	// (from the
1734	// controller).
1735	Status *ConfigurationStatus `json:"status,omitempty"`
1736
1737	// ServerResponse contains the HTTP response code and headers from the
1738	// server.
1739	googleapi.ServerResponse `json:"-"`
1740
1741	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
1742	// unconditionally include in API requests. By default, fields with
1743	// empty values are omitted from API requests. However, any non-pointer,
1744	// non-interface field appearing in ForceSendFields will be sent to the
1745	// server regardless of whether the field is empty or not. This may be
1746	// used to include empty fields in Patch requests.
1747	ForceSendFields []string `json:"-"`
1748
1749	// NullFields is a list of field names (e.g. "ApiVersion") to include in
1750	// API requests with the JSON null value. By default, fields with empty
1751	// values are omitted from API requests. However, any field with an
1752	// empty value appearing in NullFields will be sent to the server as
1753	// null. It is an error if a field in this list has a non-empty value.
1754	// This may be used to include null fields in Patch requests.
1755	NullFields []string `json:"-"`
1756}
1757
1758func (s *Configuration) MarshalJSON() ([]byte, error) {
1759	type NoMethod Configuration
1760	raw := NoMethod(*s)
1761	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1762}
1763
1764// ConfigurationCondition: ConfigurationCondition defines a readiness
1765// condition for a Configuration.
1766type ConfigurationCondition struct {
1767	// LastTransitionTime: Last time the condition transitioned from one
1768	// status to another.
1769	// +optional
1770	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
1771
1772	// Message: Human-readable message indicating details about last
1773	// transition.
1774	// +optional
1775	Message string `json:"message,omitempty"`
1776
1777	// Reason: One-word CamelCase reason for the condition's last
1778	// transition.
1779	// +optional
1780	Reason string `json:"reason,omitempty"`
1781
1782	// Severity: How to interpret failures of this condition, one of Error,
1783	// Warning, Info
1784	// +optional
1785	Severity string `json:"severity,omitempty"`
1786
1787	// Status: Status of the condition, one of True, False, Unknown.
1788	Status string `json:"status,omitempty"`
1789
1790	// Type: ConfigurationConditionType is used to communicate the status of
1791	// the
1792	// reconciliation process. See
1793	// also:
1794	// https://github.com/knative/serving/blob/master/docs/spec/errors.
1795	// md#error-conditions-and-reporting
1796	// Types include:"Ready"
1797	Type string `json:"type,omitempty"`
1798
1799	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
1800	// to unconditionally include in API requests. By default, fields with
1801	// empty values are omitted from API requests. However, any non-pointer,
1802	// non-interface field appearing in ForceSendFields will be sent to the
1803	// server regardless of whether the field is empty or not. This may be
1804	// used to include empty fields in Patch requests.
1805	ForceSendFields []string `json:"-"`
1806
1807	// NullFields is a list of field names (e.g. "LastTransitionTime") to
1808	// include in API requests with the JSON null value. By default, fields
1809	// with empty values are omitted from API requests. However, any field
1810	// with an empty value appearing in NullFields will be sent to the
1811	// server as null. It is an error if a field in this list has a
1812	// non-empty value. This may be used to include null fields in Patch
1813	// requests.
1814	NullFields []string `json:"-"`
1815}
1816
1817func (s *ConfigurationCondition) MarshalJSON() ([]byte, error) {
1818	type NoMethod ConfigurationCondition
1819	raw := NoMethod(*s)
1820	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1821}
1822
1823// ConfigurationSpec: ConfigurationSpec holds the desired state of the
1824// Configuration (from the
1825// client).
1826type ConfigurationSpec struct {
1827	// Generation: Deprecated and not currently populated by Cloud Run.
1828	// See
1829	// metadata.generation instead, which is the sequence number containing
1830	// the
1831	// latest generation of the desired state.
1832	//
1833	// Read-only.
1834	Generation int64 `json:"generation,omitempty"`
1835
1836	// RevisionTemplate: RevisionTemplate holds the latest specification for
1837	// the Revision to
1838	// be stamped out. The template references the container image, and may
1839	// also
1840	// include labels and annotations that should be attached to the
1841	// Revision.
1842	// To correlate a Revision, and/or to force a Revision to be created
1843	// when the
1844	// spec doesn't otherwise change, a nonce label may be provided in
1845	// the
1846	// template metadata. For more details,
1847	// see:
1848	// https://github.com/knative/serving/blob/master/docs/client-conven
1849	// tions.md#associate-modifications-with-revisions
1850	//
1851	// Cloud Run does not currently support referencing a build that
1852	// is
1853	// responsible for materializing the container image from source.
1854	RevisionTemplate *RevisionTemplate `json:"revisionTemplate,omitempty"`
1855
1856	// Template: Template holds the latest specification for the Revision to
1857	// be stamped out.
1858	Template *RevisionTemplate `json:"template,omitempty"`
1859
1860	// ForceSendFields is a list of field names (e.g. "Generation") to
1861	// unconditionally include in API requests. By default, fields with
1862	// empty values are omitted from API requests. However, any non-pointer,
1863	// non-interface field appearing in ForceSendFields will be sent to the
1864	// server regardless of whether the field is empty or not. This may be
1865	// used to include empty fields in Patch requests.
1866	ForceSendFields []string `json:"-"`
1867
1868	// NullFields is a list of field names (e.g. "Generation") to include in
1869	// API requests with the JSON null value. By default, fields with empty
1870	// values are omitted from API requests. However, any field with an
1871	// empty value appearing in NullFields will be sent to the server as
1872	// null. It is an error if a field in this list has a non-empty value.
1873	// This may be used to include null fields in Patch requests.
1874	NullFields []string `json:"-"`
1875}
1876
1877func (s *ConfigurationSpec) MarshalJSON() ([]byte, error) {
1878	type NoMethod ConfigurationSpec
1879	raw := NoMethod(*s)
1880	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1881}
1882
1883// ConfigurationStatus: ConfigurationStatus communicates the observed
1884// state of the Configuration
1885// (from the controller).
1886type ConfigurationStatus struct {
1887	// Conditions: Conditions communicates information about
1888	// ongoing/complete
1889	// reconciliation processes that bring the "spec" inline with the
1890	// observed
1891	// state of the world.
1892	Conditions []*ConfigurationCondition `json:"conditions,omitempty"`
1893
1894	// LatestCreatedRevisionName: LatestCreatedRevisionName is the last
1895	// revision that was created from this
1896	// Configuration. It might not be ready yet, for that
1897	// use
1898	// LatestReadyRevisionName.
1899	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
1900
1901	// LatestReadyRevisionName: LatestReadyRevisionName holds the name of
1902	// the latest Revision stamped out
1903	// from this Configuration that has had its "Ready" condition become
1904	// "True".
1905	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
1906
1907	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
1908	// Configuration that
1909	// was last processed by the controller. The observed generation is
1910	// updated
1911	// even if the controller failed to process the spec and create the
1912	// Revision.
1913	//
1914	// Clients polling for completed reconciliation should poll
1915	// until
1916	// observedGeneration = metadata.generation, and the Ready condition's
1917	// status
1918	// is True or False.
1919	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
1920
1921	// ForceSendFields is a list of field names (e.g. "Conditions") to
1922	// unconditionally include in API requests. By default, fields with
1923	// empty values are omitted from API requests. However, any non-pointer,
1924	// non-interface field appearing in ForceSendFields will be sent to the
1925	// server regardless of whether the field is empty or not. This may be
1926	// used to include empty fields in Patch requests.
1927	ForceSendFields []string `json:"-"`
1928
1929	// NullFields is a list of field names (e.g. "Conditions") to include in
1930	// API requests with the JSON null value. By default, fields with empty
1931	// values are omitted from API requests. However, any field with an
1932	// empty value appearing in NullFields will be sent to the server as
1933	// null. It is an error if a field in this list has a non-empty value.
1934	// This may be used to include null fields in Patch requests.
1935	NullFields []string `json:"-"`
1936}
1937
1938func (s *ConfigurationStatus) MarshalJSON() ([]byte, error) {
1939	type NoMethod ConfigurationStatus
1940	raw := NoMethod(*s)
1941	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1942}
1943
1944// Container: A single application container.
1945// This specifies both the container to run, the command to run in the
1946// container
1947// and the arguments to supply to it.
1948// Note that additional arguments may be supplied by the system to the
1949// container
1950// at runtime.
1951type Container struct {
1952	// Args: Arguments to the entrypoint.
1953	// The docker image's CMD is used if this is not provided.
1954	// Variable references $(VAR_NAME) are expanded using the
1955	// container's
1956	// environment. If a variable cannot be resolved, the reference in the
1957	// input
1958	// string will be unchanged. The $(VAR_NAME) syntax can be escaped with
1959	// a
1960	// double $$, ie: $$(VAR_NAME). Escaped references will never be
1961	// expanded,
1962	// regardless of whether the variable exists or not.
1963	// Cannot be updated.
1964	// More
1965	// info:
1966	// https://kubernetes.io/docs/tasks/inject-data-application/define-
1967	// command-argument-container/#running-a-command-in-a-shell
1968	// +optional
1969	Args []string `json:"args,omitempty"`
1970
1971	// Command: Entrypoint array. Not executed within a shell.
1972	// The docker image's ENTRYPOINT is used if this is not
1973	// provided.
1974	// Variable references $(VAR_NAME) are expanded using the
1975	// container's
1976	// environment. If a variable cannot be resolved, the reference in the
1977	// input
1978	// string will be unchanged. The $(VAR_NAME) syntax can be escaped with
1979	// a
1980	// double $$, ie: $$(VAR_NAME). Escaped references will never be
1981	// expanded,
1982	// regardless of whether the variable exists or not.
1983	// Cannot be updated.
1984	// More
1985	// info:
1986	// https://kubernetes.io/docs/tasks/inject-data-application/define-
1987	// command-argument-container/#running-a-command-in-a-shell
1988	// +optional
1989	Command []string `json:"command,omitempty"`
1990
1991	// Env: List of environment variables to set in the container.
1992	// Cannot be updated.
1993	// +optional
1994	Env []*EnvVar `json:"env,omitempty"`
1995
1996	// EnvFrom: List of sources to populate environment variables in the
1997	// container.
1998	// The keys defined within a source must be a C_IDENTIFIER. All invalid
1999	// keys
2000	// will be reported as an event when the container is starting. When a
2001	// key
2002	// exists in multiple sources, the value associated with the last source
2003	// will
2004	// take precedence. Values defined by an Env with a duplicate key will
2005	// take
2006	// precedence. Cannot be updated. +optional
2007	EnvFrom []*EnvFromSource `json:"envFrom,omitempty"`
2008
2009	// Image: Docker image name.
2010	// More info: https://kubernetes.io/docs/concepts/containers/images
2011	Image string `json:"image,omitempty"`
2012
2013	// ImagePullPolicy: Image pull policy.
2014	// One of Always, Never, IfNotPresent.
2015	// Defaults to Always if :latest tag is specified, or IfNotPresent
2016	// otherwise.
2017	// Cannot be updated.
2018	// More
2019	// info:
2020	// https://kubernetes.io/docs/concepts/containers/images#updating-i
2021	// mages
2022	// +optional
2023	ImagePullPolicy string `json:"imagePullPolicy,omitempty"`
2024
2025	// Lifecycle: Actions that the management system should take in response
2026	// to container
2027	// lifecycle events. Cannot be updated. +optional
2028	Lifecycle *Lifecycle `json:"lifecycle,omitempty"`
2029
2030	// LivenessProbe: Periodic probe of container liveness.
2031	// Container will be restarted if the probe fails.
2032	// Cannot be updated.
2033	// More
2034	// info:
2035	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
2036	// #container-probes
2037	// +optional
2038	LivenessProbe *Probe `json:"livenessProbe,omitempty"`
2039
2040	// Name: Name of the container specified as a DNS_LABEL.
2041	// Each container must have a unique name (DNS_LABEL).
2042	// Cannot be updated.
2043	Name string `json:"name,omitempty"`
2044
2045	// Ports: List of ports to expose from the container. Exposing a port
2046	// here gives
2047	// the system additional information about the network connections
2048	// a
2049	// container uses, but is primarily informational. Not specifying a port
2050	// here
2051	// DOES NOT prevent that port from being exposed. Any port which
2052	// is
2053	// listening on the default "0.0.0.0" address inside a container will
2054	// be
2055	// accessible from the network.
2056	// Cannot be updated.
2057	// +optional
2058	Ports []*ContainerPort `json:"ports,omitempty"`
2059
2060	// ReadinessProbe: Periodic probe of container service
2061	// readiness.
2062	// Container will be removed from service endpoints if the probe
2063	// fails.
2064	// Cannot be updated.
2065	// More
2066	// info:
2067	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
2068	// #container-probes
2069	// +optional
2070	ReadinessProbe *Probe `json:"readinessProbe,omitempty"`
2071
2072	// Resources: Compute Resources required by this container.
2073	// Cannot be updated.
2074	// More
2075	// info:
2076	// https://kubernetes.io/docs/concepts/storage/persistent-volumes#r
2077	// esources
2078	// +optional
2079	Resources *ResourceRequirements `json:"resources,omitempty"`
2080
2081	// SecurityContext: Security options the pod should run with.
2082	// More info:
2083	// https://kubernetes.io/docs/concepts/policy/security-context/
2084	// More
2085	// info:
2086	// https://kubernetes.io/docs/tasks/configure-pod-container/securit
2087	// y-context/
2088	// +optional
2089	SecurityContext *SecurityContext `json:"securityContext,omitempty"`
2090
2091	// Stdin: Whether this container should allocate a buffer for stdin in
2092	// the container
2093	// runtime. If this is not set, reads from stdin in the container will
2094	// always
2095	// result in EOF. Default is false. +optional
2096	Stdin bool `json:"stdin,omitempty"`
2097
2098	// StdinOnce: Whether the container runtime should close the stdin
2099	// channel after it has
2100	// been opened by a single attach. When stdin is true the stdin stream
2101	// will
2102	// remain open across multiple attach sessions. If stdinOnce is set to
2103	// true,
2104	// stdin is opened on container start, is empty until the first
2105	// client
2106	// attaches to stdin, and then remains open and accepts data until the
2107	// client
2108	// disconnects, at which time stdin is closed and remains closed until
2109	// the
2110	// container is restarted. If this flag is false, a container processes
2111	// that
2112	// reads from stdin will never receive an EOF. Default is false
2113	// +optional
2114	StdinOnce bool `json:"stdinOnce,omitempty"`
2115
2116	// TerminationMessagePath: Optional: Path at which the file to which the
2117	// container's termination
2118	// message will be written is mounted into the container's filesystem.
2119	// Message
2120	// written is intended to be brief final status, such as an assertion
2121	// failure
2122	// message. Will be truncated by the node if greater than 4096 bytes.
2123	// The
2124	// total message length across all containers will be limited to
2125	// 12kb.
2126	// Defaults to /dev/termination-log.
2127	// Cannot be updated.
2128	// +optional
2129	TerminationMessagePath string `json:"terminationMessagePath,omitempty"`
2130
2131	// TerminationMessagePolicy: Indicate how the termination message should
2132	// be populated. File will use the
2133	// contents of terminationMessagePath to populate the container status
2134	// message
2135	// on both success and failure. FallbackToLogsOnError will use the last
2136	// chunk
2137	// of container log output if the termination message file is empty and
2138	// the
2139	// container exited with an error. The log output is limited to 2048
2140	// bytes or
2141	// 80 lines, whichever is smaller. Defaults to File. Cannot be
2142	// updated.
2143	// +optional
2144	TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"`
2145
2146	// Tty: Whether this container should allocate a TTY for itself, also
2147	// requires
2148	// 'stdin' to be true. Default is false. +optional
2149	Tty bool `json:"tty,omitempty"`
2150
2151	// VolumeDevices: volumeDevices is the list of block devices to be used
2152	// by the container.
2153	// This is an alpha feature and may change in the future.
2154	// +optional
2155	VolumeDevices []*VolumeDevice `json:"volumeDevices,omitempty"`
2156
2157	// VolumeMounts: Pod volumes to mount into the container's
2158	// filesystem.
2159	// Cannot be updated.
2160	// +optional
2161	VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"`
2162
2163	// WorkingDir: Container's working directory.
2164	// If not specified, the container runtime's default will be used,
2165	// which
2166	// might be configured in the container image.
2167	// Cannot be updated.
2168	// +optional
2169	WorkingDir string `json:"workingDir,omitempty"`
2170
2171	// ForceSendFields is a list of field names (e.g. "Args") 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. "Args") to include in API
2180	// requests with the JSON null value. By default, fields with empty
2181	// values are omitted from API requests. However, any field with an
2182	// 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 *Container) MarshalJSON() ([]byte, error) {
2189	type NoMethod Container
2190	raw := NoMethod(*s)
2191	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2192}
2193
2194// ContainerPort: ContainerPort represents a network port in a single
2195// container.
2196type ContainerPort struct {
2197	// ContainerPort: Number of port to expose on the pod's IP address.
2198	// This must be a valid port number, 0 < x < 65536.
2199	ContainerPort int64 `json:"containerPort,omitempty"`
2200
2201	// HostIP: What host IP to bind the external port to.
2202	// +optional
2203	HostIP string `json:"hostIP,omitempty"`
2204
2205	// HostPort: Number of port to expose on the host.
2206	// If specified, this must be a valid port number, 0 < x < 65536.
2207	// If HostNetwork is specified, this must match ContainerPort.
2208	// Most containers do not need this.
2209	// +optional
2210	HostPort int64 `json:"hostPort,omitempty"`
2211
2212	// Name: If specified, this must be an IANA_SVC_NAME and unique within
2213	// the pod. Each
2214	// named port in a pod must have a unique name. Name for the port that
2215	// can be
2216	// referred to by services.
2217	// +optional
2218	Name string `json:"name,omitempty"`
2219
2220	// Protocol: Protocol for port. Must be UDP or TCP.
2221	// Defaults to "TCP".
2222	// +optional
2223	Protocol string `json:"protocol,omitempty"`
2224
2225	// ForceSendFields is a list of field names (e.g. "ContainerPort") to
2226	// unconditionally include in API requests. By default, fields with
2227	// empty values are omitted from API requests. However, any non-pointer,
2228	// non-interface field appearing in ForceSendFields will be sent to the
2229	// server regardless of whether the field is empty or not. This may be
2230	// used to include empty fields in Patch requests.
2231	ForceSendFields []string `json:"-"`
2232
2233	// NullFields is a list of field names (e.g. "ContainerPort") to include
2234	// in API requests with the JSON null value. By default, fields with
2235	// empty values are omitted from API requests. However, any field with
2236	// an empty value appearing in NullFields will be sent to the server as
2237	// null. It is an error if a field in this list has a non-empty value.
2238	// This may be used to include null fields in Patch requests.
2239	NullFields []string `json:"-"`
2240}
2241
2242func (s *ContainerPort) MarshalJSON() ([]byte, error) {
2243	type NoMethod ContainerPort
2244	raw := NoMethod(*s)
2245	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2246}
2247
2248type Destination struct {
2249	// Ref: ObjectReference points to an Addressable.
2250	// + optional
2251	Ref *ObjectReference `json:"ref,omitempty"`
2252
2253	// Uri: URI is for direct URI Designations or used with the resulting
2254	// URL from
2255	// Addressable ObjectReference. If used with an ObjectReference, will
2256	// be
2257	// appended to the path of the resulting URL from the Addressable.
2258	// + optional
2259	Uri string `json:"uri,omitempty"`
2260
2261	// ForceSendFields is a list of field names (e.g. "Ref") to
2262	// unconditionally include in API requests. By default, fields with
2263	// empty values are omitted from API requests. However, any non-pointer,
2264	// non-interface field appearing in ForceSendFields will be sent to the
2265	// server regardless of whether the field is empty or not. This may be
2266	// used to include empty fields in Patch requests.
2267	ForceSendFields []string `json:"-"`
2268
2269	// NullFields is a list of field names (e.g. "Ref") to include in API
2270	// requests with the JSON null value. By default, fields with empty
2271	// values are omitted from API requests. However, any field with an
2272	// empty value appearing in NullFields will be sent to the server as
2273	// null. It is an error if a field in this list has a non-empty value.
2274	// This may be used to include null fields in Patch requests.
2275	NullFields []string `json:"-"`
2276}
2277
2278func (s *Destination) MarshalJSON() ([]byte, error) {
2279	type NoMethod Destination
2280	raw := NoMethod(*s)
2281	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2282}
2283
2284// DomainMapping: Resource to hold the state and status of a user's
2285// domain mapping.
2286type DomainMapping struct {
2287	// ApiVersion: The API version for this call such as
2288	// "domains.cloudrun.com/v1alpha1".
2289	ApiVersion string `json:"apiVersion,omitempty"`
2290
2291	// Kind: The kind of resource, in this case "DomainMapping".
2292	Kind string `json:"kind,omitempty"`
2293
2294	// Metadata: Metadata associated with this BuildTemplate.
2295	Metadata *ObjectMeta `json:"metadata,omitempty"`
2296
2297	// Spec: The spec for this DomainMapping.
2298	Spec *DomainMappingSpec `json:"spec,omitempty"`
2299
2300	// Status: The current status of the DomainMapping.
2301	Status *DomainMappingStatus `json:"status,omitempty"`
2302
2303	// ServerResponse contains the HTTP response code and headers from the
2304	// server.
2305	googleapi.ServerResponse `json:"-"`
2306
2307	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
2308	// unconditionally include in API requests. By default, fields with
2309	// empty values are omitted from API requests. However, any non-pointer,
2310	// non-interface field appearing in ForceSendFields will be sent to the
2311	// server regardless of whether the field is empty or not. This may be
2312	// used to include empty fields in Patch requests.
2313	ForceSendFields []string `json:"-"`
2314
2315	// NullFields is a list of field names (e.g. "ApiVersion") to include in
2316	// API requests with the JSON null value. By default, fields with empty
2317	// values are omitted from API requests. However, any field with an
2318	// empty value appearing in NullFields will be sent to the server as
2319	// null. It is an error if a field in this list has a non-empty value.
2320	// This may be used to include null fields in Patch requests.
2321	NullFields []string `json:"-"`
2322}
2323
2324func (s *DomainMapping) MarshalJSON() ([]byte, error) {
2325	type NoMethod DomainMapping
2326	raw := NoMethod(*s)
2327	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2328}
2329
2330// DomainMappingCondition: DomainMappingCondition contains state
2331// information for a DomainMapping.
2332type DomainMappingCondition struct {
2333	// LastTransitionTime: Last time the condition transitioned from one
2334	// status to another.
2335	// +optional
2336	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
2337
2338	// Message: Human readable message indicating details about the current
2339	// status.
2340	// +optional
2341	Message string `json:"message,omitempty"`
2342
2343	// Reason: One-word CamelCase reason for the condition's current
2344	// status.
2345	// +optional
2346	Reason string `json:"reason,omitempty"`
2347
2348	// Severity: How to interpret failures of this condition, one of Error,
2349	// Warning, Info
2350	// +optional
2351	Severity string `json:"severity,omitempty"`
2352
2353	// Status: Status of the condition, one of True, False, Unknown.
2354	Status string `json:"status,omitempty"`
2355
2356	// Type: Type of domain mapping condition.
2357	Type string `json:"type,omitempty"`
2358
2359	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
2360	// to unconditionally include in API requests. By default, fields with
2361	// empty values are omitted from API requests. However, any non-pointer,
2362	// non-interface field appearing in ForceSendFields will be sent to the
2363	// server regardless of whether the field is empty or not. This may be
2364	// used to include empty fields in Patch requests.
2365	ForceSendFields []string `json:"-"`
2366
2367	// NullFields is a list of field names (e.g. "LastTransitionTime") to
2368	// include in API requests with the JSON null value. By default, fields
2369	// with empty values are omitted from API requests. However, any field
2370	// with an empty value appearing in NullFields will be sent to the
2371	// server as null. It is an error if a field in this list has a
2372	// non-empty value. This may be used to include null fields in Patch
2373	// requests.
2374	NullFields []string `json:"-"`
2375}
2376
2377func (s *DomainMappingCondition) MarshalJSON() ([]byte, error) {
2378	type NoMethod DomainMappingCondition
2379	raw := NoMethod(*s)
2380	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2381}
2382
2383// DomainMappingSpec: The desired state of the Domain Mapping.
2384type DomainMappingSpec struct {
2385	// CertificateMode: The mode of the certificate.
2386	//
2387	// Possible values:
2388	//   "CERTIFICATE_MODE_UNSPECIFIED"
2389	//   "NONE" - Do not provision an HTTPS certificate.
2390	//   "AUTOMATIC" - Automatically provisions an HTTPS certificate via
2391	// LetsEncrypt.
2392	CertificateMode string `json:"certificateMode,omitempty"`
2393
2394	// ForceOverride: If set, the mapping will override any mapping set
2395	// before this spec was set.
2396	// It is recommended that the user leaves this empty to receive an
2397	// error
2398	// warning about a potential conflict and only set it once the
2399	// respective UI
2400	// has given such a warning.
2401	ForceOverride bool `json:"forceOverride,omitempty"`
2402
2403	// RouteName: The name of the Knative Route that this DomainMapping
2404	// applies to.
2405	// The route must exist.
2406	RouteName string `json:"routeName,omitempty"`
2407
2408	// ForceSendFields is a list of field names (e.g. "CertificateMode") to
2409	// unconditionally include in API requests. By default, fields with
2410	// empty values are omitted from API requests. However, any non-pointer,
2411	// non-interface field appearing in ForceSendFields will be sent to the
2412	// server regardless of whether the field is empty or not. This may be
2413	// used to include empty fields in Patch requests.
2414	ForceSendFields []string `json:"-"`
2415
2416	// NullFields is a list of field names (e.g. "CertificateMode") to
2417	// include in API requests with the JSON null value. By default, fields
2418	// with empty values are omitted from API requests. However, any field
2419	// with an empty value appearing in NullFields will be sent to the
2420	// server as null. It is an error if a field in this list has a
2421	// non-empty value. This may be used to include null fields in Patch
2422	// requests.
2423	NullFields []string `json:"-"`
2424}
2425
2426func (s *DomainMappingSpec) MarshalJSON() ([]byte, error) {
2427	type NoMethod DomainMappingSpec
2428	raw := NoMethod(*s)
2429	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2430}
2431
2432// DomainMappingStatus: The current state of the Domain Mapping.
2433type DomainMappingStatus struct {
2434	// Conditions: Array of observed DomainMappingConditions, indicating the
2435	// current state
2436	// of the DomainMapping.
2437	Conditions []*DomainMappingCondition `json:"conditions,omitempty"`
2438
2439	// MappedRouteName: The name of the route that the mapping currently
2440	// points to.
2441	MappedRouteName string `json:"mappedRouteName,omitempty"`
2442
2443	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
2444	// DomainMapping that
2445	// was last processed by the controller.
2446	//
2447	// Clients polling for completed reconciliation should poll
2448	// until
2449	// observedGeneration = metadata.generation and the Ready condition's
2450	// status
2451	// is True or False.
2452	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
2453
2454	// ResourceRecords: The resource records required to configure this
2455	// domain mapping. These
2456	// records must be added to the domain's DNS configuration in order
2457	// to
2458	// serve the application via this domain mapping.
2459	ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"`
2460
2461	// ForceSendFields is a list of field names (e.g. "Conditions") to
2462	// unconditionally include in API requests. By default, fields with
2463	// empty values are omitted from API requests. However, any non-pointer,
2464	// non-interface field appearing in ForceSendFields will be sent to the
2465	// server regardless of whether the field is empty or not. This may be
2466	// used to include empty fields in Patch requests.
2467	ForceSendFields []string `json:"-"`
2468
2469	// NullFields is a list of field names (e.g. "Conditions") to include in
2470	// API requests with the JSON null value. By default, fields with empty
2471	// values are omitted from API requests. However, any field with an
2472	// empty value appearing in NullFields will be sent to the server as
2473	// null. It is an error if a field in this list has a non-empty value.
2474	// This may be used to include null fields in Patch requests.
2475	NullFields []string `json:"-"`
2476}
2477
2478func (s *DomainMappingStatus) MarshalJSON() ([]byte, error) {
2479	type NoMethod DomainMappingStatus
2480	raw := NoMethod(*s)
2481	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2482}
2483
2484// Empty: A generic empty message that you can re-use to avoid defining
2485// duplicated
2486// empty messages in your APIs. A typical example is to use it as the
2487// request
2488// or the response type of an API method. For instance:
2489//
2490//     service Foo {
2491//       rpc Bar(google.protobuf.Empty) returns
2492// (google.protobuf.Empty);
2493//     }
2494//
2495// The JSON representation for `Empty` is empty JSON object `{}`.
2496type Empty struct {
2497	// ServerResponse contains the HTTP response code and headers from the
2498	// server.
2499	googleapi.ServerResponse `json:"-"`
2500}
2501
2502// EnvFromSource: EnvFromSource represents the source of a set of
2503// ConfigMaps
2504type EnvFromSource struct {
2505	// ConfigMapRef: The ConfigMap to select from
2506	// +optional
2507	ConfigMapRef *ConfigMapEnvSource `json:"configMapRef,omitempty"`
2508
2509	// Prefix: An optional identifier to prepend to each key in the
2510	// ConfigMap. Must be a
2511	// C_IDENTIFIER. +optional
2512	Prefix string `json:"prefix,omitempty"`
2513
2514	// SecretRef: The Secret to select from
2515	// +optional
2516	SecretRef *SecretEnvSource `json:"secretRef,omitempty"`
2517
2518	// ForceSendFields is a list of field names (e.g. "ConfigMapRef") to
2519	// unconditionally include in API requests. By default, fields with
2520	// empty values are omitted from API requests. However, any non-pointer,
2521	// non-interface field appearing in ForceSendFields will be sent to the
2522	// server regardless of whether the field is empty or not. This may be
2523	// used to include empty fields in Patch requests.
2524	ForceSendFields []string `json:"-"`
2525
2526	// NullFields is a list of field names (e.g. "ConfigMapRef") to include
2527	// in API requests with the JSON null value. By default, fields with
2528	// empty values are omitted from API requests. However, any field with
2529	// an empty value appearing in NullFields will be sent to the server as
2530	// null. It is an error if a field in this list has a non-empty value.
2531	// This may be used to include null fields in Patch requests.
2532	NullFields []string `json:"-"`
2533}
2534
2535func (s *EnvFromSource) MarshalJSON() ([]byte, error) {
2536	type NoMethod EnvFromSource
2537	raw := NoMethod(*s)
2538	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2539}
2540
2541// EnvVar: EnvVar represents an environment variable present in a
2542// Container.
2543type EnvVar struct {
2544	// Name: Name of the environment variable. Must be a C_IDENTIFIER.
2545	Name string `json:"name,omitempty"`
2546
2547	// Value: Variable references $(VAR_NAME) are expanded
2548	// using the previous defined environment variables in the container
2549	// and
2550	// any route environment variables. If a variable cannot be
2551	// resolved,
2552	// the reference in the input string will be unchanged. The
2553	// $(VAR_NAME)
2554	// syntax can be escaped with a double $$, ie: $$(VAR_NAME).
2555	// Escaped
2556	// references will never be expanded, regardless of whether the
2557	// variable
2558	// exists or not.
2559	// Defaults to "".
2560	// +optional
2561	Value string `json:"value,omitempty"`
2562
2563	// ValueFrom: Cloud Run fully managed: not supported
2564	//
2565	// Cloud Run on GKE: supported
2566	//
2567	// Source for the environment variable's value. Cannot be used if value
2568	// is not
2569	// empty. +optional
2570	ValueFrom *EnvVarSource `json:"valueFrom,omitempty"`
2571
2572	// ForceSendFields is a list of field names (e.g. "Name") to
2573	// unconditionally include in API requests. By default, fields with
2574	// empty values are omitted from API requests. However, any non-pointer,
2575	// non-interface field appearing in ForceSendFields will be sent to the
2576	// server regardless of whether the field is empty or not. This may be
2577	// used to include empty fields in Patch requests.
2578	ForceSendFields []string `json:"-"`
2579
2580	// NullFields is a list of field names (e.g. "Name") to include in API
2581	// requests with the JSON null value. By default, fields with empty
2582	// values are omitted from API requests. However, any field with an
2583	// empty value appearing in NullFields will be sent to the server as
2584	// null. It is an error if a field in this list has a non-empty value.
2585	// This may be used to include null fields in Patch requests.
2586	NullFields []string `json:"-"`
2587}
2588
2589func (s *EnvVar) MarshalJSON() ([]byte, error) {
2590	type NoMethod EnvVar
2591	raw := NoMethod(*s)
2592	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2593}
2594
2595// EnvVarSource: Cloud Run fully managed: not supported
2596//
2597// Cloud Run on GKE: supported
2598//
2599// EnvVarSource represents a source for the value of an EnvVar.
2600type EnvVarSource struct {
2601	// ConfigMapKeyRef: Cloud Run fully managed: not supported
2602	//
2603	// Cloud Run on GKE: supported
2604	//
2605	// Selects a key of a ConfigMap.
2606	// +optional
2607	ConfigMapKeyRef *ConfigMapKeySelector `json:"configMapKeyRef,omitempty"`
2608
2609	// SecretKeyRef: Cloud Run fully managed: not supported
2610	//
2611	// Cloud Run on GKE: supported
2612	//
2613	// Selects a key of a secret in the pod's namespace
2614	// +optional
2615	SecretKeyRef *SecretKeySelector `json:"secretKeyRef,omitempty"`
2616
2617	// ForceSendFields is a list of field names (e.g. "ConfigMapKeyRef") to
2618	// unconditionally include in API requests. By default, fields with
2619	// empty values are omitted from API requests. However, any non-pointer,
2620	// non-interface field appearing in ForceSendFields will be sent to the
2621	// server regardless of whether the field is empty or not. This may be
2622	// used to include empty fields in Patch requests.
2623	ForceSendFields []string `json:"-"`
2624
2625	// NullFields is a list of field names (e.g. "ConfigMapKeyRef") to
2626	// include in API requests with the JSON null value. By default, fields
2627	// with empty values are omitted from API requests. However, any field
2628	// with an empty value appearing in NullFields will be sent to the
2629	// server as null. It is an error if a field in this list has a
2630	// non-empty value. This may be used to include null fields in Patch
2631	// requests.
2632	NullFields []string `json:"-"`
2633}
2634
2635func (s *EnvVarSource) MarshalJSON() ([]byte, error) {
2636	type NoMethod EnvVarSource
2637	raw := NoMethod(*s)
2638	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2639}
2640
2641// ExecAction: ExecAction describes a "run in container" action.
2642type ExecAction struct {
2643	// Command: Command is the command line to execute inside the container,
2644	// the working
2645	// directory for the command  is root ('/') in the container's
2646	// filesystem. The
2647	// command is simply exec'd, it is not run inside a shell, so
2648	// traditional
2649	// shell instructions ('|', etc) won't work. To use a shell, you need
2650	// to
2651	// explicitly call out to that shell. Exit status of 0 is treated
2652	// as
2653	// live/healthy and non-zero is unhealthy. +optional
2654	Command string `json:"command,omitempty"`
2655
2656	// ForceSendFields is a list of field names (e.g. "Command") to
2657	// unconditionally include in API requests. By default, fields with
2658	// empty values are omitted from API requests. However, any non-pointer,
2659	// non-interface field appearing in ForceSendFields will be sent to the
2660	// server regardless of whether the field is empty or not. This may be
2661	// used to include empty fields in Patch requests.
2662	ForceSendFields []string `json:"-"`
2663
2664	// NullFields is a list of field names (e.g. "Command") to include in
2665	// API requests with the JSON null value. By default, fields with empty
2666	// values are omitted from API requests. However, any field with an
2667	// empty value appearing in NullFields will be sent to the server as
2668	// null. It is an error if a field in this list has a non-empty value.
2669	// This may be used to include null fields in Patch requests.
2670	NullFields []string `json:"-"`
2671}
2672
2673func (s *ExecAction) MarshalJSON() ([]byte, error) {
2674	type NoMethod ExecAction
2675	raw := NoMethod(*s)
2676	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2677}
2678
2679// Expr: Represents a textual expression in the Common Expression
2680// Language (CEL)
2681// syntax. CEL is a C-like expression language. The syntax and semantics
2682// of CEL
2683// are documented at https://github.com/google/cel-spec.
2684//
2685// Example (Comparison):
2686//
2687//     title: "Summary size limit"
2688//     description: "Determines if a summary is less than 100 chars"
2689//     expression: "document.summary.size() < 100"
2690//
2691// Example (Equality):
2692//
2693//     title: "Requestor is owner"
2694//     description: "Determines if requestor is the document owner"
2695//     expression: "document.owner ==
2696// request.auth.claims.email"
2697//
2698// Example (Logic):
2699//
2700//     title: "Public documents"
2701//     description: "Determine whether the document should be publicly
2702// visible"
2703//     expression: "document.type != 'private' && document.type !=
2704// 'internal'"
2705//
2706// Example (Data Manipulation):
2707//
2708//     title: "Notification string"
2709//     description: "Create a notification string with a timestamp."
2710//     expression: "'New message received at ' +
2711// string(document.create_time)"
2712//
2713// The exact variables and functions that may be referenced within an
2714// expression
2715// are determined by the service that evaluates it. See the
2716// service
2717// documentation for additional information.
2718type Expr struct {
2719	// Description: Optional. Description of the expression. This is a
2720	// longer text which
2721	// describes the expression, e.g. when hovered over it in a UI.
2722	Description string `json:"description,omitempty"`
2723
2724	// Expression: Textual representation of an expression in Common
2725	// Expression Language
2726	// syntax.
2727	Expression string `json:"expression,omitempty"`
2728
2729	// Location: Optional. String indicating the location of the expression
2730	// for error
2731	// reporting, e.g. a file name and a position in the file.
2732	Location string `json:"location,omitempty"`
2733
2734	// Title: Optional. Title for the expression, i.e. a short string
2735	// describing
2736	// its purpose. This can be used e.g. in UIs which allow to enter
2737	// the
2738	// expression.
2739	Title string `json:"title,omitempty"`
2740
2741	// ForceSendFields is a list of field names (e.g. "Description") to
2742	// unconditionally include in API requests. By default, fields with
2743	// empty values are omitted from API requests. However, any non-pointer,
2744	// non-interface field appearing in ForceSendFields will be sent to the
2745	// server regardless of whether the field is empty or not. This may be
2746	// used to include empty fields in Patch requests.
2747	ForceSendFields []string `json:"-"`
2748
2749	// NullFields is a list of field names (e.g. "Description") to include
2750	// in API requests with the JSON null value. By default, fields with
2751	// empty values are omitted from API requests. However, any field with
2752	// an empty value appearing in NullFields will be sent to the server as
2753	// null. It is an error if a field in this list has a non-empty value.
2754	// This may be used to include null fields in Patch requests.
2755	NullFields []string `json:"-"`
2756}
2757
2758func (s *Expr) MarshalJSON() ([]byte, error) {
2759	type NoMethod Expr
2760	raw := NoMethod(*s)
2761	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2762}
2763
2764// HTTPGetAction: HTTPGetAction describes an action based on HTTP Get
2765// requests.
2766type HTTPGetAction struct {
2767	// Host: Host name to connect to, defaults to the pod IP. You probably
2768	// want to set
2769	// "Host" in httpHeaders instead.
2770	// +optional
2771	Host string `json:"host,omitempty"`
2772
2773	// HttpHeaders: Custom headers to set in the request. HTTP allows
2774	// repeated headers.
2775	// +optional
2776	HttpHeaders []*HTTPHeader `json:"httpHeaders,omitempty"`
2777
2778	// Path: Path to access on the HTTP server.
2779	// +optional
2780	Path string `json:"path,omitempty"`
2781
2782	// Port: Name or number of the port to access on the container.
2783	// Number must be in the range 1 to 65535.
2784	// Name must be an IANA_SVC_NAME.
2785	Port *IntOrString `json:"port,omitempty"`
2786
2787	// Scheme: Scheme to use for connecting to the host.
2788	// Defaults to HTTP.
2789	// +optional
2790	Scheme string `json:"scheme,omitempty"`
2791
2792	// ForceSendFields is a list of field names (e.g. "Host") to
2793	// unconditionally include in API requests. By default, fields with
2794	// empty values are omitted from API requests. However, any non-pointer,
2795	// non-interface field appearing in ForceSendFields will be sent to the
2796	// server regardless of whether the field is empty or not. This may be
2797	// used to include empty fields in Patch requests.
2798	ForceSendFields []string `json:"-"`
2799
2800	// NullFields is a list of field names (e.g. "Host") to include in API
2801	// requests with the JSON null value. By default, fields with empty
2802	// values are omitted from API requests. However, any field with an
2803	// empty value appearing in NullFields will be sent to the server as
2804	// null. It is an error if a field in this list has a non-empty value.
2805	// This may be used to include null fields in Patch requests.
2806	NullFields []string `json:"-"`
2807}
2808
2809func (s *HTTPGetAction) MarshalJSON() ([]byte, error) {
2810	type NoMethod HTTPGetAction
2811	raw := NoMethod(*s)
2812	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2813}
2814
2815// HTTPHeader: HTTPHeader describes a custom header to be used in HTTP
2816// probes
2817type HTTPHeader struct {
2818	// Name: The header field name
2819	Name string `json:"name,omitempty"`
2820
2821	// Value: The header field value
2822	Value string `json:"value,omitempty"`
2823
2824	// ForceSendFields is a list of field names (e.g. "Name") to
2825	// unconditionally include in API requests. By default, fields with
2826	// empty values are omitted from API requests. However, any non-pointer,
2827	// non-interface field appearing in ForceSendFields will be sent to the
2828	// server regardless of whether the field is empty or not. This may be
2829	// used to include empty fields in Patch requests.
2830	ForceSendFields []string `json:"-"`
2831
2832	// NullFields is a list of field names (e.g. "Name") to include in API
2833	// requests with the JSON null value. By default, fields with empty
2834	// values are omitted from API requests. However, any field with an
2835	// empty value appearing in NullFields will be sent to the server as
2836	// null. It is an error if a field in this list has a non-empty value.
2837	// This may be used to include null fields in Patch requests.
2838	NullFields []string `json:"-"`
2839}
2840
2841func (s *HTTPHeader) MarshalJSON() ([]byte, error) {
2842	type NoMethod HTTPHeader
2843	raw := NoMethod(*s)
2844	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2845}
2846
2847// Handler: Handler defines a specific action that should be taken
2848type Handler struct {
2849	// Exec: One and only one of the following should be specified.
2850	// Exec specifies the action to take.
2851	// +optional
2852	Exec *ExecAction `json:"exec,omitempty"`
2853
2854	// HttpGet: HTTPGet specifies the http request to perform.
2855	// +optional
2856	HttpGet *HTTPGetAction `json:"httpGet,omitempty"`
2857
2858	// TcpSocket: TCPSocket specifies an action involving a TCP port.
2859	// TCP hooks not yet supported
2860	TcpSocket *TCPSocketAction `json:"tcpSocket,omitempty"`
2861
2862	// ForceSendFields is a list of field names (e.g. "Exec") to
2863	// unconditionally include in API requests. By default, fields with
2864	// empty values are omitted from API requests. However, any non-pointer,
2865	// non-interface field appearing in ForceSendFields will be sent to the
2866	// server regardless of whether the field is empty or not. This may be
2867	// used to include empty fields in Patch requests.
2868	ForceSendFields []string `json:"-"`
2869
2870	// NullFields is a list of field names (e.g. "Exec") to include in API
2871	// requests with the JSON null value. By default, fields with empty
2872	// values are omitted from API requests. However, any field with an
2873	// empty value appearing in NullFields will be sent to the server as
2874	// null. It is an error if a field in this list has a non-empty value.
2875	// This may be used to include null fields in Patch requests.
2876	NullFields []string `json:"-"`
2877}
2878
2879func (s *Handler) MarshalJSON() ([]byte, error) {
2880	type NoMethod Handler
2881	raw := NoMethod(*s)
2882	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2883}
2884
2885// IntOrString: IntOrString is a type that can hold an int32 or a
2886// string.  When used in
2887// JSON or YAML marshalling and unmarshalling, it produces or consumes
2888// the
2889// inner type.  This allows you to have, for example, a JSON field that
2890// can
2891// accept a name or number.
2892type IntOrString struct {
2893	// IntVal: The int value.
2894	IntVal int64 `json:"intVal,omitempty"`
2895
2896	// StrVal: The string value.
2897	StrVal string `json:"strVal,omitempty"`
2898
2899	// Type: The type of the value.
2900	Type int64 `json:"type,omitempty"`
2901
2902	// ForceSendFields is a list of field names (e.g. "IntVal") to
2903	// unconditionally include in API requests. By default, fields with
2904	// empty values are omitted from API requests. However, any non-pointer,
2905	// non-interface field appearing in ForceSendFields will be sent to the
2906	// server regardless of whether the field is empty or not. This may be
2907	// used to include empty fields in Patch requests.
2908	ForceSendFields []string `json:"-"`
2909
2910	// NullFields is a list of field names (e.g. "IntVal") to include in API
2911	// requests with the JSON null value. By default, fields with empty
2912	// values are omitted from API requests. However, any field with an
2913	// empty value appearing in NullFields will be sent to the server as
2914	// null. It is an error if a field in this list has a non-empty value.
2915	// This may be used to include null fields in Patch requests.
2916	NullFields []string `json:"-"`
2917}
2918
2919func (s *IntOrString) MarshalJSON() ([]byte, error) {
2920	type NoMethod IntOrString
2921	raw := NoMethod(*s)
2922	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2923}
2924
2925// KeyToPath: Maps a string key to a path within a volume.
2926type KeyToPath struct {
2927	// Key: The key to project.
2928	Key string `json:"key,omitempty"`
2929
2930	// Mode: Mode bits to use on this file, must be a value between 0 and
2931	// 0777. If not
2932	// specified, the volume defaultMode will be used. This might be in
2933	// conflict
2934	// with other options that affect the file mode, like fsGroup, and the
2935	// result
2936	// can be other mode bits set. +optional
2937	Mode int64 `json:"mode,omitempty"`
2938
2939	// Path: The relative path of the file to map the key to.
2940	// May not be an absolute path.
2941	// May not contain the path element '..'.
2942	// May not start with the string '..'.
2943	Path string `json:"path,omitempty"`
2944
2945	// ForceSendFields is a list of field names (e.g. "Key") to
2946	// unconditionally include in API requests. By default, fields with
2947	// empty values are omitted from API requests. However, any non-pointer,
2948	// non-interface field appearing in ForceSendFields will be sent to the
2949	// server regardless of whether the field is empty or not. This may be
2950	// used to include empty fields in Patch requests.
2951	ForceSendFields []string `json:"-"`
2952
2953	// NullFields is a list of field names (e.g. "Key") to include in API
2954	// requests with the JSON null value. By default, fields with empty
2955	// values are omitted from API requests. However, any field with an
2956	// empty value appearing in NullFields will be sent to the server as
2957	// null. It is an error if a field in this list has a non-empty value.
2958	// This may be used to include null fields in Patch requests.
2959	NullFields []string `json:"-"`
2960}
2961
2962func (s *KeyToPath) MarshalJSON() ([]byte, error) {
2963	type NoMethod KeyToPath
2964	raw := NoMethod(*s)
2965	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2966}
2967
2968// Lifecycle: Lifecycle describes actions that the management system
2969// should take in
2970// response to container lifecycle events. For the PostStart and
2971// PreStop
2972// lifecycle handlers, management of the container blocks until the
2973// action is
2974// complete, unless the container process fails, in which case the
2975// handler is
2976// aborted.
2977type Lifecycle struct {
2978	// PostStart: PostStart is called immediately after a container is
2979	// created. If the
2980	// handler fails, the container is terminated and restarted according to
2981	// its
2982	// restart policy. Other management of the container blocks until the
2983	// hook
2984	// completes. More
2985	// info:
2986	// https://kubernetes.io/docs/concepts/containers/container-lifecyc
2987	// le-hooks/#container-hooks
2988	// +optional
2989	PostStart *Handler `json:"postStart,omitempty"`
2990
2991	// PreStop: PreStop is called immediately before a container is
2992	// terminated.
2993	// The container is terminated after the handler completes.
2994	// The reason for termination is passed to the handler.
2995	// Regardless of the outcome of the handler, the container is
2996	// eventually
2997	// terminated. Other management of the container blocks until the
2998	// hook
2999	// completes. More
3000	// info:
3001	// https://kubernetes.io/docs/concepts/containers/container-lifecyc
3002	// le-hooks/#container-hooks
3003	// +optional
3004	PreStop *Handler `json:"preStop,omitempty"`
3005
3006	// ForceSendFields is a list of field names (e.g. "PostStart") to
3007	// unconditionally include in API requests. By default, fields with
3008	// empty values are omitted from API requests. However, any non-pointer,
3009	// non-interface field appearing in ForceSendFields will be sent to the
3010	// server regardless of whether the field is empty or not. This may be
3011	// used to include empty fields in Patch requests.
3012	ForceSendFields []string `json:"-"`
3013
3014	// NullFields is a list of field names (e.g. "PostStart") to include in
3015	// API requests with the JSON null value. By default, fields with empty
3016	// values are omitted from API requests. However, any field with an
3017	// empty value appearing in NullFields will be sent to the server as
3018	// null. It is an error if a field in this list has a non-empty value.
3019	// This may be used to include null fields in Patch requests.
3020	NullFields []string `json:"-"`
3021}
3022
3023func (s *Lifecycle) MarshalJSON() ([]byte, error) {
3024	type NoMethod Lifecycle
3025	raw := NoMethod(*s)
3026	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3027}
3028
3029// ListAuthorizedDomainsResponse: A list of Authorized Domains.
3030type ListAuthorizedDomainsResponse struct {
3031	// Domains: The authorized domains belonging to the user.
3032	Domains []*AuthorizedDomain `json:"domains,omitempty"`
3033
3034	// NextPageToken: Continuation token for fetching the next page of
3035	// results.
3036	NextPageToken string `json:"nextPageToken,omitempty"`
3037
3038	// ServerResponse contains the HTTP response code and headers from the
3039	// server.
3040	googleapi.ServerResponse `json:"-"`
3041
3042	// ForceSendFields is a list of field names (e.g. "Domains") to
3043	// unconditionally include in API requests. By default, fields with
3044	// empty values are omitted from API requests. However, any non-pointer,
3045	// non-interface field appearing in ForceSendFields will be sent to the
3046	// server regardless of whether the field is empty or not. This may be
3047	// used to include empty fields in Patch requests.
3048	ForceSendFields []string `json:"-"`
3049
3050	// NullFields is a list of field names (e.g. "Domains") to include in
3051	// API requests with the JSON null value. By default, fields with empty
3052	// values are omitted from API requests. However, any field with an
3053	// empty value appearing in NullFields will be sent to the server as
3054	// null. It is an error if a field in this list has a non-empty value.
3055	// This may be used to include null fields in Patch requests.
3056	NullFields []string `json:"-"`
3057}
3058
3059func (s *ListAuthorizedDomainsResponse) MarshalJSON() ([]byte, error) {
3060	type NoMethod ListAuthorizedDomainsResponse
3061	raw := NoMethod(*s)
3062	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3063}
3064
3065// ListCloudAuditLogsSourcesResponse: ListCloudAuditLogsSourcesResponse
3066// is a list of CloudAuditLogsSource
3067// resources.
3068type ListCloudAuditLogsSourcesResponse struct {
3069	// ApiVersion: The API version for this call such as
3070	// "events.cloud.google.com/v1alpha1".
3071	ApiVersion string `json:"apiVersion,omitempty"`
3072
3073	// Items: List of CloudAuditLogsSources.
3074	Items []*CloudAuditLogsSource `json:"items,omitempty"`
3075
3076	// Kind: The kind of this resource, in this case
3077	// "CloudAuditLogsSourceList".
3078	Kind string `json:"kind,omitempty"`
3079
3080	// Metadata: Metadata associated with this CloudAuditLogsSource list.
3081	Metadata *ListMeta `json:"metadata,omitempty"`
3082
3083	// Unreachable: Locations that could not be reached.
3084	Unreachable []string `json:"unreachable,omitempty"`
3085
3086	// ServerResponse contains the HTTP response code and headers from the
3087	// server.
3088	googleapi.ServerResponse `json:"-"`
3089
3090	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3091	// unconditionally include in API requests. By default, fields with
3092	// empty values are omitted from API requests. However, any non-pointer,
3093	// non-interface field appearing in ForceSendFields will be sent to the
3094	// server regardless of whether the field is empty or not. This may be
3095	// used to include empty fields in Patch requests.
3096	ForceSendFields []string `json:"-"`
3097
3098	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3099	// API requests with the JSON null value. By default, fields with empty
3100	// values are omitted from API requests. However, any field with an
3101	// empty value appearing in NullFields will be sent to the server as
3102	// null. It is an error if a field in this list has a non-empty value.
3103	// This may be used to include null fields in Patch requests.
3104	NullFields []string `json:"-"`
3105}
3106
3107func (s *ListCloudAuditLogsSourcesResponse) MarshalJSON() ([]byte, error) {
3108	type NoMethod ListCloudAuditLogsSourcesResponse
3109	raw := NoMethod(*s)
3110	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3111}
3112
3113// ListCloudPubSubSourcesResponse: ListCloudPubSubSourcesResponse is a
3114// list of CloudPubSubSource resources.
3115type ListCloudPubSubSourcesResponse struct {
3116	// ApiVersion: The API version for this call such as
3117	// "events.cloud.google.com/v1alpha1".
3118	ApiVersion string `json:"apiVersion,omitempty"`
3119
3120	// Items: List of CloudPubSubSources.
3121	Items []*CloudPubSubSource `json:"items,omitempty"`
3122
3123	// Kind: The kind of this resource, in this case
3124	// "CloudPubSubSourceList".
3125	Kind string `json:"kind,omitempty"`
3126
3127	// Metadata: Metadata associated with this CloudPubSubSource list.
3128	Metadata *ListMeta `json:"metadata,omitempty"`
3129
3130	// Unreachable: Locations that could not be reached.
3131	Unreachable []string `json:"unreachable,omitempty"`
3132
3133	// ServerResponse contains the HTTP response code and headers from the
3134	// server.
3135	googleapi.ServerResponse `json:"-"`
3136
3137	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3138	// unconditionally include in API requests. By default, fields with
3139	// empty values are omitted from API requests. However, any non-pointer,
3140	// non-interface field appearing in ForceSendFields will be sent to the
3141	// server regardless of whether the field is empty or not. This may be
3142	// used to include empty fields in Patch requests.
3143	ForceSendFields []string `json:"-"`
3144
3145	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3146	// API requests with the JSON null value. By default, fields with empty
3147	// values are omitted from API requests. However, any field with an
3148	// empty value appearing in NullFields will be sent to the server as
3149	// null. It is an error if a field in this list has a non-empty value.
3150	// This may be used to include null fields in Patch requests.
3151	NullFields []string `json:"-"`
3152}
3153
3154func (s *ListCloudPubSubSourcesResponse) MarshalJSON() ([]byte, error) {
3155	type NoMethod ListCloudPubSubSourcesResponse
3156	raw := NoMethod(*s)
3157	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3158}
3159
3160// ListCloudSchedulerSourcesResponse: ListCloudSchedulerSourcesResponse
3161// is a list of CloudSchedulerSource
3162// resources.
3163type ListCloudSchedulerSourcesResponse struct {
3164	// ApiVersion: The API version for this call such as
3165	// "events.cloud.google.com/v1alpha1".
3166	ApiVersion string `json:"apiVersion,omitempty"`
3167
3168	// Items: List of CloudSchedulerSources.
3169	Items []*CloudSchedulerSource `json:"items,omitempty"`
3170
3171	// Kind: The kind of this resource, in this case
3172	// "CloudSchedulerSourceList".
3173	Kind string `json:"kind,omitempty"`
3174
3175	// Metadata: Metadata associated with this CloudSchedulerSource list.
3176	Metadata *ListMeta `json:"metadata,omitempty"`
3177
3178	// Unreachable: Locations that could not be reached.
3179	Unreachable []string `json:"unreachable,omitempty"`
3180
3181	// ServerResponse contains the HTTP response code and headers from the
3182	// server.
3183	googleapi.ServerResponse `json:"-"`
3184
3185	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3186	// unconditionally include in API requests. By default, fields with
3187	// empty values are omitted from API requests. However, any non-pointer,
3188	// non-interface field appearing in ForceSendFields will be sent to the
3189	// server regardless of whether the field is empty or not. This may be
3190	// used to include empty fields in Patch requests.
3191	ForceSendFields []string `json:"-"`
3192
3193	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3194	// API requests with the JSON null value. By default, fields with empty
3195	// values are omitted from API requests. However, any field with an
3196	// empty value appearing in NullFields will be sent to the server as
3197	// null. It is an error if a field in this list has a non-empty value.
3198	// This may be used to include null fields in Patch requests.
3199	NullFields []string `json:"-"`
3200}
3201
3202func (s *ListCloudSchedulerSourcesResponse) MarshalJSON() ([]byte, error) {
3203	type NoMethod ListCloudSchedulerSourcesResponse
3204	raw := NoMethod(*s)
3205	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3206}
3207
3208// ListCloudStorageSourcesResponse: ListCloudStorageSourcesResponse is a
3209// list of CloudStorageSource resources.
3210type ListCloudStorageSourcesResponse struct {
3211	// ApiVersion: The API version for this call such as
3212	// "events.cloud.google.com/v1alpha1".
3213	ApiVersion string `json:"apiVersion,omitempty"`
3214
3215	// Items: List of CloudStorageSources.
3216	Items []*CloudStorageSource `json:"items,omitempty"`
3217
3218	// Kind: The kind of this resource, in this case
3219	// "CloudStorageSourceList".
3220	Kind string `json:"kind,omitempty"`
3221
3222	// Metadata: Metadata associated with this CloudStorageSource list.
3223	Metadata *ListMeta `json:"metadata,omitempty"`
3224
3225	// Unreachable: Locations that could not be reached.
3226	Unreachable []string `json:"unreachable,omitempty"`
3227
3228	// ServerResponse contains the HTTP response code and headers from the
3229	// server.
3230	googleapi.ServerResponse `json:"-"`
3231
3232	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3233	// unconditionally include in API requests. By default, fields with
3234	// empty values are omitted from API requests. However, any non-pointer,
3235	// non-interface field appearing in ForceSendFields will be sent to the
3236	// server regardless of whether the field is empty or not. This may be
3237	// used to include empty fields in Patch requests.
3238	ForceSendFields []string `json:"-"`
3239
3240	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3241	// API requests with the JSON null value. By default, fields with empty
3242	// values are omitted from API requests. However, any field with an
3243	// empty value appearing in NullFields will be sent to the server as
3244	// null. It is an error if a field in this list has a non-empty value.
3245	// This may be used to include null fields in Patch requests.
3246	NullFields []string `json:"-"`
3247}
3248
3249func (s *ListCloudStorageSourcesResponse) MarshalJSON() ([]byte, error) {
3250	type NoMethod ListCloudStorageSourcesResponse
3251	raw := NoMethod(*s)
3252	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3253}
3254
3255// ListConfigurationsResponse: ListConfigurationsResponse is a list of
3256// Configuration resources.
3257type ListConfigurationsResponse struct {
3258	// ApiVersion: The API version for this call such as
3259	// "serving.knative.dev/v1alpha1".
3260	ApiVersion string `json:"apiVersion,omitempty"`
3261
3262	// Items: List of Configurations.
3263	Items []*Configuration `json:"items,omitempty"`
3264
3265	// Kind: The kind of this resource, in this case "ConfigurationList".
3266	Kind string `json:"kind,omitempty"`
3267
3268	// Metadata: Metadata associated with this Configuration list.
3269	Metadata *ListMeta `json:"metadata,omitempty"`
3270
3271	// Unreachable: Locations that could not be reached.
3272	Unreachable []string `json:"unreachable,omitempty"`
3273
3274	// ServerResponse contains the HTTP response code and headers from the
3275	// server.
3276	googleapi.ServerResponse `json:"-"`
3277
3278	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3279	// unconditionally include in API requests. By default, fields with
3280	// empty values are omitted from API requests. However, any non-pointer,
3281	// non-interface field appearing in ForceSendFields will be sent to the
3282	// server regardless of whether the field is empty or not. This may be
3283	// used to include empty fields in Patch requests.
3284	ForceSendFields []string `json:"-"`
3285
3286	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3287	// API requests with the JSON null value. By default, fields with empty
3288	// values are omitted from API requests. However, any field with an
3289	// empty value appearing in NullFields will be sent to the server as
3290	// null. It is an error if a field in this list has a non-empty value.
3291	// This may be used to include null fields in Patch requests.
3292	NullFields []string `json:"-"`
3293}
3294
3295func (s *ListConfigurationsResponse) MarshalJSON() ([]byte, error) {
3296	type NoMethod ListConfigurationsResponse
3297	raw := NoMethod(*s)
3298	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3299}
3300
3301// ListDomainMappingsResponse: ListDomainMappingsResponse is a list of
3302// DomainMapping resources.
3303type ListDomainMappingsResponse struct {
3304	// ApiVersion: The API version for this call such as
3305	// "domains.cloudrun.com/v1alpha1".
3306	ApiVersion string `json:"apiVersion,omitempty"`
3307
3308	// Items: List of DomainMappings.
3309	Items []*DomainMapping `json:"items,omitempty"`
3310
3311	// Kind: The kind of this resource, in this case "DomainMappingList".
3312	Kind string `json:"kind,omitempty"`
3313
3314	// Metadata: Metadata associated with this DomainMapping list.
3315	Metadata *ListMeta `json:"metadata,omitempty"`
3316
3317	// Unreachable: Locations that could not be reached.
3318	Unreachable []string `json:"unreachable,omitempty"`
3319
3320	// ServerResponse contains the HTTP response code and headers from the
3321	// server.
3322	googleapi.ServerResponse `json:"-"`
3323
3324	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3325	// unconditionally include in API requests. By default, fields with
3326	// empty values are omitted from API requests. However, any non-pointer,
3327	// non-interface field appearing in ForceSendFields will be sent to the
3328	// server regardless of whether the field is empty or not. This may be
3329	// used to include empty fields in Patch requests.
3330	ForceSendFields []string `json:"-"`
3331
3332	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3333	// API requests with the JSON null value. By default, fields with empty
3334	// values are omitted from API requests. However, any field with an
3335	// empty value appearing in NullFields will be sent to the server as
3336	// null. It is an error if a field in this list has a non-empty value.
3337	// This may be used to include null fields in Patch requests.
3338	NullFields []string `json:"-"`
3339}
3340
3341func (s *ListDomainMappingsResponse) MarshalJSON() ([]byte, error) {
3342	type NoMethod ListDomainMappingsResponse
3343	raw := NoMethod(*s)
3344	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3345}
3346
3347// ListLocationsResponse: The response message for
3348// Locations.ListLocations.
3349type ListLocationsResponse struct {
3350	// Locations: A list of locations that matches the specified filter in
3351	// the request.
3352	Locations []*Location `json:"locations,omitempty"`
3353
3354	// NextPageToken: The standard List next-page token.
3355	NextPageToken string `json:"nextPageToken,omitempty"`
3356
3357	// ServerResponse contains the HTTP response code and headers from the
3358	// server.
3359	googleapi.ServerResponse `json:"-"`
3360
3361	// ForceSendFields is a list of field names (e.g. "Locations") to
3362	// unconditionally include in API requests. By default, fields with
3363	// empty values are omitted from API requests. However, any non-pointer,
3364	// non-interface field appearing in ForceSendFields will be sent to the
3365	// server regardless of whether the field is empty or not. This may be
3366	// used to include empty fields in Patch requests.
3367	ForceSendFields []string `json:"-"`
3368
3369	// NullFields is a list of field names (e.g. "Locations") to include in
3370	// API requests with the JSON null value. By default, fields with empty
3371	// values are omitted from API requests. However, any field with an
3372	// empty value appearing in NullFields will be sent to the server as
3373	// null. It is an error if a field in this list has a non-empty value.
3374	// This may be used to include null fields in Patch requests.
3375	NullFields []string `json:"-"`
3376}
3377
3378func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
3379	type NoMethod ListLocationsResponse
3380	raw := NoMethod(*s)
3381	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3382}
3383
3384// ListMeta: ListMeta describes metadata that synthetic resources must
3385// have, including
3386// lists and various status objects. A resource may have only one
3387// of
3388// {ObjectMeta, ListMeta}.
3389type ListMeta struct {
3390	// Continue: continue may be set if the user set a limit on the number
3391	// of items
3392	// returned, and indicates that the server has more data available. The
3393	// value
3394	// is opaque and may be used to issue another request to the endpoint
3395	// that
3396	// served this list to retrieve the next set of available objects.
3397	// Continuing
3398	// a list may not be possible if the server configuration has changed or
3399	// more
3400	// than a few minutes have passed. The resourceVersion field returned
3401	// when
3402	// using this continue value will be identical to the value in the
3403	// first
3404	// response.
3405	Continue string `json:"continue,omitempty"`
3406
3407	// ResourceVersion: String that identifies the server's internal version
3408	// of this object that
3409	// can be used by clients to determine when objects have changed. Value
3410	// must
3411	// be treated as opaque by clients and passed unmodified back to the
3412	// server.
3413	// Populated by the system.
3414	// Read-only.
3415	// More
3416	// info:
3417	// https://git.k8s.io/community/contributors/devel/api-conventions.
3418	// md#concurrency-control-and-consistency
3419	// +optional
3420	ResourceVersion string `json:"resourceVersion,omitempty"`
3421
3422	// SelfLink: SelfLink is a URL representing this object.
3423	// Populated by the system.
3424	// Read-only.
3425	// +optional
3426	SelfLink string `json:"selfLink,omitempty"`
3427
3428	// ForceSendFields is a list of field names (e.g. "Continue") to
3429	// unconditionally include in API requests. By default, fields with
3430	// empty values are omitted from API requests. However, any non-pointer,
3431	// non-interface field appearing in ForceSendFields will be sent to the
3432	// server regardless of whether the field is empty or not. This may be
3433	// used to include empty fields in Patch requests.
3434	ForceSendFields []string `json:"-"`
3435
3436	// NullFields is a list of field names (e.g. "Continue") to include in
3437	// API requests with the JSON null value. By default, fields with empty
3438	// values are omitted from API requests. However, any field with an
3439	// empty value appearing in NullFields will be sent to the server as
3440	// null. It is an error if a field in this list has a non-empty value.
3441	// This may be used to include null fields in Patch requests.
3442	NullFields []string `json:"-"`
3443}
3444
3445func (s *ListMeta) MarshalJSON() ([]byte, error) {
3446	type NoMethod ListMeta
3447	raw := NoMethod(*s)
3448	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3449}
3450
3451// ListRevisionsResponse: ListRevisionsResponse is a list of Revision
3452// resources.
3453type ListRevisionsResponse struct {
3454	// ApiVersion: The API version for this call such as
3455	// "serving.knative.dev/v1alpha1".
3456	ApiVersion string `json:"apiVersion,omitempty"`
3457
3458	// Items: List of Revisions.
3459	Items []*Revision `json:"items,omitempty"`
3460
3461	// Kind: The kind of this resource, in this case "RevisionList".
3462	Kind string `json:"kind,omitempty"`
3463
3464	// Metadata: Metadata associated with this revision list.
3465	Metadata *ListMeta `json:"metadata,omitempty"`
3466
3467	// Unreachable: Locations that could not be reached.
3468	Unreachable []string `json:"unreachable,omitempty"`
3469
3470	// ServerResponse contains the HTTP response code and headers from the
3471	// server.
3472	googleapi.ServerResponse `json:"-"`
3473
3474	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3475	// unconditionally include in API requests. By default, fields with
3476	// empty values are omitted from API requests. However, any non-pointer,
3477	// non-interface field appearing in ForceSendFields will be sent to the
3478	// server regardless of whether the field is empty or not. This may be
3479	// used to include empty fields in Patch requests.
3480	ForceSendFields []string `json:"-"`
3481
3482	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3483	// API requests with the JSON null value. By default, fields with empty
3484	// values are omitted from API requests. However, any field with an
3485	// empty value appearing in NullFields will be sent to the server as
3486	// null. It is an error if a field in this list has a non-empty value.
3487	// This may be used to include null fields in Patch requests.
3488	NullFields []string `json:"-"`
3489}
3490
3491func (s *ListRevisionsResponse) MarshalJSON() ([]byte, error) {
3492	type NoMethod ListRevisionsResponse
3493	raw := NoMethod(*s)
3494	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3495}
3496
3497// ListRoutesResponse: ListRoutesResponse is a list of Route resources.
3498type ListRoutesResponse struct {
3499	// ApiVersion: The API version for this call such as
3500	// "serving.knative.dev/v1alpha1".
3501	ApiVersion string `json:"apiVersion,omitempty"`
3502
3503	// Items: List of Routes.
3504	Items []*Route `json:"items,omitempty"`
3505
3506	// Kind: The kind of this resource, in this case always "RouteList".
3507	Kind string `json:"kind,omitempty"`
3508
3509	// Metadata: Metadata associated with this Route list.
3510	Metadata *ListMeta `json:"metadata,omitempty"`
3511
3512	// Unreachable: Locations that could not be reached.
3513	Unreachable []string `json:"unreachable,omitempty"`
3514
3515	// ServerResponse contains the HTTP response code and headers from the
3516	// server.
3517	googleapi.ServerResponse `json:"-"`
3518
3519	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3520	// unconditionally include in API requests. By default, fields with
3521	// empty values are omitted from API requests. However, any non-pointer,
3522	// non-interface field appearing in ForceSendFields will be sent to the
3523	// server regardless of whether the field is empty or not. This may be
3524	// used to include empty fields in Patch requests.
3525	ForceSendFields []string `json:"-"`
3526
3527	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3528	// API requests with the JSON null value. By default, fields with empty
3529	// values are omitted from API requests. However, any field with an
3530	// empty value appearing in NullFields will be sent to the server as
3531	// null. It is an error if a field in this list has a non-empty value.
3532	// This may be used to include null fields in Patch requests.
3533	NullFields []string `json:"-"`
3534}
3535
3536func (s *ListRoutesResponse) MarshalJSON() ([]byte, error) {
3537	type NoMethod ListRoutesResponse
3538	raw := NoMethod(*s)
3539	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3540}
3541
3542// ListServicesResponse: A list of Service resources.
3543type ListServicesResponse struct {
3544	// ApiVersion: The API version for this call such as
3545	// "serving.knative.dev/v1alpha1".
3546	ApiVersion string `json:"apiVersion,omitempty"`
3547
3548	// Items: List of Services.
3549	Items []*Service `json:"items,omitempty"`
3550
3551	// Kind: The kind of this resource, in this case "ServiceList".
3552	Kind string `json:"kind,omitempty"`
3553
3554	// Metadata: Metadata associated with this Service list.
3555	Metadata *ListMeta `json:"metadata,omitempty"`
3556
3557	// Unreachable: Locations that could not be reached.
3558	Unreachable []string `json:"unreachable,omitempty"`
3559
3560	// ServerResponse contains the HTTP response code and headers from the
3561	// server.
3562	googleapi.ServerResponse `json:"-"`
3563
3564	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3565	// unconditionally include in API requests. By default, fields with
3566	// empty values are omitted from API requests. However, any non-pointer,
3567	// non-interface field appearing in ForceSendFields will be sent to the
3568	// server regardless of whether the field is empty or not. This may be
3569	// used to include empty fields in Patch requests.
3570	ForceSendFields []string `json:"-"`
3571
3572	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3573	// API requests with the JSON null value. By default, fields with empty
3574	// values are omitted from API requests. However, any field with an
3575	// empty value appearing in NullFields will be sent to the server as
3576	// null. It is an error if a field in this list has a non-empty value.
3577	// This may be used to include null fields in Patch requests.
3578	NullFields []string `json:"-"`
3579}
3580
3581func (s *ListServicesResponse) MarshalJSON() ([]byte, error) {
3582	type NoMethod ListServicesResponse
3583	raw := NoMethod(*s)
3584	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3585}
3586
3587// ListTriggersResponse: ListTriggersResponse is a list of Trigger
3588// resources.
3589type ListTriggersResponse struct {
3590	// ApiVersion: The API version for this call such as
3591	// "eventing.knative.dev/v1alpha1".
3592	ApiVersion string `json:"apiVersion,omitempty"`
3593
3594	// Items: List of Triggers.
3595	Items []*Trigger `json:"items,omitempty"`
3596
3597	// Kind: The kind of this resource, in this case "TriggerList".
3598	Kind string `json:"kind,omitempty"`
3599
3600	// Metadata: Metadata associated with this Trigger list.
3601	Metadata *ListMeta `json:"metadata,omitempty"`
3602
3603	// Unreachable: Locations that could not be reached.
3604	Unreachable []string `json:"unreachable,omitempty"`
3605
3606	// ServerResponse contains the HTTP response code and headers from the
3607	// server.
3608	googleapi.ServerResponse `json:"-"`
3609
3610	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
3611	// unconditionally include in API requests. By default, fields with
3612	// empty values are omitted from API requests. However, any non-pointer,
3613	// non-interface field appearing in ForceSendFields will be sent to the
3614	// server regardless of whether the field is empty or not. This may be
3615	// used to include empty fields in Patch requests.
3616	ForceSendFields []string `json:"-"`
3617
3618	// NullFields is a list of field names (e.g. "ApiVersion") to include in
3619	// API requests with the JSON null value. By default, fields with empty
3620	// values are omitted from API requests. However, any field with an
3621	// empty value appearing in NullFields will be sent to the server as
3622	// null. It is an error if a field in this list has a non-empty value.
3623	// This may be used to include null fields in Patch requests.
3624	NullFields []string `json:"-"`
3625}
3626
3627func (s *ListTriggersResponse) MarshalJSON() ([]byte, error) {
3628	type NoMethod ListTriggersResponse
3629	raw := NoMethod(*s)
3630	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3631}
3632
3633// LocalObjectReference: LocalObjectReference contains enough
3634// information to let you locate the
3635// referenced object inside the same namespace.
3636type LocalObjectReference struct {
3637	// Name: Name of the referent.
3638	// More
3639	// info:
3640	// https://kubernetes.io/docs/concepts/overview/working-with-object
3641	// s/names/#names
3642	Name string `json:"name,omitempty"`
3643
3644	// ForceSendFields is a list of field names (e.g. "Name") to
3645	// unconditionally include in API requests. By default, fields with
3646	// empty values are omitted from API requests. However, any non-pointer,
3647	// non-interface field appearing in ForceSendFields will be sent to the
3648	// server regardless of whether the field is empty or not. This may be
3649	// used to include empty fields in Patch requests.
3650	ForceSendFields []string `json:"-"`
3651
3652	// NullFields is a list of field names (e.g. "Name") to include in API
3653	// requests with the JSON null value. By default, fields with empty
3654	// values are omitted from API requests. However, any field with an
3655	// empty value appearing in NullFields will be sent to the server as
3656	// null. It is an error if a field in this list has a non-empty value.
3657	// This may be used to include null fields in Patch requests.
3658	NullFields []string `json:"-"`
3659}
3660
3661func (s *LocalObjectReference) MarshalJSON() ([]byte, error) {
3662	type NoMethod LocalObjectReference
3663	raw := NoMethod(*s)
3664	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3665}
3666
3667// Location: A resource that represents Google Cloud Platform location.
3668type Location struct {
3669	// DisplayName: The friendly name for this location, typically a nearby
3670	// city name.
3671	// For example, "Tokyo".
3672	DisplayName string `json:"displayName,omitempty"`
3673
3674	// Labels: Cross-service attributes for the location. For example
3675	//
3676	//     {"cloud.googleapis.com/region": "us-east1"}
3677	Labels map[string]string `json:"labels,omitempty"`
3678
3679	// LocationId: The canonical id for this location. For example:
3680	// "us-east1".
3681	LocationId string `json:"locationId,omitempty"`
3682
3683	// Metadata: Service-specific metadata. For example the available
3684	// capacity at the given
3685	// location.
3686	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3687
3688	// Name: Resource name for the location, which may vary between
3689	// implementations.
3690	// For example: "projects/example-project/locations/us-east1"
3691	Name string `json:"name,omitempty"`
3692
3693	// ForceSendFields is a list of field names (e.g. "DisplayName") to
3694	// unconditionally include in API requests. By default, fields with
3695	// empty values are omitted from API requests. However, any non-pointer,
3696	// non-interface field appearing in ForceSendFields will be sent to the
3697	// server regardless of whether the field is empty or not. This may be
3698	// used to include empty fields in Patch requests.
3699	ForceSendFields []string `json:"-"`
3700
3701	// NullFields is a list of field names (e.g. "DisplayName") to include
3702	// in API requests with the JSON null value. By default, fields with
3703	// empty values are omitted from API requests. However, any field with
3704	// an empty value appearing in NullFields will be sent to the server as
3705	// null. It is an error if a field in this list has a non-empty value.
3706	// This may be used to include null fields in Patch requests.
3707	NullFields []string `json:"-"`
3708}
3709
3710func (s *Location) MarshalJSON() ([]byte, error) {
3711	type NoMethod Location
3712	raw := NoMethod(*s)
3713	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3714}
3715
3716// ObjectMeta: ObjectMeta is metadata that all persisted resources must
3717// have, which includes
3718// all objects users must create.
3719type ObjectMeta struct {
3720	// Annotations: Annotations is an unstructured key value map stored with
3721	// a resource that
3722	// may be set by external tools to store and retrieve arbitrary
3723	// metadata. They
3724	// are not queryable and should be preserved when modifying objects.
3725	// More
3726	// info: http://kubernetes.io/docs/user-guide/annotations +optional
3727	Annotations map[string]string `json:"annotations,omitempty"`
3728
3729	// ClusterName: Not currently supported by Cloud Run.
3730	//
3731	// The name of the cluster which the object belongs to.
3732	// This is used to distinguish resources with same name and namespace
3733	// in
3734	// different clusters. This field is not set anywhere right now and
3735	// apiserver
3736	// is going to ignore it if set in create or update request. +optional
3737	ClusterName string `json:"clusterName,omitempty"`
3738
3739	// CreationTimestamp: CreationTimestamp is a timestamp representing the
3740	// server time when this
3741	// object was created. It is not guaranteed to be set in happens-before
3742	// order
3743	// across separate operations. Clients may not set this value. It
3744	// is
3745	// represented in RFC3339 form and is in UTC.
3746	//
3747	// Populated by the system.
3748	// Read-only.
3749	// Null for lists.
3750	// More
3751	// info:
3752	// https://git.k8s.io/community/contributors/devel/api-conventions.
3753	// md#metadata
3754	// +optional
3755	CreationTimestamp string `json:"creationTimestamp,omitempty"`
3756
3757	// DeletionGracePeriodSeconds: Not currently supported by Cloud
3758	// Run.
3759	//
3760	// Number of seconds allowed for this object to gracefully terminate
3761	// before
3762	// it will be removed from the system. Only set when deletionTimestamp
3763	// is also
3764	// set. May only be shortened. Read-only. +optional
3765	DeletionGracePeriodSeconds int64 `json:"deletionGracePeriodSeconds,omitempty"`
3766
3767	// DeletionTimestamp: DeletionTimestamp is RFC 3339 date and time at
3768	// which this resource will be
3769	// deleted. This field is set by the server when a graceful deletion
3770	// is
3771	// requested by the user, and is not directly settable by a client.
3772	// The
3773	// resource is expected to be deleted (no longer visible from resource
3774	// lists,
3775	// and not reachable by name) after the time in this field, once
3776	// the
3777	// finalizers list is empty. As long as the finalizers list contains
3778	// items,
3779	// deletion is blocked. Once the deletionTimestamp is set, this value
3780	// may not
3781	// be unset or be set further into the future, although it may be
3782	// shortened or
3783	// the resource may be deleted prior to this time. For example, a user
3784	// may
3785	// request that a pod is deleted in 30 seconds. The Kubelet will react
3786	// by
3787	// sending a graceful termination signal to the containers in the pod.
3788	// After
3789	// that 30 seconds, the Kubelet will send a hard termination signal
3790	// (SIGKILL)
3791	// to the container and after cleanup, remove the pod from the API. In
3792	// the
3793	// presence of network partitions, this object may still exist after
3794	// this
3795	// timestamp, until an administrator or automated process can determine
3796	// the
3797	// resource is fully terminated.
3798	// If not set, graceful deletion of the object has not been
3799	// requested.
3800	//
3801	// Populated by the system when a graceful deletion is
3802	// requested.
3803	// Read-only.
3804	// More
3805	// info:
3806	// https://git.k8s.io/community/contributors/devel/api-conventions.
3807	// md#metadata
3808	// +optional
3809	DeletionTimestamp string `json:"deletionTimestamp,omitempty"`
3810
3811	// Finalizers: Not currently supported by Cloud Run.
3812	//
3813	// Must be empty before the object is deleted from the registry. Each
3814	// entry
3815	// is an identifier for the responsible component that will remove the
3816	// entry
3817	// from the list. If the deletionTimestamp of the object is non-nil,
3818	// entries
3819	// in this list can only be removed.
3820	// +optional
3821	// +patchStrategy=merge
3822	Finalizers []string `json:"finalizers,omitempty"`
3823
3824	// GenerateName: Not currently supported by Cloud Run.
3825	//
3826	// GenerateName is an optional prefix, used by the server, to generate
3827	// a
3828	// unique name ONLY IF the Name field has not been provided. If this
3829	// field is
3830	// used, the name returned to the client will be different than the
3831	// name
3832	// passed. This value will also be combined with a unique suffix. The
3833	// provided
3834	// value has the same validation rules as the Name field, and may be
3835	// truncated
3836	// by the length of the suffix required to make the value unique on
3837	// the
3838	// server.
3839	//
3840	// If this field is specified and the generated name exists, the server
3841	// will
3842	// NOT return a 409 - instead, it will either return 201 Created or 500
3843	// with
3844	// Reason ServerTimeout indicating a unique name could not be found in
3845	// the
3846	// time allotted, and the client should retry (optionally after the
3847	// time
3848	// indicated in the Retry-After header).
3849	//
3850	// Applied only if Name is not specified.
3851	// More
3852	// info:
3853	// https://git.k8s.io/community/contributors/devel/api-conventions.
3854	// md#idempotency
3855	// +optional
3856	//  string generateName = 2;
3857	GenerateName string `json:"generateName,omitempty"`
3858
3859	// Generation: A sequence number representing a specific generation of
3860	// the desired state.
3861	// Populated by the system. Read-only.
3862	// +optional
3863	Generation int64 `json:"generation,omitempty"`
3864
3865	// Labels: Map of string keys and values that can be used to organize
3866	// and categorize
3867	// (scope and select) objects. May match selectors of replication
3868	// controllers
3869	// and routes.
3870	// More info: http://kubernetes.io/docs/user-guide/labels
3871	// +optional
3872	Labels map[string]string `json:"labels,omitempty"`
3873
3874	// Name: Name must be unique within a namespace, within a Cloud Run
3875	// region.
3876	// Is required when creating
3877	// resources, although some resources may allow a client to request
3878	// the
3879	// generation of an appropriate name automatically. Name is primarily
3880	// intended
3881	// for creation idempotence and configuration definition. Cannot be
3882	// updated.
3883	// More info:
3884	// http://kubernetes.io/docs/user-guide/identifiers#names
3885	// +optional
3886	Name string `json:"name,omitempty"`
3887
3888	// Namespace: Namespace defines the space within each name must be
3889	// unique, within a
3890	// Cloud Run region. In Cloud Run the namespace must be equal to either
3891	// the
3892	// project ID or project number.
3893	Namespace string `json:"namespace,omitempty"`
3894
3895	// OwnerReferences: List of objects that own this object. If ALL objects
3896	// in the list have
3897	// been deleted, this object will be garbage collected.
3898	// +optional
3899	OwnerReferences []*OwnerReference `json:"ownerReferences,omitempty"`
3900
3901	// ResourceVersion: An opaque value that represents the internal version
3902	// of this object that
3903	// can be used by clients to determine when objects have changed. May be
3904	// used
3905	// for optimistic concurrency, change detection, and the watch operation
3906	// on a
3907	// resource or set of resources. Clients must treat these values as
3908	// opaque and
3909	// passed unmodified back to the server. They may only be valid for
3910	// a
3911	// particular resource or set of resources.
3912	//
3913	// Populated by the system.
3914	// Read-only.
3915	// Value must be treated as opaque by clients and .
3916	// More
3917	// info:
3918	// https://git.k8s.io/community/contributors/devel/api-conventions.
3919	// md#concurrency-control-and-consistency
3920	// +optional
3921	ResourceVersion string `json:"resourceVersion,omitempty"`
3922
3923	// SelfLink: SelfLink is a URL representing this object.
3924	// Populated by the system.
3925	// Read-only.
3926	// +optional
3927	//  string selfLink = 4;
3928	SelfLink string `json:"selfLink,omitempty"`
3929
3930	// Uid: UID is the unique in time and space value for this object. It is
3931	// typically
3932	// generated by the server on successful creation of a resource and is
3933	// not
3934	// allowed to change on PUT operations.
3935	//
3936	// Populated by the system.
3937	// Read-only.
3938	// More info:
3939	// http://kubernetes.io/docs/user-guide/identifiers#uids
3940	// +optional
3941	Uid string `json:"uid,omitempty"`
3942
3943	// ForceSendFields is a list of field names (e.g. "Annotations") to
3944	// unconditionally include in API requests. By default, fields with
3945	// empty values are omitted from API requests. However, any non-pointer,
3946	// non-interface field appearing in ForceSendFields will be sent to the
3947	// server regardless of whether the field is empty or not. This may be
3948	// used to include empty fields in Patch requests.
3949	ForceSendFields []string `json:"-"`
3950
3951	// NullFields is a list of field names (e.g. "Annotations") to include
3952	// in API requests with the JSON null value. By default, fields with
3953	// empty values are omitted from API requests. However, any field with
3954	// an empty value appearing in NullFields will be sent to the server as
3955	// null. It is an error if a field in this list has a non-empty value.
3956	// This may be used to include null fields in Patch requests.
3957	NullFields []string `json:"-"`
3958}
3959
3960func (s *ObjectMeta) MarshalJSON() ([]byte, error) {
3961	type NoMethod ObjectMeta
3962	raw := NoMethod(*s)
3963	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3964}
3965
3966// ObjectReference: ObjectReference contains enough information to let
3967// you inspect or modify the
3968// referred object.
3969type ObjectReference struct {
3970	// ApiVersion: API version of the referent.
3971	// +optional
3972	ApiVersion string `json:"apiVersion,omitempty"`
3973
3974	// FieldPath: If referring to a piece of an object instead of an entire
3975	// object, this
3976	// string should contain a valid JSON/Go field access statement, such
3977	// as
3978	// desiredState.manifest.containers[2]. For example, if the object
3979	// reference
3980	// is to a container within a pod, this would take on a value
3981	// like:
3982	// "spec.containers{name}" (where "name" refers to the name of the
3983	// container
3984	// that triggered the event) or if no container name is
3985	// specified
3986	// "spec.containers[2]" (container with index 2 in this pod). This
3987	// syntax is
3988	// chosen only to have some well-defined way of referencing a part of
3989	// an
3990	// object.
3991	FieldPath string `json:"fieldPath,omitempty"`
3992
3993	// Kind: Kind of the referent.
3994	// More
3995	// info:
3996	// https://git.k8s.io/community/contributors/devel/api-conventions.
3997	// md#types-kinds
3998	// +optional
3999	Kind string `json:"kind,omitempty"`
4000
4001	// Name: Name of the referent.
4002	// More
4003	// info:
4004	// https://kubernetes.io/docs/concepts/overview/working-with-object
4005	// s/names/#names
4006	// +optional
4007	Name string `json:"name,omitempty"`
4008
4009	// Namespace: Namespace of the referent.
4010	// More
4011	// info:
4012	// https://kubernetes.io/docs/concepts/overview/working-with-object
4013	// s/namespaces/
4014	// +optional
4015	Namespace string `json:"namespace,omitempty"`
4016
4017	// ResourceVersion: Specific resourceVersion to which this reference is
4018	// made, if any.
4019	// More
4020	// info:
4021	// https://git.k8s.io/community/contributors/devel/api-conventions.
4022	// md#concurrency-control-and-consistency
4023	// +optional
4024	ResourceVersion string `json:"resourceVersion,omitempty"`
4025
4026	// Uid: UID of the referent.
4027	// More
4028	// info:
4029	// https://kubernetes.io/docs/concepts/overview/working-with-object
4030	// s/names/#uids
4031	// +optional
4032	Uid string `json:"uid,omitempty"`
4033
4034	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
4035	// unconditionally include in API requests. By default, fields with
4036	// empty values are omitted from API requests. However, any non-pointer,
4037	// non-interface field appearing in ForceSendFields will be sent to the
4038	// server regardless of whether the field is empty or not. This may be
4039	// used to include empty fields in Patch requests.
4040	ForceSendFields []string `json:"-"`
4041
4042	// NullFields is a list of field names (e.g. "ApiVersion") to include in
4043	// API requests with the JSON null value. By default, fields with empty
4044	// values are omitted from API requests. However, any field with an
4045	// empty value appearing in NullFields will be sent to the server as
4046	// null. It is an error if a field in this list has a non-empty value.
4047	// This may be used to include null fields in Patch requests.
4048	NullFields []string `json:"-"`
4049}
4050
4051func (s *ObjectReference) MarshalJSON() ([]byte, error) {
4052	type NoMethod ObjectReference
4053	raw := NoMethod(*s)
4054	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4055}
4056
4057// OwnerReference: OwnerReference contains enough information to let you
4058// identify an owning
4059// object. Currently, an owning object must be in the same namespace, so
4060// there
4061// is no namespace field.
4062type OwnerReference struct {
4063	// ApiVersion: API version of the referent.
4064	ApiVersion string `json:"apiVersion,omitempty"`
4065
4066	// BlockOwnerDeletion: If true, AND if the owner has the
4067	// "foregroundDeletion" finalizer, then
4068	// the owner cannot be deleted from the key-value store until
4069	// this
4070	// reference is removed.
4071	// Defaults to false.
4072	// To set this field, a user needs "delete" permission of the
4073	// owner,
4074	// otherwise 422 (Unprocessable Entity) will be returned.
4075	// +optional
4076	BlockOwnerDeletion bool `json:"blockOwnerDeletion,omitempty"`
4077
4078	// Controller: If true, this reference points to the managing
4079	// controller.
4080	// +optional
4081	Controller bool `json:"controller,omitempty"`
4082
4083	// Kind: Kind of the referent.
4084	// More
4085	// info:
4086	// https://git.k8s.io/community/contributors/devel/api-conventions.
4087	// md#types-kinds
4088	Kind string `json:"kind,omitempty"`
4089
4090	// Name: Name of the referent.
4091	// More info: http://kubernetes.io/docs/user-guide/identifiers#names
4092	Name string `json:"name,omitempty"`
4093
4094	// Uid: UID of the referent.
4095	// More info: http://kubernetes.io/docs/user-guide/identifiers#uids
4096	Uid string `json:"uid,omitempty"`
4097
4098	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
4099	// unconditionally include in API requests. By default, fields with
4100	// empty values are omitted from API requests. However, any non-pointer,
4101	// non-interface field appearing in ForceSendFields will be sent to the
4102	// server regardless of whether the field is empty or not. This may be
4103	// used to include empty fields in Patch requests.
4104	ForceSendFields []string `json:"-"`
4105
4106	// NullFields is a list of field names (e.g. "ApiVersion") to include in
4107	// API requests with the JSON null value. By default, fields with empty
4108	// values are omitted from API requests. However, any field with an
4109	// empty value appearing in NullFields will be sent to the server as
4110	// null. It is an error if a field in this list has a non-empty value.
4111	// This may be used to include null fields in Patch requests.
4112	NullFields []string `json:"-"`
4113}
4114
4115func (s *OwnerReference) MarshalJSON() ([]byte, error) {
4116	type NoMethod OwnerReference
4117	raw := NoMethod(*s)
4118	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4119}
4120
4121// Policy: An Identity and Access Management (IAM) policy, which
4122// specifies access
4123// controls for Google Cloud resources.
4124//
4125//
4126// A `Policy` is a collection of `bindings`. A `binding` binds one or
4127// more
4128// `members` to a single `role`. Members can be user accounts, service
4129// accounts,
4130// Google groups, and domains (such as G Suite). A `role` is a named
4131// list of
4132// permissions; each `role` can be an IAM predefined role or a
4133// user-created
4134// custom role.
4135//
4136// Optionally, a `binding` can specify a `condition`, which is a
4137// logical
4138// expression that allows access to a resource only if the expression
4139// evaluates
4140// to `true`. A condition can add constraints based on attributes of
4141// the
4142// request, the resource, or both.
4143//
4144// **JSON example:**
4145//
4146//     {
4147//       "bindings": [
4148//         {
4149//           "role": "roles/resourcemanager.organizationAdmin",
4150//           "members": [
4151//             "user:mike@example.com",
4152//             "group:admins@example.com",
4153//             "domain:google.com",
4154//
4155// "serviceAccount:my-project-id@appspot.gserviceaccount.com"
4156//           ]
4157//         },
4158//         {
4159//           "role": "roles/resourcemanager.organizationViewer",
4160//           "members": ["user:eve@example.com"],
4161//           "condition": {
4162//             "title": "expirable access",
4163//             "description": "Does not grant access after Sep 2020",
4164//             "expression": "request.time <
4165// timestamp('2020-10-01T00:00:00.000Z')",
4166//           }
4167//         }
4168//       ],
4169//       "etag": "BwWWja0YfJA=",
4170//       "version": 3
4171//     }
4172//
4173// **YAML example:**
4174//
4175//     bindings:
4176//     - members:
4177//       - user:mike@example.com
4178//       - group:admins@example.com
4179//       - domain:google.com
4180//       - serviceAccount:my-project-id@appspot.gserviceaccount.com
4181//       role: roles/resourcemanager.organizationAdmin
4182//     - members:
4183//       - user:eve@example.com
4184//       role: roles/resourcemanager.organizationViewer
4185//       condition:
4186//         title: expirable access
4187//         description: Does not grant access after Sep 2020
4188//         expression: request.time <
4189// timestamp('2020-10-01T00:00:00.000Z')
4190//     - etag: BwWWja0YfJA=
4191//     - version: 3
4192//
4193// For a description of IAM and its features, see the
4194// [IAM documentation](https://cloud.google.com/iam/docs/).
4195type Policy struct {
4196	// AuditConfigs: Specifies cloud audit logging configuration for this
4197	// policy.
4198	AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"`
4199
4200	// Bindings: Associates a list of `members` to a `role`. Optionally, may
4201	// specify a
4202	// `condition` that determines how and when the `bindings` are applied.
4203	// Each
4204	// of the `bindings` must contain at least one member.
4205	Bindings []*Binding `json:"bindings,omitempty"`
4206
4207	// Etag: `etag` is used for optimistic concurrency control as a way to
4208	// help
4209	// prevent simultaneous updates of a policy from overwriting each
4210	// other.
4211	// It is strongly suggested that systems make use of the `etag` in
4212	// the
4213	// read-modify-write cycle to perform policy updates in order to avoid
4214	// race
4215	// conditions: An `etag` is returned in the response to `getIamPolicy`,
4216	// and
4217	// systems are expected to put that etag in the request to
4218	// `setIamPolicy` to
4219	// ensure that their change will be applied to the same version of the
4220	// policy.
4221	//
4222	// **Important:** If you use IAM Conditions, you must include the `etag`
4223	// field
4224	// whenever you call `setIamPolicy`. If you omit this field, then IAM
4225	// allows
4226	// you to overwrite a version `3` policy with a version `1` policy, and
4227	// all of
4228	// the conditions in the version `3` policy are lost.
4229	Etag string `json:"etag,omitempty"`
4230
4231	// Version: Specifies the format of the policy.
4232	//
4233	// Valid values are `0`, `1`, and `3`. Requests that specify an invalid
4234	// value
4235	// are rejected.
4236	//
4237	// Any operation that affects conditional role bindings must specify
4238	// version
4239	// `3`. This requirement applies to the following operations:
4240	//
4241	// * Getting a policy that includes a conditional role binding
4242	// * Adding a conditional role binding to a policy
4243	// * Changing a conditional role binding in a policy
4244	// * Removing any role binding, with or without a condition, from a
4245	// policy
4246	//   that includes conditions
4247	//
4248	// **Important:** If you use IAM Conditions, you must include the `etag`
4249	// field
4250	// whenever you call `setIamPolicy`. If you omit this field, then IAM
4251	// allows
4252	// you to overwrite a version `3` policy with a version `1` policy, and
4253	// all of
4254	// the conditions in the version `3` policy are lost.
4255	//
4256	// If a policy does not include any conditions, operations on that
4257	// policy may
4258	// specify any valid version or leave the field unset.
4259	Version int64 `json:"version,omitempty"`
4260
4261	// ServerResponse contains the HTTP response code and headers from the
4262	// server.
4263	googleapi.ServerResponse `json:"-"`
4264
4265	// ForceSendFields is a list of field names (e.g. "AuditConfigs") to
4266	// unconditionally include in API requests. By default, fields with
4267	// empty values are omitted from API requests. However, any non-pointer,
4268	// non-interface field appearing in ForceSendFields will be sent to the
4269	// server regardless of whether the field is empty or not. This may be
4270	// used to include empty fields in Patch requests.
4271	ForceSendFields []string `json:"-"`
4272
4273	// NullFields is a list of field names (e.g. "AuditConfigs") to include
4274	// in API requests with the JSON null value. By default, fields with
4275	// empty values are omitted from API requests. However, any field with
4276	// an empty value appearing in NullFields will be sent to the server as
4277	// null. It is an error if a field in this list has a non-empty value.
4278	// This may be used to include null fields in Patch requests.
4279	NullFields []string `json:"-"`
4280}
4281
4282func (s *Policy) MarshalJSON() ([]byte, error) {
4283	type NoMethod Policy
4284	raw := NoMethod(*s)
4285	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4286}
4287
4288// Probe: Probe describes a health check to be performed against a
4289// container to
4290// determine whether it is alive or ready to receive traffic.
4291type Probe struct {
4292	// FailureThreshold: Minimum consecutive failures for the probe to be
4293	// considered failed after
4294	// having succeeded. Defaults to 3. Minimum value is 1. +optional
4295	FailureThreshold int64 `json:"failureThreshold,omitempty"`
4296
4297	// Handler: The action taken to determine the health of a container
4298	Handler *Handler `json:"handler,omitempty"`
4299
4300	// InitialDelaySeconds: Number of seconds after the container has
4301	// started before liveness probes
4302	// are initiated. More
4303	// info:
4304	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
4305	// #container-probes
4306	// +optional
4307	InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"`
4308
4309	// PeriodSeconds: How often (in seconds) to perform the probe.
4310	// Default to 10 seconds. Minimum value is 1.
4311	// +optional
4312	PeriodSeconds int64 `json:"periodSeconds,omitempty"`
4313
4314	// SuccessThreshold: Minimum consecutive successes for the probe to be
4315	// considered successful
4316	// after having failed. Defaults to 1. Must be 1 for liveness. Minimum
4317	// value
4318	// is 1. +optional
4319	SuccessThreshold int64 `json:"successThreshold,omitempty"`
4320
4321	// TimeoutSeconds: Number of seconds after which the probe times
4322	// out.
4323	// Defaults to 1 second. Minimum value is 1.
4324	// More
4325	// info:
4326	// https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
4327	// #container-probes
4328	// +optional
4329	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
4330
4331	// ForceSendFields is a list of field names (e.g. "FailureThreshold") to
4332	// unconditionally include in API requests. By default, fields with
4333	// empty values are omitted from API requests. However, any non-pointer,
4334	// non-interface field appearing in ForceSendFields will be sent to the
4335	// server regardless of whether the field is empty or not. This may be
4336	// used to include empty fields in Patch requests.
4337	ForceSendFields []string `json:"-"`
4338
4339	// NullFields is a list of field names (e.g. "FailureThreshold") to
4340	// include in API requests with the JSON null value. By default, fields
4341	// with empty values are omitted from API requests. However, any field
4342	// with an empty value appearing in NullFields will be sent to the
4343	// server as null. It is an error if a field in this list has a
4344	// non-empty value. This may be used to include null fields in Patch
4345	// requests.
4346	NullFields []string `json:"-"`
4347}
4348
4349func (s *Probe) MarshalJSON() ([]byte, error) {
4350	type NoMethod Probe
4351	raw := NoMethod(*s)
4352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4353}
4354
4355// Quantity: The view model of a single quantity, e.g. "800 MiB".
4356// Corresponds
4357// to
4358// https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8
4359// s.io/apimachinery/pkg/api/resource/generated.proto
4360type Quantity struct {
4361	// String: Stringified version of the quantity, e.g., "800 MiB".
4362	String string `json:"string,omitempty"`
4363
4364	// ForceSendFields is a list of field names (e.g. "String") to
4365	// unconditionally include in API requests. By default, fields with
4366	// empty values are omitted from API requests. However, any non-pointer,
4367	// non-interface field appearing in ForceSendFields will be sent to the
4368	// server regardless of whether the field is empty or not. This may be
4369	// used to include empty fields in Patch requests.
4370	ForceSendFields []string `json:"-"`
4371
4372	// NullFields is a list of field names (e.g. "String") to include in API
4373	// requests with the JSON null value. By default, fields with empty
4374	// values are omitted from API requests. However, any field with an
4375	// empty value appearing in NullFields will be sent to the server as
4376	// null. It is an error if a field in this list has a non-empty value.
4377	// This may be used to include null fields in Patch requests.
4378	NullFields []string `json:"-"`
4379}
4380
4381func (s *Quantity) MarshalJSON() ([]byte, error) {
4382	type NoMethod Quantity
4383	raw := NoMethod(*s)
4384	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4385}
4386
4387// ResourceRecord: A DNS resource record.
4388type ResourceRecord struct {
4389	// Name: Relative name of the object affected by this record. Only
4390	// applicable for
4391	// `CNAME` records. Example: 'www'.
4392	Name string `json:"name,omitempty"`
4393
4394	// Rrdata: Data for this record. Values vary by record type, as defined
4395	// in RFC 1035
4396	// (section 5) and RFC 1034 (section 3.6.1).
4397	Rrdata string `json:"rrdata,omitempty"`
4398
4399	// Type: Resource record type. Example: `AAAA`.
4400	//
4401	// Possible values:
4402	//   "RECORD_TYPE_UNSPECIFIED" - An unknown resource record.
4403	//   "A" - An A resource record. Data is an IPv4 address.
4404	//   "AAAA" - An AAAA resource record. Data is an IPv6 address.
4405	//   "CNAME" - A CNAME resource record. Data is a domain name to be
4406	// aliased.
4407	Type string `json:"type,omitempty"`
4408
4409	// ForceSendFields is a list of field names (e.g. "Name") to
4410	// unconditionally include in API requests. By default, fields with
4411	// empty values are omitted from API requests. However, any non-pointer,
4412	// non-interface field appearing in ForceSendFields will be sent to the
4413	// server regardless of whether the field is empty or not. This may be
4414	// used to include empty fields in Patch requests.
4415	ForceSendFields []string `json:"-"`
4416
4417	// NullFields is a list of field names (e.g. "Name") to include in API
4418	// requests with the JSON null value. By default, fields with empty
4419	// values are omitted from API requests. However, any field with an
4420	// empty value appearing in NullFields will be sent to the server as
4421	// null. It is an error if a field in this list has a non-empty value.
4422	// This may be used to include null fields in Patch requests.
4423	NullFields []string `json:"-"`
4424}
4425
4426func (s *ResourceRecord) MarshalJSON() ([]byte, error) {
4427	type NoMethod ResourceRecord
4428	raw := NoMethod(*s)
4429	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4430}
4431
4432// ResourceRequirements: ResourceRequirements describes the compute
4433// resource requirements.
4434type ResourceRequirements struct {
4435	// Limits: Limits describes the maximum amount of compute resources
4436	// allowed.
4437	// The values of the map is string form of the 'quantity' k8s
4438	// type:
4439	// https://github.com/kubernetes/kubernetes/blob/master/staging/src
4440	// /k8s.io/apimachinery/pkg/api/resource/quantity.go
4441	Limits map[string]string `json:"limits,omitempty"`
4442
4443	// LimitsInMap: Limits describes the maximum amount of compute resources
4444	// allowed.
4445	// This is a temporary field created to migrate away from
4446	// the
4447	// map<string, Quantity> limits field. This is done to become
4448	// compliant
4449	// with k8s style API.
4450	// This field is deprecated in favor of limits field.
4451	LimitsInMap map[string]Quantity `json:"limitsInMap,omitempty"`
4452
4453	// Requests: Requests describes the minimum amount of compute resources
4454	// required.
4455	// If Requests is omitted for a container, it defaults to Limits if that
4456	// is
4457	// explicitly specified, otherwise to an implementation-defined
4458	// value.
4459	// The values of the map is string form of the 'quantity' k8s
4460	// type:
4461	// https://github.com/kubernetes/kubernetes/blob/master/staging/src
4462	// /k8s.io/apimachinery/pkg/api/resource/quantity.go
4463	Requests map[string]string `json:"requests,omitempty"`
4464
4465	// RequestsInMap: Requests describes the minimum amount of compute
4466	// resources required.
4467	// If Requests is omitted for a container, it defaults to Limits if that
4468	// is
4469	// explicitly specified, otherwise to an implementation-defined
4470	// value.
4471	// This is a temporary field created to migrate away from
4472	// the
4473	// map<string, Quantity> requests field. This is done to become
4474	// compliant
4475	// with k8s style API.
4476	// This field is deprecated in favor of requests field.
4477	RequestsInMap map[string]Quantity `json:"requestsInMap,omitempty"`
4478
4479	// ForceSendFields is a list of field names (e.g. "Limits") to
4480	// unconditionally include in API requests. By default, fields with
4481	// empty values are omitted from API requests. However, any non-pointer,
4482	// non-interface field appearing in ForceSendFields will be sent to the
4483	// server regardless of whether the field is empty or not. This may be
4484	// used to include empty fields in Patch requests.
4485	ForceSendFields []string `json:"-"`
4486
4487	// NullFields is a list of field names (e.g. "Limits") to include in API
4488	// requests with the JSON null value. By default, fields with empty
4489	// values are omitted from API requests. However, any field with an
4490	// empty value appearing in NullFields will be sent to the server as
4491	// null. It is an error if a field in this list has a non-empty value.
4492	// This may be used to include null fields in Patch requests.
4493	NullFields []string `json:"-"`
4494}
4495
4496func (s *ResourceRequirements) MarshalJSON() ([]byte, error) {
4497	type NoMethod ResourceRequirements
4498	raw := NoMethod(*s)
4499	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4500}
4501
4502// Revision: Revision is an immutable snapshot of code and
4503// configuration.  A revision
4504// references a container image. Revisions are created by updates to
4505// a
4506// Configuration.
4507//
4508// Cloud Run does not currently support referencing a build that is
4509// responsible
4510// for materializing the container image from source.
4511//
4512// See
4513// also:
4514// https://github.com/knative/serving/blob/master/docs/spec/overvie
4515// w.md#revision
4516type Revision struct {
4517	// ApiVersion: The API version for this call such as
4518	// "serving.knative.dev/v1alpha1".
4519	ApiVersion string `json:"apiVersion,omitempty"`
4520
4521	// Kind: The kind of this resource, in this case "Revision".
4522	Kind string `json:"kind,omitempty"`
4523
4524	// Metadata: Metadata associated with this Revision, including name,
4525	// namespace, labels,
4526	// and annotations.
4527	Metadata *ObjectMeta `json:"metadata,omitempty"`
4528
4529	// Spec: Spec holds the desired state of the Revision (from the client).
4530	Spec *RevisionSpec `json:"spec,omitempty"`
4531
4532	// Status: Status communicates the observed state of the Revision (from
4533	// the
4534	// controller).
4535	Status *RevisionStatus `json:"status,omitempty"`
4536
4537	// ServerResponse contains the HTTP response code and headers from the
4538	// server.
4539	googleapi.ServerResponse `json:"-"`
4540
4541	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
4542	// unconditionally include in API requests. By default, fields with
4543	// empty values are omitted from API requests. However, any non-pointer,
4544	// non-interface field appearing in ForceSendFields will be sent to the
4545	// server regardless of whether the field is empty or not. This may be
4546	// used to include empty fields in Patch requests.
4547	ForceSendFields []string `json:"-"`
4548
4549	// NullFields is a list of field names (e.g. "ApiVersion") to include in
4550	// API requests with the JSON null value. By default, fields with empty
4551	// values are omitted from API requests. However, any field with an
4552	// empty value appearing in NullFields will be sent to the server as
4553	// null. It is an error if a field in this list has a non-empty value.
4554	// This may be used to include null fields in Patch requests.
4555	NullFields []string `json:"-"`
4556}
4557
4558func (s *Revision) MarshalJSON() ([]byte, error) {
4559	type NoMethod Revision
4560	raw := NoMethod(*s)
4561	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4562}
4563
4564// RevisionCondition: RevisionCondition defines a readiness condition
4565// for a Revision.
4566type RevisionCondition struct {
4567	// LastTransitionTime: Last time the condition transitioned from one
4568	// status to another.
4569	// +optional
4570	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
4571
4572	// Message: Human readable message indicating details about the current
4573	// status.
4574	// +optional
4575	Message string `json:"message,omitempty"`
4576
4577	// Reason: One-word CamelCase reason for the condition's last
4578	// transition.
4579	// +optional
4580	Reason string `json:"reason,omitempty"`
4581
4582	// Severity: How to interpret failures of this condition, one of Error,
4583	// Warning, Info
4584	// +optional
4585	Severity string `json:"severity,omitempty"`
4586
4587	// Status: Status of the condition, one of True, False, Unknown.
4588	Status string `json:"status,omitempty"`
4589
4590	// Type: RevisionConditionType is used to communicate the status of
4591	// the
4592	// reconciliation process. See
4593	// also:
4594	// https://github.com/knative/serving/blob/master/docs/spec/errors.
4595	// md#error-conditions-and-reporting
4596	// Types include:
4597	//
4598	// * "Ready": True when the Revision is ready.
4599	// * "ResourcesAvailable": True when underlying resources have
4600	// been
4601	// provisioned.
4602	// * "ContainerHealthy": True when the Revision readiness check
4603	// completes.
4604	// * "Active": True when the Revision may receive traffic.
4605	Type string `json:"type,omitempty"`
4606
4607	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
4608	// to unconditionally include in API requests. By default, fields with
4609	// empty values are omitted from API requests. However, any non-pointer,
4610	// non-interface field appearing in ForceSendFields will be sent to the
4611	// server regardless of whether the field is empty or not. This may be
4612	// used to include empty fields in Patch requests.
4613	ForceSendFields []string `json:"-"`
4614
4615	// NullFields is a list of field names (e.g. "LastTransitionTime") to
4616	// include in API requests with the JSON null value. By default, fields
4617	// with empty values are omitted from API requests. However, any field
4618	// with an empty value appearing in NullFields will be sent to the
4619	// server as null. It is an error if a field in this list has a
4620	// non-empty value. This may be used to include null fields in Patch
4621	// requests.
4622	NullFields []string `json:"-"`
4623}
4624
4625func (s *RevisionCondition) MarshalJSON() ([]byte, error) {
4626	type NoMethod RevisionCondition
4627	raw := NoMethod(*s)
4628	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4629}
4630
4631// RevisionSpec: RevisionSpec holds the desired state of the Revision
4632// (from the client).
4633type RevisionSpec struct {
4634	// ConcurrencyModel: ConcurrencyModel specifies the desired concurrency
4635	// model
4636	// (Single or Multi) for the Revision. Defaults to Multi.
4637	// Deprecated in favor of ContainerConcurrency.
4638	// +optional
4639	ConcurrencyModel string `json:"concurrencyModel,omitempty"`
4640
4641	// Container: Container defines the unit of execution for this
4642	// Revision.
4643	// In the context of a Revision, we disallow a number of the fields
4644	// of
4645	// this Container, including: name, ports, and volumeMounts.
4646	// The runtime contract is documented
4647	// here:
4648	// https://github.com/knative/serving/blob/master/docs/runtime-cont
4649	// ract.md
4650	Container *Container `json:"container,omitempty"`
4651
4652	// ContainerConcurrency: (Optional)
4653	//
4654	// ContainerConcurrency specifies the maximum allowed in-flight
4655	// (concurrent)
4656	// requests per container instance of the Revision.
4657	//
4658	// Cloud Run fully managed: supported, defaults to 80
4659	//
4660	// Cloud Run on GKE: supported, defaults to 0, which means
4661	// concurrency
4662	// to the application is not limited, and the system decides the
4663	// target concurrency for the autoscaler.
4664	ContainerConcurrency int64 `json:"containerConcurrency,omitempty"`
4665
4666	// Containers: Containers holds the single container that defines the
4667	// unit of execution
4668	// for this Revision. In the context of a Revision, we disallow a number
4669	// of
4670	// fields on this Container, including: name and lifecycle.
4671	// In Cloud Run, only a single container may be provided.
4672	Containers []*Container `json:"containers,omitempty"`
4673
4674	// Generation: Deprecated and not currently populated by Cloud Run.
4675	// See
4676	// metadata.generation instead, which is the sequence number containing
4677	// the
4678	// latest generation of the desired state.
4679	//
4680	// Read-only.
4681	Generation int64 `json:"generation,omitempty"`
4682
4683	// ServiceAccountName: Email address of the IAM service account
4684	// associated with the revision
4685	// of the service. The service account represents the identity of
4686	// the
4687	// running revision, and determines what permissions the revision has.
4688	// If
4689	// not provided, the revision will use the project's default service
4690	// account.
4691	ServiceAccountName string `json:"serviceAccountName,omitempty"`
4692
4693	// ServingState: ServingState holds a value describing the state the
4694	// resources
4695	// are in for this Revision.
4696	// Users must not specify this when creating a revision. It is
4697	// expected
4698	// that the system will manipulate this based on routability and
4699	// load.
4700	//
4701	// Populated by the system.
4702	// Read-only.
4703	//
4704	// Possible values:
4705	//   "REVISION_SERVING_STATE_UNSPECIFIED" - The revision serving state
4706	// hasn't been specified.
4707	//   "ACTIVE" - The revision is ready to serve traffic.
4708	//   "RESERVE" - The revision is not currently serving traffic, but
4709	// could be made to serve
4710	// traffic quickly.
4711	// Not currently used by Cloud Run.
4712	//   "RETIRED" - The revision has been decommissioned and is not needed
4713	// to serve traffic
4714	// anymore. A Revision may be brought out of retirement, but it may
4715	// take
4716	// longer than it would from a "Reserve" state.
4717	ServingState string `json:"servingState,omitempty"`
4718
4719	// TimeoutSeconds: TimeoutSeconds holds the max duration the instance is
4720	// allowed for
4721	// responding to a request.
4722	// Not currently used by Cloud Run.
4723	TimeoutSeconds int64 `json:"timeoutSeconds,omitempty"`
4724
4725	Volumes []*Volume `json:"volumes,omitempty"`
4726
4727	// ForceSendFields is a list of field names (e.g. "ConcurrencyModel") to
4728	// unconditionally include in API requests. By default, fields with
4729	// empty values are omitted from API requests. However, any non-pointer,
4730	// non-interface field appearing in ForceSendFields will be sent to the
4731	// server regardless of whether the field is empty or not. This may be
4732	// used to include empty fields in Patch requests.
4733	ForceSendFields []string `json:"-"`
4734
4735	// NullFields is a list of field names (e.g. "ConcurrencyModel") to
4736	// include in API requests with the JSON null value. By default, fields
4737	// with empty values are omitted from API requests. However, any field
4738	// with an empty value appearing in NullFields will be sent to the
4739	// server as null. It is an error if a field in this list has a
4740	// non-empty value. This may be used to include null fields in Patch
4741	// requests.
4742	NullFields []string `json:"-"`
4743}
4744
4745func (s *RevisionSpec) MarshalJSON() ([]byte, error) {
4746	type NoMethod RevisionSpec
4747	raw := NoMethod(*s)
4748	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4749}
4750
4751// RevisionStatus: RevisionStatus communicates the observed state of the
4752// Revision (from the
4753// controller).
4754type RevisionStatus struct {
4755	// Conditions: Conditions communicates information about
4756	// ongoing/complete
4757	// reconciliation processes that bring the "spec" inline with the
4758	// observed
4759	// state of the world.
4760	//
4761	// As a Revision is being prepared, it will incrementally
4762	// update conditions "ResourcesAvailable", "ContainerHealthy", and
4763	// "Active",
4764	// which contribute to the overall "Ready" condition.
4765	Conditions []*RevisionCondition `json:"conditions,omitempty"`
4766
4767	// ImageDigest: ImageDigest holds the resolved digest for the image
4768	// specified
4769	// within .Spec.Container.Image. The digest is resolved during the
4770	// creation
4771	// of Revision. This field holds the digest value regardless of
4772	// whether
4773	// a tag or digest was originally specified in the Container object.
4774	ImageDigest string `json:"imageDigest,omitempty"`
4775
4776	// LogUrl: Specifies the generated logging url for this particular
4777	// revision
4778	// based on the revision url template specified in the controller's
4779	// config.
4780	// +optional
4781	LogUrl string `json:"logUrl,omitempty"`
4782
4783	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
4784	// Revision that
4785	// was last processed by the controller.
4786	//
4787	// Clients polling for completed reconciliation should poll
4788	// until
4789	// observedGeneration = metadata.generation, and the Ready condition's
4790	// status
4791	// is True or False.
4792	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
4793
4794	// ServiceName: Not currently used by Cloud Run.
4795	ServiceName string `json:"serviceName,omitempty"`
4796
4797	// ForceSendFields is a list of field names (e.g. "Conditions") to
4798	// unconditionally include in API requests. By default, fields with
4799	// empty values are omitted from API requests. However, any non-pointer,
4800	// non-interface field appearing in ForceSendFields will be sent to the
4801	// server regardless of whether the field is empty or not. This may be
4802	// used to include empty fields in Patch requests.
4803	ForceSendFields []string `json:"-"`
4804
4805	// NullFields is a list of field names (e.g. "Conditions") to include in
4806	// API requests with the JSON null value. By default, fields with empty
4807	// values are omitted from API requests. However, any field with an
4808	// empty value appearing in NullFields will be sent to the server as
4809	// null. It is an error if a field in this list has a non-empty value.
4810	// This may be used to include null fields in Patch requests.
4811	NullFields []string `json:"-"`
4812}
4813
4814func (s *RevisionStatus) MarshalJSON() ([]byte, error) {
4815	type NoMethod RevisionStatus
4816	raw := NoMethod(*s)
4817	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4818}
4819
4820// RevisionTemplate: RevisionTemplateSpec describes the data a revision
4821// should have when created
4822// from a template. Based
4823// on:
4824// https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L
4825// 3179-L3190
4826type RevisionTemplate struct {
4827	// Metadata: Optional metadata for this Revision, including labels and
4828	// annotations. Name
4829	// will be generated by the Configuration.
4830	// To set minimum instances for this revision, use
4831	// the
4832	// "autoscaling.knative.dev/minScale" annotation key. (Cloud Run on GKE
4833	// only).
4834	// To set maximum instances for this revision, use
4835	// the
4836	// "autoscaling.knative.dev/maxScale" annotation key.
4837	// To set Cloud SQL connections for the revision, use
4838	// the
4839	// "run.googleapis.com/cloudsql-instances" annotation key. Values should
4840	// be
4841	// comma separated.
4842	Metadata *ObjectMeta `json:"metadata,omitempty"`
4843
4844	// Spec: RevisionSpec holds the desired state of the Revision (from the
4845	// client).
4846	Spec *RevisionSpec `json:"spec,omitempty"`
4847
4848	// ForceSendFields is a list of field names (e.g. "Metadata") to
4849	// unconditionally include in API requests. By default, fields with
4850	// empty values are omitted from API requests. However, any non-pointer,
4851	// non-interface field appearing in ForceSendFields will be sent to the
4852	// server regardless of whether the field is empty or not. This may be
4853	// used to include empty fields in Patch requests.
4854	ForceSendFields []string `json:"-"`
4855
4856	// NullFields is a list of field names (e.g. "Metadata") to include in
4857	// API requests with the JSON null value. By default, fields with empty
4858	// values are omitted from API requests. However, any field with an
4859	// empty value appearing in NullFields will be sent to the server as
4860	// null. It is an error if a field in this list has a non-empty value.
4861	// This may be used to include null fields in Patch requests.
4862	NullFields []string `json:"-"`
4863}
4864
4865func (s *RevisionTemplate) MarshalJSON() ([]byte, error) {
4866	type NoMethod RevisionTemplate
4867	raw := NoMethod(*s)
4868	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4869}
4870
4871// Route: Route is responsible for configuring ingress over a collection
4872// of Revisions.
4873// Some of the Revisions a Route distributes traffic over may be
4874// specified by
4875// referencing the Configuration responsible for creating them; in these
4876// cases
4877// the Route is additionally responsible for monitoring the
4878// Configuration for
4879// "latest ready" revision changes, and smoothly rolling out latest
4880// revisions.
4881// See
4882// also:
4883// https://github.com/knative/serving/blob/master/docs/spec/overvie
4884// w.md#route
4885//
4886// Cloud Run currently supports referencing a single Configuration
4887// to
4888// automatically deploy the "latest ready" Revision from that
4889// Configuration.
4890type Route struct {
4891	// ApiVersion: The API version for this call such as
4892	// "serving.knative.dev/v1alpha1".
4893	ApiVersion string `json:"apiVersion,omitempty"`
4894
4895	// Kind: The kind of this resource, in this case always "Route".
4896	Kind string `json:"kind,omitempty"`
4897
4898	// Metadata: Metadata associated with this Route, including name,
4899	// namespace, labels,
4900	// and annotations.
4901	Metadata *ObjectMeta `json:"metadata,omitempty"`
4902
4903	// Spec: Spec holds the desired state of the Route (from the client).
4904	Spec *RouteSpec `json:"spec,omitempty"`
4905
4906	// Status: Status communicates the observed state of the Route (from the
4907	// controller).
4908	Status *RouteStatus `json:"status,omitempty"`
4909
4910	// ServerResponse contains the HTTP response code and headers from the
4911	// server.
4912	googleapi.ServerResponse `json:"-"`
4913
4914	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
4915	// unconditionally include in API requests. By default, fields with
4916	// empty values are omitted from API requests. However, any non-pointer,
4917	// non-interface field appearing in ForceSendFields will be sent to the
4918	// server regardless of whether the field is empty or not. This may be
4919	// used to include empty fields in Patch requests.
4920	ForceSendFields []string `json:"-"`
4921
4922	// NullFields is a list of field names (e.g. "ApiVersion") to include in
4923	// API requests with the JSON null value. By default, fields with empty
4924	// values are omitted from API requests. However, any field with an
4925	// empty value appearing in NullFields will be sent to the server as
4926	// null. It is an error if a field in this list has a non-empty value.
4927	// This may be used to include null fields in Patch requests.
4928	NullFields []string `json:"-"`
4929}
4930
4931func (s *Route) MarshalJSON() ([]byte, error) {
4932	type NoMethod Route
4933	raw := NoMethod(*s)
4934	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4935}
4936
4937// RouteCondition: RouteCondition defines a readiness condition for a
4938// Route.
4939type RouteCondition struct {
4940	// LastTransitionTime: Last time the condition transitioned from one
4941	// status to another.
4942	// +optional
4943	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
4944
4945	// Message: Human-readable message indicating details about last
4946	// transition.
4947	// +optional
4948	Message string `json:"message,omitempty"`
4949
4950	// Reason: One-word CamelCase reason for the condition's last
4951	// transition.
4952	// +optional
4953	Reason string `json:"reason,omitempty"`
4954
4955	// Severity: How to interpret failures of this condition, one of Error,
4956	// Warning, Info
4957	// +optional
4958	Severity string `json:"severity,omitempty"`
4959
4960	// Status: Status of the condition, one of "True", "False", "Unknown".
4961	Status string `json:"status,omitempty"`
4962
4963	// Type: RouteConditionType is used to communicate the status of the
4964	// reconciliation
4965	// process. See
4966	// also:
4967	// https://github.com/knative/serving/blob/master/docs/spec/errors.
4968	// md#error-conditions-and-reporting
4969	// Types include: "Ready".
4970	Type string `json:"type,omitempty"`
4971
4972	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
4973	// to unconditionally include in API requests. By default, fields with
4974	// empty values are omitted from API requests. However, any non-pointer,
4975	// non-interface field appearing in ForceSendFields will be sent to the
4976	// server regardless of whether the field is empty or not. This may be
4977	// used to include empty fields in Patch requests.
4978	ForceSendFields []string `json:"-"`
4979
4980	// NullFields is a list of field names (e.g. "LastTransitionTime") to
4981	// include in API requests with the JSON null value. By default, fields
4982	// with empty values are omitted from API requests. However, any field
4983	// with an empty value appearing in NullFields will be sent to the
4984	// server as null. It is an error if a field in this list has a
4985	// non-empty value. This may be used to include null fields in Patch
4986	// requests.
4987	NullFields []string `json:"-"`
4988}
4989
4990func (s *RouteCondition) MarshalJSON() ([]byte, error) {
4991	type NoMethod RouteCondition
4992	raw := NoMethod(*s)
4993	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4994}
4995
4996// RouteSpec: RouteSpec holds the desired state of the Route (from the
4997// client).
4998type RouteSpec struct {
4999	// Generation: Deprecated and not currently populated by Cloud Run.
5000	// See
5001	// metadata.generation instead, which is the sequence number containing
5002	// the
5003	// latest generation of the desired state.
5004	//
5005	// Read-only.
5006	Generation int64 `json:"generation,omitempty"`
5007
5008	// Traffic: Traffic specifies how to distribute traffic over a
5009	// collection of Knative
5010	// Revisions and Configurations.
5011	// Cloud Run currently supports a single configurationName.
5012	Traffic []*TrafficTarget `json:"traffic,omitempty"`
5013
5014	// ForceSendFields is a list of field names (e.g. "Generation") 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. "Generation") 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 *RouteSpec) MarshalJSON() ([]byte, error) {
5032	type NoMethod RouteSpec
5033	raw := NoMethod(*s)
5034	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5035}
5036
5037// RouteStatus: RouteStatus communicates the observed state of the Route
5038// (from the
5039// controller).
5040type RouteStatus struct {
5041	// Address: Similar to url, information on where the service is
5042	// available on HTTP.
5043	Address *Addressable `json:"address,omitempty"`
5044
5045	// Conditions: Conditions communicates information about
5046	// ongoing/complete
5047	// reconciliation processes that bring the "spec" inline with the
5048	// observed
5049	// state of the world.
5050	Conditions []*RouteCondition `json:"conditions,omitempty"`
5051
5052	// Domain: Deprecated - use url instead.
5053	// Domain holds the top-level domain that will distribute traffic over
5054	// the
5055	// provided targets.
5056	Domain string `json:"domain,omitempty"`
5057
5058	// DomainInternal: Deprecated - use address instead.
5059	// For Cloud Run, identifical to domain.
5060	DomainInternal string `json:"domainInternal,omitempty"`
5061
5062	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
5063	// Route that
5064	// was last processed by the controller.
5065	//
5066	// Clients polling for completed reconciliation should poll
5067	// until
5068	// observedGeneration = metadata.generation and the Ready condition's
5069	// status
5070	// is True or False.
5071	//
5072	// Note that providing a trafficTarget that only has a configurationName
5073	// will
5074	// result in a Route that does not increment either its
5075	// metadata.generation or
5076	// its observedGeneration, as new "latest ready" revisions from
5077	// the
5078	// Configuration are processed without an update to the Route's spec.
5079	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5080
5081	// Traffic: Traffic holds the configured traffic distribution.
5082	// These entries will always contain RevisionName references.
5083	// When ConfigurationName appears in the spec, this will hold
5084	// the
5085	// LatestReadyRevisionName that we last observed.
5086	Traffic []*TrafficTarget `json:"traffic,omitempty"`
5087
5088	// Url: URL holds the url that will distribute traffic over the provided
5089	// traffic
5090	// targets. It generally has the
5091	// form
5092	// https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.
5093	// app
5094	Url string `json:"url,omitempty"`
5095
5096	// ForceSendFields is a list of field names (e.g. "Address") to
5097	// unconditionally include in API requests. By default, fields with
5098	// empty values are omitted from API requests. However, any non-pointer,
5099	// non-interface field appearing in ForceSendFields will be sent to the
5100	// server regardless of whether the field is empty or not. This may be
5101	// used to include empty fields in Patch requests.
5102	ForceSendFields []string `json:"-"`
5103
5104	// NullFields is a list of field names (e.g. "Address") to include in
5105	// API requests with the JSON null value. By default, fields with empty
5106	// values are omitted from API requests. However, any field with an
5107	// empty value appearing in NullFields will be sent to the server as
5108	// null. It is an error if a field in this list has a non-empty value.
5109	// This may be used to include null fields in Patch requests.
5110	NullFields []string `json:"-"`
5111}
5112
5113func (s *RouteStatus) MarshalJSON() ([]byte, error) {
5114	type NoMethod RouteStatus
5115	raw := NoMethod(*s)
5116	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5117}
5118
5119// SELinuxOptions: SELinuxOptions are the labels to be applied to the
5120// container
5121type SELinuxOptions struct {
5122	// Level: Level is SELinux level label that applies to the
5123	// container.
5124	// +optional
5125	Level string `json:"level,omitempty"`
5126
5127	// Role: Role is a SELinux role label that applies to the
5128	// container.
5129	// +optional
5130	Role string `json:"role,omitempty"`
5131
5132	// Type: Type is a SELinux type label that applies to the
5133	// container.
5134	// +optional
5135	Type string `json:"type,omitempty"`
5136
5137	// User: User is a SELinux user label that applies to the
5138	// container.
5139	// +optional
5140	User string `json:"user,omitempty"`
5141
5142	// ForceSendFields is a list of field names (e.g. "Level") to
5143	// unconditionally include in API requests. By default, fields with
5144	// empty values are omitted from API requests. However, any non-pointer,
5145	// non-interface field appearing in ForceSendFields will be sent to the
5146	// server regardless of whether the field is empty or not. This may be
5147	// used to include empty fields in Patch requests.
5148	ForceSendFields []string `json:"-"`
5149
5150	// NullFields is a list of field names (e.g. "Level") to include in API
5151	// requests with the JSON null value. By default, fields with empty
5152	// values are omitted from API requests. However, any field with an
5153	// empty value appearing in NullFields will be sent to the server as
5154	// null. It is an error if a field in this list has a non-empty value.
5155	// This may be used to include null fields in Patch requests.
5156	NullFields []string `json:"-"`
5157}
5158
5159func (s *SELinuxOptions) MarshalJSON() ([]byte, error) {
5160	type NoMethod SELinuxOptions
5161	raw := NoMethod(*s)
5162	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5163}
5164
5165// SecretEnvSource: SecretEnvSource selects a Secret to populate the
5166// environment
5167// variables with.
5168//
5169// The contents of the target Secret's Data field will represent
5170// the
5171// key-value pairs as environment variables.
5172type SecretEnvSource struct {
5173	// LocalObjectReference: This field should not be used directly as it is
5174	// meant to be inlined
5175	// directly into the message. Use the "name" field instead.
5176	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
5177
5178	// Name: Cloud Run fully managed: not supported
5179	//
5180	// Cloud Run for Anthos: supported
5181	//
5182	// The Secret to select from.
5183	Name string `json:"name,omitempty"`
5184
5185	// Optional: Cloud Run fully managed: not supported
5186	//
5187	// Cloud Run for Anthos: supported
5188	//
5189	// Specify whether the Secret must be defined
5190	// +optional
5191	Optional bool `json:"optional,omitempty"`
5192
5193	// ForceSendFields is a list of field names (e.g.
5194	// "LocalObjectReference") to unconditionally include in API requests.
5195	// By default, fields with empty values are omitted from API requests.
5196	// However, any non-pointer, non-interface field appearing in
5197	// ForceSendFields will be sent to the server regardless of whether the
5198	// field is empty or not. This may be used to include empty fields in
5199	// Patch requests.
5200	ForceSendFields []string `json:"-"`
5201
5202	// NullFields is a list of field names (e.g. "LocalObjectReference") to
5203	// include in API requests with the JSON null value. By default, fields
5204	// with empty values are omitted from API requests. However, any field
5205	// with an empty value appearing in NullFields will be sent to the
5206	// server as null. It is an error if a field in this list has a
5207	// non-empty value. This may be used to include null fields in Patch
5208	// requests.
5209	NullFields []string `json:"-"`
5210}
5211
5212func (s *SecretEnvSource) MarshalJSON() ([]byte, error) {
5213	type NoMethod SecretEnvSource
5214	raw := NoMethod(*s)
5215	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5216}
5217
5218// SecretKeySelector: Cloud Run fully managed: not supported
5219//
5220// Cloud Run on GKE: supported
5221//
5222// SecretKeySelector selects a key of a Secret.
5223type SecretKeySelector struct {
5224	// Key: Cloud Run fully managed: not supported
5225	//
5226	// Cloud Run on GKE: supported
5227	//
5228	// The key of the secret to select from.  Must be a valid secret key.
5229	Key string `json:"key,omitempty"`
5230
5231	// LocalObjectReference: This field should not be used directly as it is
5232	// meant to be inlined
5233	// directly into the message. Use the "name" field instead.
5234	LocalObjectReference *LocalObjectReference `json:"localObjectReference,omitempty"`
5235
5236	// Name: Cloud Run fully managed: not supported
5237	//
5238	// Cloud Run on GKE: supported
5239	//
5240	// The name of the secret in the pod's namespace to select from.
5241	Name string `json:"name,omitempty"`
5242
5243	// Optional: Cloud Run fully managed: not supported
5244	//
5245	// Cloud Run on GKE: supported
5246	//
5247	// Specify whether the Secret or its key must be defined
5248	// +optional
5249	Optional bool `json:"optional,omitempty"`
5250
5251	// ForceSendFields is a list of field names (e.g. "Key") to
5252	// unconditionally include in API requests. By default, fields with
5253	// empty values are omitted from API requests. However, any non-pointer,
5254	// non-interface field appearing in ForceSendFields will be sent to the
5255	// server regardless of whether the field is empty or not. This may be
5256	// used to include empty fields in Patch requests.
5257	ForceSendFields []string `json:"-"`
5258
5259	// NullFields is a list of field names (e.g. "Key") to include in API
5260	// requests with the JSON null value. By default, fields with empty
5261	// values are omitted from API requests. However, any field with an
5262	// empty value appearing in NullFields will be sent to the server as
5263	// null. It is an error if a field in this list has a non-empty value.
5264	// This may be used to include null fields in Patch requests.
5265	NullFields []string `json:"-"`
5266}
5267
5268func (s *SecretKeySelector) MarshalJSON() ([]byte, error) {
5269	type NoMethod SecretKeySelector
5270	raw := NoMethod(*s)
5271	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5272}
5273
5274// SecretVolumeSource: The contents of the target Secret's Data field
5275// will be presented in a volume
5276// as files using the keys in the Data field as the file names.
5277type SecretVolumeSource struct {
5278	// DefaultMode: Mode bits to use on created files by default. Must be a
5279	// value between 0 and
5280	// 0777. Defaults to 0644. Directories within the path are not affected
5281	// by
5282	// this setting. This might be in conflict with other options that
5283	// affect the
5284	// file mode, like fsGroup, and the result can be other mode bits set.
5285	DefaultMode int64 `json:"defaultMode,omitempty"`
5286
5287	// Items: If unspecified, each key-value pair in the Data field of the
5288	// referenced
5289	// Secret will be projected into the volume as a file whose name is
5290	// the
5291	// key and content is the value. If specified, the listed keys will
5292	// be
5293	// projected into the specified paths, and unlisted keys will not
5294	// be
5295	// present. If a key is specified which is not present in the
5296	// Secret,
5297	// the volume setup will error unless it is marked optional.
5298	Items []*KeyToPath `json:"items,omitempty"`
5299
5300	// Optional: Specify whether the Secret or its keys must be defined.
5301	Optional bool `json:"optional,omitempty"`
5302
5303	// SecretName: Name of the secret in the container's namespace to use.
5304	SecretName string `json:"secretName,omitempty"`
5305
5306	// ForceSendFields is a list of field names (e.g. "DefaultMode") to
5307	// unconditionally include in API requests. By default, fields with
5308	// empty values are omitted from API requests. However, any non-pointer,
5309	// non-interface field appearing in ForceSendFields will be sent to the
5310	// server regardless of whether the field is empty or not. This may be
5311	// used to include empty fields in Patch requests.
5312	ForceSendFields []string `json:"-"`
5313
5314	// NullFields is a list of field names (e.g. "DefaultMode") to include
5315	// in API requests with the JSON null value. By default, fields with
5316	// empty values are omitted from API requests. However, any field with
5317	// an empty value appearing in NullFields will be sent to the server as
5318	// null. It is an error if a field in this list has a non-empty value.
5319	// This may be used to include null fields in Patch requests.
5320	NullFields []string `json:"-"`
5321}
5322
5323func (s *SecretVolumeSource) MarshalJSON() ([]byte, error) {
5324	type NoMethod SecretVolumeSource
5325	raw := NoMethod(*s)
5326	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5327}
5328
5329// SecurityContext: SecurityContext holds security configuration that
5330// will be applied to a
5331// container. Some fields are present in both SecurityContext
5332// and
5333// PodSecurityContext.  When both are set, the values in SecurityContext
5334// take
5335// precedence.
5336type SecurityContext struct {
5337	// AllowPrivilegeEscalation: AllowPrivilegeEscalation controls whether a
5338	// process can gain more
5339	// privileges than its parent process. This bool directly controls
5340	// if
5341	// the no_new_privs flag will be set on the container
5342	// process.
5343	// AllowPrivilegeEscalation is true always when the container is:
5344	// 1) run as Privileged
5345	// 2) has CAP_SYS_ADMIN
5346	// +optional
5347	AllowPrivilegeEscalation bool `json:"allowPrivilegeEscalation,omitempty"`
5348
5349	// Capabilities: The capabilities to add/drop when running
5350	// containers.
5351	// Defaults to the default set of capabilities granted by the
5352	// container
5353	// runtime. +optional
5354	Capabilities *Capabilities `json:"capabilities,omitempty"`
5355
5356	// Privileged: Run container in privileged mode.
5357	// Processes in privileged containers are essentially equivalent to root
5358	// on
5359	// the host. Defaults to false. +optional
5360	Privileged bool `json:"privileged,omitempty"`
5361
5362	// ReadOnlyRootFilesystem: Whether this container has a read-only root
5363	// filesystem.
5364	// Default is false.
5365	// +optional
5366	ReadOnlyRootFilesystem bool `json:"readOnlyRootFilesystem,omitempty"`
5367
5368	// RunAsGroup: The GID to run the entrypoint of the container
5369	// process.
5370	// Uses runtime default if unset.
5371	// May also be set in PodSecurityContext.  If set in both
5372	// SecurityContext and
5373	// PodSecurityContext, the value specified in SecurityContext
5374	// takes
5375	// precedence. +optional
5376	RunAsGroup int64 `json:"runAsGroup,omitempty"`
5377
5378	// RunAsNonRoot: Indicates that the container must run as a non-root
5379	// user.
5380	// If true, the Kubelet will validate the image at runtime to ensure
5381	// that it
5382	// does not run as UID 0 (root) and fail to start the container if it
5383	// does.
5384	// If unset or false, no such validation will be performed.
5385	// May also be set in PodSecurityContext.  If set in both
5386	// SecurityContext and
5387	// PodSecurityContext, the value specified in SecurityContext
5388	// takes
5389	// precedence. +optional
5390	RunAsNonRoot bool `json:"runAsNonRoot,omitempty"`
5391
5392	// RunAsUser: The UID to run the entrypoint of the container
5393	// process.
5394	// Defaults to user specified in image metadata if unspecified.
5395	// May also be set in PodSecurityContext.  If set in both
5396	// SecurityContext and
5397	// PodSecurityContext, the value specified in SecurityContext
5398	// takes
5399	// precedence. +optional
5400	RunAsUser int64 `json:"runAsUser,omitempty"`
5401
5402	// SeLinuxOptions: The SELinux context to be applied to the
5403	// container.
5404	// If unspecified, the container runtime will allocate a random
5405	// SELinux
5406	// context for each container.  May also be set in PodSecurityContext.
5407	// If set
5408	// in both SecurityContext and PodSecurityContext, the value specified
5409	// in
5410	// SecurityContext takes precedence. +optional
5411	SeLinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"`
5412
5413	// ForceSendFields is a list of field names (e.g.
5414	// "AllowPrivilegeEscalation") to unconditionally include in API
5415	// requests. By default, fields with empty values are omitted from API
5416	// requests. However, any non-pointer, non-interface field appearing in
5417	// ForceSendFields will be sent to the server regardless of whether the
5418	// field is empty or not. This may be used to include empty fields in
5419	// Patch requests.
5420	ForceSendFields []string `json:"-"`
5421
5422	// NullFields is a list of field names (e.g. "AllowPrivilegeEscalation")
5423	// to include in API requests with the JSON null value. By default,
5424	// fields with empty values are omitted from API requests. However, any
5425	// field with an empty value appearing in NullFields will be sent to the
5426	// server as null. It is an error if a field in this list has a
5427	// non-empty value. This may be used to include null fields in Patch
5428	// requests.
5429	NullFields []string `json:"-"`
5430}
5431
5432func (s *SecurityContext) MarshalJSON() ([]byte, error) {
5433	type NoMethod SecurityContext
5434	raw := NoMethod(*s)
5435	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5436}
5437
5438// Service: Service acts as a top-level container that manages a set of
5439// Routes and
5440// Configurations which implement a network service. Service exists to
5441// provide a
5442// singular abstraction which can be access controlled, reasoned about,
5443// and
5444// which encapsulates software lifecycle decisions such as rollout
5445// policy and
5446// team resource ownership. Service acts only as an orchestrator of
5447// the
5448// underlying Routes and Configurations (much as a kubernetes
5449// Deployment
5450// orchestrates ReplicaSets).
5451//
5452// The Service's controller will track the statuses of its owned
5453// Configuration
5454// and Route, reflecting their statuses and conditions as its own.
5455//
5456// See
5457// also:
5458// https://github.com/knative/serving/blob/master/docs/spec/overvie
5459// w.md#service
5460type Service struct {
5461	// ApiVersion: The API version for this call such as
5462	// "serving.knative.dev/v1alpha1".
5463	ApiVersion string `json:"apiVersion,omitempty"`
5464
5465	// Kind: The kind of resource, in this case "Service".
5466	Kind string `json:"kind,omitempty"`
5467
5468	// Metadata: Metadata associated with this Service, including name,
5469	// namespace, labels,
5470	// and annotations.
5471	Metadata *ObjectMeta `json:"metadata,omitempty"`
5472
5473	// Spec: Spec holds the desired state of the Service (from the client).
5474	Spec *ServiceSpec `json:"spec,omitempty"`
5475
5476	// Status: Status communicates the observed state of the Service (from
5477	// the
5478	// controller).
5479	Status *ServiceStatus `json:"status,omitempty"`
5480
5481	// ServerResponse contains the HTTP response code and headers from the
5482	// server.
5483	googleapi.ServerResponse `json:"-"`
5484
5485	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
5486	// unconditionally include in API requests. By default, fields with
5487	// empty values are omitted from API requests. However, any non-pointer,
5488	// non-interface field appearing in ForceSendFields will be sent to the
5489	// server regardless of whether the field is empty or not. This may be
5490	// used to include empty fields in Patch requests.
5491	ForceSendFields []string `json:"-"`
5492
5493	// NullFields is a list of field names (e.g. "ApiVersion") to include in
5494	// API requests with the JSON null value. By default, fields with empty
5495	// values are omitted from API requests. However, any field with an
5496	// empty value appearing in NullFields will be sent to the server as
5497	// null. It is an error if a field in this list has a non-empty value.
5498	// This may be used to include null fields in Patch requests.
5499	NullFields []string `json:"-"`
5500}
5501
5502func (s *Service) MarshalJSON() ([]byte, error) {
5503	type NoMethod Service
5504	raw := NoMethod(*s)
5505	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5506}
5507
5508// ServiceCondition: ServiceCondition defines a readiness condition for
5509// a Service.
5510type ServiceCondition struct {
5511	// LastTransitionTime: Last time the condition transitioned from one
5512	// status to another.
5513	// +optional
5514	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
5515
5516	// Message: Human-readable message indicating details about last
5517	// transition.
5518	// +optional
5519	Message string `json:"message,omitempty"`
5520
5521	// Reason: One-word CamelCase reason for the condition's last
5522	// transition.
5523	// +optional
5524	Reason string `json:"reason,omitempty"`
5525
5526	// Severity: How to interpret failures of this condition, one of Error,
5527	// Warning, Info
5528	// +optional
5529	Severity string `json:"severity,omitempty"`
5530
5531	// Status: Status of the condition, one of True, False, Unknown.
5532	Status string `json:"status,omitempty"`
5533
5534	// Type: ServiceConditionType is used to communicate the status of
5535	// the
5536	// reconciliation process. See
5537	// also:
5538	// https://github.com/knative/serving/blob/master/docs/spec/errors.
5539	// md#error-conditions-and-reporting
5540	//
5541	// Types include: "Ready", "ConfigurationsReady", and "RoutesReady".
5542	// "Ready"
5543	// will be true when the underlying Route and Configuration are ready.
5544	Type string `json:"type,omitempty"`
5545
5546	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
5547	// to unconditionally include in API requests. By default, fields with
5548	// empty values are omitted from API requests. However, any non-pointer,
5549	// non-interface field appearing in ForceSendFields will be sent to the
5550	// server regardless of whether the field is empty or not. This may be
5551	// used to include empty fields in Patch requests.
5552	ForceSendFields []string `json:"-"`
5553
5554	// NullFields is a list of field names (e.g. "LastTransitionTime") to
5555	// include in API requests with the JSON null value. By default, fields
5556	// with empty values are omitted from API requests. However, any field
5557	// with an empty value appearing in NullFields will be sent to the
5558	// server as null. It is an error if a field in this list has a
5559	// non-empty value. This may be used to include null fields in Patch
5560	// requests.
5561	NullFields []string `json:"-"`
5562}
5563
5564func (s *ServiceCondition) MarshalJSON() ([]byte, error) {
5565	type NoMethod ServiceCondition
5566	raw := NoMethod(*s)
5567	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5568}
5569
5570// ServiceSpec: ServiceSpec holds the desired state of the Route (from
5571// the client), which
5572// is used to manipulate the underlying Route and Configuration(s).
5573type ServiceSpec struct {
5574	// Generation: Deprecated and not currently populated by Cloud Run.
5575	// See
5576	// metadata.generation instead, which is the sequence number containing
5577	// the
5578	// latest generation of the desired state.
5579	//
5580	// Read-only.
5581	Generation int64 `json:"generation,omitempty"`
5582
5583	// Manual: Manual contains the options for configuring a manual service.
5584	// See
5585	// ServiceSpec for more details.
5586	//
5587	// Not currently supported by Cloud Run.
5588	Manual *ServiceSpecManualType `json:"manual,omitempty"`
5589
5590	// Pinned: Pins this service to a specific revision name. The revision
5591	// must
5592	// be owned by the configuration provided.
5593	//
5594	// Deprecated and not supported by Cloud Run.
5595	// +optional
5596	Pinned *ServiceSpecPinnedType `json:"pinned,omitempty"`
5597
5598	// Release: Release enables gradual promotion of new revisions by
5599	// allowing traffic
5600	// to be split between two revisions. This type replaces the
5601	// deprecated
5602	// Pinned type.
5603	//
5604	// Not currently supported by Cloud Run.
5605	Release *ServiceSpecReleaseType `json:"release,omitempty"`
5606
5607	// RunLatest: RunLatest defines a simple Service. It will
5608	// automatically
5609	// configure a route that keeps the latest ready revision
5610	// from the supplied configuration running.
5611	// +optional
5612	RunLatest *ServiceSpecRunLatest `json:"runLatest,omitempty"`
5613
5614	// Template: Template holds the latest specification for the Revision
5615	// to
5616	// be stamped out.
5617	Template *RevisionTemplate `json:"template,omitempty"`
5618
5619	// Traffic: Traffic specifies how to distribute traffic over a
5620	// collection of Knative
5621	// Revisions and Configurations.
5622	Traffic []*TrafficTarget `json:"traffic,omitempty"`
5623
5624	// ForceSendFields is a list of field names (e.g. "Generation") to
5625	// unconditionally include in API requests. By default, fields with
5626	// empty values are omitted from API requests. However, any non-pointer,
5627	// non-interface field appearing in ForceSendFields will be sent to the
5628	// server regardless of whether the field is empty or not. This may be
5629	// used to include empty fields in Patch requests.
5630	ForceSendFields []string `json:"-"`
5631
5632	// NullFields is a list of field names (e.g. "Generation") to include in
5633	// API requests with the JSON null value. By default, fields with empty
5634	// values are omitted from API requests. However, any field with an
5635	// empty value appearing in NullFields will be sent to the server as
5636	// null. It is an error if a field in this list has a non-empty value.
5637	// This may be used to include null fields in Patch requests.
5638	NullFields []string `json:"-"`
5639}
5640
5641func (s *ServiceSpec) MarshalJSON() ([]byte, error) {
5642	type NoMethod ServiceSpec
5643	raw := NoMethod(*s)
5644	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5645}
5646
5647// ServiceSpecManualType: ServiceSpecManualType contains the options for
5648// configuring a manual service.
5649// See ServiceSpec for more details.
5650//
5651// Not currently supported by Cloud Run.
5652type ServiceSpecManualType struct {
5653}
5654
5655// ServiceSpecPinnedType: ServiceSpecPinnedType Pins this service to a
5656// specific revision name. The
5657// revision must be owned by the configuration provided.
5658//
5659// Deprecated and not supported by Cloud Run.
5660type ServiceSpecPinnedType struct {
5661	// Configuration: The configuration for this service.
5662	Configuration *ConfigurationSpec `json:"configuration,omitempty"`
5663
5664	// RevisionName: The revision name to pin this service to until
5665	// changed
5666	// to a different service type.
5667	RevisionName string `json:"revisionName,omitempty"`
5668
5669	// ForceSendFields is a list of field names (e.g. "Configuration") to
5670	// unconditionally include in API requests. By default, fields with
5671	// empty values are omitted from API requests. However, any non-pointer,
5672	// non-interface field appearing in ForceSendFields will be sent to the
5673	// server regardless of whether the field is empty or not. This may be
5674	// used to include empty fields in Patch requests.
5675	ForceSendFields []string `json:"-"`
5676
5677	// NullFields is a list of field names (e.g. "Configuration") to include
5678	// in API requests with the JSON null value. By default, fields with
5679	// empty values are omitted from API requests. However, any field with
5680	// an empty value appearing in NullFields will be sent to the server as
5681	// null. It is an error if a field in this list has a non-empty value.
5682	// This may be used to include null fields in Patch requests.
5683	NullFields []string `json:"-"`
5684}
5685
5686func (s *ServiceSpecPinnedType) MarshalJSON() ([]byte, error) {
5687	type NoMethod ServiceSpecPinnedType
5688	raw := NoMethod(*s)
5689	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5690}
5691
5692// ServiceSpecReleaseType: ServiceSpecReleaseType contains the options
5693// for slowly releasing revisions.
5694// See ServiceSpec for more details.
5695//
5696// Not currently supported by Cloud Run.
5697type ServiceSpecReleaseType struct {
5698	// Configuration: The configuration for this service. All revisions from
5699	// this service must
5700	// come from a single configuration.
5701	Configuration *ConfigurationSpec `json:"configuration,omitempty"`
5702
5703	// Revisions: Revisions is an ordered list of 1 or 2 revisions. The
5704	// first is the current
5705	// revision, and the second is the candidate revision. If a single
5706	// revision
5707	// is provided, traffic will be pinned at that revision.
5708	//
5709	// "@latest" is a shortcut for usage that refers to the latest
5710	// created
5711	// revision by the configuration.
5712	Revisions []string `json:"revisions,omitempty"`
5713
5714	// RolloutPercent: RolloutPercent is the percent of traffic that should
5715	// be sent to the
5716	// candidate revision, i.e. the 2nd revision in the revisions
5717	// list.
5718	// Valid values are between 0 and 99 inclusive.
5719	RolloutPercent int64 `json:"rolloutPercent,omitempty"`
5720
5721	// ForceSendFields is a list of field names (e.g. "Configuration") to
5722	// unconditionally include in API requests. By default, fields with
5723	// empty values are omitted from API requests. However, any non-pointer,
5724	// non-interface field appearing in ForceSendFields will be sent to the
5725	// server regardless of whether the field is empty or not. This may be
5726	// used to include empty fields in Patch requests.
5727	ForceSendFields []string `json:"-"`
5728
5729	// NullFields is a list of field names (e.g. "Configuration") to include
5730	// in API requests with the JSON null value. By default, fields with
5731	// empty values are omitted from API requests. However, any field with
5732	// an empty value appearing in NullFields will be sent to the server as
5733	// null. It is an error if a field in this list has a non-empty value.
5734	// This may be used to include null fields in Patch requests.
5735	NullFields []string `json:"-"`
5736}
5737
5738func (s *ServiceSpecReleaseType) MarshalJSON() ([]byte, error) {
5739	type NoMethod ServiceSpecReleaseType
5740	raw := NoMethod(*s)
5741	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5742}
5743
5744// ServiceSpecRunLatest: ServiceSpecRunLatest contains the options for
5745// always having a route to the
5746// latest configuration. See ServiceSpec for more details.
5747type ServiceSpecRunLatest struct {
5748	// Configuration: The configuration for this service.
5749	Configuration *ConfigurationSpec `json:"configuration,omitempty"`
5750
5751	// ForceSendFields is a list of field names (e.g. "Configuration") to
5752	// unconditionally include in API requests. By default, fields with
5753	// empty values are omitted from API requests. However, any non-pointer,
5754	// non-interface field appearing in ForceSendFields will be sent to the
5755	// server regardless of whether the field is empty or not. This may be
5756	// used to include empty fields in Patch requests.
5757	ForceSendFields []string `json:"-"`
5758
5759	// NullFields is a list of field names (e.g. "Configuration") to include
5760	// in API requests with the JSON null value. By default, fields with
5761	// empty values are omitted from API requests. However, any field with
5762	// an empty value appearing in NullFields will be sent to the server as
5763	// null. It is an error if a field in this list has a non-empty value.
5764	// This may be used to include null fields in Patch requests.
5765	NullFields []string `json:"-"`
5766}
5767
5768func (s *ServiceSpecRunLatest) MarshalJSON() ([]byte, error) {
5769	type NoMethod ServiceSpecRunLatest
5770	raw := NoMethod(*s)
5771	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5772}
5773
5774// ServiceStatus: The current state of the Service. Output only.
5775type ServiceStatus struct {
5776	// Address: From RouteStatus.
5777	// Similar to url, information on where the service is available on
5778	// HTTP.
5779	Address *Addressable `json:"address,omitempty"`
5780
5781	// Conditions: Conditions communicates information about
5782	// ongoing/complete
5783	// reconciliation processes that bring the "spec" inline with the
5784	// observed
5785	// state of the world.
5786	Conditions []*ServiceCondition `json:"conditions,omitempty"`
5787
5788	// Domain: From RouteStatus.
5789	// Domain holds the top-level domain that will distribute traffic over
5790	// the
5791	// provided targets. It generally has the
5792	// form
5793	// https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.
5794	// app
5795	Domain string `json:"domain,omitempty"`
5796
5797	// LatestCreatedRevisionName: From
5798	// ConfigurationStatus.
5799	// LatestCreatedRevisionName is the last revision that was created from
5800	// this
5801	// Service's Configuration. It might not be ready yet, for that
5802	// use
5803	// LatestReadyRevisionName.
5804	LatestCreatedRevisionName string `json:"latestCreatedRevisionName,omitempty"`
5805
5806	// LatestReadyRevisionName: From
5807	// ConfigurationStatus.
5808	// LatestReadyRevisionName holds the name of the latest Revision stamped
5809	// out
5810	// from this Service's Configuration that has had its "Ready" condition
5811	// become
5812	// "True".
5813	LatestReadyRevisionName string `json:"latestReadyRevisionName,omitempty"`
5814
5815	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
5816	// Route that
5817	// was last processed by the controller.
5818	//
5819	// Clients polling for completed reconciliation should poll
5820	// until
5821	// observedGeneration = metadata.generation and the Ready condition's
5822	// status
5823	// is True or False.
5824	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
5825
5826	// Traffic: From RouteStatus.
5827	// Traffic holds the configured traffic distribution.
5828	// These entries will always contain RevisionName references.
5829	// When ConfigurationName appears in the spec, this will hold
5830	// the
5831	// LatestReadyRevisionName that we last observed.
5832	Traffic []*TrafficTarget `json:"traffic,omitempty"`
5833
5834	// Url: From RouteStatus.
5835	// URL holds the url that will distribute traffic over the provided
5836	// traffic
5837	// targets. It generally has the
5838	// form
5839	// https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.
5840	// app
5841	Url string `json:"url,omitempty"`
5842
5843	// ForceSendFields is a list of field names (e.g. "Address") to
5844	// unconditionally include in API requests. By default, fields with
5845	// empty values are omitted from API requests. However, any non-pointer,
5846	// non-interface field appearing in ForceSendFields will be sent to the
5847	// server regardless of whether the field is empty or not. This may be
5848	// used to include empty fields in Patch requests.
5849	ForceSendFields []string `json:"-"`
5850
5851	// NullFields is a list of field names (e.g. "Address") to include in
5852	// API requests with the JSON null value. By default, fields with empty
5853	// values are omitted from API requests. However, any field with an
5854	// empty value appearing in NullFields will be sent to the server as
5855	// null. It is an error if a field in this list has a non-empty value.
5856	// This may be used to include null fields in Patch requests.
5857	NullFields []string `json:"-"`
5858}
5859
5860func (s *ServiceStatus) MarshalJSON() ([]byte, error) {
5861	type NoMethod ServiceStatus
5862	raw := NoMethod(*s)
5863	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5864}
5865
5866// SetIamPolicyRequest: Request message for `SetIamPolicy` method.
5867type SetIamPolicyRequest struct {
5868	// Policy: REQUIRED: The complete policy to be applied to the
5869	// `resource`. The size of
5870	// the policy is limited to a few 10s of KB. An empty policy is a
5871	// valid policy but certain Cloud Platform services (such as
5872	// Projects)
5873	// might reject them.
5874	Policy *Policy `json:"policy,omitempty"`
5875
5876	// UpdateMask: OPTIONAL: A FieldMask specifying which fields of the
5877	// policy to modify. Only
5878	// the fields in the mask will be modified. If no mask is provided,
5879	// the
5880	// following default mask is used:
5881	// paths: "bindings, etag"
5882	// This field is only used by Cloud IAM.
5883	UpdateMask string `json:"updateMask,omitempty"`
5884
5885	// ForceSendFields is a list of field names (e.g. "Policy") to
5886	// unconditionally include in API requests. By default, fields with
5887	// empty values are omitted from API requests. However, any non-pointer,
5888	// non-interface field appearing in ForceSendFields will be sent to the
5889	// server regardless of whether the field is empty or not. This may be
5890	// used to include empty fields in Patch requests.
5891	ForceSendFields []string `json:"-"`
5892
5893	// NullFields is a list of field names (e.g. "Policy") to include in API
5894	// requests with the JSON null value. By default, fields with empty
5895	// values are omitted from API requests. However, any field with an
5896	// empty value appearing in NullFields will be sent to the server as
5897	// null. It is an error if a field in this list has a non-empty value.
5898	// This may be used to include null fields in Patch requests.
5899	NullFields []string `json:"-"`
5900}
5901
5902func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
5903	type NoMethod SetIamPolicyRequest
5904	raw := NoMethod(*s)
5905	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5906}
5907
5908// TCPSocketAction: TCPSocketAction describes an action based on opening
5909// a socket
5910type TCPSocketAction struct {
5911	// Host: Optional: Host name to connect to, defaults to the pod
5912	// IP.
5913	// +optional
5914	Host string `json:"host,omitempty"`
5915
5916	// Port: Number or name of the port to access on the container.
5917	// Number must be in the range 1 to 65535.
5918	// Name must be an IANA_SVC_NAME.
5919	Port *IntOrString `json:"port,omitempty"`
5920
5921	// ForceSendFields is a list of field names (e.g. "Host") to
5922	// unconditionally include in API requests. By default, fields with
5923	// empty values are omitted from API requests. However, any non-pointer,
5924	// non-interface field appearing in ForceSendFields will be sent to the
5925	// server regardless of whether the field is empty or not. This may be
5926	// used to include empty fields in Patch requests.
5927	ForceSendFields []string `json:"-"`
5928
5929	// NullFields is a list of field names (e.g. "Host") to include in API
5930	// requests with the JSON null value. By default, fields with empty
5931	// values are omitted from API requests. However, any field with an
5932	// empty value appearing in NullFields will be sent to the server as
5933	// null. It is an error if a field in this list has a non-empty value.
5934	// This may be used to include null fields in Patch requests.
5935	NullFields []string `json:"-"`
5936}
5937
5938func (s *TCPSocketAction) MarshalJSON() ([]byte, error) {
5939	type NoMethod TCPSocketAction
5940	raw := NoMethod(*s)
5941	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5942}
5943
5944// TestIamPermissionsRequest: Request message for `TestIamPermissions`
5945// method.
5946type TestIamPermissionsRequest struct {
5947	// Permissions: The set of permissions to check for the `resource`.
5948	// Permissions with
5949	// wildcards (such as '*' or 'storage.*') are not allowed. For
5950	// more
5951	// information see
5952	// [IAM
5953	// Overview](https://cloud.google.com/iam/docs/overview#permissions).
5954	Permissions []string `json:"permissions,omitempty"`
5955
5956	// ForceSendFields is a list of field names (e.g. "Permissions") to
5957	// unconditionally include in API requests. By default, fields with
5958	// empty values are omitted from API requests. However, any non-pointer,
5959	// non-interface field appearing in ForceSendFields will be sent to the
5960	// server regardless of whether the field is empty or not. This may be
5961	// used to include empty fields in Patch requests.
5962	ForceSendFields []string `json:"-"`
5963
5964	// NullFields is a list of field names (e.g. "Permissions") to include
5965	// in API requests with the JSON null value. By default, fields with
5966	// empty values are omitted from API requests. However, any field with
5967	// an empty value appearing in NullFields will be sent to the server as
5968	// null. It is an error if a field in this list has a non-empty value.
5969	// This may be used to include null fields in Patch requests.
5970	NullFields []string `json:"-"`
5971}
5972
5973func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
5974	type NoMethod TestIamPermissionsRequest
5975	raw := NoMethod(*s)
5976	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5977}
5978
5979// TestIamPermissionsResponse: Response message for `TestIamPermissions`
5980// method.
5981type TestIamPermissionsResponse struct {
5982	// Permissions: A subset of `TestPermissionsRequest.permissions` that
5983	// the caller is
5984	// allowed.
5985	Permissions []string `json:"permissions,omitempty"`
5986
5987	// ServerResponse contains the HTTP response code and headers from the
5988	// server.
5989	googleapi.ServerResponse `json:"-"`
5990
5991	// ForceSendFields is a list of field names (e.g. "Permissions") to
5992	// unconditionally include in API requests. By default, fields with
5993	// empty values are omitted from API requests. However, any non-pointer,
5994	// non-interface field appearing in ForceSendFields will be sent to the
5995	// server regardless of whether the field is empty or not. This may be
5996	// used to include empty fields in Patch requests.
5997	ForceSendFields []string `json:"-"`
5998
5999	// NullFields is a list of field names (e.g. "Permissions") to include
6000	// in API requests with the JSON null value. By default, fields with
6001	// empty values are omitted from API requests. However, any field with
6002	// an empty value appearing in NullFields will be sent to the server as
6003	// null. It is an error if a field in this list has a non-empty value.
6004	// This may be used to include null fields in Patch requests.
6005	NullFields []string `json:"-"`
6006}
6007
6008func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
6009	type NoMethod TestIamPermissionsResponse
6010	raw := NoMethod(*s)
6011	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6012}
6013
6014// TrafficTarget: TrafficTarget holds a single entry of the routing
6015// table for a Route.
6016type TrafficTarget struct {
6017	// ConfigurationName: ConfigurationName of a configuration to whose
6018	// latest revision we will
6019	// send this portion of traffic. When the
6020	// "status.latestReadyRevisionName"
6021	// of the referenced configuration changes, we will automatically
6022	// migrate
6023	// traffic from the prior "latest ready" revision to the new one. This
6024	// field
6025	// is never set in Route's status, only its spec. This is mutually
6026	// exclusive
6027	// with RevisionName.
6028	//
6029	// Cloud Run currently supports a single ConfigurationName.
6030	ConfigurationName string `json:"configurationName,omitempty"`
6031
6032	// LatestRevision: LatestRevision may be optionally provided to indicate
6033	// that the latest
6034	// ready Revision of the Configuration should be used for this
6035	// traffic
6036	// target. When provided LatestRevision must be true if RevisionName
6037	// is
6038	// empty; it must be false when RevisionName is non-empty.
6039	// +optional
6040	LatestRevision bool `json:"latestRevision,omitempty"`
6041
6042	// Name: Name is optionally used to expose a dedicated hostname for
6043	// referencing this
6044	// target exclusively.
6045	//
6046	// Not currently supported by Cloud Run.
6047	// +optional
6048	Name string `json:"name,omitempty"`
6049
6050	// Percent: Percent specifies percent of the traffic to this Revision or
6051	// Configuration.
6052	// This defaults to zero if unspecified.
6053	//
6054	// Cloud Run currently requires 100 percent for a single
6055	// ConfigurationName
6056	// TrafficTarget entry.
6057	Percent int64 `json:"percent,omitempty"`
6058
6059	// RevisionName: RevisionName of a specific revision to which to send
6060	// this portion of
6061	// traffic. This is mutually exclusive with
6062	// ConfigurationName.
6063	//
6064	// Providing RevisionName in spec is not currently supported by Cloud
6065	// Run.
6066	RevisionName string `json:"revisionName,omitempty"`
6067
6068	// Tag: Tag is optionally used to expose a dedicated url for
6069	// referencing
6070	// this target exclusively.
6071	//
6072	// Not currently supported in Cloud Run.
6073	// +optional
6074	Tag string `json:"tag,omitempty"`
6075
6076	// Url: Output only. URL displays the URL for accessing named traffic
6077	// targets. URL
6078	// is displayed in status, and is disallowed on spec. URL must contain
6079	// a
6080	// scheme (e.g. http://) and a hostname, but may not contain anything
6081	// else
6082	// (e.g. basic auth, url path, etc.
6083	//
6084	// Not currently supported in Cloud Run.
6085	Url string `json:"url,omitempty"`
6086
6087	// ForceSendFields is a list of field names (e.g. "ConfigurationName")
6088	// to unconditionally include in API requests. By default, fields with
6089	// empty values are omitted from API requests. However, any non-pointer,
6090	// non-interface field appearing in ForceSendFields will be sent to the
6091	// server regardless of whether the field is empty or not. This may be
6092	// used to include empty fields in Patch requests.
6093	ForceSendFields []string `json:"-"`
6094
6095	// NullFields is a list of field names (e.g. "ConfigurationName") to
6096	// include in API requests with the JSON null value. By default, fields
6097	// with empty values are omitted from API requests. However, any field
6098	// with an empty value appearing in NullFields will be sent to the
6099	// server as null. It is an error if a field in this list has a
6100	// non-empty value. This may be used to include null fields in Patch
6101	// requests.
6102	NullFields []string `json:"-"`
6103}
6104
6105func (s *TrafficTarget) MarshalJSON() ([]byte, error) {
6106	type NoMethod TrafficTarget
6107	raw := NoMethod(*s)
6108	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6109}
6110
6111type Trigger struct {
6112	// ApiVersion: The API version for this call such as
6113	// "eventing.knative.dev/v1alpha1".
6114	ApiVersion string `json:"apiVersion,omitempty"`
6115
6116	// Kind: The kind of resource, in this case "Trigger".
6117	Kind string `json:"kind,omitempty"`
6118
6119	// Metadata: Metadata associated with this Trigger.
6120	Metadata *ObjectMeta `json:"metadata,omitempty"`
6121
6122	// Spec: Spec defines the desired state of the Trigger.
6123	Spec *TriggerSpec `json:"spec,omitempty"`
6124
6125	// Status: Optional. Status represents the current state of the Trigger.
6126	// This data may be out of
6127	// date.
6128	Status *TriggerStatus `json:"status,omitempty"`
6129
6130	// ServerResponse contains the HTTP response code and headers from the
6131	// server.
6132	googleapi.ServerResponse `json:"-"`
6133
6134	// ForceSendFields is a list of field names (e.g. "ApiVersion") to
6135	// unconditionally include in API requests. By default, fields with
6136	// empty values are omitted from API requests. However, any non-pointer,
6137	// non-interface field appearing in ForceSendFields will be sent to the
6138	// server regardless of whether the field is empty or not. This may be
6139	// used to include empty fields in Patch requests.
6140	ForceSendFields []string `json:"-"`
6141
6142	// NullFields is a list of field names (e.g. "ApiVersion") to include in
6143	// API requests with the JSON null value. By default, fields with empty
6144	// values are omitted from API requests. However, any field with an
6145	// empty value appearing in NullFields will be sent to the server as
6146	// null. It is an error if a field in this list has a non-empty value.
6147	// This may be used to include null fields in Patch requests.
6148	NullFields []string `json:"-"`
6149}
6150
6151func (s *Trigger) MarshalJSON() ([]byte, error) {
6152	type NoMethod Trigger
6153	raw := NoMethod(*s)
6154	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6155}
6156
6157// TriggerCondition: TriggerCondition contains state information for an
6158// Trigger.
6159type TriggerCondition struct {
6160	// LastTransitionTime: Optional. Last time the condition transitioned
6161	// from one status to another.
6162	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
6163
6164	// Message: Optional. Human readable message indicating details about
6165	// the current status.
6166	Message string `json:"message,omitempty"`
6167
6168	// Reason: Optional. One-word CamelCase reason for the condition's
6169	// current status.
6170	Reason string `json:"reason,omitempty"`
6171
6172	// Severity: Optional. How to interpret failures of this condition, one
6173	// of Error, Warning, Info
6174	Severity string `json:"severity,omitempty"`
6175
6176	// Status: Status of the condition, one of True, False, Unknown.
6177	Status string `json:"status,omitempty"`
6178
6179	// Type: Type of Trigger condition.
6180	Type string `json:"type,omitempty"`
6181
6182	// ForceSendFields is a list of field names (e.g. "LastTransitionTime")
6183	// to unconditionally include in API requests. By default, fields with
6184	// empty values are omitted from API requests. However, any non-pointer,
6185	// non-interface field appearing in ForceSendFields will be sent to the
6186	// server regardless of whether the field is empty or not. This may be
6187	// used to include empty fields in Patch requests.
6188	ForceSendFields []string `json:"-"`
6189
6190	// NullFields is a list of field names (e.g. "LastTransitionTime") to
6191	// include in API requests with the JSON null value. By default, fields
6192	// with empty values are omitted from API requests. However, any field
6193	// with an empty value appearing in NullFields will be sent to the
6194	// server as null. It is an error if a field in this list has a
6195	// non-empty value. This may be used to include null fields in Patch
6196	// requests.
6197	NullFields []string `json:"-"`
6198}
6199
6200func (s *TriggerCondition) MarshalJSON() ([]byte, error) {
6201	type NoMethod TriggerCondition
6202	raw := NoMethod(*s)
6203	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6204}
6205
6206type TriggerFilter struct {
6207	// Attributes: Optional. Attributes filters events by exact match on
6208	// event context attributes.
6209	// Each key in the map is compared with the equivalent key in the
6210	// event
6211	// context. An event passes the filter if all values are equal to
6212	// the
6213	// specified values.
6214	//
6215	// Nested context attributes are not supported as keys.
6216	// Only string values are supported.
6217	// Note that this field is optional in knative. In fully managed,
6218	// 'type'
6219	// attribute is required due to different broker implementation.
6220	Attributes map[string]string `json:"attributes,omitempty"`
6221
6222	// ForceSendFields is a list of field names (e.g. "Attributes") to
6223	// unconditionally include in API requests. By default, fields with
6224	// empty values are omitted from API requests. However, any non-pointer,
6225	// non-interface field appearing in ForceSendFields will be sent to the
6226	// server regardless of whether the field is empty or not. This may be
6227	// used to include empty fields in Patch requests.
6228	ForceSendFields []string `json:"-"`
6229
6230	// NullFields is a list of field names (e.g. "Attributes") to include in
6231	// API requests with the JSON null value. By default, fields with empty
6232	// values are omitted from API requests. However, any field with an
6233	// empty value appearing in NullFields will be sent to the server as
6234	// null. It is an error if a field in this list has a non-empty value.
6235	// This may be used to include null fields in Patch requests.
6236	NullFields []string `json:"-"`
6237}
6238
6239func (s *TriggerFilter) MarshalJSON() ([]byte, error) {
6240	type NoMethod TriggerFilter
6241	raw := NoMethod(*s)
6242	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6243}
6244
6245// TriggerSpec: The desired state of the Trigger.
6246type TriggerSpec struct {
6247	// Broker: Broker is the broker that this trigger receives events from.
6248	// If not
6249	// specified, will default to 'default'.
6250	//
6251	// Not currently supported by Cloud Run.
6252	Broker string `json:"broker,omitempty"`
6253
6254	// Filter: Optional. Filter is the filter to apply against all events
6255	// from the Broker. Only
6256	// events that pass this filter will be sent to the Subscriber.
6257	// Note that filter is optional in knative and is only required in
6258	// fully
6259	// managed due to different broker implementation.
6260	Filter *TriggerFilter `json:"filter,omitempty"`
6261
6262	// Subscriber: Sink is the addressable that will receive events.
6263	Subscriber *Destination `json:"subscriber,omitempty"`
6264
6265	// ForceSendFields is a list of field names (e.g. "Broker") to
6266	// unconditionally include in API requests. By default, fields with
6267	// empty values are omitted from API requests. However, any non-pointer,
6268	// non-interface field appearing in ForceSendFields will be sent to the
6269	// server regardless of whether the field is empty or not. This may be
6270	// used to include empty fields in Patch requests.
6271	ForceSendFields []string `json:"-"`
6272
6273	// NullFields is a list of field names (e.g. "Broker") to include in API
6274	// requests with the JSON null value. By default, fields with empty
6275	// values are omitted from API requests. However, any field with an
6276	// empty value appearing in NullFields will be sent to the server as
6277	// null. It is an error if a field in this list has a non-empty value.
6278	// This may be used to include null fields in Patch requests.
6279	NullFields []string `json:"-"`
6280}
6281
6282func (s *TriggerSpec) MarshalJSON() ([]byte, error) {
6283	type NoMethod TriggerSpec
6284	raw := NoMethod(*s)
6285	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6286}
6287
6288// TriggerStatus: TriggerStatus represents the current state of a
6289// Trigger.
6290type TriggerStatus struct {
6291	// Conditions: Array of observed TriggerConditions, indicating the
6292	// current state
6293	// of the Trigger.
6294	Conditions []*TriggerCondition `json:"conditions,omitempty"`
6295
6296	// ObservedGeneration: ObservedGeneration is the 'Generation' of the
6297	// Trigger that
6298	// was last processed by the controller.
6299	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
6300
6301	// SubscriberUri: SubscriberURI is the resolved URI of the receiver for
6302	// this Trigger.
6303	SubscriberUri string `json:"subscriberUri,omitempty"`
6304
6305	// ForceSendFields is a list of field names (e.g. "Conditions") to
6306	// unconditionally include in API requests. By default, fields with
6307	// empty values are omitted from API requests. However, any non-pointer,
6308	// non-interface field appearing in ForceSendFields will be sent to the
6309	// server regardless of whether the field is empty or not. This may be
6310	// used to include empty fields in Patch requests.
6311	ForceSendFields []string `json:"-"`
6312
6313	// NullFields is a list of field names (e.g. "Conditions") to include in
6314	// API requests with the JSON null value. By default, fields with empty
6315	// values are omitted from API requests. However, any field with an
6316	// empty value appearing in NullFields will be sent to the server as
6317	// null. It is an error if a field in this list has a non-empty value.
6318	// This may be used to include null fields in Patch requests.
6319	NullFields []string `json:"-"`
6320}
6321
6322func (s *TriggerStatus) MarshalJSON() ([]byte, error) {
6323	type NoMethod TriggerStatus
6324	raw := NoMethod(*s)
6325	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6326}
6327
6328// Volume: Volume represents a named volume in a container.
6329type Volume struct {
6330	ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"`
6331
6332	// Name: Volume's name.
6333	Name string `json:"name,omitempty"`
6334
6335	Secret *SecretVolumeSource `json:"secret,omitempty"`
6336
6337	// ForceSendFields is a list of field names (e.g. "ConfigMap") to
6338	// unconditionally include in API requests. By default, fields with
6339	// empty values are omitted from API requests. However, any non-pointer,
6340	// non-interface field appearing in ForceSendFields will be sent to the
6341	// server regardless of whether the field is empty or not. This may be
6342	// used to include empty fields in Patch requests.
6343	ForceSendFields []string `json:"-"`
6344
6345	// NullFields is a list of field names (e.g. "ConfigMap") to include in
6346	// API requests with the JSON null value. By default, fields with empty
6347	// values are omitted from API requests. However, any field with an
6348	// empty value appearing in NullFields will be sent to the server as
6349	// null. It is an error if a field in this list has a non-empty value.
6350	// This may be used to include null fields in Patch requests.
6351	NullFields []string `json:"-"`
6352}
6353
6354func (s *Volume) MarshalJSON() ([]byte, error) {
6355	type NoMethod Volume
6356	raw := NoMethod(*s)
6357	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6358}
6359
6360// VolumeDevice: volumeDevice describes a mapping of a raw block device
6361// within a container.
6362type VolumeDevice struct {
6363	// DevicePath: devicePath is the path inside of the container that the
6364	// device will be
6365	// mapped to.
6366	DevicePath string `json:"devicePath,omitempty"`
6367
6368	// Name: name must match the name of a persistentVolumeClaim in the pod
6369	Name string `json:"name,omitempty"`
6370
6371	// ForceSendFields is a list of field names (e.g. "DevicePath") to
6372	// unconditionally include in API requests. By default, fields with
6373	// empty values are omitted from API requests. However, any non-pointer,
6374	// non-interface field appearing in ForceSendFields will be sent to the
6375	// server regardless of whether the field is empty or not. This may be
6376	// used to include empty fields in Patch requests.
6377	ForceSendFields []string `json:"-"`
6378
6379	// NullFields is a list of field names (e.g. "DevicePath") to include in
6380	// API requests with the JSON null value. By default, fields with empty
6381	// values are omitted from API requests. However, any field with an
6382	// empty value appearing in NullFields will be sent to the server as
6383	// null. It is an error if a field in this list has a non-empty value.
6384	// This may be used to include null fields in Patch requests.
6385	NullFields []string `json:"-"`
6386}
6387
6388func (s *VolumeDevice) MarshalJSON() ([]byte, error) {
6389	type NoMethod VolumeDevice
6390	raw := NoMethod(*s)
6391	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6392}
6393
6394// VolumeMount: VolumeMount describes a mounting of a Volume within a
6395// container.
6396type VolumeMount struct {
6397	// MountPath: Path within the container at which the volume should be
6398	// mounted.  Must
6399	// not contain ':'.
6400	MountPath string `json:"mountPath,omitempty"`
6401
6402	// MountPropagation: mountPropagation determines how mounts are
6403	// propagated from the host
6404	// to container and the other way around.
6405	// When not set, MountPropagationHostToContainer is used.
6406	// This field is beta in 1.10.
6407	// +optional
6408	MountPropagation string `json:"mountPropagation,omitempty"`
6409
6410	// Name: This must match the Name of a Volume.
6411	Name string `json:"name,omitempty"`
6412
6413	// ReadOnly: Mounted read-only if true, read-write otherwise (false or
6414	// unspecified).
6415	// Defaults to false.
6416	// +optional
6417	ReadOnly bool `json:"readOnly,omitempty"`
6418
6419	// SubPath: Path within the volume from which the container's volume
6420	// should be mounted.
6421	// Defaults to "" (volume's root).
6422	// +optional
6423	SubPath string `json:"subPath,omitempty"`
6424
6425	// ForceSendFields is a list of field names (e.g. "MountPath") to
6426	// unconditionally include in API requests. By default, fields with
6427	// empty values are omitted from API requests. However, any non-pointer,
6428	// non-interface field appearing in ForceSendFields will be sent to the
6429	// server regardless of whether the field is empty or not. This may be
6430	// used to include empty fields in Patch requests.
6431	ForceSendFields []string `json:"-"`
6432
6433	// NullFields is a list of field names (e.g. "MountPath") to include in
6434	// API requests with the JSON null value. By default, fields with empty
6435	// values are omitted from API requests. However, any field with an
6436	// empty value appearing in NullFields will be sent to the server as
6437	// null. It is an error if a field in this list has a non-empty value.
6438	// This may be used to include null fields in Patch requests.
6439	NullFields []string `json:"-"`
6440}
6441
6442func (s *VolumeMount) MarshalJSON() ([]byte, error) {
6443	type NoMethod VolumeMount
6444	raw := NoMethod(*s)
6445	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
6446}
6447
6448// method id "run.namespaces.authorizeddomains.list":
6449
6450type NamespacesAuthorizeddomainsListCall struct {
6451	s            *APIService
6452	parent       string
6453	urlParams_   gensupport.URLParams
6454	ifNoneMatch_ string
6455	ctx_         context.Context
6456	header_      http.Header
6457}
6458
6459// List: RPC to list authorized domains.
6460func (r *NamespacesAuthorizeddomainsService) List(parent string) *NamespacesAuthorizeddomainsListCall {
6461	c := &NamespacesAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6462	c.parent = parent
6463	return c
6464}
6465
6466// PageSize sets the optional parameter "pageSize": Maximum results to
6467// return per page.
6468func (c *NamespacesAuthorizeddomainsListCall) PageSize(pageSize int64) *NamespacesAuthorizeddomainsListCall {
6469	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6470	return c
6471}
6472
6473// PageToken sets the optional parameter "pageToken": Continuation token
6474// for fetching the next page of results.
6475func (c *NamespacesAuthorizeddomainsListCall) PageToken(pageToken string) *NamespacesAuthorizeddomainsListCall {
6476	c.urlParams_.Set("pageToken", pageToken)
6477	return c
6478}
6479
6480// Fields allows partial responses to be retrieved. See
6481// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6482// for more information.
6483func (c *NamespacesAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *NamespacesAuthorizeddomainsListCall {
6484	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6485	return c
6486}
6487
6488// IfNoneMatch sets the optional parameter which makes the operation
6489// fail if the object's ETag matches the given value. This is useful for
6490// getting updates only after the object has changed since the last
6491// request. Use googleapi.IsNotModified to check whether the response
6492// error from Do is the result of In-None-Match.
6493func (c *NamespacesAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *NamespacesAuthorizeddomainsListCall {
6494	c.ifNoneMatch_ = entityTag
6495	return c
6496}
6497
6498// Context sets the context to be used in this call's Do method. Any
6499// pending HTTP request will be aborted if the provided context is
6500// canceled.
6501func (c *NamespacesAuthorizeddomainsListCall) Context(ctx context.Context) *NamespacesAuthorizeddomainsListCall {
6502	c.ctx_ = ctx
6503	return c
6504}
6505
6506// Header returns an http.Header that can be modified by the caller to
6507// add HTTP headers to the request.
6508func (c *NamespacesAuthorizeddomainsListCall) Header() http.Header {
6509	if c.header_ == nil {
6510		c.header_ = make(http.Header)
6511	}
6512	return c.header_
6513}
6514
6515func (c *NamespacesAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
6516	reqHeaders := make(http.Header)
6517	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
6518	for k, v := range c.header_ {
6519		reqHeaders[k] = v
6520	}
6521	reqHeaders.Set("User-Agent", c.s.userAgent())
6522	if c.ifNoneMatch_ != "" {
6523		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6524	}
6525	var body io.Reader = nil
6526	c.urlParams_.Set("alt", alt)
6527	c.urlParams_.Set("prettyPrint", "false")
6528	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains")
6529	urls += "?" + c.urlParams_.Encode()
6530	req, err := http.NewRequest("GET", urls, body)
6531	if err != nil {
6532		return nil, err
6533	}
6534	req.Header = reqHeaders
6535	googleapi.Expand(req.URL, map[string]string{
6536		"parent": c.parent,
6537	})
6538	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6539}
6540
6541// Do executes the "run.namespaces.authorizeddomains.list" call.
6542// Exactly one of *ListAuthorizedDomainsResponse or error will be
6543// non-nil. Any non-2xx status code is an error. Response headers are in
6544// either *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a
6545// response was returned at all) in error.(*googleapi.Error).Header. Use
6546// googleapi.IsNotModified to check whether the returned error was
6547// because http.StatusNotModified was returned.
6548func (c *NamespacesAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
6549	gensupport.SetOptions(c.urlParams_, opts...)
6550	res, err := c.doRequest("json")
6551	if res != nil && res.StatusCode == http.StatusNotModified {
6552		if res.Body != nil {
6553			res.Body.Close()
6554		}
6555		return nil, &googleapi.Error{
6556			Code:   res.StatusCode,
6557			Header: res.Header,
6558		}
6559	}
6560	if err != nil {
6561		return nil, err
6562	}
6563	defer googleapi.CloseBody(res)
6564	if err := googleapi.CheckResponse(res); err != nil {
6565		return nil, err
6566	}
6567	ret := &ListAuthorizedDomainsResponse{
6568		ServerResponse: googleapi.ServerResponse{
6569			Header:         res.Header,
6570			HTTPStatusCode: res.StatusCode,
6571		},
6572	}
6573	target := &ret
6574	if err := gensupport.DecodeResponse(target, res); err != nil {
6575		return nil, err
6576	}
6577	return ret, nil
6578	// {
6579	//   "description": "RPC to list authorized domains.",
6580	//   "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/authorizeddomains",
6581	//   "httpMethod": "GET",
6582	//   "id": "run.namespaces.authorizeddomains.list",
6583	//   "parameterOrder": [
6584	//     "parent"
6585	//   ],
6586	//   "parameters": {
6587	//     "pageSize": {
6588	//       "description": "Maximum results to return per page.",
6589	//       "format": "int32",
6590	//       "location": "query",
6591	//       "type": "integer"
6592	//     },
6593	//     "pageToken": {
6594	//       "description": "Continuation token for fetching the next page of results.",
6595	//       "location": "query",
6596	//       "type": "string"
6597	//     },
6598	//     "parent": {
6599	//       "description": "Name of the parent Application resource. Example: `apps/myapp`.",
6600	//       "location": "path",
6601	//       "pattern": "^namespaces/[^/]+$",
6602	//       "required": true,
6603	//       "type": "string"
6604	//     }
6605	//   },
6606	//   "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains",
6607	//   "response": {
6608	//     "$ref": "ListAuthorizedDomainsResponse"
6609	//   },
6610	//   "scopes": [
6611	//     "https://www.googleapis.com/auth/cloud-platform"
6612	//   ]
6613	// }
6614
6615}
6616
6617// Pages invokes f for each page of results.
6618// A non-nil error returned from f will halt the iteration.
6619// The provided context supersedes any context provided to the Context method.
6620func (c *NamespacesAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
6621	c.ctx_ = ctx
6622	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
6623	for {
6624		x, err := c.Do()
6625		if err != nil {
6626			return err
6627		}
6628		if err := f(x); err != nil {
6629			return err
6630		}
6631		if x.NextPageToken == "" {
6632			return nil
6633		}
6634		c.PageToken(x.NextPageToken)
6635	}
6636}
6637
6638// method id "run.namespaces.cloudauditlogssources.create":
6639
6640type NamespacesCloudauditlogssourcesCreateCall struct {
6641	s                    *APIService
6642	parent               string
6643	cloudauditlogssource *CloudAuditLogsSource
6644	urlParams_           gensupport.URLParams
6645	ctx_                 context.Context
6646	header_              http.Header
6647}
6648
6649// Create: Creates a new cloudauditlogssource.
6650func (r *NamespacesCloudauditlogssourcesService) Create(parent string, cloudauditlogssource *CloudAuditLogsSource) *NamespacesCloudauditlogssourcesCreateCall {
6651	c := &NamespacesCloudauditlogssourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6652	c.parent = parent
6653	c.cloudauditlogssource = cloudauditlogssource
6654	return c
6655}
6656
6657// Fields allows partial responses to be retrieved. See
6658// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6659// for more information.
6660func (c *NamespacesCloudauditlogssourcesCreateCall) Fields(s ...googleapi.Field) *NamespacesCloudauditlogssourcesCreateCall {
6661	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6662	return c
6663}
6664
6665// Context sets the context to be used in this call's Do method. Any
6666// pending HTTP request will be aborted if the provided context is
6667// canceled.
6668func (c *NamespacesCloudauditlogssourcesCreateCall) Context(ctx context.Context) *NamespacesCloudauditlogssourcesCreateCall {
6669	c.ctx_ = ctx
6670	return c
6671}
6672
6673// Header returns an http.Header that can be modified by the caller to
6674// add HTTP headers to the request.
6675func (c *NamespacesCloudauditlogssourcesCreateCall) Header() http.Header {
6676	if c.header_ == nil {
6677		c.header_ = make(http.Header)
6678	}
6679	return c.header_
6680}
6681
6682func (c *NamespacesCloudauditlogssourcesCreateCall) doRequest(alt string) (*http.Response, error) {
6683	reqHeaders := make(http.Header)
6684	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
6685	for k, v := range c.header_ {
6686		reqHeaders[k] = v
6687	}
6688	reqHeaders.Set("User-Agent", c.s.userAgent())
6689	var body io.Reader = nil
6690	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudauditlogssource)
6691	if err != nil {
6692		return nil, err
6693	}
6694	reqHeaders.Set("Content-Type", "application/json")
6695	c.urlParams_.Set("alt", alt)
6696	c.urlParams_.Set("prettyPrint", "false")
6697	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources")
6698	urls += "?" + c.urlParams_.Encode()
6699	req, err := http.NewRequest("POST", urls, body)
6700	if err != nil {
6701		return nil, err
6702	}
6703	req.Header = reqHeaders
6704	googleapi.Expand(req.URL, map[string]string{
6705		"parent": c.parent,
6706	})
6707	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6708}
6709
6710// Do executes the "run.namespaces.cloudauditlogssources.create" call.
6711// Exactly one of *CloudAuditLogsSource or error will be non-nil. Any
6712// non-2xx status code is an error. Response headers are in either
6713// *CloudAuditLogsSource.ServerResponse.Header or (if a response was
6714// returned at all) in error.(*googleapi.Error).Header. Use
6715// googleapi.IsNotModified to check whether the returned error was
6716// because http.StatusNotModified was returned.
6717func (c *NamespacesCloudauditlogssourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudAuditLogsSource, error) {
6718	gensupport.SetOptions(c.urlParams_, opts...)
6719	res, err := c.doRequest("json")
6720	if res != nil && res.StatusCode == http.StatusNotModified {
6721		if res.Body != nil {
6722			res.Body.Close()
6723		}
6724		return nil, &googleapi.Error{
6725			Code:   res.StatusCode,
6726			Header: res.Header,
6727		}
6728	}
6729	if err != nil {
6730		return nil, err
6731	}
6732	defer googleapi.CloseBody(res)
6733	if err := googleapi.CheckResponse(res); err != nil {
6734		return nil, err
6735	}
6736	ret := &CloudAuditLogsSource{
6737		ServerResponse: googleapi.ServerResponse{
6738			Header:         res.Header,
6739			HTTPStatusCode: res.StatusCode,
6740		},
6741	}
6742	target := &ret
6743	if err := gensupport.DecodeResponse(target, res); err != nil {
6744		return nil, err
6745	}
6746	return ret, nil
6747	// {
6748	//   "description": "Creates a new cloudauditlogssource.",
6749	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudauditlogssources",
6750	//   "httpMethod": "POST",
6751	//   "id": "run.namespaces.cloudauditlogssources.create",
6752	//   "parameterOrder": [
6753	//     "parent"
6754	//   ],
6755	//   "parameters": {
6756	//     "parent": {
6757	//       "description": "The project ID or project number in which this cloudauditlogssource should\nbe created.",
6758	//       "location": "path",
6759	//       "pattern": "^namespaces/[^/]+$",
6760	//       "required": true,
6761	//       "type": "string"
6762	//     }
6763	//   },
6764	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources",
6765	//   "request": {
6766	//     "$ref": "CloudAuditLogsSource"
6767	//   },
6768	//   "response": {
6769	//     "$ref": "CloudAuditLogsSource"
6770	//   },
6771	//   "scopes": [
6772	//     "https://www.googleapis.com/auth/cloud-platform"
6773	//   ]
6774	// }
6775
6776}
6777
6778// method id "run.namespaces.cloudauditlogssources.delete":
6779
6780type NamespacesCloudauditlogssourcesDeleteCall struct {
6781	s          *APIService
6782	name       string
6783	urlParams_ gensupport.URLParams
6784	ctx_       context.Context
6785	header_    http.Header
6786}
6787
6788// Delete: Rpc to delete a cloudauditlogssource.
6789func (r *NamespacesCloudauditlogssourcesService) Delete(name string) *NamespacesCloudauditlogssourcesDeleteCall {
6790	c := &NamespacesCloudauditlogssourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6791	c.name = name
6792	return c
6793}
6794
6795// ApiVersion sets the optional parameter "apiVersion": Cloud Run
6796// currently ignores this parameter.
6797func (c *NamespacesCloudauditlogssourcesDeleteCall) ApiVersion(apiVersion string) *NamespacesCloudauditlogssourcesDeleteCall {
6798	c.urlParams_.Set("apiVersion", apiVersion)
6799	return c
6800}
6801
6802// Kind sets the optional parameter "kind": Cloud Run currently ignores
6803// this parameter.
6804func (c *NamespacesCloudauditlogssourcesDeleteCall) Kind(kind string) *NamespacesCloudauditlogssourcesDeleteCall {
6805	c.urlParams_.Set("kind", kind)
6806	return c
6807}
6808
6809// PropagationPolicy sets the optional parameter "propagationPolicy":
6810// Specifies the propagation policy of delete. Cloud Run currently
6811// ignores
6812// this setting, and deletes in the background. Please
6813// see
6814// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
6815// on/ for
6816// more information.
6817func (c *NamespacesCloudauditlogssourcesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesCloudauditlogssourcesDeleteCall {
6818	c.urlParams_.Set("propagationPolicy", propagationPolicy)
6819	return c
6820}
6821
6822// Fields allows partial responses to be retrieved. See
6823// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6824// for more information.
6825func (c *NamespacesCloudauditlogssourcesDeleteCall) Fields(s ...googleapi.Field) *NamespacesCloudauditlogssourcesDeleteCall {
6826	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6827	return c
6828}
6829
6830// Context sets the context to be used in this call's Do method. Any
6831// pending HTTP request will be aborted if the provided context is
6832// canceled.
6833func (c *NamespacesCloudauditlogssourcesDeleteCall) Context(ctx context.Context) *NamespacesCloudauditlogssourcesDeleteCall {
6834	c.ctx_ = ctx
6835	return c
6836}
6837
6838// Header returns an http.Header that can be modified by the caller to
6839// add HTTP headers to the request.
6840func (c *NamespacesCloudauditlogssourcesDeleteCall) Header() http.Header {
6841	if c.header_ == nil {
6842		c.header_ = make(http.Header)
6843	}
6844	return c.header_
6845}
6846
6847func (c *NamespacesCloudauditlogssourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
6848	reqHeaders := make(http.Header)
6849	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
6850	for k, v := range c.header_ {
6851		reqHeaders[k] = v
6852	}
6853	reqHeaders.Set("User-Agent", c.s.userAgent())
6854	var body io.Reader = nil
6855	c.urlParams_.Set("alt", alt)
6856	c.urlParams_.Set("prettyPrint", "false")
6857	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
6858	urls += "?" + c.urlParams_.Encode()
6859	req, err := http.NewRequest("DELETE", urls, body)
6860	if err != nil {
6861		return nil, err
6862	}
6863	req.Header = reqHeaders
6864	googleapi.Expand(req.URL, map[string]string{
6865		"name": c.name,
6866	})
6867	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6868}
6869
6870// Do executes the "run.namespaces.cloudauditlogssources.delete" call.
6871// Exactly one of *Empty or error will be non-nil. Any non-2xx status
6872// code is an error. Response headers are in either
6873// *Empty.ServerResponse.Header or (if a response was returned at all)
6874// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6875// check whether the returned error was because http.StatusNotModified
6876// was returned.
6877func (c *NamespacesCloudauditlogssourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6878	gensupport.SetOptions(c.urlParams_, opts...)
6879	res, err := c.doRequest("json")
6880	if res != nil && res.StatusCode == http.StatusNotModified {
6881		if res.Body != nil {
6882			res.Body.Close()
6883		}
6884		return nil, &googleapi.Error{
6885			Code:   res.StatusCode,
6886			Header: res.Header,
6887		}
6888	}
6889	if err != nil {
6890		return nil, err
6891	}
6892	defer googleapi.CloseBody(res)
6893	if err := googleapi.CheckResponse(res); err != nil {
6894		return nil, err
6895	}
6896	ret := &Empty{
6897		ServerResponse: googleapi.ServerResponse{
6898			Header:         res.Header,
6899			HTTPStatusCode: res.StatusCode,
6900		},
6901	}
6902	target := &ret
6903	if err := gensupport.DecodeResponse(target, res); err != nil {
6904		return nil, err
6905	}
6906	return ret, nil
6907	// {
6908	//   "description": "Rpc to delete a cloudauditlogssource.",
6909	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudauditlogssources/{cloudauditlogssourcesId}",
6910	//   "httpMethod": "DELETE",
6911	//   "id": "run.namespaces.cloudauditlogssources.delete",
6912	//   "parameterOrder": [
6913	//     "name"
6914	//   ],
6915	//   "parameters": {
6916	//     "apiVersion": {
6917	//       "description": "Cloud Run currently ignores this parameter.",
6918	//       "location": "query",
6919	//       "type": "string"
6920	//     },
6921	//     "kind": {
6922	//       "description": "Cloud Run currently ignores this parameter.",
6923	//       "location": "query",
6924	//       "type": "string"
6925	//     },
6926	//     "name": {
6927	//       "description": "The name of the cloudauditlogssource being deleted. If needed, replace\n{namespace_id} with the project ID.",
6928	//       "location": "path",
6929	//       "pattern": "^namespaces/[^/]+/cloudauditlogssources/[^/]+$",
6930	//       "required": true,
6931	//       "type": "string"
6932	//     },
6933	//     "propagationPolicy": {
6934	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
6935	//       "location": "query",
6936	//       "type": "string"
6937	//     }
6938	//   },
6939	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
6940	//   "response": {
6941	//     "$ref": "Empty"
6942	//   },
6943	//   "scopes": [
6944	//     "https://www.googleapis.com/auth/cloud-platform"
6945	//   ]
6946	// }
6947
6948}
6949
6950// method id "run.namespaces.cloudauditlogssources.get":
6951
6952type NamespacesCloudauditlogssourcesGetCall struct {
6953	s            *APIService
6954	name         string
6955	urlParams_   gensupport.URLParams
6956	ifNoneMatch_ string
6957	ctx_         context.Context
6958	header_      http.Header
6959}
6960
6961// Get: Rpc to get information about a cloudauditlogssource.
6962func (r *NamespacesCloudauditlogssourcesService) Get(name string) *NamespacesCloudauditlogssourcesGetCall {
6963	c := &NamespacesCloudauditlogssourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6964	c.name = name
6965	return c
6966}
6967
6968// Fields allows partial responses to be retrieved. See
6969// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6970// for more information.
6971func (c *NamespacesCloudauditlogssourcesGetCall) Fields(s ...googleapi.Field) *NamespacesCloudauditlogssourcesGetCall {
6972	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6973	return c
6974}
6975
6976// IfNoneMatch sets the optional parameter which makes the operation
6977// fail if the object's ETag matches the given value. This is useful for
6978// getting updates only after the object has changed since the last
6979// request. Use googleapi.IsNotModified to check whether the response
6980// error from Do is the result of In-None-Match.
6981func (c *NamespacesCloudauditlogssourcesGetCall) IfNoneMatch(entityTag string) *NamespacesCloudauditlogssourcesGetCall {
6982	c.ifNoneMatch_ = entityTag
6983	return c
6984}
6985
6986// Context sets the context to be used in this call's Do method. Any
6987// pending HTTP request will be aborted if the provided context is
6988// canceled.
6989func (c *NamespacesCloudauditlogssourcesGetCall) Context(ctx context.Context) *NamespacesCloudauditlogssourcesGetCall {
6990	c.ctx_ = ctx
6991	return c
6992}
6993
6994// Header returns an http.Header that can be modified by the caller to
6995// add HTTP headers to the request.
6996func (c *NamespacesCloudauditlogssourcesGetCall) Header() http.Header {
6997	if c.header_ == nil {
6998		c.header_ = make(http.Header)
6999	}
7000	return c.header_
7001}
7002
7003func (c *NamespacesCloudauditlogssourcesGetCall) doRequest(alt string) (*http.Response, error) {
7004	reqHeaders := make(http.Header)
7005	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7006	for k, v := range c.header_ {
7007		reqHeaders[k] = v
7008	}
7009	reqHeaders.Set("User-Agent", c.s.userAgent())
7010	if c.ifNoneMatch_ != "" {
7011		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7012	}
7013	var body io.Reader = nil
7014	c.urlParams_.Set("alt", alt)
7015	c.urlParams_.Set("prettyPrint", "false")
7016	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
7017	urls += "?" + c.urlParams_.Encode()
7018	req, err := http.NewRequest("GET", urls, body)
7019	if err != nil {
7020		return nil, err
7021	}
7022	req.Header = reqHeaders
7023	googleapi.Expand(req.URL, map[string]string{
7024		"name": c.name,
7025	})
7026	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7027}
7028
7029// Do executes the "run.namespaces.cloudauditlogssources.get" call.
7030// Exactly one of *CloudAuditLogsSource or error will be non-nil. Any
7031// non-2xx status code is an error. Response headers are in either
7032// *CloudAuditLogsSource.ServerResponse.Header or (if a response was
7033// returned at all) in error.(*googleapi.Error).Header. Use
7034// googleapi.IsNotModified to check whether the returned error was
7035// because http.StatusNotModified was returned.
7036func (c *NamespacesCloudauditlogssourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudAuditLogsSource, error) {
7037	gensupport.SetOptions(c.urlParams_, opts...)
7038	res, err := c.doRequest("json")
7039	if res != nil && res.StatusCode == http.StatusNotModified {
7040		if res.Body != nil {
7041			res.Body.Close()
7042		}
7043		return nil, &googleapi.Error{
7044			Code:   res.StatusCode,
7045			Header: res.Header,
7046		}
7047	}
7048	if err != nil {
7049		return nil, err
7050	}
7051	defer googleapi.CloseBody(res)
7052	if err := googleapi.CheckResponse(res); err != nil {
7053		return nil, err
7054	}
7055	ret := &CloudAuditLogsSource{
7056		ServerResponse: googleapi.ServerResponse{
7057			Header:         res.Header,
7058			HTTPStatusCode: res.StatusCode,
7059		},
7060	}
7061	target := &ret
7062	if err := gensupport.DecodeResponse(target, res); err != nil {
7063		return nil, err
7064	}
7065	return ret, nil
7066	// {
7067	//   "description": "Rpc to get information about a cloudauditlogssource.",
7068	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudauditlogssources/{cloudauditlogssourcesId}",
7069	//   "httpMethod": "GET",
7070	//   "id": "run.namespaces.cloudauditlogssources.get",
7071	//   "parameterOrder": [
7072	//     "name"
7073	//   ],
7074	//   "parameters": {
7075	//     "name": {
7076	//       "description": "The name of the cloudauditlogssource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
7077	//       "location": "path",
7078	//       "pattern": "^namespaces/[^/]+/cloudauditlogssources/[^/]+$",
7079	//       "required": true,
7080	//       "type": "string"
7081	//     }
7082	//   },
7083	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
7084	//   "response": {
7085	//     "$ref": "CloudAuditLogsSource"
7086	//   },
7087	//   "scopes": [
7088	//     "https://www.googleapis.com/auth/cloud-platform"
7089	//   ]
7090	// }
7091
7092}
7093
7094// method id "run.namespaces.cloudauditlogssources.list":
7095
7096type NamespacesCloudauditlogssourcesListCall struct {
7097	s            *APIService
7098	parent       string
7099	urlParams_   gensupport.URLParams
7100	ifNoneMatch_ string
7101	ctx_         context.Context
7102	header_      http.Header
7103}
7104
7105// List: Rpc to list cloudauditlogssources.
7106func (r *NamespacesCloudauditlogssourcesService) List(parent string) *NamespacesCloudauditlogssourcesListCall {
7107	c := &NamespacesCloudauditlogssourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7108	c.parent = parent
7109	return c
7110}
7111
7112// Continue sets the optional parameter "continue": Optional encoded
7113// string to continue paging.
7114func (c *NamespacesCloudauditlogssourcesListCall) Continue(continue_ string) *NamespacesCloudauditlogssourcesListCall {
7115	c.urlParams_.Set("continue", continue_)
7116	return c
7117}
7118
7119// FieldSelector sets the optional parameter "fieldSelector": Allows to
7120// filter resources based on a specific value for a field name.
7121// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
7122// Not currently used by Cloud Run.
7123func (c *NamespacesCloudauditlogssourcesListCall) FieldSelector(fieldSelector string) *NamespacesCloudauditlogssourcesListCall {
7124	c.urlParams_.Set("fieldSelector", fieldSelector)
7125	return c
7126}
7127
7128// IncludeUninitialized sets the optional parameter
7129// "includeUninitialized": Not currently used by Cloud Run.
7130func (c *NamespacesCloudauditlogssourcesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesCloudauditlogssourcesListCall {
7131	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
7132	return c
7133}
7134
7135// LabelSelector sets the optional parameter "labelSelector": Allows to
7136// filter resources based on a label. Supported operations are
7137// =, !=, exists, in, and notIn.
7138func (c *NamespacesCloudauditlogssourcesListCall) LabelSelector(labelSelector string) *NamespacesCloudauditlogssourcesListCall {
7139	c.urlParams_.Set("labelSelector", labelSelector)
7140	return c
7141}
7142
7143// Limit sets the optional parameter "limit": The maximum number of
7144// records that should be returned.
7145func (c *NamespacesCloudauditlogssourcesListCall) Limit(limit int64) *NamespacesCloudauditlogssourcesListCall {
7146	c.urlParams_.Set("limit", fmt.Sprint(limit))
7147	return c
7148}
7149
7150// ResourceVersion sets the optional parameter "resourceVersion": The
7151// baseline resource version from which the list or watch operation
7152// should
7153// start. Not currently used by Cloud Run.
7154func (c *NamespacesCloudauditlogssourcesListCall) ResourceVersion(resourceVersion string) *NamespacesCloudauditlogssourcesListCall {
7155	c.urlParams_.Set("resourceVersion", resourceVersion)
7156	return c
7157}
7158
7159// Watch sets the optional parameter "watch": Flag that indicates that
7160// the client expects to watch this resource as well.
7161// Not currently used by Cloud Run.
7162func (c *NamespacesCloudauditlogssourcesListCall) Watch(watch bool) *NamespacesCloudauditlogssourcesListCall {
7163	c.urlParams_.Set("watch", fmt.Sprint(watch))
7164	return c
7165}
7166
7167// Fields allows partial responses to be retrieved. See
7168// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7169// for more information.
7170func (c *NamespacesCloudauditlogssourcesListCall) Fields(s ...googleapi.Field) *NamespacesCloudauditlogssourcesListCall {
7171	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7172	return c
7173}
7174
7175// IfNoneMatch sets the optional parameter which makes the operation
7176// fail if the object's ETag matches the given value. This is useful for
7177// getting updates only after the object has changed since the last
7178// request. Use googleapi.IsNotModified to check whether the response
7179// error from Do is the result of In-None-Match.
7180func (c *NamespacesCloudauditlogssourcesListCall) IfNoneMatch(entityTag string) *NamespacesCloudauditlogssourcesListCall {
7181	c.ifNoneMatch_ = entityTag
7182	return c
7183}
7184
7185// Context sets the context to be used in this call's Do method. Any
7186// pending HTTP request will be aborted if the provided context is
7187// canceled.
7188func (c *NamespacesCloudauditlogssourcesListCall) Context(ctx context.Context) *NamespacesCloudauditlogssourcesListCall {
7189	c.ctx_ = ctx
7190	return c
7191}
7192
7193// Header returns an http.Header that can be modified by the caller to
7194// add HTTP headers to the request.
7195func (c *NamespacesCloudauditlogssourcesListCall) Header() http.Header {
7196	if c.header_ == nil {
7197		c.header_ = make(http.Header)
7198	}
7199	return c.header_
7200}
7201
7202func (c *NamespacesCloudauditlogssourcesListCall) doRequest(alt string) (*http.Response, error) {
7203	reqHeaders := make(http.Header)
7204	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7205	for k, v := range c.header_ {
7206		reqHeaders[k] = v
7207	}
7208	reqHeaders.Set("User-Agent", c.s.userAgent())
7209	if c.ifNoneMatch_ != "" {
7210		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7211	}
7212	var body io.Reader = nil
7213	c.urlParams_.Set("alt", alt)
7214	c.urlParams_.Set("prettyPrint", "false")
7215	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources")
7216	urls += "?" + c.urlParams_.Encode()
7217	req, err := http.NewRequest("GET", urls, body)
7218	if err != nil {
7219		return nil, err
7220	}
7221	req.Header = reqHeaders
7222	googleapi.Expand(req.URL, map[string]string{
7223		"parent": c.parent,
7224	})
7225	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7226}
7227
7228// Do executes the "run.namespaces.cloudauditlogssources.list" call.
7229// Exactly one of *ListCloudAuditLogsSourcesResponse or error will be
7230// non-nil. Any non-2xx status code is an error. Response headers are in
7231// either *ListCloudAuditLogsSourcesResponse.ServerResponse.Header or
7232// (if a response was returned at all) in
7233// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7234// whether the returned error was because http.StatusNotModified was
7235// returned.
7236func (c *NamespacesCloudauditlogssourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudAuditLogsSourcesResponse, error) {
7237	gensupport.SetOptions(c.urlParams_, opts...)
7238	res, err := c.doRequest("json")
7239	if res != nil && res.StatusCode == http.StatusNotModified {
7240		if res.Body != nil {
7241			res.Body.Close()
7242		}
7243		return nil, &googleapi.Error{
7244			Code:   res.StatusCode,
7245			Header: res.Header,
7246		}
7247	}
7248	if err != nil {
7249		return nil, err
7250	}
7251	defer googleapi.CloseBody(res)
7252	if err := googleapi.CheckResponse(res); err != nil {
7253		return nil, err
7254	}
7255	ret := &ListCloudAuditLogsSourcesResponse{
7256		ServerResponse: googleapi.ServerResponse{
7257			Header:         res.Header,
7258			HTTPStatusCode: res.StatusCode,
7259		},
7260	}
7261	target := &ret
7262	if err := gensupport.DecodeResponse(target, res); err != nil {
7263		return nil, err
7264	}
7265	return ret, nil
7266	// {
7267	//   "description": "Rpc to list cloudauditlogssources.",
7268	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudauditlogssources",
7269	//   "httpMethod": "GET",
7270	//   "id": "run.namespaces.cloudauditlogssources.list",
7271	//   "parameterOrder": [
7272	//     "parent"
7273	//   ],
7274	//   "parameters": {
7275	//     "continue": {
7276	//       "description": "Optional encoded string to continue paging.",
7277	//       "location": "query",
7278	//       "type": "string"
7279	//     },
7280	//     "fieldSelector": {
7281	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
7282	//       "location": "query",
7283	//       "type": "string"
7284	//     },
7285	//     "includeUninitialized": {
7286	//       "description": "Not currently used by Cloud Run.",
7287	//       "location": "query",
7288	//       "type": "boolean"
7289	//     },
7290	//     "labelSelector": {
7291	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
7292	//       "location": "query",
7293	//       "type": "string"
7294	//     },
7295	//     "limit": {
7296	//       "description": "The maximum number of records that should be returned.",
7297	//       "format": "int32",
7298	//       "location": "query",
7299	//       "type": "integer"
7300	//     },
7301	//     "parent": {
7302	//       "description": "The project ID or project number from which the cloudauditlogssources\nshould be listed.",
7303	//       "location": "path",
7304	//       "pattern": "^namespaces/[^/]+$",
7305	//       "required": true,
7306	//       "type": "string"
7307	//     },
7308	//     "resourceVersion": {
7309	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
7310	//       "location": "query",
7311	//       "type": "string"
7312	//     },
7313	//     "watch": {
7314	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
7315	//       "location": "query",
7316	//       "type": "boolean"
7317	//     }
7318	//   },
7319	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources",
7320	//   "response": {
7321	//     "$ref": "ListCloudAuditLogsSourcesResponse"
7322	//   },
7323	//   "scopes": [
7324	//     "https://www.googleapis.com/auth/cloud-platform"
7325	//   ]
7326	// }
7327
7328}
7329
7330// method id "run.namespaces.cloudpubsubsources.create":
7331
7332type NamespacesCloudpubsubsourcesCreateCall struct {
7333	s                 *APIService
7334	parent            string
7335	cloudpubsubsource *CloudPubSubSource
7336	urlParams_        gensupport.URLParams
7337	ctx_              context.Context
7338	header_           http.Header
7339}
7340
7341// Create: Creates a new cloudpubsubsource.
7342func (r *NamespacesCloudpubsubsourcesService) Create(parent string, cloudpubsubsource *CloudPubSubSource) *NamespacesCloudpubsubsourcesCreateCall {
7343	c := &NamespacesCloudpubsubsourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7344	c.parent = parent
7345	c.cloudpubsubsource = cloudpubsubsource
7346	return c
7347}
7348
7349// Fields allows partial responses to be retrieved. See
7350// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7351// for more information.
7352func (c *NamespacesCloudpubsubsourcesCreateCall) Fields(s ...googleapi.Field) *NamespacesCloudpubsubsourcesCreateCall {
7353	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7354	return c
7355}
7356
7357// Context sets the context to be used in this call's Do method. Any
7358// pending HTTP request will be aborted if the provided context is
7359// canceled.
7360func (c *NamespacesCloudpubsubsourcesCreateCall) Context(ctx context.Context) *NamespacesCloudpubsubsourcesCreateCall {
7361	c.ctx_ = ctx
7362	return c
7363}
7364
7365// Header returns an http.Header that can be modified by the caller to
7366// add HTTP headers to the request.
7367func (c *NamespacesCloudpubsubsourcesCreateCall) Header() http.Header {
7368	if c.header_ == nil {
7369		c.header_ = make(http.Header)
7370	}
7371	return c.header_
7372}
7373
7374func (c *NamespacesCloudpubsubsourcesCreateCall) doRequest(alt string) (*http.Response, error) {
7375	reqHeaders := make(http.Header)
7376	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7377	for k, v := range c.header_ {
7378		reqHeaders[k] = v
7379	}
7380	reqHeaders.Set("User-Agent", c.s.userAgent())
7381	var body io.Reader = nil
7382	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudpubsubsource)
7383	if err != nil {
7384		return nil, err
7385	}
7386	reqHeaders.Set("Content-Type", "application/json")
7387	c.urlParams_.Set("alt", alt)
7388	c.urlParams_.Set("prettyPrint", "false")
7389	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources")
7390	urls += "?" + c.urlParams_.Encode()
7391	req, err := http.NewRequest("POST", urls, body)
7392	if err != nil {
7393		return nil, err
7394	}
7395	req.Header = reqHeaders
7396	googleapi.Expand(req.URL, map[string]string{
7397		"parent": c.parent,
7398	})
7399	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7400}
7401
7402// Do executes the "run.namespaces.cloudpubsubsources.create" call.
7403// Exactly one of *CloudPubSubSource or error will be non-nil. Any
7404// non-2xx status code is an error. Response headers are in either
7405// *CloudPubSubSource.ServerResponse.Header or (if a response was
7406// returned at all) in error.(*googleapi.Error).Header. Use
7407// googleapi.IsNotModified to check whether the returned error was
7408// because http.StatusNotModified was returned.
7409func (c *NamespacesCloudpubsubsourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudPubSubSource, error) {
7410	gensupport.SetOptions(c.urlParams_, opts...)
7411	res, err := c.doRequest("json")
7412	if res != nil && res.StatusCode == http.StatusNotModified {
7413		if res.Body != nil {
7414			res.Body.Close()
7415		}
7416		return nil, &googleapi.Error{
7417			Code:   res.StatusCode,
7418			Header: res.Header,
7419		}
7420	}
7421	if err != nil {
7422		return nil, err
7423	}
7424	defer googleapi.CloseBody(res)
7425	if err := googleapi.CheckResponse(res); err != nil {
7426		return nil, err
7427	}
7428	ret := &CloudPubSubSource{
7429		ServerResponse: googleapi.ServerResponse{
7430			Header:         res.Header,
7431			HTTPStatusCode: res.StatusCode,
7432		},
7433	}
7434	target := &ret
7435	if err := gensupport.DecodeResponse(target, res); err != nil {
7436		return nil, err
7437	}
7438	return ret, nil
7439	// {
7440	//   "description": "Creates a new cloudpubsubsource.",
7441	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudpubsubsources",
7442	//   "httpMethod": "POST",
7443	//   "id": "run.namespaces.cloudpubsubsources.create",
7444	//   "parameterOrder": [
7445	//     "parent"
7446	//   ],
7447	//   "parameters": {
7448	//     "parent": {
7449	//       "description": "The project ID or project number in which this cloudpubsubsource should\nbe created.",
7450	//       "location": "path",
7451	//       "pattern": "^namespaces/[^/]+$",
7452	//       "required": true,
7453	//       "type": "string"
7454	//     }
7455	//   },
7456	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources",
7457	//   "request": {
7458	//     "$ref": "CloudPubSubSource"
7459	//   },
7460	//   "response": {
7461	//     "$ref": "CloudPubSubSource"
7462	//   },
7463	//   "scopes": [
7464	//     "https://www.googleapis.com/auth/cloud-platform"
7465	//   ]
7466	// }
7467
7468}
7469
7470// method id "run.namespaces.cloudpubsubsources.delete":
7471
7472type NamespacesCloudpubsubsourcesDeleteCall struct {
7473	s          *APIService
7474	name       string
7475	urlParams_ gensupport.URLParams
7476	ctx_       context.Context
7477	header_    http.Header
7478}
7479
7480// Delete: Rpc to delete a cloudpubsubsource.
7481func (r *NamespacesCloudpubsubsourcesService) Delete(name string) *NamespacesCloudpubsubsourcesDeleteCall {
7482	c := &NamespacesCloudpubsubsourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7483	c.name = name
7484	return c
7485}
7486
7487// ApiVersion sets the optional parameter "apiVersion": Cloud Run
7488// currently ignores this parameter.
7489func (c *NamespacesCloudpubsubsourcesDeleteCall) ApiVersion(apiVersion string) *NamespacesCloudpubsubsourcesDeleteCall {
7490	c.urlParams_.Set("apiVersion", apiVersion)
7491	return c
7492}
7493
7494// Kind sets the optional parameter "kind": Cloud Run currently ignores
7495// this parameter.
7496func (c *NamespacesCloudpubsubsourcesDeleteCall) Kind(kind string) *NamespacesCloudpubsubsourcesDeleteCall {
7497	c.urlParams_.Set("kind", kind)
7498	return c
7499}
7500
7501// PropagationPolicy sets the optional parameter "propagationPolicy":
7502// Specifies the propagation policy of delete. Cloud Run currently
7503// ignores
7504// this setting, and deletes in the background. Please
7505// see
7506// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
7507// on/ for
7508// more information.
7509func (c *NamespacesCloudpubsubsourcesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesCloudpubsubsourcesDeleteCall {
7510	c.urlParams_.Set("propagationPolicy", propagationPolicy)
7511	return c
7512}
7513
7514// Fields allows partial responses to be retrieved. See
7515// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7516// for more information.
7517func (c *NamespacesCloudpubsubsourcesDeleteCall) Fields(s ...googleapi.Field) *NamespacesCloudpubsubsourcesDeleteCall {
7518	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7519	return c
7520}
7521
7522// Context sets the context to be used in this call's Do method. Any
7523// pending HTTP request will be aborted if the provided context is
7524// canceled.
7525func (c *NamespacesCloudpubsubsourcesDeleteCall) Context(ctx context.Context) *NamespacesCloudpubsubsourcesDeleteCall {
7526	c.ctx_ = ctx
7527	return c
7528}
7529
7530// Header returns an http.Header that can be modified by the caller to
7531// add HTTP headers to the request.
7532func (c *NamespacesCloudpubsubsourcesDeleteCall) Header() http.Header {
7533	if c.header_ == nil {
7534		c.header_ = make(http.Header)
7535	}
7536	return c.header_
7537}
7538
7539func (c *NamespacesCloudpubsubsourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
7540	reqHeaders := make(http.Header)
7541	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7542	for k, v := range c.header_ {
7543		reqHeaders[k] = v
7544	}
7545	reqHeaders.Set("User-Agent", c.s.userAgent())
7546	var body io.Reader = nil
7547	c.urlParams_.Set("alt", alt)
7548	c.urlParams_.Set("prettyPrint", "false")
7549	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
7550	urls += "?" + c.urlParams_.Encode()
7551	req, err := http.NewRequest("DELETE", urls, body)
7552	if err != nil {
7553		return nil, err
7554	}
7555	req.Header = reqHeaders
7556	googleapi.Expand(req.URL, map[string]string{
7557		"name": c.name,
7558	})
7559	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7560}
7561
7562// Do executes the "run.namespaces.cloudpubsubsources.delete" call.
7563// Exactly one of *Empty or error will be non-nil. Any non-2xx status
7564// code is an error. Response headers are in either
7565// *Empty.ServerResponse.Header or (if a response was returned at all)
7566// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7567// check whether the returned error was because http.StatusNotModified
7568// was returned.
7569func (c *NamespacesCloudpubsubsourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
7570	gensupport.SetOptions(c.urlParams_, opts...)
7571	res, err := c.doRequest("json")
7572	if res != nil && res.StatusCode == http.StatusNotModified {
7573		if res.Body != nil {
7574			res.Body.Close()
7575		}
7576		return nil, &googleapi.Error{
7577			Code:   res.StatusCode,
7578			Header: res.Header,
7579		}
7580	}
7581	if err != nil {
7582		return nil, err
7583	}
7584	defer googleapi.CloseBody(res)
7585	if err := googleapi.CheckResponse(res); err != nil {
7586		return nil, err
7587	}
7588	ret := &Empty{
7589		ServerResponse: googleapi.ServerResponse{
7590			Header:         res.Header,
7591			HTTPStatusCode: res.StatusCode,
7592		},
7593	}
7594	target := &ret
7595	if err := gensupport.DecodeResponse(target, res); err != nil {
7596		return nil, err
7597	}
7598	return ret, nil
7599	// {
7600	//   "description": "Rpc to delete a cloudpubsubsource.",
7601	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudpubsubsources/{cloudpubsubsourcesId}",
7602	//   "httpMethod": "DELETE",
7603	//   "id": "run.namespaces.cloudpubsubsources.delete",
7604	//   "parameterOrder": [
7605	//     "name"
7606	//   ],
7607	//   "parameters": {
7608	//     "apiVersion": {
7609	//       "description": "Cloud Run currently ignores this parameter.",
7610	//       "location": "query",
7611	//       "type": "string"
7612	//     },
7613	//     "kind": {
7614	//       "description": "Cloud Run currently ignores this parameter.",
7615	//       "location": "query",
7616	//       "type": "string"
7617	//     },
7618	//     "name": {
7619	//       "description": "The name of the cloudpubsubsource being deleted. If needed, replace\n{namespace_id} with the project ID.",
7620	//       "location": "path",
7621	//       "pattern": "^namespaces/[^/]+/cloudpubsubsources/[^/]+$",
7622	//       "required": true,
7623	//       "type": "string"
7624	//     },
7625	//     "propagationPolicy": {
7626	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
7627	//       "location": "query",
7628	//       "type": "string"
7629	//     }
7630	//   },
7631	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
7632	//   "response": {
7633	//     "$ref": "Empty"
7634	//   },
7635	//   "scopes": [
7636	//     "https://www.googleapis.com/auth/cloud-platform"
7637	//   ]
7638	// }
7639
7640}
7641
7642// method id "run.namespaces.cloudpubsubsources.get":
7643
7644type NamespacesCloudpubsubsourcesGetCall struct {
7645	s            *APIService
7646	name         string
7647	urlParams_   gensupport.URLParams
7648	ifNoneMatch_ string
7649	ctx_         context.Context
7650	header_      http.Header
7651}
7652
7653// Get: Rpc to get information about a cloudpubsubsource.
7654func (r *NamespacesCloudpubsubsourcesService) Get(name string) *NamespacesCloudpubsubsourcesGetCall {
7655	c := &NamespacesCloudpubsubsourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7656	c.name = name
7657	return c
7658}
7659
7660// Fields allows partial responses to be retrieved. See
7661// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7662// for more information.
7663func (c *NamespacesCloudpubsubsourcesGetCall) Fields(s ...googleapi.Field) *NamespacesCloudpubsubsourcesGetCall {
7664	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7665	return c
7666}
7667
7668// IfNoneMatch sets the optional parameter which makes the operation
7669// fail if the object's ETag matches the given value. This is useful for
7670// getting updates only after the object has changed since the last
7671// request. Use googleapi.IsNotModified to check whether the response
7672// error from Do is the result of In-None-Match.
7673func (c *NamespacesCloudpubsubsourcesGetCall) IfNoneMatch(entityTag string) *NamespacesCloudpubsubsourcesGetCall {
7674	c.ifNoneMatch_ = entityTag
7675	return c
7676}
7677
7678// Context sets the context to be used in this call's Do method. Any
7679// pending HTTP request will be aborted if the provided context is
7680// canceled.
7681func (c *NamespacesCloudpubsubsourcesGetCall) Context(ctx context.Context) *NamespacesCloudpubsubsourcesGetCall {
7682	c.ctx_ = ctx
7683	return c
7684}
7685
7686// Header returns an http.Header that can be modified by the caller to
7687// add HTTP headers to the request.
7688func (c *NamespacesCloudpubsubsourcesGetCall) Header() http.Header {
7689	if c.header_ == nil {
7690		c.header_ = make(http.Header)
7691	}
7692	return c.header_
7693}
7694
7695func (c *NamespacesCloudpubsubsourcesGetCall) doRequest(alt string) (*http.Response, error) {
7696	reqHeaders := make(http.Header)
7697	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7698	for k, v := range c.header_ {
7699		reqHeaders[k] = v
7700	}
7701	reqHeaders.Set("User-Agent", c.s.userAgent())
7702	if c.ifNoneMatch_ != "" {
7703		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7704	}
7705	var body io.Reader = nil
7706	c.urlParams_.Set("alt", alt)
7707	c.urlParams_.Set("prettyPrint", "false")
7708	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
7709	urls += "?" + c.urlParams_.Encode()
7710	req, err := http.NewRequest("GET", urls, body)
7711	if err != nil {
7712		return nil, err
7713	}
7714	req.Header = reqHeaders
7715	googleapi.Expand(req.URL, map[string]string{
7716		"name": c.name,
7717	})
7718	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7719}
7720
7721// Do executes the "run.namespaces.cloudpubsubsources.get" call.
7722// Exactly one of *CloudPubSubSource or error will be non-nil. Any
7723// non-2xx status code is an error. Response headers are in either
7724// *CloudPubSubSource.ServerResponse.Header or (if a response was
7725// returned at all) in error.(*googleapi.Error).Header. Use
7726// googleapi.IsNotModified to check whether the returned error was
7727// because http.StatusNotModified was returned.
7728func (c *NamespacesCloudpubsubsourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudPubSubSource, error) {
7729	gensupport.SetOptions(c.urlParams_, opts...)
7730	res, err := c.doRequest("json")
7731	if res != nil && res.StatusCode == http.StatusNotModified {
7732		if res.Body != nil {
7733			res.Body.Close()
7734		}
7735		return nil, &googleapi.Error{
7736			Code:   res.StatusCode,
7737			Header: res.Header,
7738		}
7739	}
7740	if err != nil {
7741		return nil, err
7742	}
7743	defer googleapi.CloseBody(res)
7744	if err := googleapi.CheckResponse(res); err != nil {
7745		return nil, err
7746	}
7747	ret := &CloudPubSubSource{
7748		ServerResponse: googleapi.ServerResponse{
7749			Header:         res.Header,
7750			HTTPStatusCode: res.StatusCode,
7751		},
7752	}
7753	target := &ret
7754	if err := gensupport.DecodeResponse(target, res); err != nil {
7755		return nil, err
7756	}
7757	return ret, nil
7758	// {
7759	//   "description": "Rpc to get information about a cloudpubsubsource.",
7760	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudpubsubsources/{cloudpubsubsourcesId}",
7761	//   "httpMethod": "GET",
7762	//   "id": "run.namespaces.cloudpubsubsources.get",
7763	//   "parameterOrder": [
7764	//     "name"
7765	//   ],
7766	//   "parameters": {
7767	//     "name": {
7768	//       "description": "The name of the cloudpubsubsource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
7769	//       "location": "path",
7770	//       "pattern": "^namespaces/[^/]+/cloudpubsubsources/[^/]+$",
7771	//       "required": true,
7772	//       "type": "string"
7773	//     }
7774	//   },
7775	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
7776	//   "response": {
7777	//     "$ref": "CloudPubSubSource"
7778	//   },
7779	//   "scopes": [
7780	//     "https://www.googleapis.com/auth/cloud-platform"
7781	//   ]
7782	// }
7783
7784}
7785
7786// method id "run.namespaces.cloudpubsubsources.list":
7787
7788type NamespacesCloudpubsubsourcesListCall struct {
7789	s            *APIService
7790	parent       string
7791	urlParams_   gensupport.URLParams
7792	ifNoneMatch_ string
7793	ctx_         context.Context
7794	header_      http.Header
7795}
7796
7797// List: Rpc to list cloudpubsubsources.
7798func (r *NamespacesCloudpubsubsourcesService) List(parent string) *NamespacesCloudpubsubsourcesListCall {
7799	c := &NamespacesCloudpubsubsourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7800	c.parent = parent
7801	return c
7802}
7803
7804// Continue sets the optional parameter "continue": Optional encoded
7805// string to continue paging.
7806func (c *NamespacesCloudpubsubsourcesListCall) Continue(continue_ string) *NamespacesCloudpubsubsourcesListCall {
7807	c.urlParams_.Set("continue", continue_)
7808	return c
7809}
7810
7811// FieldSelector sets the optional parameter "fieldSelector": Allows to
7812// filter resources based on a specific value for a field name.
7813// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
7814// Not currently used by Cloud Run.
7815func (c *NamespacesCloudpubsubsourcesListCall) FieldSelector(fieldSelector string) *NamespacesCloudpubsubsourcesListCall {
7816	c.urlParams_.Set("fieldSelector", fieldSelector)
7817	return c
7818}
7819
7820// IncludeUninitialized sets the optional parameter
7821// "includeUninitialized": Not currently used by Cloud Run.
7822func (c *NamespacesCloudpubsubsourcesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesCloudpubsubsourcesListCall {
7823	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
7824	return c
7825}
7826
7827// LabelSelector sets the optional parameter "labelSelector": Allows to
7828// filter resources based on a label. Supported operations are
7829// =, !=, exists, in, and notIn.
7830func (c *NamespacesCloudpubsubsourcesListCall) LabelSelector(labelSelector string) *NamespacesCloudpubsubsourcesListCall {
7831	c.urlParams_.Set("labelSelector", labelSelector)
7832	return c
7833}
7834
7835// Limit sets the optional parameter "limit": The maximum number of
7836// records that should be returned.
7837func (c *NamespacesCloudpubsubsourcesListCall) Limit(limit int64) *NamespacesCloudpubsubsourcesListCall {
7838	c.urlParams_.Set("limit", fmt.Sprint(limit))
7839	return c
7840}
7841
7842// ResourceVersion sets the optional parameter "resourceVersion": The
7843// baseline resource version from which the list or watch operation
7844// should
7845// start. Not currently used by Cloud Run.
7846func (c *NamespacesCloudpubsubsourcesListCall) ResourceVersion(resourceVersion string) *NamespacesCloudpubsubsourcesListCall {
7847	c.urlParams_.Set("resourceVersion", resourceVersion)
7848	return c
7849}
7850
7851// Watch sets the optional parameter "watch": Flag that indicates that
7852// the client expects to watch this resource as well.
7853// Not currently used by Cloud Run.
7854func (c *NamespacesCloudpubsubsourcesListCall) Watch(watch bool) *NamespacesCloudpubsubsourcesListCall {
7855	c.urlParams_.Set("watch", fmt.Sprint(watch))
7856	return c
7857}
7858
7859// Fields allows partial responses to be retrieved. See
7860// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7861// for more information.
7862func (c *NamespacesCloudpubsubsourcesListCall) Fields(s ...googleapi.Field) *NamespacesCloudpubsubsourcesListCall {
7863	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7864	return c
7865}
7866
7867// IfNoneMatch sets the optional parameter which makes the operation
7868// fail if the object's ETag matches the given value. This is useful for
7869// getting updates only after the object has changed since the last
7870// request. Use googleapi.IsNotModified to check whether the response
7871// error from Do is the result of In-None-Match.
7872func (c *NamespacesCloudpubsubsourcesListCall) IfNoneMatch(entityTag string) *NamespacesCloudpubsubsourcesListCall {
7873	c.ifNoneMatch_ = entityTag
7874	return c
7875}
7876
7877// Context sets the context to be used in this call's Do method. Any
7878// pending HTTP request will be aborted if the provided context is
7879// canceled.
7880func (c *NamespacesCloudpubsubsourcesListCall) Context(ctx context.Context) *NamespacesCloudpubsubsourcesListCall {
7881	c.ctx_ = ctx
7882	return c
7883}
7884
7885// Header returns an http.Header that can be modified by the caller to
7886// add HTTP headers to the request.
7887func (c *NamespacesCloudpubsubsourcesListCall) Header() http.Header {
7888	if c.header_ == nil {
7889		c.header_ = make(http.Header)
7890	}
7891	return c.header_
7892}
7893
7894func (c *NamespacesCloudpubsubsourcesListCall) doRequest(alt string) (*http.Response, error) {
7895	reqHeaders := make(http.Header)
7896	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
7897	for k, v := range c.header_ {
7898		reqHeaders[k] = v
7899	}
7900	reqHeaders.Set("User-Agent", c.s.userAgent())
7901	if c.ifNoneMatch_ != "" {
7902		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7903	}
7904	var body io.Reader = nil
7905	c.urlParams_.Set("alt", alt)
7906	c.urlParams_.Set("prettyPrint", "false")
7907	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources")
7908	urls += "?" + c.urlParams_.Encode()
7909	req, err := http.NewRequest("GET", urls, body)
7910	if err != nil {
7911		return nil, err
7912	}
7913	req.Header = reqHeaders
7914	googleapi.Expand(req.URL, map[string]string{
7915		"parent": c.parent,
7916	})
7917	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7918}
7919
7920// Do executes the "run.namespaces.cloudpubsubsources.list" call.
7921// Exactly one of *ListCloudPubSubSourcesResponse or error will be
7922// non-nil. Any non-2xx status code is an error. Response headers are in
7923// either *ListCloudPubSubSourcesResponse.ServerResponse.Header or (if a
7924// response was returned at all) in error.(*googleapi.Error).Header. Use
7925// googleapi.IsNotModified to check whether the returned error was
7926// because http.StatusNotModified was returned.
7927func (c *NamespacesCloudpubsubsourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudPubSubSourcesResponse, error) {
7928	gensupport.SetOptions(c.urlParams_, opts...)
7929	res, err := c.doRequest("json")
7930	if res != nil && res.StatusCode == http.StatusNotModified {
7931		if res.Body != nil {
7932			res.Body.Close()
7933		}
7934		return nil, &googleapi.Error{
7935			Code:   res.StatusCode,
7936			Header: res.Header,
7937		}
7938	}
7939	if err != nil {
7940		return nil, err
7941	}
7942	defer googleapi.CloseBody(res)
7943	if err := googleapi.CheckResponse(res); err != nil {
7944		return nil, err
7945	}
7946	ret := &ListCloudPubSubSourcesResponse{
7947		ServerResponse: googleapi.ServerResponse{
7948			Header:         res.Header,
7949			HTTPStatusCode: res.StatusCode,
7950		},
7951	}
7952	target := &ret
7953	if err := gensupport.DecodeResponse(target, res); err != nil {
7954		return nil, err
7955	}
7956	return ret, nil
7957	// {
7958	//   "description": "Rpc to list cloudpubsubsources.",
7959	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudpubsubsources",
7960	//   "httpMethod": "GET",
7961	//   "id": "run.namespaces.cloudpubsubsources.list",
7962	//   "parameterOrder": [
7963	//     "parent"
7964	//   ],
7965	//   "parameters": {
7966	//     "continue": {
7967	//       "description": "Optional encoded string to continue paging.",
7968	//       "location": "query",
7969	//       "type": "string"
7970	//     },
7971	//     "fieldSelector": {
7972	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
7973	//       "location": "query",
7974	//       "type": "string"
7975	//     },
7976	//     "includeUninitialized": {
7977	//       "description": "Not currently used by Cloud Run.",
7978	//       "location": "query",
7979	//       "type": "boolean"
7980	//     },
7981	//     "labelSelector": {
7982	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
7983	//       "location": "query",
7984	//       "type": "string"
7985	//     },
7986	//     "limit": {
7987	//       "description": "The maximum number of records that should be returned.",
7988	//       "format": "int32",
7989	//       "location": "query",
7990	//       "type": "integer"
7991	//     },
7992	//     "parent": {
7993	//       "description": "The project ID or project number from which the cloudpubsubsources should\nbe listed.",
7994	//       "location": "path",
7995	//       "pattern": "^namespaces/[^/]+$",
7996	//       "required": true,
7997	//       "type": "string"
7998	//     },
7999	//     "resourceVersion": {
8000	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
8001	//       "location": "query",
8002	//       "type": "string"
8003	//     },
8004	//     "watch": {
8005	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
8006	//       "location": "query",
8007	//       "type": "boolean"
8008	//     }
8009	//   },
8010	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources",
8011	//   "response": {
8012	//     "$ref": "ListCloudPubSubSourcesResponse"
8013	//   },
8014	//   "scopes": [
8015	//     "https://www.googleapis.com/auth/cloud-platform"
8016	//   ]
8017	// }
8018
8019}
8020
8021// method id "run.namespaces.cloudschedulersources.create":
8022
8023type NamespacesCloudschedulersourcesCreateCall struct {
8024	s                    *APIService
8025	parent               string
8026	cloudschedulersource *CloudSchedulerSource
8027	urlParams_           gensupport.URLParams
8028	ctx_                 context.Context
8029	header_              http.Header
8030}
8031
8032// Create: Creates a new cloudschedulersource.
8033func (r *NamespacesCloudschedulersourcesService) Create(parent string, cloudschedulersource *CloudSchedulerSource) *NamespacesCloudschedulersourcesCreateCall {
8034	c := &NamespacesCloudschedulersourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8035	c.parent = parent
8036	c.cloudschedulersource = cloudschedulersource
8037	return c
8038}
8039
8040// Fields allows partial responses to be retrieved. See
8041// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8042// for more information.
8043func (c *NamespacesCloudschedulersourcesCreateCall) Fields(s ...googleapi.Field) *NamespacesCloudschedulersourcesCreateCall {
8044	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8045	return c
8046}
8047
8048// Context sets the context to be used in this call's Do method. Any
8049// pending HTTP request will be aborted if the provided context is
8050// canceled.
8051func (c *NamespacesCloudschedulersourcesCreateCall) Context(ctx context.Context) *NamespacesCloudschedulersourcesCreateCall {
8052	c.ctx_ = ctx
8053	return c
8054}
8055
8056// Header returns an http.Header that can be modified by the caller to
8057// add HTTP headers to the request.
8058func (c *NamespacesCloudschedulersourcesCreateCall) Header() http.Header {
8059	if c.header_ == nil {
8060		c.header_ = make(http.Header)
8061	}
8062	return c.header_
8063}
8064
8065func (c *NamespacesCloudschedulersourcesCreateCall) doRequest(alt string) (*http.Response, error) {
8066	reqHeaders := make(http.Header)
8067	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8068	for k, v := range c.header_ {
8069		reqHeaders[k] = v
8070	}
8071	reqHeaders.Set("User-Agent", c.s.userAgent())
8072	var body io.Reader = nil
8073	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudschedulersource)
8074	if err != nil {
8075		return nil, err
8076	}
8077	reqHeaders.Set("Content-Type", "application/json")
8078	c.urlParams_.Set("alt", alt)
8079	c.urlParams_.Set("prettyPrint", "false")
8080	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources")
8081	urls += "?" + c.urlParams_.Encode()
8082	req, err := http.NewRequest("POST", urls, body)
8083	if err != nil {
8084		return nil, err
8085	}
8086	req.Header = reqHeaders
8087	googleapi.Expand(req.URL, map[string]string{
8088		"parent": c.parent,
8089	})
8090	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8091}
8092
8093// Do executes the "run.namespaces.cloudschedulersources.create" call.
8094// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
8095// non-2xx status code is an error. Response headers are in either
8096// *CloudSchedulerSource.ServerResponse.Header or (if a response was
8097// returned at all) in error.(*googleapi.Error).Header. Use
8098// googleapi.IsNotModified to check whether the returned error was
8099// because http.StatusNotModified was returned.
8100func (c *NamespacesCloudschedulersourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
8101	gensupport.SetOptions(c.urlParams_, opts...)
8102	res, err := c.doRequest("json")
8103	if res != nil && res.StatusCode == http.StatusNotModified {
8104		if res.Body != nil {
8105			res.Body.Close()
8106		}
8107		return nil, &googleapi.Error{
8108			Code:   res.StatusCode,
8109			Header: res.Header,
8110		}
8111	}
8112	if err != nil {
8113		return nil, err
8114	}
8115	defer googleapi.CloseBody(res)
8116	if err := googleapi.CheckResponse(res); err != nil {
8117		return nil, err
8118	}
8119	ret := &CloudSchedulerSource{
8120		ServerResponse: googleapi.ServerResponse{
8121			Header:         res.Header,
8122			HTTPStatusCode: res.StatusCode,
8123		},
8124	}
8125	target := &ret
8126	if err := gensupport.DecodeResponse(target, res); err != nil {
8127		return nil, err
8128	}
8129	return ret, nil
8130	// {
8131	//   "description": "Creates a new cloudschedulersource.",
8132	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudschedulersources",
8133	//   "httpMethod": "POST",
8134	//   "id": "run.namespaces.cloudschedulersources.create",
8135	//   "parameterOrder": [
8136	//     "parent"
8137	//   ],
8138	//   "parameters": {
8139	//     "parent": {
8140	//       "description": "Required. The project ID or project number in which this cloudschedulersource should\nbe created.",
8141	//       "location": "path",
8142	//       "pattern": "^namespaces/[^/]+$",
8143	//       "required": true,
8144	//       "type": "string"
8145	//     }
8146	//   },
8147	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources",
8148	//   "request": {
8149	//     "$ref": "CloudSchedulerSource"
8150	//   },
8151	//   "response": {
8152	//     "$ref": "CloudSchedulerSource"
8153	//   },
8154	//   "scopes": [
8155	//     "https://www.googleapis.com/auth/cloud-platform"
8156	//   ]
8157	// }
8158
8159}
8160
8161// method id "run.namespaces.cloudschedulersources.delete":
8162
8163type NamespacesCloudschedulersourcesDeleteCall struct {
8164	s          *APIService
8165	name       string
8166	urlParams_ gensupport.URLParams
8167	ctx_       context.Context
8168	header_    http.Header
8169}
8170
8171// Delete: Rpc to delete a cloudschedulersource.
8172func (r *NamespacesCloudschedulersourcesService) Delete(name string) *NamespacesCloudschedulersourcesDeleteCall {
8173	c := &NamespacesCloudschedulersourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8174	c.name = name
8175	return c
8176}
8177
8178// ApiVersion sets the optional parameter "apiVersion": Cloud Run
8179// currently ignores this parameter.
8180func (c *NamespacesCloudschedulersourcesDeleteCall) ApiVersion(apiVersion string) *NamespacesCloudschedulersourcesDeleteCall {
8181	c.urlParams_.Set("apiVersion", apiVersion)
8182	return c
8183}
8184
8185// Kind sets the optional parameter "kind": Cloud Run currently ignores
8186// this parameter.
8187func (c *NamespacesCloudschedulersourcesDeleteCall) Kind(kind string) *NamespacesCloudschedulersourcesDeleteCall {
8188	c.urlParams_.Set("kind", kind)
8189	return c
8190}
8191
8192// PropagationPolicy sets the optional parameter "propagationPolicy":
8193// Specifies the propagation policy of delete. Cloud Run currently
8194// ignores
8195// this setting, and deletes in the background. Please
8196// see
8197// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
8198// on/ for
8199// more information.
8200func (c *NamespacesCloudschedulersourcesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesCloudschedulersourcesDeleteCall {
8201	c.urlParams_.Set("propagationPolicy", propagationPolicy)
8202	return c
8203}
8204
8205// Fields allows partial responses to be retrieved. See
8206// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8207// for more information.
8208func (c *NamespacesCloudschedulersourcesDeleteCall) Fields(s ...googleapi.Field) *NamespacesCloudschedulersourcesDeleteCall {
8209	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8210	return c
8211}
8212
8213// Context sets the context to be used in this call's Do method. Any
8214// pending HTTP request will be aborted if the provided context is
8215// canceled.
8216func (c *NamespacesCloudschedulersourcesDeleteCall) Context(ctx context.Context) *NamespacesCloudschedulersourcesDeleteCall {
8217	c.ctx_ = ctx
8218	return c
8219}
8220
8221// Header returns an http.Header that can be modified by the caller to
8222// add HTTP headers to the request.
8223func (c *NamespacesCloudschedulersourcesDeleteCall) Header() http.Header {
8224	if c.header_ == nil {
8225		c.header_ = make(http.Header)
8226	}
8227	return c.header_
8228}
8229
8230func (c *NamespacesCloudschedulersourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
8231	reqHeaders := make(http.Header)
8232	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8233	for k, v := range c.header_ {
8234		reqHeaders[k] = v
8235	}
8236	reqHeaders.Set("User-Agent", c.s.userAgent())
8237	var body io.Reader = nil
8238	c.urlParams_.Set("alt", alt)
8239	c.urlParams_.Set("prettyPrint", "false")
8240	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
8241	urls += "?" + c.urlParams_.Encode()
8242	req, err := http.NewRequest("DELETE", urls, body)
8243	if err != nil {
8244		return nil, err
8245	}
8246	req.Header = reqHeaders
8247	googleapi.Expand(req.URL, map[string]string{
8248		"name": c.name,
8249	})
8250	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8251}
8252
8253// Do executes the "run.namespaces.cloudschedulersources.delete" call.
8254// Exactly one of *Empty or error will be non-nil. Any non-2xx status
8255// code is an error. Response headers are in either
8256// *Empty.ServerResponse.Header or (if a response was returned at all)
8257// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
8258// check whether the returned error was because http.StatusNotModified
8259// was returned.
8260func (c *NamespacesCloudschedulersourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
8261	gensupport.SetOptions(c.urlParams_, opts...)
8262	res, err := c.doRequest("json")
8263	if res != nil && res.StatusCode == http.StatusNotModified {
8264		if res.Body != nil {
8265			res.Body.Close()
8266		}
8267		return nil, &googleapi.Error{
8268			Code:   res.StatusCode,
8269			Header: res.Header,
8270		}
8271	}
8272	if err != nil {
8273		return nil, err
8274	}
8275	defer googleapi.CloseBody(res)
8276	if err := googleapi.CheckResponse(res); err != nil {
8277		return nil, err
8278	}
8279	ret := &Empty{
8280		ServerResponse: googleapi.ServerResponse{
8281			Header:         res.Header,
8282			HTTPStatusCode: res.StatusCode,
8283		},
8284	}
8285	target := &ret
8286	if err := gensupport.DecodeResponse(target, res); err != nil {
8287		return nil, err
8288	}
8289	return ret, nil
8290	// {
8291	//   "description": "Rpc to delete a cloudschedulersource.",
8292	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudschedulersources/{cloudschedulersourcesId}",
8293	//   "httpMethod": "DELETE",
8294	//   "id": "run.namespaces.cloudschedulersources.delete",
8295	//   "parameterOrder": [
8296	//     "name"
8297	//   ],
8298	//   "parameters": {
8299	//     "apiVersion": {
8300	//       "description": "Cloud Run currently ignores this parameter.",
8301	//       "location": "query",
8302	//       "type": "string"
8303	//     },
8304	//     "kind": {
8305	//       "description": "Cloud Run currently ignores this parameter.",
8306	//       "location": "query",
8307	//       "type": "string"
8308	//     },
8309	//     "name": {
8310	//       "description": "Required. The name of the cloudschedulersource being deleted. If needed, replace\n{namespace_id} with the project ID.",
8311	//       "location": "path",
8312	//       "pattern": "^namespaces/[^/]+/cloudschedulersources/[^/]+$",
8313	//       "required": true,
8314	//       "type": "string"
8315	//     },
8316	//     "propagationPolicy": {
8317	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
8318	//       "location": "query",
8319	//       "type": "string"
8320	//     }
8321	//   },
8322	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
8323	//   "response": {
8324	//     "$ref": "Empty"
8325	//   },
8326	//   "scopes": [
8327	//     "https://www.googleapis.com/auth/cloud-platform"
8328	//   ]
8329	// }
8330
8331}
8332
8333// method id "run.namespaces.cloudschedulersources.get":
8334
8335type NamespacesCloudschedulersourcesGetCall struct {
8336	s            *APIService
8337	name         string
8338	urlParams_   gensupport.URLParams
8339	ifNoneMatch_ string
8340	ctx_         context.Context
8341	header_      http.Header
8342}
8343
8344// Get: Rpc to get information about a cloudschedulersource.
8345func (r *NamespacesCloudschedulersourcesService) Get(name string) *NamespacesCloudschedulersourcesGetCall {
8346	c := &NamespacesCloudschedulersourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8347	c.name = name
8348	return c
8349}
8350
8351// Fields allows partial responses to be retrieved. See
8352// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8353// for more information.
8354func (c *NamespacesCloudschedulersourcesGetCall) Fields(s ...googleapi.Field) *NamespacesCloudschedulersourcesGetCall {
8355	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8356	return c
8357}
8358
8359// IfNoneMatch sets the optional parameter which makes the operation
8360// fail if the object's ETag matches the given value. This is useful for
8361// getting updates only after the object has changed since the last
8362// request. Use googleapi.IsNotModified to check whether the response
8363// error from Do is the result of In-None-Match.
8364func (c *NamespacesCloudschedulersourcesGetCall) IfNoneMatch(entityTag string) *NamespacesCloudschedulersourcesGetCall {
8365	c.ifNoneMatch_ = entityTag
8366	return c
8367}
8368
8369// Context sets the context to be used in this call's Do method. Any
8370// pending HTTP request will be aborted if the provided context is
8371// canceled.
8372func (c *NamespacesCloudschedulersourcesGetCall) Context(ctx context.Context) *NamespacesCloudschedulersourcesGetCall {
8373	c.ctx_ = ctx
8374	return c
8375}
8376
8377// Header returns an http.Header that can be modified by the caller to
8378// add HTTP headers to the request.
8379func (c *NamespacesCloudschedulersourcesGetCall) Header() http.Header {
8380	if c.header_ == nil {
8381		c.header_ = make(http.Header)
8382	}
8383	return c.header_
8384}
8385
8386func (c *NamespacesCloudschedulersourcesGetCall) doRequest(alt string) (*http.Response, error) {
8387	reqHeaders := make(http.Header)
8388	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8389	for k, v := range c.header_ {
8390		reqHeaders[k] = v
8391	}
8392	reqHeaders.Set("User-Agent", c.s.userAgent())
8393	if c.ifNoneMatch_ != "" {
8394		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8395	}
8396	var body io.Reader = nil
8397	c.urlParams_.Set("alt", alt)
8398	c.urlParams_.Set("prettyPrint", "false")
8399	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
8400	urls += "?" + c.urlParams_.Encode()
8401	req, err := http.NewRequest("GET", urls, body)
8402	if err != nil {
8403		return nil, err
8404	}
8405	req.Header = reqHeaders
8406	googleapi.Expand(req.URL, map[string]string{
8407		"name": c.name,
8408	})
8409	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8410}
8411
8412// Do executes the "run.namespaces.cloudschedulersources.get" call.
8413// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
8414// non-2xx status code is an error. Response headers are in either
8415// *CloudSchedulerSource.ServerResponse.Header or (if a response was
8416// returned at all) in error.(*googleapi.Error).Header. Use
8417// googleapi.IsNotModified to check whether the returned error was
8418// because http.StatusNotModified was returned.
8419func (c *NamespacesCloudschedulersourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
8420	gensupport.SetOptions(c.urlParams_, opts...)
8421	res, err := c.doRequest("json")
8422	if res != nil && res.StatusCode == http.StatusNotModified {
8423		if res.Body != nil {
8424			res.Body.Close()
8425		}
8426		return nil, &googleapi.Error{
8427			Code:   res.StatusCode,
8428			Header: res.Header,
8429		}
8430	}
8431	if err != nil {
8432		return nil, err
8433	}
8434	defer googleapi.CloseBody(res)
8435	if err := googleapi.CheckResponse(res); err != nil {
8436		return nil, err
8437	}
8438	ret := &CloudSchedulerSource{
8439		ServerResponse: googleapi.ServerResponse{
8440			Header:         res.Header,
8441			HTTPStatusCode: res.StatusCode,
8442		},
8443	}
8444	target := &ret
8445	if err := gensupport.DecodeResponse(target, res); err != nil {
8446		return nil, err
8447	}
8448	return ret, nil
8449	// {
8450	//   "description": "Rpc to get information about a cloudschedulersource.",
8451	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudschedulersources/{cloudschedulersourcesId}",
8452	//   "httpMethod": "GET",
8453	//   "id": "run.namespaces.cloudschedulersources.get",
8454	//   "parameterOrder": [
8455	//     "name"
8456	//   ],
8457	//   "parameters": {
8458	//     "name": {
8459	//       "description": "Required. The name of the cloudschedulersource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
8460	//       "location": "path",
8461	//       "pattern": "^namespaces/[^/]+/cloudschedulersources/[^/]+$",
8462	//       "required": true,
8463	//       "type": "string"
8464	//     }
8465	//   },
8466	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
8467	//   "response": {
8468	//     "$ref": "CloudSchedulerSource"
8469	//   },
8470	//   "scopes": [
8471	//     "https://www.googleapis.com/auth/cloud-platform"
8472	//   ]
8473	// }
8474
8475}
8476
8477// method id "run.namespaces.cloudschedulersources.list":
8478
8479type NamespacesCloudschedulersourcesListCall struct {
8480	s            *APIService
8481	parent       string
8482	urlParams_   gensupport.URLParams
8483	ifNoneMatch_ string
8484	ctx_         context.Context
8485	header_      http.Header
8486}
8487
8488// List: Rpc to list cloudschedulersources.
8489func (r *NamespacesCloudschedulersourcesService) List(parent string) *NamespacesCloudschedulersourcesListCall {
8490	c := &NamespacesCloudschedulersourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8491	c.parent = parent
8492	return c
8493}
8494
8495// Continue sets the optional parameter "continue": Optional encoded
8496// string to continue paging.
8497func (c *NamespacesCloudschedulersourcesListCall) Continue(continue_ string) *NamespacesCloudschedulersourcesListCall {
8498	c.urlParams_.Set("continue", continue_)
8499	return c
8500}
8501
8502// FieldSelector sets the optional parameter "fieldSelector": Allows to
8503// filter resources based on a specific value for a field name.
8504// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
8505// Not currently used by Cloud Run.
8506func (c *NamespacesCloudschedulersourcesListCall) FieldSelector(fieldSelector string) *NamespacesCloudschedulersourcesListCall {
8507	c.urlParams_.Set("fieldSelector", fieldSelector)
8508	return c
8509}
8510
8511// IncludeUninitialized sets the optional parameter
8512// "includeUninitialized": Not currently used by Cloud Run.
8513func (c *NamespacesCloudschedulersourcesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesCloudschedulersourcesListCall {
8514	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
8515	return c
8516}
8517
8518// LabelSelector sets the optional parameter "labelSelector": Allows to
8519// filter resources based on a label. Supported operations are
8520// =, !=, exists, in, and notIn.
8521func (c *NamespacesCloudschedulersourcesListCall) LabelSelector(labelSelector string) *NamespacesCloudschedulersourcesListCall {
8522	c.urlParams_.Set("labelSelector", labelSelector)
8523	return c
8524}
8525
8526// Limit sets the optional parameter "limit": The maximum number of
8527// records that should be returned.
8528func (c *NamespacesCloudschedulersourcesListCall) Limit(limit int64) *NamespacesCloudschedulersourcesListCall {
8529	c.urlParams_.Set("limit", fmt.Sprint(limit))
8530	return c
8531}
8532
8533// ResourceVersion sets the optional parameter "resourceVersion": The
8534// baseline resource version from which the list or watch operation
8535// should
8536// start. Not currently used by Cloud Run.
8537func (c *NamespacesCloudschedulersourcesListCall) ResourceVersion(resourceVersion string) *NamespacesCloudschedulersourcesListCall {
8538	c.urlParams_.Set("resourceVersion", resourceVersion)
8539	return c
8540}
8541
8542// Watch sets the optional parameter "watch": Flag that indicates that
8543// the client expects to watch this resource as well.
8544// Not currently used by Cloud Run.
8545func (c *NamespacesCloudschedulersourcesListCall) Watch(watch bool) *NamespacesCloudschedulersourcesListCall {
8546	c.urlParams_.Set("watch", fmt.Sprint(watch))
8547	return c
8548}
8549
8550// Fields allows partial responses to be retrieved. See
8551// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8552// for more information.
8553func (c *NamespacesCloudschedulersourcesListCall) Fields(s ...googleapi.Field) *NamespacesCloudschedulersourcesListCall {
8554	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8555	return c
8556}
8557
8558// IfNoneMatch sets the optional parameter which makes the operation
8559// fail if the object's ETag matches the given value. This is useful for
8560// getting updates only after the object has changed since the last
8561// request. Use googleapi.IsNotModified to check whether the response
8562// error from Do is the result of In-None-Match.
8563func (c *NamespacesCloudschedulersourcesListCall) IfNoneMatch(entityTag string) *NamespacesCloudschedulersourcesListCall {
8564	c.ifNoneMatch_ = entityTag
8565	return c
8566}
8567
8568// Context sets the context to be used in this call's Do method. Any
8569// pending HTTP request will be aborted if the provided context is
8570// canceled.
8571func (c *NamespacesCloudschedulersourcesListCall) Context(ctx context.Context) *NamespacesCloudschedulersourcesListCall {
8572	c.ctx_ = ctx
8573	return c
8574}
8575
8576// Header returns an http.Header that can be modified by the caller to
8577// add HTTP headers to the request.
8578func (c *NamespacesCloudschedulersourcesListCall) Header() http.Header {
8579	if c.header_ == nil {
8580		c.header_ = make(http.Header)
8581	}
8582	return c.header_
8583}
8584
8585func (c *NamespacesCloudschedulersourcesListCall) doRequest(alt string) (*http.Response, error) {
8586	reqHeaders := make(http.Header)
8587	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8588	for k, v := range c.header_ {
8589		reqHeaders[k] = v
8590	}
8591	reqHeaders.Set("User-Agent", c.s.userAgent())
8592	if c.ifNoneMatch_ != "" {
8593		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8594	}
8595	var body io.Reader = nil
8596	c.urlParams_.Set("alt", alt)
8597	c.urlParams_.Set("prettyPrint", "false")
8598	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources")
8599	urls += "?" + c.urlParams_.Encode()
8600	req, err := http.NewRequest("GET", urls, body)
8601	if err != nil {
8602		return nil, err
8603	}
8604	req.Header = reqHeaders
8605	googleapi.Expand(req.URL, map[string]string{
8606		"parent": c.parent,
8607	})
8608	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8609}
8610
8611// Do executes the "run.namespaces.cloudschedulersources.list" call.
8612// Exactly one of *ListCloudSchedulerSourcesResponse or error will be
8613// non-nil. Any non-2xx status code is an error. Response headers are in
8614// either *ListCloudSchedulerSourcesResponse.ServerResponse.Header or
8615// (if a response was returned at all) in
8616// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8617// whether the returned error was because http.StatusNotModified was
8618// returned.
8619func (c *NamespacesCloudschedulersourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudSchedulerSourcesResponse, error) {
8620	gensupport.SetOptions(c.urlParams_, opts...)
8621	res, err := c.doRequest("json")
8622	if res != nil && res.StatusCode == http.StatusNotModified {
8623		if res.Body != nil {
8624			res.Body.Close()
8625		}
8626		return nil, &googleapi.Error{
8627			Code:   res.StatusCode,
8628			Header: res.Header,
8629		}
8630	}
8631	if err != nil {
8632		return nil, err
8633	}
8634	defer googleapi.CloseBody(res)
8635	if err := googleapi.CheckResponse(res); err != nil {
8636		return nil, err
8637	}
8638	ret := &ListCloudSchedulerSourcesResponse{
8639		ServerResponse: googleapi.ServerResponse{
8640			Header:         res.Header,
8641			HTTPStatusCode: res.StatusCode,
8642		},
8643	}
8644	target := &ret
8645	if err := gensupport.DecodeResponse(target, res); err != nil {
8646		return nil, err
8647	}
8648	return ret, nil
8649	// {
8650	//   "description": "Rpc to list cloudschedulersources.",
8651	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudschedulersources",
8652	//   "httpMethod": "GET",
8653	//   "id": "run.namespaces.cloudschedulersources.list",
8654	//   "parameterOrder": [
8655	//     "parent"
8656	//   ],
8657	//   "parameters": {
8658	//     "continue": {
8659	//       "description": "Optional encoded string to continue paging.",
8660	//       "location": "query",
8661	//       "type": "string"
8662	//     },
8663	//     "fieldSelector": {
8664	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
8665	//       "location": "query",
8666	//       "type": "string"
8667	//     },
8668	//     "includeUninitialized": {
8669	//       "description": "Not currently used by Cloud Run.",
8670	//       "location": "query",
8671	//       "type": "boolean"
8672	//     },
8673	//     "labelSelector": {
8674	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
8675	//       "location": "query",
8676	//       "type": "string"
8677	//     },
8678	//     "limit": {
8679	//       "description": "The maximum number of records that should be returned.",
8680	//       "format": "int32",
8681	//       "location": "query",
8682	//       "type": "integer"
8683	//     },
8684	//     "parent": {
8685	//       "description": "Required. The project ID or project number from which the cloudschedulersources\nshould be listed.",
8686	//       "location": "path",
8687	//       "pattern": "^namespaces/[^/]+$",
8688	//       "required": true,
8689	//       "type": "string"
8690	//     },
8691	//     "resourceVersion": {
8692	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
8693	//       "location": "query",
8694	//       "type": "string"
8695	//     },
8696	//     "watch": {
8697	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
8698	//       "location": "query",
8699	//       "type": "boolean"
8700	//     }
8701	//   },
8702	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources",
8703	//   "response": {
8704	//     "$ref": "ListCloudSchedulerSourcesResponse"
8705	//   },
8706	//   "scopes": [
8707	//     "https://www.googleapis.com/auth/cloud-platform"
8708	//   ]
8709	// }
8710
8711}
8712
8713// method id "run.namespaces.cloudschedulersources.replaceCloudSchedulerSource":
8714
8715type NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall struct {
8716	s                    *APIService
8717	name                 string
8718	cloudschedulersource *CloudSchedulerSource
8719	urlParams_           gensupport.URLParams
8720	ctx_                 context.Context
8721	header_              http.Header
8722}
8723
8724// ReplaceCloudSchedulerSource: Rpc to replace a
8725// cloudschedulersource.
8726//
8727// Only the spec and metadata labels and annotations are modifiable.
8728// After
8729// the Update request, Cloud Run will work to make the 'status'
8730// match the requested 'spec'.
8731//
8732// May provide metadata.resourceVersion to enforce update from last read
8733// for
8734// optimistic concurrency control.
8735func (r *NamespacesCloudschedulersourcesService) ReplaceCloudSchedulerSource(name string, cloudschedulersource *CloudSchedulerSource) *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall {
8736	c := &NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8737	c.name = name
8738	c.cloudschedulersource = cloudschedulersource
8739	return c
8740}
8741
8742// Fields allows partial responses to be retrieved. See
8743// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8744// for more information.
8745func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) Fields(s ...googleapi.Field) *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall {
8746	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8747	return c
8748}
8749
8750// Context sets the context to be used in this call's Do method. Any
8751// pending HTTP request will be aborted if the provided context is
8752// canceled.
8753func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) Context(ctx context.Context) *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall {
8754	c.ctx_ = ctx
8755	return c
8756}
8757
8758// Header returns an http.Header that can be modified by the caller to
8759// add HTTP headers to the request.
8760func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) Header() http.Header {
8761	if c.header_ == nil {
8762		c.header_ = make(http.Header)
8763	}
8764	return c.header_
8765}
8766
8767func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) doRequest(alt string) (*http.Response, error) {
8768	reqHeaders := make(http.Header)
8769	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8770	for k, v := range c.header_ {
8771		reqHeaders[k] = v
8772	}
8773	reqHeaders.Set("User-Agent", c.s.userAgent())
8774	var body io.Reader = nil
8775	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudschedulersource)
8776	if err != nil {
8777		return nil, err
8778	}
8779	reqHeaders.Set("Content-Type", "application/json")
8780	c.urlParams_.Set("alt", alt)
8781	c.urlParams_.Set("prettyPrint", "false")
8782	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
8783	urls += "?" + c.urlParams_.Encode()
8784	req, err := http.NewRequest("PUT", urls, body)
8785	if err != nil {
8786		return nil, err
8787	}
8788	req.Header = reqHeaders
8789	googleapi.Expand(req.URL, map[string]string{
8790		"name": c.name,
8791	})
8792	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8793}
8794
8795// Do executes the "run.namespaces.cloudschedulersources.replaceCloudSchedulerSource" call.
8796// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
8797// non-2xx status code is an error. Response headers are in either
8798// *CloudSchedulerSource.ServerResponse.Header or (if a response was
8799// returned at all) in error.(*googleapi.Error).Header. Use
8800// googleapi.IsNotModified to check whether the returned error was
8801// because http.StatusNotModified was returned.
8802func (c *NamespacesCloudschedulersourcesReplaceCloudSchedulerSourceCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
8803	gensupport.SetOptions(c.urlParams_, opts...)
8804	res, err := c.doRequest("json")
8805	if res != nil && res.StatusCode == http.StatusNotModified {
8806		if res.Body != nil {
8807			res.Body.Close()
8808		}
8809		return nil, &googleapi.Error{
8810			Code:   res.StatusCode,
8811			Header: res.Header,
8812		}
8813	}
8814	if err != nil {
8815		return nil, err
8816	}
8817	defer googleapi.CloseBody(res)
8818	if err := googleapi.CheckResponse(res); err != nil {
8819		return nil, err
8820	}
8821	ret := &CloudSchedulerSource{
8822		ServerResponse: googleapi.ServerResponse{
8823			Header:         res.Header,
8824			HTTPStatusCode: res.StatusCode,
8825		},
8826	}
8827	target := &ret
8828	if err := gensupport.DecodeResponse(target, res); err != nil {
8829		return nil, err
8830	}
8831	return ret, nil
8832	// {
8833	//   "description": "Rpc to replace a cloudschedulersource.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
8834	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudschedulersources/{cloudschedulersourcesId}",
8835	//   "httpMethod": "PUT",
8836	//   "id": "run.namespaces.cloudschedulersources.replaceCloudSchedulerSource",
8837	//   "parameterOrder": [
8838	//     "name"
8839	//   ],
8840	//   "parameters": {
8841	//     "name": {
8842	//       "description": "Required. The name of the cloudschedulersource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
8843	//       "location": "path",
8844	//       "pattern": "^namespaces/[^/]+/cloudschedulersources/[^/]+$",
8845	//       "required": true,
8846	//       "type": "string"
8847	//     }
8848	//   },
8849	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
8850	//   "request": {
8851	//     "$ref": "CloudSchedulerSource"
8852	//   },
8853	//   "response": {
8854	//     "$ref": "CloudSchedulerSource"
8855	//   },
8856	//   "scopes": [
8857	//     "https://www.googleapis.com/auth/cloud-platform"
8858	//   ]
8859	// }
8860
8861}
8862
8863// method id "run.namespaces.cloudstoragesources.create":
8864
8865type NamespacesCloudstoragesourcesCreateCall struct {
8866	s                  *APIService
8867	parent             string
8868	cloudstoragesource *CloudStorageSource
8869	urlParams_         gensupport.URLParams
8870	ctx_               context.Context
8871	header_            http.Header
8872}
8873
8874// Create: Creates a new cloudstoragesource.
8875func (r *NamespacesCloudstoragesourcesService) Create(parent string, cloudstoragesource *CloudStorageSource) *NamespacesCloudstoragesourcesCreateCall {
8876	c := &NamespacesCloudstoragesourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8877	c.parent = parent
8878	c.cloudstoragesource = cloudstoragesource
8879	return c
8880}
8881
8882// Fields allows partial responses to be retrieved. See
8883// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8884// for more information.
8885func (c *NamespacesCloudstoragesourcesCreateCall) Fields(s ...googleapi.Field) *NamespacesCloudstoragesourcesCreateCall {
8886	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8887	return c
8888}
8889
8890// Context sets the context to be used in this call's Do method. Any
8891// pending HTTP request will be aborted if the provided context is
8892// canceled.
8893func (c *NamespacesCloudstoragesourcesCreateCall) Context(ctx context.Context) *NamespacesCloudstoragesourcesCreateCall {
8894	c.ctx_ = ctx
8895	return c
8896}
8897
8898// Header returns an http.Header that can be modified by the caller to
8899// add HTTP headers to the request.
8900func (c *NamespacesCloudstoragesourcesCreateCall) Header() http.Header {
8901	if c.header_ == nil {
8902		c.header_ = make(http.Header)
8903	}
8904	return c.header_
8905}
8906
8907func (c *NamespacesCloudstoragesourcesCreateCall) doRequest(alt string) (*http.Response, error) {
8908	reqHeaders := make(http.Header)
8909	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
8910	for k, v := range c.header_ {
8911		reqHeaders[k] = v
8912	}
8913	reqHeaders.Set("User-Agent", c.s.userAgent())
8914	var body io.Reader = nil
8915	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudstoragesource)
8916	if err != nil {
8917		return nil, err
8918	}
8919	reqHeaders.Set("Content-Type", "application/json")
8920	c.urlParams_.Set("alt", alt)
8921	c.urlParams_.Set("prettyPrint", "false")
8922	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources")
8923	urls += "?" + c.urlParams_.Encode()
8924	req, err := http.NewRequest("POST", urls, body)
8925	if err != nil {
8926		return nil, err
8927	}
8928	req.Header = reqHeaders
8929	googleapi.Expand(req.URL, map[string]string{
8930		"parent": c.parent,
8931	})
8932	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8933}
8934
8935// Do executes the "run.namespaces.cloudstoragesources.create" call.
8936// Exactly one of *CloudStorageSource or error will be non-nil. Any
8937// non-2xx status code is an error. Response headers are in either
8938// *CloudStorageSource.ServerResponse.Header or (if a response was
8939// returned at all) in error.(*googleapi.Error).Header. Use
8940// googleapi.IsNotModified to check whether the returned error was
8941// because http.StatusNotModified was returned.
8942func (c *NamespacesCloudstoragesourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
8943	gensupport.SetOptions(c.urlParams_, opts...)
8944	res, err := c.doRequest("json")
8945	if res != nil && res.StatusCode == http.StatusNotModified {
8946		if res.Body != nil {
8947			res.Body.Close()
8948		}
8949		return nil, &googleapi.Error{
8950			Code:   res.StatusCode,
8951			Header: res.Header,
8952		}
8953	}
8954	if err != nil {
8955		return nil, err
8956	}
8957	defer googleapi.CloseBody(res)
8958	if err := googleapi.CheckResponse(res); err != nil {
8959		return nil, err
8960	}
8961	ret := &CloudStorageSource{
8962		ServerResponse: googleapi.ServerResponse{
8963			Header:         res.Header,
8964			HTTPStatusCode: res.StatusCode,
8965		},
8966	}
8967	target := &ret
8968	if err := gensupport.DecodeResponse(target, res); err != nil {
8969		return nil, err
8970	}
8971	return ret, nil
8972	// {
8973	//   "description": "Creates a new cloudstoragesource.",
8974	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudstoragesources",
8975	//   "httpMethod": "POST",
8976	//   "id": "run.namespaces.cloudstoragesources.create",
8977	//   "parameterOrder": [
8978	//     "parent"
8979	//   ],
8980	//   "parameters": {
8981	//     "parent": {
8982	//       "description": "Required. The project ID or project number in which this cloudstoragesource should\nbe created.",
8983	//       "location": "path",
8984	//       "pattern": "^namespaces/[^/]+$",
8985	//       "required": true,
8986	//       "type": "string"
8987	//     }
8988	//   },
8989	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources",
8990	//   "request": {
8991	//     "$ref": "CloudStorageSource"
8992	//   },
8993	//   "response": {
8994	//     "$ref": "CloudStorageSource"
8995	//   },
8996	//   "scopes": [
8997	//     "https://www.googleapis.com/auth/cloud-platform"
8998	//   ]
8999	// }
9000
9001}
9002
9003// method id "run.namespaces.cloudstoragesources.delete":
9004
9005type NamespacesCloudstoragesourcesDeleteCall struct {
9006	s          *APIService
9007	name       string
9008	urlParams_ gensupport.URLParams
9009	ctx_       context.Context
9010	header_    http.Header
9011}
9012
9013// Delete: Rpc to delete a cloudstoragesource.
9014func (r *NamespacesCloudstoragesourcesService) Delete(name string) *NamespacesCloudstoragesourcesDeleteCall {
9015	c := &NamespacesCloudstoragesourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9016	c.name = name
9017	return c
9018}
9019
9020// ApiVersion sets the optional parameter "apiVersion": Cloud Run
9021// currently ignores this parameter.
9022func (c *NamespacesCloudstoragesourcesDeleteCall) ApiVersion(apiVersion string) *NamespacesCloudstoragesourcesDeleteCall {
9023	c.urlParams_.Set("apiVersion", apiVersion)
9024	return c
9025}
9026
9027// Kind sets the optional parameter "kind": Cloud Run currently ignores
9028// this parameter.
9029func (c *NamespacesCloudstoragesourcesDeleteCall) Kind(kind string) *NamespacesCloudstoragesourcesDeleteCall {
9030	c.urlParams_.Set("kind", kind)
9031	return c
9032}
9033
9034// PropagationPolicy sets the optional parameter "propagationPolicy":
9035// Specifies the propagation policy of delete. Cloud Run currently
9036// ignores
9037// this setting, and deletes in the background. Please
9038// see
9039// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
9040// on/ for
9041// more information.
9042func (c *NamespacesCloudstoragesourcesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesCloudstoragesourcesDeleteCall {
9043	c.urlParams_.Set("propagationPolicy", propagationPolicy)
9044	return c
9045}
9046
9047// Fields allows partial responses to be retrieved. See
9048// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9049// for more information.
9050func (c *NamespacesCloudstoragesourcesDeleteCall) Fields(s ...googleapi.Field) *NamespacesCloudstoragesourcesDeleteCall {
9051	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9052	return c
9053}
9054
9055// Context sets the context to be used in this call's Do method. Any
9056// pending HTTP request will be aborted if the provided context is
9057// canceled.
9058func (c *NamespacesCloudstoragesourcesDeleteCall) Context(ctx context.Context) *NamespacesCloudstoragesourcesDeleteCall {
9059	c.ctx_ = ctx
9060	return c
9061}
9062
9063// Header returns an http.Header that can be modified by the caller to
9064// add HTTP headers to the request.
9065func (c *NamespacesCloudstoragesourcesDeleteCall) Header() http.Header {
9066	if c.header_ == nil {
9067		c.header_ = make(http.Header)
9068	}
9069	return c.header_
9070}
9071
9072func (c *NamespacesCloudstoragesourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
9073	reqHeaders := make(http.Header)
9074	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9075	for k, v := range c.header_ {
9076		reqHeaders[k] = v
9077	}
9078	reqHeaders.Set("User-Agent", c.s.userAgent())
9079	var body io.Reader = nil
9080	c.urlParams_.Set("alt", alt)
9081	c.urlParams_.Set("prettyPrint", "false")
9082	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
9083	urls += "?" + c.urlParams_.Encode()
9084	req, err := http.NewRequest("DELETE", urls, body)
9085	if err != nil {
9086		return nil, err
9087	}
9088	req.Header = reqHeaders
9089	googleapi.Expand(req.URL, map[string]string{
9090		"name": c.name,
9091	})
9092	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9093}
9094
9095// Do executes the "run.namespaces.cloudstoragesources.delete" call.
9096// Exactly one of *Empty or error will be non-nil. Any non-2xx status
9097// code is an error. Response headers are in either
9098// *Empty.ServerResponse.Header or (if a response was returned at all)
9099// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
9100// check whether the returned error was because http.StatusNotModified
9101// was returned.
9102func (c *NamespacesCloudstoragesourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
9103	gensupport.SetOptions(c.urlParams_, opts...)
9104	res, err := c.doRequest("json")
9105	if res != nil && res.StatusCode == http.StatusNotModified {
9106		if res.Body != nil {
9107			res.Body.Close()
9108		}
9109		return nil, &googleapi.Error{
9110			Code:   res.StatusCode,
9111			Header: res.Header,
9112		}
9113	}
9114	if err != nil {
9115		return nil, err
9116	}
9117	defer googleapi.CloseBody(res)
9118	if err := googleapi.CheckResponse(res); err != nil {
9119		return nil, err
9120	}
9121	ret := &Empty{
9122		ServerResponse: googleapi.ServerResponse{
9123			Header:         res.Header,
9124			HTTPStatusCode: res.StatusCode,
9125		},
9126	}
9127	target := &ret
9128	if err := gensupport.DecodeResponse(target, res); err != nil {
9129		return nil, err
9130	}
9131	return ret, nil
9132	// {
9133	//   "description": "Rpc to delete a cloudstoragesource.",
9134	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudstoragesources/{cloudstoragesourcesId}",
9135	//   "httpMethod": "DELETE",
9136	//   "id": "run.namespaces.cloudstoragesources.delete",
9137	//   "parameterOrder": [
9138	//     "name"
9139	//   ],
9140	//   "parameters": {
9141	//     "apiVersion": {
9142	//       "description": "Cloud Run currently ignores this parameter.",
9143	//       "location": "query",
9144	//       "type": "string"
9145	//     },
9146	//     "kind": {
9147	//       "description": "Cloud Run currently ignores this parameter.",
9148	//       "location": "query",
9149	//       "type": "string"
9150	//     },
9151	//     "name": {
9152	//       "description": "Required. The name of the cloudstoragesource being deleted. If needed, replace\n{namespace_id} with the project ID.",
9153	//       "location": "path",
9154	//       "pattern": "^namespaces/[^/]+/cloudstoragesources/[^/]+$",
9155	//       "required": true,
9156	//       "type": "string"
9157	//     },
9158	//     "propagationPolicy": {
9159	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
9160	//       "location": "query",
9161	//       "type": "string"
9162	//     }
9163	//   },
9164	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
9165	//   "response": {
9166	//     "$ref": "Empty"
9167	//   },
9168	//   "scopes": [
9169	//     "https://www.googleapis.com/auth/cloud-platform"
9170	//   ]
9171	// }
9172
9173}
9174
9175// method id "run.namespaces.cloudstoragesources.get":
9176
9177type NamespacesCloudstoragesourcesGetCall struct {
9178	s            *APIService
9179	name         string
9180	urlParams_   gensupport.URLParams
9181	ifNoneMatch_ string
9182	ctx_         context.Context
9183	header_      http.Header
9184}
9185
9186// Get: Rpc to get information about a cloudstoragesource.
9187func (r *NamespacesCloudstoragesourcesService) Get(name string) *NamespacesCloudstoragesourcesGetCall {
9188	c := &NamespacesCloudstoragesourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9189	c.name = name
9190	return c
9191}
9192
9193// Fields allows partial responses to be retrieved. See
9194// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9195// for more information.
9196func (c *NamespacesCloudstoragesourcesGetCall) Fields(s ...googleapi.Field) *NamespacesCloudstoragesourcesGetCall {
9197	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9198	return c
9199}
9200
9201// IfNoneMatch sets the optional parameter which makes the operation
9202// fail if the object's ETag matches the given value. This is useful for
9203// getting updates only after the object has changed since the last
9204// request. Use googleapi.IsNotModified to check whether the response
9205// error from Do is the result of In-None-Match.
9206func (c *NamespacesCloudstoragesourcesGetCall) IfNoneMatch(entityTag string) *NamespacesCloudstoragesourcesGetCall {
9207	c.ifNoneMatch_ = entityTag
9208	return c
9209}
9210
9211// Context sets the context to be used in this call's Do method. Any
9212// pending HTTP request will be aborted if the provided context is
9213// canceled.
9214func (c *NamespacesCloudstoragesourcesGetCall) Context(ctx context.Context) *NamespacesCloudstoragesourcesGetCall {
9215	c.ctx_ = ctx
9216	return c
9217}
9218
9219// Header returns an http.Header that can be modified by the caller to
9220// add HTTP headers to the request.
9221func (c *NamespacesCloudstoragesourcesGetCall) Header() http.Header {
9222	if c.header_ == nil {
9223		c.header_ = make(http.Header)
9224	}
9225	return c.header_
9226}
9227
9228func (c *NamespacesCloudstoragesourcesGetCall) doRequest(alt string) (*http.Response, error) {
9229	reqHeaders := make(http.Header)
9230	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9231	for k, v := range c.header_ {
9232		reqHeaders[k] = v
9233	}
9234	reqHeaders.Set("User-Agent", c.s.userAgent())
9235	if c.ifNoneMatch_ != "" {
9236		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9237	}
9238	var body io.Reader = nil
9239	c.urlParams_.Set("alt", alt)
9240	c.urlParams_.Set("prettyPrint", "false")
9241	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
9242	urls += "?" + c.urlParams_.Encode()
9243	req, err := http.NewRequest("GET", urls, body)
9244	if err != nil {
9245		return nil, err
9246	}
9247	req.Header = reqHeaders
9248	googleapi.Expand(req.URL, map[string]string{
9249		"name": c.name,
9250	})
9251	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9252}
9253
9254// Do executes the "run.namespaces.cloudstoragesources.get" call.
9255// Exactly one of *CloudStorageSource or error will be non-nil. Any
9256// non-2xx status code is an error. Response headers are in either
9257// *CloudStorageSource.ServerResponse.Header or (if a response was
9258// returned at all) in error.(*googleapi.Error).Header. Use
9259// googleapi.IsNotModified to check whether the returned error was
9260// because http.StatusNotModified was returned.
9261func (c *NamespacesCloudstoragesourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
9262	gensupport.SetOptions(c.urlParams_, opts...)
9263	res, err := c.doRequest("json")
9264	if res != nil && res.StatusCode == http.StatusNotModified {
9265		if res.Body != nil {
9266			res.Body.Close()
9267		}
9268		return nil, &googleapi.Error{
9269			Code:   res.StatusCode,
9270			Header: res.Header,
9271		}
9272	}
9273	if err != nil {
9274		return nil, err
9275	}
9276	defer googleapi.CloseBody(res)
9277	if err := googleapi.CheckResponse(res); err != nil {
9278		return nil, err
9279	}
9280	ret := &CloudStorageSource{
9281		ServerResponse: googleapi.ServerResponse{
9282			Header:         res.Header,
9283			HTTPStatusCode: res.StatusCode,
9284		},
9285	}
9286	target := &ret
9287	if err := gensupport.DecodeResponse(target, res); err != nil {
9288		return nil, err
9289	}
9290	return ret, nil
9291	// {
9292	//   "description": "Rpc to get information about a cloudstoragesource.",
9293	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudstoragesources/{cloudstoragesourcesId}",
9294	//   "httpMethod": "GET",
9295	//   "id": "run.namespaces.cloudstoragesources.get",
9296	//   "parameterOrder": [
9297	//     "name"
9298	//   ],
9299	//   "parameters": {
9300	//     "name": {
9301	//       "description": "Required. The name of the cloudstoragesource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
9302	//       "location": "path",
9303	//       "pattern": "^namespaces/[^/]+/cloudstoragesources/[^/]+$",
9304	//       "required": true,
9305	//       "type": "string"
9306	//     }
9307	//   },
9308	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
9309	//   "response": {
9310	//     "$ref": "CloudStorageSource"
9311	//   },
9312	//   "scopes": [
9313	//     "https://www.googleapis.com/auth/cloud-platform"
9314	//   ]
9315	// }
9316
9317}
9318
9319// method id "run.namespaces.cloudstoragesources.list":
9320
9321type NamespacesCloudstoragesourcesListCall struct {
9322	s            *APIService
9323	parent       string
9324	urlParams_   gensupport.URLParams
9325	ifNoneMatch_ string
9326	ctx_         context.Context
9327	header_      http.Header
9328}
9329
9330// List: Rpc to list cloudstoragesources.
9331func (r *NamespacesCloudstoragesourcesService) List(parent string) *NamespacesCloudstoragesourcesListCall {
9332	c := &NamespacesCloudstoragesourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9333	c.parent = parent
9334	return c
9335}
9336
9337// Continue sets the optional parameter "continue": Optional encoded
9338// string to continue paging.
9339func (c *NamespacesCloudstoragesourcesListCall) Continue(continue_ string) *NamespacesCloudstoragesourcesListCall {
9340	c.urlParams_.Set("continue", continue_)
9341	return c
9342}
9343
9344// FieldSelector sets the optional parameter "fieldSelector": Allows to
9345// filter resources based on a specific value for a field name.
9346// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
9347// Not currently used by Cloud Run.
9348func (c *NamespacesCloudstoragesourcesListCall) FieldSelector(fieldSelector string) *NamespacesCloudstoragesourcesListCall {
9349	c.urlParams_.Set("fieldSelector", fieldSelector)
9350	return c
9351}
9352
9353// IncludeUninitialized sets the optional parameter
9354// "includeUninitialized": Not currently used by Cloud Run.
9355func (c *NamespacesCloudstoragesourcesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesCloudstoragesourcesListCall {
9356	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
9357	return c
9358}
9359
9360// LabelSelector sets the optional parameter "labelSelector": Allows to
9361// filter resources based on a label. Supported operations are
9362// =, !=, exists, in, and notIn.
9363func (c *NamespacesCloudstoragesourcesListCall) LabelSelector(labelSelector string) *NamespacesCloudstoragesourcesListCall {
9364	c.urlParams_.Set("labelSelector", labelSelector)
9365	return c
9366}
9367
9368// Limit sets the optional parameter "limit": The maximum number of
9369// records that should be returned.
9370func (c *NamespacesCloudstoragesourcesListCall) Limit(limit int64) *NamespacesCloudstoragesourcesListCall {
9371	c.urlParams_.Set("limit", fmt.Sprint(limit))
9372	return c
9373}
9374
9375// ResourceVersion sets the optional parameter "resourceVersion": The
9376// baseline resource version from which the list or watch operation
9377// should
9378// start. Not currently used by Cloud Run.
9379func (c *NamespacesCloudstoragesourcesListCall) ResourceVersion(resourceVersion string) *NamespacesCloudstoragesourcesListCall {
9380	c.urlParams_.Set("resourceVersion", resourceVersion)
9381	return c
9382}
9383
9384// Watch sets the optional parameter "watch": Flag that indicates that
9385// the client expects to watch this resource as well.
9386// Not currently used by Cloud Run.
9387func (c *NamespacesCloudstoragesourcesListCall) Watch(watch bool) *NamespacesCloudstoragesourcesListCall {
9388	c.urlParams_.Set("watch", fmt.Sprint(watch))
9389	return c
9390}
9391
9392// Fields allows partial responses to be retrieved. See
9393// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9394// for more information.
9395func (c *NamespacesCloudstoragesourcesListCall) Fields(s ...googleapi.Field) *NamespacesCloudstoragesourcesListCall {
9396	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9397	return c
9398}
9399
9400// IfNoneMatch sets the optional parameter which makes the operation
9401// fail if the object's ETag matches the given value. This is useful for
9402// getting updates only after the object has changed since the last
9403// request. Use googleapi.IsNotModified to check whether the response
9404// error from Do is the result of In-None-Match.
9405func (c *NamespacesCloudstoragesourcesListCall) IfNoneMatch(entityTag string) *NamespacesCloudstoragesourcesListCall {
9406	c.ifNoneMatch_ = entityTag
9407	return c
9408}
9409
9410// Context sets the context to be used in this call's Do method. Any
9411// pending HTTP request will be aborted if the provided context is
9412// canceled.
9413func (c *NamespacesCloudstoragesourcesListCall) Context(ctx context.Context) *NamespacesCloudstoragesourcesListCall {
9414	c.ctx_ = ctx
9415	return c
9416}
9417
9418// Header returns an http.Header that can be modified by the caller to
9419// add HTTP headers to the request.
9420func (c *NamespacesCloudstoragesourcesListCall) Header() http.Header {
9421	if c.header_ == nil {
9422		c.header_ = make(http.Header)
9423	}
9424	return c.header_
9425}
9426
9427func (c *NamespacesCloudstoragesourcesListCall) doRequest(alt string) (*http.Response, error) {
9428	reqHeaders := make(http.Header)
9429	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9430	for k, v := range c.header_ {
9431		reqHeaders[k] = v
9432	}
9433	reqHeaders.Set("User-Agent", c.s.userAgent())
9434	if c.ifNoneMatch_ != "" {
9435		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9436	}
9437	var body io.Reader = nil
9438	c.urlParams_.Set("alt", alt)
9439	c.urlParams_.Set("prettyPrint", "false")
9440	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources")
9441	urls += "?" + c.urlParams_.Encode()
9442	req, err := http.NewRequest("GET", urls, body)
9443	if err != nil {
9444		return nil, err
9445	}
9446	req.Header = reqHeaders
9447	googleapi.Expand(req.URL, map[string]string{
9448		"parent": c.parent,
9449	})
9450	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9451}
9452
9453// Do executes the "run.namespaces.cloudstoragesources.list" call.
9454// Exactly one of *ListCloudStorageSourcesResponse or error will be
9455// non-nil. Any non-2xx status code is an error. Response headers are in
9456// either *ListCloudStorageSourcesResponse.ServerResponse.Header or (if
9457// a response was returned at all) in error.(*googleapi.Error).Header.
9458// Use googleapi.IsNotModified to check whether the returned error was
9459// because http.StatusNotModified was returned.
9460func (c *NamespacesCloudstoragesourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudStorageSourcesResponse, error) {
9461	gensupport.SetOptions(c.urlParams_, opts...)
9462	res, err := c.doRequest("json")
9463	if res != nil && res.StatusCode == http.StatusNotModified {
9464		if res.Body != nil {
9465			res.Body.Close()
9466		}
9467		return nil, &googleapi.Error{
9468			Code:   res.StatusCode,
9469			Header: res.Header,
9470		}
9471	}
9472	if err != nil {
9473		return nil, err
9474	}
9475	defer googleapi.CloseBody(res)
9476	if err := googleapi.CheckResponse(res); err != nil {
9477		return nil, err
9478	}
9479	ret := &ListCloudStorageSourcesResponse{
9480		ServerResponse: googleapi.ServerResponse{
9481			Header:         res.Header,
9482			HTTPStatusCode: res.StatusCode,
9483		},
9484	}
9485	target := &ret
9486	if err := gensupport.DecodeResponse(target, res); err != nil {
9487		return nil, err
9488	}
9489	return ret, nil
9490	// {
9491	//   "description": "Rpc to list cloudstoragesources.",
9492	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudstoragesources",
9493	//   "httpMethod": "GET",
9494	//   "id": "run.namespaces.cloudstoragesources.list",
9495	//   "parameterOrder": [
9496	//     "parent"
9497	//   ],
9498	//   "parameters": {
9499	//     "continue": {
9500	//       "description": "Optional encoded string to continue paging.",
9501	//       "location": "query",
9502	//       "type": "string"
9503	//     },
9504	//     "fieldSelector": {
9505	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
9506	//       "location": "query",
9507	//       "type": "string"
9508	//     },
9509	//     "includeUninitialized": {
9510	//       "description": "Not currently used by Cloud Run.",
9511	//       "location": "query",
9512	//       "type": "boolean"
9513	//     },
9514	//     "labelSelector": {
9515	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
9516	//       "location": "query",
9517	//       "type": "string"
9518	//     },
9519	//     "limit": {
9520	//       "description": "The maximum number of records that should be returned.",
9521	//       "format": "int32",
9522	//       "location": "query",
9523	//       "type": "integer"
9524	//     },
9525	//     "parent": {
9526	//       "description": "Required. The project ID or project number from which the cloudstoragesources should\nbe listed.",
9527	//       "location": "path",
9528	//       "pattern": "^namespaces/[^/]+$",
9529	//       "required": true,
9530	//       "type": "string"
9531	//     },
9532	//     "resourceVersion": {
9533	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
9534	//       "location": "query",
9535	//       "type": "string"
9536	//     },
9537	//     "watch": {
9538	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
9539	//       "location": "query",
9540	//       "type": "boolean"
9541	//     }
9542	//   },
9543	//   "path": "apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources",
9544	//   "response": {
9545	//     "$ref": "ListCloudStorageSourcesResponse"
9546	//   },
9547	//   "scopes": [
9548	//     "https://www.googleapis.com/auth/cloud-platform"
9549	//   ]
9550	// }
9551
9552}
9553
9554// method id "run.namespaces.cloudstoragesources.replaceCloudStorageSource":
9555
9556type NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall struct {
9557	s                  *APIService
9558	name               string
9559	cloudstoragesource *CloudStorageSource
9560	urlParams_         gensupport.URLParams
9561	ctx_               context.Context
9562	header_            http.Header
9563}
9564
9565// ReplaceCloudStorageSource: Rpc to replace a cloudstoragesource.
9566//
9567// Only the spec and metadata labels and annotations are modifiable.
9568// After
9569// the Update request, Cloud Run will work to make the 'status'
9570// match the requested 'spec'.
9571//
9572// May provide metadata.resourceVersion to enforce update from last read
9573// for
9574// optimistic concurrency control.
9575func (r *NamespacesCloudstoragesourcesService) ReplaceCloudStorageSource(name string, cloudstoragesource *CloudStorageSource) *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall {
9576	c := &NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9577	c.name = name
9578	c.cloudstoragesource = cloudstoragesource
9579	return c
9580}
9581
9582// Fields allows partial responses to be retrieved. See
9583// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9584// for more information.
9585func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) Fields(s ...googleapi.Field) *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall {
9586	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9587	return c
9588}
9589
9590// Context sets the context to be used in this call's Do method. Any
9591// pending HTTP request will be aborted if the provided context is
9592// canceled.
9593func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) Context(ctx context.Context) *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall {
9594	c.ctx_ = ctx
9595	return c
9596}
9597
9598// Header returns an http.Header that can be modified by the caller to
9599// add HTTP headers to the request.
9600func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) Header() http.Header {
9601	if c.header_ == nil {
9602		c.header_ = make(http.Header)
9603	}
9604	return c.header_
9605}
9606
9607func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) doRequest(alt string) (*http.Response, error) {
9608	reqHeaders := make(http.Header)
9609	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9610	for k, v := range c.header_ {
9611		reqHeaders[k] = v
9612	}
9613	reqHeaders.Set("User-Agent", c.s.userAgent())
9614	var body io.Reader = nil
9615	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudstoragesource)
9616	if err != nil {
9617		return nil, err
9618	}
9619	reqHeaders.Set("Content-Type", "application/json")
9620	c.urlParams_.Set("alt", alt)
9621	c.urlParams_.Set("prettyPrint", "false")
9622	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/events.cloud.google.com/v1alpha1/{+name}")
9623	urls += "?" + c.urlParams_.Encode()
9624	req, err := http.NewRequest("PUT", urls, body)
9625	if err != nil {
9626		return nil, err
9627	}
9628	req.Header = reqHeaders
9629	googleapi.Expand(req.URL, map[string]string{
9630		"name": c.name,
9631	})
9632	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9633}
9634
9635// Do executes the "run.namespaces.cloudstoragesources.replaceCloudStorageSource" call.
9636// Exactly one of *CloudStorageSource or error will be non-nil. Any
9637// non-2xx status code is an error. Response headers are in either
9638// *CloudStorageSource.ServerResponse.Header or (if a response was
9639// returned at all) in error.(*googleapi.Error).Header. Use
9640// googleapi.IsNotModified to check whether the returned error was
9641// because http.StatusNotModified was returned.
9642func (c *NamespacesCloudstoragesourcesReplaceCloudStorageSourceCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
9643	gensupport.SetOptions(c.urlParams_, opts...)
9644	res, err := c.doRequest("json")
9645	if res != nil && res.StatusCode == http.StatusNotModified {
9646		if res.Body != nil {
9647			res.Body.Close()
9648		}
9649		return nil, &googleapi.Error{
9650			Code:   res.StatusCode,
9651			Header: res.Header,
9652		}
9653	}
9654	if err != nil {
9655		return nil, err
9656	}
9657	defer googleapi.CloseBody(res)
9658	if err := googleapi.CheckResponse(res); err != nil {
9659		return nil, err
9660	}
9661	ret := &CloudStorageSource{
9662		ServerResponse: googleapi.ServerResponse{
9663			Header:         res.Header,
9664			HTTPStatusCode: res.StatusCode,
9665		},
9666	}
9667	target := &ret
9668	if err := gensupport.DecodeResponse(target, res); err != nil {
9669		return nil, err
9670	}
9671	return ret, nil
9672	// {
9673	//   "description": "Rpc to replace a cloudstoragesource.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
9674	//   "flatPath": "apis/events.cloud.google.com/v1alpha1/namespaces/{namespacesId}/cloudstoragesources/{cloudstoragesourcesId}",
9675	//   "httpMethod": "PUT",
9676	//   "id": "run.namespaces.cloudstoragesources.replaceCloudStorageSource",
9677	//   "parameterOrder": [
9678	//     "name"
9679	//   ],
9680	//   "parameters": {
9681	//     "name": {
9682	//       "description": "Required. The name of the cloudstoragesource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
9683	//       "location": "path",
9684	//       "pattern": "^namespaces/[^/]+/cloudstoragesources/[^/]+$",
9685	//       "required": true,
9686	//       "type": "string"
9687	//     }
9688	//   },
9689	//   "path": "apis/events.cloud.google.com/v1alpha1/{+name}",
9690	//   "request": {
9691	//     "$ref": "CloudStorageSource"
9692	//   },
9693	//   "response": {
9694	//     "$ref": "CloudStorageSource"
9695	//   },
9696	//   "scopes": [
9697	//     "https://www.googleapis.com/auth/cloud-platform"
9698	//   ]
9699	// }
9700
9701}
9702
9703// method id "run.namespaces.configurations.get":
9704
9705type NamespacesConfigurationsGetCall struct {
9706	s            *APIService
9707	name         string
9708	urlParams_   gensupport.URLParams
9709	ifNoneMatch_ string
9710	ctx_         context.Context
9711	header_      http.Header
9712}
9713
9714// Get: Rpc to get information about a configuration.
9715func (r *NamespacesConfigurationsService) Get(name string) *NamespacesConfigurationsGetCall {
9716	c := &NamespacesConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9717	c.name = name
9718	return c
9719}
9720
9721// Fields allows partial responses to be retrieved. See
9722// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9723// for more information.
9724func (c *NamespacesConfigurationsGetCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsGetCall {
9725	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9726	return c
9727}
9728
9729// IfNoneMatch sets the optional parameter which makes the operation
9730// fail if the object's ETag matches the given value. This is useful for
9731// getting updates only after the object has changed since the last
9732// request. Use googleapi.IsNotModified to check whether the response
9733// error from Do is the result of In-None-Match.
9734func (c *NamespacesConfigurationsGetCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsGetCall {
9735	c.ifNoneMatch_ = entityTag
9736	return c
9737}
9738
9739// Context sets the context to be used in this call's Do method. Any
9740// pending HTTP request will be aborted if the provided context is
9741// canceled.
9742func (c *NamespacesConfigurationsGetCall) Context(ctx context.Context) *NamespacesConfigurationsGetCall {
9743	c.ctx_ = ctx
9744	return c
9745}
9746
9747// Header returns an http.Header that can be modified by the caller to
9748// add HTTP headers to the request.
9749func (c *NamespacesConfigurationsGetCall) Header() http.Header {
9750	if c.header_ == nil {
9751		c.header_ = make(http.Header)
9752	}
9753	return c.header_
9754}
9755
9756func (c *NamespacesConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
9757	reqHeaders := make(http.Header)
9758	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9759	for k, v := range c.header_ {
9760		reqHeaders[k] = v
9761	}
9762	reqHeaders.Set("User-Agent", c.s.userAgent())
9763	if c.ifNoneMatch_ != "" {
9764		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9765	}
9766	var body io.Reader = nil
9767	c.urlParams_.Set("alt", alt)
9768	c.urlParams_.Set("prettyPrint", "false")
9769	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
9770	urls += "?" + c.urlParams_.Encode()
9771	req, err := http.NewRequest("GET", urls, body)
9772	if err != nil {
9773		return nil, err
9774	}
9775	req.Header = reqHeaders
9776	googleapi.Expand(req.URL, map[string]string{
9777		"name": c.name,
9778	})
9779	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9780}
9781
9782// Do executes the "run.namespaces.configurations.get" call.
9783// Exactly one of *Configuration or error will be non-nil. Any non-2xx
9784// status code is an error. Response headers are in either
9785// *Configuration.ServerResponse.Header or (if a response was returned
9786// at all) in error.(*googleapi.Error).Header. Use
9787// googleapi.IsNotModified to check whether the returned error was
9788// because http.StatusNotModified was returned.
9789func (c *NamespacesConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
9790	gensupport.SetOptions(c.urlParams_, opts...)
9791	res, err := c.doRequest("json")
9792	if res != nil && res.StatusCode == http.StatusNotModified {
9793		if res.Body != nil {
9794			res.Body.Close()
9795		}
9796		return nil, &googleapi.Error{
9797			Code:   res.StatusCode,
9798			Header: res.Header,
9799		}
9800	}
9801	if err != nil {
9802		return nil, err
9803	}
9804	defer googleapi.CloseBody(res)
9805	if err := googleapi.CheckResponse(res); err != nil {
9806		return nil, err
9807	}
9808	ret := &Configuration{
9809		ServerResponse: googleapi.ServerResponse{
9810			Header:         res.Header,
9811			HTTPStatusCode: res.StatusCode,
9812		},
9813	}
9814	target := &ret
9815	if err := gensupport.DecodeResponse(target, res); err != nil {
9816		return nil, err
9817	}
9818	return ret, nil
9819	// {
9820	//   "description": "Rpc to get information about a configuration.",
9821	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/configurations/{configurationsId}",
9822	//   "httpMethod": "GET",
9823	//   "id": "run.namespaces.configurations.get",
9824	//   "parameterOrder": [
9825	//     "name"
9826	//   ],
9827	//   "parameters": {
9828	//     "name": {
9829	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
9830	//       "location": "path",
9831	//       "pattern": "^namespaces/[^/]+/configurations/[^/]+$",
9832	//       "required": true,
9833	//       "type": "string"
9834	//     }
9835	//   },
9836	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
9837	//   "response": {
9838	//     "$ref": "Configuration"
9839	//   },
9840	//   "scopes": [
9841	//     "https://www.googleapis.com/auth/cloud-platform"
9842	//   ]
9843	// }
9844
9845}
9846
9847// method id "run.namespaces.configurations.list":
9848
9849type NamespacesConfigurationsListCall struct {
9850	s            *APIService
9851	parent       string
9852	urlParams_   gensupport.URLParams
9853	ifNoneMatch_ string
9854	ctx_         context.Context
9855	header_      http.Header
9856}
9857
9858// List: Rpc to list configurations.
9859func (r *NamespacesConfigurationsService) List(parent string) *NamespacesConfigurationsListCall {
9860	c := &NamespacesConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9861	c.parent = parent
9862	return c
9863}
9864
9865// Continue sets the optional parameter "continue": Optional encoded
9866// string to continue paging.
9867func (c *NamespacesConfigurationsListCall) Continue(continue_ string) *NamespacesConfigurationsListCall {
9868	c.urlParams_.Set("continue", continue_)
9869	return c
9870}
9871
9872// FieldSelector sets the optional parameter "fieldSelector": Allows to
9873// filter resources based on a specific value for a field name.
9874// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
9875// Not currently used by Cloud Run.
9876func (c *NamespacesConfigurationsListCall) FieldSelector(fieldSelector string) *NamespacesConfigurationsListCall {
9877	c.urlParams_.Set("fieldSelector", fieldSelector)
9878	return c
9879}
9880
9881// IncludeUninitialized sets the optional parameter
9882// "includeUninitialized": Not currently used by Cloud Run.
9883func (c *NamespacesConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesConfigurationsListCall {
9884	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
9885	return c
9886}
9887
9888// LabelSelector sets the optional parameter "labelSelector": Allows to
9889// filter resources based on a label. Supported operations are
9890// =, !=, exists, in, and notIn.
9891func (c *NamespacesConfigurationsListCall) LabelSelector(labelSelector string) *NamespacesConfigurationsListCall {
9892	c.urlParams_.Set("labelSelector", labelSelector)
9893	return c
9894}
9895
9896// Limit sets the optional parameter "limit": The maximum number of
9897// records that should be returned.
9898func (c *NamespacesConfigurationsListCall) Limit(limit int64) *NamespacesConfigurationsListCall {
9899	c.urlParams_.Set("limit", fmt.Sprint(limit))
9900	return c
9901}
9902
9903// ResourceVersion sets the optional parameter "resourceVersion": The
9904// baseline resource version from which the list or watch operation
9905// should
9906// start. Not currently used by Cloud Run.
9907func (c *NamespacesConfigurationsListCall) ResourceVersion(resourceVersion string) *NamespacesConfigurationsListCall {
9908	c.urlParams_.Set("resourceVersion", resourceVersion)
9909	return c
9910}
9911
9912// Watch sets the optional parameter "watch": Flag that indicates that
9913// the client expects to watch this resource as well.
9914// Not currently used by Cloud Run.
9915func (c *NamespacesConfigurationsListCall) Watch(watch bool) *NamespacesConfigurationsListCall {
9916	c.urlParams_.Set("watch", fmt.Sprint(watch))
9917	return c
9918}
9919
9920// Fields allows partial responses to be retrieved. See
9921// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9922// for more information.
9923func (c *NamespacesConfigurationsListCall) Fields(s ...googleapi.Field) *NamespacesConfigurationsListCall {
9924	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9925	return c
9926}
9927
9928// IfNoneMatch sets the optional parameter which makes the operation
9929// fail if the object's ETag matches the given value. This is useful for
9930// getting updates only after the object has changed since the last
9931// request. Use googleapi.IsNotModified to check whether the response
9932// error from Do is the result of In-None-Match.
9933func (c *NamespacesConfigurationsListCall) IfNoneMatch(entityTag string) *NamespacesConfigurationsListCall {
9934	c.ifNoneMatch_ = entityTag
9935	return c
9936}
9937
9938// Context sets the context to be used in this call's Do method. Any
9939// pending HTTP request will be aborted if the provided context is
9940// canceled.
9941func (c *NamespacesConfigurationsListCall) Context(ctx context.Context) *NamespacesConfigurationsListCall {
9942	c.ctx_ = ctx
9943	return c
9944}
9945
9946// Header returns an http.Header that can be modified by the caller to
9947// add HTTP headers to the request.
9948func (c *NamespacesConfigurationsListCall) Header() http.Header {
9949	if c.header_ == nil {
9950		c.header_ = make(http.Header)
9951	}
9952	return c.header_
9953}
9954
9955func (c *NamespacesConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
9956	reqHeaders := make(http.Header)
9957	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
9958	for k, v := range c.header_ {
9959		reqHeaders[k] = v
9960	}
9961	reqHeaders.Set("User-Agent", c.s.userAgent())
9962	if c.ifNoneMatch_ != "" {
9963		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9964	}
9965	var body io.Reader = nil
9966	c.urlParams_.Set("alt", alt)
9967	c.urlParams_.Set("prettyPrint", "false")
9968	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+parent}/configurations")
9969	urls += "?" + c.urlParams_.Encode()
9970	req, err := http.NewRequest("GET", urls, body)
9971	if err != nil {
9972		return nil, err
9973	}
9974	req.Header = reqHeaders
9975	googleapi.Expand(req.URL, map[string]string{
9976		"parent": c.parent,
9977	})
9978	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9979}
9980
9981// Do executes the "run.namespaces.configurations.list" call.
9982// Exactly one of *ListConfigurationsResponse or error will be non-nil.
9983// Any non-2xx status code is an error. Response headers are in either
9984// *ListConfigurationsResponse.ServerResponse.Header or (if a response
9985// was returned at all) in error.(*googleapi.Error).Header. Use
9986// googleapi.IsNotModified to check whether the returned error was
9987// because http.StatusNotModified was returned.
9988func (c *NamespacesConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
9989	gensupport.SetOptions(c.urlParams_, opts...)
9990	res, err := c.doRequest("json")
9991	if res != nil && res.StatusCode == http.StatusNotModified {
9992		if res.Body != nil {
9993			res.Body.Close()
9994		}
9995		return nil, &googleapi.Error{
9996			Code:   res.StatusCode,
9997			Header: res.Header,
9998		}
9999	}
10000	if err != nil {
10001		return nil, err
10002	}
10003	defer googleapi.CloseBody(res)
10004	if err := googleapi.CheckResponse(res); err != nil {
10005		return nil, err
10006	}
10007	ret := &ListConfigurationsResponse{
10008		ServerResponse: googleapi.ServerResponse{
10009			Header:         res.Header,
10010			HTTPStatusCode: res.StatusCode,
10011		},
10012	}
10013	target := &ret
10014	if err := gensupport.DecodeResponse(target, res); err != nil {
10015		return nil, err
10016	}
10017	return ret, nil
10018	// {
10019	//   "description": "Rpc to list configurations.",
10020	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/configurations",
10021	//   "httpMethod": "GET",
10022	//   "id": "run.namespaces.configurations.list",
10023	//   "parameterOrder": [
10024	//     "parent"
10025	//   ],
10026	//   "parameters": {
10027	//     "continue": {
10028	//       "description": "Optional encoded string to continue paging.",
10029	//       "location": "query",
10030	//       "type": "string"
10031	//     },
10032	//     "fieldSelector": {
10033	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
10034	//       "location": "query",
10035	//       "type": "string"
10036	//     },
10037	//     "includeUninitialized": {
10038	//       "description": "Not currently used by Cloud Run.",
10039	//       "location": "query",
10040	//       "type": "boolean"
10041	//     },
10042	//     "labelSelector": {
10043	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
10044	//       "location": "query",
10045	//       "type": "string"
10046	//     },
10047	//     "limit": {
10048	//       "description": "The maximum number of records that should be returned.",
10049	//       "format": "int32",
10050	//       "location": "query",
10051	//       "type": "integer"
10052	//     },
10053	//     "parent": {
10054	//       "description": "The project ID or project number from which the configurations should be\nlisted.",
10055	//       "location": "path",
10056	//       "pattern": "^namespaces/[^/]+$",
10057	//       "required": true,
10058	//       "type": "string"
10059	//     },
10060	//     "resourceVersion": {
10061	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
10062	//       "location": "query",
10063	//       "type": "string"
10064	//     },
10065	//     "watch": {
10066	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
10067	//       "location": "query",
10068	//       "type": "boolean"
10069	//     }
10070	//   },
10071	//   "path": "apis/serving.knative.dev/v1alpha1/{+parent}/configurations",
10072	//   "response": {
10073	//     "$ref": "ListConfigurationsResponse"
10074	//   },
10075	//   "scopes": [
10076	//     "https://www.googleapis.com/auth/cloud-platform"
10077	//   ]
10078	// }
10079
10080}
10081
10082// method id "run.namespaces.domainmappings.create":
10083
10084type NamespacesDomainmappingsCreateCall struct {
10085	s             *APIService
10086	parent        string
10087	domainmapping *DomainMapping
10088	urlParams_    gensupport.URLParams
10089	ctx_          context.Context
10090	header_       http.Header
10091}
10092
10093// Create: Creates a new domain mapping.
10094func (r *NamespacesDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *NamespacesDomainmappingsCreateCall {
10095	c := &NamespacesDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10096	c.parent = parent
10097	c.domainmapping = domainmapping
10098	return c
10099}
10100
10101// Fields allows partial responses to be retrieved. See
10102// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10103// for more information.
10104func (c *NamespacesDomainmappingsCreateCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsCreateCall {
10105	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10106	return c
10107}
10108
10109// Context sets the context to be used in this call's Do method. Any
10110// pending HTTP request will be aborted if the provided context is
10111// canceled.
10112func (c *NamespacesDomainmappingsCreateCall) Context(ctx context.Context) *NamespacesDomainmappingsCreateCall {
10113	c.ctx_ = ctx
10114	return c
10115}
10116
10117// Header returns an http.Header that can be modified by the caller to
10118// add HTTP headers to the request.
10119func (c *NamespacesDomainmappingsCreateCall) Header() http.Header {
10120	if c.header_ == nil {
10121		c.header_ = make(http.Header)
10122	}
10123	return c.header_
10124}
10125
10126func (c *NamespacesDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
10127	reqHeaders := make(http.Header)
10128	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
10129	for k, v := range c.header_ {
10130		reqHeaders[k] = v
10131	}
10132	reqHeaders.Set("User-Agent", c.s.userAgent())
10133	var body io.Reader = nil
10134	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
10135	if err != nil {
10136		return nil, err
10137	}
10138	reqHeaders.Set("Content-Type", "application/json")
10139	c.urlParams_.Set("alt", alt)
10140	c.urlParams_.Set("prettyPrint", "false")
10141	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings")
10142	urls += "?" + c.urlParams_.Encode()
10143	req, err := http.NewRequest("POST", urls, body)
10144	if err != nil {
10145		return nil, err
10146	}
10147	req.Header = reqHeaders
10148	googleapi.Expand(req.URL, map[string]string{
10149		"parent": c.parent,
10150	})
10151	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10152}
10153
10154// Do executes the "run.namespaces.domainmappings.create" call.
10155// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
10156// status code is an error. Response headers are in either
10157// *DomainMapping.ServerResponse.Header or (if a response was returned
10158// at all) in error.(*googleapi.Error).Header. Use
10159// googleapi.IsNotModified to check whether the returned error was
10160// because http.StatusNotModified was returned.
10161func (c *NamespacesDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
10162	gensupport.SetOptions(c.urlParams_, opts...)
10163	res, err := c.doRequest("json")
10164	if res != nil && res.StatusCode == http.StatusNotModified {
10165		if res.Body != nil {
10166			res.Body.Close()
10167		}
10168		return nil, &googleapi.Error{
10169			Code:   res.StatusCode,
10170			Header: res.Header,
10171		}
10172	}
10173	if err != nil {
10174		return nil, err
10175	}
10176	defer googleapi.CloseBody(res)
10177	if err := googleapi.CheckResponse(res); err != nil {
10178		return nil, err
10179	}
10180	ret := &DomainMapping{
10181		ServerResponse: googleapi.ServerResponse{
10182			Header:         res.Header,
10183			HTTPStatusCode: res.StatusCode,
10184		},
10185	}
10186	target := &ret
10187	if err := gensupport.DecodeResponse(target, res); err != nil {
10188		return nil, err
10189	}
10190	return ret, nil
10191	// {
10192	//   "description": "Creates a new domain mapping.",
10193	//   "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings",
10194	//   "httpMethod": "POST",
10195	//   "id": "run.namespaces.domainmappings.create",
10196	//   "parameterOrder": [
10197	//     "parent"
10198	//   ],
10199	//   "parameters": {
10200	//     "parent": {
10201	//       "description": "The project ID or project number in which this domain mapping should be\ncreated.",
10202	//       "location": "path",
10203	//       "pattern": "^namespaces/[^/]+$",
10204	//       "required": true,
10205	//       "type": "string"
10206	//     }
10207	//   },
10208	//   "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings",
10209	//   "request": {
10210	//     "$ref": "DomainMapping"
10211	//   },
10212	//   "response": {
10213	//     "$ref": "DomainMapping"
10214	//   },
10215	//   "scopes": [
10216	//     "https://www.googleapis.com/auth/cloud-platform"
10217	//   ]
10218	// }
10219
10220}
10221
10222// method id "run.namespaces.domainmappings.delete":
10223
10224type NamespacesDomainmappingsDeleteCall struct {
10225	s          *APIService
10226	name       string
10227	urlParams_ gensupport.URLParams
10228	ctx_       context.Context
10229	header_    http.Header
10230}
10231
10232// Delete: Rpc to delete a domain mapping.
10233func (r *NamespacesDomainmappingsService) Delete(name string) *NamespacesDomainmappingsDeleteCall {
10234	c := &NamespacesDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10235	c.name = name
10236	return c
10237}
10238
10239// ApiVersion sets the optional parameter "apiVersion": Cloud Run
10240// currently ignores this parameter.
10241func (c *NamespacesDomainmappingsDeleteCall) ApiVersion(apiVersion string) *NamespacesDomainmappingsDeleteCall {
10242	c.urlParams_.Set("apiVersion", apiVersion)
10243	return c
10244}
10245
10246// Kind sets the optional parameter "kind": Cloud Run currently ignores
10247// this parameter.
10248func (c *NamespacesDomainmappingsDeleteCall) Kind(kind string) *NamespacesDomainmappingsDeleteCall {
10249	c.urlParams_.Set("kind", kind)
10250	return c
10251}
10252
10253// OrphanDependents sets the optional parameter "orphanDependents":
10254// Deprecated.
10255// Specifies the cascade behavior on delete.
10256// Cloud Run only supports cascading behavior, so this must be
10257// false.
10258// This attribute is deprecated, and is now replaced with
10259// PropagationPolicy
10260// See https://github.com/kubernetes/kubernetes/issues/46659 for more
10261// info.
10262func (c *NamespacesDomainmappingsDeleteCall) OrphanDependents(orphanDependents bool) *NamespacesDomainmappingsDeleteCall {
10263	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
10264	return c
10265}
10266
10267// PropagationPolicy sets the optional parameter "propagationPolicy":
10268// Specifies the propagation policy of delete. Cloud Run currently
10269// ignores
10270// this setting, and deletes in the background. Please
10271// see
10272// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
10273// on/ for
10274// more information.
10275func (c *NamespacesDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesDomainmappingsDeleteCall {
10276	c.urlParams_.Set("propagationPolicy", propagationPolicy)
10277	return c
10278}
10279
10280// Fields allows partial responses to be retrieved. See
10281// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10282// for more information.
10283func (c *NamespacesDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsDeleteCall {
10284	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10285	return c
10286}
10287
10288// Context sets the context to be used in this call's Do method. Any
10289// pending HTTP request will be aborted if the provided context is
10290// canceled.
10291func (c *NamespacesDomainmappingsDeleteCall) Context(ctx context.Context) *NamespacesDomainmappingsDeleteCall {
10292	c.ctx_ = ctx
10293	return c
10294}
10295
10296// Header returns an http.Header that can be modified by the caller to
10297// add HTTP headers to the request.
10298func (c *NamespacesDomainmappingsDeleteCall) Header() http.Header {
10299	if c.header_ == nil {
10300		c.header_ = make(http.Header)
10301	}
10302	return c.header_
10303}
10304
10305func (c *NamespacesDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
10306	reqHeaders := make(http.Header)
10307	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
10308	for k, v := range c.header_ {
10309		reqHeaders[k] = v
10310	}
10311	reqHeaders.Set("User-Agent", c.s.userAgent())
10312	var body io.Reader = nil
10313	c.urlParams_.Set("alt", alt)
10314	c.urlParams_.Set("prettyPrint", "false")
10315	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1alpha1/{+name}")
10316	urls += "?" + c.urlParams_.Encode()
10317	req, err := http.NewRequest("DELETE", urls, body)
10318	if err != nil {
10319		return nil, err
10320	}
10321	req.Header = reqHeaders
10322	googleapi.Expand(req.URL, map[string]string{
10323		"name": c.name,
10324	})
10325	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10326}
10327
10328// Do executes the "run.namespaces.domainmappings.delete" call.
10329// Exactly one of *Empty or error will be non-nil. Any non-2xx status
10330// code is an error. Response headers are in either
10331// *Empty.ServerResponse.Header or (if a response was returned at all)
10332// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10333// check whether the returned error was because http.StatusNotModified
10334// was returned.
10335func (c *NamespacesDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10336	gensupport.SetOptions(c.urlParams_, opts...)
10337	res, err := c.doRequest("json")
10338	if res != nil && res.StatusCode == http.StatusNotModified {
10339		if res.Body != nil {
10340			res.Body.Close()
10341		}
10342		return nil, &googleapi.Error{
10343			Code:   res.StatusCode,
10344			Header: res.Header,
10345		}
10346	}
10347	if err != nil {
10348		return nil, err
10349	}
10350	defer googleapi.CloseBody(res)
10351	if err := googleapi.CheckResponse(res); err != nil {
10352		return nil, err
10353	}
10354	ret := &Empty{
10355		ServerResponse: googleapi.ServerResponse{
10356			Header:         res.Header,
10357			HTTPStatusCode: res.StatusCode,
10358		},
10359	}
10360	target := &ret
10361	if err := gensupport.DecodeResponse(target, res); err != nil {
10362		return nil, err
10363	}
10364	return ret, nil
10365	// {
10366	//   "description": "Rpc to delete a domain mapping.",
10367	//   "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}",
10368	//   "httpMethod": "DELETE",
10369	//   "id": "run.namespaces.domainmappings.delete",
10370	//   "parameterOrder": [
10371	//     "name"
10372	//   ],
10373	//   "parameters": {
10374	//     "apiVersion": {
10375	//       "description": "Cloud Run currently ignores this parameter.",
10376	//       "location": "query",
10377	//       "type": "string"
10378	//     },
10379	//     "kind": {
10380	//       "description": "Cloud Run currently ignores this parameter.",
10381	//       "location": "query",
10382	//       "type": "string"
10383	//     },
10384	//     "name": {
10385	//       "description": "The name of the domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
10386	//       "location": "path",
10387	//       "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$",
10388	//       "required": true,
10389	//       "type": "string"
10390	//     },
10391	//     "orphanDependents": {
10392	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
10393	//       "location": "query",
10394	//       "type": "boolean"
10395	//     },
10396	//     "propagationPolicy": {
10397	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
10398	//       "location": "query",
10399	//       "type": "string"
10400	//     }
10401	//   },
10402	//   "path": "apis/domains.cloudrun.com/v1alpha1/{+name}",
10403	//   "response": {
10404	//     "$ref": "Empty"
10405	//   },
10406	//   "scopes": [
10407	//     "https://www.googleapis.com/auth/cloud-platform"
10408	//   ]
10409	// }
10410
10411}
10412
10413// method id "run.namespaces.domainmappings.get":
10414
10415type NamespacesDomainmappingsGetCall struct {
10416	s            *APIService
10417	name         string
10418	urlParams_   gensupport.URLParams
10419	ifNoneMatch_ string
10420	ctx_         context.Context
10421	header_      http.Header
10422}
10423
10424// Get: Rpc to get information about a domain mapping.
10425func (r *NamespacesDomainmappingsService) Get(name string) *NamespacesDomainmappingsGetCall {
10426	c := &NamespacesDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10427	c.name = name
10428	return c
10429}
10430
10431// Fields allows partial responses to be retrieved. See
10432// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10433// for more information.
10434func (c *NamespacesDomainmappingsGetCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsGetCall {
10435	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10436	return c
10437}
10438
10439// IfNoneMatch sets the optional parameter which makes the operation
10440// fail if the object's ETag matches the given value. This is useful for
10441// getting updates only after the object has changed since the last
10442// request. Use googleapi.IsNotModified to check whether the response
10443// error from Do is the result of In-None-Match.
10444func (c *NamespacesDomainmappingsGetCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsGetCall {
10445	c.ifNoneMatch_ = entityTag
10446	return c
10447}
10448
10449// Context sets the context to be used in this call's Do method. Any
10450// pending HTTP request will be aborted if the provided context is
10451// canceled.
10452func (c *NamespacesDomainmappingsGetCall) Context(ctx context.Context) *NamespacesDomainmappingsGetCall {
10453	c.ctx_ = ctx
10454	return c
10455}
10456
10457// Header returns an http.Header that can be modified by the caller to
10458// add HTTP headers to the request.
10459func (c *NamespacesDomainmappingsGetCall) Header() http.Header {
10460	if c.header_ == nil {
10461		c.header_ = make(http.Header)
10462	}
10463	return c.header_
10464}
10465
10466func (c *NamespacesDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
10467	reqHeaders := make(http.Header)
10468	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
10469	for k, v := range c.header_ {
10470		reqHeaders[k] = v
10471	}
10472	reqHeaders.Set("User-Agent", c.s.userAgent())
10473	if c.ifNoneMatch_ != "" {
10474		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10475	}
10476	var body io.Reader = nil
10477	c.urlParams_.Set("alt", alt)
10478	c.urlParams_.Set("prettyPrint", "false")
10479	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1alpha1/{+name}")
10480	urls += "?" + c.urlParams_.Encode()
10481	req, err := http.NewRequest("GET", urls, body)
10482	if err != nil {
10483		return nil, err
10484	}
10485	req.Header = reqHeaders
10486	googleapi.Expand(req.URL, map[string]string{
10487		"name": c.name,
10488	})
10489	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10490}
10491
10492// Do executes the "run.namespaces.domainmappings.get" call.
10493// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
10494// status code is an error. Response headers are in either
10495// *DomainMapping.ServerResponse.Header or (if a response was returned
10496// at all) in error.(*googleapi.Error).Header. Use
10497// googleapi.IsNotModified to check whether the returned error was
10498// because http.StatusNotModified was returned.
10499func (c *NamespacesDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
10500	gensupport.SetOptions(c.urlParams_, opts...)
10501	res, err := c.doRequest("json")
10502	if res != nil && res.StatusCode == http.StatusNotModified {
10503		if res.Body != nil {
10504			res.Body.Close()
10505		}
10506		return nil, &googleapi.Error{
10507			Code:   res.StatusCode,
10508			Header: res.Header,
10509		}
10510	}
10511	if err != nil {
10512		return nil, err
10513	}
10514	defer googleapi.CloseBody(res)
10515	if err := googleapi.CheckResponse(res); err != nil {
10516		return nil, err
10517	}
10518	ret := &DomainMapping{
10519		ServerResponse: googleapi.ServerResponse{
10520			Header:         res.Header,
10521			HTTPStatusCode: res.StatusCode,
10522		},
10523	}
10524	target := &ret
10525	if err := gensupport.DecodeResponse(target, res); err != nil {
10526		return nil, err
10527	}
10528	return ret, nil
10529	// {
10530	//   "description": "Rpc to get information about a domain mapping.",
10531	//   "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}",
10532	//   "httpMethod": "GET",
10533	//   "id": "run.namespaces.domainmappings.get",
10534	//   "parameterOrder": [
10535	//     "name"
10536	//   ],
10537	//   "parameters": {
10538	//     "name": {
10539	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
10540	//       "location": "path",
10541	//       "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$",
10542	//       "required": true,
10543	//       "type": "string"
10544	//     }
10545	//   },
10546	//   "path": "apis/domains.cloudrun.com/v1alpha1/{+name}",
10547	//   "response": {
10548	//     "$ref": "DomainMapping"
10549	//   },
10550	//   "scopes": [
10551	//     "https://www.googleapis.com/auth/cloud-platform"
10552	//   ]
10553	// }
10554
10555}
10556
10557// method id "run.namespaces.domainmappings.list":
10558
10559type NamespacesDomainmappingsListCall struct {
10560	s            *APIService
10561	parent       string
10562	urlParams_   gensupport.URLParams
10563	ifNoneMatch_ string
10564	ctx_         context.Context
10565	header_      http.Header
10566}
10567
10568// List: Rpc to list domain mappings.
10569func (r *NamespacesDomainmappingsService) List(parent string) *NamespacesDomainmappingsListCall {
10570	c := &NamespacesDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10571	c.parent = parent
10572	return c
10573}
10574
10575// Continue sets the optional parameter "continue": Optional encoded
10576// string to continue paging.
10577func (c *NamespacesDomainmappingsListCall) Continue(continue_ string) *NamespacesDomainmappingsListCall {
10578	c.urlParams_.Set("continue", continue_)
10579	return c
10580}
10581
10582// FieldSelector sets the optional parameter "fieldSelector": Allows to
10583// filter resources based on a specific value for a field name.
10584// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
10585// Not currently used by Cloud Run.
10586func (c *NamespacesDomainmappingsListCall) FieldSelector(fieldSelector string) *NamespacesDomainmappingsListCall {
10587	c.urlParams_.Set("fieldSelector", fieldSelector)
10588	return c
10589}
10590
10591// IncludeUninitialized sets the optional parameter
10592// "includeUninitialized": Not currently used by Cloud Run.
10593func (c *NamespacesDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesDomainmappingsListCall {
10594	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
10595	return c
10596}
10597
10598// LabelSelector sets the optional parameter "labelSelector": Allows to
10599// filter resources based on a label. Supported operations are
10600// =, !=, exists, in, and notIn.
10601func (c *NamespacesDomainmappingsListCall) LabelSelector(labelSelector string) *NamespacesDomainmappingsListCall {
10602	c.urlParams_.Set("labelSelector", labelSelector)
10603	return c
10604}
10605
10606// Limit sets the optional parameter "limit": The maximum number of
10607// records that should be returned.
10608func (c *NamespacesDomainmappingsListCall) Limit(limit int64) *NamespacesDomainmappingsListCall {
10609	c.urlParams_.Set("limit", fmt.Sprint(limit))
10610	return c
10611}
10612
10613// ResourceVersion sets the optional parameter "resourceVersion": The
10614// baseline resource version from which the list or watch operation
10615// should
10616// start. Not currently used by Cloud Run.
10617func (c *NamespacesDomainmappingsListCall) ResourceVersion(resourceVersion string) *NamespacesDomainmappingsListCall {
10618	c.urlParams_.Set("resourceVersion", resourceVersion)
10619	return c
10620}
10621
10622// Watch sets the optional parameter "watch": Flag that indicates that
10623// the client expects to watch this resource as well.
10624// Not currently used by Cloud Run.
10625func (c *NamespacesDomainmappingsListCall) Watch(watch bool) *NamespacesDomainmappingsListCall {
10626	c.urlParams_.Set("watch", fmt.Sprint(watch))
10627	return c
10628}
10629
10630// Fields allows partial responses to be retrieved. See
10631// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10632// for more information.
10633func (c *NamespacesDomainmappingsListCall) Fields(s ...googleapi.Field) *NamespacesDomainmappingsListCall {
10634	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10635	return c
10636}
10637
10638// IfNoneMatch sets the optional parameter which makes the operation
10639// fail if the object's ETag matches the given value. This is useful for
10640// getting updates only after the object has changed since the last
10641// request. Use googleapi.IsNotModified to check whether the response
10642// error from Do is the result of In-None-Match.
10643func (c *NamespacesDomainmappingsListCall) IfNoneMatch(entityTag string) *NamespacesDomainmappingsListCall {
10644	c.ifNoneMatch_ = entityTag
10645	return c
10646}
10647
10648// Context sets the context to be used in this call's Do method. Any
10649// pending HTTP request will be aborted if the provided context is
10650// canceled.
10651func (c *NamespacesDomainmappingsListCall) Context(ctx context.Context) *NamespacesDomainmappingsListCall {
10652	c.ctx_ = ctx
10653	return c
10654}
10655
10656// Header returns an http.Header that can be modified by the caller to
10657// add HTTP headers to the request.
10658func (c *NamespacesDomainmappingsListCall) Header() http.Header {
10659	if c.header_ == nil {
10660		c.header_ = make(http.Header)
10661	}
10662	return c.header_
10663}
10664
10665func (c *NamespacesDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
10666	reqHeaders := make(http.Header)
10667	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
10668	for k, v := range c.header_ {
10669		reqHeaders[k] = v
10670	}
10671	reqHeaders.Set("User-Agent", c.s.userAgent())
10672	if c.ifNoneMatch_ != "" {
10673		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10674	}
10675	var body io.Reader = nil
10676	c.urlParams_.Set("alt", alt)
10677	c.urlParams_.Set("prettyPrint", "false")
10678	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings")
10679	urls += "?" + c.urlParams_.Encode()
10680	req, err := http.NewRequest("GET", urls, body)
10681	if err != nil {
10682		return nil, err
10683	}
10684	req.Header = reqHeaders
10685	googleapi.Expand(req.URL, map[string]string{
10686		"parent": c.parent,
10687	})
10688	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10689}
10690
10691// Do executes the "run.namespaces.domainmappings.list" call.
10692// Exactly one of *ListDomainMappingsResponse or error will be non-nil.
10693// Any non-2xx status code is an error. Response headers are in either
10694// *ListDomainMappingsResponse.ServerResponse.Header or (if a response
10695// was returned at all) in error.(*googleapi.Error).Header. Use
10696// googleapi.IsNotModified to check whether the returned error was
10697// because http.StatusNotModified was returned.
10698func (c *NamespacesDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
10699	gensupport.SetOptions(c.urlParams_, opts...)
10700	res, err := c.doRequest("json")
10701	if res != nil && res.StatusCode == http.StatusNotModified {
10702		if res.Body != nil {
10703			res.Body.Close()
10704		}
10705		return nil, &googleapi.Error{
10706			Code:   res.StatusCode,
10707			Header: res.Header,
10708		}
10709	}
10710	if err != nil {
10711		return nil, err
10712	}
10713	defer googleapi.CloseBody(res)
10714	if err := googleapi.CheckResponse(res); err != nil {
10715		return nil, err
10716	}
10717	ret := &ListDomainMappingsResponse{
10718		ServerResponse: googleapi.ServerResponse{
10719			Header:         res.Header,
10720			HTTPStatusCode: res.StatusCode,
10721		},
10722	}
10723	target := &ret
10724	if err := gensupport.DecodeResponse(target, res); err != nil {
10725		return nil, err
10726	}
10727	return ret, nil
10728	// {
10729	//   "description": "Rpc to list domain mappings.",
10730	//   "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings",
10731	//   "httpMethod": "GET",
10732	//   "id": "run.namespaces.domainmappings.list",
10733	//   "parameterOrder": [
10734	//     "parent"
10735	//   ],
10736	//   "parameters": {
10737	//     "continue": {
10738	//       "description": "Optional encoded string to continue paging.",
10739	//       "location": "query",
10740	//       "type": "string"
10741	//     },
10742	//     "fieldSelector": {
10743	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
10744	//       "location": "query",
10745	//       "type": "string"
10746	//     },
10747	//     "includeUninitialized": {
10748	//       "description": "Not currently used by Cloud Run.",
10749	//       "location": "query",
10750	//       "type": "boolean"
10751	//     },
10752	//     "labelSelector": {
10753	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
10754	//       "location": "query",
10755	//       "type": "string"
10756	//     },
10757	//     "limit": {
10758	//       "description": "The maximum number of records that should be returned.",
10759	//       "format": "int32",
10760	//       "location": "query",
10761	//       "type": "integer"
10762	//     },
10763	//     "parent": {
10764	//       "description": "The project ID or project number from which the domain mappings should be\nlisted.",
10765	//       "location": "path",
10766	//       "pattern": "^namespaces/[^/]+$",
10767	//       "required": true,
10768	//       "type": "string"
10769	//     },
10770	//     "resourceVersion": {
10771	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
10772	//       "location": "query",
10773	//       "type": "string"
10774	//     },
10775	//     "watch": {
10776	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
10777	//       "location": "query",
10778	//       "type": "boolean"
10779	//     }
10780	//   },
10781	//   "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings",
10782	//   "response": {
10783	//     "$ref": "ListDomainMappingsResponse"
10784	//   },
10785	//   "scopes": [
10786	//     "https://www.googleapis.com/auth/cloud-platform"
10787	//   ]
10788	// }
10789
10790}
10791
10792// method id "run.namespaces.revisions.delete":
10793
10794type NamespacesRevisionsDeleteCall struct {
10795	s          *APIService
10796	name       string
10797	urlParams_ gensupport.URLParams
10798	ctx_       context.Context
10799	header_    http.Header
10800}
10801
10802// Delete: Rpc to delete a revision.
10803func (r *NamespacesRevisionsService) Delete(name string) *NamespacesRevisionsDeleteCall {
10804	c := &NamespacesRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10805	c.name = name
10806	return c
10807}
10808
10809// ApiVersion sets the optional parameter "apiVersion": Cloud Run
10810// currently ignores this parameter.
10811func (c *NamespacesRevisionsDeleteCall) ApiVersion(apiVersion string) *NamespacesRevisionsDeleteCall {
10812	c.urlParams_.Set("apiVersion", apiVersion)
10813	return c
10814}
10815
10816// Kind sets the optional parameter "kind": Cloud Run currently ignores
10817// this parameter.
10818func (c *NamespacesRevisionsDeleteCall) Kind(kind string) *NamespacesRevisionsDeleteCall {
10819	c.urlParams_.Set("kind", kind)
10820	return c
10821}
10822
10823// OrphanDependents sets the optional parameter "orphanDependents":
10824// Deprecated.
10825// Specifies the cascade behavior on delete.
10826// Cloud Run only supports cascading behavior, so this must be
10827// false.
10828// This attribute is deprecated, and is now replaced with
10829// PropagationPolicy
10830// See https://github.com/kubernetes/kubernetes/issues/46659 for more
10831// info.
10832func (c *NamespacesRevisionsDeleteCall) OrphanDependents(orphanDependents bool) *NamespacesRevisionsDeleteCall {
10833	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
10834	return c
10835}
10836
10837// PropagationPolicy sets the optional parameter "propagationPolicy":
10838// Specifies the propagation policy of delete. Cloud Run currently
10839// ignores
10840// this setting, and deletes in the background. Please
10841// see
10842// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
10843// on/ for
10844// more information.
10845func (c *NamespacesRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesRevisionsDeleteCall {
10846	c.urlParams_.Set("propagationPolicy", propagationPolicy)
10847	return c
10848}
10849
10850// Fields allows partial responses to be retrieved. See
10851// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
10852// for more information.
10853func (c *NamespacesRevisionsDeleteCall) Fields(s ...googleapi.Field) *NamespacesRevisionsDeleteCall {
10854	c.urlParams_.Set("fields", googleapi.CombineFields(s))
10855	return c
10856}
10857
10858// Context sets the context to be used in this call's Do method. Any
10859// pending HTTP request will be aborted if the provided context is
10860// canceled.
10861func (c *NamespacesRevisionsDeleteCall) Context(ctx context.Context) *NamespacesRevisionsDeleteCall {
10862	c.ctx_ = ctx
10863	return c
10864}
10865
10866// Header returns an http.Header that can be modified by the caller to
10867// add HTTP headers to the request.
10868func (c *NamespacesRevisionsDeleteCall) Header() http.Header {
10869	if c.header_ == nil {
10870		c.header_ = make(http.Header)
10871	}
10872	return c.header_
10873}
10874
10875func (c *NamespacesRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
10876	reqHeaders := make(http.Header)
10877	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
10878	for k, v := range c.header_ {
10879		reqHeaders[k] = v
10880	}
10881	reqHeaders.Set("User-Agent", c.s.userAgent())
10882	var body io.Reader = nil
10883	c.urlParams_.Set("alt", alt)
10884	c.urlParams_.Set("prettyPrint", "false")
10885	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
10886	urls += "?" + c.urlParams_.Encode()
10887	req, err := http.NewRequest("DELETE", urls, body)
10888	if err != nil {
10889		return nil, err
10890	}
10891	req.Header = reqHeaders
10892	googleapi.Expand(req.URL, map[string]string{
10893		"name": c.name,
10894	})
10895	return gensupport.SendRequest(c.ctx_, c.s.client, req)
10896}
10897
10898// Do executes the "run.namespaces.revisions.delete" call.
10899// Exactly one of *Empty or error will be non-nil. Any non-2xx status
10900// code is an error. Response headers are in either
10901// *Empty.ServerResponse.Header or (if a response was returned at all)
10902// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
10903// check whether the returned error was because http.StatusNotModified
10904// was returned.
10905func (c *NamespacesRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
10906	gensupport.SetOptions(c.urlParams_, opts...)
10907	res, err := c.doRequest("json")
10908	if res != nil && res.StatusCode == http.StatusNotModified {
10909		if res.Body != nil {
10910			res.Body.Close()
10911		}
10912		return nil, &googleapi.Error{
10913			Code:   res.StatusCode,
10914			Header: res.Header,
10915		}
10916	}
10917	if err != nil {
10918		return nil, err
10919	}
10920	defer googleapi.CloseBody(res)
10921	if err := googleapi.CheckResponse(res); err != nil {
10922		return nil, err
10923	}
10924	ret := &Empty{
10925		ServerResponse: googleapi.ServerResponse{
10926			Header:         res.Header,
10927			HTTPStatusCode: res.StatusCode,
10928		},
10929	}
10930	target := &ret
10931	if err := gensupport.DecodeResponse(target, res); err != nil {
10932		return nil, err
10933	}
10934	return ret, nil
10935	// {
10936	//   "description": "Rpc to delete a revision.",
10937	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions/{revisionsId}",
10938	//   "httpMethod": "DELETE",
10939	//   "id": "run.namespaces.revisions.delete",
10940	//   "parameterOrder": [
10941	//     "name"
10942	//   ],
10943	//   "parameters": {
10944	//     "apiVersion": {
10945	//       "description": "Cloud Run currently ignores this parameter.",
10946	//       "location": "query",
10947	//       "type": "string"
10948	//     },
10949	//     "kind": {
10950	//       "description": "Cloud Run currently ignores this parameter.",
10951	//       "location": "query",
10952	//       "type": "string"
10953	//     },
10954	//     "name": {
10955	//       "description": "The name of the revision being deleted. If needed, replace\n{namespace_id} with the project ID.",
10956	//       "location": "path",
10957	//       "pattern": "^namespaces/[^/]+/revisions/[^/]+$",
10958	//       "required": true,
10959	//       "type": "string"
10960	//     },
10961	//     "orphanDependents": {
10962	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
10963	//       "location": "query",
10964	//       "type": "boolean"
10965	//     },
10966	//     "propagationPolicy": {
10967	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
10968	//       "location": "query",
10969	//       "type": "string"
10970	//     }
10971	//   },
10972	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
10973	//   "response": {
10974	//     "$ref": "Empty"
10975	//   },
10976	//   "scopes": [
10977	//     "https://www.googleapis.com/auth/cloud-platform"
10978	//   ]
10979	// }
10980
10981}
10982
10983// method id "run.namespaces.revisions.get":
10984
10985type NamespacesRevisionsGetCall struct {
10986	s            *APIService
10987	name         string
10988	urlParams_   gensupport.URLParams
10989	ifNoneMatch_ string
10990	ctx_         context.Context
10991	header_      http.Header
10992}
10993
10994// Get: Rpc to get information about a revision.
10995func (r *NamespacesRevisionsService) Get(name string) *NamespacesRevisionsGetCall {
10996	c := &NamespacesRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10997	c.name = name
10998	return c
10999}
11000
11001// Fields allows partial responses to be retrieved. See
11002// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11003// for more information.
11004func (c *NamespacesRevisionsGetCall) Fields(s ...googleapi.Field) *NamespacesRevisionsGetCall {
11005	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11006	return c
11007}
11008
11009// IfNoneMatch sets the optional parameter which makes the operation
11010// fail if the object's ETag matches the given value. This is useful for
11011// getting updates only after the object has changed since the last
11012// request. Use googleapi.IsNotModified to check whether the response
11013// error from Do is the result of In-None-Match.
11014func (c *NamespacesRevisionsGetCall) IfNoneMatch(entityTag string) *NamespacesRevisionsGetCall {
11015	c.ifNoneMatch_ = entityTag
11016	return c
11017}
11018
11019// Context sets the context to be used in this call's Do method. Any
11020// pending HTTP request will be aborted if the provided context is
11021// canceled.
11022func (c *NamespacesRevisionsGetCall) Context(ctx context.Context) *NamespacesRevisionsGetCall {
11023	c.ctx_ = ctx
11024	return c
11025}
11026
11027// Header returns an http.Header that can be modified by the caller to
11028// add HTTP headers to the request.
11029func (c *NamespacesRevisionsGetCall) Header() http.Header {
11030	if c.header_ == nil {
11031		c.header_ = make(http.Header)
11032	}
11033	return c.header_
11034}
11035
11036func (c *NamespacesRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
11037	reqHeaders := make(http.Header)
11038	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11039	for k, v := range c.header_ {
11040		reqHeaders[k] = v
11041	}
11042	reqHeaders.Set("User-Agent", c.s.userAgent())
11043	if c.ifNoneMatch_ != "" {
11044		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11045	}
11046	var body io.Reader = nil
11047	c.urlParams_.Set("alt", alt)
11048	c.urlParams_.Set("prettyPrint", "false")
11049	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
11050	urls += "?" + c.urlParams_.Encode()
11051	req, err := http.NewRequest("GET", urls, body)
11052	if err != nil {
11053		return nil, err
11054	}
11055	req.Header = reqHeaders
11056	googleapi.Expand(req.URL, map[string]string{
11057		"name": c.name,
11058	})
11059	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11060}
11061
11062// Do executes the "run.namespaces.revisions.get" call.
11063// Exactly one of *Revision or error will be non-nil. Any non-2xx status
11064// code is an error. Response headers are in either
11065// *Revision.ServerResponse.Header or (if a response was returned at
11066// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
11067// to check whether the returned error was because
11068// http.StatusNotModified was returned.
11069func (c *NamespacesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
11070	gensupport.SetOptions(c.urlParams_, opts...)
11071	res, err := c.doRequest("json")
11072	if res != nil && res.StatusCode == http.StatusNotModified {
11073		if res.Body != nil {
11074			res.Body.Close()
11075		}
11076		return nil, &googleapi.Error{
11077			Code:   res.StatusCode,
11078			Header: res.Header,
11079		}
11080	}
11081	if err != nil {
11082		return nil, err
11083	}
11084	defer googleapi.CloseBody(res)
11085	if err := googleapi.CheckResponse(res); err != nil {
11086		return nil, err
11087	}
11088	ret := &Revision{
11089		ServerResponse: googleapi.ServerResponse{
11090			Header:         res.Header,
11091			HTTPStatusCode: res.StatusCode,
11092		},
11093	}
11094	target := &ret
11095	if err := gensupport.DecodeResponse(target, res); err != nil {
11096		return nil, err
11097	}
11098	return ret, nil
11099	// {
11100	//   "description": "Rpc to get information about a revision.",
11101	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions/{revisionsId}",
11102	//   "httpMethod": "GET",
11103	//   "id": "run.namespaces.revisions.get",
11104	//   "parameterOrder": [
11105	//     "name"
11106	//   ],
11107	//   "parameters": {
11108	//     "name": {
11109	//       "description": "The name of the revision being retrieved. If needed, replace\n{namespace_id} with the project ID.",
11110	//       "location": "path",
11111	//       "pattern": "^namespaces/[^/]+/revisions/[^/]+$",
11112	//       "required": true,
11113	//       "type": "string"
11114	//     }
11115	//   },
11116	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
11117	//   "response": {
11118	//     "$ref": "Revision"
11119	//   },
11120	//   "scopes": [
11121	//     "https://www.googleapis.com/auth/cloud-platform"
11122	//   ]
11123	// }
11124
11125}
11126
11127// method id "run.namespaces.revisions.list":
11128
11129type NamespacesRevisionsListCall struct {
11130	s            *APIService
11131	parent       string
11132	urlParams_   gensupport.URLParams
11133	ifNoneMatch_ string
11134	ctx_         context.Context
11135	header_      http.Header
11136}
11137
11138// List: Rpc to list revisions.
11139func (r *NamespacesRevisionsService) List(parent string) *NamespacesRevisionsListCall {
11140	c := &NamespacesRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11141	c.parent = parent
11142	return c
11143}
11144
11145// Continue sets the optional parameter "continue": Optional encoded
11146// string to continue paging.
11147func (c *NamespacesRevisionsListCall) Continue(continue_ string) *NamespacesRevisionsListCall {
11148	c.urlParams_.Set("continue", continue_)
11149	return c
11150}
11151
11152// FieldSelector sets the optional parameter "fieldSelector": Allows to
11153// filter resources based on a specific value for a field name.
11154// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
11155// Not currently used by Cloud Run.
11156func (c *NamespacesRevisionsListCall) FieldSelector(fieldSelector string) *NamespacesRevisionsListCall {
11157	c.urlParams_.Set("fieldSelector", fieldSelector)
11158	return c
11159}
11160
11161// IncludeUninitialized sets the optional parameter
11162// "includeUninitialized": Not currently used by Cloud Run.
11163func (c *NamespacesRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRevisionsListCall {
11164	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
11165	return c
11166}
11167
11168// LabelSelector sets the optional parameter "labelSelector": Allows to
11169// filter resources based on a label. Supported operations are
11170// =, !=, exists, in, and notIn.
11171func (c *NamespacesRevisionsListCall) LabelSelector(labelSelector string) *NamespacesRevisionsListCall {
11172	c.urlParams_.Set("labelSelector", labelSelector)
11173	return c
11174}
11175
11176// Limit sets the optional parameter "limit": The maximum number of
11177// records that should be returned.
11178func (c *NamespacesRevisionsListCall) Limit(limit int64) *NamespacesRevisionsListCall {
11179	c.urlParams_.Set("limit", fmt.Sprint(limit))
11180	return c
11181}
11182
11183// ResourceVersion sets the optional parameter "resourceVersion": The
11184// baseline resource version from which the list or watch operation
11185// should
11186// start. Not currently used by Cloud Run.
11187func (c *NamespacesRevisionsListCall) ResourceVersion(resourceVersion string) *NamespacesRevisionsListCall {
11188	c.urlParams_.Set("resourceVersion", resourceVersion)
11189	return c
11190}
11191
11192// Watch sets the optional parameter "watch": Flag that indicates that
11193// the client expects to watch this resource as well.
11194// Not currently used by Cloud Run.
11195func (c *NamespacesRevisionsListCall) Watch(watch bool) *NamespacesRevisionsListCall {
11196	c.urlParams_.Set("watch", fmt.Sprint(watch))
11197	return c
11198}
11199
11200// Fields allows partial responses to be retrieved. See
11201// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11202// for more information.
11203func (c *NamespacesRevisionsListCall) Fields(s ...googleapi.Field) *NamespacesRevisionsListCall {
11204	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11205	return c
11206}
11207
11208// IfNoneMatch sets the optional parameter which makes the operation
11209// fail if the object's ETag matches the given value. This is useful for
11210// getting updates only after the object has changed since the last
11211// request. Use googleapi.IsNotModified to check whether the response
11212// error from Do is the result of In-None-Match.
11213func (c *NamespacesRevisionsListCall) IfNoneMatch(entityTag string) *NamespacesRevisionsListCall {
11214	c.ifNoneMatch_ = entityTag
11215	return c
11216}
11217
11218// Context sets the context to be used in this call's Do method. Any
11219// pending HTTP request will be aborted if the provided context is
11220// canceled.
11221func (c *NamespacesRevisionsListCall) Context(ctx context.Context) *NamespacesRevisionsListCall {
11222	c.ctx_ = ctx
11223	return c
11224}
11225
11226// Header returns an http.Header that can be modified by the caller to
11227// add HTTP headers to the request.
11228func (c *NamespacesRevisionsListCall) Header() http.Header {
11229	if c.header_ == nil {
11230		c.header_ = make(http.Header)
11231	}
11232	return c.header_
11233}
11234
11235func (c *NamespacesRevisionsListCall) doRequest(alt string) (*http.Response, error) {
11236	reqHeaders := make(http.Header)
11237	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11238	for k, v := range c.header_ {
11239		reqHeaders[k] = v
11240	}
11241	reqHeaders.Set("User-Agent", c.s.userAgent())
11242	if c.ifNoneMatch_ != "" {
11243		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11244	}
11245	var body io.Reader = nil
11246	c.urlParams_.Set("alt", alt)
11247	c.urlParams_.Set("prettyPrint", "false")
11248	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+parent}/revisions")
11249	urls += "?" + c.urlParams_.Encode()
11250	req, err := http.NewRequest("GET", urls, body)
11251	if err != nil {
11252		return nil, err
11253	}
11254	req.Header = reqHeaders
11255	googleapi.Expand(req.URL, map[string]string{
11256		"parent": c.parent,
11257	})
11258	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11259}
11260
11261// Do executes the "run.namespaces.revisions.list" call.
11262// Exactly one of *ListRevisionsResponse or error will be non-nil. Any
11263// non-2xx status code is an error. Response headers are in either
11264// *ListRevisionsResponse.ServerResponse.Header or (if a response was
11265// returned at all) in error.(*googleapi.Error).Header. Use
11266// googleapi.IsNotModified to check whether the returned error was
11267// because http.StatusNotModified was returned.
11268func (c *NamespacesRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
11269	gensupport.SetOptions(c.urlParams_, opts...)
11270	res, err := c.doRequest("json")
11271	if res != nil && res.StatusCode == http.StatusNotModified {
11272		if res.Body != nil {
11273			res.Body.Close()
11274		}
11275		return nil, &googleapi.Error{
11276			Code:   res.StatusCode,
11277			Header: res.Header,
11278		}
11279	}
11280	if err != nil {
11281		return nil, err
11282	}
11283	defer googleapi.CloseBody(res)
11284	if err := googleapi.CheckResponse(res); err != nil {
11285		return nil, err
11286	}
11287	ret := &ListRevisionsResponse{
11288		ServerResponse: googleapi.ServerResponse{
11289			Header:         res.Header,
11290			HTTPStatusCode: res.StatusCode,
11291		},
11292	}
11293	target := &ret
11294	if err := gensupport.DecodeResponse(target, res); err != nil {
11295		return nil, err
11296	}
11297	return ret, nil
11298	// {
11299	//   "description": "Rpc to list revisions.",
11300	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions",
11301	//   "httpMethod": "GET",
11302	//   "id": "run.namespaces.revisions.list",
11303	//   "parameterOrder": [
11304	//     "parent"
11305	//   ],
11306	//   "parameters": {
11307	//     "continue": {
11308	//       "description": "Optional encoded string to continue paging.",
11309	//       "location": "query",
11310	//       "type": "string"
11311	//     },
11312	//     "fieldSelector": {
11313	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
11314	//       "location": "query",
11315	//       "type": "string"
11316	//     },
11317	//     "includeUninitialized": {
11318	//       "description": "Not currently used by Cloud Run.",
11319	//       "location": "query",
11320	//       "type": "boolean"
11321	//     },
11322	//     "labelSelector": {
11323	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
11324	//       "location": "query",
11325	//       "type": "string"
11326	//     },
11327	//     "limit": {
11328	//       "description": "The maximum number of records that should be returned.",
11329	//       "format": "int32",
11330	//       "location": "query",
11331	//       "type": "integer"
11332	//     },
11333	//     "parent": {
11334	//       "description": "The project ID or project number from which the revisions should be listed.",
11335	//       "location": "path",
11336	//       "pattern": "^namespaces/[^/]+$",
11337	//       "required": true,
11338	//       "type": "string"
11339	//     },
11340	//     "resourceVersion": {
11341	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
11342	//       "location": "query",
11343	//       "type": "string"
11344	//     },
11345	//     "watch": {
11346	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
11347	//       "location": "query",
11348	//       "type": "boolean"
11349	//     }
11350	//   },
11351	//   "path": "apis/serving.knative.dev/v1alpha1/{+parent}/revisions",
11352	//   "response": {
11353	//     "$ref": "ListRevisionsResponse"
11354	//   },
11355	//   "scopes": [
11356	//     "https://www.googleapis.com/auth/cloud-platform"
11357	//   ]
11358	// }
11359
11360}
11361
11362// method id "run.namespaces.routes.get":
11363
11364type NamespacesRoutesGetCall struct {
11365	s            *APIService
11366	name         string
11367	urlParams_   gensupport.URLParams
11368	ifNoneMatch_ string
11369	ctx_         context.Context
11370	header_      http.Header
11371}
11372
11373// Get: Rpc to get information about a route.
11374func (r *NamespacesRoutesService) Get(name string) *NamespacesRoutesGetCall {
11375	c := &NamespacesRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11376	c.name = name
11377	return c
11378}
11379
11380// Fields allows partial responses to be retrieved. See
11381// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11382// for more information.
11383func (c *NamespacesRoutesGetCall) Fields(s ...googleapi.Field) *NamespacesRoutesGetCall {
11384	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11385	return c
11386}
11387
11388// IfNoneMatch sets the optional parameter which makes the operation
11389// fail if the object's ETag matches the given value. This is useful for
11390// getting updates only after the object has changed since the last
11391// request. Use googleapi.IsNotModified to check whether the response
11392// error from Do is the result of In-None-Match.
11393func (c *NamespacesRoutesGetCall) IfNoneMatch(entityTag string) *NamespacesRoutesGetCall {
11394	c.ifNoneMatch_ = entityTag
11395	return c
11396}
11397
11398// Context sets the context to be used in this call's Do method. Any
11399// pending HTTP request will be aborted if the provided context is
11400// canceled.
11401func (c *NamespacesRoutesGetCall) Context(ctx context.Context) *NamespacesRoutesGetCall {
11402	c.ctx_ = ctx
11403	return c
11404}
11405
11406// Header returns an http.Header that can be modified by the caller to
11407// add HTTP headers to the request.
11408func (c *NamespacesRoutesGetCall) Header() http.Header {
11409	if c.header_ == nil {
11410		c.header_ = make(http.Header)
11411	}
11412	return c.header_
11413}
11414
11415func (c *NamespacesRoutesGetCall) doRequest(alt string) (*http.Response, error) {
11416	reqHeaders := make(http.Header)
11417	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11418	for k, v := range c.header_ {
11419		reqHeaders[k] = v
11420	}
11421	reqHeaders.Set("User-Agent", c.s.userAgent())
11422	if c.ifNoneMatch_ != "" {
11423		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11424	}
11425	var body io.Reader = nil
11426	c.urlParams_.Set("alt", alt)
11427	c.urlParams_.Set("prettyPrint", "false")
11428	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
11429	urls += "?" + c.urlParams_.Encode()
11430	req, err := http.NewRequest("GET", urls, body)
11431	if err != nil {
11432		return nil, err
11433	}
11434	req.Header = reqHeaders
11435	googleapi.Expand(req.URL, map[string]string{
11436		"name": c.name,
11437	})
11438	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11439}
11440
11441// Do executes the "run.namespaces.routes.get" call.
11442// Exactly one of *Route or error will be non-nil. Any non-2xx status
11443// code is an error. Response headers are in either
11444// *Route.ServerResponse.Header or (if a response was returned at all)
11445// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11446// check whether the returned error was because http.StatusNotModified
11447// was returned.
11448func (c *NamespacesRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
11449	gensupport.SetOptions(c.urlParams_, opts...)
11450	res, err := c.doRequest("json")
11451	if res != nil && res.StatusCode == http.StatusNotModified {
11452		if res.Body != nil {
11453			res.Body.Close()
11454		}
11455		return nil, &googleapi.Error{
11456			Code:   res.StatusCode,
11457			Header: res.Header,
11458		}
11459	}
11460	if err != nil {
11461		return nil, err
11462	}
11463	defer googleapi.CloseBody(res)
11464	if err := googleapi.CheckResponse(res); err != nil {
11465		return nil, err
11466	}
11467	ret := &Route{
11468		ServerResponse: googleapi.ServerResponse{
11469			Header:         res.Header,
11470			HTTPStatusCode: res.StatusCode,
11471		},
11472	}
11473	target := &ret
11474	if err := gensupport.DecodeResponse(target, res); err != nil {
11475		return nil, err
11476	}
11477	return ret, nil
11478	// {
11479	//   "description": "Rpc to get information about a route.",
11480	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/routes/{routesId}",
11481	//   "httpMethod": "GET",
11482	//   "id": "run.namespaces.routes.get",
11483	//   "parameterOrder": [
11484	//     "name"
11485	//   ],
11486	//   "parameters": {
11487	//     "name": {
11488	//       "description": "The name of the route being retrieved. If needed, replace\n{namespace_id} with the project ID.",
11489	//       "location": "path",
11490	//       "pattern": "^namespaces/[^/]+/routes/[^/]+$",
11491	//       "required": true,
11492	//       "type": "string"
11493	//     }
11494	//   },
11495	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
11496	//   "response": {
11497	//     "$ref": "Route"
11498	//   },
11499	//   "scopes": [
11500	//     "https://www.googleapis.com/auth/cloud-platform"
11501	//   ]
11502	// }
11503
11504}
11505
11506// method id "run.namespaces.routes.list":
11507
11508type NamespacesRoutesListCall struct {
11509	s            *APIService
11510	parent       string
11511	urlParams_   gensupport.URLParams
11512	ifNoneMatch_ string
11513	ctx_         context.Context
11514	header_      http.Header
11515}
11516
11517// List: Rpc to list routes.
11518func (r *NamespacesRoutesService) List(parent string) *NamespacesRoutesListCall {
11519	c := &NamespacesRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11520	c.parent = parent
11521	return c
11522}
11523
11524// Continue sets the optional parameter "continue": Optional encoded
11525// string to continue paging.
11526func (c *NamespacesRoutesListCall) Continue(continue_ string) *NamespacesRoutesListCall {
11527	c.urlParams_.Set("continue", continue_)
11528	return c
11529}
11530
11531// FieldSelector sets the optional parameter "fieldSelector": Allows to
11532// filter resources based on a specific value for a field name.
11533// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
11534// Not currently used by Cloud Run.
11535func (c *NamespacesRoutesListCall) FieldSelector(fieldSelector string) *NamespacesRoutesListCall {
11536	c.urlParams_.Set("fieldSelector", fieldSelector)
11537	return c
11538}
11539
11540// IncludeUninitialized sets the optional parameter
11541// "includeUninitialized": Not currently used by Cloud Run.
11542func (c *NamespacesRoutesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesRoutesListCall {
11543	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
11544	return c
11545}
11546
11547// LabelSelector sets the optional parameter "labelSelector": Allows to
11548// filter resources based on a label. Supported operations are
11549// =, !=, exists, in, and notIn.
11550func (c *NamespacesRoutesListCall) LabelSelector(labelSelector string) *NamespacesRoutesListCall {
11551	c.urlParams_.Set("labelSelector", labelSelector)
11552	return c
11553}
11554
11555// Limit sets the optional parameter "limit": The maximum number of
11556// records that should be returned.
11557func (c *NamespacesRoutesListCall) Limit(limit int64) *NamespacesRoutesListCall {
11558	c.urlParams_.Set("limit", fmt.Sprint(limit))
11559	return c
11560}
11561
11562// ResourceVersion sets the optional parameter "resourceVersion": The
11563// baseline resource version from which the list or watch operation
11564// should
11565// start. Not currently used by Cloud Run.
11566func (c *NamespacesRoutesListCall) ResourceVersion(resourceVersion string) *NamespacesRoutesListCall {
11567	c.urlParams_.Set("resourceVersion", resourceVersion)
11568	return c
11569}
11570
11571// Watch sets the optional parameter "watch": Flag that indicates that
11572// the client expects to watch this resource as well.
11573// Not currently used by Cloud Run.
11574func (c *NamespacesRoutesListCall) Watch(watch bool) *NamespacesRoutesListCall {
11575	c.urlParams_.Set("watch", fmt.Sprint(watch))
11576	return c
11577}
11578
11579// Fields allows partial responses to be retrieved. See
11580// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11581// for more information.
11582func (c *NamespacesRoutesListCall) Fields(s ...googleapi.Field) *NamespacesRoutesListCall {
11583	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11584	return c
11585}
11586
11587// IfNoneMatch sets the optional parameter which makes the operation
11588// fail if the object's ETag matches the given value. This is useful for
11589// getting updates only after the object has changed since the last
11590// request. Use googleapi.IsNotModified to check whether the response
11591// error from Do is the result of In-None-Match.
11592func (c *NamespacesRoutesListCall) IfNoneMatch(entityTag string) *NamespacesRoutesListCall {
11593	c.ifNoneMatch_ = entityTag
11594	return c
11595}
11596
11597// Context sets the context to be used in this call's Do method. Any
11598// pending HTTP request will be aborted if the provided context is
11599// canceled.
11600func (c *NamespacesRoutesListCall) Context(ctx context.Context) *NamespacesRoutesListCall {
11601	c.ctx_ = ctx
11602	return c
11603}
11604
11605// Header returns an http.Header that can be modified by the caller to
11606// add HTTP headers to the request.
11607func (c *NamespacesRoutesListCall) Header() http.Header {
11608	if c.header_ == nil {
11609		c.header_ = make(http.Header)
11610	}
11611	return c.header_
11612}
11613
11614func (c *NamespacesRoutesListCall) doRequest(alt string) (*http.Response, error) {
11615	reqHeaders := make(http.Header)
11616	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11617	for k, v := range c.header_ {
11618		reqHeaders[k] = v
11619	}
11620	reqHeaders.Set("User-Agent", c.s.userAgent())
11621	if c.ifNoneMatch_ != "" {
11622		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11623	}
11624	var body io.Reader = nil
11625	c.urlParams_.Set("alt", alt)
11626	c.urlParams_.Set("prettyPrint", "false")
11627	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+parent}/routes")
11628	urls += "?" + c.urlParams_.Encode()
11629	req, err := http.NewRequest("GET", urls, body)
11630	if err != nil {
11631		return nil, err
11632	}
11633	req.Header = reqHeaders
11634	googleapi.Expand(req.URL, map[string]string{
11635		"parent": c.parent,
11636	})
11637	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11638}
11639
11640// Do executes the "run.namespaces.routes.list" call.
11641// Exactly one of *ListRoutesResponse or error will be non-nil. Any
11642// non-2xx status code is an error. Response headers are in either
11643// *ListRoutesResponse.ServerResponse.Header or (if a response was
11644// returned at all) in error.(*googleapi.Error).Header. Use
11645// googleapi.IsNotModified to check whether the returned error was
11646// because http.StatusNotModified was returned.
11647func (c *NamespacesRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
11648	gensupport.SetOptions(c.urlParams_, opts...)
11649	res, err := c.doRequest("json")
11650	if res != nil && res.StatusCode == http.StatusNotModified {
11651		if res.Body != nil {
11652			res.Body.Close()
11653		}
11654		return nil, &googleapi.Error{
11655			Code:   res.StatusCode,
11656			Header: res.Header,
11657		}
11658	}
11659	if err != nil {
11660		return nil, err
11661	}
11662	defer googleapi.CloseBody(res)
11663	if err := googleapi.CheckResponse(res); err != nil {
11664		return nil, err
11665	}
11666	ret := &ListRoutesResponse{
11667		ServerResponse: googleapi.ServerResponse{
11668			Header:         res.Header,
11669			HTTPStatusCode: res.StatusCode,
11670		},
11671	}
11672	target := &ret
11673	if err := gensupport.DecodeResponse(target, res); err != nil {
11674		return nil, err
11675	}
11676	return ret, nil
11677	// {
11678	//   "description": "Rpc to list routes.",
11679	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/routes",
11680	//   "httpMethod": "GET",
11681	//   "id": "run.namespaces.routes.list",
11682	//   "parameterOrder": [
11683	//     "parent"
11684	//   ],
11685	//   "parameters": {
11686	//     "continue": {
11687	//       "description": "Optional encoded string to continue paging.",
11688	//       "location": "query",
11689	//       "type": "string"
11690	//     },
11691	//     "fieldSelector": {
11692	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
11693	//       "location": "query",
11694	//       "type": "string"
11695	//     },
11696	//     "includeUninitialized": {
11697	//       "description": "Not currently used by Cloud Run.",
11698	//       "location": "query",
11699	//       "type": "boolean"
11700	//     },
11701	//     "labelSelector": {
11702	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
11703	//       "location": "query",
11704	//       "type": "string"
11705	//     },
11706	//     "limit": {
11707	//       "description": "The maximum number of records that should be returned.",
11708	//       "format": "int32",
11709	//       "location": "query",
11710	//       "type": "integer"
11711	//     },
11712	//     "parent": {
11713	//       "description": "The project ID or project number from which the routes should be listed.",
11714	//       "location": "path",
11715	//       "pattern": "^namespaces/[^/]+$",
11716	//       "required": true,
11717	//       "type": "string"
11718	//     },
11719	//     "resourceVersion": {
11720	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
11721	//       "location": "query",
11722	//       "type": "string"
11723	//     },
11724	//     "watch": {
11725	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
11726	//       "location": "query",
11727	//       "type": "boolean"
11728	//     }
11729	//   },
11730	//   "path": "apis/serving.knative.dev/v1alpha1/{+parent}/routes",
11731	//   "response": {
11732	//     "$ref": "ListRoutesResponse"
11733	//   },
11734	//   "scopes": [
11735	//     "https://www.googleapis.com/auth/cloud-platform"
11736	//   ]
11737	// }
11738
11739}
11740
11741// method id "run.namespaces.services.create":
11742
11743type NamespacesServicesCreateCall struct {
11744	s          *APIService
11745	parent     string
11746	service    *Service
11747	urlParams_ gensupport.URLParams
11748	ctx_       context.Context
11749	header_    http.Header
11750}
11751
11752// Create: Rpc to create a service.
11753func (r *NamespacesServicesService) Create(parent string, service *Service) *NamespacesServicesCreateCall {
11754	c := &NamespacesServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11755	c.parent = parent
11756	c.service = service
11757	return c
11758}
11759
11760// Fields allows partial responses to be retrieved. See
11761// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11762// for more information.
11763func (c *NamespacesServicesCreateCall) Fields(s ...googleapi.Field) *NamespacesServicesCreateCall {
11764	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11765	return c
11766}
11767
11768// Context sets the context to be used in this call's Do method. Any
11769// pending HTTP request will be aborted if the provided context is
11770// canceled.
11771func (c *NamespacesServicesCreateCall) Context(ctx context.Context) *NamespacesServicesCreateCall {
11772	c.ctx_ = ctx
11773	return c
11774}
11775
11776// Header returns an http.Header that can be modified by the caller to
11777// add HTTP headers to the request.
11778func (c *NamespacesServicesCreateCall) Header() http.Header {
11779	if c.header_ == nil {
11780		c.header_ = make(http.Header)
11781	}
11782	return c.header_
11783}
11784
11785func (c *NamespacesServicesCreateCall) doRequest(alt string) (*http.Response, error) {
11786	reqHeaders := make(http.Header)
11787	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11788	for k, v := range c.header_ {
11789		reqHeaders[k] = v
11790	}
11791	reqHeaders.Set("User-Agent", c.s.userAgent())
11792	var body io.Reader = nil
11793	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
11794	if err != nil {
11795		return nil, err
11796	}
11797	reqHeaders.Set("Content-Type", "application/json")
11798	c.urlParams_.Set("alt", alt)
11799	c.urlParams_.Set("prettyPrint", "false")
11800	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+parent}/services")
11801	urls += "?" + c.urlParams_.Encode()
11802	req, err := http.NewRequest("POST", urls, body)
11803	if err != nil {
11804		return nil, err
11805	}
11806	req.Header = reqHeaders
11807	googleapi.Expand(req.URL, map[string]string{
11808		"parent": c.parent,
11809	})
11810	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11811}
11812
11813// Do executes the "run.namespaces.services.create" call.
11814// Exactly one of *Service or error will be non-nil. Any non-2xx status
11815// code is an error. Response headers are in either
11816// *Service.ServerResponse.Header or (if a response was returned at all)
11817// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11818// check whether the returned error was because http.StatusNotModified
11819// was returned.
11820func (c *NamespacesServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
11821	gensupport.SetOptions(c.urlParams_, opts...)
11822	res, err := c.doRequest("json")
11823	if res != nil && res.StatusCode == http.StatusNotModified {
11824		if res.Body != nil {
11825			res.Body.Close()
11826		}
11827		return nil, &googleapi.Error{
11828			Code:   res.StatusCode,
11829			Header: res.Header,
11830		}
11831	}
11832	if err != nil {
11833		return nil, err
11834	}
11835	defer googleapi.CloseBody(res)
11836	if err := googleapi.CheckResponse(res); err != nil {
11837		return nil, err
11838	}
11839	ret := &Service{
11840		ServerResponse: googleapi.ServerResponse{
11841			Header:         res.Header,
11842			HTTPStatusCode: res.StatusCode,
11843		},
11844	}
11845	target := &ret
11846	if err := gensupport.DecodeResponse(target, res); err != nil {
11847		return nil, err
11848	}
11849	return ret, nil
11850	// {
11851	//   "description": "Rpc to create a service.",
11852	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services",
11853	//   "httpMethod": "POST",
11854	//   "id": "run.namespaces.services.create",
11855	//   "parameterOrder": [
11856	//     "parent"
11857	//   ],
11858	//   "parameters": {
11859	//     "parent": {
11860	//       "description": "The project ID or project number in which this service should be created.",
11861	//       "location": "path",
11862	//       "pattern": "^namespaces/[^/]+$",
11863	//       "required": true,
11864	//       "type": "string"
11865	//     }
11866	//   },
11867	//   "path": "apis/serving.knative.dev/v1alpha1/{+parent}/services",
11868	//   "request": {
11869	//     "$ref": "Service"
11870	//   },
11871	//   "response": {
11872	//     "$ref": "Service"
11873	//   },
11874	//   "scopes": [
11875	//     "https://www.googleapis.com/auth/cloud-platform"
11876	//   ]
11877	// }
11878
11879}
11880
11881// method id "run.namespaces.services.delete":
11882
11883type NamespacesServicesDeleteCall struct {
11884	s          *APIService
11885	name       string
11886	urlParams_ gensupport.URLParams
11887	ctx_       context.Context
11888	header_    http.Header
11889}
11890
11891// Delete: Rpc to delete a service.
11892// This will cause the Service to stop serving traffic and will delete
11893// the
11894// child entities like Routes, Configurations and Revisions.
11895func (r *NamespacesServicesService) Delete(name string) *NamespacesServicesDeleteCall {
11896	c := &NamespacesServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11897	c.name = name
11898	return c
11899}
11900
11901// ApiVersion sets the optional parameter "apiVersion": Cloud Run
11902// currently ignores this parameter.
11903func (c *NamespacesServicesDeleteCall) ApiVersion(apiVersion string) *NamespacesServicesDeleteCall {
11904	c.urlParams_.Set("apiVersion", apiVersion)
11905	return c
11906}
11907
11908// Kind sets the optional parameter "kind": Cloud Run currently ignores
11909// this parameter.
11910func (c *NamespacesServicesDeleteCall) Kind(kind string) *NamespacesServicesDeleteCall {
11911	c.urlParams_.Set("kind", kind)
11912	return c
11913}
11914
11915// OrphanDependents sets the optional parameter "orphanDependents":
11916// Deprecated.
11917// Specifies the cascade behavior on delete.
11918// Cloud Run only supports cascading behavior, so this must be
11919// false.
11920// This attribute is deprecated, and is now replaced with
11921// PropagationPolicy
11922// See https://github.com/kubernetes/kubernetes/issues/46659 for more
11923// info.
11924func (c *NamespacesServicesDeleteCall) OrphanDependents(orphanDependents bool) *NamespacesServicesDeleteCall {
11925	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
11926	return c
11927}
11928
11929// PropagationPolicy sets the optional parameter "propagationPolicy":
11930// Specifies the propagation policy of delete. Cloud Run currently
11931// ignores
11932// this setting, and deletes in the background. Please
11933// see
11934// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
11935// on/ for
11936// more information.
11937func (c *NamespacesServicesDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesServicesDeleteCall {
11938	c.urlParams_.Set("propagationPolicy", propagationPolicy)
11939	return c
11940}
11941
11942// Fields allows partial responses to be retrieved. See
11943// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
11944// for more information.
11945func (c *NamespacesServicesDeleteCall) Fields(s ...googleapi.Field) *NamespacesServicesDeleteCall {
11946	c.urlParams_.Set("fields", googleapi.CombineFields(s))
11947	return c
11948}
11949
11950// Context sets the context to be used in this call's Do method. Any
11951// pending HTTP request will be aborted if the provided context is
11952// canceled.
11953func (c *NamespacesServicesDeleteCall) Context(ctx context.Context) *NamespacesServicesDeleteCall {
11954	c.ctx_ = ctx
11955	return c
11956}
11957
11958// Header returns an http.Header that can be modified by the caller to
11959// add HTTP headers to the request.
11960func (c *NamespacesServicesDeleteCall) Header() http.Header {
11961	if c.header_ == nil {
11962		c.header_ = make(http.Header)
11963	}
11964	return c.header_
11965}
11966
11967func (c *NamespacesServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
11968	reqHeaders := make(http.Header)
11969	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
11970	for k, v := range c.header_ {
11971		reqHeaders[k] = v
11972	}
11973	reqHeaders.Set("User-Agent", c.s.userAgent())
11974	var body io.Reader = nil
11975	c.urlParams_.Set("alt", alt)
11976	c.urlParams_.Set("prettyPrint", "false")
11977	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
11978	urls += "?" + c.urlParams_.Encode()
11979	req, err := http.NewRequest("DELETE", urls, body)
11980	if err != nil {
11981		return nil, err
11982	}
11983	req.Header = reqHeaders
11984	googleapi.Expand(req.URL, map[string]string{
11985		"name": c.name,
11986	})
11987	return gensupport.SendRequest(c.ctx_, c.s.client, req)
11988}
11989
11990// Do executes the "run.namespaces.services.delete" call.
11991// Exactly one of *Empty or error will be non-nil. Any non-2xx status
11992// code is an error. Response headers are in either
11993// *Empty.ServerResponse.Header or (if a response was returned at all)
11994// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
11995// check whether the returned error was because http.StatusNotModified
11996// was returned.
11997func (c *NamespacesServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
11998	gensupport.SetOptions(c.urlParams_, opts...)
11999	res, err := c.doRequest("json")
12000	if res != nil && res.StatusCode == http.StatusNotModified {
12001		if res.Body != nil {
12002			res.Body.Close()
12003		}
12004		return nil, &googleapi.Error{
12005			Code:   res.StatusCode,
12006			Header: res.Header,
12007		}
12008	}
12009	if err != nil {
12010		return nil, err
12011	}
12012	defer googleapi.CloseBody(res)
12013	if err := googleapi.CheckResponse(res); err != nil {
12014		return nil, err
12015	}
12016	ret := &Empty{
12017		ServerResponse: googleapi.ServerResponse{
12018			Header:         res.Header,
12019			HTTPStatusCode: res.StatusCode,
12020		},
12021	}
12022	target := &ret
12023	if err := gensupport.DecodeResponse(target, res); err != nil {
12024		return nil, err
12025	}
12026	return ret, nil
12027	// {
12028	//   "description": "Rpc to delete a service.\nThis will cause the Service to stop serving traffic and will delete the\nchild entities like Routes, Configurations and Revisions.",
12029	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}",
12030	//   "httpMethod": "DELETE",
12031	//   "id": "run.namespaces.services.delete",
12032	//   "parameterOrder": [
12033	//     "name"
12034	//   ],
12035	//   "parameters": {
12036	//     "apiVersion": {
12037	//       "description": "Cloud Run currently ignores this parameter.",
12038	//       "location": "query",
12039	//       "type": "string"
12040	//     },
12041	//     "kind": {
12042	//       "description": "Cloud Run currently ignores this parameter.",
12043	//       "location": "query",
12044	//       "type": "string"
12045	//     },
12046	//     "name": {
12047	//       "description": "The name of the service being deleted. If needed, replace\n{namespace_id} with the project ID.",
12048	//       "location": "path",
12049	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
12050	//       "required": true,
12051	//       "type": "string"
12052	//     },
12053	//     "orphanDependents": {
12054	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
12055	//       "location": "query",
12056	//       "type": "boolean"
12057	//     },
12058	//     "propagationPolicy": {
12059	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
12060	//       "location": "query",
12061	//       "type": "string"
12062	//     }
12063	//   },
12064	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
12065	//   "response": {
12066	//     "$ref": "Empty"
12067	//   },
12068	//   "scopes": [
12069	//     "https://www.googleapis.com/auth/cloud-platform"
12070	//   ]
12071	// }
12072
12073}
12074
12075// method id "run.namespaces.services.get":
12076
12077type NamespacesServicesGetCall struct {
12078	s            *APIService
12079	name         string
12080	urlParams_   gensupport.URLParams
12081	ifNoneMatch_ string
12082	ctx_         context.Context
12083	header_      http.Header
12084}
12085
12086// Get: Rpc to get information about a service.
12087func (r *NamespacesServicesService) Get(name string) *NamespacesServicesGetCall {
12088	c := &NamespacesServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12089	c.name = name
12090	return c
12091}
12092
12093// Fields allows partial responses to be retrieved. See
12094// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12095// for more information.
12096func (c *NamespacesServicesGetCall) Fields(s ...googleapi.Field) *NamespacesServicesGetCall {
12097	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12098	return c
12099}
12100
12101// IfNoneMatch sets the optional parameter which makes the operation
12102// fail if the object's ETag matches the given value. This is useful for
12103// getting updates only after the object has changed since the last
12104// request. Use googleapi.IsNotModified to check whether the response
12105// error from Do is the result of In-None-Match.
12106func (c *NamespacesServicesGetCall) IfNoneMatch(entityTag string) *NamespacesServicesGetCall {
12107	c.ifNoneMatch_ = entityTag
12108	return c
12109}
12110
12111// Context sets the context to be used in this call's Do method. Any
12112// pending HTTP request will be aborted if the provided context is
12113// canceled.
12114func (c *NamespacesServicesGetCall) Context(ctx context.Context) *NamespacesServicesGetCall {
12115	c.ctx_ = ctx
12116	return c
12117}
12118
12119// Header returns an http.Header that can be modified by the caller to
12120// add HTTP headers to the request.
12121func (c *NamespacesServicesGetCall) Header() http.Header {
12122	if c.header_ == nil {
12123		c.header_ = make(http.Header)
12124	}
12125	return c.header_
12126}
12127
12128func (c *NamespacesServicesGetCall) doRequest(alt string) (*http.Response, error) {
12129	reqHeaders := make(http.Header)
12130	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12131	for k, v := range c.header_ {
12132		reqHeaders[k] = v
12133	}
12134	reqHeaders.Set("User-Agent", c.s.userAgent())
12135	if c.ifNoneMatch_ != "" {
12136		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12137	}
12138	var body io.Reader = nil
12139	c.urlParams_.Set("alt", alt)
12140	c.urlParams_.Set("prettyPrint", "false")
12141	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
12142	urls += "?" + c.urlParams_.Encode()
12143	req, err := http.NewRequest("GET", urls, body)
12144	if err != nil {
12145		return nil, err
12146	}
12147	req.Header = reqHeaders
12148	googleapi.Expand(req.URL, map[string]string{
12149		"name": c.name,
12150	})
12151	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12152}
12153
12154// Do executes the "run.namespaces.services.get" call.
12155// Exactly one of *Service or error will be non-nil. Any non-2xx status
12156// code is an error. Response headers are in either
12157// *Service.ServerResponse.Header or (if a response was returned at all)
12158// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12159// check whether the returned error was because http.StatusNotModified
12160// was returned.
12161func (c *NamespacesServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
12162	gensupport.SetOptions(c.urlParams_, opts...)
12163	res, err := c.doRequest("json")
12164	if res != nil && res.StatusCode == http.StatusNotModified {
12165		if res.Body != nil {
12166			res.Body.Close()
12167		}
12168		return nil, &googleapi.Error{
12169			Code:   res.StatusCode,
12170			Header: res.Header,
12171		}
12172	}
12173	if err != nil {
12174		return nil, err
12175	}
12176	defer googleapi.CloseBody(res)
12177	if err := googleapi.CheckResponse(res); err != nil {
12178		return nil, err
12179	}
12180	ret := &Service{
12181		ServerResponse: googleapi.ServerResponse{
12182			Header:         res.Header,
12183			HTTPStatusCode: res.StatusCode,
12184		},
12185	}
12186	target := &ret
12187	if err := gensupport.DecodeResponse(target, res); err != nil {
12188		return nil, err
12189	}
12190	return ret, nil
12191	// {
12192	//   "description": "Rpc to get information about a service.",
12193	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}",
12194	//   "httpMethod": "GET",
12195	//   "id": "run.namespaces.services.get",
12196	//   "parameterOrder": [
12197	//     "name"
12198	//   ],
12199	//   "parameters": {
12200	//     "name": {
12201	//       "description": "The name of the service being retrieved. If needed, replace\n{namespace_id} with the project ID.",
12202	//       "location": "path",
12203	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
12204	//       "required": true,
12205	//       "type": "string"
12206	//     }
12207	//   },
12208	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
12209	//   "response": {
12210	//     "$ref": "Service"
12211	//   },
12212	//   "scopes": [
12213	//     "https://www.googleapis.com/auth/cloud-platform"
12214	//   ]
12215	// }
12216
12217}
12218
12219// method id "run.namespaces.services.list":
12220
12221type NamespacesServicesListCall struct {
12222	s            *APIService
12223	parent       string
12224	urlParams_   gensupport.URLParams
12225	ifNoneMatch_ string
12226	ctx_         context.Context
12227	header_      http.Header
12228}
12229
12230// List: Rpc to list services.
12231func (r *NamespacesServicesService) List(parent string) *NamespacesServicesListCall {
12232	c := &NamespacesServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12233	c.parent = parent
12234	return c
12235}
12236
12237// Continue sets the optional parameter "continue": Optional encoded
12238// string to continue paging.
12239func (c *NamespacesServicesListCall) Continue(continue_ string) *NamespacesServicesListCall {
12240	c.urlParams_.Set("continue", continue_)
12241	return c
12242}
12243
12244// FieldSelector sets the optional parameter "fieldSelector": Allows to
12245// filter resources based on a specific value for a field name.
12246// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
12247// Not currently used by Cloud Run.
12248func (c *NamespacesServicesListCall) FieldSelector(fieldSelector string) *NamespacesServicesListCall {
12249	c.urlParams_.Set("fieldSelector", fieldSelector)
12250	return c
12251}
12252
12253// IncludeUninitialized sets the optional parameter
12254// "includeUninitialized": Not currently used by Cloud Run.
12255func (c *NamespacesServicesListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesServicesListCall {
12256	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
12257	return c
12258}
12259
12260// LabelSelector sets the optional parameter "labelSelector": Allows to
12261// filter resources based on a label. Supported operations are
12262// =, !=, exists, in, and notIn.
12263func (c *NamespacesServicesListCall) LabelSelector(labelSelector string) *NamespacesServicesListCall {
12264	c.urlParams_.Set("labelSelector", labelSelector)
12265	return c
12266}
12267
12268// Limit sets the optional parameter "limit": The maximum number of
12269// records that should be returned.
12270func (c *NamespacesServicesListCall) Limit(limit int64) *NamespacesServicesListCall {
12271	c.urlParams_.Set("limit", fmt.Sprint(limit))
12272	return c
12273}
12274
12275// ResourceVersion sets the optional parameter "resourceVersion": The
12276// baseline resource version from which the list or watch operation
12277// should
12278// start. Not currently used by Cloud Run.
12279func (c *NamespacesServicesListCall) ResourceVersion(resourceVersion string) *NamespacesServicesListCall {
12280	c.urlParams_.Set("resourceVersion", resourceVersion)
12281	return c
12282}
12283
12284// Watch sets the optional parameter "watch": Flag that indicates that
12285// the client expects to watch this resource as well.
12286// Not currently used by Cloud Run.
12287func (c *NamespacesServicesListCall) Watch(watch bool) *NamespacesServicesListCall {
12288	c.urlParams_.Set("watch", fmt.Sprint(watch))
12289	return c
12290}
12291
12292// Fields allows partial responses to be retrieved. See
12293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12294// for more information.
12295func (c *NamespacesServicesListCall) Fields(s ...googleapi.Field) *NamespacesServicesListCall {
12296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12297	return c
12298}
12299
12300// IfNoneMatch sets the optional parameter which makes the operation
12301// fail if the object's ETag matches the given value. This is useful for
12302// getting updates only after the object has changed since the last
12303// request. Use googleapi.IsNotModified to check whether the response
12304// error from Do is the result of In-None-Match.
12305func (c *NamespacesServicesListCall) IfNoneMatch(entityTag string) *NamespacesServicesListCall {
12306	c.ifNoneMatch_ = entityTag
12307	return c
12308}
12309
12310// Context sets the context to be used in this call's Do method. Any
12311// pending HTTP request will be aborted if the provided context is
12312// canceled.
12313func (c *NamespacesServicesListCall) Context(ctx context.Context) *NamespacesServicesListCall {
12314	c.ctx_ = ctx
12315	return c
12316}
12317
12318// Header returns an http.Header that can be modified by the caller to
12319// add HTTP headers to the request.
12320func (c *NamespacesServicesListCall) Header() http.Header {
12321	if c.header_ == nil {
12322		c.header_ = make(http.Header)
12323	}
12324	return c.header_
12325}
12326
12327func (c *NamespacesServicesListCall) doRequest(alt string) (*http.Response, error) {
12328	reqHeaders := make(http.Header)
12329	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12330	for k, v := range c.header_ {
12331		reqHeaders[k] = v
12332	}
12333	reqHeaders.Set("User-Agent", c.s.userAgent())
12334	if c.ifNoneMatch_ != "" {
12335		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12336	}
12337	var body io.Reader = nil
12338	c.urlParams_.Set("alt", alt)
12339	c.urlParams_.Set("prettyPrint", "false")
12340	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+parent}/services")
12341	urls += "?" + c.urlParams_.Encode()
12342	req, err := http.NewRequest("GET", urls, body)
12343	if err != nil {
12344		return nil, err
12345	}
12346	req.Header = reqHeaders
12347	googleapi.Expand(req.URL, map[string]string{
12348		"parent": c.parent,
12349	})
12350	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12351}
12352
12353// Do executes the "run.namespaces.services.list" call.
12354// Exactly one of *ListServicesResponse or error will be non-nil. Any
12355// non-2xx status code is an error. Response headers are in either
12356// *ListServicesResponse.ServerResponse.Header or (if a response was
12357// returned at all) in error.(*googleapi.Error).Header. Use
12358// googleapi.IsNotModified to check whether the returned error was
12359// because http.StatusNotModified was returned.
12360func (c *NamespacesServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
12361	gensupport.SetOptions(c.urlParams_, opts...)
12362	res, err := c.doRequest("json")
12363	if res != nil && res.StatusCode == http.StatusNotModified {
12364		if res.Body != nil {
12365			res.Body.Close()
12366		}
12367		return nil, &googleapi.Error{
12368			Code:   res.StatusCode,
12369			Header: res.Header,
12370		}
12371	}
12372	if err != nil {
12373		return nil, err
12374	}
12375	defer googleapi.CloseBody(res)
12376	if err := googleapi.CheckResponse(res); err != nil {
12377		return nil, err
12378	}
12379	ret := &ListServicesResponse{
12380		ServerResponse: googleapi.ServerResponse{
12381			Header:         res.Header,
12382			HTTPStatusCode: res.StatusCode,
12383		},
12384	}
12385	target := &ret
12386	if err := gensupport.DecodeResponse(target, res); err != nil {
12387		return nil, err
12388	}
12389	return ret, nil
12390	// {
12391	//   "description": "Rpc to list services.",
12392	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services",
12393	//   "httpMethod": "GET",
12394	//   "id": "run.namespaces.services.list",
12395	//   "parameterOrder": [
12396	//     "parent"
12397	//   ],
12398	//   "parameters": {
12399	//     "continue": {
12400	//       "description": "Optional encoded string to continue paging.",
12401	//       "location": "query",
12402	//       "type": "string"
12403	//     },
12404	//     "fieldSelector": {
12405	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
12406	//       "location": "query",
12407	//       "type": "string"
12408	//     },
12409	//     "includeUninitialized": {
12410	//       "description": "Not currently used by Cloud Run.",
12411	//       "location": "query",
12412	//       "type": "boolean"
12413	//     },
12414	//     "labelSelector": {
12415	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
12416	//       "location": "query",
12417	//       "type": "string"
12418	//     },
12419	//     "limit": {
12420	//       "description": "The maximum number of records that should be returned.",
12421	//       "format": "int32",
12422	//       "location": "query",
12423	//       "type": "integer"
12424	//     },
12425	//     "parent": {
12426	//       "description": "The project ID or project number from which the services should be listed.",
12427	//       "location": "path",
12428	//       "pattern": "^namespaces/[^/]+$",
12429	//       "required": true,
12430	//       "type": "string"
12431	//     },
12432	//     "resourceVersion": {
12433	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
12434	//       "location": "query",
12435	//       "type": "string"
12436	//     },
12437	//     "watch": {
12438	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
12439	//       "location": "query",
12440	//       "type": "boolean"
12441	//     }
12442	//   },
12443	//   "path": "apis/serving.knative.dev/v1alpha1/{+parent}/services",
12444	//   "response": {
12445	//     "$ref": "ListServicesResponse"
12446	//   },
12447	//   "scopes": [
12448	//     "https://www.googleapis.com/auth/cloud-platform"
12449	//   ]
12450	// }
12451
12452}
12453
12454// method id "run.namespaces.services.replaceService":
12455
12456type NamespacesServicesReplaceServiceCall struct {
12457	s          *APIService
12458	name       string
12459	service    *Service
12460	urlParams_ gensupport.URLParams
12461	ctx_       context.Context
12462	header_    http.Header
12463}
12464
12465// ReplaceService: Rpc to replace a service.
12466//
12467// Only the spec and metadata labels and annotations are modifiable.
12468// After
12469// the Update request, Cloud Run will work to make the 'status'
12470// match the requested 'spec'.
12471//
12472// May provide metadata.resourceVersion to enforce update from last read
12473// for
12474// optimistic concurrency control.
12475func (r *NamespacesServicesService) ReplaceService(name string, service *Service) *NamespacesServicesReplaceServiceCall {
12476	c := &NamespacesServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12477	c.name = name
12478	c.service = service
12479	return c
12480}
12481
12482// Fields allows partial responses to be retrieved. See
12483// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12484// for more information.
12485func (c *NamespacesServicesReplaceServiceCall) Fields(s ...googleapi.Field) *NamespacesServicesReplaceServiceCall {
12486	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12487	return c
12488}
12489
12490// Context sets the context to be used in this call's Do method. Any
12491// pending HTTP request will be aborted if the provided context is
12492// canceled.
12493func (c *NamespacesServicesReplaceServiceCall) Context(ctx context.Context) *NamespacesServicesReplaceServiceCall {
12494	c.ctx_ = ctx
12495	return c
12496}
12497
12498// Header returns an http.Header that can be modified by the caller to
12499// add HTTP headers to the request.
12500func (c *NamespacesServicesReplaceServiceCall) Header() http.Header {
12501	if c.header_ == nil {
12502		c.header_ = make(http.Header)
12503	}
12504	return c.header_
12505}
12506
12507func (c *NamespacesServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
12508	reqHeaders := make(http.Header)
12509	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12510	for k, v := range c.header_ {
12511		reqHeaders[k] = v
12512	}
12513	reqHeaders.Set("User-Agent", c.s.userAgent())
12514	var body io.Reader = nil
12515	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
12516	if err != nil {
12517		return nil, err
12518	}
12519	reqHeaders.Set("Content-Type", "application/json")
12520	c.urlParams_.Set("alt", alt)
12521	c.urlParams_.Set("prettyPrint", "false")
12522	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/serving.knative.dev/v1alpha1/{+name}")
12523	urls += "?" + c.urlParams_.Encode()
12524	req, err := http.NewRequest("PUT", urls, body)
12525	if err != nil {
12526		return nil, err
12527	}
12528	req.Header = reqHeaders
12529	googleapi.Expand(req.URL, map[string]string{
12530		"name": c.name,
12531	})
12532	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12533}
12534
12535// Do executes the "run.namespaces.services.replaceService" call.
12536// Exactly one of *Service or error will be non-nil. Any non-2xx status
12537// code is an error. Response headers are in either
12538// *Service.ServerResponse.Header or (if a response was returned at all)
12539// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12540// check whether the returned error was because http.StatusNotModified
12541// was returned.
12542func (c *NamespacesServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
12543	gensupport.SetOptions(c.urlParams_, opts...)
12544	res, err := c.doRequest("json")
12545	if res != nil && res.StatusCode == http.StatusNotModified {
12546		if res.Body != nil {
12547			res.Body.Close()
12548		}
12549		return nil, &googleapi.Error{
12550			Code:   res.StatusCode,
12551			Header: res.Header,
12552		}
12553	}
12554	if err != nil {
12555		return nil, err
12556	}
12557	defer googleapi.CloseBody(res)
12558	if err := googleapi.CheckResponse(res); err != nil {
12559		return nil, err
12560	}
12561	ret := &Service{
12562		ServerResponse: googleapi.ServerResponse{
12563			Header:         res.Header,
12564			HTTPStatusCode: res.StatusCode,
12565		},
12566	}
12567	target := &ret
12568	if err := gensupport.DecodeResponse(target, res); err != nil {
12569		return nil, err
12570	}
12571	return ret, nil
12572	// {
12573	//   "description": "Rpc to replace a service.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
12574	//   "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}",
12575	//   "httpMethod": "PUT",
12576	//   "id": "run.namespaces.services.replaceService",
12577	//   "parameterOrder": [
12578	//     "name"
12579	//   ],
12580	//   "parameters": {
12581	//     "name": {
12582	//       "description": "The name of the service being replaced. If needed, replace\n{namespace_id} with the project ID.",
12583	//       "location": "path",
12584	//       "pattern": "^namespaces/[^/]+/services/[^/]+$",
12585	//       "required": true,
12586	//       "type": "string"
12587	//     }
12588	//   },
12589	//   "path": "apis/serving.knative.dev/v1alpha1/{+name}",
12590	//   "request": {
12591	//     "$ref": "Service"
12592	//   },
12593	//   "response": {
12594	//     "$ref": "Service"
12595	//   },
12596	//   "scopes": [
12597	//     "https://www.googleapis.com/auth/cloud-platform"
12598	//   ]
12599	// }
12600
12601}
12602
12603// method id "run.namespaces.triggers.create":
12604
12605type NamespacesTriggersCreateCall struct {
12606	s          *APIService
12607	parent     string
12608	trigger    *Trigger
12609	urlParams_ gensupport.URLParams
12610	ctx_       context.Context
12611	header_    http.Header
12612}
12613
12614// Create: Creates a new trigger.
12615func (r *NamespacesTriggersService) Create(parent string, trigger *Trigger) *NamespacesTriggersCreateCall {
12616	c := &NamespacesTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12617	c.parent = parent
12618	c.trigger = trigger
12619	return c
12620}
12621
12622// Fields allows partial responses to be retrieved. See
12623// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12624// for more information.
12625func (c *NamespacesTriggersCreateCall) Fields(s ...googleapi.Field) *NamespacesTriggersCreateCall {
12626	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12627	return c
12628}
12629
12630// Context sets the context to be used in this call's Do method. Any
12631// pending HTTP request will be aborted if the provided context is
12632// canceled.
12633func (c *NamespacesTriggersCreateCall) Context(ctx context.Context) *NamespacesTriggersCreateCall {
12634	c.ctx_ = ctx
12635	return c
12636}
12637
12638// Header returns an http.Header that can be modified by the caller to
12639// add HTTP headers to the request.
12640func (c *NamespacesTriggersCreateCall) Header() http.Header {
12641	if c.header_ == nil {
12642		c.header_ = make(http.Header)
12643	}
12644	return c.header_
12645}
12646
12647func (c *NamespacesTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
12648	reqHeaders := make(http.Header)
12649	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12650	for k, v := range c.header_ {
12651		reqHeaders[k] = v
12652	}
12653	reqHeaders.Set("User-Agent", c.s.userAgent())
12654	var body io.Reader = nil
12655	body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger)
12656	if err != nil {
12657		return nil, err
12658	}
12659	reqHeaders.Set("Content-Type", "application/json")
12660	c.urlParams_.Set("alt", alt)
12661	c.urlParams_.Set("prettyPrint", "false")
12662	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/eventing.knative.dev/v1alpha1/{+parent}/triggers")
12663	urls += "?" + c.urlParams_.Encode()
12664	req, err := http.NewRequest("POST", urls, body)
12665	if err != nil {
12666		return nil, err
12667	}
12668	req.Header = reqHeaders
12669	googleapi.Expand(req.URL, map[string]string{
12670		"parent": c.parent,
12671	})
12672	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12673}
12674
12675// Do executes the "run.namespaces.triggers.create" call.
12676// Exactly one of *Trigger or error will be non-nil. Any non-2xx status
12677// code is an error. Response headers are in either
12678// *Trigger.ServerResponse.Header or (if a response was returned at all)
12679// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12680// check whether the returned error was because http.StatusNotModified
12681// was returned.
12682func (c *NamespacesTriggersCreateCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
12683	gensupport.SetOptions(c.urlParams_, opts...)
12684	res, err := c.doRequest("json")
12685	if res != nil && res.StatusCode == http.StatusNotModified {
12686		if res.Body != nil {
12687			res.Body.Close()
12688		}
12689		return nil, &googleapi.Error{
12690			Code:   res.StatusCode,
12691			Header: res.Header,
12692		}
12693	}
12694	if err != nil {
12695		return nil, err
12696	}
12697	defer googleapi.CloseBody(res)
12698	if err := googleapi.CheckResponse(res); err != nil {
12699		return nil, err
12700	}
12701	ret := &Trigger{
12702		ServerResponse: googleapi.ServerResponse{
12703			Header:         res.Header,
12704			HTTPStatusCode: res.StatusCode,
12705		},
12706	}
12707	target := &ret
12708	if err := gensupport.DecodeResponse(target, res); err != nil {
12709		return nil, err
12710	}
12711	return ret, nil
12712	// {
12713	//   "description": "Creates a new trigger.",
12714	//   "flatPath": "apis/eventing.knative.dev/v1alpha1/namespaces/{namespacesId}/triggers",
12715	//   "httpMethod": "POST",
12716	//   "id": "run.namespaces.triggers.create",
12717	//   "parameterOrder": [
12718	//     "parent"
12719	//   ],
12720	//   "parameters": {
12721	//     "parent": {
12722	//       "description": "The project ID or project number in which this trigger should\nbe created.",
12723	//       "location": "path",
12724	//       "pattern": "^namespaces/[^/]+$",
12725	//       "required": true,
12726	//       "type": "string"
12727	//     }
12728	//   },
12729	//   "path": "apis/eventing.knative.dev/v1alpha1/{+parent}/triggers",
12730	//   "request": {
12731	//     "$ref": "Trigger"
12732	//   },
12733	//   "response": {
12734	//     "$ref": "Trigger"
12735	//   },
12736	//   "scopes": [
12737	//     "https://www.googleapis.com/auth/cloud-platform"
12738	//   ]
12739	// }
12740
12741}
12742
12743// method id "run.namespaces.triggers.delete":
12744
12745type NamespacesTriggersDeleteCall struct {
12746	s          *APIService
12747	name       string
12748	urlParams_ gensupport.URLParams
12749	ctx_       context.Context
12750	header_    http.Header
12751}
12752
12753// Delete: Rpc to delete a trigger.
12754func (r *NamespacesTriggersService) Delete(name string) *NamespacesTriggersDeleteCall {
12755	c := &NamespacesTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12756	c.name = name
12757	return c
12758}
12759
12760// ApiVersion sets the optional parameter "apiVersion": Cloud Run
12761// currently ignores this parameter.
12762func (c *NamespacesTriggersDeleteCall) ApiVersion(apiVersion string) *NamespacesTriggersDeleteCall {
12763	c.urlParams_.Set("apiVersion", apiVersion)
12764	return c
12765}
12766
12767// Kind sets the optional parameter "kind": Cloud Run currently ignores
12768// this parameter.
12769func (c *NamespacesTriggersDeleteCall) Kind(kind string) *NamespacesTriggersDeleteCall {
12770	c.urlParams_.Set("kind", kind)
12771	return c
12772}
12773
12774// PropagationPolicy sets the optional parameter "propagationPolicy":
12775// Specifies the propagation policy of delete. Cloud Run currently
12776// ignores
12777// this setting, and deletes in the background. Please
12778// see
12779// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
12780// on/ for
12781// more information.
12782func (c *NamespacesTriggersDeleteCall) PropagationPolicy(propagationPolicy string) *NamespacesTriggersDeleteCall {
12783	c.urlParams_.Set("propagationPolicy", propagationPolicy)
12784	return c
12785}
12786
12787// Fields allows partial responses to be retrieved. See
12788// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12789// for more information.
12790func (c *NamespacesTriggersDeleteCall) Fields(s ...googleapi.Field) *NamespacesTriggersDeleteCall {
12791	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12792	return c
12793}
12794
12795// Context sets the context to be used in this call's Do method. Any
12796// pending HTTP request will be aborted if the provided context is
12797// canceled.
12798func (c *NamespacesTriggersDeleteCall) Context(ctx context.Context) *NamespacesTriggersDeleteCall {
12799	c.ctx_ = ctx
12800	return c
12801}
12802
12803// Header returns an http.Header that can be modified by the caller to
12804// add HTTP headers to the request.
12805func (c *NamespacesTriggersDeleteCall) Header() http.Header {
12806	if c.header_ == nil {
12807		c.header_ = make(http.Header)
12808	}
12809	return c.header_
12810}
12811
12812func (c *NamespacesTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
12813	reqHeaders := make(http.Header)
12814	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12815	for k, v := range c.header_ {
12816		reqHeaders[k] = v
12817	}
12818	reqHeaders.Set("User-Agent", c.s.userAgent())
12819	var body io.Reader = nil
12820	c.urlParams_.Set("alt", alt)
12821	c.urlParams_.Set("prettyPrint", "false")
12822	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/eventing.knative.dev/v1alpha1/{+name}")
12823	urls += "?" + c.urlParams_.Encode()
12824	req, err := http.NewRequest("DELETE", urls, body)
12825	if err != nil {
12826		return nil, err
12827	}
12828	req.Header = reqHeaders
12829	googleapi.Expand(req.URL, map[string]string{
12830		"name": c.name,
12831	})
12832	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12833}
12834
12835// Do executes the "run.namespaces.triggers.delete" call.
12836// Exactly one of *Empty or error will be non-nil. Any non-2xx status
12837// code is an error. Response headers are in either
12838// *Empty.ServerResponse.Header or (if a response was returned at all)
12839// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12840// check whether the returned error was because http.StatusNotModified
12841// was returned.
12842func (c *NamespacesTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
12843	gensupport.SetOptions(c.urlParams_, opts...)
12844	res, err := c.doRequest("json")
12845	if res != nil && res.StatusCode == http.StatusNotModified {
12846		if res.Body != nil {
12847			res.Body.Close()
12848		}
12849		return nil, &googleapi.Error{
12850			Code:   res.StatusCode,
12851			Header: res.Header,
12852		}
12853	}
12854	if err != nil {
12855		return nil, err
12856	}
12857	defer googleapi.CloseBody(res)
12858	if err := googleapi.CheckResponse(res); err != nil {
12859		return nil, err
12860	}
12861	ret := &Empty{
12862		ServerResponse: googleapi.ServerResponse{
12863			Header:         res.Header,
12864			HTTPStatusCode: res.StatusCode,
12865		},
12866	}
12867	target := &ret
12868	if err := gensupport.DecodeResponse(target, res); err != nil {
12869		return nil, err
12870	}
12871	return ret, nil
12872	// {
12873	//   "description": "Rpc to delete a trigger.",
12874	//   "flatPath": "apis/eventing.knative.dev/v1alpha1/namespaces/{namespacesId}/triggers/{triggersId}",
12875	//   "httpMethod": "DELETE",
12876	//   "id": "run.namespaces.triggers.delete",
12877	//   "parameterOrder": [
12878	//     "name"
12879	//   ],
12880	//   "parameters": {
12881	//     "apiVersion": {
12882	//       "description": "Cloud Run currently ignores this parameter.",
12883	//       "location": "query",
12884	//       "type": "string"
12885	//     },
12886	//     "kind": {
12887	//       "description": "Cloud Run currently ignores this parameter.",
12888	//       "location": "query",
12889	//       "type": "string"
12890	//     },
12891	//     "name": {
12892	//       "description": "The name of the trigger being deleted. If needed, replace\n{namespace_id} with the project ID.",
12893	//       "location": "path",
12894	//       "pattern": "^namespaces/[^/]+/triggers/[^/]+$",
12895	//       "required": true,
12896	//       "type": "string"
12897	//     },
12898	//     "propagationPolicy": {
12899	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
12900	//       "location": "query",
12901	//       "type": "string"
12902	//     }
12903	//   },
12904	//   "path": "apis/eventing.knative.dev/v1alpha1/{+name}",
12905	//   "response": {
12906	//     "$ref": "Empty"
12907	//   },
12908	//   "scopes": [
12909	//     "https://www.googleapis.com/auth/cloud-platform"
12910	//   ]
12911	// }
12912
12913}
12914
12915// method id "run.namespaces.triggers.get":
12916
12917type NamespacesTriggersGetCall struct {
12918	s            *APIService
12919	name         string
12920	urlParams_   gensupport.URLParams
12921	ifNoneMatch_ string
12922	ctx_         context.Context
12923	header_      http.Header
12924}
12925
12926// Get: Rpc to get information about a trigger.
12927func (r *NamespacesTriggersService) Get(name string) *NamespacesTriggersGetCall {
12928	c := &NamespacesTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12929	c.name = name
12930	return c
12931}
12932
12933// Fields allows partial responses to be retrieved. See
12934// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
12935// for more information.
12936func (c *NamespacesTriggersGetCall) Fields(s ...googleapi.Field) *NamespacesTriggersGetCall {
12937	c.urlParams_.Set("fields", googleapi.CombineFields(s))
12938	return c
12939}
12940
12941// IfNoneMatch sets the optional parameter which makes the operation
12942// fail if the object's ETag matches the given value. This is useful for
12943// getting updates only after the object has changed since the last
12944// request. Use googleapi.IsNotModified to check whether the response
12945// error from Do is the result of In-None-Match.
12946func (c *NamespacesTriggersGetCall) IfNoneMatch(entityTag string) *NamespacesTriggersGetCall {
12947	c.ifNoneMatch_ = entityTag
12948	return c
12949}
12950
12951// Context sets the context to be used in this call's Do method. Any
12952// pending HTTP request will be aborted if the provided context is
12953// canceled.
12954func (c *NamespacesTriggersGetCall) Context(ctx context.Context) *NamespacesTriggersGetCall {
12955	c.ctx_ = ctx
12956	return c
12957}
12958
12959// Header returns an http.Header that can be modified by the caller to
12960// add HTTP headers to the request.
12961func (c *NamespacesTriggersGetCall) Header() http.Header {
12962	if c.header_ == nil {
12963		c.header_ = make(http.Header)
12964	}
12965	return c.header_
12966}
12967
12968func (c *NamespacesTriggersGetCall) doRequest(alt string) (*http.Response, error) {
12969	reqHeaders := make(http.Header)
12970	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
12971	for k, v := range c.header_ {
12972		reqHeaders[k] = v
12973	}
12974	reqHeaders.Set("User-Agent", c.s.userAgent())
12975	if c.ifNoneMatch_ != "" {
12976		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12977	}
12978	var body io.Reader = nil
12979	c.urlParams_.Set("alt", alt)
12980	c.urlParams_.Set("prettyPrint", "false")
12981	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/eventing.knative.dev/v1alpha1/{+name}")
12982	urls += "?" + c.urlParams_.Encode()
12983	req, err := http.NewRequest("GET", urls, body)
12984	if err != nil {
12985		return nil, err
12986	}
12987	req.Header = reqHeaders
12988	googleapi.Expand(req.URL, map[string]string{
12989		"name": c.name,
12990	})
12991	return gensupport.SendRequest(c.ctx_, c.s.client, req)
12992}
12993
12994// Do executes the "run.namespaces.triggers.get" call.
12995// Exactly one of *Trigger or error will be non-nil. Any non-2xx status
12996// code is an error. Response headers are in either
12997// *Trigger.ServerResponse.Header or (if a response was returned at all)
12998// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
12999// check whether the returned error was because http.StatusNotModified
13000// was returned.
13001func (c *NamespacesTriggersGetCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
13002	gensupport.SetOptions(c.urlParams_, opts...)
13003	res, err := c.doRequest("json")
13004	if res != nil && res.StatusCode == http.StatusNotModified {
13005		if res.Body != nil {
13006			res.Body.Close()
13007		}
13008		return nil, &googleapi.Error{
13009			Code:   res.StatusCode,
13010			Header: res.Header,
13011		}
13012	}
13013	if err != nil {
13014		return nil, err
13015	}
13016	defer googleapi.CloseBody(res)
13017	if err := googleapi.CheckResponse(res); err != nil {
13018		return nil, err
13019	}
13020	ret := &Trigger{
13021		ServerResponse: googleapi.ServerResponse{
13022			Header:         res.Header,
13023			HTTPStatusCode: res.StatusCode,
13024		},
13025	}
13026	target := &ret
13027	if err := gensupport.DecodeResponse(target, res); err != nil {
13028		return nil, err
13029	}
13030	return ret, nil
13031	// {
13032	//   "description": "Rpc to get information about a trigger.",
13033	//   "flatPath": "apis/eventing.knative.dev/v1alpha1/namespaces/{namespacesId}/triggers/{triggersId}",
13034	//   "httpMethod": "GET",
13035	//   "id": "run.namespaces.triggers.get",
13036	//   "parameterOrder": [
13037	//     "name"
13038	//   ],
13039	//   "parameters": {
13040	//     "name": {
13041	//       "description": "The name of the trigger being retrieved. If needed, replace\n{namespace_id} with the project ID.",
13042	//       "location": "path",
13043	//       "pattern": "^namespaces/[^/]+/triggers/[^/]+$",
13044	//       "required": true,
13045	//       "type": "string"
13046	//     }
13047	//   },
13048	//   "path": "apis/eventing.knative.dev/v1alpha1/{+name}",
13049	//   "response": {
13050	//     "$ref": "Trigger"
13051	//   },
13052	//   "scopes": [
13053	//     "https://www.googleapis.com/auth/cloud-platform"
13054	//   ]
13055	// }
13056
13057}
13058
13059// method id "run.namespaces.triggers.list":
13060
13061type NamespacesTriggersListCall struct {
13062	s            *APIService
13063	parent       string
13064	urlParams_   gensupport.URLParams
13065	ifNoneMatch_ string
13066	ctx_         context.Context
13067	header_      http.Header
13068}
13069
13070// List: Rpc to list triggers.
13071func (r *NamespacesTriggersService) List(parent string) *NamespacesTriggersListCall {
13072	c := &NamespacesTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13073	c.parent = parent
13074	return c
13075}
13076
13077// Continue sets the optional parameter "continue": Encoded string to
13078// continue paging.
13079func (c *NamespacesTriggersListCall) Continue(continue_ string) *NamespacesTriggersListCall {
13080	c.urlParams_.Set("continue", continue_)
13081	return c
13082}
13083
13084// FieldSelector sets the optional parameter "fieldSelector": Allows to
13085// filter resources based on a specific value for a field name.
13086// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
13087// Not currently used by Cloud Run.
13088func (c *NamespacesTriggersListCall) FieldSelector(fieldSelector string) *NamespacesTriggersListCall {
13089	c.urlParams_.Set("fieldSelector", fieldSelector)
13090	return c
13091}
13092
13093// IncludeUninitialized sets the optional parameter
13094// "includeUninitialized": Not currently used by Cloud Run.
13095func (c *NamespacesTriggersListCall) IncludeUninitialized(includeUninitialized bool) *NamespacesTriggersListCall {
13096	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
13097	return c
13098}
13099
13100// LabelSelector sets the optional parameter "labelSelector": Allows to
13101// filter resources based on a label. Supported operations are
13102// =, !=, exists, in, and notIn.
13103func (c *NamespacesTriggersListCall) LabelSelector(labelSelector string) *NamespacesTriggersListCall {
13104	c.urlParams_.Set("labelSelector", labelSelector)
13105	return c
13106}
13107
13108// Limit sets the optional parameter "limit": The maximum number of
13109// records that should be returned.
13110func (c *NamespacesTriggersListCall) Limit(limit int64) *NamespacesTriggersListCall {
13111	c.urlParams_.Set("limit", fmt.Sprint(limit))
13112	return c
13113}
13114
13115// ResourceVersion sets the optional parameter "resourceVersion": The
13116// baseline resource version from which the list or watch operation
13117// should
13118// start. Not currently used by Cloud Run.
13119func (c *NamespacesTriggersListCall) ResourceVersion(resourceVersion string) *NamespacesTriggersListCall {
13120	c.urlParams_.Set("resourceVersion", resourceVersion)
13121	return c
13122}
13123
13124// Watch sets the optional parameter "watch": Flag that indicates that
13125// the client expects to watch this resource as well.
13126// Not currently used by Cloud Run.
13127func (c *NamespacesTriggersListCall) Watch(watch bool) *NamespacesTriggersListCall {
13128	c.urlParams_.Set("watch", fmt.Sprint(watch))
13129	return c
13130}
13131
13132// Fields allows partial responses to be retrieved. See
13133// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13134// for more information.
13135func (c *NamespacesTriggersListCall) Fields(s ...googleapi.Field) *NamespacesTriggersListCall {
13136	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13137	return c
13138}
13139
13140// IfNoneMatch sets the optional parameter which makes the operation
13141// fail if the object's ETag matches the given value. This is useful for
13142// getting updates only after the object has changed since the last
13143// request. Use googleapi.IsNotModified to check whether the response
13144// error from Do is the result of In-None-Match.
13145func (c *NamespacesTriggersListCall) IfNoneMatch(entityTag string) *NamespacesTriggersListCall {
13146	c.ifNoneMatch_ = entityTag
13147	return c
13148}
13149
13150// Context sets the context to be used in this call's Do method. Any
13151// pending HTTP request will be aborted if the provided context is
13152// canceled.
13153func (c *NamespacesTriggersListCall) Context(ctx context.Context) *NamespacesTriggersListCall {
13154	c.ctx_ = ctx
13155	return c
13156}
13157
13158// Header returns an http.Header that can be modified by the caller to
13159// add HTTP headers to the request.
13160func (c *NamespacesTriggersListCall) Header() http.Header {
13161	if c.header_ == nil {
13162		c.header_ = make(http.Header)
13163	}
13164	return c.header_
13165}
13166
13167func (c *NamespacesTriggersListCall) doRequest(alt string) (*http.Response, error) {
13168	reqHeaders := make(http.Header)
13169	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
13170	for k, v := range c.header_ {
13171		reqHeaders[k] = v
13172	}
13173	reqHeaders.Set("User-Agent", c.s.userAgent())
13174	if c.ifNoneMatch_ != "" {
13175		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13176	}
13177	var body io.Reader = nil
13178	c.urlParams_.Set("alt", alt)
13179	c.urlParams_.Set("prettyPrint", "false")
13180	urls := googleapi.ResolveRelative(c.s.BasePath, "apis/eventing.knative.dev/v1alpha1/{+parent}/triggers")
13181	urls += "?" + c.urlParams_.Encode()
13182	req, err := http.NewRequest("GET", urls, body)
13183	if err != nil {
13184		return nil, err
13185	}
13186	req.Header = reqHeaders
13187	googleapi.Expand(req.URL, map[string]string{
13188		"parent": c.parent,
13189	})
13190	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13191}
13192
13193// Do executes the "run.namespaces.triggers.list" call.
13194// Exactly one of *ListTriggersResponse or error will be non-nil. Any
13195// non-2xx status code is an error. Response headers are in either
13196// *ListTriggersResponse.ServerResponse.Header or (if a response was
13197// returned at all) in error.(*googleapi.Error).Header. Use
13198// googleapi.IsNotModified to check whether the returned error was
13199// because http.StatusNotModified was returned.
13200func (c *NamespacesTriggersListCall) Do(opts ...googleapi.CallOption) (*ListTriggersResponse, error) {
13201	gensupport.SetOptions(c.urlParams_, opts...)
13202	res, err := c.doRequest("json")
13203	if res != nil && res.StatusCode == http.StatusNotModified {
13204		if res.Body != nil {
13205			res.Body.Close()
13206		}
13207		return nil, &googleapi.Error{
13208			Code:   res.StatusCode,
13209			Header: res.Header,
13210		}
13211	}
13212	if err != nil {
13213		return nil, err
13214	}
13215	defer googleapi.CloseBody(res)
13216	if err := googleapi.CheckResponse(res); err != nil {
13217		return nil, err
13218	}
13219	ret := &ListTriggersResponse{
13220		ServerResponse: googleapi.ServerResponse{
13221			Header:         res.Header,
13222			HTTPStatusCode: res.StatusCode,
13223		},
13224	}
13225	target := &ret
13226	if err := gensupport.DecodeResponse(target, res); err != nil {
13227		return nil, err
13228	}
13229	return ret, nil
13230	// {
13231	//   "description": "Rpc to list triggers.",
13232	//   "flatPath": "apis/eventing.knative.dev/v1alpha1/namespaces/{namespacesId}/triggers",
13233	//   "httpMethod": "GET",
13234	//   "id": "run.namespaces.triggers.list",
13235	//   "parameterOrder": [
13236	//     "parent"
13237	//   ],
13238	//   "parameters": {
13239	//     "continue": {
13240	//       "description": "Optional. Encoded string to continue paging.",
13241	//       "location": "query",
13242	//       "type": "string"
13243	//     },
13244	//     "fieldSelector": {
13245	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
13246	//       "location": "query",
13247	//       "type": "string"
13248	//     },
13249	//     "includeUninitialized": {
13250	//       "description": "Not currently used by Cloud Run.",
13251	//       "location": "query",
13252	//       "type": "boolean"
13253	//     },
13254	//     "labelSelector": {
13255	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
13256	//       "location": "query",
13257	//       "type": "string"
13258	//     },
13259	//     "limit": {
13260	//       "description": "The maximum number of records that should be returned.",
13261	//       "format": "int32",
13262	//       "location": "query",
13263	//       "type": "integer"
13264	//     },
13265	//     "parent": {
13266	//       "description": "The project ID or project number from which the triggers should\nbe listed.",
13267	//       "location": "path",
13268	//       "pattern": "^namespaces/[^/]+$",
13269	//       "required": true,
13270	//       "type": "string"
13271	//     },
13272	//     "resourceVersion": {
13273	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
13274	//       "location": "query",
13275	//       "type": "string"
13276	//     },
13277	//     "watch": {
13278	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
13279	//       "location": "query",
13280	//       "type": "boolean"
13281	//     }
13282	//   },
13283	//   "path": "apis/eventing.knative.dev/v1alpha1/{+parent}/triggers",
13284	//   "response": {
13285	//     "$ref": "ListTriggersResponse"
13286	//   },
13287	//   "scopes": [
13288	//     "https://www.googleapis.com/auth/cloud-platform"
13289	//   ]
13290	// }
13291
13292}
13293
13294// method id "run.projects.locations.list":
13295
13296type ProjectsLocationsListCall struct {
13297	s            *APIService
13298	name         string
13299	urlParams_   gensupport.URLParams
13300	ifNoneMatch_ string
13301	ctx_         context.Context
13302	header_      http.Header
13303}
13304
13305// List: Lists information about the supported locations for this
13306// service.
13307func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
13308	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13309	c.name = name
13310	return c
13311}
13312
13313// Filter sets the optional parameter "filter": The standard list
13314// filter.
13315func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
13316	c.urlParams_.Set("filter", filter)
13317	return c
13318}
13319
13320// PageSize sets the optional parameter "pageSize": The standard list
13321// page size.
13322func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
13323	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13324	return c
13325}
13326
13327// PageToken sets the optional parameter "pageToken": The standard list
13328// page token.
13329func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
13330	c.urlParams_.Set("pageToken", pageToken)
13331	return c
13332}
13333
13334// Fields allows partial responses to be retrieved. See
13335// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13336// for more information.
13337func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
13338	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13339	return c
13340}
13341
13342// IfNoneMatch sets the optional parameter which makes the operation
13343// fail if the object's ETag matches the given value. This is useful for
13344// getting updates only after the object has changed since the last
13345// request. Use googleapi.IsNotModified to check whether the response
13346// error from Do is the result of In-None-Match.
13347func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
13348	c.ifNoneMatch_ = entityTag
13349	return c
13350}
13351
13352// Context sets the context to be used in this call's Do method. Any
13353// pending HTTP request will be aborted if the provided context is
13354// canceled.
13355func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
13356	c.ctx_ = ctx
13357	return c
13358}
13359
13360// Header returns an http.Header that can be modified by the caller to
13361// add HTTP headers to the request.
13362func (c *ProjectsLocationsListCall) Header() http.Header {
13363	if c.header_ == nil {
13364		c.header_ = make(http.Header)
13365	}
13366	return c.header_
13367}
13368
13369func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
13370	reqHeaders := make(http.Header)
13371	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
13372	for k, v := range c.header_ {
13373		reqHeaders[k] = v
13374	}
13375	reqHeaders.Set("User-Agent", c.s.userAgent())
13376	if c.ifNoneMatch_ != "" {
13377		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13378	}
13379	var body io.Reader = nil
13380	c.urlParams_.Set("alt", alt)
13381	c.urlParams_.Set("prettyPrint", "false")
13382	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}/locations")
13383	urls += "?" + c.urlParams_.Encode()
13384	req, err := http.NewRequest("GET", urls, body)
13385	if err != nil {
13386		return nil, err
13387	}
13388	req.Header = reqHeaders
13389	googleapi.Expand(req.URL, map[string]string{
13390		"name": c.name,
13391	})
13392	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13393}
13394
13395// Do executes the "run.projects.locations.list" call.
13396// Exactly one of *ListLocationsResponse or error will be non-nil. Any
13397// non-2xx status code is an error. Response headers are in either
13398// *ListLocationsResponse.ServerResponse.Header or (if a response was
13399// returned at all) in error.(*googleapi.Error).Header. Use
13400// googleapi.IsNotModified to check whether the returned error was
13401// because http.StatusNotModified was returned.
13402func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
13403	gensupport.SetOptions(c.urlParams_, opts...)
13404	res, err := c.doRequest("json")
13405	if res != nil && res.StatusCode == http.StatusNotModified {
13406		if res.Body != nil {
13407			res.Body.Close()
13408		}
13409		return nil, &googleapi.Error{
13410			Code:   res.StatusCode,
13411			Header: res.Header,
13412		}
13413	}
13414	if err != nil {
13415		return nil, err
13416	}
13417	defer googleapi.CloseBody(res)
13418	if err := googleapi.CheckResponse(res); err != nil {
13419		return nil, err
13420	}
13421	ret := &ListLocationsResponse{
13422		ServerResponse: googleapi.ServerResponse{
13423			Header:         res.Header,
13424			HTTPStatusCode: res.StatusCode,
13425		},
13426	}
13427	target := &ret
13428	if err := gensupport.DecodeResponse(target, res); err != nil {
13429		return nil, err
13430	}
13431	return ret, nil
13432	// {
13433	//   "description": "Lists information about the supported locations for this service.",
13434	//   "flatPath": "v1alpha1/projects/{projectsId}/locations",
13435	//   "httpMethod": "GET",
13436	//   "id": "run.projects.locations.list",
13437	//   "parameterOrder": [
13438	//     "name"
13439	//   ],
13440	//   "parameters": {
13441	//     "filter": {
13442	//       "description": "The standard list filter.",
13443	//       "location": "query",
13444	//       "type": "string"
13445	//     },
13446	//     "name": {
13447	//       "description": "The resource that owns the locations collection, if applicable.",
13448	//       "location": "path",
13449	//       "pattern": "^projects/[^/]+$",
13450	//       "required": true,
13451	//       "type": "string"
13452	//     },
13453	//     "pageSize": {
13454	//       "description": "The standard list page size.",
13455	//       "format": "int32",
13456	//       "location": "query",
13457	//       "type": "integer"
13458	//     },
13459	//     "pageToken": {
13460	//       "description": "The standard list page token.",
13461	//       "location": "query",
13462	//       "type": "string"
13463	//     }
13464	//   },
13465	//   "path": "v1alpha1/{+name}/locations",
13466	//   "response": {
13467	//     "$ref": "ListLocationsResponse"
13468	//   },
13469	//   "scopes": [
13470	//     "https://www.googleapis.com/auth/cloud-platform"
13471	//   ]
13472	// }
13473
13474}
13475
13476// Pages invokes f for each page of results.
13477// A non-nil error returned from f will halt the iteration.
13478// The provided context supersedes any context provided to the Context method.
13479func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
13480	c.ctx_ = ctx
13481	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13482	for {
13483		x, err := c.Do()
13484		if err != nil {
13485			return err
13486		}
13487		if err := f(x); err != nil {
13488			return err
13489		}
13490		if x.NextPageToken == "" {
13491			return nil
13492		}
13493		c.PageToken(x.NextPageToken)
13494	}
13495}
13496
13497// method id "run.projects.locations.authorizeddomains.list":
13498
13499type ProjectsLocationsAuthorizeddomainsListCall struct {
13500	s            *APIService
13501	parent       string
13502	urlParams_   gensupport.URLParams
13503	ifNoneMatch_ string
13504	ctx_         context.Context
13505	header_      http.Header
13506}
13507
13508// List: RPC to list authorized domains.
13509func (r *ProjectsLocationsAuthorizeddomainsService) List(parent string) *ProjectsLocationsAuthorizeddomainsListCall {
13510	c := &ProjectsLocationsAuthorizeddomainsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13511	c.parent = parent
13512	return c
13513}
13514
13515// PageSize sets the optional parameter "pageSize": Maximum results to
13516// return per page.
13517func (c *ProjectsLocationsAuthorizeddomainsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizeddomainsListCall {
13518	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13519	return c
13520}
13521
13522// PageToken sets the optional parameter "pageToken": Continuation token
13523// for fetching the next page of results.
13524func (c *ProjectsLocationsAuthorizeddomainsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizeddomainsListCall {
13525	c.urlParams_.Set("pageToken", pageToken)
13526	return c
13527}
13528
13529// Fields allows partial responses to be retrieved. See
13530// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13531// for more information.
13532func (c *ProjectsLocationsAuthorizeddomainsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizeddomainsListCall {
13533	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13534	return c
13535}
13536
13537// IfNoneMatch sets the optional parameter which makes the operation
13538// fail if the object's ETag matches the given value. This is useful for
13539// getting updates only after the object has changed since the last
13540// request. Use googleapi.IsNotModified to check whether the response
13541// error from Do is the result of In-None-Match.
13542func (c *ProjectsLocationsAuthorizeddomainsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizeddomainsListCall {
13543	c.ifNoneMatch_ = entityTag
13544	return c
13545}
13546
13547// Context sets the context to be used in this call's Do method. Any
13548// pending HTTP request will be aborted if the provided context is
13549// canceled.
13550func (c *ProjectsLocationsAuthorizeddomainsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizeddomainsListCall {
13551	c.ctx_ = ctx
13552	return c
13553}
13554
13555// Header returns an http.Header that can be modified by the caller to
13556// add HTTP headers to the request.
13557func (c *ProjectsLocationsAuthorizeddomainsListCall) Header() http.Header {
13558	if c.header_ == nil {
13559		c.header_ = make(http.Header)
13560	}
13561	return c.header_
13562}
13563
13564func (c *ProjectsLocationsAuthorizeddomainsListCall) doRequest(alt string) (*http.Response, error) {
13565	reqHeaders := make(http.Header)
13566	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
13567	for k, v := range c.header_ {
13568		reqHeaders[k] = v
13569	}
13570	reqHeaders.Set("User-Agent", c.s.userAgent())
13571	if c.ifNoneMatch_ != "" {
13572		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13573	}
13574	var body io.Reader = nil
13575	c.urlParams_.Set("alt", alt)
13576	c.urlParams_.Set("prettyPrint", "false")
13577	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/authorizeddomains")
13578	urls += "?" + c.urlParams_.Encode()
13579	req, err := http.NewRequest("GET", urls, body)
13580	if err != nil {
13581		return nil, err
13582	}
13583	req.Header = reqHeaders
13584	googleapi.Expand(req.URL, map[string]string{
13585		"parent": c.parent,
13586	})
13587	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13588}
13589
13590// Do executes the "run.projects.locations.authorizeddomains.list" call.
13591// Exactly one of *ListAuthorizedDomainsResponse or error will be
13592// non-nil. Any non-2xx status code is an error. Response headers are in
13593// either *ListAuthorizedDomainsResponse.ServerResponse.Header or (if a
13594// response was returned at all) in error.(*googleapi.Error).Header. Use
13595// googleapi.IsNotModified to check whether the returned error was
13596// because http.StatusNotModified was returned.
13597func (c *ProjectsLocationsAuthorizeddomainsListCall) Do(opts ...googleapi.CallOption) (*ListAuthorizedDomainsResponse, error) {
13598	gensupport.SetOptions(c.urlParams_, opts...)
13599	res, err := c.doRequest("json")
13600	if res != nil && res.StatusCode == http.StatusNotModified {
13601		if res.Body != nil {
13602			res.Body.Close()
13603		}
13604		return nil, &googleapi.Error{
13605			Code:   res.StatusCode,
13606			Header: res.Header,
13607		}
13608	}
13609	if err != nil {
13610		return nil, err
13611	}
13612	defer googleapi.CloseBody(res)
13613	if err := googleapi.CheckResponse(res); err != nil {
13614		return nil, err
13615	}
13616	ret := &ListAuthorizedDomainsResponse{
13617		ServerResponse: googleapi.ServerResponse{
13618			Header:         res.Header,
13619			HTTPStatusCode: res.StatusCode,
13620		},
13621	}
13622	target := &ret
13623	if err := gensupport.DecodeResponse(target, res); err != nil {
13624		return nil, err
13625	}
13626	return ret, nil
13627	// {
13628	//   "description": "RPC to list authorized domains.",
13629	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/authorizeddomains",
13630	//   "httpMethod": "GET",
13631	//   "id": "run.projects.locations.authorizeddomains.list",
13632	//   "parameterOrder": [
13633	//     "parent"
13634	//   ],
13635	//   "parameters": {
13636	//     "pageSize": {
13637	//       "description": "Maximum results to return per page.",
13638	//       "format": "int32",
13639	//       "location": "query",
13640	//       "type": "integer"
13641	//     },
13642	//     "pageToken": {
13643	//       "description": "Continuation token for fetching the next page of results.",
13644	//       "location": "query",
13645	//       "type": "string"
13646	//     },
13647	//     "parent": {
13648	//       "description": "Name of the parent Application resource. Example: `apps/myapp`.",
13649	//       "location": "path",
13650	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
13651	//       "required": true,
13652	//       "type": "string"
13653	//     }
13654	//   },
13655	//   "path": "v1alpha1/{+parent}/authorizeddomains",
13656	//   "response": {
13657	//     "$ref": "ListAuthorizedDomainsResponse"
13658	//   },
13659	//   "scopes": [
13660	//     "https://www.googleapis.com/auth/cloud-platform"
13661	//   ]
13662	// }
13663
13664}
13665
13666// Pages invokes f for each page of results.
13667// A non-nil error returned from f will halt the iteration.
13668// The provided context supersedes any context provided to the Context method.
13669func (c *ProjectsLocationsAuthorizeddomainsListCall) Pages(ctx context.Context, f func(*ListAuthorizedDomainsResponse) error) error {
13670	c.ctx_ = ctx
13671	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
13672	for {
13673		x, err := c.Do()
13674		if err != nil {
13675			return err
13676		}
13677		if err := f(x); err != nil {
13678			return err
13679		}
13680		if x.NextPageToken == "" {
13681			return nil
13682		}
13683		c.PageToken(x.NextPageToken)
13684	}
13685}
13686
13687// method id "run.projects.locations.cloudauditlogssources.create":
13688
13689type ProjectsLocationsCloudauditlogssourcesCreateCall struct {
13690	s                    *APIService
13691	parent               string
13692	cloudauditlogssource *CloudAuditLogsSource
13693	urlParams_           gensupport.URLParams
13694	ctx_                 context.Context
13695	header_              http.Header
13696}
13697
13698// Create: Creates a new cloudauditlogssource.
13699func (r *ProjectsLocationsCloudauditlogssourcesService) Create(parent string, cloudauditlogssource *CloudAuditLogsSource) *ProjectsLocationsCloudauditlogssourcesCreateCall {
13700	c := &ProjectsLocationsCloudauditlogssourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13701	c.parent = parent
13702	c.cloudauditlogssource = cloudauditlogssource
13703	return c
13704}
13705
13706// Fields allows partial responses to be retrieved. See
13707// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13708// for more information.
13709func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudauditlogssourcesCreateCall {
13710	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13711	return c
13712}
13713
13714// Context sets the context to be used in this call's Do method. Any
13715// pending HTTP request will be aborted if the provided context is
13716// canceled.
13717func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudauditlogssourcesCreateCall {
13718	c.ctx_ = ctx
13719	return c
13720}
13721
13722// Header returns an http.Header that can be modified by the caller to
13723// add HTTP headers to the request.
13724func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) Header() http.Header {
13725	if c.header_ == nil {
13726		c.header_ = make(http.Header)
13727	}
13728	return c.header_
13729}
13730
13731func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) doRequest(alt string) (*http.Response, error) {
13732	reqHeaders := make(http.Header)
13733	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
13734	for k, v := range c.header_ {
13735		reqHeaders[k] = v
13736	}
13737	reqHeaders.Set("User-Agent", c.s.userAgent())
13738	var body io.Reader = nil
13739	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudauditlogssource)
13740	if err != nil {
13741		return nil, err
13742	}
13743	reqHeaders.Set("Content-Type", "application/json")
13744	c.urlParams_.Set("alt", alt)
13745	c.urlParams_.Set("prettyPrint", "false")
13746	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudauditlogssources")
13747	urls += "?" + c.urlParams_.Encode()
13748	req, err := http.NewRequest("POST", urls, body)
13749	if err != nil {
13750		return nil, err
13751	}
13752	req.Header = reqHeaders
13753	googleapi.Expand(req.URL, map[string]string{
13754		"parent": c.parent,
13755	})
13756	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13757}
13758
13759// Do executes the "run.projects.locations.cloudauditlogssources.create" call.
13760// Exactly one of *CloudAuditLogsSource or error will be non-nil. Any
13761// non-2xx status code is an error. Response headers are in either
13762// *CloudAuditLogsSource.ServerResponse.Header or (if a response was
13763// returned at all) in error.(*googleapi.Error).Header. Use
13764// googleapi.IsNotModified to check whether the returned error was
13765// because http.StatusNotModified was returned.
13766func (c *ProjectsLocationsCloudauditlogssourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudAuditLogsSource, error) {
13767	gensupport.SetOptions(c.urlParams_, opts...)
13768	res, err := c.doRequest("json")
13769	if res != nil && res.StatusCode == http.StatusNotModified {
13770		if res.Body != nil {
13771			res.Body.Close()
13772		}
13773		return nil, &googleapi.Error{
13774			Code:   res.StatusCode,
13775			Header: res.Header,
13776		}
13777	}
13778	if err != nil {
13779		return nil, err
13780	}
13781	defer googleapi.CloseBody(res)
13782	if err := googleapi.CheckResponse(res); err != nil {
13783		return nil, err
13784	}
13785	ret := &CloudAuditLogsSource{
13786		ServerResponse: googleapi.ServerResponse{
13787			Header:         res.Header,
13788			HTTPStatusCode: res.StatusCode,
13789		},
13790	}
13791	target := &ret
13792	if err := gensupport.DecodeResponse(target, res); err != nil {
13793		return nil, err
13794	}
13795	return ret, nil
13796	// {
13797	//   "description": "Creates a new cloudauditlogssource.",
13798	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudauditlogssources",
13799	//   "httpMethod": "POST",
13800	//   "id": "run.projects.locations.cloudauditlogssources.create",
13801	//   "parameterOrder": [
13802	//     "parent"
13803	//   ],
13804	//   "parameters": {
13805	//     "parent": {
13806	//       "description": "The project ID or project number in which this cloudauditlogssource should\nbe created.",
13807	//       "location": "path",
13808	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
13809	//       "required": true,
13810	//       "type": "string"
13811	//     }
13812	//   },
13813	//   "path": "v1alpha1/{+parent}/cloudauditlogssources",
13814	//   "request": {
13815	//     "$ref": "CloudAuditLogsSource"
13816	//   },
13817	//   "response": {
13818	//     "$ref": "CloudAuditLogsSource"
13819	//   },
13820	//   "scopes": [
13821	//     "https://www.googleapis.com/auth/cloud-platform"
13822	//   ]
13823	// }
13824
13825}
13826
13827// method id "run.projects.locations.cloudauditlogssources.delete":
13828
13829type ProjectsLocationsCloudauditlogssourcesDeleteCall struct {
13830	s          *APIService
13831	name       string
13832	urlParams_ gensupport.URLParams
13833	ctx_       context.Context
13834	header_    http.Header
13835}
13836
13837// Delete: Rpc to delete a cloudauditlogssource.
13838func (r *ProjectsLocationsCloudauditlogssourcesService) Delete(name string) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13839	c := &ProjectsLocationsCloudauditlogssourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13840	c.name = name
13841	return c
13842}
13843
13844// ApiVersion sets the optional parameter "apiVersion": Cloud Run
13845// currently ignores this parameter.
13846func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13847	c.urlParams_.Set("apiVersion", apiVersion)
13848	return c
13849}
13850
13851// Kind sets the optional parameter "kind": Cloud Run currently ignores
13852// this parameter.
13853func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Kind(kind string) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13854	c.urlParams_.Set("kind", kind)
13855	return c
13856}
13857
13858// PropagationPolicy sets the optional parameter "propagationPolicy":
13859// Specifies the propagation policy of delete. Cloud Run currently
13860// ignores
13861// this setting, and deletes in the background. Please
13862// see
13863// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
13864// on/ for
13865// more information.
13866func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13867	c.urlParams_.Set("propagationPolicy", propagationPolicy)
13868	return c
13869}
13870
13871// Fields allows partial responses to be retrieved. See
13872// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
13873// for more information.
13874func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13875	c.urlParams_.Set("fields", googleapi.CombineFields(s))
13876	return c
13877}
13878
13879// Context sets the context to be used in this call's Do method. Any
13880// pending HTTP request will be aborted if the provided context is
13881// canceled.
13882func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudauditlogssourcesDeleteCall {
13883	c.ctx_ = ctx
13884	return c
13885}
13886
13887// Header returns an http.Header that can be modified by the caller to
13888// add HTTP headers to the request.
13889func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Header() http.Header {
13890	if c.header_ == nil {
13891		c.header_ = make(http.Header)
13892	}
13893	return c.header_
13894}
13895
13896func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
13897	reqHeaders := make(http.Header)
13898	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
13899	for k, v := range c.header_ {
13900		reqHeaders[k] = v
13901	}
13902	reqHeaders.Set("User-Agent", c.s.userAgent())
13903	var body io.Reader = nil
13904	c.urlParams_.Set("alt", alt)
13905	c.urlParams_.Set("prettyPrint", "false")
13906	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
13907	urls += "?" + c.urlParams_.Encode()
13908	req, err := http.NewRequest("DELETE", urls, body)
13909	if err != nil {
13910		return nil, err
13911	}
13912	req.Header = reqHeaders
13913	googleapi.Expand(req.URL, map[string]string{
13914		"name": c.name,
13915	})
13916	return gensupport.SendRequest(c.ctx_, c.s.client, req)
13917}
13918
13919// Do executes the "run.projects.locations.cloudauditlogssources.delete" call.
13920// Exactly one of *Empty or error will be non-nil. Any non-2xx status
13921// code is an error. Response headers are in either
13922// *Empty.ServerResponse.Header or (if a response was returned at all)
13923// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
13924// check whether the returned error was because http.StatusNotModified
13925// was returned.
13926func (c *ProjectsLocationsCloudauditlogssourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
13927	gensupport.SetOptions(c.urlParams_, opts...)
13928	res, err := c.doRequest("json")
13929	if res != nil && res.StatusCode == http.StatusNotModified {
13930		if res.Body != nil {
13931			res.Body.Close()
13932		}
13933		return nil, &googleapi.Error{
13934			Code:   res.StatusCode,
13935			Header: res.Header,
13936		}
13937	}
13938	if err != nil {
13939		return nil, err
13940	}
13941	defer googleapi.CloseBody(res)
13942	if err := googleapi.CheckResponse(res); err != nil {
13943		return nil, err
13944	}
13945	ret := &Empty{
13946		ServerResponse: googleapi.ServerResponse{
13947			Header:         res.Header,
13948			HTTPStatusCode: res.StatusCode,
13949		},
13950	}
13951	target := &ret
13952	if err := gensupport.DecodeResponse(target, res); err != nil {
13953		return nil, err
13954	}
13955	return ret, nil
13956	// {
13957	//   "description": "Rpc to delete a cloudauditlogssource.",
13958	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudauditlogssources/{cloudauditlogssourcesId}",
13959	//   "httpMethod": "DELETE",
13960	//   "id": "run.projects.locations.cloudauditlogssources.delete",
13961	//   "parameterOrder": [
13962	//     "name"
13963	//   ],
13964	//   "parameters": {
13965	//     "apiVersion": {
13966	//       "description": "Cloud Run currently ignores this parameter.",
13967	//       "location": "query",
13968	//       "type": "string"
13969	//     },
13970	//     "kind": {
13971	//       "description": "Cloud Run currently ignores this parameter.",
13972	//       "location": "query",
13973	//       "type": "string"
13974	//     },
13975	//     "name": {
13976	//       "description": "The name of the cloudauditlogssource being deleted. If needed, replace\n{namespace_id} with the project ID.",
13977	//       "location": "path",
13978	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudauditlogssources/[^/]+$",
13979	//       "required": true,
13980	//       "type": "string"
13981	//     },
13982	//     "propagationPolicy": {
13983	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
13984	//       "location": "query",
13985	//       "type": "string"
13986	//     }
13987	//   },
13988	//   "path": "v1alpha1/{+name}",
13989	//   "response": {
13990	//     "$ref": "Empty"
13991	//   },
13992	//   "scopes": [
13993	//     "https://www.googleapis.com/auth/cloud-platform"
13994	//   ]
13995	// }
13996
13997}
13998
13999// method id "run.projects.locations.cloudauditlogssources.get":
14000
14001type ProjectsLocationsCloudauditlogssourcesGetCall struct {
14002	s            *APIService
14003	name         string
14004	urlParams_   gensupport.URLParams
14005	ifNoneMatch_ string
14006	ctx_         context.Context
14007	header_      http.Header
14008}
14009
14010// Get: Rpc to get information about a cloudauditlogssource.
14011func (r *ProjectsLocationsCloudauditlogssourcesService) Get(name string) *ProjectsLocationsCloudauditlogssourcesGetCall {
14012	c := &ProjectsLocationsCloudauditlogssourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14013	c.name = name
14014	return c
14015}
14016
14017// Fields allows partial responses to be retrieved. See
14018// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14019// for more information.
14020func (c *ProjectsLocationsCloudauditlogssourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudauditlogssourcesGetCall {
14021	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14022	return c
14023}
14024
14025// IfNoneMatch sets the optional parameter which makes the operation
14026// fail if the object's ETag matches the given value. This is useful for
14027// getting updates only after the object has changed since the last
14028// request. Use googleapi.IsNotModified to check whether the response
14029// error from Do is the result of In-None-Match.
14030func (c *ProjectsLocationsCloudauditlogssourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudauditlogssourcesGetCall {
14031	c.ifNoneMatch_ = entityTag
14032	return c
14033}
14034
14035// Context sets the context to be used in this call's Do method. Any
14036// pending HTTP request will be aborted if the provided context is
14037// canceled.
14038func (c *ProjectsLocationsCloudauditlogssourcesGetCall) Context(ctx context.Context) *ProjectsLocationsCloudauditlogssourcesGetCall {
14039	c.ctx_ = ctx
14040	return c
14041}
14042
14043// Header returns an http.Header that can be modified by the caller to
14044// add HTTP headers to the request.
14045func (c *ProjectsLocationsCloudauditlogssourcesGetCall) Header() http.Header {
14046	if c.header_ == nil {
14047		c.header_ = make(http.Header)
14048	}
14049	return c.header_
14050}
14051
14052func (c *ProjectsLocationsCloudauditlogssourcesGetCall) doRequest(alt string) (*http.Response, error) {
14053	reqHeaders := make(http.Header)
14054	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14055	for k, v := range c.header_ {
14056		reqHeaders[k] = v
14057	}
14058	reqHeaders.Set("User-Agent", c.s.userAgent())
14059	if c.ifNoneMatch_ != "" {
14060		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14061	}
14062	var body io.Reader = nil
14063	c.urlParams_.Set("alt", alt)
14064	c.urlParams_.Set("prettyPrint", "false")
14065	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
14066	urls += "?" + c.urlParams_.Encode()
14067	req, err := http.NewRequest("GET", urls, body)
14068	if err != nil {
14069		return nil, err
14070	}
14071	req.Header = reqHeaders
14072	googleapi.Expand(req.URL, map[string]string{
14073		"name": c.name,
14074	})
14075	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14076}
14077
14078// Do executes the "run.projects.locations.cloudauditlogssources.get" call.
14079// Exactly one of *CloudAuditLogsSource or error will be non-nil. Any
14080// non-2xx status code is an error. Response headers are in either
14081// *CloudAuditLogsSource.ServerResponse.Header or (if a response was
14082// returned at all) in error.(*googleapi.Error).Header. Use
14083// googleapi.IsNotModified to check whether the returned error was
14084// because http.StatusNotModified was returned.
14085func (c *ProjectsLocationsCloudauditlogssourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudAuditLogsSource, error) {
14086	gensupport.SetOptions(c.urlParams_, opts...)
14087	res, err := c.doRequest("json")
14088	if res != nil && res.StatusCode == http.StatusNotModified {
14089		if res.Body != nil {
14090			res.Body.Close()
14091		}
14092		return nil, &googleapi.Error{
14093			Code:   res.StatusCode,
14094			Header: res.Header,
14095		}
14096	}
14097	if err != nil {
14098		return nil, err
14099	}
14100	defer googleapi.CloseBody(res)
14101	if err := googleapi.CheckResponse(res); err != nil {
14102		return nil, err
14103	}
14104	ret := &CloudAuditLogsSource{
14105		ServerResponse: googleapi.ServerResponse{
14106			Header:         res.Header,
14107			HTTPStatusCode: res.StatusCode,
14108		},
14109	}
14110	target := &ret
14111	if err := gensupport.DecodeResponse(target, res); err != nil {
14112		return nil, err
14113	}
14114	return ret, nil
14115	// {
14116	//   "description": "Rpc to get information about a cloudauditlogssource.",
14117	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudauditlogssources/{cloudauditlogssourcesId}",
14118	//   "httpMethod": "GET",
14119	//   "id": "run.projects.locations.cloudauditlogssources.get",
14120	//   "parameterOrder": [
14121	//     "name"
14122	//   ],
14123	//   "parameters": {
14124	//     "name": {
14125	//       "description": "The name of the cloudauditlogssource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
14126	//       "location": "path",
14127	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudauditlogssources/[^/]+$",
14128	//       "required": true,
14129	//       "type": "string"
14130	//     }
14131	//   },
14132	//   "path": "v1alpha1/{+name}",
14133	//   "response": {
14134	//     "$ref": "CloudAuditLogsSource"
14135	//   },
14136	//   "scopes": [
14137	//     "https://www.googleapis.com/auth/cloud-platform"
14138	//   ]
14139	// }
14140
14141}
14142
14143// method id "run.projects.locations.cloudauditlogssources.list":
14144
14145type ProjectsLocationsCloudauditlogssourcesListCall struct {
14146	s            *APIService
14147	parent       string
14148	urlParams_   gensupport.URLParams
14149	ifNoneMatch_ string
14150	ctx_         context.Context
14151	header_      http.Header
14152}
14153
14154// List: Rpc to list cloudauditlogssources.
14155func (r *ProjectsLocationsCloudauditlogssourcesService) List(parent string) *ProjectsLocationsCloudauditlogssourcesListCall {
14156	c := &ProjectsLocationsCloudauditlogssourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14157	c.parent = parent
14158	return c
14159}
14160
14161// Continue sets the optional parameter "continue": Optional encoded
14162// string to continue paging.
14163func (c *ProjectsLocationsCloudauditlogssourcesListCall) Continue(continue_ string) *ProjectsLocationsCloudauditlogssourcesListCall {
14164	c.urlParams_.Set("continue", continue_)
14165	return c
14166}
14167
14168// FieldSelector sets the optional parameter "fieldSelector": Allows to
14169// filter resources based on a specific value for a field name.
14170// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
14171// Not currently used by Cloud Run.
14172func (c *ProjectsLocationsCloudauditlogssourcesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsCloudauditlogssourcesListCall {
14173	c.urlParams_.Set("fieldSelector", fieldSelector)
14174	return c
14175}
14176
14177// IncludeUninitialized sets the optional parameter
14178// "includeUninitialized": Not currently used by Cloud Run.
14179func (c *ProjectsLocationsCloudauditlogssourcesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsCloudauditlogssourcesListCall {
14180	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
14181	return c
14182}
14183
14184// LabelSelector sets the optional parameter "labelSelector": Allows to
14185// filter resources based on a label. Supported operations are
14186// =, !=, exists, in, and notIn.
14187func (c *ProjectsLocationsCloudauditlogssourcesListCall) LabelSelector(labelSelector string) *ProjectsLocationsCloudauditlogssourcesListCall {
14188	c.urlParams_.Set("labelSelector", labelSelector)
14189	return c
14190}
14191
14192// Limit sets the optional parameter "limit": The maximum number of
14193// records that should be returned.
14194func (c *ProjectsLocationsCloudauditlogssourcesListCall) Limit(limit int64) *ProjectsLocationsCloudauditlogssourcesListCall {
14195	c.urlParams_.Set("limit", fmt.Sprint(limit))
14196	return c
14197}
14198
14199// ResourceVersion sets the optional parameter "resourceVersion": The
14200// baseline resource version from which the list or watch operation
14201// should
14202// start. Not currently used by Cloud Run.
14203func (c *ProjectsLocationsCloudauditlogssourcesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsCloudauditlogssourcesListCall {
14204	c.urlParams_.Set("resourceVersion", resourceVersion)
14205	return c
14206}
14207
14208// Watch sets the optional parameter "watch": Flag that indicates that
14209// the client expects to watch this resource as well.
14210// Not currently used by Cloud Run.
14211func (c *ProjectsLocationsCloudauditlogssourcesListCall) Watch(watch bool) *ProjectsLocationsCloudauditlogssourcesListCall {
14212	c.urlParams_.Set("watch", fmt.Sprint(watch))
14213	return c
14214}
14215
14216// Fields allows partial responses to be retrieved. See
14217// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14218// for more information.
14219func (c *ProjectsLocationsCloudauditlogssourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudauditlogssourcesListCall {
14220	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14221	return c
14222}
14223
14224// IfNoneMatch sets the optional parameter which makes the operation
14225// fail if the object's ETag matches the given value. This is useful for
14226// getting updates only after the object has changed since the last
14227// request. Use googleapi.IsNotModified to check whether the response
14228// error from Do is the result of In-None-Match.
14229func (c *ProjectsLocationsCloudauditlogssourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudauditlogssourcesListCall {
14230	c.ifNoneMatch_ = entityTag
14231	return c
14232}
14233
14234// Context sets the context to be used in this call's Do method. Any
14235// pending HTTP request will be aborted if the provided context is
14236// canceled.
14237func (c *ProjectsLocationsCloudauditlogssourcesListCall) Context(ctx context.Context) *ProjectsLocationsCloudauditlogssourcesListCall {
14238	c.ctx_ = ctx
14239	return c
14240}
14241
14242// Header returns an http.Header that can be modified by the caller to
14243// add HTTP headers to the request.
14244func (c *ProjectsLocationsCloudauditlogssourcesListCall) Header() http.Header {
14245	if c.header_ == nil {
14246		c.header_ = make(http.Header)
14247	}
14248	return c.header_
14249}
14250
14251func (c *ProjectsLocationsCloudauditlogssourcesListCall) doRequest(alt string) (*http.Response, error) {
14252	reqHeaders := make(http.Header)
14253	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14254	for k, v := range c.header_ {
14255		reqHeaders[k] = v
14256	}
14257	reqHeaders.Set("User-Agent", c.s.userAgent())
14258	if c.ifNoneMatch_ != "" {
14259		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14260	}
14261	var body io.Reader = nil
14262	c.urlParams_.Set("alt", alt)
14263	c.urlParams_.Set("prettyPrint", "false")
14264	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudauditlogssources")
14265	urls += "?" + c.urlParams_.Encode()
14266	req, err := http.NewRequest("GET", urls, body)
14267	if err != nil {
14268		return nil, err
14269	}
14270	req.Header = reqHeaders
14271	googleapi.Expand(req.URL, map[string]string{
14272		"parent": c.parent,
14273	})
14274	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14275}
14276
14277// Do executes the "run.projects.locations.cloudauditlogssources.list" call.
14278// Exactly one of *ListCloudAuditLogsSourcesResponse or error will be
14279// non-nil. Any non-2xx status code is an error. Response headers are in
14280// either *ListCloudAuditLogsSourcesResponse.ServerResponse.Header or
14281// (if a response was returned at all) in
14282// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
14283// whether the returned error was because http.StatusNotModified was
14284// returned.
14285func (c *ProjectsLocationsCloudauditlogssourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudAuditLogsSourcesResponse, error) {
14286	gensupport.SetOptions(c.urlParams_, opts...)
14287	res, err := c.doRequest("json")
14288	if res != nil && res.StatusCode == http.StatusNotModified {
14289		if res.Body != nil {
14290			res.Body.Close()
14291		}
14292		return nil, &googleapi.Error{
14293			Code:   res.StatusCode,
14294			Header: res.Header,
14295		}
14296	}
14297	if err != nil {
14298		return nil, err
14299	}
14300	defer googleapi.CloseBody(res)
14301	if err := googleapi.CheckResponse(res); err != nil {
14302		return nil, err
14303	}
14304	ret := &ListCloudAuditLogsSourcesResponse{
14305		ServerResponse: googleapi.ServerResponse{
14306			Header:         res.Header,
14307			HTTPStatusCode: res.StatusCode,
14308		},
14309	}
14310	target := &ret
14311	if err := gensupport.DecodeResponse(target, res); err != nil {
14312		return nil, err
14313	}
14314	return ret, nil
14315	// {
14316	//   "description": "Rpc to list cloudauditlogssources.",
14317	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudauditlogssources",
14318	//   "httpMethod": "GET",
14319	//   "id": "run.projects.locations.cloudauditlogssources.list",
14320	//   "parameterOrder": [
14321	//     "parent"
14322	//   ],
14323	//   "parameters": {
14324	//     "continue": {
14325	//       "description": "Optional encoded string to continue paging.",
14326	//       "location": "query",
14327	//       "type": "string"
14328	//     },
14329	//     "fieldSelector": {
14330	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
14331	//       "location": "query",
14332	//       "type": "string"
14333	//     },
14334	//     "includeUninitialized": {
14335	//       "description": "Not currently used by Cloud Run.",
14336	//       "location": "query",
14337	//       "type": "boolean"
14338	//     },
14339	//     "labelSelector": {
14340	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
14341	//       "location": "query",
14342	//       "type": "string"
14343	//     },
14344	//     "limit": {
14345	//       "description": "The maximum number of records that should be returned.",
14346	//       "format": "int32",
14347	//       "location": "query",
14348	//       "type": "integer"
14349	//     },
14350	//     "parent": {
14351	//       "description": "The project ID or project number from which the cloudauditlogssources\nshould be listed.",
14352	//       "location": "path",
14353	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
14354	//       "required": true,
14355	//       "type": "string"
14356	//     },
14357	//     "resourceVersion": {
14358	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
14359	//       "location": "query",
14360	//       "type": "string"
14361	//     },
14362	//     "watch": {
14363	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
14364	//       "location": "query",
14365	//       "type": "boolean"
14366	//     }
14367	//   },
14368	//   "path": "v1alpha1/{+parent}/cloudauditlogssources",
14369	//   "response": {
14370	//     "$ref": "ListCloudAuditLogsSourcesResponse"
14371	//   },
14372	//   "scopes": [
14373	//     "https://www.googleapis.com/auth/cloud-platform"
14374	//   ]
14375	// }
14376
14377}
14378
14379// method id "run.projects.locations.cloudpubsubsources.create":
14380
14381type ProjectsLocationsCloudpubsubsourcesCreateCall struct {
14382	s                 *APIService
14383	parent            string
14384	cloudpubsubsource *CloudPubSubSource
14385	urlParams_        gensupport.URLParams
14386	ctx_              context.Context
14387	header_           http.Header
14388}
14389
14390// Create: Creates a new cloudpubsubsource.
14391func (r *ProjectsLocationsCloudpubsubsourcesService) Create(parent string, cloudpubsubsource *CloudPubSubSource) *ProjectsLocationsCloudpubsubsourcesCreateCall {
14392	c := &ProjectsLocationsCloudpubsubsourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14393	c.parent = parent
14394	c.cloudpubsubsource = cloudpubsubsource
14395	return c
14396}
14397
14398// Fields allows partial responses to be retrieved. See
14399// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14400// for more information.
14401func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudpubsubsourcesCreateCall {
14402	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14403	return c
14404}
14405
14406// Context sets the context to be used in this call's Do method. Any
14407// pending HTTP request will be aborted if the provided context is
14408// canceled.
14409func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudpubsubsourcesCreateCall {
14410	c.ctx_ = ctx
14411	return c
14412}
14413
14414// Header returns an http.Header that can be modified by the caller to
14415// add HTTP headers to the request.
14416func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) Header() http.Header {
14417	if c.header_ == nil {
14418		c.header_ = make(http.Header)
14419	}
14420	return c.header_
14421}
14422
14423func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) doRequest(alt string) (*http.Response, error) {
14424	reqHeaders := make(http.Header)
14425	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14426	for k, v := range c.header_ {
14427		reqHeaders[k] = v
14428	}
14429	reqHeaders.Set("User-Agent", c.s.userAgent())
14430	var body io.Reader = nil
14431	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudpubsubsource)
14432	if err != nil {
14433		return nil, err
14434	}
14435	reqHeaders.Set("Content-Type", "application/json")
14436	c.urlParams_.Set("alt", alt)
14437	c.urlParams_.Set("prettyPrint", "false")
14438	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudpubsubsources")
14439	urls += "?" + c.urlParams_.Encode()
14440	req, err := http.NewRequest("POST", urls, body)
14441	if err != nil {
14442		return nil, err
14443	}
14444	req.Header = reqHeaders
14445	googleapi.Expand(req.URL, map[string]string{
14446		"parent": c.parent,
14447	})
14448	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14449}
14450
14451// Do executes the "run.projects.locations.cloudpubsubsources.create" call.
14452// Exactly one of *CloudPubSubSource or error will be non-nil. Any
14453// non-2xx status code is an error. Response headers are in either
14454// *CloudPubSubSource.ServerResponse.Header or (if a response was
14455// returned at all) in error.(*googleapi.Error).Header. Use
14456// googleapi.IsNotModified to check whether the returned error was
14457// because http.StatusNotModified was returned.
14458func (c *ProjectsLocationsCloudpubsubsourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudPubSubSource, error) {
14459	gensupport.SetOptions(c.urlParams_, opts...)
14460	res, err := c.doRequest("json")
14461	if res != nil && res.StatusCode == http.StatusNotModified {
14462		if res.Body != nil {
14463			res.Body.Close()
14464		}
14465		return nil, &googleapi.Error{
14466			Code:   res.StatusCode,
14467			Header: res.Header,
14468		}
14469	}
14470	if err != nil {
14471		return nil, err
14472	}
14473	defer googleapi.CloseBody(res)
14474	if err := googleapi.CheckResponse(res); err != nil {
14475		return nil, err
14476	}
14477	ret := &CloudPubSubSource{
14478		ServerResponse: googleapi.ServerResponse{
14479			Header:         res.Header,
14480			HTTPStatusCode: res.StatusCode,
14481		},
14482	}
14483	target := &ret
14484	if err := gensupport.DecodeResponse(target, res); err != nil {
14485		return nil, err
14486	}
14487	return ret, nil
14488	// {
14489	//   "description": "Creates a new cloudpubsubsource.",
14490	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudpubsubsources",
14491	//   "httpMethod": "POST",
14492	//   "id": "run.projects.locations.cloudpubsubsources.create",
14493	//   "parameterOrder": [
14494	//     "parent"
14495	//   ],
14496	//   "parameters": {
14497	//     "parent": {
14498	//       "description": "The project ID or project number in which this cloudpubsubsource should\nbe created.",
14499	//       "location": "path",
14500	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
14501	//       "required": true,
14502	//       "type": "string"
14503	//     }
14504	//   },
14505	//   "path": "v1alpha1/{+parent}/cloudpubsubsources",
14506	//   "request": {
14507	//     "$ref": "CloudPubSubSource"
14508	//   },
14509	//   "response": {
14510	//     "$ref": "CloudPubSubSource"
14511	//   },
14512	//   "scopes": [
14513	//     "https://www.googleapis.com/auth/cloud-platform"
14514	//   ]
14515	// }
14516
14517}
14518
14519// method id "run.projects.locations.cloudpubsubsources.delete":
14520
14521type ProjectsLocationsCloudpubsubsourcesDeleteCall struct {
14522	s          *APIService
14523	name       string
14524	urlParams_ gensupport.URLParams
14525	ctx_       context.Context
14526	header_    http.Header
14527}
14528
14529// Delete: Rpc to delete a cloudpubsubsource.
14530func (r *ProjectsLocationsCloudpubsubsourcesService) Delete(name string) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14531	c := &ProjectsLocationsCloudpubsubsourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14532	c.name = name
14533	return c
14534}
14535
14536// ApiVersion sets the optional parameter "apiVersion": Cloud Run
14537// currently ignores this parameter.
14538func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14539	c.urlParams_.Set("apiVersion", apiVersion)
14540	return c
14541}
14542
14543// Kind sets the optional parameter "kind": Cloud Run currently ignores
14544// this parameter.
14545func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Kind(kind string) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14546	c.urlParams_.Set("kind", kind)
14547	return c
14548}
14549
14550// PropagationPolicy sets the optional parameter "propagationPolicy":
14551// Specifies the propagation policy of delete. Cloud Run currently
14552// ignores
14553// this setting, and deletes in the background. Please
14554// see
14555// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
14556// on/ for
14557// more information.
14558func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14559	c.urlParams_.Set("propagationPolicy", propagationPolicy)
14560	return c
14561}
14562
14563// Fields allows partial responses to be retrieved. See
14564// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14565// for more information.
14566func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14567	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14568	return c
14569}
14570
14571// Context sets the context to be used in this call's Do method. Any
14572// pending HTTP request will be aborted if the provided context is
14573// canceled.
14574func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudpubsubsourcesDeleteCall {
14575	c.ctx_ = ctx
14576	return c
14577}
14578
14579// Header returns an http.Header that can be modified by the caller to
14580// add HTTP headers to the request.
14581func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Header() http.Header {
14582	if c.header_ == nil {
14583		c.header_ = make(http.Header)
14584	}
14585	return c.header_
14586}
14587
14588func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
14589	reqHeaders := make(http.Header)
14590	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14591	for k, v := range c.header_ {
14592		reqHeaders[k] = v
14593	}
14594	reqHeaders.Set("User-Agent", c.s.userAgent())
14595	var body io.Reader = nil
14596	c.urlParams_.Set("alt", alt)
14597	c.urlParams_.Set("prettyPrint", "false")
14598	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
14599	urls += "?" + c.urlParams_.Encode()
14600	req, err := http.NewRequest("DELETE", urls, body)
14601	if err != nil {
14602		return nil, err
14603	}
14604	req.Header = reqHeaders
14605	googleapi.Expand(req.URL, map[string]string{
14606		"name": c.name,
14607	})
14608	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14609}
14610
14611// Do executes the "run.projects.locations.cloudpubsubsources.delete" call.
14612// Exactly one of *Empty or error will be non-nil. Any non-2xx status
14613// code is an error. Response headers are in either
14614// *Empty.ServerResponse.Header or (if a response was returned at all)
14615// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
14616// check whether the returned error was because http.StatusNotModified
14617// was returned.
14618func (c *ProjectsLocationsCloudpubsubsourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
14619	gensupport.SetOptions(c.urlParams_, opts...)
14620	res, err := c.doRequest("json")
14621	if res != nil && res.StatusCode == http.StatusNotModified {
14622		if res.Body != nil {
14623			res.Body.Close()
14624		}
14625		return nil, &googleapi.Error{
14626			Code:   res.StatusCode,
14627			Header: res.Header,
14628		}
14629	}
14630	if err != nil {
14631		return nil, err
14632	}
14633	defer googleapi.CloseBody(res)
14634	if err := googleapi.CheckResponse(res); err != nil {
14635		return nil, err
14636	}
14637	ret := &Empty{
14638		ServerResponse: googleapi.ServerResponse{
14639			Header:         res.Header,
14640			HTTPStatusCode: res.StatusCode,
14641		},
14642	}
14643	target := &ret
14644	if err := gensupport.DecodeResponse(target, res); err != nil {
14645		return nil, err
14646	}
14647	return ret, nil
14648	// {
14649	//   "description": "Rpc to delete a cloudpubsubsource.",
14650	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudpubsubsources/{cloudpubsubsourcesId}",
14651	//   "httpMethod": "DELETE",
14652	//   "id": "run.projects.locations.cloudpubsubsources.delete",
14653	//   "parameterOrder": [
14654	//     "name"
14655	//   ],
14656	//   "parameters": {
14657	//     "apiVersion": {
14658	//       "description": "Cloud Run currently ignores this parameter.",
14659	//       "location": "query",
14660	//       "type": "string"
14661	//     },
14662	//     "kind": {
14663	//       "description": "Cloud Run currently ignores this parameter.",
14664	//       "location": "query",
14665	//       "type": "string"
14666	//     },
14667	//     "name": {
14668	//       "description": "The name of the cloudpubsubsource being deleted. If needed, replace\n{namespace_id} with the project ID.",
14669	//       "location": "path",
14670	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudpubsubsources/[^/]+$",
14671	//       "required": true,
14672	//       "type": "string"
14673	//     },
14674	//     "propagationPolicy": {
14675	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
14676	//       "location": "query",
14677	//       "type": "string"
14678	//     }
14679	//   },
14680	//   "path": "v1alpha1/{+name}",
14681	//   "response": {
14682	//     "$ref": "Empty"
14683	//   },
14684	//   "scopes": [
14685	//     "https://www.googleapis.com/auth/cloud-platform"
14686	//   ]
14687	// }
14688
14689}
14690
14691// method id "run.projects.locations.cloudpubsubsources.get":
14692
14693type ProjectsLocationsCloudpubsubsourcesGetCall struct {
14694	s            *APIService
14695	name         string
14696	urlParams_   gensupport.URLParams
14697	ifNoneMatch_ string
14698	ctx_         context.Context
14699	header_      http.Header
14700}
14701
14702// Get: Rpc to get information about a cloudpubsubsource.
14703func (r *ProjectsLocationsCloudpubsubsourcesService) Get(name string) *ProjectsLocationsCloudpubsubsourcesGetCall {
14704	c := &ProjectsLocationsCloudpubsubsourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14705	c.name = name
14706	return c
14707}
14708
14709// Fields allows partial responses to be retrieved. See
14710// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14711// for more information.
14712func (c *ProjectsLocationsCloudpubsubsourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudpubsubsourcesGetCall {
14713	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14714	return c
14715}
14716
14717// IfNoneMatch sets the optional parameter which makes the operation
14718// fail if the object's ETag matches the given value. This is useful for
14719// getting updates only after the object has changed since the last
14720// request. Use googleapi.IsNotModified to check whether the response
14721// error from Do is the result of In-None-Match.
14722func (c *ProjectsLocationsCloudpubsubsourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudpubsubsourcesGetCall {
14723	c.ifNoneMatch_ = entityTag
14724	return c
14725}
14726
14727// Context sets the context to be used in this call's Do method. Any
14728// pending HTTP request will be aborted if the provided context is
14729// canceled.
14730func (c *ProjectsLocationsCloudpubsubsourcesGetCall) Context(ctx context.Context) *ProjectsLocationsCloudpubsubsourcesGetCall {
14731	c.ctx_ = ctx
14732	return c
14733}
14734
14735// Header returns an http.Header that can be modified by the caller to
14736// add HTTP headers to the request.
14737func (c *ProjectsLocationsCloudpubsubsourcesGetCall) Header() http.Header {
14738	if c.header_ == nil {
14739		c.header_ = make(http.Header)
14740	}
14741	return c.header_
14742}
14743
14744func (c *ProjectsLocationsCloudpubsubsourcesGetCall) doRequest(alt string) (*http.Response, error) {
14745	reqHeaders := make(http.Header)
14746	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14747	for k, v := range c.header_ {
14748		reqHeaders[k] = v
14749	}
14750	reqHeaders.Set("User-Agent", c.s.userAgent())
14751	if c.ifNoneMatch_ != "" {
14752		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14753	}
14754	var body io.Reader = nil
14755	c.urlParams_.Set("alt", alt)
14756	c.urlParams_.Set("prettyPrint", "false")
14757	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
14758	urls += "?" + c.urlParams_.Encode()
14759	req, err := http.NewRequest("GET", urls, body)
14760	if err != nil {
14761		return nil, err
14762	}
14763	req.Header = reqHeaders
14764	googleapi.Expand(req.URL, map[string]string{
14765		"name": c.name,
14766	})
14767	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14768}
14769
14770// Do executes the "run.projects.locations.cloudpubsubsources.get" call.
14771// Exactly one of *CloudPubSubSource or error will be non-nil. Any
14772// non-2xx status code is an error. Response headers are in either
14773// *CloudPubSubSource.ServerResponse.Header or (if a response was
14774// returned at all) in error.(*googleapi.Error).Header. Use
14775// googleapi.IsNotModified to check whether the returned error was
14776// because http.StatusNotModified was returned.
14777func (c *ProjectsLocationsCloudpubsubsourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudPubSubSource, error) {
14778	gensupport.SetOptions(c.urlParams_, opts...)
14779	res, err := c.doRequest("json")
14780	if res != nil && res.StatusCode == http.StatusNotModified {
14781		if res.Body != nil {
14782			res.Body.Close()
14783		}
14784		return nil, &googleapi.Error{
14785			Code:   res.StatusCode,
14786			Header: res.Header,
14787		}
14788	}
14789	if err != nil {
14790		return nil, err
14791	}
14792	defer googleapi.CloseBody(res)
14793	if err := googleapi.CheckResponse(res); err != nil {
14794		return nil, err
14795	}
14796	ret := &CloudPubSubSource{
14797		ServerResponse: googleapi.ServerResponse{
14798			Header:         res.Header,
14799			HTTPStatusCode: res.StatusCode,
14800		},
14801	}
14802	target := &ret
14803	if err := gensupport.DecodeResponse(target, res); err != nil {
14804		return nil, err
14805	}
14806	return ret, nil
14807	// {
14808	//   "description": "Rpc to get information about a cloudpubsubsource.",
14809	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudpubsubsources/{cloudpubsubsourcesId}",
14810	//   "httpMethod": "GET",
14811	//   "id": "run.projects.locations.cloudpubsubsources.get",
14812	//   "parameterOrder": [
14813	//     "name"
14814	//   ],
14815	//   "parameters": {
14816	//     "name": {
14817	//       "description": "The name of the cloudpubsubsource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
14818	//       "location": "path",
14819	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudpubsubsources/[^/]+$",
14820	//       "required": true,
14821	//       "type": "string"
14822	//     }
14823	//   },
14824	//   "path": "v1alpha1/{+name}",
14825	//   "response": {
14826	//     "$ref": "CloudPubSubSource"
14827	//   },
14828	//   "scopes": [
14829	//     "https://www.googleapis.com/auth/cloud-platform"
14830	//   ]
14831	// }
14832
14833}
14834
14835// method id "run.projects.locations.cloudpubsubsources.list":
14836
14837type ProjectsLocationsCloudpubsubsourcesListCall struct {
14838	s            *APIService
14839	parent       string
14840	urlParams_   gensupport.URLParams
14841	ifNoneMatch_ string
14842	ctx_         context.Context
14843	header_      http.Header
14844}
14845
14846// List: Rpc to list cloudpubsubsources.
14847func (r *ProjectsLocationsCloudpubsubsourcesService) List(parent string) *ProjectsLocationsCloudpubsubsourcesListCall {
14848	c := &ProjectsLocationsCloudpubsubsourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14849	c.parent = parent
14850	return c
14851}
14852
14853// Continue sets the optional parameter "continue": Optional encoded
14854// string to continue paging.
14855func (c *ProjectsLocationsCloudpubsubsourcesListCall) Continue(continue_ string) *ProjectsLocationsCloudpubsubsourcesListCall {
14856	c.urlParams_.Set("continue", continue_)
14857	return c
14858}
14859
14860// FieldSelector sets the optional parameter "fieldSelector": Allows to
14861// filter resources based on a specific value for a field name.
14862// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
14863// Not currently used by Cloud Run.
14864func (c *ProjectsLocationsCloudpubsubsourcesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsCloudpubsubsourcesListCall {
14865	c.urlParams_.Set("fieldSelector", fieldSelector)
14866	return c
14867}
14868
14869// IncludeUninitialized sets the optional parameter
14870// "includeUninitialized": Not currently used by Cloud Run.
14871func (c *ProjectsLocationsCloudpubsubsourcesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsCloudpubsubsourcesListCall {
14872	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
14873	return c
14874}
14875
14876// LabelSelector sets the optional parameter "labelSelector": Allows to
14877// filter resources based on a label. Supported operations are
14878// =, !=, exists, in, and notIn.
14879func (c *ProjectsLocationsCloudpubsubsourcesListCall) LabelSelector(labelSelector string) *ProjectsLocationsCloudpubsubsourcesListCall {
14880	c.urlParams_.Set("labelSelector", labelSelector)
14881	return c
14882}
14883
14884// Limit sets the optional parameter "limit": The maximum number of
14885// records that should be returned.
14886func (c *ProjectsLocationsCloudpubsubsourcesListCall) Limit(limit int64) *ProjectsLocationsCloudpubsubsourcesListCall {
14887	c.urlParams_.Set("limit", fmt.Sprint(limit))
14888	return c
14889}
14890
14891// ResourceVersion sets the optional parameter "resourceVersion": The
14892// baseline resource version from which the list or watch operation
14893// should
14894// start. Not currently used by Cloud Run.
14895func (c *ProjectsLocationsCloudpubsubsourcesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsCloudpubsubsourcesListCall {
14896	c.urlParams_.Set("resourceVersion", resourceVersion)
14897	return c
14898}
14899
14900// Watch sets the optional parameter "watch": Flag that indicates that
14901// the client expects to watch this resource as well.
14902// Not currently used by Cloud Run.
14903func (c *ProjectsLocationsCloudpubsubsourcesListCall) Watch(watch bool) *ProjectsLocationsCloudpubsubsourcesListCall {
14904	c.urlParams_.Set("watch", fmt.Sprint(watch))
14905	return c
14906}
14907
14908// Fields allows partial responses to be retrieved. See
14909// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
14910// for more information.
14911func (c *ProjectsLocationsCloudpubsubsourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudpubsubsourcesListCall {
14912	c.urlParams_.Set("fields", googleapi.CombineFields(s))
14913	return c
14914}
14915
14916// IfNoneMatch sets the optional parameter which makes the operation
14917// fail if the object's ETag matches the given value. This is useful for
14918// getting updates only after the object has changed since the last
14919// request. Use googleapi.IsNotModified to check whether the response
14920// error from Do is the result of In-None-Match.
14921func (c *ProjectsLocationsCloudpubsubsourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudpubsubsourcesListCall {
14922	c.ifNoneMatch_ = entityTag
14923	return c
14924}
14925
14926// Context sets the context to be used in this call's Do method. Any
14927// pending HTTP request will be aborted if the provided context is
14928// canceled.
14929func (c *ProjectsLocationsCloudpubsubsourcesListCall) Context(ctx context.Context) *ProjectsLocationsCloudpubsubsourcesListCall {
14930	c.ctx_ = ctx
14931	return c
14932}
14933
14934// Header returns an http.Header that can be modified by the caller to
14935// add HTTP headers to the request.
14936func (c *ProjectsLocationsCloudpubsubsourcesListCall) Header() http.Header {
14937	if c.header_ == nil {
14938		c.header_ = make(http.Header)
14939	}
14940	return c.header_
14941}
14942
14943func (c *ProjectsLocationsCloudpubsubsourcesListCall) doRequest(alt string) (*http.Response, error) {
14944	reqHeaders := make(http.Header)
14945	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
14946	for k, v := range c.header_ {
14947		reqHeaders[k] = v
14948	}
14949	reqHeaders.Set("User-Agent", c.s.userAgent())
14950	if c.ifNoneMatch_ != "" {
14951		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14952	}
14953	var body io.Reader = nil
14954	c.urlParams_.Set("alt", alt)
14955	c.urlParams_.Set("prettyPrint", "false")
14956	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudpubsubsources")
14957	urls += "?" + c.urlParams_.Encode()
14958	req, err := http.NewRequest("GET", urls, body)
14959	if err != nil {
14960		return nil, err
14961	}
14962	req.Header = reqHeaders
14963	googleapi.Expand(req.URL, map[string]string{
14964		"parent": c.parent,
14965	})
14966	return gensupport.SendRequest(c.ctx_, c.s.client, req)
14967}
14968
14969// Do executes the "run.projects.locations.cloudpubsubsources.list" call.
14970// Exactly one of *ListCloudPubSubSourcesResponse or error will be
14971// non-nil. Any non-2xx status code is an error. Response headers are in
14972// either *ListCloudPubSubSourcesResponse.ServerResponse.Header or (if a
14973// response was returned at all) in error.(*googleapi.Error).Header. Use
14974// googleapi.IsNotModified to check whether the returned error was
14975// because http.StatusNotModified was returned.
14976func (c *ProjectsLocationsCloudpubsubsourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudPubSubSourcesResponse, error) {
14977	gensupport.SetOptions(c.urlParams_, opts...)
14978	res, err := c.doRequest("json")
14979	if res != nil && res.StatusCode == http.StatusNotModified {
14980		if res.Body != nil {
14981			res.Body.Close()
14982		}
14983		return nil, &googleapi.Error{
14984			Code:   res.StatusCode,
14985			Header: res.Header,
14986		}
14987	}
14988	if err != nil {
14989		return nil, err
14990	}
14991	defer googleapi.CloseBody(res)
14992	if err := googleapi.CheckResponse(res); err != nil {
14993		return nil, err
14994	}
14995	ret := &ListCloudPubSubSourcesResponse{
14996		ServerResponse: googleapi.ServerResponse{
14997			Header:         res.Header,
14998			HTTPStatusCode: res.StatusCode,
14999		},
15000	}
15001	target := &ret
15002	if err := gensupport.DecodeResponse(target, res); err != nil {
15003		return nil, err
15004	}
15005	return ret, nil
15006	// {
15007	//   "description": "Rpc to list cloudpubsubsources.",
15008	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudpubsubsources",
15009	//   "httpMethod": "GET",
15010	//   "id": "run.projects.locations.cloudpubsubsources.list",
15011	//   "parameterOrder": [
15012	//     "parent"
15013	//   ],
15014	//   "parameters": {
15015	//     "continue": {
15016	//       "description": "Optional encoded string to continue paging.",
15017	//       "location": "query",
15018	//       "type": "string"
15019	//     },
15020	//     "fieldSelector": {
15021	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
15022	//       "location": "query",
15023	//       "type": "string"
15024	//     },
15025	//     "includeUninitialized": {
15026	//       "description": "Not currently used by Cloud Run.",
15027	//       "location": "query",
15028	//       "type": "boolean"
15029	//     },
15030	//     "labelSelector": {
15031	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
15032	//       "location": "query",
15033	//       "type": "string"
15034	//     },
15035	//     "limit": {
15036	//       "description": "The maximum number of records that should be returned.",
15037	//       "format": "int32",
15038	//       "location": "query",
15039	//       "type": "integer"
15040	//     },
15041	//     "parent": {
15042	//       "description": "The project ID or project number from which the cloudpubsubsources should\nbe listed.",
15043	//       "location": "path",
15044	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
15045	//       "required": true,
15046	//       "type": "string"
15047	//     },
15048	//     "resourceVersion": {
15049	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
15050	//       "location": "query",
15051	//       "type": "string"
15052	//     },
15053	//     "watch": {
15054	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
15055	//       "location": "query",
15056	//       "type": "boolean"
15057	//     }
15058	//   },
15059	//   "path": "v1alpha1/{+parent}/cloudpubsubsources",
15060	//   "response": {
15061	//     "$ref": "ListCloudPubSubSourcesResponse"
15062	//   },
15063	//   "scopes": [
15064	//     "https://www.googleapis.com/auth/cloud-platform"
15065	//   ]
15066	// }
15067
15068}
15069
15070// method id "run.projects.locations.cloudschedulersources.create":
15071
15072type ProjectsLocationsCloudschedulersourcesCreateCall struct {
15073	s                    *APIService
15074	parent               string
15075	cloudschedulersource *CloudSchedulerSource
15076	urlParams_           gensupport.URLParams
15077	ctx_                 context.Context
15078	header_              http.Header
15079}
15080
15081// Create: Creates a new cloudschedulersource.
15082func (r *ProjectsLocationsCloudschedulersourcesService) Create(parent string, cloudschedulersource *CloudSchedulerSource) *ProjectsLocationsCloudschedulersourcesCreateCall {
15083	c := &ProjectsLocationsCloudschedulersourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15084	c.parent = parent
15085	c.cloudschedulersource = cloudschedulersource
15086	return c
15087}
15088
15089// Fields allows partial responses to be retrieved. See
15090// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15091// for more information.
15092func (c *ProjectsLocationsCloudschedulersourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudschedulersourcesCreateCall {
15093	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15094	return c
15095}
15096
15097// Context sets the context to be used in this call's Do method. Any
15098// pending HTTP request will be aborted if the provided context is
15099// canceled.
15100func (c *ProjectsLocationsCloudschedulersourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudschedulersourcesCreateCall {
15101	c.ctx_ = ctx
15102	return c
15103}
15104
15105// Header returns an http.Header that can be modified by the caller to
15106// add HTTP headers to the request.
15107func (c *ProjectsLocationsCloudschedulersourcesCreateCall) Header() http.Header {
15108	if c.header_ == nil {
15109		c.header_ = make(http.Header)
15110	}
15111	return c.header_
15112}
15113
15114func (c *ProjectsLocationsCloudschedulersourcesCreateCall) doRequest(alt string) (*http.Response, error) {
15115	reqHeaders := make(http.Header)
15116	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15117	for k, v := range c.header_ {
15118		reqHeaders[k] = v
15119	}
15120	reqHeaders.Set("User-Agent", c.s.userAgent())
15121	var body io.Reader = nil
15122	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudschedulersource)
15123	if err != nil {
15124		return nil, err
15125	}
15126	reqHeaders.Set("Content-Type", "application/json")
15127	c.urlParams_.Set("alt", alt)
15128	c.urlParams_.Set("prettyPrint", "false")
15129	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudschedulersources")
15130	urls += "?" + c.urlParams_.Encode()
15131	req, err := http.NewRequest("POST", urls, body)
15132	if err != nil {
15133		return nil, err
15134	}
15135	req.Header = reqHeaders
15136	googleapi.Expand(req.URL, map[string]string{
15137		"parent": c.parent,
15138	})
15139	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15140}
15141
15142// Do executes the "run.projects.locations.cloudschedulersources.create" call.
15143// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
15144// non-2xx status code is an error. Response headers are in either
15145// *CloudSchedulerSource.ServerResponse.Header or (if a response was
15146// returned at all) in error.(*googleapi.Error).Header. Use
15147// googleapi.IsNotModified to check whether the returned error was
15148// because http.StatusNotModified was returned.
15149func (c *ProjectsLocationsCloudschedulersourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
15150	gensupport.SetOptions(c.urlParams_, opts...)
15151	res, err := c.doRequest("json")
15152	if res != nil && res.StatusCode == http.StatusNotModified {
15153		if res.Body != nil {
15154			res.Body.Close()
15155		}
15156		return nil, &googleapi.Error{
15157			Code:   res.StatusCode,
15158			Header: res.Header,
15159		}
15160	}
15161	if err != nil {
15162		return nil, err
15163	}
15164	defer googleapi.CloseBody(res)
15165	if err := googleapi.CheckResponse(res); err != nil {
15166		return nil, err
15167	}
15168	ret := &CloudSchedulerSource{
15169		ServerResponse: googleapi.ServerResponse{
15170			Header:         res.Header,
15171			HTTPStatusCode: res.StatusCode,
15172		},
15173	}
15174	target := &ret
15175	if err := gensupport.DecodeResponse(target, res); err != nil {
15176		return nil, err
15177	}
15178	return ret, nil
15179	// {
15180	//   "description": "Creates a new cloudschedulersource.",
15181	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudschedulersources",
15182	//   "httpMethod": "POST",
15183	//   "id": "run.projects.locations.cloudschedulersources.create",
15184	//   "parameterOrder": [
15185	//     "parent"
15186	//   ],
15187	//   "parameters": {
15188	//     "parent": {
15189	//       "description": "Required. The project ID or project number in which this cloudschedulersource should\nbe created.",
15190	//       "location": "path",
15191	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
15192	//       "required": true,
15193	//       "type": "string"
15194	//     }
15195	//   },
15196	//   "path": "v1alpha1/{+parent}/cloudschedulersources",
15197	//   "request": {
15198	//     "$ref": "CloudSchedulerSource"
15199	//   },
15200	//   "response": {
15201	//     "$ref": "CloudSchedulerSource"
15202	//   },
15203	//   "scopes": [
15204	//     "https://www.googleapis.com/auth/cloud-platform"
15205	//   ]
15206	// }
15207
15208}
15209
15210// method id "run.projects.locations.cloudschedulersources.delete":
15211
15212type ProjectsLocationsCloudschedulersourcesDeleteCall struct {
15213	s          *APIService
15214	name       string
15215	urlParams_ gensupport.URLParams
15216	ctx_       context.Context
15217	header_    http.Header
15218}
15219
15220// Delete: Rpc to delete a cloudschedulersource.
15221func (r *ProjectsLocationsCloudschedulersourcesService) Delete(name string) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15222	c := &ProjectsLocationsCloudschedulersourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15223	c.name = name
15224	return c
15225}
15226
15227// ApiVersion sets the optional parameter "apiVersion": Cloud Run
15228// currently ignores this parameter.
15229func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15230	c.urlParams_.Set("apiVersion", apiVersion)
15231	return c
15232}
15233
15234// Kind sets the optional parameter "kind": Cloud Run currently ignores
15235// this parameter.
15236func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Kind(kind string) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15237	c.urlParams_.Set("kind", kind)
15238	return c
15239}
15240
15241// PropagationPolicy sets the optional parameter "propagationPolicy":
15242// Specifies the propagation policy of delete. Cloud Run currently
15243// ignores
15244// this setting, and deletes in the background. Please
15245// see
15246// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
15247// on/ for
15248// more information.
15249func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15250	c.urlParams_.Set("propagationPolicy", propagationPolicy)
15251	return c
15252}
15253
15254// Fields allows partial responses to be retrieved. See
15255// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15256// for more information.
15257func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15258	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15259	return c
15260}
15261
15262// Context sets the context to be used in this call's Do method. Any
15263// pending HTTP request will be aborted if the provided context is
15264// canceled.
15265func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudschedulersourcesDeleteCall {
15266	c.ctx_ = ctx
15267	return c
15268}
15269
15270// Header returns an http.Header that can be modified by the caller to
15271// add HTTP headers to the request.
15272func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Header() http.Header {
15273	if c.header_ == nil {
15274		c.header_ = make(http.Header)
15275	}
15276	return c.header_
15277}
15278
15279func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
15280	reqHeaders := make(http.Header)
15281	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15282	for k, v := range c.header_ {
15283		reqHeaders[k] = v
15284	}
15285	reqHeaders.Set("User-Agent", c.s.userAgent())
15286	var body io.Reader = nil
15287	c.urlParams_.Set("alt", alt)
15288	c.urlParams_.Set("prettyPrint", "false")
15289	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
15290	urls += "?" + c.urlParams_.Encode()
15291	req, err := http.NewRequest("DELETE", urls, body)
15292	if err != nil {
15293		return nil, err
15294	}
15295	req.Header = reqHeaders
15296	googleapi.Expand(req.URL, map[string]string{
15297		"name": c.name,
15298	})
15299	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15300}
15301
15302// Do executes the "run.projects.locations.cloudschedulersources.delete" call.
15303// Exactly one of *Empty or error will be non-nil. Any non-2xx status
15304// code is an error. Response headers are in either
15305// *Empty.ServerResponse.Header or (if a response was returned at all)
15306// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
15307// check whether the returned error was because http.StatusNotModified
15308// was returned.
15309func (c *ProjectsLocationsCloudschedulersourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
15310	gensupport.SetOptions(c.urlParams_, opts...)
15311	res, err := c.doRequest("json")
15312	if res != nil && res.StatusCode == http.StatusNotModified {
15313		if res.Body != nil {
15314			res.Body.Close()
15315		}
15316		return nil, &googleapi.Error{
15317			Code:   res.StatusCode,
15318			Header: res.Header,
15319		}
15320	}
15321	if err != nil {
15322		return nil, err
15323	}
15324	defer googleapi.CloseBody(res)
15325	if err := googleapi.CheckResponse(res); err != nil {
15326		return nil, err
15327	}
15328	ret := &Empty{
15329		ServerResponse: googleapi.ServerResponse{
15330			Header:         res.Header,
15331			HTTPStatusCode: res.StatusCode,
15332		},
15333	}
15334	target := &ret
15335	if err := gensupport.DecodeResponse(target, res); err != nil {
15336		return nil, err
15337	}
15338	return ret, nil
15339	// {
15340	//   "description": "Rpc to delete a cloudschedulersource.",
15341	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudschedulersources/{cloudschedulersourcesId}",
15342	//   "httpMethod": "DELETE",
15343	//   "id": "run.projects.locations.cloudschedulersources.delete",
15344	//   "parameterOrder": [
15345	//     "name"
15346	//   ],
15347	//   "parameters": {
15348	//     "apiVersion": {
15349	//       "description": "Cloud Run currently ignores this parameter.",
15350	//       "location": "query",
15351	//       "type": "string"
15352	//     },
15353	//     "kind": {
15354	//       "description": "Cloud Run currently ignores this parameter.",
15355	//       "location": "query",
15356	//       "type": "string"
15357	//     },
15358	//     "name": {
15359	//       "description": "Required. The name of the cloudschedulersource being deleted. If needed, replace\n{namespace_id} with the project ID.",
15360	//       "location": "path",
15361	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudschedulersources/[^/]+$",
15362	//       "required": true,
15363	//       "type": "string"
15364	//     },
15365	//     "propagationPolicy": {
15366	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
15367	//       "location": "query",
15368	//       "type": "string"
15369	//     }
15370	//   },
15371	//   "path": "v1alpha1/{+name}",
15372	//   "response": {
15373	//     "$ref": "Empty"
15374	//   },
15375	//   "scopes": [
15376	//     "https://www.googleapis.com/auth/cloud-platform"
15377	//   ]
15378	// }
15379
15380}
15381
15382// method id "run.projects.locations.cloudschedulersources.get":
15383
15384type ProjectsLocationsCloudschedulersourcesGetCall struct {
15385	s            *APIService
15386	name         string
15387	urlParams_   gensupport.URLParams
15388	ifNoneMatch_ string
15389	ctx_         context.Context
15390	header_      http.Header
15391}
15392
15393// Get: Rpc to get information about a cloudschedulersource.
15394func (r *ProjectsLocationsCloudschedulersourcesService) Get(name string) *ProjectsLocationsCloudschedulersourcesGetCall {
15395	c := &ProjectsLocationsCloudschedulersourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15396	c.name = name
15397	return c
15398}
15399
15400// Fields allows partial responses to be retrieved. See
15401// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15402// for more information.
15403func (c *ProjectsLocationsCloudschedulersourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudschedulersourcesGetCall {
15404	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15405	return c
15406}
15407
15408// IfNoneMatch sets the optional parameter which makes the operation
15409// fail if the object's ETag matches the given value. This is useful for
15410// getting updates only after the object has changed since the last
15411// request. Use googleapi.IsNotModified to check whether the response
15412// error from Do is the result of In-None-Match.
15413func (c *ProjectsLocationsCloudschedulersourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudschedulersourcesGetCall {
15414	c.ifNoneMatch_ = entityTag
15415	return c
15416}
15417
15418// Context sets the context to be used in this call's Do method. Any
15419// pending HTTP request will be aborted if the provided context is
15420// canceled.
15421func (c *ProjectsLocationsCloudschedulersourcesGetCall) Context(ctx context.Context) *ProjectsLocationsCloudschedulersourcesGetCall {
15422	c.ctx_ = ctx
15423	return c
15424}
15425
15426// Header returns an http.Header that can be modified by the caller to
15427// add HTTP headers to the request.
15428func (c *ProjectsLocationsCloudschedulersourcesGetCall) Header() http.Header {
15429	if c.header_ == nil {
15430		c.header_ = make(http.Header)
15431	}
15432	return c.header_
15433}
15434
15435func (c *ProjectsLocationsCloudschedulersourcesGetCall) doRequest(alt string) (*http.Response, error) {
15436	reqHeaders := make(http.Header)
15437	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15438	for k, v := range c.header_ {
15439		reqHeaders[k] = v
15440	}
15441	reqHeaders.Set("User-Agent", c.s.userAgent())
15442	if c.ifNoneMatch_ != "" {
15443		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15444	}
15445	var body io.Reader = nil
15446	c.urlParams_.Set("alt", alt)
15447	c.urlParams_.Set("prettyPrint", "false")
15448	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
15449	urls += "?" + c.urlParams_.Encode()
15450	req, err := http.NewRequest("GET", urls, body)
15451	if err != nil {
15452		return nil, err
15453	}
15454	req.Header = reqHeaders
15455	googleapi.Expand(req.URL, map[string]string{
15456		"name": c.name,
15457	})
15458	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15459}
15460
15461// Do executes the "run.projects.locations.cloudschedulersources.get" call.
15462// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
15463// non-2xx status code is an error. Response headers are in either
15464// *CloudSchedulerSource.ServerResponse.Header or (if a response was
15465// returned at all) in error.(*googleapi.Error).Header. Use
15466// googleapi.IsNotModified to check whether the returned error was
15467// because http.StatusNotModified was returned.
15468func (c *ProjectsLocationsCloudschedulersourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
15469	gensupport.SetOptions(c.urlParams_, opts...)
15470	res, err := c.doRequest("json")
15471	if res != nil && res.StatusCode == http.StatusNotModified {
15472		if res.Body != nil {
15473			res.Body.Close()
15474		}
15475		return nil, &googleapi.Error{
15476			Code:   res.StatusCode,
15477			Header: res.Header,
15478		}
15479	}
15480	if err != nil {
15481		return nil, err
15482	}
15483	defer googleapi.CloseBody(res)
15484	if err := googleapi.CheckResponse(res); err != nil {
15485		return nil, err
15486	}
15487	ret := &CloudSchedulerSource{
15488		ServerResponse: googleapi.ServerResponse{
15489			Header:         res.Header,
15490			HTTPStatusCode: res.StatusCode,
15491		},
15492	}
15493	target := &ret
15494	if err := gensupport.DecodeResponse(target, res); err != nil {
15495		return nil, err
15496	}
15497	return ret, nil
15498	// {
15499	//   "description": "Rpc to get information about a cloudschedulersource.",
15500	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudschedulersources/{cloudschedulersourcesId}",
15501	//   "httpMethod": "GET",
15502	//   "id": "run.projects.locations.cloudschedulersources.get",
15503	//   "parameterOrder": [
15504	//     "name"
15505	//   ],
15506	//   "parameters": {
15507	//     "name": {
15508	//       "description": "Required. The name of the cloudschedulersource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
15509	//       "location": "path",
15510	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudschedulersources/[^/]+$",
15511	//       "required": true,
15512	//       "type": "string"
15513	//     }
15514	//   },
15515	//   "path": "v1alpha1/{+name}",
15516	//   "response": {
15517	//     "$ref": "CloudSchedulerSource"
15518	//   },
15519	//   "scopes": [
15520	//     "https://www.googleapis.com/auth/cloud-platform"
15521	//   ]
15522	// }
15523
15524}
15525
15526// method id "run.projects.locations.cloudschedulersources.list":
15527
15528type ProjectsLocationsCloudschedulersourcesListCall struct {
15529	s            *APIService
15530	parent       string
15531	urlParams_   gensupport.URLParams
15532	ifNoneMatch_ string
15533	ctx_         context.Context
15534	header_      http.Header
15535}
15536
15537// List: Rpc to list cloudschedulersources.
15538func (r *ProjectsLocationsCloudschedulersourcesService) List(parent string) *ProjectsLocationsCloudschedulersourcesListCall {
15539	c := &ProjectsLocationsCloudschedulersourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15540	c.parent = parent
15541	return c
15542}
15543
15544// Continue sets the optional parameter "continue": Optional encoded
15545// string to continue paging.
15546func (c *ProjectsLocationsCloudschedulersourcesListCall) Continue(continue_ string) *ProjectsLocationsCloudschedulersourcesListCall {
15547	c.urlParams_.Set("continue", continue_)
15548	return c
15549}
15550
15551// FieldSelector sets the optional parameter "fieldSelector": Allows to
15552// filter resources based on a specific value for a field name.
15553// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
15554// Not currently used by Cloud Run.
15555func (c *ProjectsLocationsCloudschedulersourcesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsCloudschedulersourcesListCall {
15556	c.urlParams_.Set("fieldSelector", fieldSelector)
15557	return c
15558}
15559
15560// IncludeUninitialized sets the optional parameter
15561// "includeUninitialized": Not currently used by Cloud Run.
15562func (c *ProjectsLocationsCloudschedulersourcesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsCloudschedulersourcesListCall {
15563	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
15564	return c
15565}
15566
15567// LabelSelector sets the optional parameter "labelSelector": Allows to
15568// filter resources based on a label. Supported operations are
15569// =, !=, exists, in, and notIn.
15570func (c *ProjectsLocationsCloudschedulersourcesListCall) LabelSelector(labelSelector string) *ProjectsLocationsCloudschedulersourcesListCall {
15571	c.urlParams_.Set("labelSelector", labelSelector)
15572	return c
15573}
15574
15575// Limit sets the optional parameter "limit": The maximum number of
15576// records that should be returned.
15577func (c *ProjectsLocationsCloudschedulersourcesListCall) Limit(limit int64) *ProjectsLocationsCloudschedulersourcesListCall {
15578	c.urlParams_.Set("limit", fmt.Sprint(limit))
15579	return c
15580}
15581
15582// ResourceVersion sets the optional parameter "resourceVersion": The
15583// baseline resource version from which the list or watch operation
15584// should
15585// start. Not currently used by Cloud Run.
15586func (c *ProjectsLocationsCloudschedulersourcesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsCloudschedulersourcesListCall {
15587	c.urlParams_.Set("resourceVersion", resourceVersion)
15588	return c
15589}
15590
15591// Watch sets the optional parameter "watch": Flag that indicates that
15592// the client expects to watch this resource as well.
15593// Not currently used by Cloud Run.
15594func (c *ProjectsLocationsCloudschedulersourcesListCall) Watch(watch bool) *ProjectsLocationsCloudschedulersourcesListCall {
15595	c.urlParams_.Set("watch", fmt.Sprint(watch))
15596	return c
15597}
15598
15599// Fields allows partial responses to be retrieved. See
15600// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15601// for more information.
15602func (c *ProjectsLocationsCloudschedulersourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudschedulersourcesListCall {
15603	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15604	return c
15605}
15606
15607// IfNoneMatch sets the optional parameter which makes the operation
15608// fail if the object's ETag matches the given value. This is useful for
15609// getting updates only after the object has changed since the last
15610// request. Use googleapi.IsNotModified to check whether the response
15611// error from Do is the result of In-None-Match.
15612func (c *ProjectsLocationsCloudschedulersourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudschedulersourcesListCall {
15613	c.ifNoneMatch_ = entityTag
15614	return c
15615}
15616
15617// Context sets the context to be used in this call's Do method. Any
15618// pending HTTP request will be aborted if the provided context is
15619// canceled.
15620func (c *ProjectsLocationsCloudschedulersourcesListCall) Context(ctx context.Context) *ProjectsLocationsCloudschedulersourcesListCall {
15621	c.ctx_ = ctx
15622	return c
15623}
15624
15625// Header returns an http.Header that can be modified by the caller to
15626// add HTTP headers to the request.
15627func (c *ProjectsLocationsCloudschedulersourcesListCall) Header() http.Header {
15628	if c.header_ == nil {
15629		c.header_ = make(http.Header)
15630	}
15631	return c.header_
15632}
15633
15634func (c *ProjectsLocationsCloudschedulersourcesListCall) doRequest(alt string) (*http.Response, error) {
15635	reqHeaders := make(http.Header)
15636	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15637	for k, v := range c.header_ {
15638		reqHeaders[k] = v
15639	}
15640	reqHeaders.Set("User-Agent", c.s.userAgent())
15641	if c.ifNoneMatch_ != "" {
15642		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15643	}
15644	var body io.Reader = nil
15645	c.urlParams_.Set("alt", alt)
15646	c.urlParams_.Set("prettyPrint", "false")
15647	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudschedulersources")
15648	urls += "?" + c.urlParams_.Encode()
15649	req, err := http.NewRequest("GET", urls, body)
15650	if err != nil {
15651		return nil, err
15652	}
15653	req.Header = reqHeaders
15654	googleapi.Expand(req.URL, map[string]string{
15655		"parent": c.parent,
15656	})
15657	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15658}
15659
15660// Do executes the "run.projects.locations.cloudschedulersources.list" call.
15661// Exactly one of *ListCloudSchedulerSourcesResponse or error will be
15662// non-nil. Any non-2xx status code is an error. Response headers are in
15663// either *ListCloudSchedulerSourcesResponse.ServerResponse.Header or
15664// (if a response was returned at all) in
15665// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
15666// whether the returned error was because http.StatusNotModified was
15667// returned.
15668func (c *ProjectsLocationsCloudschedulersourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudSchedulerSourcesResponse, error) {
15669	gensupport.SetOptions(c.urlParams_, opts...)
15670	res, err := c.doRequest("json")
15671	if res != nil && res.StatusCode == http.StatusNotModified {
15672		if res.Body != nil {
15673			res.Body.Close()
15674		}
15675		return nil, &googleapi.Error{
15676			Code:   res.StatusCode,
15677			Header: res.Header,
15678		}
15679	}
15680	if err != nil {
15681		return nil, err
15682	}
15683	defer googleapi.CloseBody(res)
15684	if err := googleapi.CheckResponse(res); err != nil {
15685		return nil, err
15686	}
15687	ret := &ListCloudSchedulerSourcesResponse{
15688		ServerResponse: googleapi.ServerResponse{
15689			Header:         res.Header,
15690			HTTPStatusCode: res.StatusCode,
15691		},
15692	}
15693	target := &ret
15694	if err := gensupport.DecodeResponse(target, res); err != nil {
15695		return nil, err
15696	}
15697	return ret, nil
15698	// {
15699	//   "description": "Rpc to list cloudschedulersources.",
15700	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudschedulersources",
15701	//   "httpMethod": "GET",
15702	//   "id": "run.projects.locations.cloudschedulersources.list",
15703	//   "parameterOrder": [
15704	//     "parent"
15705	//   ],
15706	//   "parameters": {
15707	//     "continue": {
15708	//       "description": "Optional encoded string to continue paging.",
15709	//       "location": "query",
15710	//       "type": "string"
15711	//     },
15712	//     "fieldSelector": {
15713	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
15714	//       "location": "query",
15715	//       "type": "string"
15716	//     },
15717	//     "includeUninitialized": {
15718	//       "description": "Not currently used by Cloud Run.",
15719	//       "location": "query",
15720	//       "type": "boolean"
15721	//     },
15722	//     "labelSelector": {
15723	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
15724	//       "location": "query",
15725	//       "type": "string"
15726	//     },
15727	//     "limit": {
15728	//       "description": "The maximum number of records that should be returned.",
15729	//       "format": "int32",
15730	//       "location": "query",
15731	//       "type": "integer"
15732	//     },
15733	//     "parent": {
15734	//       "description": "Required. The project ID or project number from which the cloudschedulersources\nshould be listed.",
15735	//       "location": "path",
15736	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
15737	//       "required": true,
15738	//       "type": "string"
15739	//     },
15740	//     "resourceVersion": {
15741	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
15742	//       "location": "query",
15743	//       "type": "string"
15744	//     },
15745	//     "watch": {
15746	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
15747	//       "location": "query",
15748	//       "type": "boolean"
15749	//     }
15750	//   },
15751	//   "path": "v1alpha1/{+parent}/cloudschedulersources",
15752	//   "response": {
15753	//     "$ref": "ListCloudSchedulerSourcesResponse"
15754	//   },
15755	//   "scopes": [
15756	//     "https://www.googleapis.com/auth/cloud-platform"
15757	//   ]
15758	// }
15759
15760}
15761
15762// method id "run.projects.locations.cloudschedulersources.replaceCloudSchedulerSource":
15763
15764type ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall struct {
15765	s                    *APIService
15766	name                 string
15767	cloudschedulersource *CloudSchedulerSource
15768	urlParams_           gensupport.URLParams
15769	ctx_                 context.Context
15770	header_              http.Header
15771}
15772
15773// ReplaceCloudSchedulerSource: Rpc to replace a
15774// cloudschedulersource.
15775//
15776// Only the spec and metadata labels and annotations are modifiable.
15777// After
15778// the Update request, Cloud Run will work to make the 'status'
15779// match the requested 'spec'.
15780//
15781// May provide metadata.resourceVersion to enforce update from last read
15782// for
15783// optimistic concurrency control.
15784func (r *ProjectsLocationsCloudschedulersourcesService) ReplaceCloudSchedulerSource(name string, cloudschedulersource *CloudSchedulerSource) *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall {
15785	c := &ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15786	c.name = name
15787	c.cloudschedulersource = cloudschedulersource
15788	return c
15789}
15790
15791// Fields allows partial responses to be retrieved. See
15792// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15793// for more information.
15794func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall {
15795	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15796	return c
15797}
15798
15799// Context sets the context to be used in this call's Do method. Any
15800// pending HTTP request will be aborted if the provided context is
15801// canceled.
15802func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) Context(ctx context.Context) *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall {
15803	c.ctx_ = ctx
15804	return c
15805}
15806
15807// Header returns an http.Header that can be modified by the caller to
15808// add HTTP headers to the request.
15809func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) Header() http.Header {
15810	if c.header_ == nil {
15811		c.header_ = make(http.Header)
15812	}
15813	return c.header_
15814}
15815
15816func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) doRequest(alt string) (*http.Response, error) {
15817	reqHeaders := make(http.Header)
15818	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15819	for k, v := range c.header_ {
15820		reqHeaders[k] = v
15821	}
15822	reqHeaders.Set("User-Agent", c.s.userAgent())
15823	var body io.Reader = nil
15824	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudschedulersource)
15825	if err != nil {
15826		return nil, err
15827	}
15828	reqHeaders.Set("Content-Type", "application/json")
15829	c.urlParams_.Set("alt", alt)
15830	c.urlParams_.Set("prettyPrint", "false")
15831	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
15832	urls += "?" + c.urlParams_.Encode()
15833	req, err := http.NewRequest("PUT", urls, body)
15834	if err != nil {
15835		return nil, err
15836	}
15837	req.Header = reqHeaders
15838	googleapi.Expand(req.URL, map[string]string{
15839		"name": c.name,
15840	})
15841	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15842}
15843
15844// Do executes the "run.projects.locations.cloudschedulersources.replaceCloudSchedulerSource" call.
15845// Exactly one of *CloudSchedulerSource or error will be non-nil. Any
15846// non-2xx status code is an error. Response headers are in either
15847// *CloudSchedulerSource.ServerResponse.Header or (if a response was
15848// returned at all) in error.(*googleapi.Error).Header. Use
15849// googleapi.IsNotModified to check whether the returned error was
15850// because http.StatusNotModified was returned.
15851func (c *ProjectsLocationsCloudschedulersourcesReplaceCloudSchedulerSourceCall) Do(opts ...googleapi.CallOption) (*CloudSchedulerSource, error) {
15852	gensupport.SetOptions(c.urlParams_, opts...)
15853	res, err := c.doRequest("json")
15854	if res != nil && res.StatusCode == http.StatusNotModified {
15855		if res.Body != nil {
15856			res.Body.Close()
15857		}
15858		return nil, &googleapi.Error{
15859			Code:   res.StatusCode,
15860			Header: res.Header,
15861		}
15862	}
15863	if err != nil {
15864		return nil, err
15865	}
15866	defer googleapi.CloseBody(res)
15867	if err := googleapi.CheckResponse(res); err != nil {
15868		return nil, err
15869	}
15870	ret := &CloudSchedulerSource{
15871		ServerResponse: googleapi.ServerResponse{
15872			Header:         res.Header,
15873			HTTPStatusCode: res.StatusCode,
15874		},
15875	}
15876	target := &ret
15877	if err := gensupport.DecodeResponse(target, res); err != nil {
15878		return nil, err
15879	}
15880	return ret, nil
15881	// {
15882	//   "description": "Rpc to replace a cloudschedulersource.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
15883	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudschedulersources/{cloudschedulersourcesId}",
15884	//   "httpMethod": "PUT",
15885	//   "id": "run.projects.locations.cloudschedulersources.replaceCloudSchedulerSource",
15886	//   "parameterOrder": [
15887	//     "name"
15888	//   ],
15889	//   "parameters": {
15890	//     "name": {
15891	//       "description": "Required. The name of the cloudschedulersource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
15892	//       "location": "path",
15893	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudschedulersources/[^/]+$",
15894	//       "required": true,
15895	//       "type": "string"
15896	//     }
15897	//   },
15898	//   "path": "v1alpha1/{+name}",
15899	//   "request": {
15900	//     "$ref": "CloudSchedulerSource"
15901	//   },
15902	//   "response": {
15903	//     "$ref": "CloudSchedulerSource"
15904	//   },
15905	//   "scopes": [
15906	//     "https://www.googleapis.com/auth/cloud-platform"
15907	//   ]
15908	// }
15909
15910}
15911
15912// method id "run.projects.locations.cloudstoragesources.create":
15913
15914type ProjectsLocationsCloudstoragesourcesCreateCall struct {
15915	s                  *APIService
15916	parent             string
15917	cloudstoragesource *CloudStorageSource
15918	urlParams_         gensupport.URLParams
15919	ctx_               context.Context
15920	header_            http.Header
15921}
15922
15923// Create: Creates a new cloudstoragesource.
15924func (r *ProjectsLocationsCloudstoragesourcesService) Create(parent string, cloudstoragesource *CloudStorageSource) *ProjectsLocationsCloudstoragesourcesCreateCall {
15925	c := &ProjectsLocationsCloudstoragesourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15926	c.parent = parent
15927	c.cloudstoragesource = cloudstoragesource
15928	return c
15929}
15930
15931// Fields allows partial responses to be retrieved. See
15932// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
15933// for more information.
15934func (c *ProjectsLocationsCloudstoragesourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudstoragesourcesCreateCall {
15935	c.urlParams_.Set("fields", googleapi.CombineFields(s))
15936	return c
15937}
15938
15939// Context sets the context to be used in this call's Do method. Any
15940// pending HTTP request will be aborted if the provided context is
15941// canceled.
15942func (c *ProjectsLocationsCloudstoragesourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsCloudstoragesourcesCreateCall {
15943	c.ctx_ = ctx
15944	return c
15945}
15946
15947// Header returns an http.Header that can be modified by the caller to
15948// add HTTP headers to the request.
15949func (c *ProjectsLocationsCloudstoragesourcesCreateCall) Header() http.Header {
15950	if c.header_ == nil {
15951		c.header_ = make(http.Header)
15952	}
15953	return c.header_
15954}
15955
15956func (c *ProjectsLocationsCloudstoragesourcesCreateCall) doRequest(alt string) (*http.Response, error) {
15957	reqHeaders := make(http.Header)
15958	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
15959	for k, v := range c.header_ {
15960		reqHeaders[k] = v
15961	}
15962	reqHeaders.Set("User-Agent", c.s.userAgent())
15963	var body io.Reader = nil
15964	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudstoragesource)
15965	if err != nil {
15966		return nil, err
15967	}
15968	reqHeaders.Set("Content-Type", "application/json")
15969	c.urlParams_.Set("alt", alt)
15970	c.urlParams_.Set("prettyPrint", "false")
15971	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudstoragesources")
15972	urls += "?" + c.urlParams_.Encode()
15973	req, err := http.NewRequest("POST", urls, body)
15974	if err != nil {
15975		return nil, err
15976	}
15977	req.Header = reqHeaders
15978	googleapi.Expand(req.URL, map[string]string{
15979		"parent": c.parent,
15980	})
15981	return gensupport.SendRequest(c.ctx_, c.s.client, req)
15982}
15983
15984// Do executes the "run.projects.locations.cloudstoragesources.create" call.
15985// Exactly one of *CloudStorageSource or error will be non-nil. Any
15986// non-2xx status code is an error. Response headers are in either
15987// *CloudStorageSource.ServerResponse.Header or (if a response was
15988// returned at all) in error.(*googleapi.Error).Header. Use
15989// googleapi.IsNotModified to check whether the returned error was
15990// because http.StatusNotModified was returned.
15991func (c *ProjectsLocationsCloudstoragesourcesCreateCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
15992	gensupport.SetOptions(c.urlParams_, opts...)
15993	res, err := c.doRequest("json")
15994	if res != nil && res.StatusCode == http.StatusNotModified {
15995		if res.Body != nil {
15996			res.Body.Close()
15997		}
15998		return nil, &googleapi.Error{
15999			Code:   res.StatusCode,
16000			Header: res.Header,
16001		}
16002	}
16003	if err != nil {
16004		return nil, err
16005	}
16006	defer googleapi.CloseBody(res)
16007	if err := googleapi.CheckResponse(res); err != nil {
16008		return nil, err
16009	}
16010	ret := &CloudStorageSource{
16011		ServerResponse: googleapi.ServerResponse{
16012			Header:         res.Header,
16013			HTTPStatusCode: res.StatusCode,
16014		},
16015	}
16016	target := &ret
16017	if err := gensupport.DecodeResponse(target, res); err != nil {
16018		return nil, err
16019	}
16020	return ret, nil
16021	// {
16022	//   "description": "Creates a new cloudstoragesource.",
16023	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudstoragesources",
16024	//   "httpMethod": "POST",
16025	//   "id": "run.projects.locations.cloudstoragesources.create",
16026	//   "parameterOrder": [
16027	//     "parent"
16028	//   ],
16029	//   "parameters": {
16030	//     "parent": {
16031	//       "description": "Required. The project ID or project number in which this cloudstoragesource should\nbe created.",
16032	//       "location": "path",
16033	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
16034	//       "required": true,
16035	//       "type": "string"
16036	//     }
16037	//   },
16038	//   "path": "v1alpha1/{+parent}/cloudstoragesources",
16039	//   "request": {
16040	//     "$ref": "CloudStorageSource"
16041	//   },
16042	//   "response": {
16043	//     "$ref": "CloudStorageSource"
16044	//   },
16045	//   "scopes": [
16046	//     "https://www.googleapis.com/auth/cloud-platform"
16047	//   ]
16048	// }
16049
16050}
16051
16052// method id "run.projects.locations.cloudstoragesources.delete":
16053
16054type ProjectsLocationsCloudstoragesourcesDeleteCall struct {
16055	s          *APIService
16056	name       string
16057	urlParams_ gensupport.URLParams
16058	ctx_       context.Context
16059	header_    http.Header
16060}
16061
16062// Delete: Rpc to delete a cloudstoragesource.
16063func (r *ProjectsLocationsCloudstoragesourcesService) Delete(name string) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16064	c := &ProjectsLocationsCloudstoragesourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16065	c.name = name
16066	return c
16067}
16068
16069// ApiVersion sets the optional parameter "apiVersion": Cloud Run
16070// currently ignores this parameter.
16071func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16072	c.urlParams_.Set("apiVersion", apiVersion)
16073	return c
16074}
16075
16076// Kind sets the optional parameter "kind": Cloud Run currently ignores
16077// this parameter.
16078func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Kind(kind string) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16079	c.urlParams_.Set("kind", kind)
16080	return c
16081}
16082
16083// PropagationPolicy sets the optional parameter "propagationPolicy":
16084// Specifies the propagation policy of delete. Cloud Run currently
16085// ignores
16086// this setting, and deletes in the background. Please
16087// see
16088// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
16089// on/ for
16090// more information.
16091func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16092	c.urlParams_.Set("propagationPolicy", propagationPolicy)
16093	return c
16094}
16095
16096// Fields allows partial responses to be retrieved. See
16097// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16098// for more information.
16099func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16100	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16101	return c
16102}
16103
16104// Context sets the context to be used in this call's Do method. Any
16105// pending HTTP request will be aborted if the provided context is
16106// canceled.
16107func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCloudstoragesourcesDeleteCall {
16108	c.ctx_ = ctx
16109	return c
16110}
16111
16112// Header returns an http.Header that can be modified by the caller to
16113// add HTTP headers to the request.
16114func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Header() http.Header {
16115	if c.header_ == nil {
16116		c.header_ = make(http.Header)
16117	}
16118	return c.header_
16119}
16120
16121func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
16122	reqHeaders := make(http.Header)
16123	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
16124	for k, v := range c.header_ {
16125		reqHeaders[k] = v
16126	}
16127	reqHeaders.Set("User-Agent", c.s.userAgent())
16128	var body io.Reader = nil
16129	c.urlParams_.Set("alt", alt)
16130	c.urlParams_.Set("prettyPrint", "false")
16131	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
16132	urls += "?" + c.urlParams_.Encode()
16133	req, err := http.NewRequest("DELETE", urls, body)
16134	if err != nil {
16135		return nil, err
16136	}
16137	req.Header = reqHeaders
16138	googleapi.Expand(req.URL, map[string]string{
16139		"name": c.name,
16140	})
16141	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16142}
16143
16144// Do executes the "run.projects.locations.cloudstoragesources.delete" call.
16145// Exactly one of *Empty or error will be non-nil. Any non-2xx status
16146// code is an error. Response headers are in either
16147// *Empty.ServerResponse.Header or (if a response was returned at all)
16148// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
16149// check whether the returned error was because http.StatusNotModified
16150// was returned.
16151func (c *ProjectsLocationsCloudstoragesourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
16152	gensupport.SetOptions(c.urlParams_, opts...)
16153	res, err := c.doRequest("json")
16154	if res != nil && res.StatusCode == http.StatusNotModified {
16155		if res.Body != nil {
16156			res.Body.Close()
16157		}
16158		return nil, &googleapi.Error{
16159			Code:   res.StatusCode,
16160			Header: res.Header,
16161		}
16162	}
16163	if err != nil {
16164		return nil, err
16165	}
16166	defer googleapi.CloseBody(res)
16167	if err := googleapi.CheckResponse(res); err != nil {
16168		return nil, err
16169	}
16170	ret := &Empty{
16171		ServerResponse: googleapi.ServerResponse{
16172			Header:         res.Header,
16173			HTTPStatusCode: res.StatusCode,
16174		},
16175	}
16176	target := &ret
16177	if err := gensupport.DecodeResponse(target, res); err != nil {
16178		return nil, err
16179	}
16180	return ret, nil
16181	// {
16182	//   "description": "Rpc to delete a cloudstoragesource.",
16183	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudstoragesources/{cloudstoragesourcesId}",
16184	//   "httpMethod": "DELETE",
16185	//   "id": "run.projects.locations.cloudstoragesources.delete",
16186	//   "parameterOrder": [
16187	//     "name"
16188	//   ],
16189	//   "parameters": {
16190	//     "apiVersion": {
16191	//       "description": "Cloud Run currently ignores this parameter.",
16192	//       "location": "query",
16193	//       "type": "string"
16194	//     },
16195	//     "kind": {
16196	//       "description": "Cloud Run currently ignores this parameter.",
16197	//       "location": "query",
16198	//       "type": "string"
16199	//     },
16200	//     "name": {
16201	//       "description": "Required. The name of the cloudstoragesource being deleted. If needed, replace\n{namespace_id} with the project ID.",
16202	//       "location": "path",
16203	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudstoragesources/[^/]+$",
16204	//       "required": true,
16205	//       "type": "string"
16206	//     },
16207	//     "propagationPolicy": {
16208	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
16209	//       "location": "query",
16210	//       "type": "string"
16211	//     }
16212	//   },
16213	//   "path": "v1alpha1/{+name}",
16214	//   "response": {
16215	//     "$ref": "Empty"
16216	//   },
16217	//   "scopes": [
16218	//     "https://www.googleapis.com/auth/cloud-platform"
16219	//   ]
16220	// }
16221
16222}
16223
16224// method id "run.projects.locations.cloudstoragesources.get":
16225
16226type ProjectsLocationsCloudstoragesourcesGetCall struct {
16227	s            *APIService
16228	name         string
16229	urlParams_   gensupport.URLParams
16230	ifNoneMatch_ string
16231	ctx_         context.Context
16232	header_      http.Header
16233}
16234
16235// Get: Rpc to get information about a cloudstoragesource.
16236func (r *ProjectsLocationsCloudstoragesourcesService) Get(name string) *ProjectsLocationsCloudstoragesourcesGetCall {
16237	c := &ProjectsLocationsCloudstoragesourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16238	c.name = name
16239	return c
16240}
16241
16242// Fields allows partial responses to be retrieved. See
16243// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16244// for more information.
16245func (c *ProjectsLocationsCloudstoragesourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudstoragesourcesGetCall {
16246	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16247	return c
16248}
16249
16250// IfNoneMatch sets the optional parameter which makes the operation
16251// fail if the object's ETag matches the given value. This is useful for
16252// getting updates only after the object has changed since the last
16253// request. Use googleapi.IsNotModified to check whether the response
16254// error from Do is the result of In-None-Match.
16255func (c *ProjectsLocationsCloudstoragesourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudstoragesourcesGetCall {
16256	c.ifNoneMatch_ = entityTag
16257	return c
16258}
16259
16260// Context sets the context to be used in this call's Do method. Any
16261// pending HTTP request will be aborted if the provided context is
16262// canceled.
16263func (c *ProjectsLocationsCloudstoragesourcesGetCall) Context(ctx context.Context) *ProjectsLocationsCloudstoragesourcesGetCall {
16264	c.ctx_ = ctx
16265	return c
16266}
16267
16268// Header returns an http.Header that can be modified by the caller to
16269// add HTTP headers to the request.
16270func (c *ProjectsLocationsCloudstoragesourcesGetCall) Header() http.Header {
16271	if c.header_ == nil {
16272		c.header_ = make(http.Header)
16273	}
16274	return c.header_
16275}
16276
16277func (c *ProjectsLocationsCloudstoragesourcesGetCall) doRequest(alt string) (*http.Response, error) {
16278	reqHeaders := make(http.Header)
16279	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
16280	for k, v := range c.header_ {
16281		reqHeaders[k] = v
16282	}
16283	reqHeaders.Set("User-Agent", c.s.userAgent())
16284	if c.ifNoneMatch_ != "" {
16285		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16286	}
16287	var body io.Reader = nil
16288	c.urlParams_.Set("alt", alt)
16289	c.urlParams_.Set("prettyPrint", "false")
16290	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
16291	urls += "?" + c.urlParams_.Encode()
16292	req, err := http.NewRequest("GET", urls, body)
16293	if err != nil {
16294		return nil, err
16295	}
16296	req.Header = reqHeaders
16297	googleapi.Expand(req.URL, map[string]string{
16298		"name": c.name,
16299	})
16300	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16301}
16302
16303// Do executes the "run.projects.locations.cloudstoragesources.get" call.
16304// Exactly one of *CloudStorageSource or error will be non-nil. Any
16305// non-2xx status code is an error. Response headers are in either
16306// *CloudStorageSource.ServerResponse.Header or (if a response was
16307// returned at all) in error.(*googleapi.Error).Header. Use
16308// googleapi.IsNotModified to check whether the returned error was
16309// because http.StatusNotModified was returned.
16310func (c *ProjectsLocationsCloudstoragesourcesGetCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
16311	gensupport.SetOptions(c.urlParams_, opts...)
16312	res, err := c.doRequest("json")
16313	if res != nil && res.StatusCode == http.StatusNotModified {
16314		if res.Body != nil {
16315			res.Body.Close()
16316		}
16317		return nil, &googleapi.Error{
16318			Code:   res.StatusCode,
16319			Header: res.Header,
16320		}
16321	}
16322	if err != nil {
16323		return nil, err
16324	}
16325	defer googleapi.CloseBody(res)
16326	if err := googleapi.CheckResponse(res); err != nil {
16327		return nil, err
16328	}
16329	ret := &CloudStorageSource{
16330		ServerResponse: googleapi.ServerResponse{
16331			Header:         res.Header,
16332			HTTPStatusCode: res.StatusCode,
16333		},
16334	}
16335	target := &ret
16336	if err := gensupport.DecodeResponse(target, res); err != nil {
16337		return nil, err
16338	}
16339	return ret, nil
16340	// {
16341	//   "description": "Rpc to get information about a cloudstoragesource.",
16342	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudstoragesources/{cloudstoragesourcesId}",
16343	//   "httpMethod": "GET",
16344	//   "id": "run.projects.locations.cloudstoragesources.get",
16345	//   "parameterOrder": [
16346	//     "name"
16347	//   ],
16348	//   "parameters": {
16349	//     "name": {
16350	//       "description": "Required. The name of the cloudstoragesource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
16351	//       "location": "path",
16352	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudstoragesources/[^/]+$",
16353	//       "required": true,
16354	//       "type": "string"
16355	//     }
16356	//   },
16357	//   "path": "v1alpha1/{+name}",
16358	//   "response": {
16359	//     "$ref": "CloudStorageSource"
16360	//   },
16361	//   "scopes": [
16362	//     "https://www.googleapis.com/auth/cloud-platform"
16363	//   ]
16364	// }
16365
16366}
16367
16368// method id "run.projects.locations.cloudstoragesources.list":
16369
16370type ProjectsLocationsCloudstoragesourcesListCall struct {
16371	s            *APIService
16372	parent       string
16373	urlParams_   gensupport.URLParams
16374	ifNoneMatch_ string
16375	ctx_         context.Context
16376	header_      http.Header
16377}
16378
16379// List: Rpc to list cloudstoragesources.
16380func (r *ProjectsLocationsCloudstoragesourcesService) List(parent string) *ProjectsLocationsCloudstoragesourcesListCall {
16381	c := &ProjectsLocationsCloudstoragesourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16382	c.parent = parent
16383	return c
16384}
16385
16386// Continue sets the optional parameter "continue": Optional encoded
16387// string to continue paging.
16388func (c *ProjectsLocationsCloudstoragesourcesListCall) Continue(continue_ string) *ProjectsLocationsCloudstoragesourcesListCall {
16389	c.urlParams_.Set("continue", continue_)
16390	return c
16391}
16392
16393// FieldSelector sets the optional parameter "fieldSelector": Allows to
16394// filter resources based on a specific value for a field name.
16395// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
16396// Not currently used by Cloud Run.
16397func (c *ProjectsLocationsCloudstoragesourcesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsCloudstoragesourcesListCall {
16398	c.urlParams_.Set("fieldSelector", fieldSelector)
16399	return c
16400}
16401
16402// IncludeUninitialized sets the optional parameter
16403// "includeUninitialized": Not currently used by Cloud Run.
16404func (c *ProjectsLocationsCloudstoragesourcesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsCloudstoragesourcesListCall {
16405	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
16406	return c
16407}
16408
16409// LabelSelector sets the optional parameter "labelSelector": Allows to
16410// filter resources based on a label. Supported operations are
16411// =, !=, exists, in, and notIn.
16412func (c *ProjectsLocationsCloudstoragesourcesListCall) LabelSelector(labelSelector string) *ProjectsLocationsCloudstoragesourcesListCall {
16413	c.urlParams_.Set("labelSelector", labelSelector)
16414	return c
16415}
16416
16417// Limit sets the optional parameter "limit": The maximum number of
16418// records that should be returned.
16419func (c *ProjectsLocationsCloudstoragesourcesListCall) Limit(limit int64) *ProjectsLocationsCloudstoragesourcesListCall {
16420	c.urlParams_.Set("limit", fmt.Sprint(limit))
16421	return c
16422}
16423
16424// ResourceVersion sets the optional parameter "resourceVersion": The
16425// baseline resource version from which the list or watch operation
16426// should
16427// start. Not currently used by Cloud Run.
16428func (c *ProjectsLocationsCloudstoragesourcesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsCloudstoragesourcesListCall {
16429	c.urlParams_.Set("resourceVersion", resourceVersion)
16430	return c
16431}
16432
16433// Watch sets the optional parameter "watch": Flag that indicates that
16434// the client expects to watch this resource as well.
16435// Not currently used by Cloud Run.
16436func (c *ProjectsLocationsCloudstoragesourcesListCall) Watch(watch bool) *ProjectsLocationsCloudstoragesourcesListCall {
16437	c.urlParams_.Set("watch", fmt.Sprint(watch))
16438	return c
16439}
16440
16441// Fields allows partial responses to be retrieved. See
16442// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16443// for more information.
16444func (c *ProjectsLocationsCloudstoragesourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudstoragesourcesListCall {
16445	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16446	return c
16447}
16448
16449// IfNoneMatch sets the optional parameter which makes the operation
16450// fail if the object's ETag matches the given value. This is useful for
16451// getting updates only after the object has changed since the last
16452// request. Use googleapi.IsNotModified to check whether the response
16453// error from Do is the result of In-None-Match.
16454func (c *ProjectsLocationsCloudstoragesourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCloudstoragesourcesListCall {
16455	c.ifNoneMatch_ = entityTag
16456	return c
16457}
16458
16459// Context sets the context to be used in this call's Do method. Any
16460// pending HTTP request will be aborted if the provided context is
16461// canceled.
16462func (c *ProjectsLocationsCloudstoragesourcesListCall) Context(ctx context.Context) *ProjectsLocationsCloudstoragesourcesListCall {
16463	c.ctx_ = ctx
16464	return c
16465}
16466
16467// Header returns an http.Header that can be modified by the caller to
16468// add HTTP headers to the request.
16469func (c *ProjectsLocationsCloudstoragesourcesListCall) Header() http.Header {
16470	if c.header_ == nil {
16471		c.header_ = make(http.Header)
16472	}
16473	return c.header_
16474}
16475
16476func (c *ProjectsLocationsCloudstoragesourcesListCall) doRequest(alt string) (*http.Response, error) {
16477	reqHeaders := make(http.Header)
16478	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
16479	for k, v := range c.header_ {
16480		reqHeaders[k] = v
16481	}
16482	reqHeaders.Set("User-Agent", c.s.userAgent())
16483	if c.ifNoneMatch_ != "" {
16484		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16485	}
16486	var body io.Reader = nil
16487	c.urlParams_.Set("alt", alt)
16488	c.urlParams_.Set("prettyPrint", "false")
16489	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/cloudstoragesources")
16490	urls += "?" + c.urlParams_.Encode()
16491	req, err := http.NewRequest("GET", urls, body)
16492	if err != nil {
16493		return nil, err
16494	}
16495	req.Header = reqHeaders
16496	googleapi.Expand(req.URL, map[string]string{
16497		"parent": c.parent,
16498	})
16499	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16500}
16501
16502// Do executes the "run.projects.locations.cloudstoragesources.list" call.
16503// Exactly one of *ListCloudStorageSourcesResponse or error will be
16504// non-nil. Any non-2xx status code is an error. Response headers are in
16505// either *ListCloudStorageSourcesResponse.ServerResponse.Header or (if
16506// a response was returned at all) in error.(*googleapi.Error).Header.
16507// Use googleapi.IsNotModified to check whether the returned error was
16508// because http.StatusNotModified was returned.
16509func (c *ProjectsLocationsCloudstoragesourcesListCall) Do(opts ...googleapi.CallOption) (*ListCloudStorageSourcesResponse, error) {
16510	gensupport.SetOptions(c.urlParams_, opts...)
16511	res, err := c.doRequest("json")
16512	if res != nil && res.StatusCode == http.StatusNotModified {
16513		if res.Body != nil {
16514			res.Body.Close()
16515		}
16516		return nil, &googleapi.Error{
16517			Code:   res.StatusCode,
16518			Header: res.Header,
16519		}
16520	}
16521	if err != nil {
16522		return nil, err
16523	}
16524	defer googleapi.CloseBody(res)
16525	if err := googleapi.CheckResponse(res); err != nil {
16526		return nil, err
16527	}
16528	ret := &ListCloudStorageSourcesResponse{
16529		ServerResponse: googleapi.ServerResponse{
16530			Header:         res.Header,
16531			HTTPStatusCode: res.StatusCode,
16532		},
16533	}
16534	target := &ret
16535	if err := gensupport.DecodeResponse(target, res); err != nil {
16536		return nil, err
16537	}
16538	return ret, nil
16539	// {
16540	//   "description": "Rpc to list cloudstoragesources.",
16541	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudstoragesources",
16542	//   "httpMethod": "GET",
16543	//   "id": "run.projects.locations.cloudstoragesources.list",
16544	//   "parameterOrder": [
16545	//     "parent"
16546	//   ],
16547	//   "parameters": {
16548	//     "continue": {
16549	//       "description": "Optional encoded string to continue paging.",
16550	//       "location": "query",
16551	//       "type": "string"
16552	//     },
16553	//     "fieldSelector": {
16554	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
16555	//       "location": "query",
16556	//       "type": "string"
16557	//     },
16558	//     "includeUninitialized": {
16559	//       "description": "Not currently used by Cloud Run.",
16560	//       "location": "query",
16561	//       "type": "boolean"
16562	//     },
16563	//     "labelSelector": {
16564	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
16565	//       "location": "query",
16566	//       "type": "string"
16567	//     },
16568	//     "limit": {
16569	//       "description": "The maximum number of records that should be returned.",
16570	//       "format": "int32",
16571	//       "location": "query",
16572	//       "type": "integer"
16573	//     },
16574	//     "parent": {
16575	//       "description": "Required. The project ID or project number from which the cloudstoragesources should\nbe listed.",
16576	//       "location": "path",
16577	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
16578	//       "required": true,
16579	//       "type": "string"
16580	//     },
16581	//     "resourceVersion": {
16582	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
16583	//       "location": "query",
16584	//       "type": "string"
16585	//     },
16586	//     "watch": {
16587	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
16588	//       "location": "query",
16589	//       "type": "boolean"
16590	//     }
16591	//   },
16592	//   "path": "v1alpha1/{+parent}/cloudstoragesources",
16593	//   "response": {
16594	//     "$ref": "ListCloudStorageSourcesResponse"
16595	//   },
16596	//   "scopes": [
16597	//     "https://www.googleapis.com/auth/cloud-platform"
16598	//   ]
16599	// }
16600
16601}
16602
16603// method id "run.projects.locations.cloudstoragesources.replaceCloudStorageSource":
16604
16605type ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall struct {
16606	s                  *APIService
16607	name               string
16608	cloudstoragesource *CloudStorageSource
16609	urlParams_         gensupport.URLParams
16610	ctx_               context.Context
16611	header_            http.Header
16612}
16613
16614// ReplaceCloudStorageSource: Rpc to replace a cloudstoragesource.
16615//
16616// Only the spec and metadata labels and annotations are modifiable.
16617// After
16618// the Update request, Cloud Run will work to make the 'status'
16619// match the requested 'spec'.
16620//
16621// May provide metadata.resourceVersion to enforce update from last read
16622// for
16623// optimistic concurrency control.
16624func (r *ProjectsLocationsCloudstoragesourcesService) ReplaceCloudStorageSource(name string, cloudstoragesource *CloudStorageSource) *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall {
16625	c := &ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16626	c.name = name
16627	c.cloudstoragesource = cloudstoragesource
16628	return c
16629}
16630
16631// Fields allows partial responses to be retrieved. See
16632// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16633// for more information.
16634func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) Fields(s ...googleapi.Field) *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall {
16635	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16636	return c
16637}
16638
16639// Context sets the context to be used in this call's Do method. Any
16640// pending HTTP request will be aborted if the provided context is
16641// canceled.
16642func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) Context(ctx context.Context) *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall {
16643	c.ctx_ = ctx
16644	return c
16645}
16646
16647// Header returns an http.Header that can be modified by the caller to
16648// add HTTP headers to the request.
16649func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) Header() http.Header {
16650	if c.header_ == nil {
16651		c.header_ = make(http.Header)
16652	}
16653	return c.header_
16654}
16655
16656func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) doRequest(alt string) (*http.Response, error) {
16657	reqHeaders := make(http.Header)
16658	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
16659	for k, v := range c.header_ {
16660		reqHeaders[k] = v
16661	}
16662	reqHeaders.Set("User-Agent", c.s.userAgent())
16663	var body io.Reader = nil
16664	body, err := googleapi.WithoutDataWrapper.JSONReader(c.cloudstoragesource)
16665	if err != nil {
16666		return nil, err
16667	}
16668	reqHeaders.Set("Content-Type", "application/json")
16669	c.urlParams_.Set("alt", alt)
16670	c.urlParams_.Set("prettyPrint", "false")
16671	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
16672	urls += "?" + c.urlParams_.Encode()
16673	req, err := http.NewRequest("PUT", urls, body)
16674	if err != nil {
16675		return nil, err
16676	}
16677	req.Header = reqHeaders
16678	googleapi.Expand(req.URL, map[string]string{
16679		"name": c.name,
16680	})
16681	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16682}
16683
16684// Do executes the "run.projects.locations.cloudstoragesources.replaceCloudStorageSource" call.
16685// Exactly one of *CloudStorageSource or error will be non-nil. Any
16686// non-2xx status code is an error. Response headers are in either
16687// *CloudStorageSource.ServerResponse.Header or (if a response was
16688// returned at all) in error.(*googleapi.Error).Header. Use
16689// googleapi.IsNotModified to check whether the returned error was
16690// because http.StatusNotModified was returned.
16691func (c *ProjectsLocationsCloudstoragesourcesReplaceCloudStorageSourceCall) Do(opts ...googleapi.CallOption) (*CloudStorageSource, error) {
16692	gensupport.SetOptions(c.urlParams_, opts...)
16693	res, err := c.doRequest("json")
16694	if res != nil && res.StatusCode == http.StatusNotModified {
16695		if res.Body != nil {
16696			res.Body.Close()
16697		}
16698		return nil, &googleapi.Error{
16699			Code:   res.StatusCode,
16700			Header: res.Header,
16701		}
16702	}
16703	if err != nil {
16704		return nil, err
16705	}
16706	defer googleapi.CloseBody(res)
16707	if err := googleapi.CheckResponse(res); err != nil {
16708		return nil, err
16709	}
16710	ret := &CloudStorageSource{
16711		ServerResponse: googleapi.ServerResponse{
16712			Header:         res.Header,
16713			HTTPStatusCode: res.StatusCode,
16714		},
16715	}
16716	target := &ret
16717	if err := gensupport.DecodeResponse(target, res); err != nil {
16718		return nil, err
16719	}
16720	return ret, nil
16721	// {
16722	//   "description": "Rpc to replace a cloudstoragesource.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
16723	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/cloudstoragesources/{cloudstoragesourcesId}",
16724	//   "httpMethod": "PUT",
16725	//   "id": "run.projects.locations.cloudstoragesources.replaceCloudStorageSource",
16726	//   "parameterOrder": [
16727	//     "name"
16728	//   ],
16729	//   "parameters": {
16730	//     "name": {
16731	//       "description": "Required. The name of the cloudstoragesource being retrieved. If needed, replace\n{namespace_id} with the project ID.",
16732	//       "location": "path",
16733	//       "pattern": "^projects/[^/]+/locations/[^/]+/cloudstoragesources/[^/]+$",
16734	//       "required": true,
16735	//       "type": "string"
16736	//     }
16737	//   },
16738	//   "path": "v1alpha1/{+name}",
16739	//   "request": {
16740	//     "$ref": "CloudStorageSource"
16741	//   },
16742	//   "response": {
16743	//     "$ref": "CloudStorageSource"
16744	//   },
16745	//   "scopes": [
16746	//     "https://www.googleapis.com/auth/cloud-platform"
16747	//   ]
16748	// }
16749
16750}
16751
16752// method id "run.projects.locations.configurations.get":
16753
16754type ProjectsLocationsConfigurationsGetCall struct {
16755	s            *APIService
16756	name         string
16757	urlParams_   gensupport.URLParams
16758	ifNoneMatch_ string
16759	ctx_         context.Context
16760	header_      http.Header
16761}
16762
16763// Get: Rpc to get information about a configuration.
16764func (r *ProjectsLocationsConfigurationsService) Get(name string) *ProjectsLocationsConfigurationsGetCall {
16765	c := &ProjectsLocationsConfigurationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16766	c.name = name
16767	return c
16768}
16769
16770// Fields allows partial responses to be retrieved. See
16771// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16772// for more information.
16773func (c *ProjectsLocationsConfigurationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsGetCall {
16774	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16775	return c
16776}
16777
16778// IfNoneMatch sets the optional parameter which makes the operation
16779// fail if the object's ETag matches the given value. This is useful for
16780// getting updates only after the object has changed since the last
16781// request. Use googleapi.IsNotModified to check whether the response
16782// error from Do is the result of In-None-Match.
16783func (c *ProjectsLocationsConfigurationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsGetCall {
16784	c.ifNoneMatch_ = entityTag
16785	return c
16786}
16787
16788// Context sets the context to be used in this call's Do method. Any
16789// pending HTTP request will be aborted if the provided context is
16790// canceled.
16791func (c *ProjectsLocationsConfigurationsGetCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsGetCall {
16792	c.ctx_ = ctx
16793	return c
16794}
16795
16796// Header returns an http.Header that can be modified by the caller to
16797// add HTTP headers to the request.
16798func (c *ProjectsLocationsConfigurationsGetCall) Header() http.Header {
16799	if c.header_ == nil {
16800		c.header_ = make(http.Header)
16801	}
16802	return c.header_
16803}
16804
16805func (c *ProjectsLocationsConfigurationsGetCall) doRequest(alt string) (*http.Response, error) {
16806	reqHeaders := make(http.Header)
16807	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
16808	for k, v := range c.header_ {
16809		reqHeaders[k] = v
16810	}
16811	reqHeaders.Set("User-Agent", c.s.userAgent())
16812	if c.ifNoneMatch_ != "" {
16813		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16814	}
16815	var body io.Reader = nil
16816	c.urlParams_.Set("alt", alt)
16817	c.urlParams_.Set("prettyPrint", "false")
16818	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
16819	urls += "?" + c.urlParams_.Encode()
16820	req, err := http.NewRequest("GET", urls, body)
16821	if err != nil {
16822		return nil, err
16823	}
16824	req.Header = reqHeaders
16825	googleapi.Expand(req.URL, map[string]string{
16826		"name": c.name,
16827	})
16828	return gensupport.SendRequest(c.ctx_, c.s.client, req)
16829}
16830
16831// Do executes the "run.projects.locations.configurations.get" call.
16832// Exactly one of *Configuration or error will be non-nil. Any non-2xx
16833// status code is an error. Response headers are in either
16834// *Configuration.ServerResponse.Header or (if a response was returned
16835// at all) in error.(*googleapi.Error).Header. Use
16836// googleapi.IsNotModified to check whether the returned error was
16837// because http.StatusNotModified was returned.
16838func (c *ProjectsLocationsConfigurationsGetCall) Do(opts ...googleapi.CallOption) (*Configuration, error) {
16839	gensupport.SetOptions(c.urlParams_, opts...)
16840	res, err := c.doRequest("json")
16841	if res != nil && res.StatusCode == http.StatusNotModified {
16842		if res.Body != nil {
16843			res.Body.Close()
16844		}
16845		return nil, &googleapi.Error{
16846			Code:   res.StatusCode,
16847			Header: res.Header,
16848		}
16849	}
16850	if err != nil {
16851		return nil, err
16852	}
16853	defer googleapi.CloseBody(res)
16854	if err := googleapi.CheckResponse(res); err != nil {
16855		return nil, err
16856	}
16857	ret := &Configuration{
16858		ServerResponse: googleapi.ServerResponse{
16859			Header:         res.Header,
16860			HTTPStatusCode: res.StatusCode,
16861		},
16862	}
16863	target := &ret
16864	if err := gensupport.DecodeResponse(target, res); err != nil {
16865		return nil, err
16866	}
16867	return ret, nil
16868	// {
16869	//   "description": "Rpc to get information about a configuration.",
16870	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/configurations/{configurationsId}",
16871	//   "httpMethod": "GET",
16872	//   "id": "run.projects.locations.configurations.get",
16873	//   "parameterOrder": [
16874	//     "name"
16875	//   ],
16876	//   "parameters": {
16877	//     "name": {
16878	//       "description": "The name of the configuration being retrieved. If needed, replace\n{namespace_id} with the project ID.",
16879	//       "location": "path",
16880	//       "pattern": "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$",
16881	//       "required": true,
16882	//       "type": "string"
16883	//     }
16884	//   },
16885	//   "path": "v1alpha1/{+name}",
16886	//   "response": {
16887	//     "$ref": "Configuration"
16888	//   },
16889	//   "scopes": [
16890	//     "https://www.googleapis.com/auth/cloud-platform"
16891	//   ]
16892	// }
16893
16894}
16895
16896// method id "run.projects.locations.configurations.list":
16897
16898type ProjectsLocationsConfigurationsListCall struct {
16899	s            *APIService
16900	parent       string
16901	urlParams_   gensupport.URLParams
16902	ifNoneMatch_ string
16903	ctx_         context.Context
16904	header_      http.Header
16905}
16906
16907// List: Rpc to list configurations.
16908func (r *ProjectsLocationsConfigurationsService) List(parent string) *ProjectsLocationsConfigurationsListCall {
16909	c := &ProjectsLocationsConfigurationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16910	c.parent = parent
16911	return c
16912}
16913
16914// Continue sets the optional parameter "continue": Optional encoded
16915// string to continue paging.
16916func (c *ProjectsLocationsConfigurationsListCall) Continue(continue_ string) *ProjectsLocationsConfigurationsListCall {
16917	c.urlParams_.Set("continue", continue_)
16918	return c
16919}
16920
16921// FieldSelector sets the optional parameter "fieldSelector": Allows to
16922// filter resources based on a specific value for a field name.
16923// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
16924// Not currently used by Cloud Run.
16925func (c *ProjectsLocationsConfigurationsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsConfigurationsListCall {
16926	c.urlParams_.Set("fieldSelector", fieldSelector)
16927	return c
16928}
16929
16930// IncludeUninitialized sets the optional parameter
16931// "includeUninitialized": Not currently used by Cloud Run.
16932func (c *ProjectsLocationsConfigurationsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsConfigurationsListCall {
16933	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
16934	return c
16935}
16936
16937// LabelSelector sets the optional parameter "labelSelector": Allows to
16938// filter resources based on a label. Supported operations are
16939// =, !=, exists, in, and notIn.
16940func (c *ProjectsLocationsConfigurationsListCall) LabelSelector(labelSelector string) *ProjectsLocationsConfigurationsListCall {
16941	c.urlParams_.Set("labelSelector", labelSelector)
16942	return c
16943}
16944
16945// Limit sets the optional parameter "limit": The maximum number of
16946// records that should be returned.
16947func (c *ProjectsLocationsConfigurationsListCall) Limit(limit int64) *ProjectsLocationsConfigurationsListCall {
16948	c.urlParams_.Set("limit", fmt.Sprint(limit))
16949	return c
16950}
16951
16952// ResourceVersion sets the optional parameter "resourceVersion": The
16953// baseline resource version from which the list or watch operation
16954// should
16955// start. Not currently used by Cloud Run.
16956func (c *ProjectsLocationsConfigurationsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsConfigurationsListCall {
16957	c.urlParams_.Set("resourceVersion", resourceVersion)
16958	return c
16959}
16960
16961// Watch sets the optional parameter "watch": Flag that indicates that
16962// the client expects to watch this resource as well.
16963// Not currently used by Cloud Run.
16964func (c *ProjectsLocationsConfigurationsListCall) Watch(watch bool) *ProjectsLocationsConfigurationsListCall {
16965	c.urlParams_.Set("watch", fmt.Sprint(watch))
16966	return c
16967}
16968
16969// Fields allows partial responses to be retrieved. See
16970// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
16971// for more information.
16972func (c *ProjectsLocationsConfigurationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConfigurationsListCall {
16973	c.urlParams_.Set("fields", googleapi.CombineFields(s))
16974	return c
16975}
16976
16977// IfNoneMatch sets the optional parameter which makes the operation
16978// fail if the object's ETag matches the given value. This is useful for
16979// getting updates only after the object has changed since the last
16980// request. Use googleapi.IsNotModified to check whether the response
16981// error from Do is the result of In-None-Match.
16982func (c *ProjectsLocationsConfigurationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConfigurationsListCall {
16983	c.ifNoneMatch_ = entityTag
16984	return c
16985}
16986
16987// Context sets the context to be used in this call's Do method. Any
16988// pending HTTP request will be aborted if the provided context is
16989// canceled.
16990func (c *ProjectsLocationsConfigurationsListCall) Context(ctx context.Context) *ProjectsLocationsConfigurationsListCall {
16991	c.ctx_ = ctx
16992	return c
16993}
16994
16995// Header returns an http.Header that can be modified by the caller to
16996// add HTTP headers to the request.
16997func (c *ProjectsLocationsConfigurationsListCall) Header() http.Header {
16998	if c.header_ == nil {
16999		c.header_ = make(http.Header)
17000	}
17001	return c.header_
17002}
17003
17004func (c *ProjectsLocationsConfigurationsListCall) doRequest(alt string) (*http.Response, error) {
17005	reqHeaders := make(http.Header)
17006	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17007	for k, v := range c.header_ {
17008		reqHeaders[k] = v
17009	}
17010	reqHeaders.Set("User-Agent", c.s.userAgent())
17011	if c.ifNoneMatch_ != "" {
17012		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17013	}
17014	var body io.Reader = nil
17015	c.urlParams_.Set("alt", alt)
17016	c.urlParams_.Set("prettyPrint", "false")
17017	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/configurations")
17018	urls += "?" + c.urlParams_.Encode()
17019	req, err := http.NewRequest("GET", urls, body)
17020	if err != nil {
17021		return nil, err
17022	}
17023	req.Header = reqHeaders
17024	googleapi.Expand(req.URL, map[string]string{
17025		"parent": c.parent,
17026	})
17027	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17028}
17029
17030// Do executes the "run.projects.locations.configurations.list" call.
17031// Exactly one of *ListConfigurationsResponse or error will be non-nil.
17032// Any non-2xx status code is an error. Response headers are in either
17033// *ListConfigurationsResponse.ServerResponse.Header or (if a response
17034// was returned at all) in error.(*googleapi.Error).Header. Use
17035// googleapi.IsNotModified to check whether the returned error was
17036// because http.StatusNotModified was returned.
17037func (c *ProjectsLocationsConfigurationsListCall) Do(opts ...googleapi.CallOption) (*ListConfigurationsResponse, error) {
17038	gensupport.SetOptions(c.urlParams_, opts...)
17039	res, err := c.doRequest("json")
17040	if res != nil && res.StatusCode == http.StatusNotModified {
17041		if res.Body != nil {
17042			res.Body.Close()
17043		}
17044		return nil, &googleapi.Error{
17045			Code:   res.StatusCode,
17046			Header: res.Header,
17047		}
17048	}
17049	if err != nil {
17050		return nil, err
17051	}
17052	defer googleapi.CloseBody(res)
17053	if err := googleapi.CheckResponse(res); err != nil {
17054		return nil, err
17055	}
17056	ret := &ListConfigurationsResponse{
17057		ServerResponse: googleapi.ServerResponse{
17058			Header:         res.Header,
17059			HTTPStatusCode: res.StatusCode,
17060		},
17061	}
17062	target := &ret
17063	if err := gensupport.DecodeResponse(target, res); err != nil {
17064		return nil, err
17065	}
17066	return ret, nil
17067	// {
17068	//   "description": "Rpc to list configurations.",
17069	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/configurations",
17070	//   "httpMethod": "GET",
17071	//   "id": "run.projects.locations.configurations.list",
17072	//   "parameterOrder": [
17073	//     "parent"
17074	//   ],
17075	//   "parameters": {
17076	//     "continue": {
17077	//       "description": "Optional encoded string to continue paging.",
17078	//       "location": "query",
17079	//       "type": "string"
17080	//     },
17081	//     "fieldSelector": {
17082	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
17083	//       "location": "query",
17084	//       "type": "string"
17085	//     },
17086	//     "includeUninitialized": {
17087	//       "description": "Not currently used by Cloud Run.",
17088	//       "location": "query",
17089	//       "type": "boolean"
17090	//     },
17091	//     "labelSelector": {
17092	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
17093	//       "location": "query",
17094	//       "type": "string"
17095	//     },
17096	//     "limit": {
17097	//       "description": "The maximum number of records that should be returned.",
17098	//       "format": "int32",
17099	//       "location": "query",
17100	//       "type": "integer"
17101	//     },
17102	//     "parent": {
17103	//       "description": "The project ID or project number from which the configurations should be\nlisted.",
17104	//       "location": "path",
17105	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
17106	//       "required": true,
17107	//       "type": "string"
17108	//     },
17109	//     "resourceVersion": {
17110	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
17111	//       "location": "query",
17112	//       "type": "string"
17113	//     },
17114	//     "watch": {
17115	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
17116	//       "location": "query",
17117	//       "type": "boolean"
17118	//     }
17119	//   },
17120	//   "path": "v1alpha1/{+parent}/configurations",
17121	//   "response": {
17122	//     "$ref": "ListConfigurationsResponse"
17123	//   },
17124	//   "scopes": [
17125	//     "https://www.googleapis.com/auth/cloud-platform"
17126	//   ]
17127	// }
17128
17129}
17130
17131// method id "run.projects.locations.domainmappings.create":
17132
17133type ProjectsLocationsDomainmappingsCreateCall struct {
17134	s             *APIService
17135	parent        string
17136	domainmapping *DomainMapping
17137	urlParams_    gensupport.URLParams
17138	ctx_          context.Context
17139	header_       http.Header
17140}
17141
17142// Create: Creates a new domain mapping.
17143func (r *ProjectsLocationsDomainmappingsService) Create(parent string, domainmapping *DomainMapping) *ProjectsLocationsDomainmappingsCreateCall {
17144	c := &ProjectsLocationsDomainmappingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17145	c.parent = parent
17146	c.domainmapping = domainmapping
17147	return c
17148}
17149
17150// Fields allows partial responses to be retrieved. See
17151// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17152// for more information.
17153func (c *ProjectsLocationsDomainmappingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsCreateCall {
17154	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17155	return c
17156}
17157
17158// Context sets the context to be used in this call's Do method. Any
17159// pending HTTP request will be aborted if the provided context is
17160// canceled.
17161func (c *ProjectsLocationsDomainmappingsCreateCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsCreateCall {
17162	c.ctx_ = ctx
17163	return c
17164}
17165
17166// Header returns an http.Header that can be modified by the caller to
17167// add HTTP headers to the request.
17168func (c *ProjectsLocationsDomainmappingsCreateCall) Header() http.Header {
17169	if c.header_ == nil {
17170		c.header_ = make(http.Header)
17171	}
17172	return c.header_
17173}
17174
17175func (c *ProjectsLocationsDomainmappingsCreateCall) doRequest(alt string) (*http.Response, error) {
17176	reqHeaders := make(http.Header)
17177	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17178	for k, v := range c.header_ {
17179		reqHeaders[k] = v
17180	}
17181	reqHeaders.Set("User-Agent", c.s.userAgent())
17182	var body io.Reader = nil
17183	body, err := googleapi.WithoutDataWrapper.JSONReader(c.domainmapping)
17184	if err != nil {
17185		return nil, err
17186	}
17187	reqHeaders.Set("Content-Type", "application/json")
17188	c.urlParams_.Set("alt", alt)
17189	c.urlParams_.Set("prettyPrint", "false")
17190	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/domainmappings")
17191	urls += "?" + c.urlParams_.Encode()
17192	req, err := http.NewRequest("POST", urls, body)
17193	if err != nil {
17194		return nil, err
17195	}
17196	req.Header = reqHeaders
17197	googleapi.Expand(req.URL, map[string]string{
17198		"parent": c.parent,
17199	})
17200	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17201}
17202
17203// Do executes the "run.projects.locations.domainmappings.create" call.
17204// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
17205// status code is an error. Response headers are in either
17206// *DomainMapping.ServerResponse.Header or (if a response was returned
17207// at all) in error.(*googleapi.Error).Header. Use
17208// googleapi.IsNotModified to check whether the returned error was
17209// because http.StatusNotModified was returned.
17210func (c *ProjectsLocationsDomainmappingsCreateCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
17211	gensupport.SetOptions(c.urlParams_, opts...)
17212	res, err := c.doRequest("json")
17213	if res != nil && res.StatusCode == http.StatusNotModified {
17214		if res.Body != nil {
17215			res.Body.Close()
17216		}
17217		return nil, &googleapi.Error{
17218			Code:   res.StatusCode,
17219			Header: res.Header,
17220		}
17221	}
17222	if err != nil {
17223		return nil, err
17224	}
17225	defer googleapi.CloseBody(res)
17226	if err := googleapi.CheckResponse(res); err != nil {
17227		return nil, err
17228	}
17229	ret := &DomainMapping{
17230		ServerResponse: googleapi.ServerResponse{
17231			Header:         res.Header,
17232			HTTPStatusCode: res.StatusCode,
17233		},
17234	}
17235	target := &ret
17236	if err := gensupport.DecodeResponse(target, res); err != nil {
17237		return nil, err
17238	}
17239	return ret, nil
17240	// {
17241	//   "description": "Creates a new domain mapping.",
17242	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings",
17243	//   "httpMethod": "POST",
17244	//   "id": "run.projects.locations.domainmappings.create",
17245	//   "parameterOrder": [
17246	//     "parent"
17247	//   ],
17248	//   "parameters": {
17249	//     "parent": {
17250	//       "description": "The project ID or project number in which this domain mapping should be\ncreated.",
17251	//       "location": "path",
17252	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
17253	//       "required": true,
17254	//       "type": "string"
17255	//     }
17256	//   },
17257	//   "path": "v1alpha1/{+parent}/domainmappings",
17258	//   "request": {
17259	//     "$ref": "DomainMapping"
17260	//   },
17261	//   "response": {
17262	//     "$ref": "DomainMapping"
17263	//   },
17264	//   "scopes": [
17265	//     "https://www.googleapis.com/auth/cloud-platform"
17266	//   ]
17267	// }
17268
17269}
17270
17271// method id "run.projects.locations.domainmappings.delete":
17272
17273type ProjectsLocationsDomainmappingsDeleteCall struct {
17274	s          *APIService
17275	name       string
17276	urlParams_ gensupport.URLParams
17277	ctx_       context.Context
17278	header_    http.Header
17279}
17280
17281// Delete: Rpc to delete a domain mapping.
17282func (r *ProjectsLocationsDomainmappingsService) Delete(name string) *ProjectsLocationsDomainmappingsDeleteCall {
17283	c := &ProjectsLocationsDomainmappingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17284	c.name = name
17285	return c
17286}
17287
17288// ApiVersion sets the optional parameter "apiVersion": Cloud Run
17289// currently ignores this parameter.
17290func (c *ProjectsLocationsDomainmappingsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsDomainmappingsDeleteCall {
17291	c.urlParams_.Set("apiVersion", apiVersion)
17292	return c
17293}
17294
17295// Kind sets the optional parameter "kind": Cloud Run currently ignores
17296// this parameter.
17297func (c *ProjectsLocationsDomainmappingsDeleteCall) Kind(kind string) *ProjectsLocationsDomainmappingsDeleteCall {
17298	c.urlParams_.Set("kind", kind)
17299	return c
17300}
17301
17302// OrphanDependents sets the optional parameter "orphanDependents":
17303// Deprecated.
17304// Specifies the cascade behavior on delete.
17305// Cloud Run only supports cascading behavior, so this must be
17306// false.
17307// This attribute is deprecated, and is now replaced with
17308// PropagationPolicy
17309// See https://github.com/kubernetes/kubernetes/issues/46659 for more
17310// info.
17311func (c *ProjectsLocationsDomainmappingsDeleteCall) OrphanDependents(orphanDependents bool) *ProjectsLocationsDomainmappingsDeleteCall {
17312	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
17313	return c
17314}
17315
17316// PropagationPolicy sets the optional parameter "propagationPolicy":
17317// Specifies the propagation policy of delete. Cloud Run currently
17318// ignores
17319// this setting, and deletes in the background. Please
17320// see
17321// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
17322// on/ for
17323// more information.
17324func (c *ProjectsLocationsDomainmappingsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsDomainmappingsDeleteCall {
17325	c.urlParams_.Set("propagationPolicy", propagationPolicy)
17326	return c
17327}
17328
17329// Fields allows partial responses to be retrieved. See
17330// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17331// for more information.
17332func (c *ProjectsLocationsDomainmappingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsDeleteCall {
17333	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17334	return c
17335}
17336
17337// Context sets the context to be used in this call's Do method. Any
17338// pending HTTP request will be aborted if the provided context is
17339// canceled.
17340func (c *ProjectsLocationsDomainmappingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsDeleteCall {
17341	c.ctx_ = ctx
17342	return c
17343}
17344
17345// Header returns an http.Header that can be modified by the caller to
17346// add HTTP headers to the request.
17347func (c *ProjectsLocationsDomainmappingsDeleteCall) Header() http.Header {
17348	if c.header_ == nil {
17349		c.header_ = make(http.Header)
17350	}
17351	return c.header_
17352}
17353
17354func (c *ProjectsLocationsDomainmappingsDeleteCall) doRequest(alt string) (*http.Response, error) {
17355	reqHeaders := make(http.Header)
17356	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17357	for k, v := range c.header_ {
17358		reqHeaders[k] = v
17359	}
17360	reqHeaders.Set("User-Agent", c.s.userAgent())
17361	var body io.Reader = nil
17362	c.urlParams_.Set("alt", alt)
17363	c.urlParams_.Set("prettyPrint", "false")
17364	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
17365	urls += "?" + c.urlParams_.Encode()
17366	req, err := http.NewRequest("DELETE", urls, body)
17367	if err != nil {
17368		return nil, err
17369	}
17370	req.Header = reqHeaders
17371	googleapi.Expand(req.URL, map[string]string{
17372		"name": c.name,
17373	})
17374	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17375}
17376
17377// Do executes the "run.projects.locations.domainmappings.delete" call.
17378// Exactly one of *Empty or error will be non-nil. Any non-2xx status
17379// code is an error. Response headers are in either
17380// *Empty.ServerResponse.Header or (if a response was returned at all)
17381// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
17382// check whether the returned error was because http.StatusNotModified
17383// was returned.
17384func (c *ProjectsLocationsDomainmappingsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
17385	gensupport.SetOptions(c.urlParams_, opts...)
17386	res, err := c.doRequest("json")
17387	if res != nil && res.StatusCode == http.StatusNotModified {
17388		if res.Body != nil {
17389			res.Body.Close()
17390		}
17391		return nil, &googleapi.Error{
17392			Code:   res.StatusCode,
17393			Header: res.Header,
17394		}
17395	}
17396	if err != nil {
17397		return nil, err
17398	}
17399	defer googleapi.CloseBody(res)
17400	if err := googleapi.CheckResponse(res); err != nil {
17401		return nil, err
17402	}
17403	ret := &Empty{
17404		ServerResponse: googleapi.ServerResponse{
17405			Header:         res.Header,
17406			HTTPStatusCode: res.StatusCode,
17407		},
17408	}
17409	target := &ret
17410	if err := gensupport.DecodeResponse(target, res); err != nil {
17411		return nil, err
17412	}
17413	return ret, nil
17414	// {
17415	//   "description": "Rpc to delete a domain mapping.",
17416	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}",
17417	//   "httpMethod": "DELETE",
17418	//   "id": "run.projects.locations.domainmappings.delete",
17419	//   "parameterOrder": [
17420	//     "name"
17421	//   ],
17422	//   "parameters": {
17423	//     "apiVersion": {
17424	//       "description": "Cloud Run currently ignores this parameter.",
17425	//       "location": "query",
17426	//       "type": "string"
17427	//     },
17428	//     "kind": {
17429	//       "description": "Cloud Run currently ignores this parameter.",
17430	//       "location": "query",
17431	//       "type": "string"
17432	//     },
17433	//     "name": {
17434	//       "description": "The name of the domain mapping being deleted. If needed, replace\n{namespace_id} with the project ID.",
17435	//       "location": "path",
17436	//       "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$",
17437	//       "required": true,
17438	//       "type": "string"
17439	//     },
17440	//     "orphanDependents": {
17441	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
17442	//       "location": "query",
17443	//       "type": "boolean"
17444	//     },
17445	//     "propagationPolicy": {
17446	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
17447	//       "location": "query",
17448	//       "type": "string"
17449	//     }
17450	//   },
17451	//   "path": "v1alpha1/{+name}",
17452	//   "response": {
17453	//     "$ref": "Empty"
17454	//   },
17455	//   "scopes": [
17456	//     "https://www.googleapis.com/auth/cloud-platform"
17457	//   ]
17458	// }
17459
17460}
17461
17462// method id "run.projects.locations.domainmappings.get":
17463
17464type ProjectsLocationsDomainmappingsGetCall struct {
17465	s            *APIService
17466	name         string
17467	urlParams_   gensupport.URLParams
17468	ifNoneMatch_ string
17469	ctx_         context.Context
17470	header_      http.Header
17471}
17472
17473// Get: Rpc to get information about a domain mapping.
17474func (r *ProjectsLocationsDomainmappingsService) Get(name string) *ProjectsLocationsDomainmappingsGetCall {
17475	c := &ProjectsLocationsDomainmappingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17476	c.name = name
17477	return c
17478}
17479
17480// Fields allows partial responses to be retrieved. See
17481// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17482// for more information.
17483func (c *ProjectsLocationsDomainmappingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsGetCall {
17484	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17485	return c
17486}
17487
17488// IfNoneMatch sets the optional parameter which makes the operation
17489// fail if the object's ETag matches the given value. This is useful for
17490// getting updates only after the object has changed since the last
17491// request. Use googleapi.IsNotModified to check whether the response
17492// error from Do is the result of In-None-Match.
17493func (c *ProjectsLocationsDomainmappingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsGetCall {
17494	c.ifNoneMatch_ = entityTag
17495	return c
17496}
17497
17498// Context sets the context to be used in this call's Do method. Any
17499// pending HTTP request will be aborted if the provided context is
17500// canceled.
17501func (c *ProjectsLocationsDomainmappingsGetCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsGetCall {
17502	c.ctx_ = ctx
17503	return c
17504}
17505
17506// Header returns an http.Header that can be modified by the caller to
17507// add HTTP headers to the request.
17508func (c *ProjectsLocationsDomainmappingsGetCall) Header() http.Header {
17509	if c.header_ == nil {
17510		c.header_ = make(http.Header)
17511	}
17512	return c.header_
17513}
17514
17515func (c *ProjectsLocationsDomainmappingsGetCall) doRequest(alt string) (*http.Response, error) {
17516	reqHeaders := make(http.Header)
17517	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17518	for k, v := range c.header_ {
17519		reqHeaders[k] = v
17520	}
17521	reqHeaders.Set("User-Agent", c.s.userAgent())
17522	if c.ifNoneMatch_ != "" {
17523		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17524	}
17525	var body io.Reader = nil
17526	c.urlParams_.Set("alt", alt)
17527	c.urlParams_.Set("prettyPrint", "false")
17528	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
17529	urls += "?" + c.urlParams_.Encode()
17530	req, err := http.NewRequest("GET", urls, body)
17531	if err != nil {
17532		return nil, err
17533	}
17534	req.Header = reqHeaders
17535	googleapi.Expand(req.URL, map[string]string{
17536		"name": c.name,
17537	})
17538	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17539}
17540
17541// Do executes the "run.projects.locations.domainmappings.get" call.
17542// Exactly one of *DomainMapping or error will be non-nil. Any non-2xx
17543// status code is an error. Response headers are in either
17544// *DomainMapping.ServerResponse.Header or (if a response was returned
17545// at all) in error.(*googleapi.Error).Header. Use
17546// googleapi.IsNotModified to check whether the returned error was
17547// because http.StatusNotModified was returned.
17548func (c *ProjectsLocationsDomainmappingsGetCall) Do(opts ...googleapi.CallOption) (*DomainMapping, error) {
17549	gensupport.SetOptions(c.urlParams_, opts...)
17550	res, err := c.doRequest("json")
17551	if res != nil && res.StatusCode == http.StatusNotModified {
17552		if res.Body != nil {
17553			res.Body.Close()
17554		}
17555		return nil, &googleapi.Error{
17556			Code:   res.StatusCode,
17557			Header: res.Header,
17558		}
17559	}
17560	if err != nil {
17561		return nil, err
17562	}
17563	defer googleapi.CloseBody(res)
17564	if err := googleapi.CheckResponse(res); err != nil {
17565		return nil, err
17566	}
17567	ret := &DomainMapping{
17568		ServerResponse: googleapi.ServerResponse{
17569			Header:         res.Header,
17570			HTTPStatusCode: res.StatusCode,
17571		},
17572	}
17573	target := &ret
17574	if err := gensupport.DecodeResponse(target, res); err != nil {
17575		return nil, err
17576	}
17577	return ret, nil
17578	// {
17579	//   "description": "Rpc to get information about a domain mapping.",
17580	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}",
17581	//   "httpMethod": "GET",
17582	//   "id": "run.projects.locations.domainmappings.get",
17583	//   "parameterOrder": [
17584	//     "name"
17585	//   ],
17586	//   "parameters": {
17587	//     "name": {
17588	//       "description": "The name of the domain mapping being retrieved. If needed, replace\n{namespace_id} with the project ID.",
17589	//       "location": "path",
17590	//       "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$",
17591	//       "required": true,
17592	//       "type": "string"
17593	//     }
17594	//   },
17595	//   "path": "v1alpha1/{+name}",
17596	//   "response": {
17597	//     "$ref": "DomainMapping"
17598	//   },
17599	//   "scopes": [
17600	//     "https://www.googleapis.com/auth/cloud-platform"
17601	//   ]
17602	// }
17603
17604}
17605
17606// method id "run.projects.locations.domainmappings.list":
17607
17608type ProjectsLocationsDomainmappingsListCall struct {
17609	s            *APIService
17610	parent       string
17611	urlParams_   gensupport.URLParams
17612	ifNoneMatch_ string
17613	ctx_         context.Context
17614	header_      http.Header
17615}
17616
17617// List: Rpc to list domain mappings.
17618func (r *ProjectsLocationsDomainmappingsService) List(parent string) *ProjectsLocationsDomainmappingsListCall {
17619	c := &ProjectsLocationsDomainmappingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17620	c.parent = parent
17621	return c
17622}
17623
17624// Continue sets the optional parameter "continue": Optional encoded
17625// string to continue paging.
17626func (c *ProjectsLocationsDomainmappingsListCall) Continue(continue_ string) *ProjectsLocationsDomainmappingsListCall {
17627	c.urlParams_.Set("continue", continue_)
17628	return c
17629}
17630
17631// FieldSelector sets the optional parameter "fieldSelector": Allows to
17632// filter resources based on a specific value for a field name.
17633// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
17634// Not currently used by Cloud Run.
17635func (c *ProjectsLocationsDomainmappingsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsDomainmappingsListCall {
17636	c.urlParams_.Set("fieldSelector", fieldSelector)
17637	return c
17638}
17639
17640// IncludeUninitialized sets the optional parameter
17641// "includeUninitialized": Not currently used by Cloud Run.
17642func (c *ProjectsLocationsDomainmappingsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsDomainmappingsListCall {
17643	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
17644	return c
17645}
17646
17647// LabelSelector sets the optional parameter "labelSelector": Allows to
17648// filter resources based on a label. Supported operations are
17649// =, !=, exists, in, and notIn.
17650func (c *ProjectsLocationsDomainmappingsListCall) LabelSelector(labelSelector string) *ProjectsLocationsDomainmappingsListCall {
17651	c.urlParams_.Set("labelSelector", labelSelector)
17652	return c
17653}
17654
17655// Limit sets the optional parameter "limit": The maximum number of
17656// records that should be returned.
17657func (c *ProjectsLocationsDomainmappingsListCall) Limit(limit int64) *ProjectsLocationsDomainmappingsListCall {
17658	c.urlParams_.Set("limit", fmt.Sprint(limit))
17659	return c
17660}
17661
17662// ResourceVersion sets the optional parameter "resourceVersion": The
17663// baseline resource version from which the list or watch operation
17664// should
17665// start. Not currently used by Cloud Run.
17666func (c *ProjectsLocationsDomainmappingsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsDomainmappingsListCall {
17667	c.urlParams_.Set("resourceVersion", resourceVersion)
17668	return c
17669}
17670
17671// Watch sets the optional parameter "watch": Flag that indicates that
17672// the client expects to watch this resource as well.
17673// Not currently used by Cloud Run.
17674func (c *ProjectsLocationsDomainmappingsListCall) Watch(watch bool) *ProjectsLocationsDomainmappingsListCall {
17675	c.urlParams_.Set("watch", fmt.Sprint(watch))
17676	return c
17677}
17678
17679// Fields allows partial responses to be retrieved. See
17680// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17681// for more information.
17682func (c *ProjectsLocationsDomainmappingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDomainmappingsListCall {
17683	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17684	return c
17685}
17686
17687// IfNoneMatch sets the optional parameter which makes the operation
17688// fail if the object's ETag matches the given value. This is useful for
17689// getting updates only after the object has changed since the last
17690// request. Use googleapi.IsNotModified to check whether the response
17691// error from Do is the result of In-None-Match.
17692func (c *ProjectsLocationsDomainmappingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDomainmappingsListCall {
17693	c.ifNoneMatch_ = entityTag
17694	return c
17695}
17696
17697// Context sets the context to be used in this call's Do method. Any
17698// pending HTTP request will be aborted if the provided context is
17699// canceled.
17700func (c *ProjectsLocationsDomainmappingsListCall) Context(ctx context.Context) *ProjectsLocationsDomainmappingsListCall {
17701	c.ctx_ = ctx
17702	return c
17703}
17704
17705// Header returns an http.Header that can be modified by the caller to
17706// add HTTP headers to the request.
17707func (c *ProjectsLocationsDomainmappingsListCall) Header() http.Header {
17708	if c.header_ == nil {
17709		c.header_ = make(http.Header)
17710	}
17711	return c.header_
17712}
17713
17714func (c *ProjectsLocationsDomainmappingsListCall) doRequest(alt string) (*http.Response, error) {
17715	reqHeaders := make(http.Header)
17716	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17717	for k, v := range c.header_ {
17718		reqHeaders[k] = v
17719	}
17720	reqHeaders.Set("User-Agent", c.s.userAgent())
17721	if c.ifNoneMatch_ != "" {
17722		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17723	}
17724	var body io.Reader = nil
17725	c.urlParams_.Set("alt", alt)
17726	c.urlParams_.Set("prettyPrint", "false")
17727	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/domainmappings")
17728	urls += "?" + c.urlParams_.Encode()
17729	req, err := http.NewRequest("GET", urls, body)
17730	if err != nil {
17731		return nil, err
17732	}
17733	req.Header = reqHeaders
17734	googleapi.Expand(req.URL, map[string]string{
17735		"parent": c.parent,
17736	})
17737	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17738}
17739
17740// Do executes the "run.projects.locations.domainmappings.list" call.
17741// Exactly one of *ListDomainMappingsResponse or error will be non-nil.
17742// Any non-2xx status code is an error. Response headers are in either
17743// *ListDomainMappingsResponse.ServerResponse.Header or (if a response
17744// was returned at all) in error.(*googleapi.Error).Header. Use
17745// googleapi.IsNotModified to check whether the returned error was
17746// because http.StatusNotModified was returned.
17747func (c *ProjectsLocationsDomainmappingsListCall) Do(opts ...googleapi.CallOption) (*ListDomainMappingsResponse, error) {
17748	gensupport.SetOptions(c.urlParams_, opts...)
17749	res, err := c.doRequest("json")
17750	if res != nil && res.StatusCode == http.StatusNotModified {
17751		if res.Body != nil {
17752			res.Body.Close()
17753		}
17754		return nil, &googleapi.Error{
17755			Code:   res.StatusCode,
17756			Header: res.Header,
17757		}
17758	}
17759	if err != nil {
17760		return nil, err
17761	}
17762	defer googleapi.CloseBody(res)
17763	if err := googleapi.CheckResponse(res); err != nil {
17764		return nil, err
17765	}
17766	ret := &ListDomainMappingsResponse{
17767		ServerResponse: googleapi.ServerResponse{
17768			Header:         res.Header,
17769			HTTPStatusCode: res.StatusCode,
17770		},
17771	}
17772	target := &ret
17773	if err := gensupport.DecodeResponse(target, res); err != nil {
17774		return nil, err
17775	}
17776	return ret, nil
17777	// {
17778	//   "description": "Rpc to list domain mappings.",
17779	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings",
17780	//   "httpMethod": "GET",
17781	//   "id": "run.projects.locations.domainmappings.list",
17782	//   "parameterOrder": [
17783	//     "parent"
17784	//   ],
17785	//   "parameters": {
17786	//     "continue": {
17787	//       "description": "Optional encoded string to continue paging.",
17788	//       "location": "query",
17789	//       "type": "string"
17790	//     },
17791	//     "fieldSelector": {
17792	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
17793	//       "location": "query",
17794	//       "type": "string"
17795	//     },
17796	//     "includeUninitialized": {
17797	//       "description": "Not currently used by Cloud Run.",
17798	//       "location": "query",
17799	//       "type": "boolean"
17800	//     },
17801	//     "labelSelector": {
17802	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
17803	//       "location": "query",
17804	//       "type": "string"
17805	//     },
17806	//     "limit": {
17807	//       "description": "The maximum number of records that should be returned.",
17808	//       "format": "int32",
17809	//       "location": "query",
17810	//       "type": "integer"
17811	//     },
17812	//     "parent": {
17813	//       "description": "The project ID or project number from which the domain mappings should be\nlisted.",
17814	//       "location": "path",
17815	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
17816	//       "required": true,
17817	//       "type": "string"
17818	//     },
17819	//     "resourceVersion": {
17820	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
17821	//       "location": "query",
17822	//       "type": "string"
17823	//     },
17824	//     "watch": {
17825	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
17826	//       "location": "query",
17827	//       "type": "boolean"
17828	//     }
17829	//   },
17830	//   "path": "v1alpha1/{+parent}/domainmappings",
17831	//   "response": {
17832	//     "$ref": "ListDomainMappingsResponse"
17833	//   },
17834	//   "scopes": [
17835	//     "https://www.googleapis.com/auth/cloud-platform"
17836	//   ]
17837	// }
17838
17839}
17840
17841// method id "run.projects.locations.revisions.delete":
17842
17843type ProjectsLocationsRevisionsDeleteCall struct {
17844	s          *APIService
17845	name       string
17846	urlParams_ gensupport.URLParams
17847	ctx_       context.Context
17848	header_    http.Header
17849}
17850
17851// Delete: Rpc to delete a revision.
17852func (r *ProjectsLocationsRevisionsService) Delete(name string) *ProjectsLocationsRevisionsDeleteCall {
17853	c := &ProjectsLocationsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17854	c.name = name
17855	return c
17856}
17857
17858// ApiVersion sets the optional parameter "apiVersion": Cloud Run
17859// currently ignores this parameter.
17860func (c *ProjectsLocationsRevisionsDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsRevisionsDeleteCall {
17861	c.urlParams_.Set("apiVersion", apiVersion)
17862	return c
17863}
17864
17865// Kind sets the optional parameter "kind": Cloud Run currently ignores
17866// this parameter.
17867func (c *ProjectsLocationsRevisionsDeleteCall) Kind(kind string) *ProjectsLocationsRevisionsDeleteCall {
17868	c.urlParams_.Set("kind", kind)
17869	return c
17870}
17871
17872// OrphanDependents sets the optional parameter "orphanDependents":
17873// Deprecated.
17874// Specifies the cascade behavior on delete.
17875// Cloud Run only supports cascading behavior, so this must be
17876// false.
17877// This attribute is deprecated, and is now replaced with
17878// PropagationPolicy
17879// See https://github.com/kubernetes/kubernetes/issues/46659 for more
17880// info.
17881func (c *ProjectsLocationsRevisionsDeleteCall) OrphanDependents(orphanDependents bool) *ProjectsLocationsRevisionsDeleteCall {
17882	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
17883	return c
17884}
17885
17886// PropagationPolicy sets the optional parameter "propagationPolicy":
17887// Specifies the propagation policy of delete. Cloud Run currently
17888// ignores
17889// this setting, and deletes in the background. Please
17890// see
17891// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
17892// on/ for
17893// more information.
17894func (c *ProjectsLocationsRevisionsDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsRevisionsDeleteCall {
17895	c.urlParams_.Set("propagationPolicy", propagationPolicy)
17896	return c
17897}
17898
17899// Fields allows partial responses to be retrieved. See
17900// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
17901// for more information.
17902func (c *ProjectsLocationsRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsDeleteCall {
17903	c.urlParams_.Set("fields", googleapi.CombineFields(s))
17904	return c
17905}
17906
17907// Context sets the context to be used in this call's Do method. Any
17908// pending HTTP request will be aborted if the provided context is
17909// canceled.
17910func (c *ProjectsLocationsRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsRevisionsDeleteCall {
17911	c.ctx_ = ctx
17912	return c
17913}
17914
17915// Header returns an http.Header that can be modified by the caller to
17916// add HTTP headers to the request.
17917func (c *ProjectsLocationsRevisionsDeleteCall) Header() http.Header {
17918	if c.header_ == nil {
17919		c.header_ = make(http.Header)
17920	}
17921	return c.header_
17922}
17923
17924func (c *ProjectsLocationsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) {
17925	reqHeaders := make(http.Header)
17926	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
17927	for k, v := range c.header_ {
17928		reqHeaders[k] = v
17929	}
17930	reqHeaders.Set("User-Agent", c.s.userAgent())
17931	var body io.Reader = nil
17932	c.urlParams_.Set("alt", alt)
17933	c.urlParams_.Set("prettyPrint", "false")
17934	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
17935	urls += "?" + c.urlParams_.Encode()
17936	req, err := http.NewRequest("DELETE", urls, body)
17937	if err != nil {
17938		return nil, err
17939	}
17940	req.Header = reqHeaders
17941	googleapi.Expand(req.URL, map[string]string{
17942		"name": c.name,
17943	})
17944	return gensupport.SendRequest(c.ctx_, c.s.client, req)
17945}
17946
17947// Do executes the "run.projects.locations.revisions.delete" call.
17948// Exactly one of *Empty or error will be non-nil. Any non-2xx status
17949// code is an error. Response headers are in either
17950// *Empty.ServerResponse.Header or (if a response was returned at all)
17951// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
17952// check whether the returned error was because http.StatusNotModified
17953// was returned.
17954func (c *ProjectsLocationsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
17955	gensupport.SetOptions(c.urlParams_, opts...)
17956	res, err := c.doRequest("json")
17957	if res != nil && res.StatusCode == http.StatusNotModified {
17958		if res.Body != nil {
17959			res.Body.Close()
17960		}
17961		return nil, &googleapi.Error{
17962			Code:   res.StatusCode,
17963			Header: res.Header,
17964		}
17965	}
17966	if err != nil {
17967		return nil, err
17968	}
17969	defer googleapi.CloseBody(res)
17970	if err := googleapi.CheckResponse(res); err != nil {
17971		return nil, err
17972	}
17973	ret := &Empty{
17974		ServerResponse: googleapi.ServerResponse{
17975			Header:         res.Header,
17976			HTTPStatusCode: res.StatusCode,
17977		},
17978	}
17979	target := &ret
17980	if err := gensupport.DecodeResponse(target, res); err != nil {
17981		return nil, err
17982	}
17983	return ret, nil
17984	// {
17985	//   "description": "Rpc to delete a revision.",
17986	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}",
17987	//   "httpMethod": "DELETE",
17988	//   "id": "run.projects.locations.revisions.delete",
17989	//   "parameterOrder": [
17990	//     "name"
17991	//   ],
17992	//   "parameters": {
17993	//     "apiVersion": {
17994	//       "description": "Cloud Run currently ignores this parameter.",
17995	//       "location": "query",
17996	//       "type": "string"
17997	//     },
17998	//     "kind": {
17999	//       "description": "Cloud Run currently ignores this parameter.",
18000	//       "location": "query",
18001	//       "type": "string"
18002	//     },
18003	//     "name": {
18004	//       "description": "The name of the revision being deleted. If needed, replace\n{namespace_id} with the project ID.",
18005	//       "location": "path",
18006	//       "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$",
18007	//       "required": true,
18008	//       "type": "string"
18009	//     },
18010	//     "orphanDependents": {
18011	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
18012	//       "location": "query",
18013	//       "type": "boolean"
18014	//     },
18015	//     "propagationPolicy": {
18016	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
18017	//       "location": "query",
18018	//       "type": "string"
18019	//     }
18020	//   },
18021	//   "path": "v1alpha1/{+name}",
18022	//   "response": {
18023	//     "$ref": "Empty"
18024	//   },
18025	//   "scopes": [
18026	//     "https://www.googleapis.com/auth/cloud-platform"
18027	//   ]
18028	// }
18029
18030}
18031
18032// method id "run.projects.locations.revisions.get":
18033
18034type ProjectsLocationsRevisionsGetCall struct {
18035	s            *APIService
18036	name         string
18037	urlParams_   gensupport.URLParams
18038	ifNoneMatch_ string
18039	ctx_         context.Context
18040	header_      http.Header
18041}
18042
18043// Get: Rpc to get information about a revision.
18044func (r *ProjectsLocationsRevisionsService) Get(name string) *ProjectsLocationsRevisionsGetCall {
18045	c := &ProjectsLocationsRevisionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18046	c.name = name
18047	return c
18048}
18049
18050// Fields allows partial responses to be retrieved. See
18051// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18052// for more information.
18053func (c *ProjectsLocationsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsGetCall {
18054	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18055	return c
18056}
18057
18058// IfNoneMatch sets the optional parameter which makes the operation
18059// fail if the object's ETag matches the given value. This is useful for
18060// getting updates only after the object has changed since the last
18061// request. Use googleapi.IsNotModified to check whether the response
18062// error from Do is the result of In-None-Match.
18063func (c *ProjectsLocationsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsGetCall {
18064	c.ifNoneMatch_ = entityTag
18065	return c
18066}
18067
18068// Context sets the context to be used in this call's Do method. Any
18069// pending HTTP request will be aborted if the provided context is
18070// canceled.
18071func (c *ProjectsLocationsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsRevisionsGetCall {
18072	c.ctx_ = ctx
18073	return c
18074}
18075
18076// Header returns an http.Header that can be modified by the caller to
18077// add HTTP headers to the request.
18078func (c *ProjectsLocationsRevisionsGetCall) Header() http.Header {
18079	if c.header_ == nil {
18080		c.header_ = make(http.Header)
18081	}
18082	return c.header_
18083}
18084
18085func (c *ProjectsLocationsRevisionsGetCall) doRequest(alt string) (*http.Response, error) {
18086	reqHeaders := make(http.Header)
18087	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
18088	for k, v := range c.header_ {
18089		reqHeaders[k] = v
18090	}
18091	reqHeaders.Set("User-Agent", c.s.userAgent())
18092	if c.ifNoneMatch_ != "" {
18093		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18094	}
18095	var body io.Reader = nil
18096	c.urlParams_.Set("alt", alt)
18097	c.urlParams_.Set("prettyPrint", "false")
18098	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
18099	urls += "?" + c.urlParams_.Encode()
18100	req, err := http.NewRequest("GET", urls, body)
18101	if err != nil {
18102		return nil, err
18103	}
18104	req.Header = reqHeaders
18105	googleapi.Expand(req.URL, map[string]string{
18106		"name": c.name,
18107	})
18108	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18109}
18110
18111// Do executes the "run.projects.locations.revisions.get" call.
18112// Exactly one of *Revision or error will be non-nil. Any non-2xx status
18113// code is an error. Response headers are in either
18114// *Revision.ServerResponse.Header or (if a response was returned at
18115// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
18116// to check whether the returned error was because
18117// http.StatusNotModified was returned.
18118func (c *ProjectsLocationsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*Revision, error) {
18119	gensupport.SetOptions(c.urlParams_, opts...)
18120	res, err := c.doRequest("json")
18121	if res != nil && res.StatusCode == http.StatusNotModified {
18122		if res.Body != nil {
18123			res.Body.Close()
18124		}
18125		return nil, &googleapi.Error{
18126			Code:   res.StatusCode,
18127			Header: res.Header,
18128		}
18129	}
18130	if err != nil {
18131		return nil, err
18132	}
18133	defer googleapi.CloseBody(res)
18134	if err := googleapi.CheckResponse(res); err != nil {
18135		return nil, err
18136	}
18137	ret := &Revision{
18138		ServerResponse: googleapi.ServerResponse{
18139			Header:         res.Header,
18140			HTTPStatusCode: res.StatusCode,
18141		},
18142	}
18143	target := &ret
18144	if err := gensupport.DecodeResponse(target, res); err != nil {
18145		return nil, err
18146	}
18147	return ret, nil
18148	// {
18149	//   "description": "Rpc to get information about a revision.",
18150	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}",
18151	//   "httpMethod": "GET",
18152	//   "id": "run.projects.locations.revisions.get",
18153	//   "parameterOrder": [
18154	//     "name"
18155	//   ],
18156	//   "parameters": {
18157	//     "name": {
18158	//       "description": "The name of the revision being retrieved. If needed, replace\n{namespace_id} with the project ID.",
18159	//       "location": "path",
18160	//       "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$",
18161	//       "required": true,
18162	//       "type": "string"
18163	//     }
18164	//   },
18165	//   "path": "v1alpha1/{+name}",
18166	//   "response": {
18167	//     "$ref": "Revision"
18168	//   },
18169	//   "scopes": [
18170	//     "https://www.googleapis.com/auth/cloud-platform"
18171	//   ]
18172	// }
18173
18174}
18175
18176// method id "run.projects.locations.revisions.list":
18177
18178type ProjectsLocationsRevisionsListCall struct {
18179	s            *APIService
18180	parent       string
18181	urlParams_   gensupport.URLParams
18182	ifNoneMatch_ string
18183	ctx_         context.Context
18184	header_      http.Header
18185}
18186
18187// List: Rpc to list revisions.
18188func (r *ProjectsLocationsRevisionsService) List(parent string) *ProjectsLocationsRevisionsListCall {
18189	c := &ProjectsLocationsRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18190	c.parent = parent
18191	return c
18192}
18193
18194// Continue sets the optional parameter "continue": Optional encoded
18195// string to continue paging.
18196func (c *ProjectsLocationsRevisionsListCall) Continue(continue_ string) *ProjectsLocationsRevisionsListCall {
18197	c.urlParams_.Set("continue", continue_)
18198	return c
18199}
18200
18201// FieldSelector sets the optional parameter "fieldSelector": Allows to
18202// filter resources based on a specific value for a field name.
18203// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
18204// Not currently used by Cloud Run.
18205func (c *ProjectsLocationsRevisionsListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRevisionsListCall {
18206	c.urlParams_.Set("fieldSelector", fieldSelector)
18207	return c
18208}
18209
18210// IncludeUninitialized sets the optional parameter
18211// "includeUninitialized": Not currently used by Cloud Run.
18212func (c *ProjectsLocationsRevisionsListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRevisionsListCall {
18213	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
18214	return c
18215}
18216
18217// LabelSelector sets the optional parameter "labelSelector": Allows to
18218// filter resources based on a label. Supported operations are
18219// =, !=, exists, in, and notIn.
18220func (c *ProjectsLocationsRevisionsListCall) LabelSelector(labelSelector string) *ProjectsLocationsRevisionsListCall {
18221	c.urlParams_.Set("labelSelector", labelSelector)
18222	return c
18223}
18224
18225// Limit sets the optional parameter "limit": The maximum number of
18226// records that should be returned.
18227func (c *ProjectsLocationsRevisionsListCall) Limit(limit int64) *ProjectsLocationsRevisionsListCall {
18228	c.urlParams_.Set("limit", fmt.Sprint(limit))
18229	return c
18230}
18231
18232// ResourceVersion sets the optional parameter "resourceVersion": The
18233// baseline resource version from which the list or watch operation
18234// should
18235// start. Not currently used by Cloud Run.
18236func (c *ProjectsLocationsRevisionsListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRevisionsListCall {
18237	c.urlParams_.Set("resourceVersion", resourceVersion)
18238	return c
18239}
18240
18241// Watch sets the optional parameter "watch": Flag that indicates that
18242// the client expects to watch this resource as well.
18243// Not currently used by Cloud Run.
18244func (c *ProjectsLocationsRevisionsListCall) Watch(watch bool) *ProjectsLocationsRevisionsListCall {
18245	c.urlParams_.Set("watch", fmt.Sprint(watch))
18246	return c
18247}
18248
18249// Fields allows partial responses to be retrieved. See
18250// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18251// for more information.
18252func (c *ProjectsLocationsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRevisionsListCall {
18253	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18254	return c
18255}
18256
18257// IfNoneMatch sets the optional parameter which makes the operation
18258// fail if the object's ETag matches the given value. This is useful for
18259// getting updates only after the object has changed since the last
18260// request. Use googleapi.IsNotModified to check whether the response
18261// error from Do is the result of In-None-Match.
18262func (c *ProjectsLocationsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRevisionsListCall {
18263	c.ifNoneMatch_ = entityTag
18264	return c
18265}
18266
18267// Context sets the context to be used in this call's Do method. Any
18268// pending HTTP request will be aborted if the provided context is
18269// canceled.
18270func (c *ProjectsLocationsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsRevisionsListCall {
18271	c.ctx_ = ctx
18272	return c
18273}
18274
18275// Header returns an http.Header that can be modified by the caller to
18276// add HTTP headers to the request.
18277func (c *ProjectsLocationsRevisionsListCall) Header() http.Header {
18278	if c.header_ == nil {
18279		c.header_ = make(http.Header)
18280	}
18281	return c.header_
18282}
18283
18284func (c *ProjectsLocationsRevisionsListCall) doRequest(alt string) (*http.Response, error) {
18285	reqHeaders := make(http.Header)
18286	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
18287	for k, v := range c.header_ {
18288		reqHeaders[k] = v
18289	}
18290	reqHeaders.Set("User-Agent", c.s.userAgent())
18291	if c.ifNoneMatch_ != "" {
18292		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18293	}
18294	var body io.Reader = nil
18295	c.urlParams_.Set("alt", alt)
18296	c.urlParams_.Set("prettyPrint", "false")
18297	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/revisions")
18298	urls += "?" + c.urlParams_.Encode()
18299	req, err := http.NewRequest("GET", urls, body)
18300	if err != nil {
18301		return nil, err
18302	}
18303	req.Header = reqHeaders
18304	googleapi.Expand(req.URL, map[string]string{
18305		"parent": c.parent,
18306	})
18307	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18308}
18309
18310// Do executes the "run.projects.locations.revisions.list" call.
18311// Exactly one of *ListRevisionsResponse or error will be non-nil. Any
18312// non-2xx status code is an error. Response headers are in either
18313// *ListRevisionsResponse.ServerResponse.Header or (if a response was
18314// returned at all) in error.(*googleapi.Error).Header. Use
18315// googleapi.IsNotModified to check whether the returned error was
18316// because http.StatusNotModified was returned.
18317func (c *ProjectsLocationsRevisionsListCall) Do(opts ...googleapi.CallOption) (*ListRevisionsResponse, error) {
18318	gensupport.SetOptions(c.urlParams_, opts...)
18319	res, err := c.doRequest("json")
18320	if res != nil && res.StatusCode == http.StatusNotModified {
18321		if res.Body != nil {
18322			res.Body.Close()
18323		}
18324		return nil, &googleapi.Error{
18325			Code:   res.StatusCode,
18326			Header: res.Header,
18327		}
18328	}
18329	if err != nil {
18330		return nil, err
18331	}
18332	defer googleapi.CloseBody(res)
18333	if err := googleapi.CheckResponse(res); err != nil {
18334		return nil, err
18335	}
18336	ret := &ListRevisionsResponse{
18337		ServerResponse: googleapi.ServerResponse{
18338			Header:         res.Header,
18339			HTTPStatusCode: res.StatusCode,
18340		},
18341	}
18342	target := &ret
18343	if err := gensupport.DecodeResponse(target, res); err != nil {
18344		return nil, err
18345	}
18346	return ret, nil
18347	// {
18348	//   "description": "Rpc to list revisions.",
18349	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions",
18350	//   "httpMethod": "GET",
18351	//   "id": "run.projects.locations.revisions.list",
18352	//   "parameterOrder": [
18353	//     "parent"
18354	//   ],
18355	//   "parameters": {
18356	//     "continue": {
18357	//       "description": "Optional encoded string to continue paging.",
18358	//       "location": "query",
18359	//       "type": "string"
18360	//     },
18361	//     "fieldSelector": {
18362	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
18363	//       "location": "query",
18364	//       "type": "string"
18365	//     },
18366	//     "includeUninitialized": {
18367	//       "description": "Not currently used by Cloud Run.",
18368	//       "location": "query",
18369	//       "type": "boolean"
18370	//     },
18371	//     "labelSelector": {
18372	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
18373	//       "location": "query",
18374	//       "type": "string"
18375	//     },
18376	//     "limit": {
18377	//       "description": "The maximum number of records that should be returned.",
18378	//       "format": "int32",
18379	//       "location": "query",
18380	//       "type": "integer"
18381	//     },
18382	//     "parent": {
18383	//       "description": "The project ID or project number from which the revisions should be listed.",
18384	//       "location": "path",
18385	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
18386	//       "required": true,
18387	//       "type": "string"
18388	//     },
18389	//     "resourceVersion": {
18390	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
18391	//       "location": "query",
18392	//       "type": "string"
18393	//     },
18394	//     "watch": {
18395	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
18396	//       "location": "query",
18397	//       "type": "boolean"
18398	//     }
18399	//   },
18400	//   "path": "v1alpha1/{+parent}/revisions",
18401	//   "response": {
18402	//     "$ref": "ListRevisionsResponse"
18403	//   },
18404	//   "scopes": [
18405	//     "https://www.googleapis.com/auth/cloud-platform"
18406	//   ]
18407	// }
18408
18409}
18410
18411// method id "run.projects.locations.routes.get":
18412
18413type ProjectsLocationsRoutesGetCall struct {
18414	s            *APIService
18415	name         string
18416	urlParams_   gensupport.URLParams
18417	ifNoneMatch_ string
18418	ctx_         context.Context
18419	header_      http.Header
18420}
18421
18422// Get: Rpc to get information about a route.
18423func (r *ProjectsLocationsRoutesService) Get(name string) *ProjectsLocationsRoutesGetCall {
18424	c := &ProjectsLocationsRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18425	c.name = name
18426	return c
18427}
18428
18429// Fields allows partial responses to be retrieved. See
18430// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18431// for more information.
18432func (c *ProjectsLocationsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesGetCall {
18433	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18434	return c
18435}
18436
18437// IfNoneMatch sets the optional parameter which makes the operation
18438// fail if the object's ETag matches the given value. This is useful for
18439// getting updates only after the object has changed since the last
18440// request. Use googleapi.IsNotModified to check whether the response
18441// error from Do is the result of In-None-Match.
18442func (c *ProjectsLocationsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesGetCall {
18443	c.ifNoneMatch_ = entityTag
18444	return c
18445}
18446
18447// Context sets the context to be used in this call's Do method. Any
18448// pending HTTP request will be aborted if the provided context is
18449// canceled.
18450func (c *ProjectsLocationsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsRoutesGetCall {
18451	c.ctx_ = ctx
18452	return c
18453}
18454
18455// Header returns an http.Header that can be modified by the caller to
18456// add HTTP headers to the request.
18457func (c *ProjectsLocationsRoutesGetCall) Header() http.Header {
18458	if c.header_ == nil {
18459		c.header_ = make(http.Header)
18460	}
18461	return c.header_
18462}
18463
18464func (c *ProjectsLocationsRoutesGetCall) doRequest(alt string) (*http.Response, error) {
18465	reqHeaders := make(http.Header)
18466	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
18467	for k, v := range c.header_ {
18468		reqHeaders[k] = v
18469	}
18470	reqHeaders.Set("User-Agent", c.s.userAgent())
18471	if c.ifNoneMatch_ != "" {
18472		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18473	}
18474	var body io.Reader = nil
18475	c.urlParams_.Set("alt", alt)
18476	c.urlParams_.Set("prettyPrint", "false")
18477	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
18478	urls += "?" + c.urlParams_.Encode()
18479	req, err := http.NewRequest("GET", urls, body)
18480	if err != nil {
18481		return nil, err
18482	}
18483	req.Header = reqHeaders
18484	googleapi.Expand(req.URL, map[string]string{
18485		"name": c.name,
18486	})
18487	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18488}
18489
18490// Do executes the "run.projects.locations.routes.get" call.
18491// Exactly one of *Route or error will be non-nil. Any non-2xx status
18492// code is an error. Response headers are in either
18493// *Route.ServerResponse.Header or (if a response was returned at all)
18494// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
18495// check whether the returned error was because http.StatusNotModified
18496// was returned.
18497func (c *ProjectsLocationsRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
18498	gensupport.SetOptions(c.urlParams_, opts...)
18499	res, err := c.doRequest("json")
18500	if res != nil && res.StatusCode == http.StatusNotModified {
18501		if res.Body != nil {
18502			res.Body.Close()
18503		}
18504		return nil, &googleapi.Error{
18505			Code:   res.StatusCode,
18506			Header: res.Header,
18507		}
18508	}
18509	if err != nil {
18510		return nil, err
18511	}
18512	defer googleapi.CloseBody(res)
18513	if err := googleapi.CheckResponse(res); err != nil {
18514		return nil, err
18515	}
18516	ret := &Route{
18517		ServerResponse: googleapi.ServerResponse{
18518			Header:         res.Header,
18519			HTTPStatusCode: res.StatusCode,
18520		},
18521	}
18522	target := &ret
18523	if err := gensupport.DecodeResponse(target, res); err != nil {
18524		return nil, err
18525	}
18526	return ret, nil
18527	// {
18528	//   "description": "Rpc to get information about a route.",
18529	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/routes/{routesId}",
18530	//   "httpMethod": "GET",
18531	//   "id": "run.projects.locations.routes.get",
18532	//   "parameterOrder": [
18533	//     "name"
18534	//   ],
18535	//   "parameters": {
18536	//     "name": {
18537	//       "description": "The name of the route being retrieved. If needed, replace\n{namespace_id} with the project ID.",
18538	//       "location": "path",
18539	//       "pattern": "^projects/[^/]+/locations/[^/]+/routes/[^/]+$",
18540	//       "required": true,
18541	//       "type": "string"
18542	//     }
18543	//   },
18544	//   "path": "v1alpha1/{+name}",
18545	//   "response": {
18546	//     "$ref": "Route"
18547	//   },
18548	//   "scopes": [
18549	//     "https://www.googleapis.com/auth/cloud-platform"
18550	//   ]
18551	// }
18552
18553}
18554
18555// method id "run.projects.locations.routes.list":
18556
18557type ProjectsLocationsRoutesListCall struct {
18558	s            *APIService
18559	parent       string
18560	urlParams_   gensupport.URLParams
18561	ifNoneMatch_ string
18562	ctx_         context.Context
18563	header_      http.Header
18564}
18565
18566// List: Rpc to list routes.
18567func (r *ProjectsLocationsRoutesService) List(parent string) *ProjectsLocationsRoutesListCall {
18568	c := &ProjectsLocationsRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18569	c.parent = parent
18570	return c
18571}
18572
18573// Continue sets the optional parameter "continue": Optional encoded
18574// string to continue paging.
18575func (c *ProjectsLocationsRoutesListCall) Continue(continue_ string) *ProjectsLocationsRoutesListCall {
18576	c.urlParams_.Set("continue", continue_)
18577	return c
18578}
18579
18580// FieldSelector sets the optional parameter "fieldSelector": Allows to
18581// filter resources based on a specific value for a field name.
18582// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
18583// Not currently used by Cloud Run.
18584func (c *ProjectsLocationsRoutesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsRoutesListCall {
18585	c.urlParams_.Set("fieldSelector", fieldSelector)
18586	return c
18587}
18588
18589// IncludeUninitialized sets the optional parameter
18590// "includeUninitialized": Not currently used by Cloud Run.
18591func (c *ProjectsLocationsRoutesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsRoutesListCall {
18592	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
18593	return c
18594}
18595
18596// LabelSelector sets the optional parameter "labelSelector": Allows to
18597// filter resources based on a label. Supported operations are
18598// =, !=, exists, in, and notIn.
18599func (c *ProjectsLocationsRoutesListCall) LabelSelector(labelSelector string) *ProjectsLocationsRoutesListCall {
18600	c.urlParams_.Set("labelSelector", labelSelector)
18601	return c
18602}
18603
18604// Limit sets the optional parameter "limit": The maximum number of
18605// records that should be returned.
18606func (c *ProjectsLocationsRoutesListCall) Limit(limit int64) *ProjectsLocationsRoutesListCall {
18607	c.urlParams_.Set("limit", fmt.Sprint(limit))
18608	return c
18609}
18610
18611// ResourceVersion sets the optional parameter "resourceVersion": The
18612// baseline resource version from which the list or watch operation
18613// should
18614// start. Not currently used by Cloud Run.
18615func (c *ProjectsLocationsRoutesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsRoutesListCall {
18616	c.urlParams_.Set("resourceVersion", resourceVersion)
18617	return c
18618}
18619
18620// Watch sets the optional parameter "watch": Flag that indicates that
18621// the client expects to watch this resource as well.
18622// Not currently used by Cloud Run.
18623func (c *ProjectsLocationsRoutesListCall) Watch(watch bool) *ProjectsLocationsRoutesListCall {
18624	c.urlParams_.Set("watch", fmt.Sprint(watch))
18625	return c
18626}
18627
18628// Fields allows partial responses to be retrieved. See
18629// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18630// for more information.
18631func (c *ProjectsLocationsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsRoutesListCall {
18632	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18633	return c
18634}
18635
18636// IfNoneMatch sets the optional parameter which makes the operation
18637// fail if the object's ETag matches the given value. This is useful for
18638// getting updates only after the object has changed since the last
18639// request. Use googleapi.IsNotModified to check whether the response
18640// error from Do is the result of In-None-Match.
18641func (c *ProjectsLocationsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsRoutesListCall {
18642	c.ifNoneMatch_ = entityTag
18643	return c
18644}
18645
18646// Context sets the context to be used in this call's Do method. Any
18647// pending HTTP request will be aborted if the provided context is
18648// canceled.
18649func (c *ProjectsLocationsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsRoutesListCall {
18650	c.ctx_ = ctx
18651	return c
18652}
18653
18654// Header returns an http.Header that can be modified by the caller to
18655// add HTTP headers to the request.
18656func (c *ProjectsLocationsRoutesListCall) Header() http.Header {
18657	if c.header_ == nil {
18658		c.header_ = make(http.Header)
18659	}
18660	return c.header_
18661}
18662
18663func (c *ProjectsLocationsRoutesListCall) doRequest(alt string) (*http.Response, error) {
18664	reqHeaders := make(http.Header)
18665	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
18666	for k, v := range c.header_ {
18667		reqHeaders[k] = v
18668	}
18669	reqHeaders.Set("User-Agent", c.s.userAgent())
18670	if c.ifNoneMatch_ != "" {
18671		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18672	}
18673	var body io.Reader = nil
18674	c.urlParams_.Set("alt", alt)
18675	c.urlParams_.Set("prettyPrint", "false")
18676	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/routes")
18677	urls += "?" + c.urlParams_.Encode()
18678	req, err := http.NewRequest("GET", urls, body)
18679	if err != nil {
18680		return nil, err
18681	}
18682	req.Header = reqHeaders
18683	googleapi.Expand(req.URL, map[string]string{
18684		"parent": c.parent,
18685	})
18686	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18687}
18688
18689// Do executes the "run.projects.locations.routes.list" call.
18690// Exactly one of *ListRoutesResponse or error will be non-nil. Any
18691// non-2xx status code is an error. Response headers are in either
18692// *ListRoutesResponse.ServerResponse.Header or (if a response was
18693// returned at all) in error.(*googleapi.Error).Header. Use
18694// googleapi.IsNotModified to check whether the returned error was
18695// because http.StatusNotModified was returned.
18696func (c *ProjectsLocationsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
18697	gensupport.SetOptions(c.urlParams_, opts...)
18698	res, err := c.doRequest("json")
18699	if res != nil && res.StatusCode == http.StatusNotModified {
18700		if res.Body != nil {
18701			res.Body.Close()
18702		}
18703		return nil, &googleapi.Error{
18704			Code:   res.StatusCode,
18705			Header: res.Header,
18706		}
18707	}
18708	if err != nil {
18709		return nil, err
18710	}
18711	defer googleapi.CloseBody(res)
18712	if err := googleapi.CheckResponse(res); err != nil {
18713		return nil, err
18714	}
18715	ret := &ListRoutesResponse{
18716		ServerResponse: googleapi.ServerResponse{
18717			Header:         res.Header,
18718			HTTPStatusCode: res.StatusCode,
18719		},
18720	}
18721	target := &ret
18722	if err := gensupport.DecodeResponse(target, res); err != nil {
18723		return nil, err
18724	}
18725	return ret, nil
18726	// {
18727	//   "description": "Rpc to list routes.",
18728	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/routes",
18729	//   "httpMethod": "GET",
18730	//   "id": "run.projects.locations.routes.list",
18731	//   "parameterOrder": [
18732	//     "parent"
18733	//   ],
18734	//   "parameters": {
18735	//     "continue": {
18736	//       "description": "Optional encoded string to continue paging.",
18737	//       "location": "query",
18738	//       "type": "string"
18739	//     },
18740	//     "fieldSelector": {
18741	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
18742	//       "location": "query",
18743	//       "type": "string"
18744	//     },
18745	//     "includeUninitialized": {
18746	//       "description": "Not currently used by Cloud Run.",
18747	//       "location": "query",
18748	//       "type": "boolean"
18749	//     },
18750	//     "labelSelector": {
18751	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
18752	//       "location": "query",
18753	//       "type": "string"
18754	//     },
18755	//     "limit": {
18756	//       "description": "The maximum number of records that should be returned.",
18757	//       "format": "int32",
18758	//       "location": "query",
18759	//       "type": "integer"
18760	//     },
18761	//     "parent": {
18762	//       "description": "The project ID or project number from which the routes should be listed.",
18763	//       "location": "path",
18764	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
18765	//       "required": true,
18766	//       "type": "string"
18767	//     },
18768	//     "resourceVersion": {
18769	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
18770	//       "location": "query",
18771	//       "type": "string"
18772	//     },
18773	//     "watch": {
18774	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
18775	//       "location": "query",
18776	//       "type": "boolean"
18777	//     }
18778	//   },
18779	//   "path": "v1alpha1/{+parent}/routes",
18780	//   "response": {
18781	//     "$ref": "ListRoutesResponse"
18782	//   },
18783	//   "scopes": [
18784	//     "https://www.googleapis.com/auth/cloud-platform"
18785	//   ]
18786	// }
18787
18788}
18789
18790// method id "run.projects.locations.services.create":
18791
18792type ProjectsLocationsServicesCreateCall struct {
18793	s          *APIService
18794	parent     string
18795	service    *Service
18796	urlParams_ gensupport.URLParams
18797	ctx_       context.Context
18798	header_    http.Header
18799}
18800
18801// Create: Rpc to create a service.
18802func (r *ProjectsLocationsServicesService) Create(parent string, service *Service) *ProjectsLocationsServicesCreateCall {
18803	c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18804	c.parent = parent
18805	c.service = service
18806	return c
18807}
18808
18809// Fields allows partial responses to be retrieved. See
18810// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18811// for more information.
18812func (c *ProjectsLocationsServicesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesCreateCall {
18813	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18814	return c
18815}
18816
18817// Context sets the context to be used in this call's Do method. Any
18818// pending HTTP request will be aborted if the provided context is
18819// canceled.
18820func (c *ProjectsLocationsServicesCreateCall) Context(ctx context.Context) *ProjectsLocationsServicesCreateCall {
18821	c.ctx_ = ctx
18822	return c
18823}
18824
18825// Header returns an http.Header that can be modified by the caller to
18826// add HTTP headers to the request.
18827func (c *ProjectsLocationsServicesCreateCall) Header() http.Header {
18828	if c.header_ == nil {
18829		c.header_ = make(http.Header)
18830	}
18831	return c.header_
18832}
18833
18834func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Response, error) {
18835	reqHeaders := make(http.Header)
18836	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
18837	for k, v := range c.header_ {
18838		reqHeaders[k] = v
18839	}
18840	reqHeaders.Set("User-Agent", c.s.userAgent())
18841	var body io.Reader = nil
18842	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
18843	if err != nil {
18844		return nil, err
18845	}
18846	reqHeaders.Set("Content-Type", "application/json")
18847	c.urlParams_.Set("alt", alt)
18848	c.urlParams_.Set("prettyPrint", "false")
18849	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/services")
18850	urls += "?" + c.urlParams_.Encode()
18851	req, err := http.NewRequest("POST", urls, body)
18852	if err != nil {
18853		return nil, err
18854	}
18855	req.Header = reqHeaders
18856	googleapi.Expand(req.URL, map[string]string{
18857		"parent": c.parent,
18858	})
18859	return gensupport.SendRequest(c.ctx_, c.s.client, req)
18860}
18861
18862// Do executes the "run.projects.locations.services.create" call.
18863// Exactly one of *Service or error will be non-nil. Any non-2xx status
18864// code is an error. Response headers are in either
18865// *Service.ServerResponse.Header or (if a response was returned at all)
18866// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
18867// check whether the returned error was because http.StatusNotModified
18868// was returned.
18869func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) (*Service, error) {
18870	gensupport.SetOptions(c.urlParams_, opts...)
18871	res, err := c.doRequest("json")
18872	if res != nil && res.StatusCode == http.StatusNotModified {
18873		if res.Body != nil {
18874			res.Body.Close()
18875		}
18876		return nil, &googleapi.Error{
18877			Code:   res.StatusCode,
18878			Header: res.Header,
18879		}
18880	}
18881	if err != nil {
18882		return nil, err
18883	}
18884	defer googleapi.CloseBody(res)
18885	if err := googleapi.CheckResponse(res); err != nil {
18886		return nil, err
18887	}
18888	ret := &Service{
18889		ServerResponse: googleapi.ServerResponse{
18890			Header:         res.Header,
18891			HTTPStatusCode: res.StatusCode,
18892		},
18893	}
18894	target := &ret
18895	if err := gensupport.DecodeResponse(target, res); err != nil {
18896		return nil, err
18897	}
18898	return ret, nil
18899	// {
18900	//   "description": "Rpc to create a service.",
18901	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services",
18902	//   "httpMethod": "POST",
18903	//   "id": "run.projects.locations.services.create",
18904	//   "parameterOrder": [
18905	//     "parent"
18906	//   ],
18907	//   "parameters": {
18908	//     "parent": {
18909	//       "description": "The project ID or project number in which this service should be created.",
18910	//       "location": "path",
18911	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
18912	//       "required": true,
18913	//       "type": "string"
18914	//     }
18915	//   },
18916	//   "path": "v1alpha1/{+parent}/services",
18917	//   "request": {
18918	//     "$ref": "Service"
18919	//   },
18920	//   "response": {
18921	//     "$ref": "Service"
18922	//   },
18923	//   "scopes": [
18924	//     "https://www.googleapis.com/auth/cloud-platform"
18925	//   ]
18926	// }
18927
18928}
18929
18930// method id "run.projects.locations.services.delete":
18931
18932type ProjectsLocationsServicesDeleteCall struct {
18933	s          *APIService
18934	name       string
18935	urlParams_ gensupport.URLParams
18936	ctx_       context.Context
18937	header_    http.Header
18938}
18939
18940// Delete: Rpc to delete a service.
18941// This will cause the Service to stop serving traffic and will delete
18942// the
18943// child entities like Routes, Configurations and Revisions.
18944func (r *ProjectsLocationsServicesService) Delete(name string) *ProjectsLocationsServicesDeleteCall {
18945	c := &ProjectsLocationsServicesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18946	c.name = name
18947	return c
18948}
18949
18950// ApiVersion sets the optional parameter "apiVersion": Cloud Run
18951// currently ignores this parameter.
18952func (c *ProjectsLocationsServicesDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsServicesDeleteCall {
18953	c.urlParams_.Set("apiVersion", apiVersion)
18954	return c
18955}
18956
18957// Kind sets the optional parameter "kind": Cloud Run currently ignores
18958// this parameter.
18959func (c *ProjectsLocationsServicesDeleteCall) Kind(kind string) *ProjectsLocationsServicesDeleteCall {
18960	c.urlParams_.Set("kind", kind)
18961	return c
18962}
18963
18964// OrphanDependents sets the optional parameter "orphanDependents":
18965// Deprecated.
18966// Specifies the cascade behavior on delete.
18967// Cloud Run only supports cascading behavior, so this must be
18968// false.
18969// This attribute is deprecated, and is now replaced with
18970// PropagationPolicy
18971// See https://github.com/kubernetes/kubernetes/issues/46659 for more
18972// info.
18973func (c *ProjectsLocationsServicesDeleteCall) OrphanDependents(orphanDependents bool) *ProjectsLocationsServicesDeleteCall {
18974	c.urlParams_.Set("orphanDependents", fmt.Sprint(orphanDependents))
18975	return c
18976}
18977
18978// PropagationPolicy sets the optional parameter "propagationPolicy":
18979// Specifies the propagation policy of delete. Cloud Run currently
18980// ignores
18981// this setting, and deletes in the background. Please
18982// see
18983// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
18984// on/ for
18985// more information.
18986func (c *ProjectsLocationsServicesDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsServicesDeleteCall {
18987	c.urlParams_.Set("propagationPolicy", propagationPolicy)
18988	return c
18989}
18990
18991// Fields allows partial responses to be retrieved. See
18992// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
18993// for more information.
18994func (c *ProjectsLocationsServicesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesDeleteCall {
18995	c.urlParams_.Set("fields", googleapi.CombineFields(s))
18996	return c
18997}
18998
18999// Context sets the context to be used in this call's Do method. Any
19000// pending HTTP request will be aborted if the provided context is
19001// canceled.
19002func (c *ProjectsLocationsServicesDeleteCall) Context(ctx context.Context) *ProjectsLocationsServicesDeleteCall {
19003	c.ctx_ = ctx
19004	return c
19005}
19006
19007// Header returns an http.Header that can be modified by the caller to
19008// add HTTP headers to the request.
19009func (c *ProjectsLocationsServicesDeleteCall) Header() http.Header {
19010	if c.header_ == nil {
19011		c.header_ = make(http.Header)
19012	}
19013	return c.header_
19014}
19015
19016func (c *ProjectsLocationsServicesDeleteCall) doRequest(alt string) (*http.Response, error) {
19017	reqHeaders := make(http.Header)
19018	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19019	for k, v := range c.header_ {
19020		reqHeaders[k] = v
19021	}
19022	reqHeaders.Set("User-Agent", c.s.userAgent())
19023	var body io.Reader = nil
19024	c.urlParams_.Set("alt", alt)
19025	c.urlParams_.Set("prettyPrint", "false")
19026	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
19027	urls += "?" + c.urlParams_.Encode()
19028	req, err := http.NewRequest("DELETE", urls, body)
19029	if err != nil {
19030		return nil, err
19031	}
19032	req.Header = reqHeaders
19033	googleapi.Expand(req.URL, map[string]string{
19034		"name": c.name,
19035	})
19036	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19037}
19038
19039// Do executes the "run.projects.locations.services.delete" call.
19040// Exactly one of *Empty or error will be non-nil. Any non-2xx status
19041// code is an error. Response headers are in either
19042// *Empty.ServerResponse.Header or (if a response was returned at all)
19043// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
19044// check whether the returned error was because http.StatusNotModified
19045// was returned.
19046func (c *ProjectsLocationsServicesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
19047	gensupport.SetOptions(c.urlParams_, opts...)
19048	res, err := c.doRequest("json")
19049	if res != nil && res.StatusCode == http.StatusNotModified {
19050		if res.Body != nil {
19051			res.Body.Close()
19052		}
19053		return nil, &googleapi.Error{
19054			Code:   res.StatusCode,
19055			Header: res.Header,
19056		}
19057	}
19058	if err != nil {
19059		return nil, err
19060	}
19061	defer googleapi.CloseBody(res)
19062	if err := googleapi.CheckResponse(res); err != nil {
19063		return nil, err
19064	}
19065	ret := &Empty{
19066		ServerResponse: googleapi.ServerResponse{
19067			Header:         res.Header,
19068			HTTPStatusCode: res.StatusCode,
19069		},
19070	}
19071	target := &ret
19072	if err := gensupport.DecodeResponse(target, res); err != nil {
19073		return nil, err
19074	}
19075	return ret, nil
19076	// {
19077	//   "description": "Rpc to delete a service.\nThis will cause the Service to stop serving traffic and will delete the\nchild entities like Routes, Configurations and Revisions.",
19078	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
19079	//   "httpMethod": "DELETE",
19080	//   "id": "run.projects.locations.services.delete",
19081	//   "parameterOrder": [
19082	//     "name"
19083	//   ],
19084	//   "parameters": {
19085	//     "apiVersion": {
19086	//       "description": "Cloud Run currently ignores this parameter.",
19087	//       "location": "query",
19088	//       "type": "string"
19089	//     },
19090	//     "kind": {
19091	//       "description": "Cloud Run currently ignores this parameter.",
19092	//       "location": "query",
19093	//       "type": "string"
19094	//     },
19095	//     "name": {
19096	//       "description": "The name of the service being deleted. If needed, replace\n{namespace_id} with the project ID.",
19097	//       "location": "path",
19098	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
19099	//       "required": true,
19100	//       "type": "string"
19101	//     },
19102	//     "orphanDependents": {
19103	//       "description": "Deprecated.\nSpecifies the cascade behavior on delete.\nCloud Run only supports cascading behavior, so this must be false.\nThis attribute is deprecated, and is now replaced with PropagationPolicy\nSee https://github.com/kubernetes/kubernetes/issues/46659 for more info.",
19104	//       "location": "query",
19105	//       "type": "boolean"
19106	//     },
19107	//     "propagationPolicy": {
19108	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
19109	//       "location": "query",
19110	//       "type": "string"
19111	//     }
19112	//   },
19113	//   "path": "v1alpha1/{+name}",
19114	//   "response": {
19115	//     "$ref": "Empty"
19116	//   },
19117	//   "scopes": [
19118	//     "https://www.googleapis.com/auth/cloud-platform"
19119	//   ]
19120	// }
19121
19122}
19123
19124// method id "run.projects.locations.services.get":
19125
19126type ProjectsLocationsServicesGetCall struct {
19127	s            *APIService
19128	name         string
19129	urlParams_   gensupport.URLParams
19130	ifNoneMatch_ string
19131	ctx_         context.Context
19132	header_      http.Header
19133}
19134
19135// Get: Rpc to get information about a service.
19136func (r *ProjectsLocationsServicesService) Get(name string) *ProjectsLocationsServicesGetCall {
19137	c := &ProjectsLocationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19138	c.name = name
19139	return c
19140}
19141
19142// Fields allows partial responses to be retrieved. See
19143// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19144// for more information.
19145func (c *ProjectsLocationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetCall {
19146	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19147	return c
19148}
19149
19150// IfNoneMatch sets the optional parameter which makes the operation
19151// fail if the object's ETag matches the given value. This is useful for
19152// getting updates only after the object has changed since the last
19153// request. Use googleapi.IsNotModified to check whether the response
19154// error from Do is the result of In-None-Match.
19155func (c *ProjectsLocationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetCall {
19156	c.ifNoneMatch_ = entityTag
19157	return c
19158}
19159
19160// Context sets the context to be used in this call's Do method. Any
19161// pending HTTP request will be aborted if the provided context is
19162// canceled.
19163func (c *ProjectsLocationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsServicesGetCall {
19164	c.ctx_ = ctx
19165	return c
19166}
19167
19168// Header returns an http.Header that can be modified by the caller to
19169// add HTTP headers to the request.
19170func (c *ProjectsLocationsServicesGetCall) Header() http.Header {
19171	if c.header_ == nil {
19172		c.header_ = make(http.Header)
19173	}
19174	return c.header_
19175}
19176
19177func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response, error) {
19178	reqHeaders := make(http.Header)
19179	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19180	for k, v := range c.header_ {
19181		reqHeaders[k] = v
19182	}
19183	reqHeaders.Set("User-Agent", c.s.userAgent())
19184	if c.ifNoneMatch_ != "" {
19185		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19186	}
19187	var body io.Reader = nil
19188	c.urlParams_.Set("alt", alt)
19189	c.urlParams_.Set("prettyPrint", "false")
19190	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
19191	urls += "?" + c.urlParams_.Encode()
19192	req, err := http.NewRequest("GET", urls, body)
19193	if err != nil {
19194		return nil, err
19195	}
19196	req.Header = reqHeaders
19197	googleapi.Expand(req.URL, map[string]string{
19198		"name": c.name,
19199	})
19200	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19201}
19202
19203// Do executes the "run.projects.locations.services.get" call.
19204// Exactly one of *Service or error will be non-nil. Any non-2xx status
19205// code is an error. Response headers are in either
19206// *Service.ServerResponse.Header or (if a response was returned at all)
19207// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
19208// check whether the returned error was because http.StatusNotModified
19209// was returned.
19210func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, error) {
19211	gensupport.SetOptions(c.urlParams_, opts...)
19212	res, err := c.doRequest("json")
19213	if res != nil && res.StatusCode == http.StatusNotModified {
19214		if res.Body != nil {
19215			res.Body.Close()
19216		}
19217		return nil, &googleapi.Error{
19218			Code:   res.StatusCode,
19219			Header: res.Header,
19220		}
19221	}
19222	if err != nil {
19223		return nil, err
19224	}
19225	defer googleapi.CloseBody(res)
19226	if err := googleapi.CheckResponse(res); err != nil {
19227		return nil, err
19228	}
19229	ret := &Service{
19230		ServerResponse: googleapi.ServerResponse{
19231			Header:         res.Header,
19232			HTTPStatusCode: res.StatusCode,
19233		},
19234	}
19235	target := &ret
19236	if err := gensupport.DecodeResponse(target, res); err != nil {
19237		return nil, err
19238	}
19239	return ret, nil
19240	// {
19241	//   "description": "Rpc to get information about a service.",
19242	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
19243	//   "httpMethod": "GET",
19244	//   "id": "run.projects.locations.services.get",
19245	//   "parameterOrder": [
19246	//     "name"
19247	//   ],
19248	//   "parameters": {
19249	//     "name": {
19250	//       "description": "The name of the service being retrieved. If needed, replace\n{namespace_id} with the project ID.",
19251	//       "location": "path",
19252	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
19253	//       "required": true,
19254	//       "type": "string"
19255	//     }
19256	//   },
19257	//   "path": "v1alpha1/{+name}",
19258	//   "response": {
19259	//     "$ref": "Service"
19260	//   },
19261	//   "scopes": [
19262	//     "https://www.googleapis.com/auth/cloud-platform"
19263	//   ]
19264	// }
19265
19266}
19267
19268// method id "run.projects.locations.services.getIamPolicy":
19269
19270type ProjectsLocationsServicesGetIamPolicyCall struct {
19271	s            *APIService
19272	resource     string
19273	urlParams_   gensupport.URLParams
19274	ifNoneMatch_ string
19275	ctx_         context.Context
19276	header_      http.Header
19277}
19278
19279// GetIamPolicy: Get the IAM Access Control policy currently in effect
19280// for the given
19281// Cloud Run service. This result does not include any inherited
19282// policies.
19283func (r *ProjectsLocationsServicesService) GetIamPolicy(resource string) *ProjectsLocationsServicesGetIamPolicyCall {
19284	c := &ProjectsLocationsServicesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19285	c.resource = resource
19286	return c
19287}
19288
19289// OptionsRequestedPolicyVersion sets the optional parameter
19290// "options.requestedPolicyVersion": The policy format version to be
19291// returned.
19292//
19293// Valid values are 0, 1, and 3. Requests specifying an invalid value
19294// will be
19295// rejected.
19296//
19297// Requests for policies with any conditional bindings must specify
19298// version 3.
19299// Policies without any conditional bindings may specify any valid value
19300// or
19301// leave the field unset.
19302func (c *ProjectsLocationsServicesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServicesGetIamPolicyCall {
19303	c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion))
19304	return c
19305}
19306
19307// Fields allows partial responses to be retrieved. See
19308// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19309// for more information.
19310func (c *ProjectsLocationsServicesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesGetIamPolicyCall {
19311	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19312	return c
19313}
19314
19315// IfNoneMatch sets the optional parameter which makes the operation
19316// fail if the object's ETag matches the given value. This is useful for
19317// getting updates only after the object has changed since the last
19318// request. Use googleapi.IsNotModified to check whether the response
19319// error from Do is the result of In-None-Match.
19320func (c *ProjectsLocationsServicesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesGetIamPolicyCall {
19321	c.ifNoneMatch_ = entityTag
19322	return c
19323}
19324
19325// Context sets the context to be used in this call's Do method. Any
19326// pending HTTP request will be aborted if the provided context is
19327// canceled.
19328func (c *ProjectsLocationsServicesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesGetIamPolicyCall {
19329	c.ctx_ = ctx
19330	return c
19331}
19332
19333// Header returns an http.Header that can be modified by the caller to
19334// add HTTP headers to the request.
19335func (c *ProjectsLocationsServicesGetIamPolicyCall) Header() http.Header {
19336	if c.header_ == nil {
19337		c.header_ = make(http.Header)
19338	}
19339	return c.header_
19340}
19341
19342func (c *ProjectsLocationsServicesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19343	reqHeaders := make(http.Header)
19344	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19345	for k, v := range c.header_ {
19346		reqHeaders[k] = v
19347	}
19348	reqHeaders.Set("User-Agent", c.s.userAgent())
19349	if c.ifNoneMatch_ != "" {
19350		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19351	}
19352	var body io.Reader = nil
19353	c.urlParams_.Set("alt", alt)
19354	c.urlParams_.Set("prettyPrint", "false")
19355	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:getIamPolicy")
19356	urls += "?" + c.urlParams_.Encode()
19357	req, err := http.NewRequest("GET", urls, body)
19358	if err != nil {
19359		return nil, err
19360	}
19361	req.Header = reqHeaders
19362	googleapi.Expand(req.URL, map[string]string{
19363		"resource": c.resource,
19364	})
19365	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19366}
19367
19368// Do executes the "run.projects.locations.services.getIamPolicy" call.
19369// Exactly one of *Policy or error will be non-nil. Any non-2xx status
19370// code is an error. Response headers are in either
19371// *Policy.ServerResponse.Header or (if a response was returned at all)
19372// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
19373// check whether the returned error was because http.StatusNotModified
19374// was returned.
19375func (c *ProjectsLocationsServicesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
19376	gensupport.SetOptions(c.urlParams_, opts...)
19377	res, err := c.doRequest("json")
19378	if res != nil && res.StatusCode == http.StatusNotModified {
19379		if res.Body != nil {
19380			res.Body.Close()
19381		}
19382		return nil, &googleapi.Error{
19383			Code:   res.StatusCode,
19384			Header: res.Header,
19385		}
19386	}
19387	if err != nil {
19388		return nil, err
19389	}
19390	defer googleapi.CloseBody(res)
19391	if err := googleapi.CheckResponse(res); err != nil {
19392		return nil, err
19393	}
19394	ret := &Policy{
19395		ServerResponse: googleapi.ServerResponse{
19396			Header:         res.Header,
19397			HTTPStatusCode: res.StatusCode,
19398		},
19399	}
19400	target := &ret
19401	if err := gensupport.DecodeResponse(target, res); err != nil {
19402		return nil, err
19403	}
19404	return ret, nil
19405	// {
19406	//   "description": "Get the IAM Access Control policy currently in effect for the given\nCloud Run service. This result does not include any inherited policies.",
19407	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:getIamPolicy",
19408	//   "httpMethod": "GET",
19409	//   "id": "run.projects.locations.services.getIamPolicy",
19410	//   "parameterOrder": [
19411	//     "resource"
19412	//   ],
19413	//   "parameters": {
19414	//     "options.requestedPolicyVersion": {
19415	//       "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.",
19416	//       "format": "int32",
19417	//       "location": "query",
19418	//       "type": "integer"
19419	//     },
19420	//     "resource": {
19421	//       "description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
19422	//       "location": "path",
19423	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
19424	//       "required": true,
19425	//       "type": "string"
19426	//     }
19427	//   },
19428	//   "path": "v1alpha1/{+resource}:getIamPolicy",
19429	//   "response": {
19430	//     "$ref": "Policy"
19431	//   },
19432	//   "scopes": [
19433	//     "https://www.googleapis.com/auth/cloud-platform"
19434	//   ]
19435	// }
19436
19437}
19438
19439// method id "run.projects.locations.services.list":
19440
19441type ProjectsLocationsServicesListCall struct {
19442	s            *APIService
19443	parent       string
19444	urlParams_   gensupport.URLParams
19445	ifNoneMatch_ string
19446	ctx_         context.Context
19447	header_      http.Header
19448}
19449
19450// List: Rpc to list services.
19451func (r *ProjectsLocationsServicesService) List(parent string) *ProjectsLocationsServicesListCall {
19452	c := &ProjectsLocationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19453	c.parent = parent
19454	return c
19455}
19456
19457// Continue sets the optional parameter "continue": Optional encoded
19458// string to continue paging.
19459func (c *ProjectsLocationsServicesListCall) Continue(continue_ string) *ProjectsLocationsServicesListCall {
19460	c.urlParams_.Set("continue", continue_)
19461	return c
19462}
19463
19464// FieldSelector sets the optional parameter "fieldSelector": Allows to
19465// filter resources based on a specific value for a field name.
19466// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
19467// Not currently used by Cloud Run.
19468func (c *ProjectsLocationsServicesListCall) FieldSelector(fieldSelector string) *ProjectsLocationsServicesListCall {
19469	c.urlParams_.Set("fieldSelector", fieldSelector)
19470	return c
19471}
19472
19473// IncludeUninitialized sets the optional parameter
19474// "includeUninitialized": Not currently used by Cloud Run.
19475func (c *ProjectsLocationsServicesListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsServicesListCall {
19476	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
19477	return c
19478}
19479
19480// LabelSelector sets the optional parameter "labelSelector": Allows to
19481// filter resources based on a label. Supported operations are
19482// =, !=, exists, in, and notIn.
19483func (c *ProjectsLocationsServicesListCall) LabelSelector(labelSelector string) *ProjectsLocationsServicesListCall {
19484	c.urlParams_.Set("labelSelector", labelSelector)
19485	return c
19486}
19487
19488// Limit sets the optional parameter "limit": The maximum number of
19489// records that should be returned.
19490func (c *ProjectsLocationsServicesListCall) Limit(limit int64) *ProjectsLocationsServicesListCall {
19491	c.urlParams_.Set("limit", fmt.Sprint(limit))
19492	return c
19493}
19494
19495// ResourceVersion sets the optional parameter "resourceVersion": The
19496// baseline resource version from which the list or watch operation
19497// should
19498// start. Not currently used by Cloud Run.
19499func (c *ProjectsLocationsServicesListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsServicesListCall {
19500	c.urlParams_.Set("resourceVersion", resourceVersion)
19501	return c
19502}
19503
19504// Watch sets the optional parameter "watch": Flag that indicates that
19505// the client expects to watch this resource as well.
19506// Not currently used by Cloud Run.
19507func (c *ProjectsLocationsServicesListCall) Watch(watch bool) *ProjectsLocationsServicesListCall {
19508	c.urlParams_.Set("watch", fmt.Sprint(watch))
19509	return c
19510}
19511
19512// Fields allows partial responses to be retrieved. See
19513// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19514// for more information.
19515func (c *ProjectsLocationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesListCall {
19516	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19517	return c
19518}
19519
19520// IfNoneMatch sets the optional parameter which makes the operation
19521// fail if the object's ETag matches the given value. This is useful for
19522// getting updates only after the object has changed since the last
19523// request. Use googleapi.IsNotModified to check whether the response
19524// error from Do is the result of In-None-Match.
19525func (c *ProjectsLocationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsServicesListCall {
19526	c.ifNoneMatch_ = entityTag
19527	return c
19528}
19529
19530// Context sets the context to be used in this call's Do method. Any
19531// pending HTTP request will be aborted if the provided context is
19532// canceled.
19533func (c *ProjectsLocationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsServicesListCall {
19534	c.ctx_ = ctx
19535	return c
19536}
19537
19538// Header returns an http.Header that can be modified by the caller to
19539// add HTTP headers to the request.
19540func (c *ProjectsLocationsServicesListCall) Header() http.Header {
19541	if c.header_ == nil {
19542		c.header_ = make(http.Header)
19543	}
19544	return c.header_
19545}
19546
19547func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Response, error) {
19548	reqHeaders := make(http.Header)
19549	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19550	for k, v := range c.header_ {
19551		reqHeaders[k] = v
19552	}
19553	reqHeaders.Set("User-Agent", c.s.userAgent())
19554	if c.ifNoneMatch_ != "" {
19555		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19556	}
19557	var body io.Reader = nil
19558	c.urlParams_.Set("alt", alt)
19559	c.urlParams_.Set("prettyPrint", "false")
19560	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/services")
19561	urls += "?" + c.urlParams_.Encode()
19562	req, err := http.NewRequest("GET", urls, body)
19563	if err != nil {
19564		return nil, err
19565	}
19566	req.Header = reqHeaders
19567	googleapi.Expand(req.URL, map[string]string{
19568		"parent": c.parent,
19569	})
19570	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19571}
19572
19573// Do executes the "run.projects.locations.services.list" call.
19574// Exactly one of *ListServicesResponse or error will be non-nil. Any
19575// non-2xx status code is an error. Response headers are in either
19576// *ListServicesResponse.ServerResponse.Header or (if a response was
19577// returned at all) in error.(*googleapi.Error).Header. Use
19578// googleapi.IsNotModified to check whether the returned error was
19579// because http.StatusNotModified was returned.
19580func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, error) {
19581	gensupport.SetOptions(c.urlParams_, opts...)
19582	res, err := c.doRequest("json")
19583	if res != nil && res.StatusCode == http.StatusNotModified {
19584		if res.Body != nil {
19585			res.Body.Close()
19586		}
19587		return nil, &googleapi.Error{
19588			Code:   res.StatusCode,
19589			Header: res.Header,
19590		}
19591	}
19592	if err != nil {
19593		return nil, err
19594	}
19595	defer googleapi.CloseBody(res)
19596	if err := googleapi.CheckResponse(res); err != nil {
19597		return nil, err
19598	}
19599	ret := &ListServicesResponse{
19600		ServerResponse: googleapi.ServerResponse{
19601			Header:         res.Header,
19602			HTTPStatusCode: res.StatusCode,
19603		},
19604	}
19605	target := &ret
19606	if err := gensupport.DecodeResponse(target, res); err != nil {
19607		return nil, err
19608	}
19609	return ret, nil
19610	// {
19611	//   "description": "Rpc to list services.",
19612	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services",
19613	//   "httpMethod": "GET",
19614	//   "id": "run.projects.locations.services.list",
19615	//   "parameterOrder": [
19616	//     "parent"
19617	//   ],
19618	//   "parameters": {
19619	//     "continue": {
19620	//       "description": "Optional encoded string to continue paging.",
19621	//       "location": "query",
19622	//       "type": "string"
19623	//     },
19624	//     "fieldSelector": {
19625	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
19626	//       "location": "query",
19627	//       "type": "string"
19628	//     },
19629	//     "includeUninitialized": {
19630	//       "description": "Not currently used by Cloud Run.",
19631	//       "location": "query",
19632	//       "type": "boolean"
19633	//     },
19634	//     "labelSelector": {
19635	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
19636	//       "location": "query",
19637	//       "type": "string"
19638	//     },
19639	//     "limit": {
19640	//       "description": "The maximum number of records that should be returned.",
19641	//       "format": "int32",
19642	//       "location": "query",
19643	//       "type": "integer"
19644	//     },
19645	//     "parent": {
19646	//       "description": "The project ID or project number from which the services should be listed.",
19647	//       "location": "path",
19648	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
19649	//       "required": true,
19650	//       "type": "string"
19651	//     },
19652	//     "resourceVersion": {
19653	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
19654	//       "location": "query",
19655	//       "type": "string"
19656	//     },
19657	//     "watch": {
19658	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
19659	//       "location": "query",
19660	//       "type": "boolean"
19661	//     }
19662	//   },
19663	//   "path": "v1alpha1/{+parent}/services",
19664	//   "response": {
19665	//     "$ref": "ListServicesResponse"
19666	//   },
19667	//   "scopes": [
19668	//     "https://www.googleapis.com/auth/cloud-platform"
19669	//   ]
19670	// }
19671
19672}
19673
19674// method id "run.projects.locations.services.replaceService":
19675
19676type ProjectsLocationsServicesReplaceServiceCall struct {
19677	s          *APIService
19678	name       string
19679	service    *Service
19680	urlParams_ gensupport.URLParams
19681	ctx_       context.Context
19682	header_    http.Header
19683}
19684
19685// ReplaceService: Rpc to replace a service.
19686//
19687// Only the spec and metadata labels and annotations are modifiable.
19688// After
19689// the Update request, Cloud Run will work to make the 'status'
19690// match the requested 'spec'.
19691//
19692// May provide metadata.resourceVersion to enforce update from last read
19693// for
19694// optimistic concurrency control.
19695func (r *ProjectsLocationsServicesService) ReplaceService(name string, service *Service) *ProjectsLocationsServicesReplaceServiceCall {
19696	c := &ProjectsLocationsServicesReplaceServiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19697	c.name = name
19698	c.service = service
19699	return c
19700}
19701
19702// Fields allows partial responses to be retrieved. See
19703// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19704// for more information.
19705func (c *ProjectsLocationsServicesReplaceServiceCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesReplaceServiceCall {
19706	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19707	return c
19708}
19709
19710// Context sets the context to be used in this call's Do method. Any
19711// pending HTTP request will be aborted if the provided context is
19712// canceled.
19713func (c *ProjectsLocationsServicesReplaceServiceCall) Context(ctx context.Context) *ProjectsLocationsServicesReplaceServiceCall {
19714	c.ctx_ = ctx
19715	return c
19716}
19717
19718// Header returns an http.Header that can be modified by the caller to
19719// add HTTP headers to the request.
19720func (c *ProjectsLocationsServicesReplaceServiceCall) Header() http.Header {
19721	if c.header_ == nil {
19722		c.header_ = make(http.Header)
19723	}
19724	return c.header_
19725}
19726
19727func (c *ProjectsLocationsServicesReplaceServiceCall) doRequest(alt string) (*http.Response, error) {
19728	reqHeaders := make(http.Header)
19729	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19730	for k, v := range c.header_ {
19731		reqHeaders[k] = v
19732	}
19733	reqHeaders.Set("User-Agent", c.s.userAgent())
19734	var body io.Reader = nil
19735	body, err := googleapi.WithoutDataWrapper.JSONReader(c.service)
19736	if err != nil {
19737		return nil, err
19738	}
19739	reqHeaders.Set("Content-Type", "application/json")
19740	c.urlParams_.Set("alt", alt)
19741	c.urlParams_.Set("prettyPrint", "false")
19742	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
19743	urls += "?" + c.urlParams_.Encode()
19744	req, err := http.NewRequest("PUT", urls, body)
19745	if err != nil {
19746		return nil, err
19747	}
19748	req.Header = reqHeaders
19749	googleapi.Expand(req.URL, map[string]string{
19750		"name": c.name,
19751	})
19752	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19753}
19754
19755// Do executes the "run.projects.locations.services.replaceService" call.
19756// Exactly one of *Service or error will be non-nil. Any non-2xx status
19757// code is an error. Response headers are in either
19758// *Service.ServerResponse.Header or (if a response was returned at all)
19759// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
19760// check whether the returned error was because http.StatusNotModified
19761// was returned.
19762func (c *ProjectsLocationsServicesReplaceServiceCall) Do(opts ...googleapi.CallOption) (*Service, error) {
19763	gensupport.SetOptions(c.urlParams_, opts...)
19764	res, err := c.doRequest("json")
19765	if res != nil && res.StatusCode == http.StatusNotModified {
19766		if res.Body != nil {
19767			res.Body.Close()
19768		}
19769		return nil, &googleapi.Error{
19770			Code:   res.StatusCode,
19771			Header: res.Header,
19772		}
19773	}
19774	if err != nil {
19775		return nil, err
19776	}
19777	defer googleapi.CloseBody(res)
19778	if err := googleapi.CheckResponse(res); err != nil {
19779		return nil, err
19780	}
19781	ret := &Service{
19782		ServerResponse: googleapi.ServerResponse{
19783			Header:         res.Header,
19784			HTTPStatusCode: res.StatusCode,
19785		},
19786	}
19787	target := &ret
19788	if err := gensupport.DecodeResponse(target, res); err != nil {
19789		return nil, err
19790	}
19791	return ret, nil
19792	// {
19793	//   "description": "Rpc to replace a service.\n\nOnly the spec and metadata labels and annotations are modifiable. After\nthe Update request, Cloud Run will work to make the 'status'\nmatch the requested 'spec'.\n\nMay provide metadata.resourceVersion to enforce update from last read for\noptimistic concurrency control.",
19794	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}",
19795	//   "httpMethod": "PUT",
19796	//   "id": "run.projects.locations.services.replaceService",
19797	//   "parameterOrder": [
19798	//     "name"
19799	//   ],
19800	//   "parameters": {
19801	//     "name": {
19802	//       "description": "The name of the service being replaced. If needed, replace\n{namespace_id} with the project ID.",
19803	//       "location": "path",
19804	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
19805	//       "required": true,
19806	//       "type": "string"
19807	//     }
19808	//   },
19809	//   "path": "v1alpha1/{+name}",
19810	//   "request": {
19811	//     "$ref": "Service"
19812	//   },
19813	//   "response": {
19814	//     "$ref": "Service"
19815	//   },
19816	//   "scopes": [
19817	//     "https://www.googleapis.com/auth/cloud-platform"
19818	//   ]
19819	// }
19820
19821}
19822
19823// method id "run.projects.locations.services.setIamPolicy":
19824
19825type ProjectsLocationsServicesSetIamPolicyCall struct {
19826	s                   *APIService
19827	resource            string
19828	setiampolicyrequest *SetIamPolicyRequest
19829	urlParams_          gensupport.URLParams
19830	ctx_                context.Context
19831	header_             http.Header
19832}
19833
19834// SetIamPolicy: Sets the IAM Access control policy for the specified
19835// Service. Overwrites
19836// any existing policy.
19837func (r *ProjectsLocationsServicesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServicesSetIamPolicyCall {
19838	c := &ProjectsLocationsServicesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19839	c.resource = resource
19840	c.setiampolicyrequest = setiampolicyrequest
19841	return c
19842}
19843
19844// Fields allows partial responses to be retrieved. See
19845// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19846// for more information.
19847func (c *ProjectsLocationsServicesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesSetIamPolicyCall {
19848	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19849	return c
19850}
19851
19852// Context sets the context to be used in this call's Do method. Any
19853// pending HTTP request will be aborted if the provided context is
19854// canceled.
19855func (c *ProjectsLocationsServicesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServicesSetIamPolicyCall {
19856	c.ctx_ = ctx
19857	return c
19858}
19859
19860// Header returns an http.Header that can be modified by the caller to
19861// add HTTP headers to the request.
19862func (c *ProjectsLocationsServicesSetIamPolicyCall) Header() http.Header {
19863	if c.header_ == nil {
19864		c.header_ = make(http.Header)
19865	}
19866	return c.header_
19867}
19868
19869func (c *ProjectsLocationsServicesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
19870	reqHeaders := make(http.Header)
19871	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
19872	for k, v := range c.header_ {
19873		reqHeaders[k] = v
19874	}
19875	reqHeaders.Set("User-Agent", c.s.userAgent())
19876	var body io.Reader = nil
19877	body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest)
19878	if err != nil {
19879		return nil, err
19880	}
19881	reqHeaders.Set("Content-Type", "application/json")
19882	c.urlParams_.Set("alt", alt)
19883	c.urlParams_.Set("prettyPrint", "false")
19884	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:setIamPolicy")
19885	urls += "?" + c.urlParams_.Encode()
19886	req, err := http.NewRequest("POST", urls, body)
19887	if err != nil {
19888		return nil, err
19889	}
19890	req.Header = reqHeaders
19891	googleapi.Expand(req.URL, map[string]string{
19892		"resource": c.resource,
19893	})
19894	return gensupport.SendRequest(c.ctx_, c.s.client, req)
19895}
19896
19897// Do executes the "run.projects.locations.services.setIamPolicy" call.
19898// Exactly one of *Policy or error will be non-nil. Any non-2xx status
19899// code is an error. Response headers are in either
19900// *Policy.ServerResponse.Header or (if a response was returned at all)
19901// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
19902// check whether the returned error was because http.StatusNotModified
19903// was returned.
19904func (c *ProjectsLocationsServicesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) {
19905	gensupport.SetOptions(c.urlParams_, opts...)
19906	res, err := c.doRequest("json")
19907	if res != nil && res.StatusCode == http.StatusNotModified {
19908		if res.Body != nil {
19909			res.Body.Close()
19910		}
19911		return nil, &googleapi.Error{
19912			Code:   res.StatusCode,
19913			Header: res.Header,
19914		}
19915	}
19916	if err != nil {
19917		return nil, err
19918	}
19919	defer googleapi.CloseBody(res)
19920	if err := googleapi.CheckResponse(res); err != nil {
19921		return nil, err
19922	}
19923	ret := &Policy{
19924		ServerResponse: googleapi.ServerResponse{
19925			Header:         res.Header,
19926			HTTPStatusCode: res.StatusCode,
19927		},
19928	}
19929	target := &ret
19930	if err := gensupport.DecodeResponse(target, res); err != nil {
19931		return nil, err
19932	}
19933	return ret, nil
19934	// {
19935	//   "description": "Sets the IAM Access control policy for the specified Service. Overwrites\nany existing policy.",
19936	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:setIamPolicy",
19937	//   "httpMethod": "POST",
19938	//   "id": "run.projects.locations.services.setIamPolicy",
19939	//   "parameterOrder": [
19940	//     "resource"
19941	//   ],
19942	//   "parameters": {
19943	//     "resource": {
19944	//       "description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
19945	//       "location": "path",
19946	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
19947	//       "required": true,
19948	//       "type": "string"
19949	//     }
19950	//   },
19951	//   "path": "v1alpha1/{+resource}:setIamPolicy",
19952	//   "request": {
19953	//     "$ref": "SetIamPolicyRequest"
19954	//   },
19955	//   "response": {
19956	//     "$ref": "Policy"
19957	//   },
19958	//   "scopes": [
19959	//     "https://www.googleapis.com/auth/cloud-platform"
19960	//   ]
19961	// }
19962
19963}
19964
19965// method id "run.projects.locations.services.testIamPermissions":
19966
19967type ProjectsLocationsServicesTestIamPermissionsCall struct {
19968	s                         *APIService
19969	resource                  string
19970	testiampermissionsrequest *TestIamPermissionsRequest
19971	urlParams_                gensupport.URLParams
19972	ctx_                      context.Context
19973	header_                   http.Header
19974}
19975
19976// TestIamPermissions: Returns permissions that a caller has on the
19977// specified Project.
19978//
19979// There are no permissions required for making this API call.
19980func (r *ProjectsLocationsServicesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServicesTestIamPermissionsCall {
19981	c := &ProjectsLocationsServicesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19982	c.resource = resource
19983	c.testiampermissionsrequest = testiampermissionsrequest
19984	return c
19985}
19986
19987// Fields allows partial responses to be retrieved. See
19988// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
19989// for more information.
19990func (c *ProjectsLocationsServicesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServicesTestIamPermissionsCall {
19991	c.urlParams_.Set("fields", googleapi.CombineFields(s))
19992	return c
19993}
19994
19995// Context sets the context to be used in this call's Do method. Any
19996// pending HTTP request will be aborted if the provided context is
19997// canceled.
19998func (c *ProjectsLocationsServicesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServicesTestIamPermissionsCall {
19999	c.ctx_ = ctx
20000	return c
20001}
20002
20003// Header returns an http.Header that can be modified by the caller to
20004// add HTTP headers to the request.
20005func (c *ProjectsLocationsServicesTestIamPermissionsCall) Header() http.Header {
20006	if c.header_ == nil {
20007		c.header_ = make(http.Header)
20008	}
20009	return c.header_
20010}
20011
20012func (c *ProjectsLocationsServicesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
20013	reqHeaders := make(http.Header)
20014	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
20015	for k, v := range c.header_ {
20016		reqHeaders[k] = v
20017	}
20018	reqHeaders.Set("User-Agent", c.s.userAgent())
20019	var body io.Reader = nil
20020	body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest)
20021	if err != nil {
20022		return nil, err
20023	}
20024	reqHeaders.Set("Content-Type", "application/json")
20025	c.urlParams_.Set("alt", alt)
20026	c.urlParams_.Set("prettyPrint", "false")
20027	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+resource}:testIamPermissions")
20028	urls += "?" + c.urlParams_.Encode()
20029	req, err := http.NewRequest("POST", urls, body)
20030	if err != nil {
20031		return nil, err
20032	}
20033	req.Header = reqHeaders
20034	googleapi.Expand(req.URL, map[string]string{
20035		"resource": c.resource,
20036	})
20037	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20038}
20039
20040// Do executes the "run.projects.locations.services.testIamPermissions" call.
20041// Exactly one of *TestIamPermissionsResponse or error will be non-nil.
20042// Any non-2xx status code is an error. Response headers are in either
20043// *TestIamPermissionsResponse.ServerResponse.Header or (if a response
20044// was returned at all) in error.(*googleapi.Error).Header. Use
20045// googleapi.IsNotModified to check whether the returned error was
20046// because http.StatusNotModified was returned.
20047func (c *ProjectsLocationsServicesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
20048	gensupport.SetOptions(c.urlParams_, opts...)
20049	res, err := c.doRequest("json")
20050	if res != nil && res.StatusCode == http.StatusNotModified {
20051		if res.Body != nil {
20052			res.Body.Close()
20053		}
20054		return nil, &googleapi.Error{
20055			Code:   res.StatusCode,
20056			Header: res.Header,
20057		}
20058	}
20059	if err != nil {
20060		return nil, err
20061	}
20062	defer googleapi.CloseBody(res)
20063	if err := googleapi.CheckResponse(res); err != nil {
20064		return nil, err
20065	}
20066	ret := &TestIamPermissionsResponse{
20067		ServerResponse: googleapi.ServerResponse{
20068			Header:         res.Header,
20069			HTTPStatusCode: res.StatusCode,
20070		},
20071	}
20072	target := &ret
20073	if err := gensupport.DecodeResponse(target, res); err != nil {
20074		return nil, err
20075	}
20076	return ret, nil
20077	// {
20078	//   "description": "Returns permissions that a caller has on the specified Project.\n\nThere are no permissions required for making this API call.",
20079	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:testIamPermissions",
20080	//   "httpMethod": "POST",
20081	//   "id": "run.projects.locations.services.testIamPermissions",
20082	//   "parameterOrder": [
20083	//     "resource"
20084	//   ],
20085	//   "parameters": {
20086	//     "resource": {
20087	//       "description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
20088	//       "location": "path",
20089	//       "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$",
20090	//       "required": true,
20091	//       "type": "string"
20092	//     }
20093	//   },
20094	//   "path": "v1alpha1/{+resource}:testIamPermissions",
20095	//   "request": {
20096	//     "$ref": "TestIamPermissionsRequest"
20097	//   },
20098	//   "response": {
20099	//     "$ref": "TestIamPermissionsResponse"
20100	//   },
20101	//   "scopes": [
20102	//     "https://www.googleapis.com/auth/cloud-platform"
20103	//   ]
20104	// }
20105
20106}
20107
20108// method id "run.projects.locations.triggers.create":
20109
20110type ProjectsLocationsTriggersCreateCall struct {
20111	s          *APIService
20112	parent     string
20113	trigger    *Trigger
20114	urlParams_ gensupport.URLParams
20115	ctx_       context.Context
20116	header_    http.Header
20117}
20118
20119// Create: Creates a new trigger.
20120func (r *ProjectsLocationsTriggersService) Create(parent string, trigger *Trigger) *ProjectsLocationsTriggersCreateCall {
20121	c := &ProjectsLocationsTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20122	c.parent = parent
20123	c.trigger = trigger
20124	return c
20125}
20126
20127// Fields allows partial responses to be retrieved. See
20128// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20129// for more information.
20130func (c *ProjectsLocationsTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersCreateCall {
20131	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20132	return c
20133}
20134
20135// Context sets the context to be used in this call's Do method. Any
20136// pending HTTP request will be aborted if the provided context is
20137// canceled.
20138func (c *ProjectsLocationsTriggersCreateCall) Context(ctx context.Context) *ProjectsLocationsTriggersCreateCall {
20139	c.ctx_ = ctx
20140	return c
20141}
20142
20143// Header returns an http.Header that can be modified by the caller to
20144// add HTTP headers to the request.
20145func (c *ProjectsLocationsTriggersCreateCall) Header() http.Header {
20146	if c.header_ == nil {
20147		c.header_ = make(http.Header)
20148	}
20149	return c.header_
20150}
20151
20152func (c *ProjectsLocationsTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
20153	reqHeaders := make(http.Header)
20154	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
20155	for k, v := range c.header_ {
20156		reqHeaders[k] = v
20157	}
20158	reqHeaders.Set("User-Agent", c.s.userAgent())
20159	var body io.Reader = nil
20160	body, err := googleapi.WithoutDataWrapper.JSONReader(c.trigger)
20161	if err != nil {
20162		return nil, err
20163	}
20164	reqHeaders.Set("Content-Type", "application/json")
20165	c.urlParams_.Set("alt", alt)
20166	c.urlParams_.Set("prettyPrint", "false")
20167	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/triggers")
20168	urls += "?" + c.urlParams_.Encode()
20169	req, err := http.NewRequest("POST", urls, body)
20170	if err != nil {
20171		return nil, err
20172	}
20173	req.Header = reqHeaders
20174	googleapi.Expand(req.URL, map[string]string{
20175		"parent": c.parent,
20176	})
20177	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20178}
20179
20180// Do executes the "run.projects.locations.triggers.create" call.
20181// Exactly one of *Trigger or error will be non-nil. Any non-2xx status
20182// code is an error. Response headers are in either
20183// *Trigger.ServerResponse.Header or (if a response was returned at all)
20184// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
20185// check whether the returned error was because http.StatusNotModified
20186// was returned.
20187func (c *ProjectsLocationsTriggersCreateCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
20188	gensupport.SetOptions(c.urlParams_, opts...)
20189	res, err := c.doRequest("json")
20190	if res != nil && res.StatusCode == http.StatusNotModified {
20191		if res.Body != nil {
20192			res.Body.Close()
20193		}
20194		return nil, &googleapi.Error{
20195			Code:   res.StatusCode,
20196			Header: res.Header,
20197		}
20198	}
20199	if err != nil {
20200		return nil, err
20201	}
20202	defer googleapi.CloseBody(res)
20203	if err := googleapi.CheckResponse(res); err != nil {
20204		return nil, err
20205	}
20206	ret := &Trigger{
20207		ServerResponse: googleapi.ServerResponse{
20208			Header:         res.Header,
20209			HTTPStatusCode: res.StatusCode,
20210		},
20211	}
20212	target := &ret
20213	if err := gensupport.DecodeResponse(target, res); err != nil {
20214		return nil, err
20215	}
20216	return ret, nil
20217	// {
20218	//   "description": "Creates a new trigger.",
20219	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/triggers",
20220	//   "httpMethod": "POST",
20221	//   "id": "run.projects.locations.triggers.create",
20222	//   "parameterOrder": [
20223	//     "parent"
20224	//   ],
20225	//   "parameters": {
20226	//     "parent": {
20227	//       "description": "The project ID or project number in which this trigger should\nbe created.",
20228	//       "location": "path",
20229	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
20230	//       "required": true,
20231	//       "type": "string"
20232	//     }
20233	//   },
20234	//   "path": "v1alpha1/{+parent}/triggers",
20235	//   "request": {
20236	//     "$ref": "Trigger"
20237	//   },
20238	//   "response": {
20239	//     "$ref": "Trigger"
20240	//   },
20241	//   "scopes": [
20242	//     "https://www.googleapis.com/auth/cloud-platform"
20243	//   ]
20244	// }
20245
20246}
20247
20248// method id "run.projects.locations.triggers.delete":
20249
20250type ProjectsLocationsTriggersDeleteCall struct {
20251	s          *APIService
20252	name       string
20253	urlParams_ gensupport.URLParams
20254	ctx_       context.Context
20255	header_    http.Header
20256}
20257
20258// Delete: Rpc to delete a trigger.
20259func (r *ProjectsLocationsTriggersService) Delete(name string) *ProjectsLocationsTriggersDeleteCall {
20260	c := &ProjectsLocationsTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20261	c.name = name
20262	return c
20263}
20264
20265// ApiVersion sets the optional parameter "apiVersion": Cloud Run
20266// currently ignores this parameter.
20267func (c *ProjectsLocationsTriggersDeleteCall) ApiVersion(apiVersion string) *ProjectsLocationsTriggersDeleteCall {
20268	c.urlParams_.Set("apiVersion", apiVersion)
20269	return c
20270}
20271
20272// Kind sets the optional parameter "kind": Cloud Run currently ignores
20273// this parameter.
20274func (c *ProjectsLocationsTriggersDeleteCall) Kind(kind string) *ProjectsLocationsTriggersDeleteCall {
20275	c.urlParams_.Set("kind", kind)
20276	return c
20277}
20278
20279// PropagationPolicy sets the optional parameter "propagationPolicy":
20280// Specifies the propagation policy of delete. Cloud Run currently
20281// ignores
20282// this setting, and deletes in the background. Please
20283// see
20284// kubernetes.io/docs/concepts/workloads/controllers/garbage-collecti
20285// on/ for
20286// more information.
20287func (c *ProjectsLocationsTriggersDeleteCall) PropagationPolicy(propagationPolicy string) *ProjectsLocationsTriggersDeleteCall {
20288	c.urlParams_.Set("propagationPolicy", propagationPolicy)
20289	return c
20290}
20291
20292// Fields allows partial responses to be retrieved. See
20293// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20294// for more information.
20295func (c *ProjectsLocationsTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersDeleteCall {
20296	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20297	return c
20298}
20299
20300// Context sets the context to be used in this call's Do method. Any
20301// pending HTTP request will be aborted if the provided context is
20302// canceled.
20303func (c *ProjectsLocationsTriggersDeleteCall) Context(ctx context.Context) *ProjectsLocationsTriggersDeleteCall {
20304	c.ctx_ = ctx
20305	return c
20306}
20307
20308// Header returns an http.Header that can be modified by the caller to
20309// add HTTP headers to the request.
20310func (c *ProjectsLocationsTriggersDeleteCall) Header() http.Header {
20311	if c.header_ == nil {
20312		c.header_ = make(http.Header)
20313	}
20314	return c.header_
20315}
20316
20317func (c *ProjectsLocationsTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
20318	reqHeaders := make(http.Header)
20319	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
20320	for k, v := range c.header_ {
20321		reqHeaders[k] = v
20322	}
20323	reqHeaders.Set("User-Agent", c.s.userAgent())
20324	var body io.Reader = nil
20325	c.urlParams_.Set("alt", alt)
20326	c.urlParams_.Set("prettyPrint", "false")
20327	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
20328	urls += "?" + c.urlParams_.Encode()
20329	req, err := http.NewRequest("DELETE", urls, body)
20330	if err != nil {
20331		return nil, err
20332	}
20333	req.Header = reqHeaders
20334	googleapi.Expand(req.URL, map[string]string{
20335		"name": c.name,
20336	})
20337	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20338}
20339
20340// Do executes the "run.projects.locations.triggers.delete" call.
20341// Exactly one of *Empty or error will be non-nil. Any non-2xx status
20342// code is an error. Response headers are in either
20343// *Empty.ServerResponse.Header or (if a response was returned at all)
20344// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
20345// check whether the returned error was because http.StatusNotModified
20346// was returned.
20347func (c *ProjectsLocationsTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
20348	gensupport.SetOptions(c.urlParams_, opts...)
20349	res, err := c.doRequest("json")
20350	if res != nil && res.StatusCode == http.StatusNotModified {
20351		if res.Body != nil {
20352			res.Body.Close()
20353		}
20354		return nil, &googleapi.Error{
20355			Code:   res.StatusCode,
20356			Header: res.Header,
20357		}
20358	}
20359	if err != nil {
20360		return nil, err
20361	}
20362	defer googleapi.CloseBody(res)
20363	if err := googleapi.CheckResponse(res); err != nil {
20364		return nil, err
20365	}
20366	ret := &Empty{
20367		ServerResponse: googleapi.ServerResponse{
20368			Header:         res.Header,
20369			HTTPStatusCode: res.StatusCode,
20370		},
20371	}
20372	target := &ret
20373	if err := gensupport.DecodeResponse(target, res); err != nil {
20374		return nil, err
20375	}
20376	return ret, nil
20377	// {
20378	//   "description": "Rpc to delete a trigger.",
20379	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}",
20380	//   "httpMethod": "DELETE",
20381	//   "id": "run.projects.locations.triggers.delete",
20382	//   "parameterOrder": [
20383	//     "name"
20384	//   ],
20385	//   "parameters": {
20386	//     "apiVersion": {
20387	//       "description": "Cloud Run currently ignores this parameter.",
20388	//       "location": "query",
20389	//       "type": "string"
20390	//     },
20391	//     "kind": {
20392	//       "description": "Cloud Run currently ignores this parameter.",
20393	//       "location": "query",
20394	//       "type": "string"
20395	//     },
20396	//     "name": {
20397	//       "description": "The name of the trigger being deleted. If needed, replace\n{namespace_id} with the project ID.",
20398	//       "location": "path",
20399	//       "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$",
20400	//       "required": true,
20401	//       "type": "string"
20402	//     },
20403	//     "propagationPolicy": {
20404	//       "description": "Specifies the propagation policy of delete. Cloud Run currently ignores\nthis setting, and deletes in the background. Please see\nkubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for\nmore information.",
20405	//       "location": "query",
20406	//       "type": "string"
20407	//     }
20408	//   },
20409	//   "path": "v1alpha1/{+name}",
20410	//   "response": {
20411	//     "$ref": "Empty"
20412	//   },
20413	//   "scopes": [
20414	//     "https://www.googleapis.com/auth/cloud-platform"
20415	//   ]
20416	// }
20417
20418}
20419
20420// method id "run.projects.locations.triggers.get":
20421
20422type ProjectsLocationsTriggersGetCall struct {
20423	s            *APIService
20424	name         string
20425	urlParams_   gensupport.URLParams
20426	ifNoneMatch_ string
20427	ctx_         context.Context
20428	header_      http.Header
20429}
20430
20431// Get: Rpc to get information about a trigger.
20432func (r *ProjectsLocationsTriggersService) Get(name string) *ProjectsLocationsTriggersGetCall {
20433	c := &ProjectsLocationsTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20434	c.name = name
20435	return c
20436}
20437
20438// Fields allows partial responses to be retrieved. See
20439// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20440// for more information.
20441func (c *ProjectsLocationsTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersGetCall {
20442	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20443	return c
20444}
20445
20446// IfNoneMatch sets the optional parameter which makes the operation
20447// fail if the object's ETag matches the given value. This is useful for
20448// getting updates only after the object has changed since the last
20449// request. Use googleapi.IsNotModified to check whether the response
20450// error from Do is the result of In-None-Match.
20451func (c *ProjectsLocationsTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersGetCall {
20452	c.ifNoneMatch_ = entityTag
20453	return c
20454}
20455
20456// Context sets the context to be used in this call's Do method. Any
20457// pending HTTP request will be aborted if the provided context is
20458// canceled.
20459func (c *ProjectsLocationsTriggersGetCall) Context(ctx context.Context) *ProjectsLocationsTriggersGetCall {
20460	c.ctx_ = ctx
20461	return c
20462}
20463
20464// Header returns an http.Header that can be modified by the caller to
20465// add HTTP headers to the request.
20466func (c *ProjectsLocationsTriggersGetCall) Header() http.Header {
20467	if c.header_ == nil {
20468		c.header_ = make(http.Header)
20469	}
20470	return c.header_
20471}
20472
20473func (c *ProjectsLocationsTriggersGetCall) doRequest(alt string) (*http.Response, error) {
20474	reqHeaders := make(http.Header)
20475	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
20476	for k, v := range c.header_ {
20477		reqHeaders[k] = v
20478	}
20479	reqHeaders.Set("User-Agent", c.s.userAgent())
20480	if c.ifNoneMatch_ != "" {
20481		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20482	}
20483	var body io.Reader = nil
20484	c.urlParams_.Set("alt", alt)
20485	c.urlParams_.Set("prettyPrint", "false")
20486	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+name}")
20487	urls += "?" + c.urlParams_.Encode()
20488	req, err := http.NewRequest("GET", urls, body)
20489	if err != nil {
20490		return nil, err
20491	}
20492	req.Header = reqHeaders
20493	googleapi.Expand(req.URL, map[string]string{
20494		"name": c.name,
20495	})
20496	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20497}
20498
20499// Do executes the "run.projects.locations.triggers.get" call.
20500// Exactly one of *Trigger or error will be non-nil. Any non-2xx status
20501// code is an error. Response headers are in either
20502// *Trigger.ServerResponse.Header or (if a response was returned at all)
20503// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
20504// check whether the returned error was because http.StatusNotModified
20505// was returned.
20506func (c *ProjectsLocationsTriggersGetCall) Do(opts ...googleapi.CallOption) (*Trigger, error) {
20507	gensupport.SetOptions(c.urlParams_, opts...)
20508	res, err := c.doRequest("json")
20509	if res != nil && res.StatusCode == http.StatusNotModified {
20510		if res.Body != nil {
20511			res.Body.Close()
20512		}
20513		return nil, &googleapi.Error{
20514			Code:   res.StatusCode,
20515			Header: res.Header,
20516		}
20517	}
20518	if err != nil {
20519		return nil, err
20520	}
20521	defer googleapi.CloseBody(res)
20522	if err := googleapi.CheckResponse(res); err != nil {
20523		return nil, err
20524	}
20525	ret := &Trigger{
20526		ServerResponse: googleapi.ServerResponse{
20527			Header:         res.Header,
20528			HTTPStatusCode: res.StatusCode,
20529		},
20530	}
20531	target := &ret
20532	if err := gensupport.DecodeResponse(target, res); err != nil {
20533		return nil, err
20534	}
20535	return ret, nil
20536	// {
20537	//   "description": "Rpc to get information about a trigger.",
20538	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/triggers/{triggersId}",
20539	//   "httpMethod": "GET",
20540	//   "id": "run.projects.locations.triggers.get",
20541	//   "parameterOrder": [
20542	//     "name"
20543	//   ],
20544	//   "parameters": {
20545	//     "name": {
20546	//       "description": "The name of the trigger being retrieved. If needed, replace\n{namespace_id} with the project ID.",
20547	//       "location": "path",
20548	//       "pattern": "^projects/[^/]+/locations/[^/]+/triggers/[^/]+$",
20549	//       "required": true,
20550	//       "type": "string"
20551	//     }
20552	//   },
20553	//   "path": "v1alpha1/{+name}",
20554	//   "response": {
20555	//     "$ref": "Trigger"
20556	//   },
20557	//   "scopes": [
20558	//     "https://www.googleapis.com/auth/cloud-platform"
20559	//   ]
20560	// }
20561
20562}
20563
20564// method id "run.projects.locations.triggers.list":
20565
20566type ProjectsLocationsTriggersListCall struct {
20567	s            *APIService
20568	parent       string
20569	urlParams_   gensupport.URLParams
20570	ifNoneMatch_ string
20571	ctx_         context.Context
20572	header_      http.Header
20573}
20574
20575// List: Rpc to list triggers.
20576func (r *ProjectsLocationsTriggersService) List(parent string) *ProjectsLocationsTriggersListCall {
20577	c := &ProjectsLocationsTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20578	c.parent = parent
20579	return c
20580}
20581
20582// Continue sets the optional parameter "continue": Encoded string to
20583// continue paging.
20584func (c *ProjectsLocationsTriggersListCall) Continue(continue_ string) *ProjectsLocationsTriggersListCall {
20585	c.urlParams_.Set("continue", continue_)
20586	return c
20587}
20588
20589// FieldSelector sets the optional parameter "fieldSelector": Allows to
20590// filter resources based on a specific value for a field name.
20591// Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
20592// Not currently used by Cloud Run.
20593func (c *ProjectsLocationsTriggersListCall) FieldSelector(fieldSelector string) *ProjectsLocationsTriggersListCall {
20594	c.urlParams_.Set("fieldSelector", fieldSelector)
20595	return c
20596}
20597
20598// IncludeUninitialized sets the optional parameter
20599// "includeUninitialized": Not currently used by Cloud Run.
20600func (c *ProjectsLocationsTriggersListCall) IncludeUninitialized(includeUninitialized bool) *ProjectsLocationsTriggersListCall {
20601	c.urlParams_.Set("includeUninitialized", fmt.Sprint(includeUninitialized))
20602	return c
20603}
20604
20605// LabelSelector sets the optional parameter "labelSelector": Allows to
20606// filter resources based on a label. Supported operations are
20607// =, !=, exists, in, and notIn.
20608func (c *ProjectsLocationsTriggersListCall) LabelSelector(labelSelector string) *ProjectsLocationsTriggersListCall {
20609	c.urlParams_.Set("labelSelector", labelSelector)
20610	return c
20611}
20612
20613// Limit sets the optional parameter "limit": The maximum number of
20614// records that should be returned.
20615func (c *ProjectsLocationsTriggersListCall) Limit(limit int64) *ProjectsLocationsTriggersListCall {
20616	c.urlParams_.Set("limit", fmt.Sprint(limit))
20617	return c
20618}
20619
20620// ResourceVersion sets the optional parameter "resourceVersion": The
20621// baseline resource version from which the list or watch operation
20622// should
20623// start. Not currently used by Cloud Run.
20624func (c *ProjectsLocationsTriggersListCall) ResourceVersion(resourceVersion string) *ProjectsLocationsTriggersListCall {
20625	c.urlParams_.Set("resourceVersion", resourceVersion)
20626	return c
20627}
20628
20629// Watch sets the optional parameter "watch": Flag that indicates that
20630// the client expects to watch this resource as well.
20631// Not currently used by Cloud Run.
20632func (c *ProjectsLocationsTriggersListCall) Watch(watch bool) *ProjectsLocationsTriggersListCall {
20633	c.urlParams_.Set("watch", fmt.Sprint(watch))
20634	return c
20635}
20636
20637// Fields allows partial responses to be retrieved. See
20638// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
20639// for more information.
20640func (c *ProjectsLocationsTriggersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTriggersListCall {
20641	c.urlParams_.Set("fields", googleapi.CombineFields(s))
20642	return c
20643}
20644
20645// IfNoneMatch sets the optional parameter which makes the operation
20646// fail if the object's ETag matches the given value. This is useful for
20647// getting updates only after the object has changed since the last
20648// request. Use googleapi.IsNotModified to check whether the response
20649// error from Do is the result of In-None-Match.
20650func (c *ProjectsLocationsTriggersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTriggersListCall {
20651	c.ifNoneMatch_ = entityTag
20652	return c
20653}
20654
20655// Context sets the context to be used in this call's Do method. Any
20656// pending HTTP request will be aborted if the provided context is
20657// canceled.
20658func (c *ProjectsLocationsTriggersListCall) Context(ctx context.Context) *ProjectsLocationsTriggersListCall {
20659	c.ctx_ = ctx
20660	return c
20661}
20662
20663// Header returns an http.Header that can be modified by the caller to
20664// add HTTP headers to the request.
20665func (c *ProjectsLocationsTriggersListCall) Header() http.Header {
20666	if c.header_ == nil {
20667		c.header_ = make(http.Header)
20668	}
20669	return c.header_
20670}
20671
20672func (c *ProjectsLocationsTriggersListCall) doRequest(alt string) (*http.Response, error) {
20673	reqHeaders := make(http.Header)
20674	reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200302")
20675	for k, v := range c.header_ {
20676		reqHeaders[k] = v
20677	}
20678	reqHeaders.Set("User-Agent", c.s.userAgent())
20679	if c.ifNoneMatch_ != "" {
20680		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20681	}
20682	var body io.Reader = nil
20683	c.urlParams_.Set("alt", alt)
20684	c.urlParams_.Set("prettyPrint", "false")
20685	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha1/{+parent}/triggers")
20686	urls += "?" + c.urlParams_.Encode()
20687	req, err := http.NewRequest("GET", urls, body)
20688	if err != nil {
20689		return nil, err
20690	}
20691	req.Header = reqHeaders
20692	googleapi.Expand(req.URL, map[string]string{
20693		"parent": c.parent,
20694	})
20695	return gensupport.SendRequest(c.ctx_, c.s.client, req)
20696}
20697
20698// Do executes the "run.projects.locations.triggers.list" call.
20699// Exactly one of *ListTriggersResponse or error will be non-nil. Any
20700// non-2xx status code is an error. Response headers are in either
20701// *ListTriggersResponse.ServerResponse.Header or (if a response was
20702// returned at all) in error.(*googleapi.Error).Header. Use
20703// googleapi.IsNotModified to check whether the returned error was
20704// because http.StatusNotModified was returned.
20705func (c *ProjectsLocationsTriggersListCall) Do(opts ...googleapi.CallOption) (*ListTriggersResponse, error) {
20706	gensupport.SetOptions(c.urlParams_, opts...)
20707	res, err := c.doRequest("json")
20708	if res != nil && res.StatusCode == http.StatusNotModified {
20709		if res.Body != nil {
20710			res.Body.Close()
20711		}
20712		return nil, &googleapi.Error{
20713			Code:   res.StatusCode,
20714			Header: res.Header,
20715		}
20716	}
20717	if err != nil {
20718		return nil, err
20719	}
20720	defer googleapi.CloseBody(res)
20721	if err := googleapi.CheckResponse(res); err != nil {
20722		return nil, err
20723	}
20724	ret := &ListTriggersResponse{
20725		ServerResponse: googleapi.ServerResponse{
20726			Header:         res.Header,
20727			HTTPStatusCode: res.StatusCode,
20728		},
20729	}
20730	target := &ret
20731	if err := gensupport.DecodeResponse(target, res); err != nil {
20732		return nil, err
20733	}
20734	return ret, nil
20735	// {
20736	//   "description": "Rpc to list triggers.",
20737	//   "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/triggers",
20738	//   "httpMethod": "GET",
20739	//   "id": "run.projects.locations.triggers.list",
20740	//   "parameterOrder": [
20741	//     "parent"
20742	//   ],
20743	//   "parameters": {
20744	//     "continue": {
20745	//       "description": "Optional. Encoded string to continue paging.",
20746	//       "location": "query",
20747	//       "type": "string"
20748	//     },
20749	//     "fieldSelector": {
20750	//       "description": "Allows to filter resources based on a specific value for a field name.\nSend this in a query string format. i.e. 'metadata.name%3Dlorem'.\nNot currently used by Cloud Run.",
20751	//       "location": "query",
20752	//       "type": "string"
20753	//     },
20754	//     "includeUninitialized": {
20755	//       "description": "Not currently used by Cloud Run.",
20756	//       "location": "query",
20757	//       "type": "boolean"
20758	//     },
20759	//     "labelSelector": {
20760	//       "description": "Allows to filter resources based on a label. Supported operations are\n=, !=, exists, in, and notIn.",
20761	//       "location": "query",
20762	//       "type": "string"
20763	//     },
20764	//     "limit": {
20765	//       "description": "The maximum number of records that should be returned.",
20766	//       "format": "int32",
20767	//       "location": "query",
20768	//       "type": "integer"
20769	//     },
20770	//     "parent": {
20771	//       "description": "The project ID or project number from which the triggers should\nbe listed.",
20772	//       "location": "path",
20773	//       "pattern": "^projects/[^/]+/locations/[^/]+$",
20774	//       "required": true,
20775	//       "type": "string"
20776	//     },
20777	//     "resourceVersion": {
20778	//       "description": "The baseline resource version from which the list or watch operation should\nstart. Not currently used by Cloud Run.",
20779	//       "location": "query",
20780	//       "type": "string"
20781	//     },
20782	//     "watch": {
20783	//       "description": "Flag that indicates that the client expects to watch this resource as well.\nNot currently used by Cloud Run.",
20784	//       "location": "query",
20785	//       "type": "boolean"
20786	//     }
20787	//   },
20788	//   "path": "v1alpha1/{+parent}/triggers",
20789	//   "response": {
20790	//     "$ref": "ListTriggersResponse"
20791	//   },
20792	//   "scopes": [
20793	//     "https://www.googleapis.com/auth/cloud-platform"
20794	//   ]
20795	// }
20796
20797}
20798