22
33from __future__ import annotations
44
5+ from typing import Optional
6+
57import httpx
68
79from ..types import repository_list_params , repository_create_params
@@ -51,6 +53,7 @@ def create(
5153 * ,
5254 name : str ,
5355 owner : str ,
56+ blueprint_id : Optional [str ] | NotGiven = NOT_GIVEN ,
5457 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
5558 # The extra values given here take precedence over values defined on the client or passed to this method.
5659 extra_headers : Headers | None = None ,
@@ -68,6 +71,8 @@ def create(
6871
6972 owner: Account owner of the repository.
7073
74+ blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.
75+
7176 extra_headers: Send extra headers
7277
7378 extra_query: Add additional query parameters to the request
@@ -84,6 +89,7 @@ def create(
8489 {
8590 "name" : name ,
8691 "owner" : owner ,
92+ "blueprint_id" : blueprint_id ,
8793 },
8894 repository_create_params .RepositoryCreateParams ,
8995 ),
@@ -110,7 +116,7 @@ def retrieve(
110116 ) -> RepositoryConnectionView :
111117 """
112118 Get Repository Connection details including latest inspection status and
113- generated respository insights.
119+ generated repository insights.
114120
115121 Args:
116122 extra_headers: Send extra headers
@@ -135,6 +141,8 @@ def list(
135141 self ,
136142 * ,
137143 limit : int | NotGiven = NOT_GIVEN ,
144+ name : str | NotGiven = NOT_GIVEN ,
145+ owner : str | NotGiven = NOT_GIVEN ,
138146 starting_after : str | NotGiven = NOT_GIVEN ,
139147 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
140148 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -149,6 +157,10 @@ def list(
149157 Args:
150158 limit: The limit of items to return. Default is 20.
151159
160+ name: Filter by repository name
161+
162+ owner: Filter by repository owner
163+
152164 starting_after: Load the next page of data starting after the item with the given ID.
153165
154166 extra_headers: Send extra headers
@@ -170,6 +182,8 @@ def list(
170182 query = maybe_transform (
171183 {
172184 "limit" : limit ,
185+ "name" : name ,
186+ "owner" : owner ,
173187 "starting_after" : starting_after ,
174188 },
175189 repository_list_params .RepositoryListParams ,
@@ -279,6 +293,7 @@ async def create(
279293 * ,
280294 name : str ,
281295 owner : str ,
296+ blueprint_id : Optional [str ] | NotGiven = NOT_GIVEN ,
282297 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
283298 # The extra values given here take precedence over values defined on the client or passed to this method.
284299 extra_headers : Headers | None = None ,
@@ -296,6 +311,8 @@ async def create(
296311
297312 owner: Account owner of the repository.
298313
314+ blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.
315+
299316 extra_headers: Send extra headers
300317
301318 extra_query: Add additional query parameters to the request
@@ -312,6 +329,7 @@ async def create(
312329 {
313330 "name" : name ,
314331 "owner" : owner ,
332+ "blueprint_id" : blueprint_id ,
315333 },
316334 repository_create_params .RepositoryCreateParams ,
317335 ),
@@ -338,7 +356,7 @@ async def retrieve(
338356 ) -> RepositoryConnectionView :
339357 """
340358 Get Repository Connection details including latest inspection status and
341- generated respository insights.
359+ generated repository insights.
342360
343361 Args:
344362 extra_headers: Send extra headers
@@ -363,6 +381,8 @@ def list(
363381 self ,
364382 * ,
365383 limit : int | NotGiven = NOT_GIVEN ,
384+ name : str | NotGiven = NOT_GIVEN ,
385+ owner : str | NotGiven = NOT_GIVEN ,
366386 starting_after : str | NotGiven = NOT_GIVEN ,
367387 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
368388 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -377,6 +397,10 @@ def list(
377397 Args:
378398 limit: The limit of items to return. Default is 20.
379399
400+ name: Filter by repository name
401+
402+ owner: Filter by repository owner
403+
380404 starting_after: Load the next page of data starting after the item with the given ID.
381405
382406 extra_headers: Send extra headers
@@ -398,6 +422,8 @@ def list(
398422 query = maybe_transform (
399423 {
400424 "limit" : limit ,
425+ "name" : name ,
426+ "owner" : owner ,
401427 "starting_after" : starting_after ,
402428 },
403429 repository_list_params .RepositoryListParams ,
0 commit comments